@terra-money/terra.js
Advanced tools
Comparing version 3.1.5 to 3.1.6
/*! | ||
* decimal.js v10.4.0 | ||
* An arbitrary-precision Decimal type for JavaScript. | ||
* https://github.com/MikeMcl/decimal.js | ||
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com> | ||
* MIT Licence | ||
*/ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
@@ -3,0 +11,0 @@ * |
@@ -0,1 +1,23 @@ | ||
/*! | ||
* decimal.js v10.4.0 | ||
* An arbitrary-precision Decimal type for JavaScript. | ||
* https://github.com/MikeMcl/decimal.js | ||
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com> | ||
* MIT Licence | ||
*/ | ||
/*! | ||
* mime-db | ||
* Copyright(c) 2014 Jonathan Ong | ||
* Copyright(c) 2015-2022 Douglas Christopher Wilson | ||
* MIT Licensed | ||
*/ | ||
/*! | ||
* mime-types | ||
* Copyright(c) 2014 Jonathan Ong | ||
* Copyright(c) 2015 Douglas Christopher Wilson | ||
* MIT Licensed | ||
*/ | ||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ |
@@ -292,3 +292,3 @@ "use strict"; | ||
TxAPI.prototype.decode = function (encodedTx) { | ||
return core_1.Tx.fromBuffer(Buffer.from(encodedTx, 'base64')); | ||
return core_1.Tx.fromBuffer(Buffer.from(encodedTx, 'base64'), this.lcd.config.isClassic); | ||
}; | ||
@@ -295,0 +295,0 @@ /** |
/// <reference types="node" /> | ||
import { CreateTxOptions } from '../client'; | ||
export interface ExtensionOptions extends CreateTxOptions { | ||
waitForConfirmation?: boolean; | ||
purgeQueue?: boolean; | ||
sequence?: number; | ||
accountNumber?: number; | ||
isClassic?: boolean; | ||
} | ||
interface ResponseData { | ||
@@ -11,9 +18,2 @@ name: string; | ||
} | ||
interface Option extends CreateTxOptions { | ||
waitForConfirmation?: boolean; | ||
purgeQueue?: boolean; | ||
sequence?: number; | ||
accountNumber?: number; | ||
isClassic?: boolean; | ||
} | ||
interface SignBytesOption { | ||
@@ -104,3 +104,3 @@ bytes: Buffer; | ||
*/ | ||
sign(options: Option): number; | ||
sign(options: ExtensionOptions): number; | ||
/** | ||
@@ -134,4 +134,4 @@ * Request for signing bytes | ||
*/ | ||
post(options: Option): number; | ||
post(options: ExtensionOptions): number; | ||
} | ||
export {}; |
@@ -34,3 +34,2 @@ "use strict"; | ||
} | ||
console.log(txResult.logs[msgIndex].eventsByType['wasm']); | ||
var contractAddress = txResult.logs[msgIndex].eventsByType[eventName][attributeKey][0]; | ||
@@ -37,0 +36,0 @@ return contractAddress; |
{ | ||
"name": "@terra-money/terra.js", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"description": "The JavaScript SDK for Terra", | ||
@@ -88,3 +88,3 @@ "license": "MIT", | ||
"@terra-money/terra.proto": "^2.1.0", | ||
"axios": "^0.26.1", | ||
"axios": "^0.27.2", | ||
"bech32": "^2.0.0", | ||
@@ -100,4 +100,4 @@ "bip32": "^2.0.6", | ||
"utf-8-validate": "^5.0.5", | ||
"ws": "^7.5.5" | ||
"ws": "^7.5.9" | ||
} | ||
} |
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
18617330
49667
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@0.27.2(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
- Removedaxios@0.26.1(transitive)
Updatedaxios@^0.27.2
Updatedws@^7.5.9