lunesjs 1.5.5 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierignore +1 -0
- package/dist/client/transactions/transfer/service.transfer.d.ts +1 -1
- package/dist/client/transactions/transfer/service.transfer.js +1 -1
- package/package.json +4 -4
- package/src/client/transactions/transfer/service.transfer.ts +1 -1
- package/test/client/transactions/transfer/transfer.token.test.ts +1 -0
package/.prettierignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
dist/*
|
@@ -8,5 +8,5 @@ declare class TransferToken implements BaseTransaction {
|
|
8
8
|
sign(privateKey: WalletTypes.PrivateKey): ITransfer;
|
9
9
|
send(): Promise<void>;
|
10
10
|
}
|
11
|
-
export declare function transferTokenFactory(senderPublicKey: string, recipient: string, amount: number, chain?: WalletTypes.Chain, timestamp?: number, feeAsset?: string,
|
11
|
+
export declare function transferTokenFactory(senderPublicKey: string, recipient: string, amount: number, assetId?: string, chain?: WalletTypes.Chain, timestamp?: number, feeAsset?: string, fee?: number): TransferToken;
|
12
12
|
export {};
|
@@ -57,7 +57,7 @@ class TransferToken {
|
|
57
57
|
});
|
58
58
|
}
|
59
59
|
}
|
60
|
-
function transferTokenFactory(senderPublicKey, recipient, amount, chain, timestamp, feeAsset,
|
60
|
+
function transferTokenFactory(senderPublicKey, recipient, amount, assetId, chain, timestamp, feeAsset, fee) {
|
61
61
|
const chain_id = chain != undefined ? chain : wallet_types_1.WalletTypes.Chain.Mainnet;
|
62
62
|
if (false == validator_1.default.ready(senderPublicKey, recipient, amount, chain_id)) {
|
63
63
|
throw new Error("dados invalidos");
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "lunesjs",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.8",
|
4
4
|
"description": "Library for communication with nodes in mainnet or testnet of the lunes-blockchain network",
|
5
|
-
"main": "dist
|
6
|
-
"types": "dist
|
5
|
+
"main": "dist/**/*.js",
|
6
|
+
"types": "dist/**/*/*.d.ts",
|
7
7
|
"repository": "git@git.lunes.io:blockchain/labs/lunesjs.git",
|
8
8
|
"keywords": [
|
9
9
|
"blockchain",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"client"
|
12
12
|
],
|
13
13
|
"author": "lunes-platform",
|
14
|
-
"license": "
|
14
|
+
"license": "Apache-2.0",
|
15
15
|
"scripts": {
|
16
16
|
"build": "tsc --declaration",
|
17
17
|
"fmtc": "prettier -c",
|
@@ -29,10 +29,10 @@ export function transferTokenFactory(
|
|
29
29
|
senderPublicKey: string,
|
30
30
|
recipient: string,
|
31
31
|
amount: number,
|
32
|
+
assetId?: string,
|
32
33
|
chain?: WalletTypes.Chain,
|
33
34
|
timestamp?: number,
|
34
35
|
feeAsset?: string,
|
35
|
-
assetId?: string,
|
36
36
|
fee?: number
|
37
37
|
): TransferToken {
|
38
38
|
const chain_id = chain != undefined ? chain : WalletTypes.Chain.Mainnet
|