rubic-sdk 6.0.0-alpha.ton.12 → 6.0.0-alpha.ton.120
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/rubic-sdk.min.js +6 -0
- package/lib/common/errors/swap/low-slippage.error.d.ts +2 -1
- package/lib/common/errors/swap/low-slippage.error.js +2 -1
- package/lib/common/errors/swap/low-slippage.error.js.map +1 -1
- package/lib/common/errors/swap/not-supported-region.d.ts +7 -0
- package/lib/common/errors/swap/not-supported-region.js +15 -0
- package/lib/common/errors/swap/not-supported-region.js.map +1 -0
- package/lib/common/tokens/constants/native-tokens.js +21 -0
- package/lib/common/tokens/constants/native-tokens.js.map +1 -1
- package/lib/common/tokens/constants/wrapped-addresses.js +3 -1
- package/lib/common/tokens/constants/wrapped-addresses.js.map +1 -1
- package/lib/common/tokens/constants/wrapped-native-tokens.js +14 -0
- package/lib/common/tokens/constants/wrapped-native-tokens.js.map +1 -1
- package/lib/common/tokens/price-token-amount.js +1 -1
- package/lib/common/tokens/price-token-amount.js.map +1 -1
- package/lib/common/tokens/token-amount.js.map +1 -1
- package/lib/common/tokens/token.js.map +1 -1
- package/lib/common/utils/blockchain.js +1 -2
- package/lib/common/utils/blockchain.js.map +1 -1
- package/lib/common/utils/decorators/cache-decorator/cache.decorator.js +2 -3
- package/lib/common/utils/decorators/cache-decorator/cache.decorator.js.map +1 -1
- package/lib/common/utils/decorators/static-implements.js +1 -2
- package/lib/common/utils/decorators/static-implements.js.map +1 -1
- package/lib/common/utils/errors.js +1 -2
- package/lib/common/utils/errors.js.map +1 -1
- package/lib/common/utils/functions.js +2 -3
- package/lib/common/utils/functions.js.map +1 -1
- package/lib/common/utils/object.js +2 -3
- package/lib/common/utils/object.js.map +1 -1
- package/lib/common/utils/options.js +3 -4
- package/lib/common/utils/options.js.map +1 -1
- package/lib/common/utils/p-timeout.js +1 -1
- package/lib/common/utils/p-timeout.js.map +1 -1
- package/lib/common/utils/waitFor.js +1 -2
- package/lib/common/utils/waitFor.js.map +1 -1
- package/lib/core/blockchain/constants/healthcheck.js +2 -2
- package/lib/core/blockchain/constants/healthcheck.js.map +1 -1
- package/lib/core/blockchain/models/backend-blockchains.d.ts +2 -0
- package/lib/core/blockchain/models/backend-blockchains.js +3 -1
- package/lib/core/blockchain/models/backend-blockchains.js.map +1 -1
- package/lib/core/blockchain/models/blockchain-name.d.ts +4 -0
- package/lib/core/blockchain/models/blockchain-name.js +3 -1
- package/lib/core/blockchain/models/blockchain-name.js.map +1 -1
- package/lib/core/blockchain/services/ton/tonapi-service.d.ts +3 -2
- package/lib/core/blockchain/services/ton/tonapi-service.js +13 -10
- package/lib/core/blockchain/services/ton/tonapi-service.js.map +1 -1
- package/lib/core/blockchain/utils/blockchains-info/blockchains-info.d.ts +2 -1
- package/lib/core/blockchain/utils/blockchains-info/blockchains-info.js +3 -0
- package/lib/core/blockchain/utils/blockchains-info/blockchains-info.js.map +1 -1
- package/lib/core/blockchain/utils/blockchains-info/constants/blockchain-id.js +4 -1
- package/lib/core/blockchain/utils/blockchains-info/constants/blockchain-id.js.map +1 -1
- package/lib/core/blockchain/utils/changenow-receiver-address-validator.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/models/web-private-supported-blockchain.d.ts +1 -1
- package/lib/core/blockchain/web3-private-service/models/web3-private-storage.d.ts +2 -0
- package/lib/core/blockchain/web3-private-service/web3-private/evm-web3-private/evm-web3-private.d.ts +2 -1
- package/lib/core/blockchain/web3-private-service/web3-private/evm-web3-private/evm-web3-private.js +40 -3
- package/lib/core/blockchain/web3-private-service/web3-private/evm-web3-private/evm-web3-private.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/web3-private/evm-web3-private/models/evm-transaction-options.d.ts +4 -0
- package/lib/core/blockchain/web3-private-service/web3-private/solana-web3-private/solana-web3-private.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/web3-private/ton-web3-private/models/ton-types.d.ts +1 -0
- package/lib/core/blockchain/web3-private-service/web3-private/ton-web3-private/ton-web3-private.d.ts +3 -0
- package/lib/core/blockchain/web3-private-service/web3-private/ton-web3-private/ton-web3-private.js +25 -15
- package/lib/core/blockchain/web3-private-service/web3-private/ton-web3-private/ton-web3-private.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/web3-private/tron-web3-private/tron-web3-private.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/web3-private/web3-private.js.map +1 -1
- package/lib/core/blockchain/web3-private-service/web3-private-service.d.ts +4 -1
- package/lib/core/blockchain/web3-private-service/web3-private-service.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/constants/rpc-errors.js +3 -1
- package/lib/core/blockchain/web3-public-service/constants/rpc-errors.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/models/web3-public-storage.d.ts +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.js +3 -1
- package/lib/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/evm-web3-public/evm-web3-public.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/solana-web3-public/solana-web3-public.d.ts +1 -0
- package/lib/core/blockchain/web3-public-service/web3-public/solana-web3-public/solana-web3-public.js +8 -0
- package/lib/core/blockchain/web3-public-service/web3-public/solana-web3-public/solana-web3-public.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/ton-web3-public/ton-web3-public.d.ts +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/ton-web3-public/ton-web3-public.js +22 -14
- package/lib/core/blockchain/web3-public-service/web3-public/ton-web3-public/ton-web3-public.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/tron-web3-public/tron-web3-public.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public/web3-public.js.map +1 -1
- package/lib/core/blockchain/web3-public-service/web3-public-service.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/bitcoin-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/bitcoin-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/eos-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/eos-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/evm-web3-pure/evm-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/evm-web3-pure/evm-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/filecoin-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/filecoin-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/icp-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/icp-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/algorand-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/algorand-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/aptos-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/aptos-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/astar-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/astar-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/cardano-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/cardano-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/casper-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/casper-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/cosmos-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/cosmos-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/dash-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/dash-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/dogecoin-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/dogecoin-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/flow-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/flow-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/hedear-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/hedear-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/iota-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/iota-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/kadena-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/kadena-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/kava-cosmos-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/kava-cosmos-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/kusama-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/kusama-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/litecoin-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/litecoin-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/mina-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/mina-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/monero-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/monero-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/near-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/near-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/neo-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/neo-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/osmosis-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/osmosis-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/polkadot-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/polkadot-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/ripple-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/ripple-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/secret-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/secret-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/sia-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/sia-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/stellar-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/stellar-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/tezos-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/tezos-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/waves-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/waves-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/wax-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/wax-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/zilliqa-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/non-evm-web3-pure/zilliqa-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/ontology-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/ontology-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/solana-web3-pure/solana-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/solana-web3-pure/solana-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/ton-web3-pure/ton-web3-pure.d.ts +11 -0
- package/lib/core/blockchain/web3-pure/typed-web3-pure/ton-web3-pure/ton-web3-pure.js +33 -4
- package/lib/core/blockchain/web3-pure/typed-web3-pure/ton-web3-pure/ton-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/tron-web3-pure/tron-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/tron-web3-pure/tron-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/xdc-web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/typed-web3-pure/xdc-web3-pure.js.map +1 -1
- package/lib/core/blockchain/web3-pure/web3-pure.js +2 -1
- package/lib/core/blockchain/web3-pure/web3-pure.js.map +1 -1
- package/lib/core/coingecko-api/coingecko-api.js.map +1 -1
- package/lib/core/gas-price-api/constants/eip1559-compatible-blockchains.js +3 -2
- package/lib/core/gas-price-api/constants/eip1559-compatible-blockchains.js.map +1 -1
- package/lib/core/gas-price-api/gas-price-api.js.map +1 -1
- package/lib/core/http-client/models/http-client.d.ts +1 -1
- package/lib/core/sdk/sdk.js.map +1 -1
- package/lib/features/common/constants/proxy-supported-blockchain.d.ts +1 -1
- package/lib/features/common/constants/proxy-supported-blockchain.js +3 -1
- package/lib/features/common/constants/proxy-supported-blockchain.js.map +1 -1
- package/lib/features/common/providers/bridgers/models/bridgers-contract-addresses.js +5 -5
- package/lib/features/common/providers/bridgers/models/bridgers-swap-api.d.ts +1 -0
- package/lib/features/common/providers/dln/dln-utils.js.map +1 -1
- package/lib/features/common/providers/rango/constants/rango-contract-address.js +11 -6
- package/lib/features/common/providers/rango/constants/rango-contract-address.js.map +1 -1
- package/lib/features/common/providers/rango/models/rango-api-blockchain-names.js +4 -3
- package/lib/features/common/providers/rango/models/rango-api-blockchain-names.js.map +1 -1
- package/lib/features/common/providers/rango/models/rango-api-symbol-names.js +4 -3
- package/lib/features/common/providers/rango/models/rango-api-symbol-names.js.map +1 -1
- package/lib/features/common/providers/rango/models/rango-api-trade-types.d.ts +2 -2
- package/lib/features/common/providers/rango/models/rango-supported-blockchains.d.ts +1 -1
- package/lib/features/common/providers/rango/models/rango-supported-blockchains.js +3 -3
- package/lib/features/common/providers/rango/models/rango-supported-blockchains.js.map +1 -1
- package/lib/features/common/providers/rango/utils/rango-utils.d.ts +1 -1
- package/lib/features/common/providers/rango/utils/rango-utils.js +6 -2
- package/lib/features/common/providers/rango/utils/rango-utils.js.map +1 -1
- package/lib/features/common/providers/router/models/router-quote-response-config.d.ts +39 -0
- package/lib/features/common/providers/router/models/router-quote-response-config.js +3 -0
- package/lib/features/common/providers/router/models/router-quote-response-config.js.map +1 -0
- package/lib/features/common/providers/router/models/router-quote-send-params.d.ts +8 -0
- package/lib/features/common/providers/router/models/router-quote-send-params.js +3 -0
- package/lib/features/common/providers/router/models/router-quote-send-params.js.map +1 -0
- package/lib/features/common/providers/router/models/router-send-transaction-params.d.ts +20 -0
- package/lib/features/common/providers/router/models/router-send-transaction-params.js +3 -0
- package/lib/features/common/providers/router/models/router-send-transaction-params.js.map +1 -0
- package/lib/features/common/providers/router/services/router-api-service.d.ts +12 -0
- package/lib/features/common/providers/router/services/router-api-service.js +36 -0
- package/lib/features/common/providers/router/services/router-api-service.js.map +1 -0
- package/lib/features/{cross-chain/calculation-manager/providers/squidrouter-provider → common/providers/squidrouter}/models/estimation-response.d.ts +12 -36
- package/lib/features/common/providers/squidrouter/models/estimation-response.js.map +1 -0
- package/lib/features/{cross-chain/calculation-manager/providers/squidrouter-provider → common/providers/squidrouter}/models/transaction-request.d.ts +3 -2
- package/lib/features/common/providers/squidrouter/models/transaction-request.js.map +1 -0
- package/lib/features/{cross-chain/calculation-manager/providers/squidrouter-provider → common/providers/squidrouter}/models/transaction-response.d.ts +10 -1
- package/lib/features/common/providers/squidrouter/models/transaction-response.js.map +1 -0
- package/lib/features/common/providers/squidrouter/services/squidrouter-api-service.d.ts +9 -0
- package/lib/features/common/providers/squidrouter/services/squidrouter-api-service.js +28 -0
- package/lib/features/common/providers/squidrouter/services/squidrouter-api-service.js.map +1 -0
- package/lib/features/common/providers/symbiosis/constants/symbiosis-api-common.d.ts +1 -1
- package/lib/features/common/providers/symbiosis/constants/symbiosis-api-common.js +1 -1
- package/lib/features/common/providers/symbiosis/constants/symbiosis-api-common.js.map +1 -1
- package/lib/features/common/providers/symbiosis/services/symbiosis-api-service.js +1 -6
- package/lib/features/common/providers/symbiosis/services/symbiosis-api-service.js.map +1 -1
- package/lib/features/common/providers/xy/utils/xy-utils.js +1 -2
- package/lib/features/common/providers/xy/utils/xy-utils.js.map +1 -1
- package/lib/features/common/status-manager/utils/get-bridgers-trade-status.js +1 -2
- package/lib/features/common/status-manager/utils/get-bridgers-trade-status.js.map +1 -1
- package/lib/features/common/status-manager/utils/get-src-tx-status.js +1 -2
- package/lib/features/common/status-manager/utils/get-src-tx-status.js.map +1 -1
- package/lib/features/common/utils/check-address.js +1 -2
- package/lib/features/common/utils/check-address.js.map +1 -1
- package/lib/features/common/utils/check-unsupported-receiver-address.js +1 -2
- package/lib/features/common/utils/check-unsupported-receiver-address.js.map +1 -1
- package/lib/features/common/utils/get-from-without-fee.js +1 -2
- package/lib/features/common/utils/get-from-without-fee.js.map +1 -1
- package/lib/features/common/utils/get-price-tokens-from-input-tokens.js +1 -2
- package/lib/features/common/utils/get-price-tokens-from-input-tokens.js.map +1 -1
- package/lib/features/common/utils/token-native-address-proxy.js +2 -3
- package/lib/features/common/utils/token-native-address-proxy.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/constants/cross-chain-providers.d.ts +3 -1
- package/lib/features/cross-chain/calculation-manager/constants/cross-chain-providers.js +7 -3
- package/lib/features/cross-chain/calculation-manager/constants/cross-chain-providers.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/cross-chain-manager.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/models/cross-chain-trade-type.d.ts +2 -0
- package/lib/features/cross-chain/calculation-manager/models/cross-chain-trade-type.js +3 -1
- package/lib/features/cross-chain/calculation-manager/models/cross-chain-trade-type.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/arbitrum-rbc-bridge/arbitrum-rbc-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/arbitrum-rbc-bridge/arbitrum-rbc-bridge-trade.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/arbitrum-rbc-bridge/arbitrum-rbc-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/archon-bridge-provider.js +3 -2
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/archon-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/archon-bridge-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/archon-bridge-trade.js +3 -4
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/archon-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/archon-contract-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/constants/supported-tokens.js +2 -2
- package/lib/features/cross-chain/calculation-manager/providers/archon-bridge/constants/supported-tokens.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/bridgers-cross-chain-provider.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/bridgers-cross-chain-provider.js +36 -19
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/bridgers-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/evm-bridgers-trade/evm-bridgers-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/evm-bridgers-trade/evm-bridgers-cross-chain-trade.js +4 -5
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/evm-bridgers-trade/evm-bridgers-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/tron-bridgers-trade/tron-bridgers-cross-chain-trade.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/tron-bridgers-trade/tron-bridgers-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/utils/get-proxy-method-arguments-and-transaction-data.js +9 -2
- package/lib/features/cross-chain/calculation-manager/providers/bridgers-provider/utils/get-proxy-method-arguments-and-transaction-data.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/cbridge/cbridge-cross-chain-provider.js +3 -2
- package/lib/features/cross-chain/calculation-manager/providers/cbridge/cbridge-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/cbridge/cbridge-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/cbridge/cbridge-cross-chain-trade.js +4 -5
- package/lib/features/cross-chain/calculation-manager/providers/cbridge/cbridge-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/changenow-provider/changenow-cross-chain-provider.js +31 -11
- package/lib/features/cross-chain/calculation-manager/providers/changenow-provider/changenow-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/changenow-provider/changenow-cross-chain-trade.d.ts +2 -2
- package/lib/features/cross-chain/calculation-manager/providers/changenow-provider/changenow-cross-chain-trade.js +17 -9
- package/lib/features/cross-chain/calculation-manager/providers/changenow-provider/changenow-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/constants/rubic-proxy-contract-address.js +2 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/constants/rubic-proxy-contract-address.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/cross-chain-trade.d.ts +6 -3
- package/lib/features/cross-chain/calculation-manager/providers/common/cross-chain-trade.js +11 -10
- package/lib/features/cross-chain/calculation-manager/providers/common/cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/emv-cross-chain-trade/evm-cross-chain-trade.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/common/emv-cross-chain-trade/evm-cross-chain-trade.js +26 -8
- package/lib/features/cross-chain/calculation-manager/providers/common/emv-cross-chain-trade/evm-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/models/bridge-type.d.ts +3 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/models/default-bridge-type.d.ts +2 -0
- package/lib/features/cross-chain/calculation-manager/providers/common/proxy-cross-chain-evm-facade/proxy-cross-chain-evm-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/solana-cross-chain-trade/solana-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/common/tron-cross-chain-trade/tron-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/chains/debridge-evm-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/chains/debridge-evm-cross-chain-trade.js +13 -9
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/chains/debridge-evm-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/chains/debridge-solana-cross-chain-trade.js +3 -2
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/chains/debridge-solana-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/constants/debridge-code.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/constants/debridge-code.js +5 -0
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/constants/debridge-code.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-factory.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-factory.js +2 -2
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-factory.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-provider.js +3 -2
- package/lib/features/cross-chain/calculation-manager/providers/debridge-provider/debridge-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/eddy-bridge-contract-addresses.d.ts +11 -2
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/eddy-bridge-contract-addresses.js +38 -5
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/eddy-bridge-contract-addresses.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/eddy-bridge-supported-chains.d.ts +0 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/edyy-bridge-abi.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/edyy-bridge-abi.js +15 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/edyy-bridge-abi.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/swap-limits.js +61 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/constants/swap-limits.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/eddy-bridge-provider.d.ts +0 -2
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/eddy-bridge-provider.js +16 -79
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/eddy-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/eddy-bridge-trade.d.ts +2 -3
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/eddy-bridge-trade.js +26 -53
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/eddy-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-bridge-api-types.d.ts +12 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-quote-controller.d.ts +4 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-quote-controller.js +3 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-quote-controller.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-swap-controller.d.ts +4 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-swap-controller.js +3 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-swap-controller.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/models/eddy-trade-types.d.ts +4 -2
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/services/eddy-bridge-api-service.d.ts +5 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/services/eddy-bridge-api-service.js +7 -3
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/services/eddy-bridge-api-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/services/eddy-bridge-contract-service.d.ts +7 -4
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/services/eddy-bridge-contract-service.js +48 -15
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/services/eddy-bridge-contract-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/calculate-rates.d.ts +3 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/calculate-rates.js +37 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/calculate-rates.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-bridge-routing-directions.d.ts +18 -2
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-bridge-routing-directions.js +62 -12
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-bridge-routing-directions.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-quoter-controller-factory.d.ts +14 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-quoter-controller-factory.js +79 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-quoter-controller-factory.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-swap-controller-factory.d.ts +17 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-swap-controller-factory.js +93 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/eddy-swap-controller-factory.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/find-api-token-address.d.ts +3 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/find-api-token-address.js +15 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/find-api-token-address.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/find-transit-token-address.d.ts +3 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/find-transit-token-address.js +14 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/find-transit-token-address.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/get-eddy-bridge-dst-status.js +1 -2
- package/lib/features/cross-chain/calculation-manager/providers/eddy-bridge/utils/get-eddy-bridge-dst-status.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/layerzero-bridge/layerzero-bridge-provider.js +2 -1
- package/lib/features/cross-chain/calculation-manager/providers/layerzero-bridge/layerzero-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/layerzero-bridge/layerzero-bridge-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/layerzero-bridge/layerzero-bridge-trade.js +4 -5
- package/lib/features/cross-chain/calculation-manager/providers/layerzero-bridge/layerzero-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/constants/lifi-cross-chain-supported-blockchain.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/constants/lifi-cross-chain-supported-blockchain.js +5 -1
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/constants/lifi-cross-chain-supported-blockchain.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/lifi-cross-chain-provider.js +3 -2
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/lifi-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/lifi-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/lifi-cross-chain-trade.js +7 -6
- package/lib/features/cross-chain/calculation-manager/providers/lifi-provider/lifi-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/constants/meson-contract-addresses.js +4 -2
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/constants/meson-contract-addresses.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/constants/meson-cross-chain-supported-chains.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/constants/meson-cross-chain-supported-chains.js +4 -2
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/constants/meson-cross-chain-supported-chains.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/meson-cross-chain-provider.js +6 -5
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/meson-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/meson-cross-chain-trade.js +11 -7
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/meson-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/models/meson-trade-types.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/meson-provider/services/meson-cross-chain-api-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-api-status-types.d.ts +7 -0
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-bridge-trade-types.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-contract-addresses.js +5 -3
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-contract-addresses.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-supported-blockchains.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-supported-blockchains.js +5 -3
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/models/orbiter-supported-blockchains.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/orbiter-bridge-provider.d.ts +0 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/orbiter-bridge-provider.js +10 -20
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/orbiter-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/orbiter-bridge-trade.d.ts +7 -0
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/orbiter-bridge-trade.js +32 -7
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/orbiter-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/services/orbiter-api-service.d.ts +4 -3
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/services/orbiter-api-service.js +14 -4
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/services/orbiter-api-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/orbiter-bridge/services/orbiter-utils.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/constants/owl-to-supported-chains.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/constants/owl-to-supported-chains.js +4 -2
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/constants/owl-to-supported-chains.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/models/owl-to-trade-types.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/owl-to-bridge-provider.js +4 -3
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/owl-to-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/owl-to-bridge-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/owl-to-bridge-trade.js +4 -4
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/owl-to-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/owl-to-bridge/services/owl-to-api-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/omni-bridge-entities/foreign-bridge.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/omni-bridge-entities/home-bridge.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/omni-bridge-entities/omni-bridge.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/pulse-chain-cross-chain-provider.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/pulse-chain-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/pulse-chain-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/pulse-chain-cross-chain-trade.js +4 -5
- package/lib/features/cross-chain/calculation-manager/providers/pulse-chain-bridge/pulse-chain-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/model/rango-cross-chain-parser-types.d.ts +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/rango-cross-chain-provider.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/rango-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/rango-cross-chain-trade.js +7 -5
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/rango-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/services/rango-cross-chain-api-service.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/services/rango-cross-chain-params-parser.js +4 -1
- package/lib/features/cross-chain/calculation-manager/providers/rango-provider/services/rango-cross-chain-params-parser.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/constants/router-cross-chain-supported-chains.d.ts +2 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/constants/router-cross-chain-supported-chains.js +31 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/constants/router-cross-chain-supported-chains.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/router-cross-chain-provider.d.ts +15 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/router-cross-chain-provider.js +155 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/router-cross-chain-provider.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/router-cross-chain-trade.d.ts +56 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/router-cross-chain-trade.js +151 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/router-cross-chain-trade.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/utils/router-cross-chain-util-service.ts.d.ts +9 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/utils/router-cross-chain-util-service.ts.js +43 -0
- package/lib/features/cross-chain/calculation-manager/providers/router-provider/utils/router-cross-chain-util-service.ts.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/scroll-bridge/scroll-bridge-provider.js +2 -1
- package/lib/features/cross-chain/calculation-manager/providers/scroll-bridge/scroll-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/scroll-bridge/scroll-bridge-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/scroll-bridge/scroll-bridge-trade.js +3 -3
- package/lib/features/cross-chain/calculation-manager/providers/scroll-bridge/scroll-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/constants/squidrouter-cross-chain-supported-blockchain.js +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/constants/squidrouter-cross-chain-supported-blockchain.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/squidrouter-cross-chain-provider.d.ts +3 -3
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/squidrouter-cross-chain-provider.js +56 -53
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/squidrouter-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/squidrouter-cross-chain-trade.d.ts +3 -6
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/squidrouter-cross-chain-trade.js +14 -33
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/squidrouter-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/stargate-provider/stargate-cross-chain-provider.js +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/stargate-provider/stargate-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/stargate-provider/stargate-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/stargate-provider/stargate-cross-chain-trade.js +4 -5
- package/lib/features/cross-chain/calculation-manager/providers/stargate-provider/stargate-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-blockchain-supported-pools.d.ts +2 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-blockchain-supported-pools.js +82 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-blockchain-supported-pools.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-bridge-token.d.ts +11 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-bridge-token.js +14 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-bridge-token.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-chain-id.d.ts +2 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-chain-id.js +26 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-chain-id.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-contract-address.d.ts +6 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-contract-address.js +100 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-contract-address.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-cross-chain-supported-blockchains.d.ts +2 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-cross-chain-supported-blockchains.js +26 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-cross-chain-supported-blockchains.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-pool-abi.d.ts +5 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-pool-abi.js +181 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-pool-abi.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-pool-id.d.ts +16 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-pool-id.js +26 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-pool-id.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-token-address.d.ts +5 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-token-address.js +96 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/constants/stargate-v2-token-address.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/modal/stargate-v2-quote-params-struct.d.ts +17 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/modal/stargate-v2-quote-params-struct.js +3 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/modal/stargate-v2-quote-params-struct.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/stargate-v2-cross-chain-provider.d.ts +18 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/stargate-v2-cross-chain-provider.js +199 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/stargate-v2-cross-chain-provider.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/stargate-v2-cross-chain-trade.d.ts +56 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/stargate-v2-cross-chain-trade.js +172 -0
- package/lib/features/cross-chain/calculation-manager/providers/stargate-v2-provider/stargate-v2-cross-chain-trade.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/models/symbiosis-cross-chain-supported-blockchains.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/models/symbiosis-cross-chain-supported-blockchains.js +2 -0
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/models/symbiosis-cross-chain-supported-blockchains.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/{symbiosis-cross-chain-trade.d.ts → symbiosis-ccr-evm-trade.d.ts} +2 -4
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/{symbiosis-cross-chain-trade.js → symbiosis-ccr-evm-trade.js} +17 -18
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-ccr-evm-trade.js.map +1 -0
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-cross-chain-provider.d.ts +3 -2
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-cross-chain-provider.js +40 -52
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-provider.js +2 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.js +3 -3
- package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-provider.js +3 -5
- package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-provider.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.d.ts +1 -1
- package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.js +3 -3
- package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/utils/compare-cross-chain-trades.js +1 -2
- package/lib/features/cross-chain/calculation-manager/utils/compare-cross-chain-trades.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/utils/convert-gas-price.js +1 -2
- package/lib/features/cross-chain/calculation-manager/utils/convert-gas-price.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/utils/decode-method.js.map +1 -1
- package/lib/features/cross-chain/calculation-manager/utils/get-cross-chain-gas-data.js.map +1 -1
- package/lib/features/cross-chain/cbridge-manager/cross-chain-cbridge-manager.js.map +1 -1
- package/lib/features/cross-chain/status-manager/cross-chain-status-manager.d.ts +1 -0
- package/lib/features/cross-chain/status-manager/cross-chain-status-manager.js +19 -4
- package/lib/features/cross-chain/status-manager/cross-chain-status-manager.js.map +1 -1
- package/lib/features/cross-chain/status-manager/models/cross-chain-trade-data.d.ts +4 -0
- package/lib/features/cross-chain/symbiosis-manager/cross-chain-symbiosis-manager.js.map +1 -1
- package/lib/features/deflation-token-manager/constants/simulator-contract-address.js.map +1 -1
- package/lib/features/deflation-token-manager/deflation-token-manager.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/algebra-trade-providers.d.ts +2 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/algebra-trade-providers.js +3 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/algebra-trade-providers.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/izumi-trade-providers.d.ts +2 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/izumi-trade-providers.js +3 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/izumi-trade-providers.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/uniswap-v2-trade-providers.d.ts +4 -2
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/uniswap-v2-trade-providers.js +7 -2
- package/lib/features/on-chain/calculation-manager/constants/trade-providers/uniswap-v2-trade-providers.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/models/on-chain-manager-aggregators-types.d.ts +7 -3
- package/lib/features/on-chain/calculation-manager/models/on-chain-manager-aggregators-types.js +7 -3
- package/lib/features/on-chain/calculation-manager/models/on-chain-manager-aggregators-types.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/on-chain-manager.js +1 -0
- package/lib/features/on-chain/calculation-manager/on-chain-manager.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/1inch/one-inch-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/1inch/one-inch-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/models/native-router-quote.d.ts +6 -4
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/native-router-abstract-provider.js +8 -6
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/native-router-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/native-router-abstract-trade.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/native-router-abstract-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/services/native-router-api-service.d.ts +2 -2
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/services/native-router-api-service.js +5 -14
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/native-router-abstract/services/native-router-api-service.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/{tonkeeper → common/tonkeeper}/models/tonkeeper-api-types.d.ts +3 -4
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/models/tonkeeper-api-types.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/models/tonkeeper-trade-struct.d.ts +13 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/models/tonkeeper-trade-struct.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/services/tonkeeper-api-service.d.ts +9 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/services/tonkeeper-api-service.js +46 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/services/tonkeeper-api-service.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/tonkeeper-on-chain-provider.d.ts +16 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/{tonkeeper → common/tonkeeper}/tonkeeper-on-chain-provider.js +17 -26
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/tonkeeper-on-chain-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/tonkeeper-on-chain-trade.d.ts +17 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/tonkeeper-on-chain-trade.js +58 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/common/tonkeeper/tonkeeper-on-chain-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/constants/dedust-gas.d.ts +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/constants/dedust-gas.js +5 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/constants/dedust-gas.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/{tonkeeper/tonkeeper-on-chain-provider.d.ts → dedust/dedust-on-chain-provider.d.ts} +4 -6
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/dedust-on-chain-provider.js +59 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/dedust-on-chain-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/dedust-on-chain-trade.d.ts +12 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/dedust-on-chain-trade.js +42 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/dedust-on-chain-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/models/dedust-api-types.d.ts +22 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/models/dedust-api-types.js +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/models/dedust-api-types.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/models/dedust-trade-types.d.ts +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/models/dedust-trade-types.js +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/models/dedust-trade-types.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-api-service.d.ts +7 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-api-service.js +35 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-api-service.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-sender-class.d.ts +9 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-sender-class.js +29 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-sender-class.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-swap-service.d.ts +31 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-swap-service.js +234 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/services/dedust-swap-service.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/tonkeeper-dedust-on-chain-provider.d.ts +6 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/tonkeeper-dedust-on-chain-provider.js +14 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dedust/tonkeeper-dedust-on-chain-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/chains/dln-evm-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/chains/dln-solana-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/dln-on-chain-factory.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/dln-on-chain-provider.js +3 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/dln-on-chain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/models/dln-on-chain-swap-request.d.ts +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/dln/models/dln-trade-struct.d.ts +5 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/lifi/lifi-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/lifi/lifi-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/odos/models/odos-supported-blockchains.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/odos/models/odos-supported-blockchains.js +2 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/odos/models/odos-supported-blockchains.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/odos/odos-on-chain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/odos/services/odos-on-chain-api-service.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/okuswap/okuswap-on-chain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/okuswap/okuswap-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/okuswap/services/okuswap-api-service.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/models/open-ocean-token-list-response.d.ts +2 -2
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/models/open-ocean-trade-struct.d.ts +0 -2
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/open-ocean-provider.d.ts +0 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/open-ocean-provider.js +3 -41
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/open-ocean-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/open-ocean-trade.d.ts +0 -5
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/open-ocean-trade.js +2 -48
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/open-ocean-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/services/open-ocean-api-service.d.ts +16 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/services/open-ocean-api-service.js +75 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/open-ocean/services/open-ocean-api-service.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/piteas/piteas-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/piteas/piteas-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/rango-on-chain-provider.js +4 -2
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/rango-on-chain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/rango-on-chain-trade.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/rango-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/services/rango-on-chain-api-service.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/services/rango-on-chain-api-service.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/aggregators/rango/services/rango-on-chain-api-service.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/models/squidrouter-on-chain-trade-struct.d.ts +5 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/models/squidrouter-on-chain-trade-struct.js +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/models/squidrouter-on-chain-trade-struct.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/squidrouter-on-chain-provider.d.ts +15 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/squidrouter-on-chain-provider.js +88 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/squidrouter-on-chain-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/squidrouter-on-chain-trade.d.ts +15 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/squidrouter-on-chain-trade.js +44 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/squidrouter/squidrouter-on-chain-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/constants/addresses.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/constants/addresses.js +6 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/constants/addresses.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/models/stonfi-api-types.d.ts +35 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/models/stonfi-api-types.js +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/models/stonfi-api-types.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/services/stonfi-api-service.d.ts +6 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/services/stonfi-api-service.js +32 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/services/stonfi-api-service.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/services/stonfi-swap-service.d.ts +7 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/services/stonfi-swap-service.js +56 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/services/stonfi-swap-service.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/stonfi-on-chain-provider.d.ts +15 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/stonfi-on-chain-provider.js +75 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/stonfi-on-chain-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/stonfi-on-chain-trade.d.ts +12 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/stonfi-on-chain-trade.js +52 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/stonfi-on-chain-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/tonkeeper-stonfi-on-chain-provider.d.ts +6 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/tonkeeper-stonfi-on-chain-provider.js +14 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/tonkeeper-stonfi-on-chain-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/utils/convert-params-to-ton-config.d.ts +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/utils/convert-params-to-ton-config.js +11 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/utils/convert-params-to-ton-config.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/utils/get-stonfi-gas.d.ts +3 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/utils/get-stonfi-gas.js +15 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/stonfi/utils/get-stonfi-gas.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/aggregators/symbiosis/symbiosis-on-chain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/xy-dex/constants/xy-dex-supported-blockchains.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/xy-dex/constants/xy-dex-supported-blockchains.js +2 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/xy-dex/constants/xy-dex-supported-blockchains.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/xy-dex/xy-dex-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/xy-dex/xy-dex-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/zrx/utils.js +1 -2
- package/lib/features/on-chain/calculation-manager/providers/aggregators/zrx/utils.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/zrx/zrx-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/zrx/zrx-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/evm-wrap-trade/evm-wrap-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.d.ts +7 -2
- package/lib/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.js +8 -3
- package/lib/features/on-chain/calculation-manager/providers/common/models/on-chain-trade-type.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-aggregator/aggregator-evm-on-chain-trade-abstract.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-aggregator/aggregator-on-chain-provider-abstract.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-aggregator/aggregator-solana-on-chain-trade-abstract.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-proxy-service/on-chain-proxy-service.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/evm-on-chain-trade/evm-on-chain-trade.d.ts +1 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/evm-on-chain-trade/evm-on-chain-trade.js +22 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/evm-on-chain-trade/evm-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/evm-on-chain-trade/models/evm-on-chain-trade-struct.d.ts +3 -3
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/on-chain-trade.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/on-chain-trade.js +6 -2
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/solana-on-chain-trade/models/solana-on-chain-trade-struct.d.ts +9 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/solana-on-chain-trade/models/solana-on-chain-trade-struct.js +3 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/solana-on-chain-trade/models/solana-on-chain-trade-struct.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/solana-on-chain-trade/solana-on-chain-trade.d.ts +2 -2
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/solana-on-chain-trade/solana-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/models/ton-on-chian-trade-types.d.ts +10 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/models/ton-on-chian-trade-types.js +3 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/models/ton-on-chian-trade-types.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/ton-on-chain-trade.d.ts +17 -15
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/ton-on-chain-trade.js +33 -37
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/ton-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/tron-on-chain-trade/tron-on-chain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/utils/get-gas-fee-info.js +1 -2
- package/lib/features/on-chain/calculation-manager/providers/common/utils/get-gas-fee-info.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/common/utils/get-gas-price-info.js +1 -2
- package/lib/features/on-chain/calculation-manager/providers/common/utils/get-gas-price-info.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/arbitrum/camelot-arbitrum/camelot-arbitrum-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/arbitrum/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/arbitrum/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/arbitrum/izumi-arbitrum/izumi-arbitrum-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/arbitrum/izumi-arbitrum/izumi-arbitrum-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/arthera-testnet/algebra-integral/algebra-integral-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/arthera-testnet/default-constants.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/arthera-testnet/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/astar-evm/default-constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/astar-evm/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/aurora/default-constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/aurora/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/avalanche/default-constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/avalanche/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/avalanche/joe/constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/avalanche/joe/constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/avalanche/pangolin/constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/avalanche/pangolin/constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/default-constants.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/constants.d.ts +4 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/constants.js +18 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/constants.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/kujata-bahamut-provider.d.ts +7 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/kujata-bahamut-provider.js +17 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/kujata-bahamut-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/kujata-bahamut-trade.d.ts +6 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/kujata-bahamut-trade.js +17 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/kujata-bahamut/kujata-bahamut-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/silk-swap-bahamut/constants.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/silk-swap-bahamut/constants.js +7 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/silk-swap-bahamut/constants.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/{uniswap-v2-bahamut/uniswap-v2-bahamut-provider.d.ts → silk-swap-bahamut/silk-swap-bahamut-provider.d.ts} +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/{uniswap-v2-bahamut/uniswap-v2-bahamut-provider.js → silk-swap-bahamut/silk-swap-bahamut-provider.js} +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/silk-swap-bahamut/silk-swap-bahamut-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/{uniswap-v2-bahamut/uniswap-v2-bahamut-trade.d.ts → silk-swap-bahamut/silk-swap-bahamut-trade.d.ts} +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/{uniswap-v2-bahamut/uniswap-v2-bahamut-trade.js → silk-swap-bahamut/silk-swap-bahamut-trade.js} +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/silk-swap-bahamut/silk-swap-bahamut-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/base/aerodrome/aerodrome-path-factory.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/base/default-constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/base/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/base/izumi-base/izumi-base-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/base/izumi-base/izumi-base-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/berachain-testnet/berachain-testnet-algebra/berachain-testnet-algebra-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/berachain-testnet/default-constants.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/berachain-testnet/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/default-constants.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/default-constants.js +20 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/default-constants.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/constants.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/constants.js +7 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/constants.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/macaron-provider.d.ts +7 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/macaron-provider.js +17 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/macaron-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/macaron-trade.d.ts +6 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/macaron-trade.js +17 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/bitlayer/macaron/macaron-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/blast/default-constants.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/blast/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/blast/fenix-blast/blast-fenix-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/blast/izumi-blast/izumi-blast-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/blast/izumi-blast/izumi-blast-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/boba/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/boba/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsc/default-constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsc/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsc/izumi-bsc/izumi-bsc-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsc/izumi-bsc/izumi-bsc-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsc/pancake-router-bsc/pancake-router-bsc-provider.d.ts +2 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsct/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/bsct/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/algebra/algebra-quoter-controller.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/curve-provider/curve-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/curve-provider/curve-abstract-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/izumi-abstract/izumi-provider.d.ts +4 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/izumi-abstract/izumi-provider.js +12 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/izumi-abstract/izumi-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/izumi-abstract/izumi-trade.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/izumi-abstract/izumi-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/on-chain-provider/evm-on-chain-provider/evm-on-chain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/pancake-router/pancake-router-provider.js +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/pancake-router/pancake-router-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/pancake-router/pancake-router-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/quickswap-v3/quickswap-v3-quoter-controller.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/sync-swap-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/sync-swap-abstract-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/utils/sync-swap-factory.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/utils/sync-swap-path-factory.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/utils/sync-swap-router.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v2-abstract/path-factory.js +10 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v2-abstract/path-factory.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v2-abstract/uniswap-v2-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v2-abstract/uniswap-v2-abstract-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/uniswap-v3-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/uniswap-v3-abstract-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/fusionx-uniswap-v3-quoter-controller.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/horizondex-uniswap-v3-quoter-controller.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-abstract/utils/quoter-controller/uniswap-v3-quoter-controller.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-algebra-abstract/uniswap-v3-algebra-abstract-provider.d.ts +2 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-algebra-abstract/uniswap-v3-algebra-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/uniswap-v3-algebra-abstract/uniswap-v3-algebra-abstract-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/utils/get-from-to-tokens-amounts-by-exact.js +1 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/utils/get-from-to-tokens-amounts-by-exact.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/vooi-abstract/vooi-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/cronos/default-constants.js +8 -8
- package/lib/features/on-chain/calculation-manager/providers/dexes/cronos/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/ethereum/default-constants.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/ethereum/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/ethereum/pancake-router-ethereum/pancake-router-ethereum-provider.d.ts +2 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/ethereum-pow/default-constants.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/ethereum-pow/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/fantom/default-constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/fantom/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/fantom/spooky-swap/constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/fantom/spooky-swap/constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/fuji/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/fuji/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/goerli/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/goerli/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/camelot-gravity-provider.d.ts +16 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/camelot-gravity-provider.js +39 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/camelot-gravity-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/camelot-gravity-trade.d.ts +18 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/camelot-gravity-trade.js +57 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/camelot-gravity-trade.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/gravity-swap-router-contract-address.d.ts +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/gravity-swap-router-contract-address.js +5 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/gravity-swap-router-contract-address.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/provider-configuration.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/provider-configuration.js +10 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/provider-configuration.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/quote-contract-data.d.ts +3 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/quote-contract-data.js +104 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/camelot-gravity/constants/quote-contract-data.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/default-constants.d.ts +2 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/default-constants.js +19 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/default-constants.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/izumi-gravity/izumi-gravity-provider.d.ts +17 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/izumi-gravity/izumi-gravity-provider.js +33 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/gravity/izumi-gravity/izumi-gravity-provider.js.map +1 -0
- package/lib/features/on-chain/calculation-manager/providers/dexes/harmony/default-constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/harmony/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/horizen-eon/default-constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/horizen-eon/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/horizen-eon/spooky-swap-horizen-eon/constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/horizen-eon/spooky-swap-horizen-eon/constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/kava/default-constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/kava/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/kroma/izumi-kroma/izumi-kroma-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/kroma/izumi-kroma/izumi-kroma-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/horizondex/horizondex-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/izumi-linea/izumi-linea-provider.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/izumi-linea/izumi-linea-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/sync-swap/linea-sync-swap-provider.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/sync-swap/linea-sync-swap-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/vooi/constants/pool-id-mapping.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/linea/vooi/constants/pool-id-mapping.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/manta-pacific/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/manta-pacific/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/manta-pacific/izumi-manta-pacific/izumi-manta-pacific-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/manta-pacific/izumi-manta-pacific/izumi-manta-pacific-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/izumi-mantle/izumi-mantle-provider.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/mantle/izumi-mantle/izumi-mantle-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/merlin/izumi-merlin/izumi-merlin-provider.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/merlin/izumi-merlin/izumi-merlin-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/merlin/merlin-swap/merlin-swap-merlin-provider.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/merlin/merlin-swap/merlin-swap-merlin-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/metis/default-constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/metis/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mode/algebra-mode/mode-algebra-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mode/default-constants.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/mode/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mode/eddy-finance-mode/eddy-finance-mode-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mode/izumi-mode/izumi-mode-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/mode/izumi-mode/izumi-mode-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/moonriver/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/moonriver/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/moonriver/solarbeam/constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/moonriver/solarbeam/constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/mumbai/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/mumbai/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/oasis/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/oasis/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon/algebra/algebra-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon/algebra/utils/quoter-controller/constants/router-tokens.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon/algebra/utils/quoter-controller/constants/router-tokens.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon/quick-swap-v3/quick-swap-v3-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon-zkevm/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon-zkevm/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon-zkevm/pancake-router-polygon-zkevm/pancake-router-polygon-zkevm-provider.d.ts +2 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/polygon-zkevm/quick-swap-v3/quick-swap-v3-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/pulsechain/default-constants.js +6 -6
- package/lib/features/on-chain/calculation-manager/providers/dexes/pulsechain/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll/izumi-scroll/izumi-scroll-provider.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll/izumi-scroll/izumi-scroll-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll/sync-swap/scroll-sync-swap-provider.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll/sync-swap/scroll-sync-swap-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll-sepolia/uni-swap-v2-scroll-sepolia/constants.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll-sepolia/uni-swap-v2-scroll-sepolia/constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/scroll-sepolia/uni-swap-v3-scroll-sepolia/uni-swap-v3-scroll-sepolia-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/sei/default-constants.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/sei/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/sei/dragonswap/dragonswap-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/syscoin/default-constants.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/syscoin/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/taiko/izumi-taiko/izumi-taiko-provider.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/taiko/izumi-taiko/izumi-taiko-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/telos/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/telos/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/tron/bridgers/bridgers-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/tron/bridgers/bridgers-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/velas/default-constants.js +4 -4
- package/lib/features/on-chain/calculation-manager/providers/dexes/velas/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/xlayer/izumi-xlayer/izumi-xlayer-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/xlayer/izumi-xlayer/izumi-xlayer-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zetachain/default-constants.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/zetachain/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zetachain/eddy-finance/eddy-finance-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zetachain/izumi-zetachain/izumi-zetachain-provider.js +7 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/zetachain/izumi-zetachain/izumi-zetachain-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zetachain/sushi-swap-zetachain/sushi-swap-zetachain-trade.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zkfair/default-constants.js +5 -5
- package/lib/features/on-chain/calculation-manager/providers/dexes/zkfair/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zkfair/izumi-zkfair/izumi-zkfair-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/zkfair/izumi-zkfair/izumi-zkfair-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zklink/izumi-zklink/izumi-zklink-provider.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/zklink/izumi-zklink/izumi-zklink-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/default-constants.js +2 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/default-constants.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/izumi-zksync/izumi-zksync-provider.js +3 -3
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/izumi-zksync/izumi-zksync-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/sync-swap/zksync-sync-swap-provider.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/sync-swap/zksync-sync-swap-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/utils.js +1 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/utils.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/utils/get-on-chain-gas-data.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/utils/type-guards.js +1 -2
- package/lib/features/on-chain/calculation-manager/utils/type-guards.js.map +1 -1
- package/lib/features/on-chain/status-manager/on-chain-status-manager.js.map +1 -1
- package/lib/index.d.ts +79 -14
- package/lib/index.js +79 -14
- package/lib/index.js.map +1 -1
- package/package.json +11 -6
- package/lib/core/blockchain/services/ton/ton-utils.d.ts +0 -13
- package/lib/core/blockchain/services/ton/ton-utils.js +0 -36
- package/lib/core/blockchain/services/ton/ton-utils.js.map +0 -1
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/models/estimation-response.js.map +0 -1
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/models/transaction-request.js.map +0 -1
- package/lib/features/cross-chain/calculation-manager/providers/squidrouter-provider/models/transaction-response.js.map +0 -1
- package/lib/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-cross-chain-trade.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/models/tonkeeper-api-types.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/models/tonkeeper-trade-struct.d.ts +0 -11
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/models/tonkeeper-trade-struct.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/services/tonkeeper-api-service.d.ts +0 -10
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/services/tonkeeper-api-service.js +0 -59
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/services/tonkeeper-api-service.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/tonkeeper-on-chain-provider.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/tonkeeper-on-chain-trade.d.ts +0 -13
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/tonkeeper-on-chain-trade.js +0 -46
- package/lib/features/on-chain/calculation-manager/providers/aggregators/tonkeeper/tonkeeper-on-chain-trade.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/models/ton--on-chian-trade-types.d.ts +0 -5
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/models/ton--on-chian-trade-types.js +0 -3
- package/lib/features/on-chain/calculation-manager/providers/common/on-chain-trade/ton-on-chain-trade/models/ton--on-chian-trade-types.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/uniswap-v2-bahamut/constants.d.ts +0 -2
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/uniswap-v2-bahamut/constants.js +0 -7
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/uniswap-v2-bahamut/constants.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/uniswap-v2-bahamut/uniswap-v2-bahamut-provider.js.map +0 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/bahamut/uniswap-v2-bahamut/uniswap-v2-bahamut-trade.js.map +0 -1
- /package/lib/features/{cross-chain/calculation-manager/providers/squidrouter-provider → common/providers/squidrouter}/models/estimation-response.js +0 -0
- /package/lib/features/{cross-chain/calculation-manager/providers/squidrouter-provider → common/providers/squidrouter}/models/transaction-request.js +0 -0
- /package/lib/features/{cross-chain/calculation-manager/providers/squidrouter-provider → common/providers/squidrouter}/models/transaction-response.js +0 -0
- /package/lib/features/on-chain/calculation-manager/providers/aggregators/{tonkeeper → common/tonkeeper}/models/tonkeeper-api-types.js +0 -0
- /package/lib/features/on-chain/calculation-manager/providers/aggregators/{tonkeeper → common/tonkeeper}/models/tonkeeper-trade-struct.js +0 -0
@@ -1,7 +1,6 @@
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
2
2
|
import { PriceTokenAmount } from '../../../../../common/tokens';
|
3
3
|
import { EvmBlockchainName } from '../../../../../core/blockchain/models/blockchain-name';
|
4
|
-
import { EvmWeb3Private } from '../../../../../core/blockchain/web3-private-service/web3-private/evm-web3-private/evm-web3-private';
|
5
4
|
import { EvmEncodeConfig } from '../../../../../core/blockchain/web3-pure/typed-web3-pure/evm-web3-pure/models/evm-encode-config';
|
6
5
|
import { ContractParams } from '../../../../common/models/contract-params';
|
7
6
|
import { SwapTransactionOptions } from '../../../../common/models/swap-transaction-options';
|
@@ -17,7 +16,7 @@ import { SymbiosisTradeType } from './models/symbiosis-trade-data';
|
|
17
16
|
/**
|
18
17
|
* Calculated Symbiosis cross-chain trade.
|
19
18
|
*/
|
20
|
-
export declare class
|
19
|
+
export declare class SymbiosisEvmCcrTrade extends EvmCrossChainTrade {
|
21
20
|
private readonly swappingParams;
|
22
21
|
/** @internal */
|
23
22
|
static getGasData(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceTokenAmount, swapParams: SymbiosisSwappingParams, feeInfo: FeeInfo, providerGateway: string, providerAddress: string, receiverAddress?: string): Promise<GasData | null>;
|
@@ -42,7 +41,6 @@ export declare class SymbiosisCrossChainTrade extends EvmCrossChainTrade {
|
|
42
41
|
protected get fromContractAddress(): string;
|
43
42
|
protected get methodName(): string;
|
44
43
|
private get tronWeb3Public();
|
45
|
-
protected get evmWeb3Private(): EvmWeb3Private;
|
46
44
|
constructor(crossChainTrade: {
|
47
45
|
from: PriceTokenAmount<EvmBlockchainName>;
|
48
46
|
to: PriceTokenAmount;
|
@@ -61,7 +59,7 @@ export declare class SymbiosisCrossChainTrade extends EvmCrossChainTrade {
|
|
61
59
|
};
|
62
60
|
swapParams: SymbiosisSwappingParams;
|
63
61
|
promotions?: string[];
|
64
|
-
}, providerAddress: string, routePath: RubicStep[]);
|
62
|
+
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
|
65
63
|
protected getContractParams(options: GetContractParamsOptions): Promise<ContractParams>;
|
66
64
|
/**
|
67
65
|
* Used for direct provider swaps.
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
6
|
+
exports.SymbiosisEvmCcrTrade = void 0;
|
7
7
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
8
|
const errors_1 = require("../../../../../common/errors");
|
9
9
|
const blockchain_name_1 = require("../../../../../core/blockchain/models/blockchain-name");
|
@@ -24,10 +24,10 @@ const on_chain_trade_type_1 = require("../../../../on-chain/calculation-manager/
|
|
24
24
|
/**
|
25
25
|
* Calculated Symbiosis cross-chain trade.
|
26
26
|
*/
|
27
|
-
class
|
27
|
+
class SymbiosisEvmCcrTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
28
28
|
/** @internal */
|
29
29
|
static async getGasData(from, toToken, swapParams, feeInfo, providerGateway, providerAddress, receiverAddress) {
|
30
|
-
const trade = new
|
30
|
+
const trade = new SymbiosisEvmCcrTrade({
|
31
31
|
from,
|
32
32
|
to: toToken,
|
33
33
|
gasData: null,
|
@@ -41,7 +41,7 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
41
41
|
providerGateway: providerGateway
|
42
42
|
},
|
43
43
|
swapParams
|
44
|
-
}, providerAddress || evm_web3_pure_1.EvmWeb3Pure.EMPTY_ADDRESS, []);
|
44
|
+
}, providerAddress || evm_web3_pure_1.EvmWeb3Pure.EMPTY_ADDRESS, [], false);
|
45
45
|
return (0, get_cross_chain_gas_data_1.getCrossChainGasData)(trade, receiverAddress);
|
46
46
|
}
|
47
47
|
get fromBlockchain() {
|
@@ -58,11 +58,8 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
58
58
|
get tronWeb3Public() {
|
59
59
|
return injector_1.Injector.web3PublicService.getWeb3Public(blockchain_name_1.BLOCKCHAIN_NAME.TRON);
|
60
60
|
}
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
constructor(crossChainTrade, providerAddress, routePath) {
|
65
|
-
super(providerAddress, routePath);
|
61
|
+
constructor(crossChainTrade, providerAddress, routePath, useProxy) {
|
62
|
+
super(providerAddress, routePath, useProxy);
|
66
63
|
this.type = cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.SYMBIOSIS;
|
67
64
|
this.isAggregator = false;
|
68
65
|
this.bridgeType = bridge_type_1.BRIDGE_TYPE.SYMBIOSIS;
|
@@ -75,13 +72,16 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
75
72
|
this.feeInfo = crossChainTrade.feeInfo;
|
76
73
|
this.slippage = crossChainTrade.slippage;
|
77
74
|
this.transitAmount = crossChainTrade.transitAmount;
|
78
|
-
this.onChainSubtype =
|
75
|
+
this.onChainSubtype = SymbiosisEvmCcrTrade.getSubtype(crossChainTrade.tradeType, crossChainTrade.to.blockchain);
|
79
76
|
this.contractAddresses = crossChainTrade.contractAddresses;
|
80
|
-
this.promotions = crossChainTrade?.promotions ||
|
77
|
+
this.promotions = crossChainTrade?.promotions || [];
|
81
78
|
}
|
82
79
|
async getContractParams(options) {
|
83
80
|
const { data, value: providerValue, to } = await this.setTransactionConfig(false, options?.useCacheData || false, options?.receiverAddress);
|
84
|
-
|
81
|
+
const isEvmDestination = blockchains_info_1.BlockchainsInfo.isEvmBlockchainName(this.to.blockchain);
|
82
|
+
let receiverAddress = isEvmDestination
|
83
|
+
? options.receiverAddress || this.walletAddress
|
84
|
+
: options.receiverAddress;
|
85
85
|
let toAddress = '';
|
86
86
|
if (this.to.blockchain === blockchain_name_1.BLOCKCHAIN_NAME.TRON) {
|
87
87
|
const tronHexReceiverAddress = await this.tronWeb3Public.convertTronAddressToHex(options.receiverAddress);
|
@@ -124,7 +124,7 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
124
124
|
await this.checkTradeErrors();
|
125
125
|
await this.checkReceiverAddress(options.receiverAddress, !blockchains_info_1.BlockchainsInfo.isEvmBlockchainName(this.to.blockchain));
|
126
126
|
await this.checkAllowanceAndApprove(options);
|
127
|
-
const { onConfirm,
|
127
|
+
const { onConfirm, gasPriceOptions } = options;
|
128
128
|
let transactionHash;
|
129
129
|
const onTransactionHash = (hash) => {
|
130
130
|
if (onConfirm) {
|
@@ -134,11 +134,10 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
134
134
|
};
|
135
135
|
try {
|
136
136
|
const { data, value, to } = await this.setTransactionConfig(false, options?.useCacheData || false, options?.receiverAddress);
|
137
|
-
await this.
|
137
|
+
await this.web3Private.trySendTransaction(to, {
|
138
138
|
data,
|
139
139
|
value,
|
140
140
|
onTransactionHash,
|
141
|
-
gas: gasLimit,
|
142
141
|
gasPriceOptions
|
143
142
|
});
|
144
143
|
return transactionHash;
|
@@ -181,7 +180,7 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
181
180
|
async getTransactionConfigAndAmount(receiverAddress) {
|
182
181
|
const walletAddress = this.walletAddress;
|
183
182
|
if (this.from.blockchain === 'BAHAMUT' || this.to.blockchain === 'BAHAMUT') {
|
184
|
-
|
183
|
+
(0, check_unsupported_receiver_address_1.checkUnsupportedReceiverAddress)(receiverAddress, this.walletAddress);
|
185
184
|
}
|
186
185
|
const params = {
|
187
186
|
...this.swappingParams,
|
@@ -204,5 +203,5 @@ class SymbiosisCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrad
|
|
204
203
|
return receiverAddress || walletAddress;
|
205
204
|
}
|
206
205
|
}
|
207
|
-
exports.
|
208
|
-
//# sourceMappingURL=symbiosis-
|
206
|
+
exports.SymbiosisEvmCcrTrade = SymbiosisEvmCcrTrade;
|
207
|
+
//# sourceMappingURL=symbiosis-ccr-evm-trade.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"symbiosis-ccr-evm-trade.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-ccr-evm-trade.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,8CAA4E;AAE5E,gFAIoD;AACpD,kGAA8F;AAE9F,6GAAwG;AAExG,yDAAsD;AAGtD,kHAA6G;AAC7G,qHAA+G;AAC/G,uHAAoH;AACpH,uJAAiJ;AACjJ,yKAAkK;AAClK,+KAAwK;AACxK,qJAA+I;AAE/I,kHAA+G;AAM/G,wKAAiK;AAGjK,0HAAmH;AACnH,+HAG+F;AAI/F;;GAEG;AACH,MAAa,oBAAqB,SAAQ,0CAAkB;IAGxD,gBAAgB;IACT,MAAM,CAAC,KAAK,CAAC,UAAU,CAC1B,IAAyC,EACzC,OAAyB,EACzB,UAAmC,EACnC,OAAgB,EAChB,eAAuB,EACvB,eAAuB,EACvB,eAAwB;QAExB,MAAM,KAAK,GAAG,IAAI,oBAAoB,CAClC;YACI,IAAI;YACJ,EAAE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AM,EAAE,CAAC;IAC/D,CAAC;IAEO,oBAAoB,CACxB,eAAmC,EACnC,aAAqB,EACrB,YAA4B;QAE5B,IAAI,YAAY,KAAK,iCAAe,CAAC,OAAO,EAAE,CAAC;YAC3C,OAAO,aAAa,CAAC;QACzB,CAAC;QAED,OAAO,eAAe,IAAI,aAAa,CAAC;IAC5C,CAAC;CACJ;AAlUD,oDAkUC"}
|
@@ -13,8 +13,9 @@ export declare class SymbiosisCrossChainProvider extends CrossChainProvider {
|
|
13
13
|
areSupportedBlockchains(fromBlockchain: BlockchainName, toBlockchain: BlockchainName): boolean;
|
14
14
|
calculate(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken, options: RequiredCrossChainOptions): Promise<CalculationResult>;
|
15
15
|
private getPromotions;
|
16
|
-
|
17
|
-
private
|
16
|
+
private getTokenAddress;
|
17
|
+
private getChainId;
|
18
|
+
protected getFeeInfo(fromBlockchain: SymbiosisCrossChainSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>;
|
18
19
|
protected getRoutePath(fromToken: PriceTokenAmount, toToken: PriceTokenAmount, route: SymbiosisToken[]): Promise<RubicStep[]>;
|
19
20
|
private getSwapParamsToAddress;
|
20
21
|
private handleMinAmountError;
|
@@ -9,6 +9,7 @@ const errors_1 = require("../../../../../common/errors");
|
|
9
9
|
const no_linked_account_erros_1 = require("../../../../../common/errors/swap/no-linked-account-erros");
|
10
10
|
const tokens_1 = require("../../../../../common/tokens");
|
11
11
|
const blockchain_name_1 = require("../../../../../core/blockchain/models/blockchain-name");
|
12
|
+
const blockchains_info_1 = require("../../../../../core/blockchain/utils/blockchains-info/blockchains-info");
|
12
13
|
const blockchain_id_1 = require("../../../../../core/blockchain/utils/blockchains-info/constants/blockchain-id");
|
13
14
|
const web3_pure_1 = require("../../../../../core/blockchain/web3-pure/web3-pure");
|
14
15
|
const symbiosis_api_service_1 = require("../../../../common/providers/symbiosis/services/symbiosis-api-service");
|
@@ -16,10 +17,9 @@ const get_from_without_fee_1 = require("../../../../common/utils/get-from-withou
|
|
16
17
|
const cross_chain_trade_type_1 = require("../../models/cross-chain-trade-type");
|
17
18
|
const cross_chain_provider_1 = require("../common/cross-chain-provider");
|
18
19
|
const proxy_cross_chain_evm_trade_1 = require("../common/proxy-cross-chain-evm-facade/proxy-cross-chain-evm-trade");
|
19
|
-
const symbiosis_cross_chain_trade_1 = require("./symbiosis-cross-chain-trade");
|
20
|
-
const constants_1 = require("../../../../on-chain/calculation-manager/providers/aggregators/1inch/constants/constants");
|
21
20
|
const on_chain_trade_type_1 = require("../../../../on-chain/calculation-manager/providers/common/models/on-chain-trade-type");
|
22
21
|
const symbiosis_cross_chain_supported_blockchains_1 = require("./models/symbiosis-cross-chain-supported-blockchains");
|
22
|
+
const symbiosis_ccr_evm_trade_1 = require("./symbiosis-ccr-evm-trade");
|
23
23
|
class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvider {
|
24
24
|
constructor() {
|
25
25
|
super(...arguments);
|
@@ -29,7 +29,9 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
29
29
|
return symbiosis_cross_chain_supported_blockchains_1.symbiosisCrossChainSupportedBlockchains.some(supportedBlockchain => supportedBlockchain === blockchain);
|
30
30
|
}
|
31
31
|
areSupportedBlockchains(fromBlockchain, toBlockchain) {
|
32
|
-
if (fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN
|
32
|
+
if (fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN ||
|
33
|
+
fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.TON ||
|
34
|
+
fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.TRON) {
|
33
35
|
return false;
|
34
36
|
}
|
35
37
|
return super.areSupportedBlockchains(fromBlockchain, toBlockchain);
|
@@ -42,45 +44,24 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
42
44
|
const useProxy = from.blockchain === blockchain_name_1.BLOCKCHAIN_NAME.METIS
|
43
45
|
? false
|
44
46
|
: options?.useProxy?.[this.type] ?? true;
|
45
|
-
// @TODO remove Tron check
|
46
|
-
if (!this.areSupportedBlockchains(fromBlockchain, toBlockchain) ||
|
47
|
-
fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.TRON ||
|
48
|
-
fromBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN) {
|
49
|
-
return {
|
50
|
-
trade: null,
|
51
|
-
error: new errors_1.NotSupportedTokensError(),
|
52
|
-
tradeType: this.type
|
53
|
-
};
|
54
|
-
}
|
55
47
|
let disabledTrade = {};
|
56
48
|
try {
|
57
49
|
const FAKE_WALLET_ADDRESS = '0xf78312D6aD7afc364422Dda14a24082104588542';
|
58
50
|
const fromAddress = options.fromAddress ||
|
59
51
|
this.getWalletAddress(fromBlockchain) ||
|
60
|
-
FAKE_WALLET_ADDRESS
|
61
|
-
constants_1.oneinchApiParams.nativeAddress;
|
52
|
+
FAKE_WALLET_ADDRESS;
|
62
53
|
const feeInfo = await this.getFeeInfo(fromBlockchain, options.providerAddress, from, useProxy);
|
63
54
|
const fromWithoutFee = (0, get_from_without_fee_1.getFromWithoutFee)(from, feeInfo.rubicProxy?.platformFee?.percent);
|
64
|
-
let tokenInAddress;
|
65
|
-
if (from.isNative && from.blockchain === blockchain_name_1.BLOCKCHAIN_NAME.METIS) {
|
66
|
-
tokenInAddress = '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000';
|
67
|
-
}
|
68
|
-
else if (from.isNative) {
|
69
|
-
tokenInAddress = '';
|
70
|
-
}
|
71
|
-
else {
|
72
|
-
tokenInAddress = from.address;
|
73
|
-
}
|
74
55
|
const tokenIn = {
|
75
|
-
chainId:
|
76
|
-
address:
|
56
|
+
chainId: this.getChainId(from),
|
57
|
+
address: this.getTokenAddress(from),
|
77
58
|
decimals: from.decimals,
|
78
59
|
isNative: from.isNative,
|
79
60
|
symbol: from.symbol
|
80
61
|
};
|
81
62
|
const tokenOut = {
|
82
|
-
chainId:
|
83
|
-
address:
|
63
|
+
chainId: this.getChainId(toToken),
|
64
|
+
address: this.getTokenAddress(toToken),
|
84
65
|
decimals: toToken.decimals,
|
85
66
|
isNative: toToken.isNative,
|
86
67
|
symbol: toToken.symbol
|
@@ -111,10 +92,10 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
111
92
|
tokenAmount: web3_pure_1.Web3Pure.fromWei(tokenAmountOut.amount, tokenAmountOut.decimals)
|
112
93
|
});
|
113
94
|
const gasData = options.gasCalculation === 'enabled'
|
114
|
-
? await
|
95
|
+
? await symbiosis_ccr_evm_trade_1.SymbiosisEvmCcrTrade.getGasData(from, to, swapParams, feeInfo, approveTo, options.providerAddress, options.receiverAddress)
|
115
96
|
: null;
|
116
97
|
return {
|
117
|
-
trade: new
|
98
|
+
trade: new symbiosis_ccr_evm_trade_1.SymbiosisEvmCcrTrade({
|
118
99
|
from,
|
119
100
|
to,
|
120
101
|
gasData,
|
@@ -128,9 +109,8 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
128
109
|
providerRouter: tx.to,
|
129
110
|
providerGateway: approveTo
|
130
111
|
},
|
131
|
-
...(
|
132
|
-
|
133
|
-
}, options.providerAddress, await this.getRoutePath(from, to, route)),
|
112
|
+
...(rewards?.length && { promotions: this.getPromotions(rewards) })
|
113
|
+
}, options.providerAddress, await this.getRoutePath(from, to, route), useProxy),
|
134
114
|
tradeType: this.type
|
135
115
|
};
|
136
116
|
}
|
@@ -151,23 +131,27 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
151
131
|
getPromotions(rewards) {
|
152
132
|
return rewards.map(promo => `${promo.symbol}_${web3_pure_1.Web3Pure.fromWei(promo.amount, promo.decimals).toFixed()}`);
|
153
133
|
}
|
134
|
+
getTokenAddress(token) {
|
135
|
+
if (token.isNative && token.blockchain === blockchain_name_1.BLOCKCHAIN_NAME.METIS) {
|
136
|
+
return '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000';
|
137
|
+
}
|
138
|
+
if (token.isNative) {
|
139
|
+
return '';
|
140
|
+
}
|
141
|
+
return token.address;
|
142
|
+
}
|
143
|
+
getChainId(token) {
|
144
|
+
if (blockchains_info_1.BlockchainsInfo.isTonBlockchainName(token.blockchain)) {
|
145
|
+
return 8888888;
|
146
|
+
}
|
147
|
+
if (blockchains_info_1.BlockchainsInfo.isTronBlockchainName(token.blockchain)) {
|
148
|
+
return 728126428;
|
149
|
+
}
|
150
|
+
return blockchain_id_1.blockchainId[token.blockchain];
|
151
|
+
}
|
154
152
|
async getFeeInfo(fromBlockchain, providerAddress, percentFeeToken, useProxy) {
|
155
153
|
return proxy_cross_chain_evm_trade_1.ProxyCrossChainEvmTrade.getFeeInfo(fromBlockchain, providerAddress, percentFeeToken, useProxy);
|
156
154
|
}
|
157
|
-
getTransferToken(route, from) {
|
158
|
-
const fromBlockchainId = blockchain_id_1.blockchainId[from.blockchain];
|
159
|
-
const fromRouting = route.filter(token => token.chainId === fromBlockchainId);
|
160
|
-
const token = fromRouting.at(-1);
|
161
|
-
return fromRouting.length !== 1
|
162
|
-
? {
|
163
|
-
address: token.address,
|
164
|
-
decimals: token.decimals,
|
165
|
-
name: token.name,
|
166
|
-
blockchain: from.blockchain,
|
167
|
-
symbol: token.symbol
|
168
|
-
}
|
169
|
-
: undefined;
|
170
|
-
}
|
171
155
|
async getRoutePath(fromToken, toToken, route) {
|
172
156
|
const fromChainId = blockchain_id_1.blockchainId[fromToken.blockchain];
|
173
157
|
const toChainId = blockchain_id_1.blockchainId[toToken.blockchain];
|
@@ -213,13 +197,17 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
213
197
|
if (toBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN && !receiverAddress) {
|
214
198
|
return 'bc1qvyf8ufqpeyfe6vshfxdrr970rkqfphgz28ulhr';
|
215
199
|
}
|
200
|
+
// @TODO add rubic-mock address
|
201
|
+
if (toBlockchain === blockchain_name_1.BLOCKCHAIN_NAME.TON && !receiverAddress) {
|
202
|
+
return 'UQATSC4TXAqjgLswuSEDVTIGmPG_kNnUTDhrTiIILVmymoQA';
|
203
|
+
}
|
216
204
|
return receiverAddress || fromAddress;
|
217
205
|
}
|
218
206
|
handleMinAmountError(err) {
|
219
207
|
const msg = err.error?.message || '';
|
220
208
|
if (msg.includes('too low')) {
|
221
|
-
const [, minAmount] = msg.toLowerCase().split('min
|
222
|
-
const minAmountBN = new bignumber_js_1.default(minAmount);
|
209
|
+
const [, minAmount] = msg.toLowerCase().split('min: ');
|
210
|
+
const minAmountBN = new bignumber_js_1.default(parseFloat(minAmount));
|
223
211
|
const isFeeInUSDC = minAmountBN.gt(0.5);
|
224
212
|
const symbol = isFeeInUSDC ? 'USDC' : 'WETH';
|
225
213
|
return new errors_1.MinAmountError(minAmountBN, symbol);
|
@@ -227,7 +215,7 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
227
215
|
return null;
|
228
216
|
}
|
229
217
|
getEmptyTrade(from, to, swapParams, feeInfo) {
|
230
|
-
return new
|
218
|
+
return new symbiosis_ccr_evm_trade_1.SymbiosisEvmCcrTrade({
|
231
219
|
from,
|
232
220
|
to: to,
|
233
221
|
gasData: null,
|
@@ -247,7 +235,7 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
|
|
247
235
|
provider: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.SYMBIOSIS,
|
248
236
|
path: [from, to]
|
249
237
|
}
|
250
|
-
]);
|
238
|
+
], true);
|
251
239
|
}
|
252
240
|
}
|
253
241
|
exports.SymbiosisCrossChainProvider = SymbiosisCrossChainProvider;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"symbiosis-cross-chain-provider.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-cross-chain-provider.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,
|
1
|
+
{"version":3,"file":"symbiosis-cross-chain-provider.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/symbiosis-provider/symbiosis-cross-chain-provider.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,8CAAkE;AAClE,4FAAsF;AACtF,8CAAkG;AAClG,gFAIoD;AACpD,kGAA8F;AAC9F,sGAAkG;AAGlG,uEAAmE;AACnE,kHAA6G;AAC7G,yFAAmF;AAEnF,uHAAoH;AACpH,6HAAwH;AAIxH,wKAAiK;AAOjK,+HAA4H;AAE5H,sHAG8D;AAC9D,uEAAiE;AAEjE,MAAa,2BAA4B,SAAQ,yCAAkB;IAAnE;;QACoB,SAAI,GAAG,+CAAsB,CAAC,SAAS,CAAC;IA+T5D,CAAC;IA7TU,qBAAqB,CACxB,UAA0B;QAE1B,OAAO,qFAAuC,CAAC,IAAI,CAC/C,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,KAAK,UAAU,CAC5D,CAAC;IACN,CAAC;IAEe,uBAAuB,CACnC,cAA8B,EAC9B,YAA4B;QAE5B,IACI,cAAc,KAAK,iCAAe,CAAC,OAAO;YAC1C,cAAc,KAAK,iCAAe,CAAC,GAAG;YACtC,cAAc,KAAK,iCAAe,CAAC,IAAI,EACzC,CAAC;YACC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,OAAO,KAAK,CAAC,uBAAuB,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACvE,CAAC;IAED,sCAAsC;IAC/B,KAAK,CAAC,SAAS,CAClB,IAAyC,EACzC,OAAmB,EACnB,OAAkC;QAElC,MAAM,cAAc,GAAG,IAAI,CAAC,UAAoD,CAAC;QACjF,MAAM,YAAY,GAAG,OAAO,CAAC,UAAoD,CAAC;QAClF,uCAAuC;QACvC,MAAM,QAAQ,GACV,IAAI,CAAC,UAAU,KAAK,i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yC,EACzC,EAAoC,EACpC,UAAmC,EACnC,OAAgB;QAEhB,OAAO,IAAI,8CAAoB,CAC3B;YACI,IAAI;YACJ,EAAE,EAAE,EAAE;YACN,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,CAAC;YACX,UAAU;YACV,OAAO;YACP,aAAa,EAAE,IAAI,CAAC,WAAW;YAC/B,SAAS,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE;YAC5C,iBAAiB,EAAE;gBACf,cAAc,EAAE,EAAE;gBAClB,eAAe,EAAE,EAAE;aACtB;SACJ,EACD,EAAE,EACF;YACI;gBACI,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,+CAAsB,CAAC,SAAS;gBAC1C,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;aACnB;SACJ,EACD,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAhUD,kEAgUC"}
|
package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-provider.js
CHANGED
@@ -18,6 +18,7 @@ class TaikoBridgeProvider extends cross_chain_provider_1.CrossChainProvider {
|
|
18
18
|
async calculate(fromToken, toToken, options) {
|
19
19
|
const fromBlockchain = fromToken.blockchain;
|
20
20
|
const toBlockchain = toToken.blockchain;
|
21
|
+
const useProxy = options?.useProxy?.[this.type] ?? true;
|
21
22
|
if (!this.areSupportedBlockchains(fromBlockchain, toBlockchain)) {
|
22
23
|
return {
|
23
24
|
trade: null,
|
@@ -38,7 +39,7 @@ class TaikoBridgeProvider extends cross_chain_provider_1.CrossChainProvider {
|
|
38
39
|
from: fromToken,
|
39
40
|
to,
|
40
41
|
gasData
|
41
|
-
}, options.providerAddress, await this.getRoutePath(fromToken, to)),
|
42
|
+
}, options.providerAddress, await this.getRoutePath(fromToken, to), useProxy),
|
42
43
|
tradeType: this.type
|
43
44
|
};
|
44
45
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiko-bridge-provider.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-provider.ts"],"names":[],"mappings":";;;AAAA,8CAA4D;AAC5D,8CAAiE;AAGjE,uHAAoH;AAEpH,6HAAwH;AAKxH,oGAGqD;AACrD,6DAAwD;AAExD,MAAa,mBAAoB,SAAQ,yCAAkB;IAA3D;;QACoB,SAAI,GAAG,+CAAsB,CAAC,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"taiko-bridge-provider.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-provider.ts"],"names":[],"mappings":";;;AAAA,8CAA4D;AAC5D,8CAAiE;AAGjE,uHAAoH;AAEpH,6HAAwH;AAKxH,oGAGqD;AACrD,6DAAwD;AAExD,MAAa,mBAAoB,SAAQ,yCAAkB;IAA3D;;QACoB,SAAI,GAAG,+CAAsB,CAAC,YAAY,CAAC;IA6E/D,CAAC;IA3EU,qBAAqB,CACxB,UAA0B;QAE1B,OAAO,oEAA+B,CAAC,IAAI,CACvC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,KAAK,UAAU,CAC5D,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,SAAS,CAClB,SAA8C,EAC9C,OAAsC,EACtC,OAAkC;QAElC,MAAM,cAAc,GAAG,SAAS,CAAC,UAA4C,CAAC;QAC9E,MAAM,YAAY,GAAG,OAAO,CAAC,UAA4C,CAAC;QAC1E,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;QAExD,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,CAAC;YAC9D,OAAO;gBACH,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI,gCAAuB,EAAE;gBACpC,SAAS,EAAE,IAAI,CAAC,IAAI;aACvB,CAAC;QACN,C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35,7 @@ export declare class TaikoBridgeTrade extends EvmCrossChainTrade {
|
|
35
35
|
from: PriceTokenAmount<EvmBlockchainName>;
|
36
36
|
to: PriceTokenAmount<EvmBlockchainName>;
|
37
37
|
gasData: GasData | null;
|
38
|
-
}, providerAddress: string, routePath: RubicStep[]);
|
38
|
+
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
|
39
39
|
getContractParams(): Promise<ContractParams>;
|
40
40
|
getTradeAmountRatio(fromUsd: BigNumber): BigNumber;
|
41
41
|
getTradeInfo(): TradeInfo;
|
package/lib/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.js
CHANGED
@@ -17,7 +17,7 @@ class TaikoBridgeTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
17
17
|
from,
|
18
18
|
to,
|
19
19
|
gasData: null
|
20
|
-
}, evm_web3_pure_1.EvmWeb3Pure.EMPTY_ADDRESS, []);
|
20
|
+
}, evm_web3_pure_1.EvmWeb3Pure.EMPTY_ADDRESS, [], false);
|
21
21
|
return (0, get_cross_chain_gas_data_1.getCrossChainGasData)(trade);
|
22
22
|
}
|
23
23
|
get fromBlockchain() {
|
@@ -33,8 +33,8 @@ class TaikoBridgeTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
33
33
|
? 'swapAndStartBridgeTokensViaGenericCrossChain'
|
34
34
|
: 'startBridgeTokensViaGenericCrossChain';
|
35
35
|
}
|
36
|
-
constructor(crossChainTrade, providerAddress, routePath) {
|
37
|
-
super(providerAddress, routePath);
|
36
|
+
constructor(crossChainTrade, providerAddress, routePath, useProxy) {
|
37
|
+
super(providerAddress, routePath, useProxy);
|
38
38
|
this.onChainSubtype = { from: undefined, to: undefined };
|
39
39
|
this.type = cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.TAIKO_BRIDGE;
|
40
40
|
this.isAggregator = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiko-bridge-trade.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.ts"],"names":[],"mappings":";;;AAEA,gFAAgG;AAChG,sGAAkG;AAClG,6GAAwG;AAGxG,uHAAoH;AACpH,qJAA+I;AAE/I,kHAA+G;AAI/G,uIAGyG;AACzG,0HAAmH;AAEnH,6FAAuF;AAGvF,MAAa,gBAAiB,SAAQ,0CAAkB;IACpD,gBAAgB;IACT,MAAM,CAAC,KAAK,CAAC,UAAU,CAC1B,IAAyC,EACzC,EAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,gBAAgB,CAC9B;YACI,IAAI;YACJ,EAAE;YACF,OAAO,EAAE,IAAI;SAChB,EACD,2BAAW,CAAC,aAAa,EACzB,EAAE,
|
1
|
+
{"version":3,"file":"taiko-bridge-trade.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/taiko-bridge/taiko-bridge-trade.ts"],"names":[],"mappings":";;;AAEA,gFAAgG;AAChG,sGAAkG;AAClG,6GAAwG;AAGxG,uHAAoH;AACpH,qJAA+I;AAE/I,kHAA+G;AAI/G,uIAGyG;AACzG,0HAAmH;AAEnH,6FAAuF;AAGvF,MAAa,gBAAiB,SAAQ,0CAAkB;IACpD,gBAAgB;IACT,MAAM,CAAC,KAAK,CAAC,UAAU,CAC1B,IAAyC,EACzC,EAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,gBAAgB,CAC9B;YACI,IAAI;YACJ,EAAE;YACF,OAAO,EAAE,IAAI;SAChB,EACD,2BAAW,CAAC,aAAa,EACzB,EAAE,EACF,KAAK,CACR,CAAC;QAEF,OAAO,IAAA,+CAAoB,EAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAuBD,IAAY,cAAc;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,UAA4C,CAAC;IAClE,CAAC;IAED,IAAc,mBAAmB;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ;YACrB,CAAC,CAAC,0DAA0B,CAAC,I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EAC/D,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAChD,eAAe,EACf,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,CACrE,CAAC;QAEF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC;IACvD,CAAC;CACJ;AA/LD,4CA+LC"}
|
@@ -101,7 +101,7 @@ class XyCrossChainProvider extends cross_chain_provider_1.CrossChainProvider {
|
|
101
101
|
bridgeDescription,
|
102
102
|
dstSwapDescription,
|
103
103
|
dstQuoteTokenAmount
|
104
|
-
})),
|
104
|
+
}), useProxy),
|
105
105
|
tradeType: this.type
|
106
106
|
};
|
107
107
|
}
|
@@ -142,8 +142,7 @@ class XyCrossChainProvider extends cross_chain_provider_1.CrossChainProvider {
|
|
142
142
|
if (transitFromAddress) {
|
143
143
|
routePath.push({
|
144
144
|
type: 'on-chain',
|
145
|
-
|
146
|
-
provider: on_chain_trade_type_1.ON_CHAIN_TRADE_TYPE.ONE_INCH,
|
145
|
+
provider: on_chain_trade_type_1.ON_CHAIN_TRADE_TYPE.XY_DEX,
|
147
146
|
path: [fromToken, fromTokenAmount]
|
148
147
|
});
|
149
148
|
}
|
@@ -155,8 +154,7 @@ class XyCrossChainProvider extends cross_chain_provider_1.CrossChainProvider {
|
|
155
154
|
if (transitToAddress) {
|
156
155
|
routePath.push({
|
157
156
|
type: 'on-chain',
|
158
|
-
|
159
|
-
provider: on_chain_trade_type_1.ON_CHAIN_TRADE_TYPE.ONE_INCH,
|
157
|
+
provider: on_chain_trade_type_1.ON_CHAIN_TRADE_TYPE.XY_DEX,
|
160
158
|
path: [toTokenAmount, toToken]
|
161
159
|
});
|
162
160
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"xy-cross-chain-provider.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-provider.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,8CAA4D;AAC5D,8CAA8E;AAC9E,4DAA+D;AAE/D,sGAAkG;AAClG,6GAAwG;AACxG,uEAAmE;AACnE,yDAAsD;AACtD,4FAIkE;AAKlE,8EAAsF;AACtF,yFAAmF;AAEnF,uHAAoH;AACpH,6HAAwH;AAIxH,wKAAiK;AACjK,oJAG+G;AAC/G,kIAA4H;AAC5H,+HAA4H;AAE5H,8DAAuE;AAEvE,MAAa,oBAAqB,SAAQ,yCAAkB;IAA5D;;QACoB,SAAI,GAAG,+CAAsB,CAAC,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"xy-cross-chain-provider.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-provider.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,8CAA4D;AAC5D,8CAA8E;AAC9E,4DAA+D;AAE/D,sGAAkG;AAClG,6GAAwG;AACxG,uEAAmE;AACnE,yDAAsD;AACtD,4FAIkE;AAKlE,8EAAsF;AACtF,yFAAmF;AAEnF,uHAAoH;AACpH,6HAAwH;AAIxH,wKAAiK;AACjK,oJAG+G;AAC/G,kIAA4H;AAC5H,+HAA4H;AAE5H,8DAAuE;AAEvE,MAAa,oBAAqB,SAAQ,yCAAkB;IAA5D;;QACoB,SAAI,GAAG,+CAAsB,CAAC,EAAE,CAAC;IA6MrD,CAAC;IA3MU,qBAAqB,CACxB,UAA0B;QAE1B,OAAO,iDAAsB,CAAC,IAAI,CAC9B,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,KAAK,UAAU,CAC5D,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,SAAS,CAClB,SAA8C,EAC9C,OAAsC,EACtC,OAAkC;QAElC,MAAM,cAA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gBAAgB,EAAE,CAAC;YACnB,SAAS,CAAC,IAAI,CAAC;gBACX,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,yCAAmB,CAAC,MAAM;gBACpC,IAAI,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC;aACjC,CAAC,CAAC;QACP,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AA9MD,oDA8MC"}
|
package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.d.ts
CHANGED
@@ -48,7 +48,7 @@ export declare class XyCrossChainTrade extends EvmCrossChainTrade {
|
|
48
48
|
feeInfo: FeeInfo;
|
49
49
|
onChainTrade: EvmOnChainTrade | null;
|
50
50
|
bridgeType: BridgeType;
|
51
|
-
}, providerAddress: string, routePath: RubicStep[]);
|
51
|
+
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
|
52
52
|
getContractParams(options: GetContractParamsOptions): Promise<ContractParams>;
|
53
53
|
getTradeAmountRatio(fromUsd: BigNumber): BigNumber;
|
54
54
|
protected getTransactionConfigAndAmount(receiverAddress?: string): Promise<{
|
package/lib/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.js
CHANGED
@@ -39,7 +39,7 @@ class XyCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
39
39
|
feeInfo,
|
40
40
|
onChainTrade: null,
|
41
41
|
bridgeType: bridge_type_1.BRIDGE_TYPE.XY
|
42
|
-
}, providerAddress || evm_web3_pure_1.EvmWeb3Pure.EMPTY_ADDRESS, []);
|
42
|
+
}, providerAddress || evm_web3_pure_1.EvmWeb3Pure.EMPTY_ADDRESS, [], false);
|
43
43
|
return (0, get_cross_chain_gas_data_1.getCrossChainGasData)(trade);
|
44
44
|
}
|
45
45
|
catch (_err) {
|
@@ -57,8 +57,8 @@ class XyCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
|
|
57
57
|
get methodName() {
|
58
58
|
return 'startBridgeTokensViaGenericCrossChain';
|
59
59
|
}
|
60
|
-
constructor(crossChainTrade, providerAddress, routePath) {
|
61
|
-
super(providerAddress, routePath);
|
60
|
+
constructor(crossChainTrade, providerAddress, routePath, useProxy) {
|
61
|
+
super(providerAddress, routePath, useProxy);
|
62
62
|
this.type = cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.XY;
|
63
63
|
this.isAggregator = false;
|
64
64
|
this.onChainSubtype = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"xy-cross-chain-trade.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.ts"],"names":[],"mappings":";;;;;;;;;AAGA,4DAAoD;AAEpD,6GAAwG;AAExG,uEAAmE;AACnE,yDAAsD;AAEtD,4FAA2F;AAG3F,8EAAsF;AACtF,uHAAoH;AACpH,uJAAiJ;AACjJ,yKAAkK;AAClK,+KAAwK;AACxK,qJAA+I;AAE/I,kHAG0F;AAK1F,wKAAiK;AACjK,0IAAqI;AAErI,0HAAmH;AAGnH;;GAEG;AACH,MAAa,iBAAkB,SAAQ,0CAAkB;IACrD,gBAAgB;IACT,MAAM,CAAC,KAAK,CAAC,UAAU,CAC1B,IAAyC,EACzC,OAA4C,EAC5C,kBAAoC,EACpC,OAAgB,EAChB,eAAuB;QAEvB,IAAI;
|
1
|
+
{"version":3,"file":"xy-cross-chain-trade.js","sourceRoot":"","sources":["../../../../../../src/features/cross-chain/calculation-manager/providers/xy-provider/xy-cross-chain-trade.ts"],"names":[],"mappings":";;;;;;;;;AAGA,4DAAoD;AAEpD,6GAAwG;AAExG,uEAAmE;AACnE,yDAAsD;AAEtD,4FAA2F;AAG3F,8EAAsF;AACtF,uHAAoH;AACpH,uJAAiJ;AACjJ,yKAAkK;AAClK,+KAAwK;AACxK,qJAA+I;AAE/I,kHAG0F;AAK1F,wKAAiK;AACjK,0IAAqI;AAErI,0HAAmH;AAGnH;;GAEG;AACH,MAAa,iBAAkB,SAAQ,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"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.compareCrossChainTrades =
|
3
|
+
exports.compareCrossChainTrades = compareCrossChainTrades;
|
4
4
|
const errors_1 = require("../../../../common/errors");
|
5
5
|
/**
|
6
6
|
* Compares two cross chain trades for sorting algorithm.
|
@@ -51,5 +51,4 @@ function compareCrossChainTrades(nextWrappedTrade, prevWrappedTrade, nativePrice
|
|
51
51
|
return fromUsd.lte(toUsd) ? -1 : 1;
|
52
52
|
}
|
53
53
|
}
|
54
|
-
exports.compareCrossChainTrades = compareCrossChainTrades;
|
55
54
|
//# sourceMappingURL=compare-cross-chain-trades.js.map
|