@locuschain/lib 0.1.20 → 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,15 +439,15 @@ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/tx-type-BeeK7C
439
439
  AUTO: 0,
440
440
  GRANT_ONLY: 1
441
441
  });
442
- const TimeOrigin = new Date(2019, 3, 1, 0, 0, 0, 0);
442
+ const getTimeOrigin = () => new Date(2019, 3, 1, 0, 0, 0, 0);
443
443
 
444
444
  exports.AddressClass = AddressClass;
445
445
  exports.Currency = Currency;
446
446
  exports.FeeType = FeeType;
447
447
  exports.GRANT_COST_PER_TX = GRANT_COST_PER_TX;
448
448
  exports.MaxVMRewardsCount = MaxVMRewardsCount;
449
- exports.TimeOrigin = TimeOrigin;
450
449
  exports.TxType = TxType;
451
450
  exports.TxTypes = TxTypes;
451
+ exports.getTimeOrigin = getTimeOrigin;
452
452
 
453
453
  }));
@@ -442,13 +442,13 @@ const FeeType = Object.freeze({
442
442
  AUTO: 0,
443
443
  GRANT_ONLY: 1
444
444
  });
445
- const TimeOrigin = new Date(2019, 3, 1, 0, 0, 0, 0);
445
+ const getTimeOrigin = () => new Date(2019, 3, 1, 0, 0, 0, 0);
446
446
 
447
447
  exports.AddressClass = AddressClass;
448
448
  exports.Currency = Currency;
449
449
  exports.FeeType = FeeType;
450
450
  exports.GRANT_COST_PER_TX = GRANT_COST_PER_TX;
451
451
  exports.MaxVMRewardsCount = MaxVMRewardsCount;
452
- exports.TimeOrigin = TimeOrigin;
453
452
  exports.TxType = TxType;
454
453
  exports.TxTypes = TxTypes;
454
+ exports.getTimeOrigin = getTimeOrigin;
@@ -501,6 +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 TimeOrigin: Date;
504
+ export declare const getTimeOrigin: () => Date;
505
505
  export * from '../autogen/types/consts/consts.mjs';
506
506
  export * from '../autogen/types/consts/tx-types.mjs';
@@ -501,6 +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 TimeOrigin: Date;
504
+ export declare const getTimeOrigin: () => Date;
505
505
  export * from '../autogen/types/consts/consts.mjs';
506
506
  export * from '../autogen/types/consts/tx-types.mjs';
@@ -440,6 +440,6 @@ const FeeType = Object.freeze({
440
440
  AUTO: 0,
441
441
  GRANT_ONLY: 1
442
442
  });
443
- const TimeOrigin = new Date(2019, 3, 1, 0, 0, 0, 0);
443
+ const getTimeOrigin = () => new Date(2019, 3, 1, 0, 0, 0, 0);
444
444
 
445
- export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TimeOrigin, TxType, TxTypes };
445
+ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes, getTimeOrigin };
package/dist/index.amd.js CHANGED
@@ -7,9 +7,9 @@ define(['exports', './constant/index.amd', './utils/index.amd', './web3/index.am
7
7
  exports.FeeType = constant.FeeType;
8
8
  exports.GRANT_COST_PER_TX = constant.GRANT_COST_PER_TX;
9
9
  exports.MaxVMRewardsCount = constant.MaxVMRewardsCount;
10
- exports.TimeOrigin = constant.TimeOrigin;
11
10
  exports.TxType = constant.TxType;
12
11
  exports.TxTypes = constant.TxTypes;
12
+ exports.getTimeOrigin = constant.getTimeOrigin;
13
13
  exports.checkAddressType = utils.checkAddressType;
14
14
  exports.isAccount = utils.isAccount;
15
15
  exports.isContract = utils.isContract;
@@ -15,9 +15,9 @@ exports.Currency = constant.Currency;
15
15
  exports.FeeType = constant.FeeType;
16
16
  exports.GRANT_COST_PER_TX = constant.GRANT_COST_PER_TX;
17
17
  exports.MaxVMRewardsCount = constant.MaxVMRewardsCount;
18
- exports.TimeOrigin = constant.TimeOrigin;
19
18
  exports.TxType = constant.TxType;
20
19
  exports.TxTypes = constant.TxTypes;
20
+ exports.getTimeOrigin = constant.getTimeOrigin;
21
21
  exports.checkAddressType = utils.checkAddressType;
22
22
  exports.isAccount = utils.isAccount;
23
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, TimeOrigin, 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';