UNPKG

@wormhole-foundation/sdk-algorand

Version:

SDK for Algorand, used in conjunction with @wormhole-foundation/sdk

15 lines 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.safeBigIntToNumber = exports._platform = void 0; /** * Runtime value for the Algorand Platform */ exports._platform = "Algorand"; function safeBigIntToNumber(b) { if (b < BigInt(Number.MIN_SAFE_INTEGER) || b > BigInt(Number.MAX_SAFE_INTEGER)) { throw new Error("Integer is unsafe"); } return Number(b); } exports.safeBigIntToNumber = safeBigIntToNumber; //# sourceMappingURL=types.js.map