synapseweb3 / forcerelay

Apache License 2.0
10 stars 8 forks source link

feat: apply sUDT feature into packet test for Ckb Endpoints #324

Closed ashuralyk closed 1 year ago

ashuralyk commented 1 year ago

Closes: #XXX

Description

previous packet test of ckb only use ping and pong as relay message and acknowledgement, for the further test with axon, this packet test should upgrade to adapt sUDT feature, to implement it, change logs are below:

  1. deploy sUDT contract and issue initial sUDT token to relayer address
  2. change generation logic and add SUDT_CODE_HASH and SUDT_TYPE_ARGS to consts.rs
  3. adjust packet test to search initial sUDT cell and append it into transaction assembly