Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Near testnet integration #714

Open
2 of 4 tasks
duyphanz opened this issue Sep 14, 2022 · 0 comments
Open
2 of 4 tasks

Near testnet integration #714

duyphanz opened this issue Sep 14, 2022 · 0 comments
Assignees
Labels
front-end wip Work in progress

Comments

@duyphanz
Copy link
Collaborator

duyphanz commented Sep 14, 2022

ref: https://github.com/icon-project/icon-bridge/pull/502/files

  • Transfer 10 ICX from ICON to NEAR
  • Transfer 10 ICX from NEAR to ICON
  • Transfer 10 NEAR from NEAR to ICON
  • Transfer X amount NEAR from ICON to NEAR
@duyphanz duyphanz added front-end wip Work in progress labels Sep 14, 2022
@duyphanz duyphanz self-assigned this Sep 14, 2022
duyphanz added a commit that referenced this issue Sep 30, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
* feat: revert near config

* feat: connect to near wallet

* fix: show profile detail

* feat: initialize near contract

* feat: add near function call

* fix: add near explore url

* feat: add disabled property for chain

* refactor: suffix explore for chains

* refactor: set custom network

* refactor: format symbol function

* feat: allow disable a wallet

* feat: get ICON BST address for each chain

* fix: get fee for each chain

* fix: ignore disbled network

* refactor: handle near callback url

* feat: transfer near to icon

* feat: transfer icx

* feat: show locked balance

* feat: get usable balance

* feat: get icx balance

* fix: near gas

* fix: convert near balance

* fix: token decimals

* fix: update locked balance

* refactor: specific decimal for each chain

* refactor: notification modal

* fix: near network name

* fixL some test cases

Co-authored-by: Duy Phan <duyphan@orgos.net>
duyphanz added a commit that referenced this issue Sep 30, 2022
* feat: revert near config

* feat: connect to near wallet

* fix: show profile detail

* feat: initialize near contract

* feat: add near function call

* fix: add near explore url

* feat: add disabled property for chain

* refactor: suffix explore for chains

* refactor: set custom network

* refactor: format symbol function

* feat: allow disable a wallet

* feat: get ICON BST address for each chain

* fix: get fee for each chain

* fix: ignore disbled network

* refactor: handle near callback url

* feat: transfer near to icon

* feat: transfer icx

* feat: show locked balance

* feat: get usable balance

* feat: get icx balance

* fix: near gas

* fix: convert near balance

* fix: token decimals

* fix: update locked balance

* refactor: specific decimal for each chain

* refactor: notification modal

* fix: near network name

* fixL some test cases

