@medialane/sdk 0.193.0 → 0.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-V4UXHC53.cjs → chunk-7G7YIGXJ.cjs} +3 -2
- package/dist/chunk-7G7YIGXJ.cjs.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/{chunk-2B4PVFOS.js → chunk-ZCHP5D7S.js} +3 -2
- package/dist/chunk-ZCHP5D7S.js.map +1 -0
- package/dist/contract/index.cjs +509 -0
- package/dist/contract/index.cjs.map +1 -0
- package/dist/contract/index.d.cts +104 -0
- package/dist/contract/index.d.ts +104 -0
- package/dist/contract/index.js +493 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/{errors-CrBviXC8.d.cts → errors-C39AqEX6.d.cts} +46 -309
- package/dist/{errors-kCrcWfrz.d.ts → errors-Cc9W7FFi.d.ts} +46 -309
- package/dist/evm/index.cjs +1 -0
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.js +1 -0
- package/dist/evm/index.js.map +1 -1
- package/dist/index.cjs +73 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/provisioning-BUYiU8Tr.d.cts +1720 -0
- package/dist/provisioning-BUYiU8Tr.d.ts +1720 -0
- package/dist/solana/index.cjs +1 -0
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.js +1 -0
- package/dist/solana/index.js.map +1 -1
- package/dist/starknet/index.cjs +68 -67
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +3 -2
- package/dist/starknet/index.d.ts +3 -2
- package/dist/starknet/index.js +3 -2
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +1 -0
- package/dist/stellar/index.cjs.map +1 -1
- package/dist/stellar/index.js +1 -0
- package/dist/stellar/index.js.map +1 -1
- package/package.json +6 -1
- package/dist/chunk-2B4PVFOS.js.map +0 -1
- package/dist/chunk-V4UXHC53.cjs.map +0 -1
package/dist/evm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/evm/typedData.ts","../../src/evm/abis.ts","../../src/evm/venue.ts","../../src/evm/issuance.ts"],"names":["maybeCoords"],"mappings":";;;AAEO,IAAM,eAAA,GAAkB;AAAA,EAC7B,SAAA,EAAW;AAAA,IACT,EAAE,IAAA,EAAM,UAAA,EAAY,IAAA,EAAM,OAAA,EAAQ;AAAA,IAClC,EAAE,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,SAAA,EAAU;AAAA,IACjC,EAAE,IAAA,EAAM,YAAA,EAAc,IAAA,EAAM,SAAA,EAAU;AAAA,IACtC,EAAE,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,SAAA;AAAU,GACpC;AAAA,EACA,iBAAA,EAAmB;AAAA,IACjB,EAAE,IAAA,EAAM,UAAA,EAAY,IAAA,EAAM,OAAA,EAAQ;AAAA,IAClC,EAAE,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,SAAA,EAAU;AAAA,IACjC,EAAE,IAAA,EAAM,YAAA,EAAc,IAAA,EAAM,SAAA,EAAU;AAAA,IACtC,EAAE,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,SAAA,EAAU;AAAA,IAClC,EAAE,IAAA,EAAM,WAAA,EAAa,IAAA,EAAM,SAAA;AAAU,GACvC;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,EAAE,IAAA,EAAM,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,IACnC,EAAE,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,WAAA,EAAY;AAAA,IACnC,EAAE,IAAA,EAAM,eAAA,EAAiB,I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AAA,EACT;AACF","file":"index.js","sourcesContent":["import { hashTypedData, type TypedDataDomain } from \"viem\";\n\nexport const EVM_ORDER_TYPES = {\n OfferItem: [\n { name: \"itemType\", type: \"uint8\" },\n { name: \"token\", type: \"address\" },\n { name: \"identifier\", type: \"uint256\" },\n { name: \"amount\", type: \"uint256\" },\n ],\n ConsiderationItem: [\n { name: \"itemType\", type: \"uint8\" },\n { name: \"token\", type: \"address\" },\n { name: \"identifier\", type: \"uint256\" },\n { name: \"amount\", type: \"uint256\" },\n { name: \"recipient\", type: \"address\" },\n ],\n OrderParameters: [\n { name: \"offerer\", type: \"address\" },\n { name: \"offer\", type: \"OfferItem\" },\n { name: \"consideration\", type: \"ConsiderationItem\" },\n { name: \"royaltyMaxBps\", type: \"uint256\" },\n { name: \"startTime\", type: \"uint256\" },\n { name: \"endTime\", type: \"uint256\" },\n { name: \"salt\", type: \"uint256\" },\n { name: \"counter\", type: \"uint256\" },\n ],\n} as const;\n\nexport type EvmItemType = 0 | 1 | 2;\n\nexport interface EvmOfferItem {\n itemType: EvmItemType;\n token: `0x${string}`;\n identifier: bigint;\n amount: bigint;\n}\n\nexport interface EvmConsiderationItem extends EvmOfferItem {\n recipient: `0x${string}`;\n}\n\nexport interface EvmOrderParameters {\n offerer: `0x${string}`;\n offer: EvmOfferItem;\n consideration: EvmConsiderationItem;\n royaltyMaxBps: bigint;\n startTime: bigint;\n endTime: bigint;\n salt: bigint;\n counter: bigint;\n}\n\nexport function evmOrderDomain(chainId: number, verifyingContract: `0x${string}`): TypedDataDomain {\n return { name: \"Medialane\", version: \"1\", chainId, verifyingContract };\n}\n\nexport function evmOrderDigest(\n chainId: number,\n verifyingContract: `0x${string}`,\n parameters: EvmOrderParameters,\n): `0x${string}` {\n return hashTypedData({\n domain: evmOrderDomain(chainId, verifyingContract),\n types: EVM_ORDER_TYPES,\n primaryType: \"OrderParameters\",\n message: parameters,\n });\n}\n","import { parseAbi } from \"viem\";\n\nexport const EvmVenueABI = parseAbi([\n \"struct OfferItem { uint8 itemType; address token; uint256 identifier; uint256 amount; }\",\n \"struct ConsiderationItem { uint8 itemType; address token; uint256 identifier; uint256 amount; address recipient; }\",\n \"struct OrderParameters { address offerer; OfferItem offer; ConsiderationItem consideration; uint256 royaltyMaxBps; uint256 startTime; uint256 endTime; uint256 salt; uint256 counter; }\",\n \"function registerOrder(OrderParameters parameters, bytes signature)\",\n \"function fulfillOrder(bytes32 orderHash) payable\",\n \"function cancelOrder(bytes32 orderHash)\",\n \"function incrementCounter()\",\n \"function getOrderHash(OrderParameters parameters) view returns (bytes32)\",\n \"function getCounter(address offerer) view returns (uint256)\",\n \"function version() pure returns (string)\",\n \"event OrderCreated(bytes32 indexed orderHash, address indexed offerer)\",\n \"event OrderFulfilled(bytes32 indexed orderHash, address indexed offerer, address indexed fulfiller, uint256 saleAmount, address royaltyReceiver, uint256 royaltyAmount)\",\n \"event OrderCancelled(bytes32 indexed orderHash, address indexed offerer)\",\n \"event CounterIncremented(address indexed offerer, uint256 newCounter)\",\n]);\n\nexport const EvmVenue1155ABI = parseAbi([\n \"function fulfillOrder(bytes32 orderHash, uint256 quantity) payable\",\n \"event OrderFulfilled(bytes32 indexed orderHash, address indexed offerer, address indexed fulfiller, uint256 quantity, uint256 remainingAmount, uint256 saleAmount, address royaltyReceiver, uint256 royaltyAmount)\",\n]);\n\nexport const EvmMipRegistryABI = parseAbi([\n \"function createCollection(string name, string symbol, string baseUri, uint96 royaltyBps) returns (uint256 collectionId, address collection)\",\n \"function getCollection(uint256 collectionId) view returns (address collection, address creator)\",\n \"function collectionCount() view returns (uint256)\",\n \"event CollectionCreated(uint256 indexed collectionId, address indexed collection, address indexed creator, string name, string symbol, string baseUri)\",\n]);\n\nexport const EvmMipCollectionABI = parseAbi([\n \"function mint(address to, string metadataUri) returns (uint256 tokenId)\",\n \"function batchMint(address[] to, string[] metadataUris) returns (uint256[] tokenIds)\",\n \"function tokenURI(uint256 tokenId) view returns (string)\",\n \"function ownerOf(uint256 tokenId) view returns (address)\",\n \"function balanceOf(address owner) view returns (uint256)\",\n \"function owner() view returns (address)\",\n \"event TokenMinted(uint256 indexed tokenId, address indexed owner, string metadataUri)\",\n \"event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)\",\n]);\n","import type { PublicClient, WalletClient } from \"viem\";\nimport type { Chain } from \"../chains.js\";\nimport { getCoordinates, type EvmCoordinates } from \"../chains.js\";\nimport type {\n AdapterTxResult,\n OrderRef,\n RegisterOrderParams,\n VenueAdapter,\n} from \"../adapters/types.js\";\nimport { EvmVenueABI, EvmVenue1155ABI } from \"./abis.js\";\nimport {\n EVM_ORDER_TYPES,\n evmOrderDigest,\n evmOrderDomain,\n type EvmOrderParameters,\n} from \"./typedData.js\";\n\nexport type EvmChain = \"ETHEREUM\" | \"BASE\";\n\nexport interface EvmVenueOptions {\n chain: EvmChain;\n chainId: number;\n publicClient: PublicClient;\n\n variant: \"721\" | \"1155\";\n\n contract?: `0x${string}`;\n}\n\nexport class EvmVenue implements VenueAdapter<WalletClient> {\n readonly chain: Chain;\n private readonly chainId: number;\n private readonly contract: `0x${string}`;\n private readonly publicClient: PublicClient;\n private readonly variant: \"721\" | \"1155\";\n\n constructor(opts: EvmVenueOptions) {\n this.chain = opts.chain;\n this.chainId = opts.chainId;\n this.publicClient = opts.publicClient;\n this.variant = opts.variant;\n const coords = maybeCoords(opts.chain);\n const contract =\n opts.contract ?? (opts.variant === \"721\" ? coords?.marketplace721 : coords?.marketplace1155);\n if (!contract) throw new Error(`No ${opts.variant} venue configured for ${opts.chain}`);\n this.contract = contract;\n }\n\n async registerOrder(\n signer: WalletClient,\n params: RegisterOrderParams,\n ): Promise<AdapterTxResult & { orderRef: OrderRef }> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const counter = await this.getCounter(account.address);\n const nft = {\n itemType: 2 as const,\n token: params.asset.contract as `0x${string}`,\n identifier: BigInt(params.asset.tokenId),\n amount: 1n,\n };\n const payment = {\n itemType: (params.paymentToken === NATIVE_SENTINEL ? 0 : 1) as 0 | 1,\n token: (params.paymentToken === NATIVE_SENTINEL\n ? \"0x0000000000000000000000000000000000000000\"\n : params.paymentToken) as `0x${string}`,\n identifier: 0n,\n amount: BigInt(params.amount),\n };\n const order: EvmOrderParameters =\n params.side === \"listing\"\n ? {\n offerer: account.address,\n offer: nft,\n consideration: { ...payment, recipient: account.address },\n ...commonFields(params),\n }\n : {\n offerer: account.address,\n offer: payment,\n consideration: { ...nft, recipient: account.address },\n ...commonFields(params),\n };\n order.counter = counter;\n\n const signature = await signer.signTypedData({\n account,\n domain: evmOrderDomain(this.chainId, this.contract),\n types: EVM_ORDER_TYPES,\n primaryType: \"OrderParameters\",\n message: order,\n });\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"registerOrder\",\n args: [order, signature],\n });\n return { txHash, orderRef: evmOrderDigest(this.chainId, this.contract, order) };\n }\n\n async fulfillOrder(\n signer: WalletClient,\n orderRef: OrderRef,\n opts?: { quantity?: string; value?: string },\n ): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const value = opts?.value ? BigInt(opts.value) : undefined;\n const txHash =\n this.variant === \"1155\"\n ? await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenue1155ABI,\n functionName: \"fulfillOrder\",\n args: [orderRef as `0x${string}`, BigInt(opts?.quantity ?? \"1\")],\n value,\n })\n : await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"fulfillOrder\",\n args: [orderRef as `0x${string}`],\n value,\n });\n return { txHash };\n }\n\n async cancelOrder(signer: WalletClient, orderRef: OrderRef): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"cancelOrder\",\n args: [orderRef as `0x${string}`],\n });\n return { txHash };\n }\n\n async incrementCounter(signer: WalletClient): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"incrementCounter\",\n args: [],\n });\n return { txHash };\n }\n\n async getOrderDetails(orderRef: OrderRef): Promise<unknown> {\n return this.publicClient.readContract({\n address: this.contract,\n abi: [\n {\n type: \"function\",\n name: \"getOrderDetails\",\n stateMutability: \"view\",\n inputs: [{ name: \"orderHash\", type: \"bytes32\" }],\n outputs: [{ name: \"\", type: \"bytes\" }],\n },\n ] as const,\n functionName: \"getOrderDetails\",\n args: [orderRef as `0x${string}`],\n });\n }\n\n async getCounter(address: string): Promise<bigint> {\n return this.publicClient.readContract({\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"getCounter\",\n args: [address as `0x${string}`],\n });\n }\n}\n\nexport const NATIVE_SENTINEL = \"native\";\n\nfunction commonFields(params: RegisterOrderParams) {\n return {\n royaltyMaxBps: BigInt(params.royaltyMaxBps),\n startTime: BigInt(params.startTime),\n endTime: BigInt(params.endTime),\n salt: BigInt(params.salt),\n counter: 0n,\n };\n}\n\nfunction maybeCoords(chain: EvmChain): EvmCoordinates | undefined {\n try {\n return getCoordinates(chain);\n } catch {\n return undefined;\n }\n}\n","import type { PublicClient, WalletClient } from \"viem\";\nimport { parseEventLogs } from \"viem\";\nimport type { Chain } from \"../chains.js\";\nimport { getCoordinates, type EvmCoordinates } from \"../chains.js\";\nimport type { AdapterTxResult, CreateCollectionInput, IssuanceAdapter, MintInput } from \"../adapters/types.js\";\nimport { EvmMipCollectionABI, EvmMipRegistryABI } from \"./abis.js\";\nimport type { EvmChain } from \"./venue.js\";\n\nexport interface EvmIssuanceOptions {\n chain: EvmChain;\n publicClient: PublicClient;\n\n registry?: `0x${string}`;\n}\n\nexport class EvmIssuance implements IssuanceAdapter<WalletClient> {\n readonly chain: Chain;\n private readonly registry: `0x${string}`;\n private readonly publicClient: PublicClient;\n\n constructor(opts: EvmIssuanceOptions) {\n this.chain = opts.chain;\n this.publicClient = opts.publicClient;\n const registry = opts.registry ?? maybeCoords(opts.chain)?.mipRegistry;\n if (!registry) throw new Error(`No MIP registry configured for ${opts.chain}`);\n this.registry = registry;\n }\n\n async createCollection(\n signer: WalletClient,\n params: CreateCollectionInput,\n ): Promise<AdapterTxResult & { collection: string }> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.registry,\n abi: EvmMipRegistryABI,\n functionName: \"createCollection\",\n args: [params.name, params.symbol, params.baseUri, BigInt(params.royaltyBps)],\n });\n const receipt = await this.publicClient.waitForTransactionReceipt({ hash: txHash });\n const [created] = parseEventLogs({\n abi: EvmMipRegistryABI,\n eventName: \"CollectionCreated\",\n logs: receipt.logs,\n });\n return { txHash, collection: created?.args.collection ?? \"\" };\n }\n\n async mint(signer: WalletClient, params: MintInput): Promise<AdapterTxResult & { tokenId: string }> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: params.collection as `0x${string}`,\n abi: EvmMipCollectionABI,\n functionName: \"mint\",\n args: [params.recipient as `0x${string}`, params.tokenUri],\n });\n const receipt = await this.publicClient.waitForTransactionReceipt({ hash: txHash });\n const [minted] = parseEventLogs({\n abi: EvmMipCollectionABI,\n eventName: \"TokenMinted\",\n logs: receipt.logs,\n });\n return { txHash, tokenId: (minted?.args.tokenId ?? 0n).toString() };\n }\n\n async batchMint(\n signer: WalletClient,\n params: { collection: string; recipients: string[]; tokenUris: string[] },\n ): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: params.collection as `0x${string}`,\n abi: EvmMipCollectionABI,\n functionName: \"batchMint\",\n args: [params.recipients as `0x${string}`[], params.tokenUris],\n });\n return { txHash };\n }\n}\n\nfunction maybeCoords(chain: EvmChain): EvmCoordinates | undefined {\n try {\n return getCoordinates(chain);\n } catch {\n return undefined;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/evm/typedData.ts","../../src/evm/abis.ts","../../src/evm/venue.ts","../../src/evm/issuance.ts"],"names":["maybeCoords"],"mappings":";;;;AAEO,IAAM,eAAA,GAAkB;AAAA,EAC7B,SAAA,EAAW;AAAA,IACT,EAAE,IAAA,EAAM,UAAA,EAAY,IAAA,EAAM,OAAA,EAAQ;AAAA,IAClC,EAAE,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,SAAA,EAAU;AAAA,IACjC,EAAE,IAAA,EAAM,YAAA,EAAc,IAAA,EAAM,SAAA,EAAU;AAAA,IACtC,EAAE,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,SAAA;AAAU,GACpC;AAAA,EACA,iBAAA,EAAmB;AAAA,IACjB,EAAE,IAAA,EAAM,UAAA,EAAY,IAAA,EAAM,OAAA,EAAQ;AAAA,IAClC,EAAE,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,SAAA,EAAU;AAAA,IACjC,EAAE,IAAA,EAAM,YAAA,EAAc,IAAA,EAAM,SAAA,EAAU;AAAA,IACtC,EAAE,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,SAAA,EAAU;AAAA,IAClC,EAAE,IAAA,EAAM,WAAA,EAAa,IAAA,EAAM,SAAA;AAAU,GACvC;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,EAAE,IAAA,EAAM,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,IACnC,EAAE,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,WAAA,EAAY;AAAA,IACnC,EAAE,IAAA,EAAM,eAAA,EAAiB,IAAA,EAAM,mBAAA,EAAoB;AAAA,IACnD,EAAE,IAAA,EAAM,eAAA,EAAiB,IAAA,EAAM,SAAA,EAAU;A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fferItem: [\n { name: \"itemType\", type: \"uint8\" },\n { name: \"token\", type: \"address\" },\n { name: \"identifier\", type: \"uint256\" },\n { name: \"amount\", type: \"uint256\" },\n ],\n ConsiderationItem: [\n { name: \"itemType\", type: \"uint8\" },\n { name: \"token\", type: \"address\" },\n { name: \"identifier\", type: \"uint256\" },\n { name: \"amount\", type: \"uint256\" },\n { name: \"recipient\", type: \"address\" },\n ],\n OrderParameters: [\n { name: \"offerer\", type: \"address\" },\n { name: \"offer\", type: \"OfferItem\" },\n { name: \"consideration\", type: \"ConsiderationItem\" },\n { name: \"royaltyMaxBps\", type: \"uint256\" },\n { name: \"startTime\", type: \"uint256\" },\n { name: \"endTime\", type: \"uint256\" },\n { name: \"salt\", type: \"uint256\" },\n { name: \"counter\", type: \"uint256\" },\n ],\n} as const;\n\nexport type EvmItemType = 0 | 1 | 2;\n\nexport interface EvmOfferItem {\n itemType: EvmItemType;\n token: `0x${string}`;\n identifier: bigint;\n amount: bigint;\n}\n\nexport interface EvmConsiderationItem extends EvmOfferItem {\n recipient: `0x${string}`;\n}\n\nexport interface EvmOrderParameters {\n offerer: `0x${string}`;\n offer: EvmOfferItem;\n consideration: EvmConsiderationItem;\n royaltyMaxBps: bigint;\n startTime: bigint;\n endTime: bigint;\n salt: bigint;\n counter: bigint;\n}\n\nexport function evmOrderDomain(chainId: number, verifyingContract: `0x${string}`): TypedDataDomain {\n return { name: \"Medialane\", version: \"1\", chainId, verifyingContract };\n}\n\nexport function evmOrderDigest(\n chainId: number,\n verifyingContract: `0x${string}`,\n parameters: EvmOrderParameters,\n): `0x${string}` {\n return hashTypedData({\n domain: evmOrderDomain(chainId, verifyingContract),\n types: EVM_ORDER_TYPES,\n primaryType: \"OrderParameters\",\n message: parameters,\n });\n}\n","import { parseAbi } from \"viem\";\n\nexport const EvmVenueABI = parseAbi([\n \"struct OfferItem { uint8 itemType; address token; uint256 identifier; uint256 amount; }\",\n \"struct ConsiderationItem { uint8 itemType; address token; uint256 identifier; uint256 amount; address recipient; }\",\n \"struct OrderParameters { address offerer; OfferItem offer; ConsiderationItem consideration; uint256 royaltyMaxBps; uint256 startTime; uint256 endTime; uint256 salt; uint256 counter; }\",\n \"function registerOrder(OrderParameters parameters, bytes signature)\",\n \"function fulfillOrder(bytes32 orderHash) payable\",\n \"function cancelOrder(bytes32 orderHash)\",\n \"function incrementCounter()\",\n \"function getOrderHash(OrderParameters parameters) view returns (bytes32)\",\n \"function getCounter(address offerer) view returns (uint256)\",\n \"function version() pure returns (string)\",\n \"event OrderCreated(bytes32 indexed orderHash, address indexed offerer)\",\n \"event OrderFulfilled(bytes32 indexed orderHash, address indexed offerer, address indexed fulfiller, uint256 saleAmount, address royaltyReceiver, uint256 royaltyAmount)\",\n \"event OrderCancelled(bytes32 indexed orderHash, address indexed offerer)\",\n \"event CounterIncremented(address indexed offerer, uint256 newCounter)\",\n]);\n\nexport const EvmVenue1155ABI = parseAbi([\n \"function fulfillOrder(bytes32 orderHash, uint256 quantity) payable\",\n \"event OrderFulfilled(bytes32 indexed orderHash, address indexed offerer, address indexed fulfiller, uint256 quantity, uint256 remainingAmount, uint256 saleAmount, address royaltyReceiver, uint256 royaltyAmount)\",\n]);\n\nexport const EvmMipRegistryABI = parseAbi([\n \"function createCollection(string name, string symbol, string baseUri, uint96 royaltyBps) returns (uint256 collectionId, address collection)\",\n \"function getCollection(uint256 collectionId) view returns (address collection, address creator)\",\n \"function collectionCount() view returns (uint256)\",\n \"event CollectionCreated(uint256 indexed collectionId, address indexed collection, address indexed creator, string name, string symbol, string baseUri)\",\n]);\n\nexport const EvmMipCollectionABI = parseAbi([\n \"function mint(address to, string metadataUri) returns (uint256 tokenId)\",\n \"function batchMint(address[] to, string[] metadataUris) returns (uint256[] tokenIds)\",\n \"function tokenURI(uint256 tokenId) view returns (string)\",\n \"function ownerOf(uint256 tokenId) view returns (address)\",\n \"function balanceOf(address owner) view returns (uint256)\",\n \"function owner() view returns (address)\",\n \"event TokenMinted(uint256 indexed tokenId, address indexed owner, string metadataUri)\",\n \"event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)\",\n]);\n","import type { PublicClient, WalletClient } from \"viem\";\nimport type { Chain } from \"../chains.js\";\nimport { getCoordinates, type EvmCoordinates } from \"../chains.js\";\nimport type {\n AdapterTxResult,\n OrderRef,\n RegisterOrderParams,\n VenueAdapter,\n} from \"../adapters/types.js\";\nimport { EvmVenueABI, EvmVenue1155ABI } from \"./abis.js\";\nimport {\n EVM_ORDER_TYPES,\n evmOrderDigest,\n evmOrderDomain,\n type EvmOrderParameters,\n} from \"./typedData.js\";\n\nexport type EvmChain = \"ETHEREUM\" | \"BASE\";\n\nexport interface EvmVenueOptions {\n chain: EvmChain;\n chainId: number;\n publicClient: PublicClient;\n\n variant: \"721\" | \"1155\";\n\n contract?: `0x${string}`;\n}\n\nexport class EvmVenue implements VenueAdapter<WalletClient> {\n readonly chain: Chain;\n private readonly chainId: number;\n private readonly contract: `0x${string}`;\n private readonly publicClient: PublicClient;\n private readonly variant: \"721\" | \"1155\";\n\n constructor(opts: EvmVenueOptions) {\n this.chain = opts.chain;\n this.chainId = opts.chainId;\n this.publicClient = opts.publicClient;\n this.variant = opts.variant;\n const coords = maybeCoords(opts.chain);\n const contract =\n opts.contract ?? (opts.variant === \"721\" ? coords?.marketplace721 : coords?.marketplace1155);\n if (!contract) throw new Error(`No ${opts.variant} venue configured for ${opts.chain}`);\n this.contract = contract;\n }\n\n async registerOrder(\n signer: WalletClient,\n params: RegisterOrderParams,\n ): Promise<AdapterTxResult & { orderRef: OrderRef }> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const counter = await this.getCounter(account.address);\n const nft = {\n itemType: 2 as const,\n token: params.asset.contract as `0x${string}`,\n identifier: BigInt(params.asset.tokenId),\n amount: 1n,\n };\n const payment = {\n itemType: (params.paymentToken === NATIVE_SENTINEL ? 0 : 1) as 0 | 1,\n token: (params.paymentToken === NATIVE_SENTINEL\n ? \"0x0000000000000000000000000000000000000000\"\n : params.paymentToken) as `0x${string}`,\n identifier: 0n,\n amount: BigInt(params.amount),\n };\n const order: EvmOrderParameters =\n params.side === \"listing\"\n ? {\n offerer: account.address,\n offer: nft,\n consideration: { ...payment, recipient: account.address },\n ...commonFields(params),\n }\n : {\n offerer: account.address,\n offer: payment,\n consideration: { ...nft, recipient: account.address },\n ...commonFields(params),\n };\n order.counter = counter;\n\n const signature = await signer.signTypedData({\n account,\n domain: evmOrderDomain(this.chainId, this.contract),\n types: EVM_ORDER_TYPES,\n primaryType: \"OrderParameters\",\n message: order,\n });\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"registerOrder\",\n args: [order, signature],\n });\n return { txHash, orderRef: evmOrderDigest(this.chainId, this.contract, order) };\n }\n\n async fulfillOrder(\n signer: WalletClient,\n orderRef: OrderRef,\n opts?: { quantity?: string; value?: string },\n ): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const value = opts?.value ? BigInt(opts.value) : undefined;\n const txHash =\n this.variant === \"1155\"\n ? await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenue1155ABI,\n functionName: \"fulfillOrder\",\n args: [orderRef as `0x${string}`, BigInt(opts?.quantity ?? \"1\")],\n value,\n })\n : await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"fulfillOrder\",\n args: [orderRef as `0x${string}`],\n value,\n });\n return { txHash };\n }\n\n async cancelOrder(signer: WalletClient, orderRef: OrderRef): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"cancelOrder\",\n args: [orderRef as `0x${string}`],\n });\n return { txHash };\n }\n\n async incrementCounter(signer: WalletClient): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"incrementCounter\",\n args: [],\n });\n return { txHash };\n }\n\n async getOrderDetails(orderRef: OrderRef): Promise<unknown> {\n return this.publicClient.readContract({\n address: this.contract,\n abi: [\n {\n type: \"function\",\n name: \"getOrderDetails\",\n stateMutability: \"view\",\n inputs: [{ name: \"orderHash\", type: \"bytes32\" }],\n outputs: [{ name: \"\", type: \"bytes\" }],\n },\n ] as const,\n functionName: \"getOrderDetails\",\n args: [orderRef as `0x${string}`],\n });\n }\n\n async getCounter(address: string): Promise<bigint> {\n return this.publicClient.readContract({\n address: this.contract,\n abi: EvmVenueABI,\n functionName: \"getCounter\",\n args: [address as `0x${string}`],\n });\n }\n}\n\nexport const NATIVE_SENTINEL = \"native\";\n\nfunction commonFields(params: RegisterOrderParams) {\n return {\n royaltyMaxBps: BigInt(params.royaltyMaxBps),\n startTime: BigInt(params.startTime),\n endTime: BigInt(params.endTime),\n salt: BigInt(params.salt),\n counter: 0n,\n };\n}\n\nfunction maybeCoords(chain: EvmChain): EvmCoordinates | undefined {\n try {\n return getCoordinates(chain);\n } catch {\n return undefined;\n }\n}\n","import type { PublicClient, WalletClient } from \"viem\";\nimport { parseEventLogs } from \"viem\";\nimport type { Chain } from \"../chains.js\";\nimport { getCoordinates, type EvmCoordinates } from \"../chains.js\";\nimport type { AdapterTxResult, CreateCollectionInput, IssuanceAdapter, MintInput } from \"../adapters/types.js\";\nimport { EvmMipCollectionABI, EvmMipRegistryABI } from \"./abis.js\";\nimport type { EvmChain } from \"./venue.js\";\n\nexport interface EvmIssuanceOptions {\n chain: EvmChain;\n publicClient: PublicClient;\n\n registry?: `0x${string}`;\n}\n\nexport class EvmIssuance implements IssuanceAdapter<WalletClient> {\n readonly chain: Chain;\n private readonly registry: `0x${string}`;\n private readonly publicClient: PublicClient;\n\n constructor(opts: EvmIssuanceOptions) {\n this.chain = opts.chain;\n this.publicClient = opts.publicClient;\n const registry = opts.registry ?? maybeCoords(opts.chain)?.mipRegistry;\n if (!registry) throw new Error(`No MIP registry configured for ${opts.chain}`);\n this.registry = registry;\n }\n\n async createCollection(\n signer: WalletClient,\n params: CreateCollectionInput,\n ): Promise<AdapterTxResult & { collection: string }> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: this.registry,\n abi: EvmMipRegistryABI,\n functionName: \"createCollection\",\n args: [params.name, params.symbol, params.baseUri, BigInt(params.royaltyBps)],\n });\n const receipt = await this.publicClient.waitForTransactionReceipt({ hash: txHash });\n const [created] = parseEventLogs({\n abi: EvmMipRegistryABI,\n eventName: \"CollectionCreated\",\n logs: receipt.logs,\n });\n return { txHash, collection: created?.args.collection ?? \"\" };\n }\n\n async mint(signer: WalletClient, params: MintInput): Promise<AdapterTxResult & { tokenId: string }> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: params.collection as `0x${string}`,\n abi: EvmMipCollectionABI,\n functionName: \"mint\",\n args: [params.recipient as `0x${string}`, params.tokenUri],\n });\n const receipt = await this.publicClient.waitForTransactionReceipt({ hash: txHash });\n const [minted] = parseEventLogs({\n abi: EvmMipCollectionABI,\n eventName: \"TokenMinted\",\n logs: receipt.logs,\n });\n return { txHash, tokenId: (minted?.args.tokenId ?? 0n).toString() };\n }\n\n async batchMint(\n signer: WalletClient,\n params: { collection: string; recipients: string[]; tokenUris: string[] },\n ): Promise<AdapterTxResult> {\n const account = signer.account;\n if (!account) throw new Error(\"WalletClient has no account\");\n const txHash = await signer.writeContract({\n account,\n chain: signer.chain,\n address: params.collection as `0x${string}`,\n abi: EvmMipCollectionABI,\n functionName: \"batchMint\",\n args: [params.recipients as `0x${string}`[], params.tokenUris],\n });\n return { txHash };\n }\n}\n\nfunction maybeCoords(chain: EvmChain): EvmCoordinates | undefined {\n try {\n return getCoordinates(chain);\n } catch {\n return undefined;\n }\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7G7YIGXJ_cjs = require('./chunk-7G7YIGXJ.cjs');
|
|
4
4
|
var chunk7EYJC5CB_cjs = require('./chunk-7EYJC5CB.cjs');
|
|
5
|
+
require('./chunk-Q7SFCCGT.cjs');
|
|
5
6
|
var hmac_js = require('@noble/hashes/hmac.js');
|
|
6
7
|
var sha2_js = require('@noble/hashes/sha2.js');
|
|
7
8
|
var base = require('@scure/base');
|
|
@@ -894,287 +895,287 @@ function uploadError(file, kind = "image") {
|
|
|
894
895
|
|
|
895
896
|
Object.defineProperty(exports, "ApiClient", {
|
|
896
897
|
enumerable: true,
|
|
897
|
-
get: function () { return
|
|
898
|
+
get: function () { return chunk7G7YIGXJ_cjs.ApiClient; }
|
|
898
899
|
});
|
|
899
900
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
900
901
|
enumerable: true,
|
|
901
|
-
get: function () { return
|
|
902
|
+
get: function () { return chunk7G7YIGXJ_cjs.DEFAULT_CURRENCY; }
|
|
902
903
|
});
|
|
903
904
|
Object.defineProperty(exports, "FeeConfigSchema", {
|
|
904
905
|
enumerable: true,
|
|
905
|
-
get: function () { return
|
|
906
|
+
get: function () { return chunk7G7YIGXJ_cjs.FeeConfigSchema; }
|
|
906
907
|
});
|
|
907
908
|
Object.defineProperty(exports, "MedialaneApiError", {
|
|
908
909
|
enumerable: true,
|
|
909
|
-
get: function () { return
|
|
910
|
+
get: function () { return chunk7G7YIGXJ_cjs.MedialaneApiError; }
|
|
910
911
|
});
|
|
911
912
|
Object.defineProperty(exports, "PasskeyCancelledError", {
|
|
912
913
|
enumerable: true,
|
|
913
|
-
get: function () { return
|
|
914
|
+
get: function () { return chunk7G7YIGXJ_cjs.PasskeyCancelledError; }
|
|
914
915
|
});
|
|
915
916
|
Object.defineProperty(exports, "PasskeyUnsupportedError", {
|
|
916
917
|
enumerable: true,
|
|
917
|
-
get: function () { return
|
|
918
|
+
get: function () { return chunk7G7YIGXJ_cjs.PasskeyUnsupportedError; }
|
|
918
919
|
});
|
|
919
920
|
Object.defineProperty(exports, "STARKNET_COLLECTION_1155_CLASS_HASH", {
|
|
920
921
|
enumerable: true,
|
|
921
|
-
get: function () { return
|
|
922
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_COLLECTION_1155_CLASS_HASH; }
|
|
922
923
|
});
|
|
923
924
|
Object.defineProperty(exports, "STARKNET_COLLECTION_1155_CONTRACT", {
|
|
924
925
|
enumerable: true,
|
|
925
|
-
get: function () { return
|
|
926
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_COLLECTION_1155_CONTRACT; }
|
|
926
927
|
});
|
|
927
928
|
Object.defineProperty(exports, "STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH", {
|
|
928
929
|
enumerable: true,
|
|
929
|
-
get: function () { return
|
|
930
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH; }
|
|
930
931
|
});
|
|
931
932
|
Object.defineProperty(exports, "STARKNET_COLLECTION_1155_START_BLOCK", {
|
|
932
933
|
enumerable: true,
|
|
933
|
-
get: function () { return
|
|
934
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_COLLECTION_1155_START_BLOCK; }
|
|
934
935
|
});
|
|
935
936
|
Object.defineProperty(exports, "STARKNET_COLLECTION_721_CONTRACT", {
|
|
936
937
|
enumerable: true,
|
|
937
|
-
get: function () { return
|
|
938
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_COLLECTION_721_CONTRACT; }
|
|
938
939
|
});
|
|
939
940
|
Object.defineProperty(exports, "STARKNET_COLLECTION_721_START_BLOCK", {
|
|
940
941
|
enumerable: true,
|
|
941
|
-
get: function () { return
|
|
942
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_COLLECTION_721_START_BLOCK; }
|
|
942
943
|
});
|
|
943
944
|
Object.defineProperty(exports, "STARKNET_CREATOR_COIN_CLASS_HASH", {
|
|
944
945
|
enumerable: true,
|
|
945
|
-
get: function () { return
|
|
946
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_CREATOR_COIN_CLASS_HASH; }
|
|
946
947
|
});
|
|
947
948
|
Object.defineProperty(exports, "STARKNET_CREATOR_COIN_EKUBO_LAUNCHER", {
|
|
948
949
|
enumerable: true,
|
|
949
|
-
get: function () { return
|
|
950
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_CREATOR_COIN_EKUBO_LAUNCHER; }
|
|
950
951
|
});
|
|
951
952
|
Object.defineProperty(exports, "STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH", {
|
|
952
953
|
enumerable: true,
|
|
953
|
-
get: function () { return
|
|
954
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH; }
|
|
954
955
|
});
|
|
955
956
|
Object.defineProperty(exports, "STARKNET_CREATOR_COIN_FACTORY_CONTRACT", {
|
|
956
957
|
enumerable: true,
|
|
957
|
-
get: function () { return
|
|
958
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_CREATOR_COIN_FACTORY_CONTRACT; }
|
|
958
959
|
});
|
|
959
960
|
Object.defineProperty(exports, "STARKNET_CREATOR_COIN_START_BLOCK", {
|
|
960
961
|
enumerable: true,
|
|
961
|
-
get: function () { return
|
|
962
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_CREATOR_COIN_START_BLOCK; }
|
|
962
963
|
});
|
|
963
964
|
Object.defineProperty(exports, "STARKNET_DATA_TOKENIZATION_721_CONTRACT", {
|
|
964
965
|
enumerable: true,
|
|
965
|
-
get: function () { return
|
|
966
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_DATA_TOKENIZATION_721_CONTRACT; }
|
|
966
967
|
});
|
|
967
968
|
Object.defineProperty(exports, "STARKNET_DROP_COLLECTION_CLASS_HASH", {
|
|
968
969
|
enumerable: true,
|
|
969
|
-
get: function () { return
|
|
970
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_DROP_COLLECTION_CLASS_HASH; }
|
|
970
971
|
});
|
|
971
972
|
Object.defineProperty(exports, "STARKNET_DROP_FACTORY_CONTRACT", {
|
|
972
973
|
enumerable: true,
|
|
973
|
-
get: function () { return
|
|
974
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_DROP_FACTORY_CONTRACT; }
|
|
974
975
|
});
|
|
975
976
|
Object.defineProperty(exports, "STARKNET_DROP_FACTORY_START_BLOCK", {
|
|
976
977
|
enumerable: true,
|
|
977
|
-
get: function () { return
|
|
978
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_DROP_FACTORY_START_BLOCK; }
|
|
978
979
|
});
|
|
979
980
|
Object.defineProperty(exports, "STARKNET_EKUBO_CORE", {
|
|
980
981
|
enumerable: true,
|
|
981
|
-
get: function () { return
|
|
982
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_EKUBO_CORE; }
|
|
982
983
|
});
|
|
983
984
|
Object.defineProperty(exports, "STARKNET_GENESIS_MINT_CONTRACT", {
|
|
984
985
|
enumerable: true,
|
|
985
|
-
get: function () { return
|
|
986
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_GENESIS_MINT_CONTRACT; }
|
|
986
987
|
});
|
|
987
988
|
Object.defineProperty(exports, "STARKNET_GENESIS_NFT_URI", {
|
|
988
989
|
enumerable: true,
|
|
989
|
-
get: function () { return
|
|
990
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_GENESIS_NFT_URI; }
|
|
990
991
|
});
|
|
991
992
|
Object.defineProperty(exports, "STARKNET_IPCOLLECTION_CLASS_HASH", {
|
|
992
993
|
enumerable: true,
|
|
993
|
-
get: function () { return
|
|
994
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IPCOLLECTION_CLASS_HASH; }
|
|
994
995
|
});
|
|
995
996
|
Object.defineProperty(exports, "STARKNET_IPNFT_CLASS_HASH", {
|
|
996
997
|
enumerable: true,
|
|
997
|
-
get: function () { return
|
|
998
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IPNFT_CLASS_HASH; }
|
|
998
999
|
});
|
|
999
1000
|
Object.defineProperty(exports, "STARKNET_IP_CLUB_COLLECTION_CLASS_HASH", {
|
|
1000
1001
|
enumerable: true,
|
|
1001
|
-
get: function () { return
|
|
1002
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IP_CLUB_COLLECTION_CLASS_HASH; }
|
|
1002
1003
|
});
|
|
1003
1004
|
Object.defineProperty(exports, "STARKNET_IP_CLUB_FACTORY_CONTRACT", {
|
|
1004
1005
|
enumerable: true,
|
|
1005
|
-
get: function () { return
|
|
1006
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IP_CLUB_FACTORY_CONTRACT; }
|
|
1006
1007
|
});
|
|
1007
1008
|
Object.defineProperty(exports, "STARKNET_IP_SPONSORSHIP_CLASS_HASH", {
|
|
1008
1009
|
enumerable: true,
|
|
1009
|
-
get: function () { return
|
|
1010
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IP_SPONSORSHIP_CLASS_HASH; }
|
|
1010
1011
|
});
|
|
1011
1012
|
Object.defineProperty(exports, "STARKNET_IP_SPONSORSHIP_CONTRACT", {
|
|
1012
1013
|
enumerable: true,
|
|
1013
|
-
get: function () { return
|
|
1014
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IP_SPONSORSHIP_CONTRACT; }
|
|
1014
1015
|
});
|
|
1015
1016
|
Object.defineProperty(exports, "STARKNET_IP_TICKETS_FACTORY_CONTRACT", {
|
|
1016
1017
|
enumerable: true,
|
|
1017
|
-
get: function () { return
|
|
1018
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IP_TICKETS_FACTORY_CONTRACT; }
|
|
1018
1019
|
});
|
|
1019
1020
|
Object.defineProperty(exports, "STARKNET_IP_TICKET_COLLECTION_CLASS_HASH", {
|
|
1020
1021
|
enumerable: true,
|
|
1021
|
-
get: function () { return
|
|
1022
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_IP_TICKET_COLLECTION_CLASS_HASH; }
|
|
1022
1023
|
});
|
|
1023
1024
|
Object.defineProperty(exports, "STARKNET_MARKETPLACE_1155_CLASS_HASH", {
|
|
1024
1025
|
enumerable: true,
|
|
1025
|
-
get: function () { return
|
|
1026
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_MARKETPLACE_1155_CLASS_HASH; }
|
|
1026
1027
|
});
|
|
1027
1028
|
Object.defineProperty(exports, "STARKNET_MARKETPLACE_1155_CONTRACT", {
|
|
1028
1029
|
enumerable: true,
|
|
1029
|
-
get: function () { return
|
|
1030
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_MARKETPLACE_1155_CONTRACT; }
|
|
1030
1031
|
});
|
|
1031
1032
|
Object.defineProperty(exports, "STARKNET_MARKETPLACE_1155_START_BLOCK", {
|
|
1032
1033
|
enumerable: true,
|
|
1033
|
-
get: function () { return
|
|
1034
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_MARKETPLACE_1155_START_BLOCK; }
|
|
1034
1035
|
});
|
|
1035
1036
|
Object.defineProperty(exports, "STARKNET_MARKETPLACE_721_CLASS_HASH", {
|
|
1036
1037
|
enumerable: true,
|
|
1037
|
-
get: function () { return
|
|
1038
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_MARKETPLACE_721_CLASS_HASH; }
|
|
1038
1039
|
});
|
|
1039
1040
|
Object.defineProperty(exports, "STARKNET_MARKETPLACE_721_CONTRACT", {
|
|
1040
1041
|
enumerable: true,
|
|
1041
|
-
get: function () { return
|
|
1042
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_MARKETPLACE_721_CONTRACT; }
|
|
1042
1043
|
});
|
|
1043
1044
|
Object.defineProperty(exports, "STARKNET_MARKETPLACE_721_START_BLOCK", {
|
|
1044
1045
|
enumerable: true,
|
|
1045
|
-
get: function () { return
|
|
1046
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_MARKETPLACE_721_START_BLOCK; }
|
|
1046
1047
|
});
|
|
1047
1048
|
Object.defineProperty(exports, "STARKNET_NFTCOMMENTS_CONTRACT", {
|
|
1048
1049
|
enumerable: true,
|
|
1049
|
-
get: function () { return
|
|
1050
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_NFTCOMMENTS_CONTRACT; }
|
|
1050
1051
|
});
|
|
1051
1052
|
Object.defineProperty(exports, "STARKNET_POP_COLLECTION_CLASS_HASH", {
|
|
1052
1053
|
enumerable: true,
|
|
1053
|
-
get: function () { return
|
|
1054
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_POP_COLLECTION_CLASS_HASH; }
|
|
1054
1055
|
});
|
|
1055
1056
|
Object.defineProperty(exports, "STARKNET_POP_FACTORY_CONTRACT", {
|
|
1056
1057
|
enumerable: true,
|
|
1057
|
-
get: function () { return
|
|
1058
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_POP_FACTORY_CONTRACT; }
|
|
1058
1059
|
});
|
|
1059
1060
|
Object.defineProperty(exports, "STARKNET_POP_FACTORY_START_BLOCK", {
|
|
1060
1061
|
enumerable: true,
|
|
1061
|
-
get: function () { return
|
|
1062
|
+
get: function () { return chunk7G7YIGXJ_cjs.STARKNET_POP_FACTORY_START_BLOCK; }
|
|
1062
1063
|
});
|
|
1063
1064
|
Object.defineProperty(exports, "SUPPORTED_TOKENS", {
|
|
1064
1065
|
enumerable: true,
|
|
1065
|
-
get: function () { return
|
|
1066
|
+
get: function () { return chunk7G7YIGXJ_cjs.SUPPORTED_TOKENS; }
|
|
1066
1067
|
});
|
|
1067
1068
|
Object.defineProperty(exports, "SUPPORTED_URL_CHAINS", {
|
|
1068
1069
|
enumerable: true,
|
|
1069
|
-
get: function () { return
|
|
1070
|
+
get: function () { return chunk7G7YIGXJ_cjs.SUPPORTED_URL_CHAINS; }
|
|
1070
1071
|
});
|
|
1071
1072
|
Object.defineProperty(exports, "UserFacingError", {
|
|
1072
1073
|
enumerable: true,
|
|
1073
|
-
get: function () { return
|
|
1074
|
+
get: function () { return chunk7G7YIGXJ_cjs.UserFacingError; }
|
|
1074
1075
|
});
|
|
1075
1076
|
Object.defineProperty(exports, "assetHref", {
|
|
1076
1077
|
enumerable: true,
|
|
1077
|
-
get: function () { return
|
|
1078
|
+
get: function () { return chunk7G7YIGXJ_cjs.assetHref; }
|
|
1078
1079
|
});
|
|
1079
1080
|
Object.defineProperty(exports, "chainFromSlug", {
|
|
1080
1081
|
enumerable: true,
|
|
1081
|
-
get: function () { return
|
|
1082
|
+
get: function () { return chunk7G7YIGXJ_cjs.chainFromSlug; }
|
|
1082
1083
|
});
|
|
1083
1084
|
Object.defineProperty(exports, "chainSlug", {
|
|
1084
1085
|
enumerable: true,
|
|
1085
|
-
get: function () { return
|
|
1086
|
+
get: function () { return chunk7G7YIGXJ_cjs.chainSlug; }
|
|
1086
1087
|
});
|
|
1087
1088
|
Object.defineProperty(exports, "coinHref", {
|
|
1088
1089
|
enumerable: true,
|
|
1089
|
-
get: function () { return
|
|
1090
|
+
get: function () { return chunk7G7YIGXJ_cjs.coinHref; }
|
|
1090
1091
|
});
|
|
1091
1092
|
Object.defineProperty(exports, "collectionHref", {
|
|
1092
1093
|
enumerable: true,
|
|
1093
|
-
get: function () { return
|
|
1094
|
+
get: function () { return chunk7G7YIGXJ_cjs.collectionHref; }
|
|
1094
1095
|
});
|
|
1095
1096
|
Object.defineProperty(exports, "dropHref", {
|
|
1096
1097
|
enumerable: true,
|
|
1097
|
-
get: function () { return
|
|
1098
|
+
get: function () { return chunk7G7YIGXJ_cjs.dropHref; }
|
|
1098
1099
|
});
|
|
1099
1100
|
Object.defineProperty(exports, "encodeU256", {
|
|
1100
1101
|
enumerable: true,
|
|
1101
|
-
get: function () { return
|
|
1102
|
+
get: function () { return chunk7G7YIGXJ_cjs.encodeU256; }
|
|
1102
1103
|
});
|
|
1103
1104
|
Object.defineProperty(exports, "formatAmount", {
|
|
1104
1105
|
enumerable: true,
|
|
1105
|
-
get: function () { return
|
|
1106
|
+
get: function () { return chunk7G7YIGXJ_cjs.formatAmount; }
|
|
1106
1107
|
});
|
|
1107
1108
|
Object.defineProperty(exports, "getListableTokens", {
|
|
1108
1109
|
enumerable: true,
|
|
1109
|
-
get: function () { return
|
|
1110
|
+
get: function () { return chunk7G7YIGXJ_cjs.getListableTokens; }
|
|
1110
1111
|
});
|
|
1111
1112
|
Object.defineProperty(exports, "getService", {
|
|
1112
1113
|
enumerable: true,
|
|
1113
|
-
get: function () { return
|
|
1114
|
+
get: function () { return chunk7G7YIGXJ_cjs.getService; }
|
|
1114
1115
|
});
|
|
1115
1116
|
Object.defineProperty(exports, "getServicesByCapability", {
|
|
1116
1117
|
enumerable: true,
|
|
1117
|
-
get: function () { return
|
|
1118
|
+
get: function () { return chunk7G7YIGXJ_cjs.getServicesByCapability; }
|
|
1118
1119
|
});
|
|
1119
1120
|
Object.defineProperty(exports, "getTokenByAddress", {
|
|
1120
1121
|
enumerable: true,
|
|
1121
|
-
get: function () { return
|
|
1122
|
+
get: function () { return chunk7G7YIGXJ_cjs.getTokenByAddress; }
|
|
1122
1123
|
});
|
|
1123
1124
|
Object.defineProperty(exports, "getTokenBySymbol", {
|
|
1124
1125
|
enumerable: true,
|
|
1125
|
-
get: function () { return
|
|
1126
|
+
get: function () { return chunk7G7YIGXJ_cjs.getTokenBySymbol; }
|
|
1126
1127
|
});
|
|
1127
1128
|
Object.defineProperty(exports, "hasCapability", {
|
|
1128
1129
|
enumerable: true,
|
|
1129
|
-
get: function () { return
|
|
1130
|
+
get: function () { return chunk7G7YIGXJ_cjs.hasCapability; }
|
|
1130
1131
|
});
|
|
1131
1132
|
Object.defineProperty(exports, "isServiceId", {
|
|
1132
1133
|
enumerable: true,
|
|
1133
|
-
get: function () { return
|
|
1134
|
+
get: function () { return chunk7G7YIGXJ_cjs.isServiceId; }
|
|
1134
1135
|
});
|
|
1135
1136
|
Object.defineProperty(exports, "listServices", {
|
|
1136
1137
|
enumerable: true,
|
|
1137
|
-
get: function () { return
|
|
1138
|
+
get: function () { return chunk7G7YIGXJ_cjs.listServices; }
|
|
1138
1139
|
});
|
|
1139
1140
|
Object.defineProperty(exports, "normalizeAddress", {
|
|
1140
1141
|
enumerable: true,
|
|
1141
|
-
get: function () { return
|
|
1142
|
+
get: function () { return chunk7G7YIGXJ_cjs.normalizeAddress; }
|
|
1142
1143
|
});
|
|
1143
1144
|
Object.defineProperty(exports, "normalizeHash", {
|
|
1144
1145
|
enumerable: true,
|
|
1145
|
-
get: function () { return
|
|
1146
|
+
get: function () { return chunk7G7YIGXJ_cjs.normalizeHash; }
|
|
1146
1147
|
});
|
|
1147
1148
|
Object.defineProperty(exports, "parseAmount", {
|
|
1148
1149
|
enumerable: true,
|
|
1149
|
-
get: function () { return
|
|
1150
|
+
get: function () { return chunk7G7YIGXJ_cjs.parseAmount; }
|
|
1150
1151
|
});
|
|
1151
1152
|
Object.defineProperty(exports, "profileHref", {
|
|
1152
1153
|
enumerable: true,
|
|
1153
|
-
get: function () { return
|
|
1154
|
+
get: function () { return chunk7G7YIGXJ_cjs.profileHref; }
|
|
1154
1155
|
});
|
|
1155
1156
|
Object.defineProperty(exports, "resolveAppFeeConfig", {
|
|
1156
1157
|
enumerable: true,
|
|
1157
|
-
get: function () { return
|
|
1158
|
+
get: function () { return chunk7G7YIGXJ_cjs.resolveAppFeeConfig; }
|
|
1158
1159
|
});
|
|
1159
1160
|
Object.defineProperty(exports, "resolveConfig", {
|
|
1160
1161
|
enumerable: true,
|
|
1161
|
-
get: function () { return
|
|
1162
|
+
get: function () { return chunk7G7YIGXJ_cjs.resolveConfig; }
|
|
1162
1163
|
});
|
|
1163
1164
|
Object.defineProperty(exports, "resolveFeeConfig", {
|
|
1164
1165
|
enumerable: true,
|
|
1165
|
-
get: function () { return
|
|
1166
|
+
get: function () { return chunk7G7YIGXJ_cjs.resolveFeeConfig; }
|
|
1166
1167
|
});
|
|
1167
1168
|
Object.defineProperty(exports, "shortenAddress", {
|
|
1168
1169
|
enumerable: true,
|
|
1169
|
-
get: function () { return
|
|
1170
|
+
get: function () { return chunk7G7YIGXJ_cjs.shortenAddress; }
|
|
1170
1171
|
});
|
|
1171
1172
|
Object.defineProperty(exports, "stringifyBigInts", {
|
|
1172
1173
|
enumerable: true,
|
|
1173
|
-
get: function () { return
|
|
1174
|
+
get: function () { return chunk7G7YIGXJ_cjs.stringifyBigInts; }
|
|
1174
1175
|
});
|
|
1175
1176
|
Object.defineProperty(exports, "u256ToBigInt", {
|
|
1176
1177
|
enumerable: true,
|
|
1177
|
-
get: function () { return
|
|
1178
|
+
get: function () { return chunk7G7YIGXJ_cjs.u256ToBigInt; }
|
|
1178
1179
|
});
|
|
1179
1180
|
Object.defineProperty(exports, "CHAINS", {
|
|
1180
1181
|
enumerable: true,
|