Socket
Socket
Sign inDemoInstall

@terra-money/terra.js

Package Overview
Dependencies
55
Maintainers
5
Versions
230
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.18-beta.5 to 0.4.18-beta.6

7

dist/extension/index.d.ts
import { Msg } from '../core/Msg';
import { LCDClientConfig } from '../client';
declare type SendDataType = 'connect' | 'post' | 'sign';
interface SignOptions {
lcdClientConfig: LCDClientConfig;
account_number?: number;
sequence?: number;
}
interface SendData {

@@ -56,3 +61,3 @@ id: number | string;

*/
sign(msgs: Msg[], account_number?: number, sequence?: number): number;
sign(msgs: Msg[], options: SignOptions): number;
/**

@@ -59,0 +64,0 @@ * Request to Station Extension for sign and post to LCD server

21

dist/extension/index.js
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -77,11 +88,5 @@ exports.Extension = void 0;

*/
Extension.prototype.sign = function (msgs, account_number, sequence) {
Extension.prototype.sign = function (msgs, options) {
var id = this.generateId();
this.send({
id: id,
type: 'sign',
msgs: msgs.map(function (msg) { return msg.toJSON(); }),
account_number: account_number,
sequence: sequence,
});
this.send(__assign(__assign({}, options), { id: id, type: 'sign', msgs: msgs.map(function (msg) { return msg.toJSON(); }) }));
return id;

@@ -88,0 +93,0 @@ };

{
"version": "0.4.18-beta.5",
"version": "0.4.18-beta.6",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc