Skip to content

Commit d492b0c

Browse files
authored
Feat/deployment scripts and doc (#28)
* feat: add deployment and setup script, update doc * feat: add script to force liquidate and fix pool tracking when opening position * feat: update drain pool and setup pools for demo * fix: use localnet for github tests
1 parent 82f5d50 commit d492b0c

11 files changed

Lines changed: 1259 additions & 153 deletions

File tree

Anchor.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ skip-lint = false
88
[programs.localnet]
99
metlev_engine = "6ySvjJb41GBCBbtVvmaCd7cQUuzWFtqZ1SA931rEuSSx"
1010

11+
[programs.devnet]
12+
metlev_engine = "6ySvjJb41GBCBbtVvmaCd7cQUuzWFtqZ1SA931rEuSSx"
13+
1114
[registry]
1215
url = "https://api.apr.dev"
1316

@@ -17,3 +20,10 @@ wallet = "~/.config/solana/id.json"
1720

1821
[scripts]
1922
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 \"tests/**/*.ts\""
23+
init-protocol = "npx ts-node scripts/init-protocol.ts"
24+
update-oracle = "npx ts-node scripts/update-oracle.ts"
25+
supply = "npx ts-node scripts/supply.ts"
26+
withdraw-lp = "npx ts-node scripts/withdraw-lp.ts"
27+
setup-pool = "npx ts-node scripts/setup-pool.ts"
28+
drain-pool = "npx ts-node scripts/drain-pool.ts"
29+
force-liquidate = "npx ts-node scripts/force-liquidate.ts"

0 commit comments

Comments
 (0)