Socket
Socket
Sign inDemoInstall

@terra-money/terra.js

Package Overview
Dependencies
Maintainers
10
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@terra-money/terra.js - npm Package Compare versions

Comparing version 2.1.14 to 2.1.15

dist/client/lcd/api/MsgAuthAPI.d.ts

4

dist/core/SignatureV2.d.ts
import { PublicKey } from './PublicKey';
import { ModeInfo } from './Tx';
import { CompactBitArray } from './CompactBitArray';
import { SignMode } from '@terra-money/terra.proto/cosmos/tx/signing/v1beta1/signing';
import { SignMode as SignMode_pb } from '@terra-money/terra.proto/cosmos/tx/signing/v1beta1/signing';
export declare class SignatureV2 {

@@ -14,2 +14,4 @@ public_key: PublicKey;

export declare namespace SignatureV2 {
const SignMode: typeof SignMode_pb;
type SignMode = SignMode_pb;
interface Amino {

@@ -16,0 +18,0 @@ signature: string;

@@ -19,3 +19,3 @@ "use strict";

SignatureV2.fromAmino = function (data) {
return new SignatureV2(PublicKey_1.PublicKey.fromAmino(data.pub_key), new SignatureV2.Descriptor(new SignatureV2.Descriptor.Single(signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON, data.signature)), 0);
return new SignatureV2(PublicKey_1.PublicKey.fromAmino(data.pub_key), new SignatureV2.Descriptor(new SignatureV2.Descriptor.Single(SignatureV2.SignMode.SIGN_MODE_LEGACY_AMINO_JSON, data.signature)), 0);
};

@@ -26,2 +26,3 @@ return SignatureV2;

(function (SignatureV2) {
SignatureV2.SignMode = signing_1.SignMode;
var Descriptor = /** @class */ (function () {

@@ -28,0 +29,0 @@ function Descriptor(data) {

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { CreateTxOptions } from '../client';

@@ -17,6 +16,2 @@ interface ResponseData {

}
interface SignBytesOption {
bytes: Buffer;
purgeQueue?: boolean;
}
declare global {

@@ -124,16 +119,2 @@ interface Window {

/**
* Request for signing bytes
*
* @return {string} name 'onSign'
* @return {object} payload
* @return {number} payload.id identifier
* @return {string} payload.origin origin address
* @return {Msg[]} payload.msgs requested msgs
* @return {boolean} payload.success
* @return {string} payload.result.public_key Base64 encoded public key
* @return {string} payload.result.signature Base64 encoded signature
* @return {number} payload.result.recid Recovery id
*/
signBytes(options: SignBytesOption): number;
/**
* Request for sign and post to LCD server

@@ -140,0 +121,0 @@ *

@@ -198,21 +198,2 @@ "use strict";

/**
* Request for signing bytes
*
* @return {string} name 'onSign'
* @return {object} payload
* @return {number} payload.id identifier
* @return {string} payload.origin origin address
* @return {Msg[]} payload.msgs requested msgs
* @return {boolean} payload.success
* @return {string} payload.result.public_key Base64 encoded public key
* @return {string} payload.result.signature Base64 encoded signature
* @return {number} payload.result.recid Recovery id
*/
Extension.prototype.signBytes = function (options) {
return this.send('sign', {
bytes: options.bytes.toString('base64'),
purgeQueue: options.purgeQueue,
});
};
/**
* Request for sign and post to LCD server

@@ -219,0 +200,0 @@ *

{
"name": "@terra-money/terra.js",
"version": "2.1.14",
"version": "2.1.15",
"description": "The JavaScript SDK for Terra",

@@ -5,0 +5,0 @@ "license": "MIT",

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

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