@allbridge/bridge-core-sdk 3.24.0 → 3.25.0-alpha.1

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.
Files changed (55) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/index.js.map +4 -4
  5. package/dist/esm/index.js +1 -1
  6. package/dist/esm/index.js.map +4 -4
  7. package/dist/src/client/core-api/core-api-mapper.js +2 -1
  8. package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
  9. package/dist/src/client/core-api/core-api.model.d.ts +6 -1
  10. package/dist/src/client/core-api/core-api.model.js.map +1 -1
  11. package/dist/src/exceptions/exceptions.d.ts +4 -0
  12. package/dist/src/exceptions/exceptions.js +8 -1
  13. package/dist/src/exceptions/exceptions.js.map +1 -1
  14. package/dist/src/index.d.ts +2 -0
  15. package/dist/src/index.js +2 -0
  16. package/dist/src/index.js.map +1 -1
  17. package/dist/src/models/index.d.ts +4 -0
  18. package/dist/src/models/index.js +4 -1
  19. package/dist/src/models/index.js.map +1 -1
  20. package/dist/src/services/index.d.ts +2 -0
  21. package/dist/src/services/index.js +3 -0
  22. package/dist/src/services/index.js.map +1 -1
  23. package/dist/src/services/models/abi/PortfolioToken.d.ts +589 -0
  24. package/dist/src/services/models/abi/PortfolioToken.js +770 -0
  25. package/dist/src/services/models/abi/PortfolioToken.js.map +1 -0
  26. package/dist/src/services/yield/evm/index.d.ts +24 -0
  27. package/dist/src/services/yield/evm/index.js +64 -0
  28. package/dist/src/services/yield/evm/index.js.map +1 -0
  29. package/dist/src/services/yield/index.d.ts +65 -0
  30. package/dist/src/services/yield/index.js +133 -0
  31. package/dist/src/services/yield/index.js.map +1 -0
  32. package/dist/src/services/yield/models/index.d.ts +2 -0
  33. package/dist/src/services/yield/models/index.js +21 -0
  34. package/dist/src/services/yield/models/index.js.map +1 -0
  35. package/dist/src/services/yield/models/yield.d.ts +13 -0
  36. package/dist/src/services/yield/models/yield.js +7 -0
  37. package/dist/src/services/yield/models/yield.js.map +1 -0
  38. package/dist/src/services/yield/models/yield.model.d.ts +94 -0
  39. package/dist/src/services/yield/models/yield.model.js +3 -0
  40. package/dist/src/services/yield/models/yield.model.js.map +1 -0
  41. package/dist/src/services/yield/raw-yield-transaction-builder.d.ts +36 -0
  42. package/dist/src/services/yield/raw-yield-transaction-builder.js +42 -0
  43. package/dist/src/services/yield/raw-yield-transaction-builder.js.map +1 -0
  44. package/dist/src/services/yield/trx/index.d.ts +18 -0
  45. package/dist/src/services/yield/trx/index.js +70 -0
  46. package/dist/src/services/yield/trx/index.js.map +1 -0
  47. package/dist/src/services/yield/validations.d.ts +15 -0
  48. package/dist/src/services/yield/validations.js +25 -0
  49. package/dist/src/services/yield/validations.js.map +1 -0
  50. package/dist/src/tokens-info/tokens-info.model.d.ts +8 -6
  51. package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
  52. package/dist/src/version.d.ts +1 -1
  53. package/dist/src/version.js +1 -1
  54. package/dist/src/version.js.map +1 -1
  55. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultRawYieldTransactionBuilder = void 0;
