0.0.9 • Published 2 years ago

@bonfida/token-vesting v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Simple JS bindings

Example

A linear unlock example can be found in example.ts

Quickstart

Contract address on Devnet

DLxB9dSQtA4WJ49hWFhxqiQkD9v6m67Yfk9voxpxrBs4

Contract address on Mainnet

CChTq6PthWU82YZkbveA3WDf7s97BWhBK4Vx9bmsT743

The code allows you to

  • Create vesting instructions for any SPL token: createCreateInstruction
  • Create unlock instructions: createUnlockInstruction
  • Change the destination of the vested tokens: createChangeDestinationInstruction

(To import Solana accounts created with Sollet you can use getAccountFromSeed)

Seed 9043936629442508205162695100279588102353854608998701852963634059
Vesting contract account pubkey:  r2p2mLJvyrTzetxxsttQ54CS1m18zMgYqKSRzxP9WpE
contract ID:  90439366294425082051626951002795881023538546089987018529636340fe
āœ… Successfully created vesting instructions
🚚 Transaction signature: 2uypTM3QcroR7uk6g9Y4eLdniCHqdQBDq4XyrFM7hCtTbb4rftkEHMM6vJ6tTYpihYubHt55xWD86vHB857bqXXb

Fetching contract  r2p2mLJvyrTzetxxsttQ54CS1m18zMgYqKSRzxP9WpE
āœ… Successfully created unlocking instructions
🚚 Transaction signature: 2Vg3W1w8WBdRAWBEwFTn2BtMkKPD3Xor7SRvzC193UnsUnhmneUChPHe7vLF9Lfw9BKxWH5JbbJmnda4XztHMVHz

Fetching contract  r2p2mLJvyrTzetxxsttQ54CS1m18zMgYqKSRzxP9WpE
āœ… Successfully changed destination
🚚 Transaction signature: 4tgPgCdM5ubaSKNLKD1WrfAJPZgRajxRSnmcPkHcN1TCeCRmq3cUCYVdCzsYwr63JRf4D2K1UZnt8rwu2pkGxeYe
0.0.9

2 years ago

0.0.8

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.1

4 years ago