UNPKG

@near-js/accounts

Version:

Classes encapsulating account-specific functionality

45 lines (44 loc) 1.82 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var constants_exports = {}; __export(constants_exports, { MULTISIG_ALLOWANCE: () => MULTISIG_ALLOWANCE, MULTISIG_CHANGE_METHODS: () => MULTISIG_CHANGE_METHODS, MULTISIG_CONFIRM_METHODS: () => MULTISIG_CONFIRM_METHODS, MULTISIG_DEPOSIT: () => MULTISIG_DEPOSIT, MULTISIG_GAS: () => MULTISIG_GAS, MULTISIG_STORAGE_KEY: () => MULTISIG_STORAGE_KEY }); module.exports = __toCommonJS(constants_exports); var import_utils = require("@near-js/utils"); const MULTISIG_STORAGE_KEY = "__multisigRequest"; const MULTISIG_ALLOWANCE = BigInt((0, import_utils.parseNearAmount)("1")); const MULTISIG_GAS = 100000000000000n; const MULTISIG_DEPOSIT = 0n; const MULTISIG_CHANGE_METHODS = ["add_request", "add_request_and_confirm", "delete_request", "confirm"]; const MULTISIG_CONFIRM_METHODS = ["confirm"]; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { MULTISIG_ALLOWANCE, MULTISIG_CHANGE_METHODS, MULTISIG_CONFIRM_METHODS, MULTISIG_DEPOSIT, MULTISIG_GAS, MULTISIG_STORAGE_KEY });