Skip to content

Used by Solana investors to claim/refund when the platform UI is not available

Notifications You must be signed in to change notification settings

Decubate-com/solana-platform-fallback

Repository files navigation

solana-platform-fallback

Used by Solana investors to claim/refund when the platform UI is not available

Setup

Tools

Please follow the instructions to install the Solana CLI and Anchor framework.

Install Dependencies

yarn install

Build the program

anchor build

Replace the program ID

  • Open Anchor.toml file.
  • Under [programs.mainnet] replace the decubate program id with the actual Decubate program ID 5tiQg9Hc3TFUXQJJtztsMZBxagvNMyRo2wXiucL9jsAb.
  • Should look like this:
[programs.mainnet]
decubate = "5tiQg9Hc3TFUXQJJtztsMZBxagvNMyRo2wXiucL9jsAb"
  • Do the same in programs/decubate/src/lib.rs file, inside declare_id!()
  • Should look like this:
declare_id!("5tiQg9Hc3TFUXQJJtztsMZBxagvNMyRo2wXiucL9jsAb");

Rebuild the program

anchor build

Environment

  • Set up the private key in .config/id.json file (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 .env file 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 claim

You can contact Decubate for details about this variables.

Claiming

To display and check the claim data run:

anchor run display-claim-data

If everything looks ok, you can proceed with the claim (otherwise, please contact Decubate):

anchor run claim

Refunding

To display and check the refund data run:

anchor run display-refund-data

If everything looks ok, you can proceed with the refund (otherwise, please contact Decubate):

anchor run refund

About

Used by Solana investors to claim/refund when the platform UI is not available

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published