Skip to content

Commit

Permalink
410 further split out batcher and mm contracts to avoid size constrai…
Browse files Browse the repository at this point in the history
…nt (#415)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

* Clear active account on disconnect

* Added interim connecting captions for wallet loading

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

* Fixed issue with token balances updating

* Check for null user address on token update to reduce errors to the console

* Filtered out 204 responses from tzkt for volumes

* Updated About page

* Updated About page

* Added nix flake for project

* Added skeleton ts project

* Added initial skeleton for tg bot

* Added html formatting to rates messages

* Added raw operation socker sub

* Added deposit op to bot

* Corrected tick filter

* Corrected deposit format for TG bot

* Corrected deposit amount for TG bot

* Corrected deposit amount for TG bot

* Scaled amount for TG bot

* Added sedning of raw big map

* Corrected pair naming

* Corrected scaling from rates message

* Use all socket messages

* PArse non formated big maps to json

* Filtered user_batch_ordertypes from big_map updates

* Expanded log message

* Added additional logging for bot

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Filter for transaction that are contract calls

* Filter for transaction that are contract calls

* Log ops received from socket

* Corrected filter

* Added skeleton for batch updates

* Added batch update formatter showing volumes

* Assisting compiler

* Corrected json path in batch change

* Corrected html encoding for batch change

* Tidy up on logging

* Corrected object path for cleared message

* Added rate name into batch status message

* Corrected closing message detail

* Added filter on messages

* remove node_modules folder from repo by rewriting history (squash things from commit 706dd9 to 5c5816)

List of squashed commits:
Amended token update urls to include token addresses (#323)
Filtered out 0 vol status updates and added docker bot image builds
Corrected entrypoint commands for bot images
Added node_modules in sub dirs to gitignore
Merge branch 'main' of github.com:marigold-dev/batcher
Added mainnet and ghostnet docker files for telegram bot

* telegram bot for mainnet version (#333)

* pipelines: rework docker build process

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Release - Ghostnet (#312)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Release - Ghostnet (#315)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Release - Ghostnet (#316)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

---------

Co-authored-by: Cyril B <[email protected]>

* Release - Ghostnet (#318)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Mainnet (#314)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

* Fixed issue with token balances updating

---------

Co-authored-by: Cyril B <[email protected]>

* pipelines: patch deprecated set-output commands and actions [skip ci]

* telegram bot for ghostnet version (#332)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Mainnet (#314)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

* Release - Mainnet (#317)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Ghostnet (#312)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Ghostnet (#315)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with token balances updating

* Check for null user address on token update to reduce errors to the console

* Filtered out 204 responses from tzkt for volumes

* Updated About page

* Updated About page

* Added nix flake for project

* Added skeleton ts project

* Added initial skeleton for tg bot

* Added html formatting to rates messages

* Added raw operation socker sub

* Added deposit op to bot

* Corrected tick filter

* Corrected deposit format for TG bot

* Corrected deposit amount for TG bot

* Corrected deposit amount for TG bot

* Scaled amount for TG bot

* Added sedning of raw big map

* Corrected pair naming

* Corrected scaling from rates message

* Use all socket messages

* PArse non formated big maps to json

* Filtered user_batch_ordertypes from big_map updates

* Expanded log message

* Added additional logging for bot

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Filter for transaction that are contract calls

* Filter for transaction that are contract calls

* Log ops received from socket

* Corrected filter

* Added skeleton for batch updates

* Added batch update formatter showing volumes

* Assisting compiler

* Corrected json path in batch change

* Corrected html encoding for batch change

* Tidy up on logging

* Corrected object path for cleared message

* Added rate name into batch status message

* Corrected closing message detail

* Added filter on messages

* remove node_modules folder from repo by rewriting history (squash things from commit 706dd9 to 5c5816)

List of squashed commits:
Amended token update urls to include token addresses (#323)
Filtered out 0 vol status updates and added docker bot image builds
Corrected entrypoint commands for bot images
Added node_modules in sub dirs to gitignore
Merge branch 'main' of github.com:marigold-dev/batcher
Added mainnet and ghostnet docker files for telegram bot

---------

Co-authored-by: Jason Ridgway-Taylor <[email protected]>
Co-authored-by: Jason Ridgway-Taylor (~misfur-mondut) <[email protected]>

* pipelines: fix ci of bot notif

---------

Co-authored-by: Jason Ridgway-Taylor (~misfur-mondut) <[email protected]>
Co-authored-by: Jason Ridgway-Taylor <[email protected]>

* Corrected mainnet variables

* Corrections for batcher notifications bot (mainnet)  (#335)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Ghostnet (#312)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Ghostnet (#315)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

* Release - Ghostnet (#316)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with token balances updating

* Release - Ghostnet (#318)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Mainnet (#314)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

* Fixed issue with token balances updating

---------

Co-authored-by: Cyril B <[email protected]>

* Check for null user address on token update to reduce errors to the console

* Filtered out 204 responses from tzkt for volumes

* Updated About page

* Updated About page

* Added nix flake for project

* Added skeleton ts project

* Added initial skeleton for tg bot

* Added html formatting to rates messages

* Added raw operation socker sub

* Added deposit op to bot

* Corrected tick filter

* Corrected deposit format for TG bot

* Corrected deposit amount for TG bot

* Corrected deposit amount for TG bot

* Scaled amount for TG bot

* Added sedning of raw big map

* Corrected pair naming

* Corrected scaling from rates message

* Use all socket messages

* PArse non formated big maps to json

* Filtered user_batch_ordertypes from big_map updates

* Expanded log message

* Added additional logging for bot

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Filter for transaction that are contract calls

* Filter for transaction that are contract calls

* Log ops received from socket

* Corrected filter

* Added skeleton for batch updates

* Added batch update formatter showing volumes

* Assisting compiler

* Corrected json path in batch change

* Corrected html encoding for batch change

* Tidy up on logging

* Corrected object path for cleared message

* Added rate name into batch status message

* Corrected closing message detail

* Added filter on messages

* pipelines: patch deprecated set-output commands and actions [skip ci]

* remove node_modules folder from repo by rewriting history (squash things from commit 706dd9 to 5c5816)

List of squashed commits:
Amended token update urls to include token addresses (#323)
Filtered out 0 vol status updates and added docker bot image builds
Corrected entrypoint commands for bot images
Added node_modules in sub dirs to gitignore
Merge branch 'main' of github.com:marigold-dev/batcher
Added mainnet and ghostnet docker files for telegram bot

* telegram bot for ghostnet version (#332)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Mainnet (#314)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

* Release - Mainnet (#317)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Ghostnet (#312)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

* Release - Ghostnet (#315)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Mainnet - Release (#308)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Mainnet (#311)

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

* Release - Mainnet (#313)

* pipelines: rework docker build process

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Ghostnet - Release (#307)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

---------

Co-authored-by: Cyril B <[email protected]>

* Corrected Network type and mainnet token hash

* Release to Ghostnet (#310)

* Added mainnet admin and oracle address

* Correct mainnet build

* Pointed to mainnet contract

* Corrected UI error code parsing

* pipelines: rework docker build process

* pipelines: rework docker build process

* Corrected pair name on mainnet and admin address on both nets

* Added new mainnet contract hash

* pipelines: commit to trigger cicd

* pipelines: commit to trigger cicd (#306)

* Added michelson files to repo for both mainnet and ghostnet

* Added metadata file

* Fixed issue with wallet disconnecting

* Correctly assigned wallet after reload

* Corrected open and closed holdings

* Corrected Network type and mainnet token hash

---------

Co-authored-by: Cyril B <[email protected]>

* Clear active account on disconnect

---------

Co-authored-by: Cyril B <[email protected]>

* Added interim connecting captions for wallet loading

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with button showing connecting

* Fixed NaN issue in Holdings tab

---------

Co-authored-by: Cyril B <[email protected]>

* Fixed issue with token balances updating

* Check for null user address on token update to reduce errors to the console

* Filtered out 204 responses from tzkt for volumes

* Updated About page

* Updated About page

* Added nix flake for project

* Added skeleton ts project

* Added initial skeleton for tg bot

* Added html formatting to rates messages

* Added raw operation socker sub

* Added deposit op to bot

* Corrected tick filter

* Corrected deposit format for TG bot

* Corrected deposit amount for TG bot

* Corrected deposit amount for TG bot

* Scaled amount for TG bot

* Added sedning of raw big map

* Corrected pair naming

* Corrected scaling from rates message

* Use all socket messages

* PArse non formated big maps to json

* Filtered user_batch_ordertypes from big_map updates

* Expanded log message

* Added additional logging for bot

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Changed filters on socket messages

* Filter for transaction that are contract calls

* Filter for transaction that are contract calls

* Log ops received from socket

* Corrected filter

* Added skeleton for batch updates

* Added batch update formatter showing volumes

* Assisting compiler

* Corrected json path in batch change

* Corrected html encoding for batch change

* Tidy up on logging

* Corrected object path for cleared message

* Add…
  • Loading branch information
8 people authored Nov 14, 2023
1 parent a250476 commit 00ae6a2
Show file tree
Hide file tree
Showing 36 changed files with 918 additions and 258 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.tick.beta.ghostnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ WORKDIR /etc/run

COPY ./tick.sh /etc/run/

CMD [ "/etc/run/tick.sh", "-b", "KT1GSDzo6PU8i732m8WuY9XcTyxiGRaYBsv2", "-m", "KT1T4dbnaNKpGLV89R6drrupy5HVE74bQE3r", "-f", "150" ]
CMD [ "/etc/run/tick.sh", "-b", "KT1Lh5Wkf2dtgNR23DnrdGcG4igfXUc9HQFW", "-m", "KT1VpMZjKtPa2oEdD2tQJiV7Mj3r4xY4QKFQ", "-f", "150" ]

456 changes: 438 additions & 18 deletions batcher-ui/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions batcher-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@taquito/tzip12": "^17.3.0",
"@taquito/tzip16": "^17.3.0",
"@types/react-redux": "^7.1.25",
"@tzkt/sdk-api": "^2.2.1",
"date-fns": "^2.29.3",
"fp-ts": "^2.16.0",
"next": "^13.4.10",
Expand Down
14 changes: 7 additions & 7 deletions batcher-ui/src/actions/events.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import type { BigMapEvent } from '@/types';
import type { BigMapEvent, Token } from '@/types';

export const newEvent = (event: BigMapEvent) =>
export const newEvent = (event: BigMapEvent, tokens: Map<string, Token>) =>
({
type: 'NEW_EVENT',
payload: { event },
} as const);
payload: { event, tokens },
}) as const;

export const closeToast = () =>
({
type: 'CLOSE_TOAST',
} as const);
}) as const;

export const newError = (errorContent: string) =>
({
type: 'NEW_ERROR',
payload: { errorContent },
} as const);
}) as const;

export const newInfo = (infoContent: string) =>
({
type: 'NEW_INFO',
payload: { infoContent },
} as const);
}) as const;

export type EventActions =
| ReturnType<typeof newEvent>
Expand Down
52 changes: 29 additions & 23 deletions batcher-ui/src/actions/exchange.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { BatcherStatus, CurrentSwap, PriceStrategy } from '@/types';
import { BatcherStatus, CurrentSwap, PriceStrategy, Token } from '@/types';

export const updatePriceStrategy = (priceStrategy: PriceStrategy) =>
({
type: 'UDPATE_PRICE_STATEGY',
payload: { priceStrategy },
} as const);
}) as const;

export const reverseSwap = () =>
({
type: 'REVERSE_SWAP',
} as const);
}) as const;

export const changePair = (pair: string, isReverse: boolean) =>
({
type: 'CHANGE_PAIR',
payload: { pair, isReverse },
} as const);
}) as const;

export const getPairsInfos = (pair: string) =>
({
type: 'GET_PAIR_INFOS',
payload: { pair },
} as const);
}) as const;

export const updatePairsInfos = ({
currentSwap,
Expand All @@ -33,12 +33,12 @@ export const updatePairsInfos = ({
({
type: 'UPDATE_PAIR_INFOS',
payload: { currentSwap, pair },
} as const);
}) as const;

export const getBatcherStatus = () =>
({
type: 'GET_BATCHER_STATUS',
} as const);
}) as const;

export const updateBatcherStatus = ({
status,
Expand All @@ -52,67 +52,72 @@ export const updateBatcherStatus = ({
({
type: 'UDPATE_BATCHER_STATUS',
payload: { status, at, startTime },
} as const);
}) as const;

export const updateRemainingTime = () =>
({
type: 'UPDATE_REMAINING_TIME',
} as const);
}) as const;

export const getCurrentBatchNumber = () =>
({
type: 'GET_CURRENT_BATCHER_NUMBER',
} as const);
}) as const;

export const updateBatchNumber = (batchNumber: number) =>
({
type: 'UDPATE_BATCH_NUMBER',
payload: { batchNumber },
} as const);
}) as const;

