Options
All
  • Public
  • Public/Protected
  • All
Menu

IQ Metaverse Protocol JS SDK

Index

Type Aliases

AccountBalance: Pick<Accounts.BalanceStructOutput, "amount"> & { token: AssetType }
Address: string
Asset: { id: AssetId; value: BigNumberish }

Type declaration

  • id: AssetId
  • value: BigNumberish
AssetClassConfig: { controller: AccountId; vault: AccountId }

Type declaration

  • controller: AccountId
  • vault: AccountId
AssetListingParams: { assets: Asset[]; immediatePayout: boolean; maxLockPeriod: BigNumberish; params: { configurator: AccountId; lister: AccountId } }

Type declaration

  • assets: Asset[]
  • immediatePayout: boolean
  • maxLockPeriod: BigNumberish
  • params: { configurator: AccountId; lister: AccountId }
    • configurator: AccountId
    • lister: AccountId
AssetNamespace: "erc20" | "erc721" | "erc1155"
BaseToken: { decimals: number; name: string; symbol: string; type: AssetType }

Type declaration

  • decimals: number
  • name: string
  • symbol: string
  • type: AssetType
DelegatedSignature: { r: string; s: string; signature: string; signatureEncodedForProtocol: BytesLike; v: number }

Type declaration

  • r: string
  • s: string
  • signature: string
  • signatureEncodedForProtocol: BytesLike
  • v: number
DelegatedSignatureWithNonce: { delegatedSignature: DelegatedSignature; nonce: BigNumber }

Type declaration

IQSpaceParams: { signer: Signer }

Type declaration

  • signer: Signer
Listing: Pick<Listings.ListingStructOutput, "maxLockPeriod" | "lockedTill" | "immediatePayout" | "enabled" | "paused"> & { assets: Asset[]; beneficiary: AccountId; configurator: AccountId; id: BigNumber; lister: AccountId }
ListingBatchTransaction: { trackingIds: string[]; transaction: ContractTransaction }

Type declaration

  • trackingIds: string[]
  • transaction: ContractTransaction
ListingConfiguratorPreset: { enabled: boolean; id: BytesLike; implementation: AccountId }

Type declaration

  • enabled: boolean
  • id: BytesLike
  • implementation: AccountId
ListingExtendedDelegatedSignatureData: { assetListingParams: AssetListingParams; listingTerms: IListingTermsRegistry.ListingTermsStruct; salt: string; universeId: BigNumberish }

Type declaration

  • assetListingParams: AssetListingParams
  • listingTerms: IListingTermsRegistry.ListingTermsStruct
  • salt: string
  • universeId: BigNumberish
ListingExtendedDelegatedSignatureVerificationData: ListingExtendedDelegatedSignatureData & { delegatedSignatureWithNonce: DelegatedSignatureWithNonce }
ListingParams: { assetListingParams: AssetListingParams; listingTerms: IListingTermsRegistry.ListingTermsStruct; universeId: BigNumberish }

Type declaration

  • assetListingParams: AssetListingParams
  • listingTerms: IListingTermsRegistry.ListingTermsStruct
  • universeId: BigNumberish
ListingStrategyConfig: { controller: AccountId; taxStrategyId: BytesLike }

Type declaration

  • controller: AccountId
  • taxStrategyId: BytesLike
ListingTermsInfo: IListingTermsRegistry.ListingTermsStruct & { id: BigNumber }
ListingTermsInfoWithParams: ListingTermsInfo & ListingTermsQueryParams
ListingTermsQueryParams: { listingId: BigNumberish; universeId: BigNumberish; warper: AssetType }

Type declaration

  • listingId: BigNumberish
  • universeId: BigNumberish
  • warper: AssetType
RegisteredWarper: Pick<Warpers.WarperStructOutput, "name" | "universeId" | "paused"> & { original: AssetType; self: AssetType }
RentalAgreement: Pick<Rentings.AgreementStructOutput, "universeId" | "collectionId" | "listingId" | "startTime" | "endTime"> & { agreementTerms: AgreementTerms; id: BigNumber; renter: AccountId; warpedAssets: Asset[] }
RentalFees: Pick<Rentings.RentalFeesStructOutput, "total" | "protocolFee" | "listerBaseFee" | "listerPremium" | "universeBaseFee" | "universePremium">
RentalStatus: "none" | "available" | "rented"
RentingEstimationParams: Pick<Rentings.ParamsStruct, "listingId" | "rentalPeriod" | "listingTermsId"> & { paymentToken: AssetType; renter: AccountId; selectedConfiguratorListingTerms?: IListingTermsRegistry.ListingTermsStruct; warper: AssetType }
RentingExtendedDelegatedSignatureData: { params: RentingParams; salt: string }

Type declaration

RentingExtendedDelegatedSignatureVerificationData: RentingExtendedDelegatedSignatureData & { delegatedSignatureWithNonce: DelegatedSignatureWithNonce }
RentingParams: RentingEstimationParams & { maxPaymentAmount: BigNumberish; tokenQuote?: BytesLike; tokenQuoteSignature?: BytesLike }
SignerData: { accountId: AccountId; address: string; signer: Signer }

Type declaration

  • accountId: AccountId
  • address: string
  • signer: Signer
TaxStrategyConfig: { controller: AccountId }

Type declaration

  • controller: AccountId
TaxTermsQueryParams: { taxStrategyId: BytesLike; universeId: BigNumberish; warper: AssetType }

Type declaration

  • taxStrategyId: BytesLike
  • universeId: BigNumberish
  • warper: AssetType
TrackedListingParams: ListingParams & { trackingId: string }
UniverseInfo: { id: BigNumber; name: string; paymentTokens: AccountId[] }

Type declaration

  • id: BigNumber
  • name: string
  • paymentTokens: AccountId[]
UniverseParams: { name: string; paymentTokens: AccountId[] }

Type declaration

  • name: string
  • paymentTokens: AccountId[]
WarperPreset: { enabled: boolean; id: BytesLike; implementation: AccountId }

Type declaration

  • enabled: boolean
  • id: BytesLike
  • implementation: AccountId
WarperRentingConstraints: { availabilityPeriod?: { end: number; start: number }; rentalPeriod?: { max: number; min: number } }

Type declaration

  • Optional availabilityPeriod?: { end: number; start: number }
    • end: number
    • start: number
  • Optional rentalPeriod?: { max: number; min: number }
    • max: number
    • min: number

Functions

  • createAsset(namespace: AssetNamespace, assetAccountId: AccountId, tokenId: BigNumberish, value?: BigNumberish): Asset
  • Create asset (for on-chain encoding)

    Parameters

    • namespace: AssetNamespace

      Asset namespace

    • assetAccountId: AccountId

      Asset account ID

    • tokenId: BigNumberish

      Token ID

    • value: BigNumberish = 1

      The amount of tokens (always 1 for ERC721)

    Returns Asset

    Asset

Generated using TypeDoc