@unique.vc/udm.js
Version:
UDM - Unique Delegation Manager is a simple yet efficient solution allowing to bridge self-custody and user experience, have best from both worlds and potentially extend the reach of the industry.
19 lines (18 loc) • 1.12 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.emptyWallet = void 0;
const emptyWallet = (publicKey) => ({
signTransaction: (tx) => __awaiter(void 0, void 0, void 0, function* () { return new Promise(() => tx); }),
signAllTransactions: (txs) => __awaiter(void 0, void 0, void 0, function* () { return new Promise(() => txs); }),
publicKey: publicKey,
});
exports.emptyWallet = emptyWallet;