export const batcherSetup = () =>
({
type: 'BATCHER_SETUP',
} as const);
}) as const;

export const batcherTimerId = (timerId: number) =>
({
type: 'BATCHER_TIMER_ID',
payload: { timerId },
} as const);
}) as const;

export const batcherUnsetup = () =>
({
type: 'BATCHER_UNSETUP',
} as const);
}) as const;

export const getOraclePrice = () =>
({
type: 'GET_ORACLE_PRICE',
} as const);
}) as const;

export const updateOraclePrice = (oraclePrice: number) =>
({
type: 'UPDATE_ORACLE_PRICE',
payload: { oraclePrice },
} as const);
}) as const;

export const getVolumes = () =>
({
type: 'GET_VOLUMES',
} as const);
}) as const;

export const updateVolumes = (volumes: unknown) =>
({
type: 'UPDATE_VOLUMES',
payload: { volumes },
} as const);
}) as const;

export const noBatchError = (errorMessage: string) =>
export const updateTokens = (tokens: Map<string, Token>) =>
({
type: 'NO_BATCH_ERROR',
payload: { errorMessage },
} as const);
type: 'UPDATE_TOKENS',
payload: { tokens },
}) as const;

export const getTokens = () =>
({
type: 'GET_TOKENS',
}) as const;

