Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oasis-std

Package Overview
Dependencies
Maintainers
17
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oasis-std - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

13

lib/src/abi.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.encodeEventTopic = exports.typedArraySchemaType = exports.Decoder = exports.Encoder = exports.doAbiDecode = exports.abiDecode = exports.abiEncode = void 0;
const buffer_1 = require("buffer");

@@ -66,3 +67,9 @@ const js_sha3_1 = require("js-sha3");

var _a;
const got = obj === null ? 'null' : (_a = obj.name) !== null && _a !== void 0 ? _a : obj.constructor.name;
let got;
if (obj === null)
got = 'null';
else if (obj === undefined)
got = 'undefined';
else
got = (_a = obj.name) !== null && _a !== void 0 ? _a : obj.constructor.name;
const schemaStr = stringifySchema(schema);

@@ -673,3 +680,3 @@ const expected = typeof parentTy !== 'undefined' ? parentTy(schemaStr) : schemaStr;

last * Math.pow(2, 24);
return BigInt(lo) + BigInt(hi) * Math.pow(BigInt(2), BigInt(32));
return BigInt(lo) + BigInt(hi) * BigInt(Math.pow(2, 32));
}

@@ -695,3 +702,3 @@ // TODO: Refactor to feross

this.buf[++offset] * Math.pow(2, 24);
return BigInt(lo) + BigInt(hi) * Math.pow(BigInt(2), BigInt(32));
return BigInt(lo) + BigInt(hi) * BigInt(Math.pow(2, 32));
}

@@ -698,0 +705,0 @@ readU8Array(length) {

@@ -36,2 +36,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Subscription = exports.Gateway = void 0;
const common_1 = require("@oasislabs/common");

@@ -38,0 +39,0 @@ const confidential_1 = require("@oasislabs/confidential");

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
var abi_1 = require("./abi");
exports.Decoder = abi_1.Decoder;
exports.Encoder = abi_1.Encoder;
exports.abiDecode = abi_1.abiDecode;
exports.abiEncode = abi_1.abiEncode;
exports.encodeEventTopic = abi_1.encodeEventTopic;
__export(require("./gateway"));
Object.defineProperty(exports, "Decoder", { enumerable: true, get: function () { return abi_1.Decoder; } });
Object.defineProperty(exports, "Encoder", { enumerable: true, get: function () { return abi_1.Encoder; } });
Object.defineProperty(exports, "abiDecode", { enumerable: true, get: function () { return abi_1.abiDecode; } });
Object.defineProperty(exports, "abiEncode", { enumerable: true, get: function () { return abi_1.abiEncode; } });
Object.defineProperty(exports, "encodeEventTopic", { enumerable: true, get: function () { return abi_1.encodeEventTopic; } });
__exportStar(require("./gateway"), exports);
var types_1 = require("./types");
exports.Address = types_1.Address;
exports.Balance = types_1.Balance;
exports.RpcError = types_1.RpcError;
exports.Map = types_1.OasisMap;
exports.Set = types_1.OasisSet;
exports.Result = types_1.Result;
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return types_1.Address; } });
Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return types_1.Balance; } });
Object.defineProperty(exports, "RpcError", { enumerable: true, get: function () { return types_1.RpcError; } });
Object.defineProperty(exports, "Map", { enumerable: true, get: function () { return types_1.OasisMap; } });
Object.defineProperty(exports, "Set", { enumerable: true, get: function () { return types_1.OasisSet; } });
Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return types_1.Result; } });
var logging_1 = require("./logging");
exports.oasisLogger = logging_1.oasisLogger;
exports.stackTrace = logging_1.stackTrace;
Object.defineProperty(exports, "oasisLogger", { enumerable: true, get: function () { return logging_1.oasisLogger; } });
Object.defineProperty(exports, "stackTrace", { enumerable: true, get: function () { return logging_1.stackTrace; } });
var utils_1 = require("./utils");
exports.decodeHex = utils_1.decodeHex;
exports.encodeHex = utils_1.encodeHex;
exports.fetchBytecode = utils_1.fetchBytecode;
Object.defineProperty(exports, "decodeHex", { enumerable: true, get: function () { return utils_1.decodeHex; } });
Object.defineProperty(exports, "encodeHex", { enumerable: true, get: function () { return utils_1.encodeHex; } });
Object.defineProperty(exports, "fetchBytecode", { enumerable: true, get: function () { return utils_1.fetchBytecode; } });
//# sourceMappingURL=index.js.map

@@ -7,2 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.stackTrace = exports.oasisLogger = exports.logLevelFromEnv = void 0;
const pino_1 = __importDefault(require("pino"));

@@ -9,0 +10,0 @@ const isNode = typeof process !== 'undefined' && !!((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node);

"use strict";
/* eslint-disable no-inner-declarations, @typescript-eslint/no-namespace */
Object.defineProperty(exports, "__esModule", { value: true });
exports.OasisSet = exports.OasisMap = exports.Result = exports.RpcError = exports.Balance = exports.Address = void 0;
const utils_1 = require("./utils");

@@ -5,0 +6,0 @@ const abi_1 = require("./abi");

@@ -15,2 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.unreachable = exports.typedArrayToBuffer = exports.fetchBytecode = exports.encodeHex = exports.decodeHex = void 0;
const buffer_1 = require("buffer");

@@ -17,0 +18,0 @@ const node_fetch_1 = __importDefault(require("node-fetch"));

{
"name": "oasis-std",
"version": "0.2.1",
"version": "0.2.2",
"description": "Oasis platform standard library",

@@ -29,3 +29,3 @@ "license": "Apache-2.0",

},
"gitHead": "2e30aa825b848b8507d48b130a6166c80afa2571"
"gitHead": "0281dc450caf2d9e17250a5760295b2277424685"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc