@injectivelabs/utils 0.5.2 → 0.5.3
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.
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +16 -1
- package/dist/constants.js.map +1 -1
- package/package.json +2 -2
package/dist/constants.d.ts
CHANGED
|
@@ -6,4 +6,11 @@ export declare const DEFAULT_BRIDGE_FEE_DENOM = "inj";
|
|
|
6
6
|
export declare const DEFAULT_BRIDGE_FEE_PRICE = "500000000";
|
|
7
7
|
export declare const DEFAULT_BRIDGE_FEE_AMOUNT = "200000000000000";
|
|
8
8
|
export declare const DEFAULT_TIMEOUT_HEIGHT = 40;
|
|
9
|
+
export declare const DEFAULT_STD_FEE: {
|
|
10
|
+
amount: {
|
|
11
|
+
amount: string;
|
|
12
|
+
denom: string;
|
|
13
|
+
}[];
|
|
14
|
+
gas: string;
|
|
15
|
+
};
|
|
9
16
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,+CAA+C,CAAA;AAExE,eAAO,MAAM,iBAAiB,SAAS,CAAA;AACvC,eAAO,MAAM,iBAAiB,YAAY,CAAA;AAC1C,eAAO,MAAM,sBAAsB,SAAS,CAAA;AAC5C,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAC7C,eAAO,MAAM,wBAAwB,cAAc,CAAA;AACnD,eAAO,MAAM,yBAAyB,oBAAoB,CAAA;AAC1D,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC,eAAO,MAAM,eAAe;;;;;;CAU3B,CAAA"}
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_TIMEOUT_HEIGHT = exports.DEFAULT_BRIDGE_FEE_AMOUNT = exports.DEFAULT_BRIDGE_FEE_PRICE = exports.DEFAULT_BRIDGE_FEE_DENOM = exports.DEFAULT_EXCHANGE_LIMIT = exports.DEFAULT_GAS_PRICE = exports.DEFAULT_GAS_LIMIT = exports.ZERO_ADDRESS = void 0;
|
|
6
|
+
exports.DEFAULT_STD_FEE = exports.DEFAULT_TIMEOUT_HEIGHT = exports.DEFAULT_BRIDGE_FEE_AMOUNT = exports.DEFAULT_BRIDGE_FEE_PRICE = exports.DEFAULT_BRIDGE_FEE_DENOM = exports.DEFAULT_EXCHANGE_LIMIT = exports.DEFAULT_GAS_PRICE = exports.DEFAULT_GAS_LIMIT = exports.ZERO_ADDRESS = void 0;
|
|
7
|
+
const BigNumberInBase_1 = __importDefault(require("./classes/BigNumberInBase"));
|
|
4
8
|
exports.ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
5
9
|
exports.DEFAULT_GAS_LIMIT = 400000;
|
|
6
10
|
exports.DEFAULT_GAS_PRICE = 500000000;
|
|
@@ -9,4 +13,15 @@ exports.DEFAULT_BRIDGE_FEE_DENOM = 'inj';
|
|
|
9
13
|
exports.DEFAULT_BRIDGE_FEE_PRICE = '500000000';
|
|
10
14
|
exports.DEFAULT_BRIDGE_FEE_AMOUNT = '200000000000000';
|
|
11
15
|
exports.DEFAULT_TIMEOUT_HEIGHT = 40;
|
|
16
|
+
exports.DEFAULT_STD_FEE = {
|
|
17
|
+
amount: [
|
|
18
|
+
{
|
|
19
|
+
amount: new BigNumberInBase_1.default(exports.DEFAULT_GAS_LIMIT)
|
|
20
|
+
.times(exports.DEFAULT_GAS_PRICE)
|
|
21
|
+
.toString(),
|
|
22
|
+
denom: 'inj',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
gas: exports.DEFAULT_GAS_LIMIT.toString(),
|
|
26
|
+
};
|
|
12
27
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;;;;AAAA,gFAAuD;AAE1C,QAAA,YAAY,GAAG,4CAA4C,CAAA;AAE3D,QAAA,iBAAiB,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,SAAS,CAAA;AAC7B,QAAA,sBAAsB,GAAG,MAAM,CAAA;AAC/B,QAAA,wBAAwB,GAAG,KAAK,CAAA;AAChC,QAAA,wBAAwB,GAAG,WAAW,CAAA;AACtC,QAAA,yBAAyB,GAAG,iBAAiB,CAAA;AAC7C,QAAA,sBAAsB,GAAG,EAAE,CAAA;AAE3B,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE;QACN;YACE,MAAM,EAAE,IAAI,yBAAe,CAAC,yBAAiB,CAAC;iBAC3C,KAAK,CAAC,yBAAiB,CAAC;iBACxB,QAAQ,EAAE;YACb,KAAK,EAAE,KAAK;SACb;KACF;IACD,GAAG,EAAE,yBAAiB,CAAC,QAAQ,EAAE;CAClC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/utils",
|
|
3
3
|
"description": "List of utils and helper functions that can be reused throughout Injective's projects.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"snakecase-keys": "^5.1.2",
|
|
37
37
|
"store2": "^2.12.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3d3fb0d0ff1e6937092898950cd8ae222323b201"
|
|
40
40
|
}
|