Skip to content

Commit fd6bb8f

Browse files
Add delegate macro to delegate/undelegate components (#49)
* ✨ Add ability to delegate/undelegate components * 🔧 Use local delegation.so * ♻️ Refactor code * 📦 Update delegation.so * 🧑‍💻 Add undelegate and unit tests * 🐛 Fix delegation program path
1 parent fb6609f commit fd6bb8f

File tree

34 files changed

+1391
-321
lines changed

34 files changed

+1391
-321
lines changed

Anchor.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,26 @@ url = "https://api.apr.dev"
2323
cluster = "localnet"
2424
wallet = "./tests/fixtures/provider.json"
2525

26+
[test]
27+
startup_wait = 5000
28+
shutdown_wait = 2000
29+
upgradeable = false
30+
2631
[workspace]
2732
members = ["programs/bolt-component", "programs/bolt-system", "programs/world", "examples/component-position", "examples/component-velocity", "examples/system-apply-velocity", "examples/system-fly", "examples/system-simple-movement"]
2833

34+
[[test.genesis]]
35+
address = "DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh"
36+
program = "tests/fixtures/delegation.so"
37+
upgradeable = false
38+
39+
[[test.validator.account]]
40+
address = "EEmsg7GbxEAw5f9hGfZRmJRJ27HK8KeGDp7ViW9X2mYa"
41+
filename = "tests/fixtures/commit_record.json"
42+
43+
[[test.validator.account]]
44+
address = "7nQvHcfEqtFmY2q6hiQbidu8BCNdqegnEFfH7HkByFn5"
45+
filename = "tests/fixtures/committed_state.json"
46+
2947
[scripts]
3048
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/bolt.ts"

0 commit comments

Comments
 (0)