0.0.9 ā€¢ Published 1 year ago

@bonfida/token-vesting v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago