Socket
Socket
Sign inDemoInstall

@terra-money/terra.js

Package Overview
Dependencies
109
Maintainers
7
Versions
230
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.3 to 2.1.4

10

dist/client/lcd/api/OracleAPI.d.ts
import { BaseAPI } from './BaseAPI';
import { ValAddress, Denom, Coin, Coins, AccAddress, Dec, AggregateExchangeRatePrevote, AggregateExchangeRateVote } from '../../../core';
import { APIParams } from '../APIRequester';
export interface OracleWhitelist {
name: string;
tobin_tax: Dec;
}
export declare namespace OracleWhitelist {
interface Data {
name: string;
tobin_tax: string;
}
}
export interface OracleParams {

@@ -5,0 +15,0 @@ /** Number of blocks that define the period over which new votes must be submitted for the exchange rate of LUNA. */

17

dist/core/Denom.d.ts
export declare type Denom = string;
export declare namespace Denom {
const LUNA = "uluna";
const AUD = "uaud";
const CAD = "ucad";
const CHF = "uchf";
const CNY = "ucny";
const DKK = "udkk";
const EUR = "ueur";
const GBP = "ugbp";
const HKD = "uhkd";
const IDR = "uidr";
const INR = "uinr";
const JPY = "ujpy";
const KRW = "ukrw";
const MNT = "umnt";
const NOK = "unok";
const PHP = "uphp";
const SDR = "usdr";
const SEK = "usek";
const SGD = "usgd";
const THB = "uthb";
const USD = "uusd";
const INR = "uinr";
const CAD = "ucad";
const CHF = "uchf";
const AUD = "uaud";
const SGD = "usgd";
}

@@ -7,16 +7,23 @@ "use strict";

Denom.LUNA = 'uluna';
Denom.AUD = 'uaud';
Denom.CAD = 'ucad';
Denom.CHF = 'uchf';
Denom.CNY = 'ucny';
Denom.DKK = 'udkk';
Denom.EUR = 'ueur';
Denom.GBP = 'ugbp';
Denom.HKD = 'uhkd';
Denom.IDR = 'uidr';
Denom.INR = 'uinr';
Denom.JPY = 'ujpy';
Denom.KRW = 'ukrw';
Denom.MNT = 'umnt';
Denom.NOK = 'unok';
Denom.PHP = 'uphp';
Denom.SDR = 'usdr';
Denom.SEK = 'usek';
Denom.SGD = 'usgd';
Denom.THB = 'uthb';
Denom.USD = 'uusd';
Denom.INR = 'uinr';
Denom.CAD = 'ucad';
Denom.CHF = 'uchf';
Denom.AUD = 'uaud';
Denom.SGD = 'usgd';
})(Denom = exports.Denom || (exports.Denom = {}));
//# sourceMappingURL=Denom.js.map

@@ -42,3 +42,3 @@ import { JSONSerializable } from '../../../util/json';

*/
constructor(title: string, description: string, changes: ParamChanges);
constructor(title: string, description: string, changes: ParamChange.Data[] | ParamChanges);
static fromAmino(data: ParameterChangeProposal.Amino): ParameterChangeProposal;

@@ -45,0 +45,0 @@ toAmino(): ParameterChangeProposal.Amino;

@@ -62,3 +62,8 @@ "use strict";

_this.description = description;
_this.changes = changes;
if (Array.isArray(changes)) {
_this.changes = ParamChange_1.ParamChanges.fromData(changes);
}
else {
_this.changes = changes;
}
return _this;

@@ -65,0 +70,0 @@ }

@@ -61,3 +61,3 @@ import { JSONSerializable } from '../util/json';

threshold: string;
pubkeys: SimplePublicKey.Data[];
public_keys: SimplePublicKey.Data[];
}

@@ -64,0 +64,0 @@ type Proto = LegacyAminoPubKey_pb;

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

LegacyAminoMultisigPublicKey.fromData = function (data) {
return new LegacyAminoMultisigPublicKey(Number.parseInt(data.threshold), data.pubkeys.map(function (v) { return SimplePublicKey.fromData(v); }));
return new LegacyAminoMultisigPublicKey(Number.parseInt(data.threshold), data.public_keys.map(function (v) { return SimplePublicKey.fromData(v); }));
};

