@terra-money/terra.js
Advanced tools
Comparing version 0.4.18-beta.5 to 0.4.18-beta.6
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 |
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4820775
16205