Used by Solana investors to claim/refund when the platform UI is not available
Please follow the instructions to install the Solana CLI and Anchor framework.
yarn installanchor build- Open
Anchor.tomlfile. - Under
[programs.mainnet]replace thedecubateprogram id with the actual Decubate program ID5tiQg9Hc3TFUXQJJtztsMZBxagvNMyRo2wXiucL9jsAb. - Should look like this:
[programs.mainnet]
decubate = "5tiQg9Hc3TFUXQJJtztsMZBxagvNMyRo2wXiucL9jsAb"- Do the same in
programs/decubate/src/lib.rsfile, insidedeclare_id!() - Should look like this:
declare_id!("5tiQg9Hc3TFUXQJJtztsMZBxagvNMyRo2wXiucL9jsAb");anchor build- Set up the private key in
.config/id.jsonfile (you need to create it). - The private key should have the format shown as example below:
[
1,
2,
3,
...
]
- In case when exporting the private key from the wallet (e.g. Phantom) and it has a different format (e.g. 39bbESoiCKGRyZHaxFfShc5Cs9ELaEDALRYBDH7WCJDsdKP99A4KiRNNyMWF61rjWCVX8gzkaUpY3yhvSSDeP7rP), you can use the following command to convert it to the required format:
anchor run convert-key- Create a
.envfile in the root directory of the project and add the following variables:
EVENT_ID="<event_id>" -> mandatory for both claim and refund
PAYMENT_TOKEN_MINT="<payment_token_mint_address>" -> necessary only for the refund
VESTING_TOKEN_MINT="<vesting_token_mint_address>" -> necessary only for the claimYou can contact Decubate for details about this variables.
To display and check the claim data run:
anchor run display-claim-dataIf everything looks ok, you can proceed with the claim (otherwise, please contact Decubate):
anchor run claimTo display and check the refund data run:
anchor run display-refund-dataIf everything looks ok, you can proceed with the refund (otherwise, please contact Decubate):
anchor run refund