4
+ const calculation_1 = require("../../utils/calculation");
5
+ const constants_1 = require("../../utils/calculation/constants");
6
+ const utils_1 = require("../../utils/utils");
7
+ const index_1 = require("./index");
8
+ class DefaultRawYieldTransactionBuilder {
9
+ api;
10
+ nodeRpcUrlsConfig;
11
+ params;
12
+ tokenService;
13
+ constructor(api, nodeRpcUrlsConfig, params, tokenService) {
14
+ this.api = api;
15
+ this.nodeRpcUrlsConfig = nodeRpcUrlsConfig;
16
+ this.params = params;
17
+ this.tokenService = tokenService;
18
+ }
19
+ async approve(approveData, provider) {
20
+ return this.tokenService.buildRawTransactionApprove({
21
+ ...approveData,
22
+ spender: approveData.token.yieldAddress,
23
+ }, provider);
24
+ }
25
+ async deposit(params, provider) {
26
+ (0, utils_1.validateAmountGtZero)(params.amount);
27
+ (0, utils_1.validateAmountDecimals)("amount", params.amount, params.token.decimals);
28
+ (0, utils_1.validateAmountGtZero)(params.minVirtualAmount);
29
+ (0, utils_1.validateAmountDecimals)("minVirtualAmount", params.minVirtualAmount, 3);
30
+ params.amount = (0, calculation_1.convertFloatAmountToInt)(params.amount, params.token.decimals).toFixed();
31
+ params.minVirtualAmount = (0, calculation_1.convertFloatAmountToInt)(params.minVirtualAmount, 3).toFixed();
32
+ return (0, index_1.getChainYieldService)(params.token.chainSymbol, this.api, this.nodeRpcUrlsConfig, params.owner, provider).buildRawTransactionDeposit(params);
33
+ }
34
+ async withdraw(params, provider) {
35
+ (0, utils_1.validateAmountGtZero)(params.amount);
36
+ (0, utils_1.validateAmountDecimals)("amount", params.amount, constants_1.SYSTEM_PRECISION);
37
+ params.amount = (0, calculation_1.convertFloatAmountToInt)(params.amount, constants_1.SYSTEM_PRECISION).toFixed();
38
+ return (0, index_1.getChainYieldService)(params.token.chainSymbol, this.api, this.nodeRpcUrlsConfig, params.owner, provider).buildRawTransactionWithdraw(params);
39
+ }
40
+ }
41
+ exports.DefaultRawYieldTransactionBuilder = DefaultRawYieldTransactionBuilder;
42
+ //# sourceMappingURL=raw-yield-transaction-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raw-yield-transaction-builder.js","sourceRoot":"","sources":["../../../../src/services/yield/raw-yield-transaction-builder.ts"],"names":[],"mappings":";;;AAGA,yDAAkE;AAClE,iEAAqE;AACrE,6CAAiF;AAIjF,mCAA+C;AAyB/C,MAAa,iCAAiC;IAElC;IACA;IACA;IACA;IAJV,YACU,GAAwB,EACxB,iBAAoC,EACpC,MAA+B,EAC/B,YAA0B;QAH1B,QAAG,GAAH,GAAG,CAAqB;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,WAAM,GAAN,MAAM,CAAyB;QAC/B,iBAAY,GAAZ,YAAY,CAAc;IACjC,CAAC;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,MAAM,GAAG,IAAA,qCAAuB,EAAC,MAAM,CAAC,MAAM,EAAE,4BAAgB,CAAC,CAAC,OAAO,EAAE,CAAC;QACnF,OAAO,IAAA,4BAAoB,EACzB,MAAM,CAAC,KAAK,CAAC,WAAW,EACxB,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,iBAAiB,EACtB,MAAM,CAAC,KAAK,EACZ,QAAQ,CACT,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;CACF;AA9CD,8EA8CC","sourcesContent":["import { NodeRpcUrlsConfig } from \"..\";\nimport { AllbridgeCoreClient } from \"../../client/core-api/core-client-base\";\nimport { AllbridgeCoreSdkOptions } from \"../../index\";\nimport { convertFloatAmountToInt } from \"../../utils/calculation\";\nimport { SYSTEM_PRECISION } from \"../../utils/calculation/constants\";\nimport { validateAmountDecimals, validateAmountGtZero } from \"../../utils/utils\";\nimport { Provider, RawTransaction } from \"../models\";\nimport { TokenService } from \"../token\";\nimport { YieldApproveParams, YieldDepositParams, YieldWithdrawParams } from \"./models/yield.model\";\nimport { getChainYieldService } from \"./index\";\n\nexport interface RawYieldTransactionBuilder {\n /**\n * Creates a Raw Transaction for approving tokens usage by the Yield\n * @param approveData\n * @param provider - will be used to access the network\n */\n approve(approveData: YieldApproveParams, provider?: Provider): Promise<RawTransaction>;\n\n /**\n * Creates a Raw Transaction for depositing tokens to Yield\n * @param params\n * @param provider - will be used to access the network\n */\n deposit(params: YieldDepositParams, provider?: Provider): Promise<RawTransaction>;\n\n /**\n * Creates a Raw Transaction for withdrawing tokens from Yield\n * @param params\n * @param provider - will be used to access the network\n */\n withdraw(params: YieldWithdrawParams, provider?: Provider): Promise<RawTransaction>;\n}\n\nexport class DefaultRawYieldTransactionBuilder implements RawYieldTransactionBuilder {\n constructor(\n private api: AllbridgeCoreClient,\n private nodeRpcUrlsConfig: NodeRpcUrlsConfig,\n private params: AllbridgeCoreSdkOptions,\n private tokenService: TokenService\n ) {}\n\n async approve(approveData: YieldApproveParams, provider?: Provider): Promise<RawTransaction> {\n return this.tokenService.buildRawTransactionApprove(\n {\n ...approveData,\n spender: approveData.token.yieldAddress,\n },\n provider\n );\n }\n\n async deposit(params: YieldDepositParams, provider?: Provider): Promise<RawTransaction> {\n validateAmountGtZero(params.amount);\n validateAmountDecimals(\"amount\", params.amount, params.token.decimals);\n validateAmountGtZero(params.minVirtualAmount);\n validateAmountDecimals(\"minVirtualAmount\", params.minVirtualAmount, 3);\n params.amount = convertFloatAmountToInt(params.amount, params.token.decimals).toFixed();\n params.minVirtualAmount = convertFloatAmountToInt(params.minVirtualAmount, 3).toFixed();\n return getChainYieldService(\n params.token.chainSymbol,\n this.api,\n this.nodeRpcUrlsConfig,\n params.owner,\n provider\n ).buildRawTransactionDeposit(params);\n }\n\n async withdraw(params: YieldWithdrawParams, provider?: Provider): Promise<RawTransaction> {\n validateAmountGtZero(params.amount);\n validateAmountDecimals(\"amount\", params.amount, SYSTEM_PRECISION);\n params.amount = convertFloatAmountToInt(params.amount, SYSTEM_PRECISION).toFixed();\n return getChainYieldService(\n params.token.chainSymbol,\n this.api,\n this.nodeRpcUrlsConfig,\n params.owner,\n provider\n ).buildRawTransactionWithdraw(params);\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import { TronWeb } from "tronweb";
2
+ import { ChainType } from "../../../chains/chain.enums";
3
+ import { AllbridgeCoreClient } from "../../../client/core-api/core-client-base";
4
+ import { RawTransaction } from "../../models";
5
+ import { ChainYieldService, YieldBalanceParams, YieldDepositParams, YieldGetEstimatedAmountOnDepositParams, YieldGetWithdrawProportionAmountParams, YieldWithdrawParams } from "../models";
6
+ export declare class TronYieldService extends ChainYieldService {
7
+ tronWeb: TronWeb;
8
+ api: AllbridgeCoreClient;
9
+ chainType: ChainType.TRX;
10
+ constructor(tronWeb: TronWeb, api: AllbridgeCoreClient);
11
+ balanceOf(params: YieldBalanceParams): Promise<string>;
12
+ getEstimatedAmountOnDeposit(params: YieldGetEstimatedAmountOnDepositParams): Promise<string>;
13
+ getWithdrawProportionAmount(params: YieldGetWithdrawProportionAmountParams): Promise<string[]>;
14
+ buildRawTransactionDeposit(params: YieldDepositParams): Promise<RawTransaction>;
15
+ buildRawTransactionWithdraw(params: YieldWithdrawParams): Promise<RawTransaction>;
16
+ private buildRawTransaction;
17
+ private getContract;
18
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TronYieldService = void 0;
7
+ const chain_enums_1 = require("../../../chains/chain.enums");
8
+ const exceptions_1 = require("../../../exceptions");
9
+ const calculation_1 = require("../../../utils/calculation");
10
+ const constants_1 = require("../../../utils/calculation/constants");
11
+ const PortfolioToken_1 = __importDefault(require("../../models/abi/PortfolioToken"));
12
+ const models_1 = require("../models");
13
+ class TronYieldService extends models_1.ChainYieldService {
14
+ tronWeb;
15
+ api;
16
+ chainType = chain_enums_1.ChainType.TRX;
17
+ constructor(tronWeb, api) {
18
+ super();
19
+ this.tronWeb = tronWeb;
20
+ this.api = api;
21
+ }
22
+ async balanceOf(params) {
23
+ const vCYD = (await (await this.getContract(params.token.yieldAddress)).methods.balanceOf(params.owner).call()).toString();
24
+ return (0, calculation_1.convertIntAmountToFloat)(vCYD, constants_1.SYSTEM_PRECISION).toFixed();
25
+ }
26
+ async getEstimatedAmountOnDeposit(params) {
27
+ const amountInt = (0, calculation_1.convertFloatAmountToInt)(params.amount, params.token.decimals).toFixed();
28
+ const resultInt = (await (await this.getContract(params.token.yieldAddress)).methods
29
+ .getEstimatedAmountOnDeposit(amountInt, params.token.yieldId)
30
+ .call()).toString();
31
+ return (0, calculation_1.convertIntAmountToFloat)(resultInt, constants_1.SYSTEM_PRECISION).toFixed();
32
+ }
33
+ async getWithdrawProportionAmount(params) {
34
+ const amountInt = (0, calculation_1.convertFloatAmountToInt)(params.amount, constants_1.SYSTEM_PRECISION).toFixed();
35
+ const result = await (await this.getContract(params.cydToken.yieldAddress)).methods
36
+ .getWithdrawProportionAmount(params.owner, amountInt)
37
+ .call();
38
+ return result.toString().split(",");
39
+ }
40
+ async buildRawTransactionDeposit(params) {
41
+ const { amount, owner, token, minVirtualAmount } = params;
42
+ const parameter = [
43
+ { type: "uint256", value: amount },
44
+ { type: "uint256", value: token.yieldId },
45
+ { type: "uint256", value: minVirtualAmount },
46
+ ];
47
+ const methodSignature = "deposit(uint256,uint256,uint256)";
48
+ return this.buildRawTransaction(params.token.yieldAddress, methodSignature, parameter, "0", owner);
49
+ }
50
+ async buildRawTransactionWithdraw(params) {
51
+ const { amount, owner } = params;
52
+ const parameter = [{ type: "uint256", value: amount }];
53
+ const methodSignature = "withdraw(uint256)";
54
+ return this.buildRawTransaction(params.token.yieldAddress, methodSignature, parameter, "0", owner);
55
+ }
56
+ async buildRawTransaction(contractAddress, methodSignature, parameter, value, fromAddress) {
57
+ const transactionObject = await this.tronWeb.transactionBuilder.triggerSmartContract(contractAddress, methodSignature, {
58
+ callValue: +value,
59
+ }, parameter, fromAddress);
60
+ if (!transactionObject?.result?.result) {
61
+ throw new exceptions_1.SdkError("Unknown error: " + JSON.stringify(transactionObject, null, 2));
62
+ }
63
+ return transactionObject.transaction;
64
+ }
65
+ getContract(contractAddress) {
66
+ return this.tronWeb.contract(PortfolioToken_1.default.abi, contractAddress);
67
+ }
68
+ }
69
+ exports.TronYieldService = TronYieldService;
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/services/yield/trx/index.ts"],"names":[],"mappings":";;;;;;AACA,6DAAwD;AAExD,oDAA+C;AAC/C,4DAA8F;AAC9F,oEAAwE;AAExE,qFAAoD;AACpD,sCAOmB;AAEnB,MAAa,gBAAiB,SAAQ,0BAAiB;IAI5C;IACA;IAJT,SAAS,GAAkB,uBAAS,CAAC,GAAG,CAAC;IAEzC,YACS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OAAO,CAAC,kBAAkB,CAAC,oBAAoB,CAClF,eAAe,EACf,eAAe,EACf;YACE,SAAS,EAAE,CAAC,KAAK;SAClB,EACD,SAAS,EACT,WAAW,CACZ,CAAC;QACF,IAAI,CAAC,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACvC,MAAM,IAAI,qBAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACrF,CAAC;QACD,OAAO,iBAAiB,CAAC,WAAW,CAAC;IACvC,CAAC;IAEO,WAAW,CAAC,eAAuB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAK,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IAC3D,CAAC;CACF;AAjFD,4CAiFC","sourcesContent":["import { TronWeb } from \"tronweb\";\nimport { ChainType } from \"../../../chains/chain.enums\";\nimport { AllbridgeCoreClient } from \"../../../client/core-api/core-client-base\";\nimport { SdkError } from \"../../../exceptions\";\nimport { convertFloatAmountToInt, convertIntAmountToFloat } from \"../../../utils/calculation\";\nimport { SYSTEM_PRECISION } from \"../../../utils/calculation/constants\";\nimport { RawTransaction, SmartContractMethodParameter } from \"../../models\";\nimport Yield from \"../../models/abi/PortfolioToken\";\nimport {\n ChainYieldService,\n YieldBalanceParams,\n YieldDepositParams,\n YieldGetEstimatedAmountOnDepositParams,\n YieldGetWithdrawProportionAmountParams,\n YieldWithdrawParams,\n} from \"../models\";\n\nexport class TronYieldService extends ChainYieldService {\n chainType: ChainType.TRX = ChainType.TRX;\n\n constructor(\n public tronWeb: TronWeb,\n public api: AllbridgeCoreClient\n ) {\n super();\n }\n\n async balanceOf(params: YieldBalanceParams): Promise<string> {\n const vCYD = (\n await (await this.getContract(params.token.yieldAddress)).methods.balanceOf(params.owner).call()\n ).toString();\n return convertIntAmountToFloat(vCYD, SYSTEM_PRECISION).toFixed();\n }\n\n async getEstimatedAmountOnDeposit(params: YieldGetEstimatedAmountOnDepositParams): Promise<string> {\n const amountInt = convertFloatAmountToInt(params.amount, params.token.decimals).toFixed();\n const resultInt = (\n await (await this.getContract(params.token.yieldAddress)).methods\n .getEstimatedAmountOnDeposit(amountInt, params.token.yieldId)\n .call()\n ).toString();\n return convertIntAmountToFloat(resultInt, SYSTEM_PRECISION).toFixed();\n }\n\n async getWithdrawProportionAmount(params: YieldGetWithdrawProportionAmountParams): Promise<string[]> {\n const amountInt = convertFloatAmountToInt(params.amount, SYSTEM_PRECISION).toFixed();\n const result = await (await this.getContract(params.cydToken.yieldAddress)).methods\n .getWithdrawProportionAmount(params.owner, amountInt)\n .call();\n return result.toString().split(\",\");\n }\n\n async buildRawTransactionDeposit(params: YieldDepositParams): Promise<RawTransaction> {\n const { amount, owner, token, minVirtualAmount } = params;\n const parameter = [\n { type: \"uint256\", value: amount },\n { type: \"uint256\", value: token.yieldId },\n { type: \"uint256\", value: minVirtualAmount },\n ];\n const methodSignature = \"deposit(uint256,uint256,uint256)\";\n\n return this.buildRawTransaction(params.token.yieldAddress, methodSignature, parameter, \"0\", owner);\n }\n\n async buildRawTransactionWithdraw(params: YieldWithdrawParams): Promise<RawTransaction> {\n const { amount, owner } = params;\n\n const parameter = [{ type: \"uint256\", value: amount }];\n const methodSignature = \"withdraw(uint256)\";\n\n return this.buildRawTransaction(params.token.yieldAddress, methodSignature, parameter, \"0\", owner);\n }\n\n private async buildRawTransaction(\n contractAddress: string,\n methodSignature: string,\n parameter: SmartContractMethodParameter[],\n value: string,\n fromAddress: string\n ): Promise<RawTransaction> {\n const transactionObject = await this.tronWeb.transactionBuilder.triggerSmartContract(\n contractAddress,\n methodSignature,\n {\n callValue: +value,\n },\n parameter,\n fromAddress\n );\n if (!transactionObject?.result?.result) {\n throw new SdkError(\"Unknown error: \" + JSON.stringify(transactionObject, null, 2));\n }\n return transactionObject.transaction;\n }\n\n private getContract(contractAddress: string): any {\n return this.tronWeb.contract(Yield.abi, contractAddress);\n }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { TokenWithChainDetails } from "../../tokens-info";
2
+ import { TokenWithChainDetailsYield } from "./models";
3
+ /**
4
+ * Assert that token is supported by Yield,</br>
5
+ * asserts token is TokenWithChainDetailsYield</br>
6
+ * throws {@link YieldDoesNotSupportedError} if not
7
+ * @param token
8
+ */
9
+ export declare function assertYieldIsSupported(token: TokenWithChainDetails): asserts token is TokenWithChainDetailsYield;
10
+ /**
11
+ * is Yield support
12
+ * @param token
13
+ * @return isYieldSupported
14
+ */
15
+ export declare function isYieldSupported(token: TokenWithChainDetails): token is TokenWithChainDetailsYield;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertYieldIsSupported = assertYieldIsSupported;
4
+ exports.isYieldSupported = isYieldSupported;
5
+ const exceptions_1 = require("../../exceptions");
6
+ /**
7
+ * Assert that token is supported by Yield,</br>
8
+ * asserts token is TokenWithChainDetailsYield</br>
9
+ * throws {@link YieldDoesNotSupportedError} if not
10
+ * @param token
11
+ */
12
+ function assertYieldIsSupported(token) {
13
+ if (!isYieldSupported(token)) {
14
+ throw new exceptions_1.YieldDoesNotSupportedError("Token does not support Yield");
15
+ }
16
+ }
17
+ /**
18
+ * is Yield support
19
+ * @param token
20
+ * @return isYieldSupported
21
+ */
22
+ function isYieldSupported(token) {
23
+ return !!token.yieldAddress && token.yieldId !== undefined;
24
+ }
25
+ //# sourceMappingURL=validations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validations.js","sourceRoot":"","sources":["../../../../src/services/yield/validations.ts"],"names":[],"mappings":";;AAUA,wDAIC;AAOD,4CAEC;AAvBD,iDAA8D;AAI9D;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAC,KAA4B;IACjE,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,uCAA0B,CAAC,8BAA8B,CAAC,CAAC;IACvE,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,KAA4B;IAC3D,OAAO,CAAC,CAAC,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC;AAC7D,CAAC","sourcesContent":["import { YieldDoesNotSupportedError } from \"../../exceptions\";\nimport { TokenWithChainDetails } from \"../../tokens-info\";\nimport { TokenWithChainDetailsYield } from \"./models\";\n\n/**\n * Assert that token is supported by Yield,</br>\n * asserts token is TokenWithChainDetailsYield</br>\n * throws {@link YieldDoesNotSupportedError} if not\n * @param token\n */\nexport function assertYieldIsSupported(token: TokenWithChainDetails): asserts token is TokenWithChainDetailsYield {\n if (!isYieldSupported(token)) {\n throw new YieldDoesNotSupportedError(\"Token does not support Yield\");\n }\n}\n\n/**\n * is Yield support\n * @param token\n * @return isYieldSupported\n */\nexport function isYieldSupported(token: TokenWithChainDetails): token is TokenWithChainDetailsYield {\n return !!token.yieldAddress && token.yieldId !== undefined;\n}\n"]}
@@ -1,4 +1,3 @@
1
- import { ChainSymbol } from "../chains/chain.enums";
2
1
  import { BasicChainProperties } from "../chains/models";
3
2
  import { Messenger } from "../client/core-api/core-api.model";
4
3
  /**
@@ -27,6 +26,10 @@ export interface ChainDetails extends BasicChainProperties {
27
26
  * Optional. Defined if the chain supports OFT
28
27
  */
29
28
  oftBridgeAddress?: string;
29
+ /**
30
+ * Yield contract address
31
+ */
32
+ yieldAddress?: string;
30
33
  /**
31
34
  * Average transfer time to other blockchains
32
35
  */
@@ -125,7 +128,7 @@ export interface Token {
125
128
  */
126
129
  feeShare: string;
127
130
  /**
128
- * @deprecated use {@link apr7d}</br>
131
+ * @Deprecated use {@link apr7d}</br>
129
132
  * Token APR
130
133
  */
131
134
  apr: string;
@@ -141,6 +144,7 @@ export interface Token {
141
144
  * Token LP rate
142
145
  */
143
146
  lpRate: string;
147
+ yieldId?: number;
144
148
  /**
145
149
  * Sui addresses
146
150
  * Optional. Defined for SUI
@@ -226,12 +230,10 @@ export interface PoolInfo {
226
230
  * Type representing transfer times for various blockchain chains.
227
231
  *
228
232
  * @typedef {Record<string, MessengerTransferTime>} TransferTime
229
- * @property {chain} chainSymbol
233
+ * @property {string} chainSymbol - The symbol of the chain representing one of the supported blockchain networks (e.g., "ETH" for Ethereum). For more details, see: {@link ChainSymbol}.
230
234
  * @property {MessengerTransferTime} transferTime - The average transfer time details for the specified chain.
231
235
  */
232
- export type TransferTime = {
233
- [chain in ChainSymbol]?: MessengerTransferTime;
234
- };
236
+ export type TransferTime = Record<string, MessengerTransferTime>;
235
237
  /**
236
238
  * Contains Avg transaction time withing different messenger protocols
237
239
  */
@@ -1 +1 @@
1
- {"version":3,"file":"tokens-info.model.js","sourceRoot":"","sources":["../../../src/tokens-info/tokens-info.model.ts"],"names":[],"mappings":"","sourcesContent":["import { ChainSymbol } from \"../chains/chain.enums\";\nimport { BasicChainProperties } from \"../chains/models\";\nimport { Messenger } from \"../client/core-api/core-api.model\";\n\n/**\n * Type representing a map of blockchain chain symbols to their corresponding details, including token information.\n *\n * @typedef {Record<string, ChainDetailsWithTokens>} ChainDetailsMap\n * @property {string} chainSymbol - The symbol of the chain representing one of the supported blockchain networks (e.g., \"ETH\" for Ethereum). For more details, see: {@link ChainSymbol}.\n * @property {ChainDetailsWithTokens} chainDetails - The detailed information of the specified chain, including token information.\n */\nexport type ChainDetailsMap = Record<string, ChainDetailsWithTokens>;\n\nexport type ChainDetailsMapWithFlags = Record<string, ChainDetailsWithTokensWithFlags>;\n\n/**\n * Contains some blockchain details\n */\nexport interface ChainDetails extends BasicChainProperties {\n /**\n * Allbridge's Id\n */\n allbridgeChainId: number;\n /**\n * Bridge contract address\n */\n bridgeAddress: string;\n /**\n * OFT Bridge contract address\n * Optional. Defined if the chain supports OFT\n */\n oftBridgeAddress?: string;\n /**\n * Average transfer time to other blockchains\n */\n transferTime: TransferTime;\n /**\n * Transfers costs\n */\n txCostAmount: TxCostAmount;\n /**\n * Number of confirmations required\n */\n confirmations: number;\n /**\n * Sui addresses\n * Optional. Defined for SUI\n */\n suiAddresses?: SuiAddresses;\n}\n\n/**\n * Contains tokens list\n */\nexport interface ChainDetailsWithTokens extends ChainDetails {\n /**\n * Tokens\n */\n tokens: TokenWithChainDetails[];\n}\n\n/**\n * Contains tokens list\n */\nexport interface ChainDetailsWithTokensWithFlags extends ChainDetails {\n /**\n * Tokens\n */\n tokens: TokenWithChainDetailsWithFlags[];\n}\n\n/**\n * Contains token information\n */\nexport interface Token {\n /**\n * Token symbol\n */\n symbol: string;\n /**\n * Token name\n */\n name: string;\n /**\n * Token decimals\n */\n decimals: number;\n /**\n * Token pool address\n */\n poolAddress: string;\n /**\n * Token address\n */\n tokenAddress: string;\n /**\n * Token origin address\n */\n originTokenAddress?: string;\n /**\n * Token CCTP address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpAddress?: string;\n /**\n * Token CCTP V2 address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpFeeShare?: string;\n /**\n * Token CCTP address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpV2Address?: string;\n /**\n * Token CCTP V2 address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpV2FeeShare?: string;\n /**\n * Internal identifier for the same token across different chains.\n *\n * Used to link representations of a token deployed on multiple networks (e.g., Ethereum, BSC).\n * Tokens with the same `oftId` are considered to be equivalent.\n *\n * Optional. Defined if OFT supported by token\n */\n oftId?: string;\n /**\n * Token fee share\n */\n feeShare: string;\n /**\n * @deprecated use {@link apr7d}</br>\n * Token APR\n */\n apr: string;\n /**\n * Token APR based on last 7 days\n */\n apr7d: string;\n /**\n * Token APR based on last 30 days\n */\n apr30d: string;\n /**\n * Token LP rate\n */\n lpRate: string;\n /**\n * Sui addresses\n * Optional. Defined for SUI\n */\n suiAddresses?: SuiAddresses;\n}\n\nexport interface SuiAddresses {\n bridgeAddress: string;\n bridgeAddressOrigin?: string;\n bridgeObjectAddress: string;\n\n allbridgeMessengerAddress: string;\n allbridgeMessengerAddressOrigin?: string;\n allbridgeMessengerObjectAddress: string;\n\n gasOracleAddress: string;\n gasOracleAddressOrigin?: string;\n gasOracleObjectAddress: string;\n\n utilsAddress: string;\n\n wormholeMessengerAddress: string;\n wormholeMessengerAddressOrigin?: string;\n wormholeMessengerObjectAddress: string;\n wormholeStateObjectAddress: string;\n\n cctpAddress: string;\n cctpAddressOrigin?: string;\n cctpObjectAddress: string;\n\n cctpDenyListObjectAddress: string;\n cctpMessageTransmitterStateObjectAddress: string;\n cctpTokenMessengerMinterStateObjectAddress: string;\n cctpTreasuryObjectAddress: string;\n}\n\n/**\n * General Token Interface\n */\nexport interface TokenWithChainDetails extends Token, Omit<ChainDetails, \"name\"> {\n /**\n * Blockchain network name\n */\n chainName: string;\n}\n\nexport interface TokenWithChainDetailsWithFlags extends TokenWithChainDetails {\n flags: { swap: boolean; pool: boolean };\n}\n\n/**\n * General Pool Interface\n */\nexport interface PoolInfo {\n /**\n * Pool A value\n */\n aValue: string;\n /**\n * Pool D value\n */\n dValue: string;\n /**\n * Pool token balance\n */\n tokenBalance: string;\n /**\n * Pool virtual USD balance\n */\n vUsdBalance: string;\n /**\n * Pool total liquidity amount\n */\n totalLpAmount: string;\n /**\n * Current accumulated reward per share shifted by P bits\n */\n accRewardPerShareP: string;\n /**\n * P value, needed for accRewardPerShareP\n */\n p: number;\n /**\n * Pool imbalance\n */\n imbalance: string;\n}\n\n/**\n * Type representing transfer times for various blockchain chains.\n *\n * @typedef {Record<string, MessengerTransferTime>} TransferTime\n * @property {chain} chainSymbol\n * @property {MessengerTransferTime} transferTime - The average transfer time details for the specified chain.\n */\nexport type TransferTime = {\n [chain in ChainSymbol]?: MessengerTransferTime;\n};\n\n/**\n * Contains Avg transaction time withing different messenger protocols\n */\nexport type MessengerTransferTime = {\n [messenger in Messenger]?: number;\n};\n\nexport interface PoolKeyObject {\n chainSymbol: string;\n poolAddress: string;\n}\n\n/**\n * Contains transfer costs\n */\nexport interface TxCostAmount {\n /**\n * The maximum gas amount that can be received as extra gas for one transfer\n */\n maxAmount: string;\n /**\n * Swap cost\n */\n swap: string;\n /**\n * Transfer cost\n */\n transfer: string;\n}\n\nexport type PoolInfoMap = Record<string, PoolInfo>;\n"]}
1
+ {"version":3,"file":"tokens-info.model.js","sourceRoot":"","sources":["../../../src/tokens-info/tokens-info.model.ts"],"names":[],"mappings":"","sourcesContent":["import { BasicChainProperties } from \"../chains/models\";\nimport { Messenger } from \"../client/core-api/core-api.model\";\n\n/**\n * Type representing a map of blockchain chain symbols to their corresponding details, including token information.\n *\n * @typedef {Record<string, ChainDetailsWithTokens>} ChainDetailsMap\n * @property {string} chainSymbol - The symbol of the chain representing one of the supported blockchain networks (e.g., \"ETH\" for Ethereum). For more details, see: {@link ChainSymbol}.\n * @property {ChainDetailsWithTokens} chainDetails - The detailed information of the specified chain, including token information.\n */\nexport type ChainDetailsMap = Record<string, ChainDetailsWithTokens>;\n\nexport type ChainDetailsMapWithFlags = Record<string, ChainDetailsWithTokensWithFlags>;\n\n/**\n * Contains some blockchain details\n */\nexport interface ChainDetails extends BasicChainProperties {\n /**\n * Allbridge's Id\n */\n allbridgeChainId: number;\n /**\n * Bridge contract address\n */\n bridgeAddress: string;\n /**\n * OFT Bridge contract address\n * Optional. Defined if the chain supports OFT\n */\n oftBridgeAddress?: string;\n /**\n * Yield contract address\n */\n yieldAddress?: string;\n /**\n * Average transfer time to other blockchains\n */\n transferTime: TransferTime;\n /**\n * Transfers costs\n */\n txCostAmount: TxCostAmount;\n /**\n * Number of confirmations required\n */\n confirmations: number;\n /**\n * Sui addresses\n * Optional. Defined for SUI\n */\n suiAddresses?: SuiAddresses;\n}\n\n/**\n * Contains tokens list\n */\nexport interface ChainDetailsWithTokens extends ChainDetails {\n /**\n * Tokens\n */\n tokens: TokenWithChainDetails[];\n}\n\n/**\n * Contains tokens list\n */\nexport interface ChainDetailsWithTokensWithFlags extends ChainDetails {\n /**\n * Tokens\n */\n tokens: TokenWithChainDetailsWithFlags[];\n}\n\n/**\n * Contains token information\n */\nexport interface Token {\n /**\n * Token symbol\n */\n symbol: string;\n /**\n * Token name\n */\n name: string;\n /**\n * Token decimals\n */\n decimals: number;\n /**\n * Token pool address\n */\n poolAddress: string;\n /**\n * Token address\n */\n tokenAddress: string;\n /**\n * Token origin address\n */\n originTokenAddress?: string;\n /**\n * Token CCTP address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpAddress?: string;\n /**\n * Token CCTP V2 address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpFeeShare?: string;\n /**\n * Token CCTP address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpV2Address?: string;\n /**\n * Token CCTP V2 address</br>\n * Optional. Defined if CCTP supported by token\n */\n cctpV2FeeShare?: string;\n /**\n * Internal identifier for the same token across different chains.\n *\n * Used to link representations of a token deployed on multiple networks (e.g., Ethereum, BSC).\n * Tokens with the same `oftId` are considered to be equivalent.\n *\n * Optional. Defined if OFT supported by token\n */\n oftId?: string;\n /**\n * Token fee share\n */\n feeShare: string;\n /**\n * @Deprecated use {@link apr7d}</br>\n * Token APR\n */\n apr: string;\n /**\n * Token APR based on last 7 days\n */\n apr7d: string;\n /**\n * Token APR based on last 30 days\n */\n apr30d: string;\n /**\n * Token LP rate\n */\n lpRate: string;\n\n yieldId?: number;\n /**\n * Sui addresses\n * Optional. Defined for SUI\n */\n suiAddresses?: SuiAddresses;\n}\n\nexport interface SuiAddresses {\n bridgeAddress: string;\n bridgeAddressOrigin?: string;\n bridgeObjectAddress: string;\n\n allbridgeMessengerAddress: string;\n allbridgeMessengerAddressOrigin?: string;\n allbridgeMessengerObjectAddress: string;\n\n gasOracleAddress: string;\n gasOracleAddressOrigin?: string;\n gasOracleObjectAddress: string;\n\n utilsAddress: string;\n\n wormholeMessengerAddress: string;\n wormholeMessengerAddressOrigin?: string;\n wormholeMessengerObjectAddress: string;\n wormholeStateObjectAddress: string;\n\n cctpAddress: string;\n cctpAddressOrigin?: string;\n cctpObjectAddress: string;\n\n cctpDenyListObjectAddress: string;\n cctpMessageTransmitterStateObjectAddress: string;\n cctpTokenMessengerMinterStateObjectAddress: string;\n cctpTreasuryObjectAddress: string;\n}\n\n/**\n * General Token Interface\n */\nexport interface TokenWithChainDetails extends Token, Omit<ChainDetails, \"name\"> {\n /**\n * Blockchain network name\n */\n chainName: string;\n}\n\nexport interface TokenWithChainDetailsWithFlags extends TokenWithChainDetails {\n flags: { swap: boolean; pool: boolean };\n}\n\n/**\n * General Pool Interface\n */\nexport interface PoolInfo {\n /**\n * Pool A value\n */\n aValue: string;\n /**\n * Pool D value\n */\n dValue: string;\n /**\n * Pool token balance\n */\n tokenBalance: string;\n /**\n * Pool virtual USD balance\n */\n vUsdBalance: string;\n /**\n * Pool total liquidity amount\n */\n totalLpAmount: string;\n /**\n * Current accumulated reward per share shifted by P bits\n */\n accRewardPerShareP: string;\n /**\n * P value, needed for accRewardPerShareP\n */\n p: number;\n /**\n * Pool imbalance\n */\n imbalance: string;\n}\n\n/**\n * Type representing transfer times for various blockchain chains.\n *\n * @typedef {Record<string, MessengerTransferTime>} TransferTime\n * @property {string} chainSymbol - The symbol of the chain representing one of the supported blockchain networks (e.g., \"ETH\" for Ethereum). For more details, see: {@link ChainSymbol}.\n * @property {MessengerTransferTime} transferTime - The average transfer time details for the specified chain.\n */\nexport type TransferTime = Record<string, MessengerTransferTime>;\n\n/**\n * Contains Avg transaction time withing different messenger protocols\n */\nexport type MessengerTransferTime = {\n [messenger in Messenger]?: number;\n};\n\nexport interface PoolKeyObject {\n chainSymbol: string;\n poolAddress: string;\n}\n\n/**\n * Contains transfer costs\n */\nexport interface TxCostAmount {\n /**\n * The maximum gas amount that can be received as extra gas for one transfer\n */\n maxAmount: string;\n /**\n * Swap cost\n */\n swap: string;\n /**\n * Transfer cost\n */\n transfer: string;\n}\n\nexport type PoolInfoMap = Record<string, PoolInfo>;\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "3.24.0";
1
+ export declare const VERSION = "3.25.0-alpha.1";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "3.24.0";
4
+ exports.VERSION = "3.25.0-alpha.1";
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["export const VERSION = \"3.24.0\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,gBAAgB,CAAC","sourcesContent":["export const VERSION = \"3.25.0-alpha.1\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allbridge/bridge-core-sdk",
3
- "version": "3.24.0",
3
+ "version": "3.25.0-alpha.1",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/src/index.d.ts",