Skip to content

Commit d352c8a

Browse files
authored
Program authority escrow (#1)
* First commit * Checkpoint * Complete * Add workflow * Fix CI * Refactor * Add tests * Add real key * Cleanup * master -> main * Address comment
1 parent 9adfc01 commit d352c8a

19 files changed

Lines changed: 6978 additions & 1 deletion

File tree

.github/workflows/pre-commit.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pre-commit checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
profile: minimal
17+
toolchain: nightly
18+
components: rustfmt, clippy
19+
- uses: pre-commit/action@v2.0.3

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
.anchor
3+
.DS_Store
4+
target
5+
**/*.rs.bk
6+
node_modules
7+
test-ledger

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: cargo-fmt-nightly
5+
name: Cargo Fmt Nightly
6+
language: "rust"
7+
entry: cargo +nightly fmt
8+
pass_filenames: false
9+
- id: cargo-clippy
10+
name: Cargo clippy
11+
language: "rust"
12+
entry : cargo +nightly clippy --tests -- -D warnings
13+
pass_filenames : false

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
.anchor
3+
.DS_Store
4+
target
5+
node_modules
6+
dist
7+
build
8+
test-ledger

Anchor.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[features]
2+
seeds = true
3+
skip-lint = false
4+
[programs.localnet]
5+
program_authority_escrow = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
6+
7+
[registry]
8+
url = "https://api.apr.dev"
9+
10+
[provider]
11+
cluster = "Localnet"
12+
wallet = "/home/gbescos/.config/solana/id.json"
13+
14+
[scripts]
15+
test = "cargo-test-bpf"

0 commit comments

Comments
 (0)