@terra-money/terra.js
Advanced tools
Comparing version 0.1.5 to 0.4.0
@@ -13,1 +13,2 @@ export * from './AuthAPI'; | ||
export * from './TxAPI'; | ||
export * from './WasmAPI'; |
@@ -25,2 +25,3 @@ "use strict"; | ||
__exportStar(require("./TxAPI"), exports); | ||
__exportStar(require("./WasmAPI"), exports); | ||
//# sourceMappingURL=index.js.map |
import { APIRequester } from './APIRequester'; | ||
import { AuthAPI, BankAPI, DistributionAPI, GovAPI, MarketAPI, OracleAPI, SlashingAPI, StakingAPI, SupplyAPI, TendermintAPI, TreasuryAPI, TxAPI } from './api'; | ||
import { AuthAPI, BankAPI, DistributionAPI, GovAPI, MarketAPI, OracleAPI, SlashingAPI, StakingAPI, SupplyAPI, TendermintAPI, TreasuryAPI, TxAPI, WasmAPI } from './api'; | ||
import { Wallet } from './Wallet'; | ||
@@ -55,2 +55,3 @@ import { Numeric, Coins } from '../../core'; | ||
treasury: TreasuryAPI; | ||
wasm: WasmAPI; | ||
tx: TxAPI; | ||
@@ -57,0 +58,0 @@ /** |
@@ -60,2 +60,3 @@ "use strict"; | ||
this.treasury = new api_1.TreasuryAPI(this.apiRequester); | ||
this.wasm = new api_1.WasmAPI(this.apiRequester); | ||
this.tx = new api_1.TxAPI(this); | ||
@@ -62,0 +63,0 @@ } |
@@ -36,2 +36,3 @@ export * from './Block'; | ||
export * from './treasury/PolicyConstraints'; | ||
export * from './wasm/msgs'; | ||
export * from './strings'; |
@@ -58,4 +58,6 @@ "use strict"; | ||
__exportStar(require("./treasury/PolicyConstraints"), exports); | ||
// WASM | ||
__exportStar(require("./wasm/msgs"), exports); | ||
// String-based types | ||
__exportStar(require("./strings"), exports); | ||
//# sourceMappingURL=index.js.map |
import { MsgSwap } from './MsgSwap'; | ||
export * from './MsgSwap'; | ||
export declare type MarketMsg = MsgSwap; | ||
import { MsgSwapSend } from './MsgSwapSend'; | ||
export * from './MsgSwapSend'; | ||
export declare type MarketMsg = MsgSwap | MsgSwapSend; | ||
export declare namespace MarketMsg { | ||
type Data = MsgSwap.Data; | ||
type Data = MsgSwap.Data | MsgSwapSend.Data; | ||
} |
@@ -14,2 +14,3 @@ "use strict"; | ||
__exportStar(require("./MsgSwap"), exports); | ||
__exportStar(require("./MsgSwapSend"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -8,6 +8,7 @@ import { BankMsg } from './bank/msgs'; | ||
import { StakingMsg } from './staking/msgs'; | ||
export declare type Msg = BankMsg | DistributionMsg | GovMsg | MarketMsg | OracleMsg | SlashingMsg | StakingMsg; | ||
import { WasmMsg } from './wasm/msgs'; | ||
export declare type Msg = BankMsg | DistributionMsg | GovMsg | MarketMsg | OracleMsg | SlashingMsg | StakingMsg | WasmMsg; | ||
export declare namespace Msg { | ||
type Data = BankMsg.Data | DistributionMsg.Data | GovMsg.Data | MarketMsg.Data | OracleMsg.Data | SlashingMsg.Data | StakingMsg.Data; | ||
type Data = BankMsg.Data | DistributionMsg.Data | GovMsg.Data | MarketMsg.Data | OracleMsg.Data | SlashingMsg.Data | StakingMsg.Data | WasmMsg.Data; | ||
function fromData(data: Msg.Data): Msg; | ||
} |
@@ -11,2 +11,3 @@ "use strict"; | ||
var msgs_7 = require("./staking/msgs"); | ||
var msgs_8 = require("./wasm/msgs"); | ||
var Msg; | ||
@@ -38,2 +39,4 @@ (function (Msg) { | ||
return msgs_4.MsgSwap.fromData(data); | ||
case 'market/MsgSwapSend': | ||
return msgs_4.MsgSwapSend.fromData(data); | ||
// oracle | ||
@@ -60,2 +63,9 @@ case 'oracle/MsgExchangeRateVote': | ||
return msgs_7.MsgEditValidator.fromData(data); | ||
// wasm | ||
case 'wasm/StoreCode': | ||
return msgs_8.MsgStoreCode.fromData(data); | ||
case 'wasm/InstantiateContract': | ||
return msgs_8.MsgInstantiateContract.fromData(data); | ||
case 'wasm/ExecuteContract': | ||
return msgs_8.MsgExecuteContract.fromData(data); | ||
} | ||
@@ -62,0 +72,0 @@ } |
{ | ||
"version": "0.1.5", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
@@ -30,3 +30,3 @@ "main": "dist/index.js", | ||
"pre-commit": "lint-staged", | ||
"post-checkout": "yarn" | ||
"post-checkout": "npm i" | ||
} | ||
@@ -46,4 +46,4 @@ }, | ||
"@types/jest": "^25.1.4", | ||
"@types/lodash": "^4.14.149", | ||
"@types/node": "^10.0.3", | ||
"@types/lodash": "^4.14.157", | ||
"@types/node": "^10.17.26", | ||
"@types/secp256k1": "^4.0.0", | ||
@@ -55,3 +55,3 @@ "@typescript-eslint/eslint-plugin": "^2.29.0", | ||
"jest": "^25.4.0", | ||
"lint-staged": "^10.1.6", | ||
"lint-staged": "^10.2.11", | ||
"lodash.camelcase": "^4.3.0", | ||
@@ -63,7 +63,7 @@ "prettier": "^2.0.4", | ||
"tsconfig-paths-webpack-plugin": "^3.2.0", | ||
"typedoc": "^0.17.6", | ||
"typedoc": "^0.17.8", | ||
"typescript": "^3.8.3", | ||
"webpack": "^4.43.0", | ||
"webpack-bundle-analyzer": "^3.7.0", | ||
"webpack-cli": "^3.3.11" | ||
"webpack-cli": "^3.3.12" | ||
}, | ||
@@ -70,0 +70,0 @@ "dependencies": { |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
5907728
304
15672