lunesjs 1.5.5 → 1.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, assetId?: string, fee?: number): TransferToken;
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, assetId, fee) {
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.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/*.js",
6
- "types": "dist/*.d.ts",
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": "SEE LICENSE IN ./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
@@ -44,6 +44,7 @@ describe("Transfer Token Suite", () => {
44
44
  recipientAccount.address,
45
45
  100000000000,
46
46
  undefined,
47
+ undefined,
47
48
  1648349834003
48
49
  )
49
50