@kava-labs/javascript-sdk
Advanced tools
Comparing version 5.2.1-beta to 5.3.0-beta
@@ -6,2 +6,3 @@ /// <reference types="node" /> | ||
import { crypto } from './crypto'; | ||
import { KavaClient } from './client'; | ||
declare const Kava: { | ||
@@ -35,3 +36,3 @@ tx: { | ||
}; | ||
newMsgSend: (address: string, to: string, coins: any[]) => { | ||
newMsgSend: (address: string, to: string, coins: import("./types/Coin").Coin[]) => { | ||
type: string; | ||
@@ -41,3 +42,3 @@ value: { | ||
to_address: string; | ||
amount: any[]; | ||
amount: import("./types/Coin").Coin[]; | ||
}; | ||
@@ -76,3 +77,3 @@ }; | ||
}; | ||
newMsgClaimAtomicSwap: (sender: string, swapID: string, randomNumber: number) => { | ||
newMsgClaimAtomicSwap: (sender: string, swapID: string, randomNumber: string) => { | ||
type: string; | ||
@@ -82,3 +83,3 @@ value: { | ||
swap_id: string; | ||
random_number: number; | ||
random_number: string; | ||
}; | ||
@@ -378,4 +379,5 @@ }; | ||
}; | ||
KavaClient: typeof KavaClient; | ||
}; | ||
export { tx, msg, utils, crypto }; | ||
export { tx, msg, utils, crypto, KavaClient }; | ||
export default Kava; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.crypto = exports.utils = exports.msg = exports.tx = void 0; | ||
exports.KavaClient = exports.crypto = exports.utils = exports.msg = exports.tx = void 0; | ||
const tx_1 = require("./tx"); | ||
@@ -12,2 +12,4 @@ Object.defineProperty(exports, "tx", { enumerable: true, get: function () { return tx_1.tx; } }); | ||
Object.defineProperty(exports, "crypto", { enumerable: true, get: function () { return crypto_1.crypto; } }); | ||
const client_1 = require("./client"); | ||
Object.defineProperty(exports, "KavaClient", { enumerable: true, get: function () { return client_1.KavaClient; } }); | ||
const Kava = { | ||
@@ -18,3 +20,4 @@ tx: tx_1.tx, | ||
crypto: crypto_1.crypto, | ||
KavaClient: client_1.KavaClient, | ||
}; | ||
exports.default = Kava; |
@@ -0,1 +1,2 @@ | ||
import { Coin } from '../../types/Coin'; | ||
import { VoteType } from '../../types/VoteType'; | ||
@@ -25,3 +26,3 @@ /** | ||
}; | ||
declare function newMsgSend(address: string, to: string, coins: any[]): { | ||
declare function newMsgSend(address: string, to: string, coins: Coin[]): { | ||
type: string; | ||
@@ -31,3 +32,3 @@ value: { | ||
to_address: string; | ||
amount: any[]; | ||
amount: Coin[]; | ||
}; | ||
@@ -34,0 +35,0 @@ }; |
@@ -18,3 +18,3 @@ export declare const msg: { | ||
}; | ||
newMsgSend: (address: string, to: string, coins: any[]) => { | ||
newMsgSend: (address: string, to: string, coins: import("../types/Coin").Coin[]) => { | ||
type: string; | ||
@@ -24,3 +24,3 @@ value: { | ||
to_address: string; | ||
amount: any[]; | ||
amount: import("../types/Coin").Coin[]; | ||
}; | ||
@@ -59,3 +59,3 @@ }; | ||
}; | ||
newMsgClaimAtomicSwap: (sender: string, swapID: string, randomNumber: number) => { | ||
newMsgClaimAtomicSwap: (sender: string, swapID: string, randomNumber: string) => { | ||
type: string; | ||
@@ -65,3 +65,3 @@ value: { | ||
swap_id: string; | ||
random_number: number; | ||
random_number: string; | ||
}; | ||
@@ -68,0 +68,0 @@ }; |
@@ -31,3 +31,3 @@ import { Coin } from '../../types/Coin'; | ||
}; | ||
declare function newMsgClaimAtomicSwap(sender: string, swapID: string, randomNumber: number): { | ||
declare function newMsgClaimAtomicSwap(sender: string, swapID: string, randomNumber: string): { | ||
type: string; | ||
@@ -37,3 +37,3 @@ value: { | ||
swap_id: string; | ||
random_number: number; | ||
random_number: string; | ||
}; | ||
@@ -40,0 +40,0 @@ }; |
{ | ||
"name": "@kava-labs/javascript-sdk", | ||
"version": "5.2.1-beta", | ||
"version": "5.3.0-beta", | ||
"description": "Supports interaction with the Kava blockchain via a REST api", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -5,2 +5,3 @@ import { tx } from './tx'; | ||
import { crypto } from './crypto'; | ||
import { KavaClient } from './client'; | ||
@@ -12,6 +13,7 @@ const Kava = { | ||
crypto, | ||
KavaClient, | ||
}; | ||
export { tx, msg, utils, crypto }; | ||
export { tx, msg, utils, crypto, KavaClient }; | ||
export default Kava; |
import _ from 'lodash'; | ||
import { Coin } from '../../types/Coin'; | ||
import { VoteType } from '../../types/VoteType'; | ||
@@ -32,3 +33,3 @@ | ||
// newMsgSend creates a new MsgSend | ||
function newMsgSend(address: string, to: string, coins: any[]) { | ||
function newMsgSend(address: string, to: string, coins: Coin[]) { | ||
const sendTx = { | ||
@@ -35,0 +36,0 @@ type: 'cosmos-sdk/MsgSend', |
@@ -54,3 +54,3 @@ import { Coin } from '../../types/Coin'; | ||
swapID: string, | ||
randomNumber: number | ||
randomNumber: string | ||
) { | ||
@@ -57,0 +57,0 @@ return { |
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
284355
61
7021