export type ExchangeActions =
| ReturnType<typeof updatePriceStrategy>
Expand All @@ -132,4 +137,5 @@ export type ExchangeActions =
| ReturnType<typeof updateOraclePrice>
| ReturnType<typeof getVolumes>
| ReturnType<typeof updateVolumes>
| ReturnType<typeof noBatchError>;
| ReturnType<typeof getTokens>
| ReturnType<typeof updateTokens>;
15 changes: 9 additions & 6 deletions batcher-ui/src/actions/holdings.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
import { HoldingsState } from '@/types';
import { HoldingsState, Token } from '@/types';

export const redeem = () =>
({
type: 'REDEEM',
} as const);
}) as const;

export const updateHoldings = (holdings: HoldingsState) =>
({
type: 'UPDATE_HOLDINGS',
payload: { holdings },
} as const);
}) as const;

export const getHoldings = (userAddress: string | undefined) =>
export const getHoldings = (
userAddress: string | undefined,
tokens: Map<string, Token>
) =>
({
type: 'GET_HOLDINGS',
payload: { userAddress },
} as const);
payload: { userAddress, tokens },
}) as const;

export type HoldingsActions =
| ReturnType<typeof redeem>
Expand Down
2 changes: 0 additions & 2 deletions batcher-ui/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ import { EventActions } from './events';
import { HoldingsActions } from './holdings';
import { MarketHoldingsActions } from './marketholdings';


