Skip to content

Commit

Permalink
Repoint to new Batcher beta Ghonest contract (#414)
Browse files Browse the repository at this point in the history
* 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

* Added rate name into batch sta…
  • Loading branch information
8 people committed Nov 10, 2023
1 parent f644300 commit a250476
Show file tree
Hide file tree
Showing 12 changed files with 1,993 additions and 1,780 deletions.
16 changes: 16 additions & 0 deletions Dockerfile.tick.beta.ghostnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM oxheadalpha/flextesa:latest

RUN apk update && \
apk add bash && \
apk add curl && \
apk add jq

RUN octez-client --endpoint https://ghostnet.tezos.marigold.dev config update && \
octez-client import secret key oracle_account unencrypted:edskRzJUQ1xqCPkVXzT8EiUXjcCsXXkhpiHWE19fAV2JmqW68T6nVoXVPJyx99mjJzUa98NEeGr3kLcEh6NQGcpFKj7BoPRd88 --force

WORKDIR /etc/run

COPY ./tick.sh /etc/run/

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

2 changes: 2 additions & 0 deletions batcher-ui/src/config/contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const ghostnet = {
EURL_vault: 'KT1Gy8BPpJdAR6ZwgBaVeXrMW2pyX2NL8LSp',
};



const mainnet = {
batcher: 'KT1CoTu4CXcWoVk69Ukbgwx2iDK7ZA4FMSpJ',
market_maker: 'KT1TNX1YLCmPJN4rbwAUsUAdnqVYrZ5X5YNB',
Expand Down
53 changes: 39 additions & 14 deletions batcher/batcher.mligo
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module Storage = struct
limit_on_tokens_or_pairs : nat;
liquidity_injection_limit_in_seconds : nat;
deposit_time_window_in_seconds : nat;
tick_errors: TickErrors.t;
}

end
Expand Down Expand Up @@ -799,12 +800,15 @@ end
type storage = Storage.t
type result = operation list * storage




[@inline]
let no_op (s : storage) : result = (([] : operation list), s)

type entrypoint =
| Deposit of external_swap_order
| Tick of string
| Tick
| Redeem
| Cancel of pair
| Change_fee of tez
Expand Down Expand Up @@ -967,8 +971,14 @@ let confirm_oracle_price_is_available_before_deposit
if Batch_Utils.is_batch_open batch then () else
let pair_name = get_rate_name_from_pair pair in
let valid_swap_reduced = get_valid_swap_reduced pair_name storage in
let (lastupdated, _price) = OracleUtils.get_oracle_price oracle_price_should_be_available_before_deposit valid_swap_reduced in
OracleUtils.oracle_price_is_not_stale storage.deposit_time_window_in_seconds lastupdated
let (lastupdated_opt, tes) = OracleUtils.get_oracle_price pair_name oracle_price_should_be_available_before_deposit valid_swap_reduced storage.tick_errors in
let ou = match lastupdated_opt with
| Some pu -> pu
| None -> failwith oracle_price_should_be_available_before_deposit
in
let lastupdated, _p = ou in
let succeeded, _tes = OracleUtils.oracle_price_is_not_stale pair_name storage.deposit_time_window_in_seconds lastupdated tes in
if succeeded then () else failwith oracle_price_is_stale

[@inline]
let confirm_swap_pair_is_disabled_prior_to_removal
Expand Down Expand Up @@ -1043,9 +1053,16 @@ let tick_price
(valid_swap : valid_swap)
(storage : storage) : storage =
let valid_swap_reduced = valid_swap_to_valid_swap_reduced valid_swap in
let (lastupdated, price) = OracleUtils.get_oracle_price unable_to_get_price_from_oracle valid_swap_reduced in
let () = OracleUtils.is_oracle_price_newer_than_current rate_name lastupdated storage.rates_current in
let () = OracleUtils.oracle_price_is_not_stale storage.deposit_time_window_in_seconds lastupdated in
let (lastupdated_opt, tes) = OracleUtils.get_oracle_price rate_name unable_to_get_price_from_oracle valid_swap_reduced storage.tick_errors in
let storage = {storage with tick_errors = tes; } in
if Option.is_none lastupdated_opt then storage else
let lastupdated, price = Option.unopt lastupdated_opt in
let succeeded,tes = OracleUtils.is_oracle_price_newer_than_current rate_name lastupdated storage.rates_current tes in
let storage = {storage with tick_errors = tes; } in
if not succeeded then storage else
let succeeded, tes = OracleUtils.oracle_price_is_not_stale rate_name storage.deposit_time_window_in_seconds lastupdated tes in
let storage = {storage with tick_errors = tes; } in
if not succeeded then storage else
let valid_tokens = TokenManagerUtils.get_valid_tokens storage.tokenmanager in
let oracle_rate = OracleUtils.convert_oracle_price valid_swap.oracle_precision valid_swap.swap lastupdated price valid_tokens in
let rates_current = update_current_rate (rate_name) (oracle_rate) (storage.rates_current) in
Expand All @@ -1062,17 +1079,25 @@ let tick_price


[@inline]
let tick
let tick_rate
(rate_name: string)
(vswpr: valid_swap_reduced)
(valid_tokens: ValidTokens.t_map)
(storage : storage) : storage =
let vswp = valid_swap_reduced_to_valid_swap vswpr 1n valid_tokens in
tick_price rate_name vswp storage


[@inline]
let tick
(storage : storage) : result =
let () = reject_if_tez_supplied () in
let valid_swaps = TokenManagerUtils.get_valid_swaps storage.tokenmanager in
match Map.find_opt rate_name valid_swaps with
| Some vswpr -> let valid_tokens = TokenManagerUtils.get_valid_tokens storage.tokenmanager in
let vswp = valid_swap_reduced_to_valid_swap vswpr 1n valid_tokens in
let storage = tick_price rate_name vswp storage in
no_op (storage)
| None -> failwith swap_does_not_exist
let valid_tokens = TokenManagerUtils.get_valid_tokens storage.tokenmanager in
let tick_all_rates (stor,(p,vsr):( storage * (string * valid_swap_reduced))) : storage = tick_rate p vsr valid_tokens stor
in
let storage = Map.fold tick_all_rates valid_swaps storage in
no_op storage

[@inline]
let change_fee
Expand Down Expand Up @@ -1219,7 +1244,7 @@ let main
| Redeem -> redeem storage
| Cancel pair -> cancel pair storage
(* Maintenance endpoint *)
| Tick r -> tick r storage
| Tick -> tick storage
(* Admin endpoints *)
| Change_fee new_fee -> change_fee new_fee storage
| Change_liquidity_injection_time_limit new_time_limit -> change_liquidity_injection_limit_in_seconds new_time_limit storage
Expand Down
34 changes: 18 additions & 16 deletions batcher/marketmaker.mligo
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,27 @@ let execute_liquidity_request
(opposing_volume: nat)
(vault_address:address)
(valid_tokens:ValidTokens.t_map)
(valid_swaps:ValidSwaps.t_map) : operation =
(valid_swaps:ValidSwaps.t_map): operation =
let pair_name = find_lexicographical_pair_name lt.name ot.name in
match Map.find_opt pair_name valid_swaps with
| None -> failwith swap_does_not_exist
| Some vs -> let (lastupdated, price) = OracleUtils.get_oracle_price unable_to_get_price_from_oracle vs in
let swap:swap = swap_reduced_to_swap vs.swap 1n valid_tokens in
let oracle_rate = OracleUtils.convert_oracle_price vs.oracle_precision swap lastupdated price valid_tokens in
let (side,vol_req) = if lt.name = vs.swap.to then
(Sell,get_inverse_volume oracle_rate opposing_volume)
else
(Buy,get_volume oracle_rate opposing_volume)
in
let req = {
side = side;
from_token = lt;
to_token = ot;
amount = vol_req;
} in
send_liquidity_injection_request req vault_address
| Some vs -> let (lastupdated_opt, _tes) = OracleUtils.get_oracle_price pair_name unable_to_get_price_from_oracle vs (Big_map.empty: TickErrors.t) in
(match lastupdated_opt with
| None -> failwith unable_to_get_price_from_oracle
| Some (lastupdated, price) -> let swap:swap = swap_reduced_to_swap vs.swap 1n valid_tokens in
let oracle_rate = OracleUtils.convert_oracle_price vs.oracle_precision swap lastupdated price valid_tokens in
let (side,vol_req) = if lt.name = vs.swap.to then
(Sell,get_inverse_volume oracle_rate opposing_volume)
else
(Buy,get_volume oracle_rate opposing_volume)
in
let req = {
side = side;
from_token = lt;
to_token = ot;
amount = vol_req;
} in
send_liquidity_injection_request req vault_address)


[@inline]
Expand Down
Loading

0 comments on commit a250476

Please sign in to comment.