@@ -136,3 +136,3 @@ LegacyAminoMultisigPublicKey.prototype.toData = function () {

threshold: this.threshold.toFixed(),
pubkeys: this.pubkeys.map(function (p) { return p.toData(); }),
public_keys: this.pubkeys.map(function (p) { return p.toData(); }),
};

@@ -139,0 +139,0 @@ };

@@ -22,4 +22,4 @@ import { PublicKey } from './PublicKey';

signature: string;
pub_key: PublicKey.Data;
pub_key: PublicKey.Data | null;
}
}

@@ -40,3 +40,6 @@ "use strict";

var signature = data.signature, pub_key = data.pub_key;
return new StdSignature(signature, PublicKey_1.PublicKey.fromData(pub_key));
return new StdSignature(signature, PublicKey_1.PublicKey.fromData(pub_key || {
type: 'tendermint/PubKeySecp256k1',
value: '',
}));
};

@@ -47,3 +50,3 @@ StdSignature.prototype.toData = function () {

signature: signature,
pub_key: pub_key.toData(),
pub_key: pub_key === null || pub_key === void 0 ? void 0 : pub_key.toData(),
};

@@ -50,0 +53,0 @@ };

@@ -13,4 +13,4 @@ /// <reference types="node" />

/**
* Key implementation that uses `terracli` to sign transactions. Keys should be registered
* in `terracli`'s OS keyring.
* Key implementation that uses `terrad` to sign transactions. Keys should be registered
* in `terrad`'s OS keyring.
*

@@ -26,6 +26,6 @@ * NOTE: This Key implementation overrides `createSignature()` and only provide a shim

*
* @param keyName name of the key for terracli
* @param keyName name of the key for terrad
* @param multisig (optional) address of multisig account on behalf of which transaction shall be signed
* @param cliPath (optional) path of terracli
* @param home (optional) home option for terracli
* @param cliPath (optional) path of terrad
* @param home (optional) home option for terrad
*/

@@ -32,0 +32,0 @@ constructor(params: CLIKeyParams);

@@ -56,3 +56,4 @@ "use strict";

var Key_1 = require("./Key");
var bech32_1 = require("../core/bech32");
var bech32_1 = require("bech32");
var bech32_2 = require("../core/bech32");
var child_process_1 = require("child_process");

@@ -63,4 +64,4 @@ var tmp_1 = require("tmp");

/**
* Key implementation that uses `terracli` to sign transactions. Keys should be registered
* in `terracli`'s OS keyring.
* Key implementation that uses `terrad` to sign transactions. Keys should be registered
* in `terrad`'s OS keyring.
*

@@ -74,6 +75,6 @@ * NOTE: This Key implementation overrides `createSignature()` and only provide a shim

*
* @param keyName name of the key for terracli
* @param keyName name of the key for terrad
* @param multisig (optional) address of multisig account on behalf of which transaction shall be signed
* @param cliPath (optional) path of terracli
* @param home (optional) home option for terracli
* @param cliPath (optional) path of terrad
* @param home (optional) home option for terrad
*/

@@ -91,4 +92,6 @@ function CLIKey(params) {

var details = JSON.parse(child_process_1.execSync(this.generateCommand("keys show " + this.params.keyName)).toString());
var publicKeyString = JSON.parse(details.pubkey).key;
var publicKey = Buffer.from(publicKeyString, 'base64');
this._accAddress = details.address;
this._accPubKey = details.pubkey;
this._accPubKey = bech32_1.bech32.encode('terrapub', Array.from(Key_1.pubKeyFromPublicKey(publicKey)));
};

@@ -118,3 +121,3 @@ Object.defineProperty(CLIKey.prototype, "accAddress", {

}
return bech32_1.ValAddress.fromAccAddress(this._accAddress);
return bech32_2.ValAddress.fromAccAddress(this._accAddress);
},

@@ -147,3 +150,3 @@ enumerable: false,

}
return bech32_1.ValPubKey.fromValAddress(this.valAddress);
return bech32_2.ValPubKey.fromValAddress(this.valAddress);
},

@@ -150,0 +153,0 @@ enumerable: false,

{
"name": "@terra-money/terra.js",
"version": "2.1.3",
"version": "2.1.4",
"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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc