@reyaxyz/common 0.64.1 → 0.65.0
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.
|
@@ -5,12 +5,12 @@ exports.getSocketDepositFees = exports.getSocketDepositFeesAsBigInt = void 0;
|
|
|
5
5
|
var types_1 = require("../types");
|
|
6
6
|
var token_1 = require("../utils/token");
|
|
7
7
|
var getNativeToken_1 = require("./getNativeToken");
|
|
8
|
-
// todo
|
|
8
|
+
// @todo update with mainnet values
|
|
9
9
|
var socketDepositFees = (_a = {},
|
|
10
|
-
_a[types_1.MoneyInOutChainId.polygonMumbai] = BigInt(
|
|
11
|
-
_a[types_1.MoneyInOutChainId.arbitrumSepolia] = BigInt(
|
|
12
|
-
_a[types_1.MoneyInOutChainId.opSepolia] = BigInt(
|
|
13
|
-
_a[types_1.MoneyInOutChainId.ethereumSepolia] = BigInt(
|
|
10
|
+
_a[types_1.MoneyInOutChainId.polygonMumbai] = BigInt(79721),
|
|
11
|
+
_a[types_1.MoneyInOutChainId.arbitrumSepolia] = BigInt(217574),
|
|
12
|
+
_a[types_1.MoneyInOutChainId.opSepolia] = BigInt(104026208000),
|
|
13
|
+
_a[types_1.MoneyInOutChainId.ethereumSepolia] = BigInt(80795),
|
|
14
14
|
_a);
|
|
15
15
|
var getSocketDepositFeesAsBigInt = function (params) {
|
|
16
16
|
return socketDepositFees[params.moneyInOutChainId];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSocketDepositFees.js","sourceRoot":"/","sources":["services/getSocketDepositFees.ts"],"names":[],"mappings":";;;;AAAA,kCAIkB;AAClB,wCAAyC;AACzC,mDAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"getSocketDepositFees.js","sourceRoot":"/","sources":["services/getSocketDepositFees.ts"],"names":[],"mappings":";;;;AAAA,kCAIkB;AAClB,wCAAyC;AACzC,mDAAkD;AAElD,mCAAmC;AACnC,IAAM,iBAAiB;IACrB,GAAC,yBAAiB,CAAC,aAAa,IAAG,MAAM,CAAC,KAAK,CAAC;IAChD,GAAC,yBAAiB,CAAC,eAAe,IAAG,MAAM,CAAC,MAAM,CAAC;IACnD,GAAC,yBAAiB,CAAC,SAAS,IAAG,MAAM,CAAC,YAAY,CAAC;IACnD,GAAC,yBAAiB,CAAC,eAAe,IAAG,MAAM,CAAC,KAAK,CAAC;OACnD,CAAC;AAEK,IAAM,4BAA4B,GAAG,UAC1C,MAAkC;IAElC,OAAO,iBAAiB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACrD,CAAC,CAAC;AAJW,QAAA,4BAA4B,gCAIvC;AAEK,IAAM,oBAAoB,GAAG,UAClC,MAAkC;IAElC,OAAO;QACL,IAAI,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAC9D,mBAAmB,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,iBAAiB,CAAC;KAC9D,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,oBAAoB,wBAO/B","sourcesContent":["import {\n GetSocketDepositFeesParams,\n GetSocketDepositFeesResult,\n MoneyInOutChainId,\n} from '../types';\nimport { descale } from '../utils/token';\nimport { getNativeToken } from './getNativeToken';\n\n// @todo update with mainnet values\nconst socketDepositFees: Record<MoneyInOutChainId, bigint> = {\n [MoneyInOutChainId.polygonMumbai]: BigInt(79721),\n [MoneyInOutChainId.arbitrumSepolia]: BigInt(217574),\n [MoneyInOutChainId.opSepolia]: BigInt(104026208000),\n [MoneyInOutChainId.ethereumSepolia]: BigInt(80795),\n};\n\nexport const getSocketDepositFeesAsBigInt = (\n params: GetSocketDepositFeesParams,\n): bigint => {\n return socketDepositFees[params.moneyInOutChainId];\n};\n\nexport const getSocketDepositFees = (\n params: GetSocketDepositFeesParams,\n): GetSocketDepositFeesResult => {\n return {\n fees: descale(18)(socketDepositFees[params.moneyInOutChainId]),\n feesUnderlyingToken: getNativeToken(params.moneyInOutChainId),\n };\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
43
43
|
},
|
|
44
44
|
"packageManager": "pnpm@8.10.4",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2f5dd7c59e9a3f247acd87aa80ebb30a97e06791"
|
|
46
46
|
}
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
import { descale } from '../utils/token';
|
|
7
7
|
import { getNativeToken } from './getNativeToken';
|
|
8
8
|
|
|
9
|
-
// todo
|
|
9
|
+
// @todo update with mainnet values
|
|
10
10
|
const socketDepositFees: Record<MoneyInOutChainId, bigint> = {
|
|
11
|
-
[MoneyInOutChainId.polygonMumbai]: BigInt(
|
|
12
|
-
[MoneyInOutChainId.arbitrumSepolia]: BigInt(
|
|
13
|
-
[MoneyInOutChainId.opSepolia]: BigInt(
|
|
14
|
-
[MoneyInOutChainId.ethereumSepolia]: BigInt(
|
|
11
|
+
[MoneyInOutChainId.polygonMumbai]: BigInt(79721),
|
|
12
|
+
[MoneyInOutChainId.arbitrumSepolia]: BigInt(217574),
|
|
13
|
+
[MoneyInOutChainId.opSepolia]: BigInt(104026208000),
|
|
14
|
+
[MoneyInOutChainId.ethereumSepolia]: BigInt(80795),
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const getSocketDepositFeesAsBigInt = (
|