@ledgerhq/coin-canton
Version:
58 lines • 2.23 kB
JavaScript
import { craftTransactionData } from "@ledgerhq/coin-module-framework/logic/craftTransactionData";
import { validateAddress } from "../bridge/validateAddress";
import { combine } from "../common-logic/transaction/combine";
import coinConfig from "../config";
export function createApi(config) {
coinConfig.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,
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,
craftTransactionData,
};
}
//# sourceMappingURL=index.js.map