export * from './wallet';
export * from './exchange';
export * from './events';
export * from './holdings';
export * from './marketholdings';


export type Actions =
| WalletActions
| ExchangeActions
Expand Down
23 changes: 16 additions & 7 deletions batcher-ui/src/commands/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ import type {
OrderBookBigmap,
RatesCurrentBigmap,
BigMapEvent,
Token,
} from '@/types';
import {
computeAllHoldings,
computeOraclePrice,
mapStatus,
toVolumes,
ensureMapTypeOnTokens,
} from '@/utils/utils';

export const newEventCmd = (event: BigMapEvent) => {
export const newEventCmd = (event: BigMapEvent, toks: Map<string, Token>) => {
const tokens = ensureMapTypeOnTokens(toks);
return Cmd.run(
(dispatch, getState) => {
return event.data.map(async eventData => {
Expand All @@ -30,14 +33,17 @@ export const newEventCmd = (event: BigMapEvent) => {
case 'batch_set.batches': {
const data = eventData.content.value as BatchBigmap;
const status = mapStatus(data);
//const toks = Object.values(tokens)[0];
const buyToken = tokens.get(data.pair.string_0);
const sellToken = tokens.get(data.pair.string_1);
//! new batch
dispatch(updateBatchNumber(parseInt(data.batch_number)));
dispatch(updateBatcherStatus(status));
dispatch(
updateVolumes(
toVolumes(data.volumes, {
buyDecimals: parseInt(data.pair.decimals_1, 10),
sellDecimals: parseInt(data.pair.decimals_0, 10),
buyDecimals: buyToken?.decimals || 0,
sellDecimals: sellToken?.decimals || 0,
})
)
);
Expand All @@ -49,7 +55,7 @@ export const newEventCmd = (event: BigMapEvent) => {
const userAddress = userAddressSelector(getState());
//! user addresses are keys of this bigmap so we need to ensure that the key is the user address
if (userAddress === eventData.content.key) {
const holdings = await computeAllHoldings(data);
const holdings = await computeAllHoldings(data, tokens);
dispatch(updateHoldings(holdings));
}
return Promise.resolve();
Expand All @@ -64,6 +70,7 @@ export const newEventCmd = (event: BigMapEvent) => {
case 'rates_current': {
//! oracle price has changed
const data = eventData.content.value as RatesCurrentBigmap;
console.info('Oracle change', data);
dispatch(
updateOraclePrice(
computeOraclePrice(data.rate, {
Expand All @@ -78,12 +85,14 @@ export const newEventCmd = (event: BigMapEvent) => {
//! batch status has changed
const data = eventData.content.value as BatchBigmap;
const status = mapStatus(data);
const buyToken = tokens.get(data.pair.string_0);
const sellToken = tokens.get(data.pair.string_1);
dispatch(updateBatcherStatus(status));
dispatch(
updateVolumes(
toVolumes(data.volumes, {
buyDecimals: parseInt(data.pair.decimals_1, 10),
sellDecimals: parseInt(data.pair.decimals_0, 10),
buyDecimals: buyToken?.decimals || 0,
sellDecimals: sellToken?.decimals || 0,
})
)
);
Expand All @@ -95,7 +104,7 @@ export const newEventCmd = (event: BigMapEvent) => {
const userAddress = userAddressSelector(getState());
//! user addresses are keys of this bigmap so we need to ensure that the key is the user address
if (userAddress === eventData.content.key) {
const holdings = await computeAllHoldings(data);
const holdings = await computeAllHoldings(data, tokens);
dispatch(updateHoldings(holdings));
}
return Promise.resolve();
Expand Down
26 changes: 21 additions & 5 deletions batcher-ui/src/commands/exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
getCurrentRates,
getVolumes,
getTimeDifferenceInMs,
getTokens,
} from '@/utils/utils';
import { getPairsInformation } from '@/utils/token-manager';
import {
Expand All @@ -16,10 +17,10 @@ import {
updateVolumes,
batcherTimerId,
updateRemainingTime,
noBatchError,
newError,
updateTokens,
} from '@/actions';
import { BatcherStatus, CurrentSwap, SwapNames } from '@/types';
import { BatcherStatus, CurrentSwap, SwapNames, Token } from '@/types';

const fetchPairInfosCmd = (pair: string) =>
Cmd.run(
Expand All @@ -40,7 +41,7 @@ const fetchCurrentBatchNumberCmd = (pair: SwapNames) =>
},
{
successActionCreator: updateBatchNumber,
failActionCreator: (e: string) => noBatchError(e),
//failActionCreator: (e: string) => noBatchError(e),
}
);

Expand Down Expand Up @@ -94,10 +95,10 @@ const fetchOraclePriceCmd = (tokenPair: string, { swap }: CurrentSwap) => {
);
};

const fetchVolumesCmd = (batchNumber: number) => {
const fetchVolumesCmd = (batchNumber: number, tokens: Map<string, Token>) => {
return Cmd.run(
() => {
return getVolumes(batchNumber);
return getVolumes(batchNumber, tokens);
},
{
successActionCreator: updateVolumes,
Expand All @@ -106,11 +107,26 @@ const fetchVolumesCmd = (batchNumber: number) => {
);
};

const fetchTokensCmd = () => {
return Cmd.run(
async () => {
const tokens = await getTokens();
const mapped: Map<string, Token> = ((tokens as unknown) as Map<string, Token>);
console.info('Mapped tokens', mapped);
return mapped;
},
{
successActionCreator: updateTokens,
failActionCreator: (e: string) => newError(e),
}
);
};
export {
fetchPairInfosCmd,
fetchCurrentBatchNumberCmd,
fetchBatcherStatusCmd,
setupBatcherCmd,
fetchOraclePriceCmd,
fetchVolumesCmd,
fetchTokensCmd,
};
Loading

0 comments on commit 00ae6a2

Please sign in to comment.