UNPKG

@ledgerhq/coin-canton

Version:
64 lines 2.6 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createApi = createApi; const craftTransactionData_1 = require("@ledgerhq/coin-module-framework/logic/craftTransactionData"); const validateAddress_1 = require("../bridge/validateAddress"); const combine_1 = require("../common-logic/transaction/combine"); const config_1 = __importDefault(require("../config")); function createApi(config) { config_1.default.setCoinConfig(() => ({ ...config, status: { type: "active" } })); return { async call() { throw new Error("call is not supported"); }, broadcast: (_tx) => { throw new Error("broadcast is not supported"); }, combine: combine_1.combine, craftTransaction(_transactionIntent, _customFees) { throw new Error("craftTransaction is not supported"); }, craftRawTransaction: (_transaction, _sender, _publicKey, _sequence) => { throw new Error("craftRawTransaction is not supported"); }, estimateFees(_transactionIntent) { throw new Error("estimateFees is not supported"); }, getBalance(_address) { throw new Error("getBalance is not supported"); }, lastBlock() { throw new Error("listOperations is not supported"); }, listOperations(_address, _options) { throw new Error("listOperations is not supported"); }, getBlock(_height) { throw new Error("getBlock is not supported"); }, getBlockInfo(_height) { throw new Error("getBlockInfo is not supported"); }, getStakes(_address, _cursor) { throw new Error("getStakes is not supported"); }, getRewards(_address, _cursor) { throw new Error("getRewards is not supported"); }, getValidators(_cursor) { throw new Error("getValidators is not supported"); }, validateIntent: async (_transactionIntent, _balances, _customFees) => { throw new Error("validateIntent is not supported"); }, getNextSequence: async (_address) => { throw new Error("getNextSequence is not supported"); }, validateAddress: validateAddress_1.validateAddress, craftTransactionData: craftTransactionData_1.craftTransactionData, }; } //# sourceMappingURL=index.js.map