Co-authored-by: Duy Phan <duyphan@orgos.net>
sanglt1902 added a commit that referenced this issue Sep 30, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Integrate with near protocal
Co-authored-by: duongvonga2 <35133731+duongvonga2@users.noreply.github.com>
duyphanz pushed a commit that referenced this issue Oct 17, 2022
sanglt1902 added a commit that referenced this issue Oct 17, 2022

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
* fix(transactions): fix failed at first transaction (#192)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* fix(relays): update logic calculate for  reward changed 30 days ago (#194)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* feat(ci/cd): update deployment ci cd script

* chore: test sample ERC1155 contract on Moonbeam (#189)

* docs: deploy testnet of ICON and Moonbeam (#202)

* Get list tokens registered icon network (#211)

* Get list tokens registered icon network

* update initial database

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* Get list token registered moonbeam network (#210)

* get list token registered moonbeam network

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* feat: add background task to update token conversion rate from CMC (#226)

* update moonbeam rpc privider url to .env.example (#214)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* fix: allow remote access to Sidecar and add timestamp to PM2 logs (#224)

* Refactor/#168 Percent 24h change base on tokens (#193)

* update percent change 24h base on tokens

* update query get last tokens

* update coding convention

Co-authored-by: �Nhut Dang <nhinguyen@nhutdang.local>

* chore: deploy first testnet ICON-Moonbeam (#232)

* refactor: read Moonbeam contract events from evm.Log events (#242)

* fix: get Moonbeam head block by RPC call (#233)

* Feat/#225 sava burn value on ICON network (#221)

Co-authored-by: Nhi Nguyễn <nhinguyen@nhutdang.local>

* feat: handle transferring transactions on both ICON and Moonbeam (#224)

* Feat/#225 Get mint/burn event from ICON network (#239)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* fix: transaction history response correct transaction list with filter (#260)

* fix: correct invalid values, invalid data size of transaction fields (#262)

* fix: transaction total volume is not calc. correctly, fix volumeLast24h query (#263)

* Feat/#222 get mint/burn value from MOONBEAM network (#251)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* fix: add transaction end info, remove block hash (#264)

* refactor(relay): refactor relay module (#253)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* fix(btpnetwork): fix bug of get bonded relay

* refactor: add transaction detail error (#269)

* refactor(relay-candidates): refactor relay candidate module

* Feat/#219 get total bonded icx of relay (#260)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* Feat/#33 Optimize get bond value from db (#266)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* refactor: update RC reward database, total monthly reward, reward change in last 30 days (#37)

* Refactor/#219 update re-name table relayers to bonded-icx (#267)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* update mintFee/burnFee value as total mint value and total burn value (#268)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* feat(relay): add handler for action add and remove relay on moonbeam

* feat(relayer): add blockindexer to handle relay and update api get relayers (#275)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* Update to get correct field networkNameDst (#277)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* fix(relayer): wrong condition to update relay

* feat(relayer): add logic to store total transaction via relay (#289)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* test: add sample contract for testing BSC events (#294)

* Refactor/#225 update unit test for mint/burn event ICON (#297)

Co-authored-by: Nhi Nguyễn <nhinguyen@nhutdang.local>

* feat: add BSC block indexer (#280)

* Refactor/#281 Unit test for TransferStart TransferEnd events MOONBEAM (#293)

Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>

* fix: tx handlers should check and skip null receipt (#280)

* refactor: refactoring database (#282)

* refactor: updated database scripts (#282)

* refactor: indexers do not save raw block data, keep stats only (#315)

* feat: add indexer stats in /btpnetwork API (#328)

* chore: add test step to CI (#321)

* chore: deploy testnet goloop2moonbeam icondao (#339)

* fix: transactions not indexed on Moonbeam (#345)

* fix: naming contract variables consistently (#343)

* feat: get transaction detail by hash (#322)

* fix: empty network detail due to hard coded network ID (#355, #324)

* chore: update Postgres container configuration (#364)

* feat(btpnetwork): remove redundant function (#369)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* feat(relayer): fix bug lacking table name on query (#370)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* refactor(mint-burn): refactor duplicated code (#378)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* chore: setup bsc testnet (#308)

building containers, test.

* chore: update to work with BSC testnet (#371)

* fix: check token transfer against registered token contracts (#385)

* refactor: disable auction and fee features (#383)

* fix: check to only register native coin (#379)

* test: add tests for /btpnetwork APIs (#332)

* test(block-indexer): add missing test case for relay, relayer, transaction (#397)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* fix: get mint/burn events (#346)

* feat: handle IRC2 token register on ICON (#395)

Close #395

* refactor: add initial data for native coins (#395)

* test: add networks API tests (#332)

* feat: indexing BSC transactions

- add transaction block_hash and block_hash_end for Moonbeam
- add transfer token scripts, test mint/burn/tx for 4 tx types (ICON and Moonbeam)

Ref: #312

* fix: indexing relay and count tx on Moonbeam (#398)

* refactor(mint-burn): refactor duplicated code (#411)

Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>

* feat: add BSC mint/burn indexer (#311)

- not tested with live testnet
- refactor mint/burn on other networks

* refactor: update ABI file names following deployment scripts (#416)

* fix: invalid value of volumeLast24hChange, volume, mintVolumeLast24hChange in /btpnetwork (#416)

* refactor: add block-indexer and fix finding token (#416)

* add block-indexer
* preload registered tokens and find token in db

* docs: testing BSC deployment and transferring (#382)

Ref #382

* fix: duplicate TransferStart's serial number (#427)

Close #426

* feat: index registered relay on BSC (#309)

addRelay and removeRelay actions of BMC

* fix: Moonbeam mint/burn event (TransferSingle) is not always in events[0] (#416)

* fix: upgraded to icon-sdk-js v1.1.2 to fix compatibility issues with public testnet (#437)

* fix: get correct token ID from TransferBatch event on ICON (#428)

* fix: handle Invalid params txHash error (#438)

* fix(scripts): fix script for creating ICON network init data

* refactor: replace Sidecar with Web3 for Moonbeam indexer (#442)

- remove sidecar
- work with btp.net

* docs: add deployment guide for staging environment (#416)

* fix: wrong data from api network/:id (#464)

* fix: replace getting tokens from contract with from token_info table (#402)

* refactor: update relay indexing for ICON and Moonbeam (#406)

* refactor: handle and log more for block and pending transaction issues (#473)

* refactor: integrate with local testnet

- fix several transaction issues
- add transfer script
- update deployment guide

Ref: #312

* feat: handle mint/burn events on BSC, Moonbeam with Web3 handler (#311)

* docs: add guideline to get reward data from BMC (#307)

* refactor: index relayer register/unregister with BMC (#488)

* feat: get reward data from ICON BMC (#307)

* refactor: update relay-candidates api (#490)

* feat: add test case for transaction api (#439)

* test: add some test cases for relay-candidates api (#445)

* test: add test cases for relay api (#440)

* feat: create NEAR block indexer (#494)

* refactor: running indexers in separate processes and own log files (#494)

* fix: logger is not properly initialized for separate log files (#494)

* refactor: update database design (#380)

- Remove id, add tx_hash as PK for tables
- Rename token_info to registered_tokens
- Remove tx.blockHash, tx.blockHashEnd

* fix: fixing miscellaneous issues for staging deployment

- initial script and database schema
- cron jobs
- API

* fix: mismatch timezone between apps and database configuration (#493)

* refactor: use tx_hash as PK in mint/burn tables (#380)

* test: fix failed test cases in of transaction, mint/burn, relay.

* test: add .env configuration for API integration test (#495)

* refactor: update deployment docs and scripts, and Moonbeam mint/burn logs (#416)
- bump v0.1.8

* fix: fix duplicated Moonbeam burn event

- fix in Web3 mint/burn
- add logId for mint/burn tx

Ref: #521

* refactor: implement Web3 transaction handler for Ethereum based networks (#518)

* docs: test relays, transactions for Berlin testnet (#416)

* feat: add mint/burn for IRC2 contracts, from TransferBatch to Transfer event

- note: changes are based on IRC2 contract was implemented following https://github.com/icon-project/IIPs/blob/master/IIPS/iip-2.md

Close #526

* feat: handle mint/burn and transaction with ERC20 contracts (#529)

* refactor: handle ICON pending blocks and transactions (#416)

* refactor: check result of only tx sent to watched contracts (#416)

* chore: bump to v0.2.2

* refactor: handle token register with ERC20 factory (#538)

* refactor: update handling events and database following changes in contracts with ERC20 factory (#536)

* bump to v0.2.3

* refactor: fix bug eslint (#545)

* refactor: update block indexer to adapt with bsc network

* refactor: remove moonbeam-indexer module (#550)

* refactor: update interval timer for block indexer

* refactor: move cronjob tasks into sourcecode #552

* feat: add harmony chain

* refactor: remove unnecessary config

* feat: add filter by create_at field in get transaction api #557

* refactor: migrate database queries #556

* feat: add transaction handler for wonderland nft #562

* feat: add slack notification #563

* feat: update buy tokens event

* refactor: push transaction's log to slack #566 (#567)

* refactor: push transaction's log to slack #566
Co-authored-by: Sang Lai <sanglt.cdn@gmail.com>

* refactor: source code to adapt to multiple icon bmc

* refactor: remove redundant files

* refactor: prevent request from client that cannot get ip #566

* refactor: update query createtransaction_ips table #566

* Revert "refactor: remove redundant files"

This reverts commit 7b63fec.

* fix: push transaction to slack #580

* feat: check block-indexer can not get new block #583

* refactor: be-dev remove redundant files (#579)

* refactor: remove redundant files

Co-authored-by: Sang Lai <sanglt.cdn@gmail.com>

* refactor: be-dev remove redundant files (#579)

* refactor: remove redundant files

Co-authored-by: Sang Lai <sanglt.cdn@gmail.com>

* docs: add slack command for checking block-indexer's status

* refactor: remove SLACK_COMMAND_API_KEY

* refactor block-indexer's health check api

* refactor: change indexer status message

* refactor: change indexer status message

* docs: btp-architecture

* feat: update buy token event for wonderland presale

* docs: add architecture image to readme file

* fix: transaction api

* fix: send straction to slack

* fix: slack notification

* refactor: remove redundant files

* test: update block-indexer's test case

* test: add token for testing

* feat:adding filter for transaction api (#655)

adding filter for transaction api

* fix:wrong 24h volume value (#688)

* feat: update logic handle token name

* network

optimize api get network information

* network - optimize api get network information

* network - move function getDataFromTable to common queries

* network - get network information - add ONE_DAY_IN_MILLISECONDS constant

* Optimize api get network information, from 2-5 seconds to 200-500 milliseconds (#719)


optimize API to get network information

Co-authored-by: Vọng Dương <vongduong@duongvongcse.local>

* Task/optimize network api (#725)

* network - optimize API get network information

Co-authored-by: Vọng Dương <vongduong@duongvongcse.local>

* fix: get network information find transaction with status equal 1

* docs: update doc to guide add a new network of EVM

* feat(#714): integrate with near protocal (#721)

Integrate with near protocal
Co-authored-by: duongvonga2 <35133731+duongvonga2@users.noreply.github.com>

* "resolve conflict"

* resolve conflict

* feat: update logic to register token

* feat: revert eslint file

Co-authored-by: Tien Do <tiendq@gmail.com>
Co-authored-by: Sang Lai <Corgi@Sangs-MacBook-Pro.local>
Co-authored-by: dangminhnhut1993 <dangminhnhut1993@gmail.com>
Co-authored-by: Nhut Dang <nhinguyen@nhutdang.local>
Co-authored-by: Dan <dantn93@gmail.com>
Co-authored-by: Vọng Dương <vongduong@duongvongcse.local>
Co-authored-by: duongvonga2 <35133731+duongvonga2@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
front-end wip Work in progress
Projects
None yet
Development

No branches or pull requests

1 participant