Skip to content

Feature/project 8 updates #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
96 changes: 0 additions & 96 deletions project-8-token-vesting/README copy.md

This file was deleted.

9 changes: 9 additions & 0 deletions project-8-token-vesting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ Create Vesting Account: Set up a vesting account for a company, specifying the c
Create Employee Vesting: Establish a vesting schedule for an employee, including start and end times, total amount, and a cliff period.
Claim Tokens: Allows employees to claim their vested tokens after the cliff period, based on the time elapsed and the amount vested.

## Program Updates
- Introduced the initial_fund_amount parameter in the create_vesting_account function, ensuring that the vesting treasury is pre-funded at the time of account creation.
- Implemented token transfer logic to move the initial fund from the signer's associated token account to the vesting treasury.

## Fronend Updates
- Significantly enhanced the UI for a modern and fully responsive experience, including a redesigned navbar.
- Added a mint token feature, allowing users to mint new tokens smoothly.
- Integrated a claim token functionality, enabling users to withdraw vested tokens efficiently.

## Program Functions

- `create_vesting_account`: Initializes a vesting account for a company and initializes a vesting token account to hold the entire token allocation.
Expand Down
30 changes: 0 additions & 30 deletions project-8-token-vesting/anchor/.eslintrc.json

This file was deleted.

12 changes: 12 additions & 0 deletions project-8-token-vesting/anchor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.anchor
.DS_Store
target/debug
target/deploy
target/release
target/sbf-solana-solana
target/test-ledger
target/.rustc_info.json
**/*.rs.bk
node_modules
test-ledger
.yarn
7 changes: 7 additions & 0 deletions project-8-token-vesting/anchor/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.anchor
.DS_Store
target
node_modules
dist
build
test-ledger
29 changes: 0 additions & 29 deletions project-8-token-vesting/anchor/.swcrc

This file was deleted.

11 changes: 6 additions & 5 deletions project-8-token-vesting/anchor/Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
[toolchain]
anchor_version = "0.30.1"

[features]
resolution = true
skip-lint = false

[programs.localnet]
vesting = "GFdLg11UBR8ZeePW43ZyD1gY4z4UQ96LPa22YBgnn4z8"
[programs.devnet]
vesting = "BnRyuRkBiWQ6D3Tsu5n4AuzzHjSbFHBcXKs63e51p1ft"

[registry]
url = "https://api.apr.dev"
url = "https://api.devnet.solana.com"

[provider]
cluster = "Localnet"
cluster = "Devnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "../node_modules/.bin/nx run anchor:jest"
test = "../node_modules/.bin/jest --preset ts-jest"

[test]
startup_wait = 5000
Expand Down
11 changes: 0 additions & 11 deletions project-8-token-vesting/anchor/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions project-8-token-vesting/anchor/jest.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions project-8-token-vesting/anchor/migrations/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// single deploy script that's invoked from the CLI, injecting a provider
// configured from the workspace's Anchor.toml.

import * as anchor from '@coral-xyz/anchor';
const anchor = require("@coral-xyz/anchor");
import { AnchorProvider } from '@coral-xyz/anchor'

module.exports = async function (provider) {
module.exports = async function (provider: AnchorProvider) {
// Configure client to use the provider.
anchor.setProvider(provider);

Expand Down
15 changes: 0 additions & 15 deletions project-8-token-vesting/anchor/package.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[package]
name = "vesting"
name = "dapptokenvesting"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "vesting"
name = "dapptokenvesting"

[features]
default = []
cpi = ["no-entrypoint"]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]
idl-build = ["anchor-lang/idl-build","anchor-spl/idl-build"]

[dependencies]
anchor-lang = { version="0.30.1", features=["init-if-needed"] }
anchor-lang = { version = "0.30.1", features = ["init-if-needed"] }
anchor-spl = "0.30.1"
solana-program = "1.18.17"
solana-program = "1.18.17"
Loading