@locuschain/lib 0.1.19 → 0.1.21

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.
@@ -439,6 +439,7 @@ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/tx-type-BeeK7C
439
439
  AUTO: 0,
440
440
  GRANT_ONLY: 1
441
441
  });
442
+ const getTimeOrigin = () => new Date(2019, 3, 1, 0, 0, 0, 0);
442
443
 
443
444
  exports.AddressClass = AddressClass;
444
445
  exports.Currency = Currency;
@@ -447,5 +448,6 @@ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/tx-type-BeeK7C
447
448
  exports.MaxVMRewardsCount = MaxVMRewardsCount;
448
449
  exports.TxType = TxType;
449
450
  exports.TxTypes = TxTypes;
451
+ exports.getTimeOrigin = getTimeOrigin;
450
452
 
451
453
  }));
@@ -442,6 +442,7 @@ const FeeType = Object.freeze({
442
442
  AUTO: 0,
443
443
  GRANT_ONLY: 1
444
444
  });
445
+ const getTimeOrigin = () => new Date(2019, 3, 1, 0, 0, 0, 0);
445
446
 
446
447
  exports.AddressClass = AddressClass;
447
448
  exports.Currency = Currency;
@@ -450,3 +451,4 @@ exports.GRANT_COST_PER_TX = GRANT_COST_PER_TX;
450
451
  exports.MaxVMRewardsCount = MaxVMRewardsCount;
451
452
  exports.TxType = TxType;
452
453
  exports.TxTypes = TxTypes;
454
+ exports.getTimeOrigin = getTimeOrigin;
@@ -501,5 +501,6 @@ export declare const FeeType: Readonly<{
501
501
  readonly GRANT_ONLY: 1;
502
502
  }>;
503
503
  export type FeeType = (typeof FeeType)[keyof typeof FeeType];
504
+ export declare const getTimeOrigin: () => Date;
504
505
  export * from '../autogen/types/consts/consts.mjs';
505
506
  export * from '../autogen/types/consts/tx-types.mjs';
@@ -501,5 +501,6 @@ export declare const FeeType: Readonly<{
501
501
  readonly GRANT_ONLY: 1;
502
502
  }>;
503
503
  export type FeeType = (typeof FeeType)[keyof typeof FeeType];
504
+ export declare const getTimeOrigin: () => Date;
504
505
  export * from '../autogen/types/consts/consts.mjs';
505
506
  export * from '../autogen/types/consts/tx-types.mjs';
@@ -440,5 +440,6 @@ const FeeType = Object.freeze({
440
440
  AUTO: 0,
441
441
  GRANT_ONLY: 1
442
442
  });
443
+ const getTimeOrigin = () => new Date(2019, 3, 1, 0, 0, 0, 0);
443
444
 
444
- export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes };
445
+ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes, getTimeOrigin };
package/dist/index.amd.js CHANGED
@@ -9,6 +9,7 @@ define(['exports', './constant/index.amd', './utils/index.amd', './web3/index.am
9
9
  exports.MaxVMRewardsCount = constant.MaxVMRewardsCount;
10
10
  exports.TxType = constant.TxType;
11
11
  exports.TxTypes = constant.TxTypes;
12
+ exports.getTimeOrigin = constant.getTimeOrigin;
12
13
  exports.checkAddressType = utils.checkAddressType;
13
14
  exports.isAccount = utils.isAccount;
14
15
  exports.isContract = utils.isContract;
@@ -17,6 +17,7 @@ exports.GRANT_COST_PER_TX = constant.GRANT_COST_PER_TX;
17
17
  exports.MaxVMRewardsCount = constant.MaxVMRewardsCount;
18
18
  exports.TxType = constant.TxType;
19
19
  exports.TxTypes = constant.TxTypes;
20
+ exports.getTimeOrigin = constant.getTimeOrigin;
20
21
  exports.checkAddressType = utils.checkAddressType;
21
22
  exports.isAccount = utils.isAccount;
22
23
  exports.isContract = utils.isContract;
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes } from './constant/index.esm.js';
1
+ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes, getTimeOrigin } from './constant/index.esm.js';
2
2
  export { checkAddressType, isAccount, isContract, isSystemToken, isToken, loadLocusWasm, txValidator, verifyTxParams } from './utils/index.esm.js';
3
3
  export { Account, AccountProvider, HttpRpcProvider, RpcProvider, Web3 } from './web3/index.esm.js';
4
4
  export { R as Rpc, T as TX_CREATION_RPC_LIST, c as calculateTxLinkHash, a as compileCoreScript, b as convertAddressToData, d as convertAddressToHex, e as convertBase32ToData, f as convertBase32ToHex, g as convertCurrency, h as convertDataTo, i as convertDataToAddress, j as convertDataToBase32, k as convertDataToHex, l as convertDataToString, m as convertHexToAddress, n as convertHexToBase32, o as convertHexToData, p as convertStringToData, q as convertToData, r as createAccountAndKeystore, s as createMasterKeystore, t as createNormalKey, u as createNormalKeystore, v as decodeTxs, w as deriveKeysFromMnemonic, x as deriveKeysFromMnemonicAndPath, y as disCompileCoreScript, z as encodeTxCurrency, A as encodeTxNumber, B as generateMnemonic, C as generateMnemonicBySeed, D as getDefFromCoreScript, E as getHomeShard, F as getLibraryVersions, G as gzipAndEncode, H as hash, I as isGrantConsumingTx, J as loadMasterKeystore, K as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as testCoreScript, P as verify, Q as verifyByMasterKey, S as verifyMerkleProof, U as verifyTx } from './chunks/rpc-Vhkh1QN3.js';