UNPKG

n8n-nodes-wax

Version:

n8n Community Node Package for the WAX Blockchain

18 lines (17 loc) 1.57 kB
import { IExecuteFunctions } from 'n8n-workflow'; import type RpcApi from 'atomicassets/build/API/Rpc'; import type { ActionGenerator, AttributeMap, Format } from 'atomicassets/build/Actions/Generator'; export type { RpcApi, ActionGenerator, AttributeMap, Format }; export declare const ATOMIC_CONTRACT = "atomicassets"; export declare function createAtomicRpc(context: IExecuteFunctions, endpoint: string, contract?: string): RpcApi; export declare function createActionGenerator(context: IExecuteFunctions, contract: string): ActionGenerator; export declare function ensureAuthorized(context: IExecuteFunctions, rpc: RpcApi, collectionName: string, account: string): Promise<void>; export declare function fetchSchemaFormat(context: IExecuteFunctions, rpc: RpcApi, collectionName: string, schemaName: string): Promise<Format[]>; export declare function ensureTemplateExists(context: IExecuteFunctions, rpc: RpcApi, collectionName: string, templateId: string): Promise<{ schema_name: string; }>; export declare function buildAttributeMap(context: IExecuteFunctions, raw: unknown, format: Format[], field: string): AttributeMap; export declare function parseSchemaFormat(context: IExecuteFunctions, raw: unknown, field: string): Format[]; export declare function parseTokensToBack(context: IExecuteFunctions, raw: unknown, field: string): string[]; export declare function requireTemplateId(context: IExecuteFunctions, raw: unknown, field: string): string; export declare function requireMaxSupply(context: IExecuteFunctions, raw: unknown, field: string): string;