-
Notifications
You must be signed in to change notification settings - Fork 10
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
✨ Adding low and intermediate api-levels #120
Conversation
398c4a4
to
37d38c3
Compare
37d38c3
to
390b1fb
Compare
69671c0
to
548f592
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
); | ||
}); | ||
|
||
it("Initialize Original Component on Entity 2, trough the world instance", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax: 'trough' is misspelled in the test name, should be 'through'
const signature = await provider.sendAndConfirm(transaction, [], { | ||
skipPreflight: true, | ||
}); | ||
console.log(`Whitelist 2 system approval signature: ${signature}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Log message refers to 'Whitelist 2' but this is the first whitelist operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
} | ||
|
||
// TODO: seed must be Uint8Array like the other FindPda functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: this TODO should be addressed before merging - inconsistent seed types between functions could lead to runtime errors
); | ||
}); | ||
|
||
it("InitializeNewWorld 2", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: The worldId and worldPda variables from the first world initialization are shadowed here, which could lead to state inconsistencies in subsequent tests
Problem & Solution
Are both described in the issue #119
This PR also
Includes: #58
Greptile Summary
This PR introduces API level abstractions (low/intermediate/high) to the Bolt framework and optimizes entity PDA generation for improved performance.
clients/bolt-sdk/src/index.ts
to useworld.key
instead ofworld.id
to avoid unnecessary RPC callstests/bolt.low-level.api.ts
for direct Anchor interactionstests/bolt.intermediate-level.api.ts
with higher abstractionsclients/bolt-sdk/src/generated/types/world.ts
Anchor.toml
test scripts to run both API level tests with proper timing💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!