Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testnet Prod #4095

Merged
merged 119 commits into from
May 3, 2023
Merged

Testnet Prod #4095

merged 119 commits into from
May 3, 2023

Conversation

rhlsthrm
Copy link
Collaborator

@rhlsthrm rhlsthrm commented May 3, 2023

Description

Type of change

  • Docs change / dependency upgrade
  • Configuration / tooling changes
  • Refactoring
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)

Fixes

Related pull request(s)

LayneHaber and others added 30 commits April 12, 2023 18:07
* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
@rhlsthrm rhlsthrm marked this pull request as ready for review May 3, 2023 05:49
@rhlsthrm rhlsthrm merged commit 85f6a30 into testnet-prod May 3, 2023
rhlsthrm added a commit that referenced this pull request May 8, 2023
* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* Testnet sync (#3990)

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

---------

Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>

* fix: exclude null entities

* testnet sync (#3992)

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

---------

Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* Testnet Sync (#4013)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* chore: working logged transactions

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* Bump testnet

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Testnet-prod sync (#4028)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Add Pokt key

* Testnet (#4032)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Testnet sync (#4068)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Back to Gelato

* Update versions

* Testnet sync (#4071)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Testnet sync (#4081)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Testnet sync (#4089)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* Testnet Prod (#4095)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: add Quoter type

* feat: remove/add rpc

* feat: add abis for quote

* feat: comment zksync2 testnet conf

* Testnet (#4101)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: remove/add rpc

* feat: comment zksync2 testnet conf

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* feat: quote function

* feat: export funcs

* Fix graph deploy

* feat: deploy swapandxcall arbitrum

* feat: bump chain-abstraction sdk version

* feat: add getBridgeAmountOut

* feat: unit tests for quote

* feat: disable until fixed

* Fix carto transfers/messages loop (#4105)

* fix: loop by both origin/both

* fix: test

* fix: coverage

* fix: call count

* callcount

* Fix

* Fix

* callcount

* Lint fix

* Testnet prod (#4107)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: remove/add rpc

* feat: comment zksync2 testnet conf

* Fix graph deploy

* feat: deploy swapandxcall arbitrum

* feat: bump chain-abstraction sdk version

* feat: disable until fixed

* Fix carto transfers/messages loop (#4105)

* fix: loop by both origin/both

* fix: test

* fix: coverage

* fix: call count

* callcount

* Fix

* Fix

* callcount

* Lint fix

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Mock axios requests

* Re-enable sdk tests

* bump version of chain-abstraction

* fix: 1inch quote bug

* fix: univ3 quote call issue

* fix: univ2 quote issue

* fix: decimal issue while bridging

* feat: update addresses

* fix: cli works

* feat: export addresses

* fix: unit tests

* config fixes for docker image and db size

* feat: add linea RPC url to configs

* feat: 1inch aggregation router addresses

* feat: add linea RPC url to configs

* bump version of chain-abstraction

* fix: export swapandxcall addresses

* bump chain-abstractio sdk version

* feat: no need to fetch origin transfers

* fix: tests

* fix: increase limit when finding associated root messages

* fix: use execute timestamp not reconcile timestamp

* fix: return amountIn if same asset

* fix: unit test for quote

* bump chain-abstraction sdk version

* bump again

* Try public postgrest image

* fix: 1inch api params

* bump chain-abstraction sdk version

* fix: unit tests

* bump chain-abstraction sdk

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Rahul Sethuram <rahul@connext.network>
Co-authored-by: Rahul Sethuram <rahul@sethuram.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: carlomazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
rhlsthrm pushed a commit that referenced this pull request May 8, 2023
* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* Testnet sync (#3990)

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

---------

Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>

* fix: exclude null entities

* testnet sync (#3992)

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

---------

Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* Testnet Sync (#4013)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* chore: working logged transactions

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* Bump testnet

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Testnet-prod sync (#4028)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Add Pokt key

* Testnet (#4032)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Testnet sync (#4068)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Back to Gelato

* Update versions

* Testnet sync (#4071)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Testnet sync (#4081)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Testnet sync (#4089)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* Testnet Prod (#4095)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: add Quoter type

* feat: remove/add rpc

* feat: add abis for quote

* feat: comment zksync2 testnet conf

* Testnet (#4101)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: remove/add rpc

* feat: comment zksync2 testnet conf

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* feat: quote function

* feat: export funcs

* Fix graph deploy

* feat: deploy swapandxcall arbitrum

* feat: bump chain-abstraction sdk version

* feat: add getBridgeAmountOut

* feat: unit tests for quote

* feat: disable until fixed

* Fix carto transfers/messages loop (#4105)

* fix: loop by both origin/both

* fix: test

* fix: coverage

* fix: call count

* callcount

* Fix

* Fix

* callcount

* Lint fix

* Testnet prod (#4107)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: remove/add rpc

* feat: comment zksync2 testnet conf

* Fix graph deploy

* feat: deploy swapandxcall arbitrum

* feat: bump chain-abstraction sdk version

* feat: disable until fixed

* Fix carto transfers/messages loop (#4105)

* fix: loop by both origin/both

* fix: test

* fix: coverage

* fix: call count

* callcount

* Fix

* Fix

* callcount

* Lint fix

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Mock axios requests

* Re-enable sdk tests

* bump version of chain-abstraction

* fix: 1inch quote bug

* fix: univ3 quote call issue

* fix: univ2 quote issue

* fix: decimal issue while bridging

* feat: update addresses

* fix: cli works

* feat: export addresses

* fix: unit tests

* config fixes for docker image and db size

* feat: add linea RPC url to configs

* feat: 1inch aggregation router addresses

* feat: add linea RPC url to configs

* bump version of chain-abstraction

* fix: export swapandxcall addresses

* bump chain-abstractio sdk version

* feat: no need to fetch origin transfers

* fix: tests

* fix: increase limit when finding associated root messages

* fix: use execute timestamp not reconcile timestamp

* fix: return amountIn if same asset

* fix: unit test for quote

* bump chain-abstraction sdk version

* bump again

* Try public postgrest image

* fix: 1inch api params

* bump chain-abstraction sdk version

* fix: unit tests

* bump chain-abstraction sdk

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>
Co-authored-by: carlomazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
rhlsthrm added a commit that referenced this pull request May 10, 2023
* feat: mark based on leaf count (#3989)

* Testnet sync (#3990)

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

---------

Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>

* fix: exclude null entities

* testnet sync (#3992)

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

---------

Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* Testnet Sync (#4013)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* chore: working logged transactions

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* Bump testnet

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Testnet-prod sync (#4028)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Add Pokt key

* Testnet (#4032)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Testnet sync (#4068)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* Back to Gelato

* Update versions

* Testnet sync (#4071)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: added readme for chain-abstraction

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Testnet sync (#4081)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Testnet sync (#4089)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* Testnet Prod (#4095)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: add Quoter type

* feat: remove/add rpc

* feat: add abis for quote

* feat: comment zksync2 testnet conf

* Testnet (#4101)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: remove/add rpc

* feat: comment zksync2 testnet conf

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* feat: quote function

* feat: export funcs

* Fix graph deploy

* feat: deploy swapandxcall arbitrum

* feat: bump chain-abstraction sdk version

* feat: add getBridgeAmountOut

* feat: unit tests for quote

* feat: disable until fixed

* Fix carto transfers/messages loop (#4105)

* fix: loop by both origin/both

* fix: test

* fix: coverage

* fix: call count

* callcount

* Fix

* Fix

* callcount

* Lint fix

* Testnet prod (#4107)

* feat: add dry-run functionality to init

* feat: add stages to init script

* feat: dai and usdt in prod config

* feat: log tx to send on dry run

* feat: log add init pool transactions

* fix: review updates

* config: adopted is xdai

* fix: upgraded docs to latest (#3980)

* fix: upgraded docs to latest

* fix: added requested changes

---------

Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>

* feat: mark based on leaf count (#3989)

* fix: exclude null entities

* feat: add more info to pool type

* feat: add calculateSwapLocal

* fix: unit tests

* chore: working logged transactions

* chore: coverage of sdk

* chore: coverage

* Tag connext testnet relayer

* Add locals for DAI, USDT

* Catch errors in getPool

* Bump sdk alpha

* refactor transfers with usd amount

* Bump testnet

* add usd amount to router views

* fix: build

* fix: yarn.lock

* fix: use abi instead of artifacts

* feat: abi export with fullname

* chore: clean console.log

* Moar storage

* Add gelato relayer

* update env of sdk mock to prod

* Query destination by executed timestamp (#4027)

* Query destination by executed timestamp

* Fix mocks

* Tests

* Add Pokt key

* Fix comment

* 3971 chain abstraction package (#3994)

* feat: directory sketch

* feat: add chain-abstraction package to workspaces

* feat: cleanup

* feat: still sketch

* feat: add more optional params

* refactor: add todo functions

* feat: swapData to todo

* feat: still todo

* feat: add steps for prepareSwapAndXCall

* feat: mvp for prepareSwapAndXCall

* feat: hardcoded abis

* feat: docstring

* feat: docstring

* refactor: start with a simple solution

* refactor: combine swapper and swapdata

* feat: mvp of calculateRouteForSwapAndXCall

* feat: this is the cross-chain slippage

* feat: type definition done

* feat: kick off getXcallCallData

* feat: separate swapdata between origin and destination

* feat: no need to make it async

* feat: separate use

* feat: origin, destination

* feat: getXCallCallData

* feat: swapData for destination

* feat: clarify usecase

* feat: export functions

* feat: oneinch api

* fix: prepareSwapAndXCall

* Update package.json

* fix: lint

* test: kick off testing on polygon

* test: swapAndXcall passed

https://connextscan.io/tx/0x8e392a8af02e10a0d989d92c48922ec81515f68b44bf74b0634a5ea30f49ce81?src=search

* test: swapAndXCall + relayerFeeInTransacting works

https://connextscan.io/tx/0x0ea9db61a4a7ac8c4586d2f4acb0d524a43f2f3f60bf3c523b922e194b895418?src=search

* feat: update SwapAndXCall deployment

* feat: separate swapper on origin/destination

* docs: wrong trace link

* feat: support getting poolFee

* Update index.ts

* feat: create getPoolFeeForUniV3

* feat: prepare to get liquidity

* feat: sort by liquidity

* test: integrate getPoolFeeForUniV3

* fix: lint

* feat: ci/cd ops

* feat: shouldn't include the specific calldata generation

* feat: update cli per source changes

* build: remove incorrect import

* Add new p2p router

* feat: create mockable for chain-abstraction

* feat: unit test for swapdata

* feat: exclude index files

* feat: include chain-abstraction unit test

* chore: remove console log

* feat: swapAndXCall unit test

* feat: move to mockable

* Fix SDK pool (#4066)

* SDK version bump

* Add logger

* New release

* Update package.json

* Update package.json

* feat: unit test for getXCallCallData

* Gelato relay address changed

* Back to Gelato

* Update versions

* feat: rollout the new version

* 4072 calculate swap decimal issue on bnb chain (#4073)

* fix: decimal issue of bnb usdc

* fix: eslint

* SDK release

* fix: unit test for different decimals

* Bump versions

* feat: add univ3 swapper address

* Chain abstraction release

* Update

* Fix deploy

* feat: create a function to generate the signature of eip712 message

* use fixed version of forge

* feat: add an instruction link for structHash generation

* New unwrapper

* feat: mark root_messages processed for consensys

* Gelato api errors (#4085)

* Add gelato api errors

* Tests

* 4087 no need to swap in case of from and to asset is same in chain abstraction sdk (#4088)

* feat: update swap and xcall contract

* feat: check if from and to is same

* fix: unit tests

* Update versions

* SDK release

* feat: update chain-abstraction univ3 addresses

* fix: unit test for getXCallCallData

* Set Linea to use Arbitrum as equivalent

* SDK release

* Chain abstraction

* iterate all the messages

* query by both origin/destination domains

* fix: add a mock

* fix: unit test

* feat: redeploy pancake v3 swapper

* Package publishing instructions

* Chain Abstraction publish

* Publish package instructions for sdk

* Fix publish steps to check existing versions for all supported tags

* Fix version check

* Chain abstraction version bump

* Fix version check for real

* feat: redeploy swapandxcall contracts

* Chain Abstraction version bump

* fix: unit tests

* chore: lint fix

* chore: fix eslint

* bump version of chain-abstraction

* fix: reading symbol and naming of assets

* sdk 2.0.3-alpha.11

* feat: remove/add rpc

* feat: comment zksync2 testnet conf

* Fix graph deploy

* feat: deploy swapandxcall arbitrum

* feat: bump chain-abstraction sdk version

* feat: disable until fixed

* Fix carto transfers/messages loop (#4105)

* fix: loop by both origin/both

* fix: test

* fix: coverage

* fix: call count

* callcount

* Fix

* Fix

* callcount

* Lint fix

---------

Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com>

* Mock axios requests

* Re-enable sdk tests

* fix: added suggested changes

* bump version of chain-abstraction

* fix: 1inch quote bug

* fix: univ3 quote call issue

* fix: univ2 quote issue

* fix: decimal issue while bridging

* feat: update addresses

* fix: cli works

* feat: export addresses

* fix: unit tests

* config fixes for docker image and db size

* feat: add linea RPC url to configs

* feat: 1inch aggregation router addresses

* feat: add linea RPC url to configs

* bump version of chain-abstraction

* fix: export swapandxcall addresses

* bump chain-abstractio sdk version

* feat: no need to fetch origin transfers

* fix: tests

* fix: increase limit when finding associated root messages

* fix: use execute timestamp not reconcile timestamp

* fix: return amountIn if same asset

* fix: unit test for quote

* bump chain-abstraction sdk version

* bump again

* Try public postgrest image

* Read replica config

* fix: 1inch api params

* bump chain-abstraction sdk version

* fix: unit tests

* Start RDS proxy config

* bump chain-abstraction sdk

* Split out db replica module, get terraform init/apply to work

* Add replica outputs

* Fixes for read replica

* draft

* Add trailing slash back to key

* zapatos

* fix: drop command

* Add safe gelato calls

* Tests

* chg: rename getGelatoEstimateFee

* fix: sequencer unit test

* fix: unit test at utils

* feat: add `NoBidsReceived` to error_status condition

* feat: add index to transfers table

* feat: add mat views for hourly transfer volume

* use db replica

* turn on performance insights by default

* feat: drop transfer_volume view

* fix: typo

* feat: grant permission to mat views

* Replica config for mainnet

* Use replica

* chore: fresh install

* fix: handle case of nextAsset conversion rate

* fix: unit test

* chore: move evmId helper into utils package

* feat: use canonical asset counterpart for nextasset fees

* feat: get canonical pricing for adopted + local assets

* Remove unused fn

---------

Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Rahul Sethuram <rahul@connext.network>
Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in>
Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com>
Co-authored-by: Rahul Sethuram <rahul@sethuram.com>
Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com>
Co-authored-by: Layne Haber <layne.haber@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: carlomazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants