UNPKG

@polkadot/types

Version:
31 lines (30 loc) 978 B
import type { Compact, Enum, Struct } from '@polkadot/types-codec'; import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; /** @name AssetOptions */ export interface AssetOptions extends Struct { readonly initalIssuance: Compact<Balance>; readonly permissions: PermissionLatest; } /** @name Owner */ export interface Owner extends Enum { readonly isNone: boolean; readonly isAddress: boolean; readonly asAddress: AccountId; readonly type: 'None' | 'Address'; } /** @name PermissionLatest */ export interface PermissionLatest extends PermissionsV1 { } /** @name PermissionsV1 */ export interface PermissionsV1 extends Struct { readonly update: Owner; readonly mint: Owner; readonly burn: Owner; } /** @name PermissionVersions */ export interface PermissionVersions extends Enum { readonly isV1: boolean; readonly asV1: PermissionsV1; readonly type: 'V1'; } export type PHANTOM_GENERICASSET = 'genericAsset';