Closed Allen-Cherian closed 1 month ago
Suggestion for Enhanced Flexibility:
To improve the generalizability and future-proofing of the command interface, consider the following changes:
Command Renaming:
./rubixgoplatform pinrbt --> ./rubixgoplatform pinToken
./rubixgoplatform recovertokens --> ./rubixgoplatform recoverToken
API Endpoint Updates:
/api/initiate-pin-rbt --> /api/initiate-pin-token
/api/recover-rbt --> /api/recover-token
This approach makes the commands and endpoints less tied to a specific token type ("rbt"), allowing for easier adaptation for other token types that are introduced later.
The pinning service allows token owners to pin their tokens on a pinning node on their behalf. The token's ownership remains unchanged; the pinning node will have all the information about the pinned token and token chain. The recover token feature allows us to retrieve the token and tokenchain from the pinning node.
Commands added :
./rubixgoplatform pinToken -port 20013 -senderAddr bafybmibw7lvjidvlohhdsdshbj4bcly7y6zwanlwcloj5puaizzstyfbhi -pinningAddress bafybmihs3hniinkuk3nh2bo4geyljevyjjyixtnrn3tdqe3yecqrzv22qq -rbtAmount 1 -transComment "Test Pinning As a service " -transType 2
./rubixgoplatform recoverToken -port 20015 -senderAddr bafybmibw7lvjidvlohhdsdshbj4bcly7y6zwanlwcloj5puaizzstyfbhi -pinningAddress bafybmihs3hniinkuk3nh2bo4geyljevyjjyixtnrn3tdqe3yecqrzv22qq
APIs added :
Test Results :