rooch-network / rooch

VApp Container with Move Language
https://rooch.network
Apache License 2.0
134 stars 60 forks source link

[rpc] Introduce RoochOrBitcoinAddressView to replace RoochAddressView #1781

Closed jolestar closed 2 weeks ago

jolestar commented 3 weeks ago

Introduce RoochOrBitcoinAddressView to replace RoochAddressView to support Bitcoin address in any RPC argument about address.

RoochOrBitcoinAddressView auto parses string address following the rules:

  1. The address starting with rooch is the Rooch address in bech32
  2. address starting with 0x is Rooch address in hex
  3. other is the Bitcoin address