Skip to content
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

oracle test wip #90

Merged
merged 37 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
86d07b3
Update ExternalRegistryRecordSafe and fix tests
danenbm Apr 25, 2024
604eb0f
Add accounts, asset, and collection to PluginValidationContext
danenbm Apr 26, 2024
4d14ce3
Implement Oracle lifecycle validations
danenbm Apr 26, 2024
e73230f
oracle test wip
nhanphan Apr 26, 2024
f10eea4
Add new error codes
danenbm Apr 26, 2024
17920ac
Regenerate IDL and clients
danenbm Apr 26, 2024
596ffae
Merge branch 'third-party-plugins-staging' into danenbm/oracle-lifecy…
danenbm Apr 26, 2024
4102baf
Derive custom PDA using Seeds Vec
danenbm Apr 26, 2024
738809c
Make sure third party plugins can approve or reject before using output
danenbm Apr 26, 2024
a09b9fa
Merge branch 'third-party-plugins-staging' into nhan/oracle-external-…
nhanphan Apr 26, 2024
d2b7c6f
Use user program for Program Seed
danenbm Apr 26, 2024
7dee69a
Merge branch 'third-party-plugins-staging' into danenbm/oracle-lifecy…
danenbm Apr 26, 2024
a797186
add more oracle tests, make function to derive oracle accounts
nhanphan Apr 27, 2024
a3d1117
correclt pass in collection to test
nhanphan Apr 27, 2024
63ba165
Merge branch 'danenbm/oracle-lifecyle-validations' into nhan/oracle-e…
nhanphan Apr 27, 2024
a710891
rename DENY to REJECT
nhanphan Apr 30, 2024
35e807e
Merge branch 'third-party-plugins-staging' into nhan/oracle-external-…
danenbm Apr 30, 2024
f0fa1b4
Remove authority and add more Oracle tests
danenbm Apr 30, 2024
0623927
Add handling on account close for preconfigured program PDA
danenbm Apr 30, 2024
876e115
fix burn auth to be writable, add test, fix extra account derive
nhanphan May 1, 2024
112e98f
pass in collection and owner auth to transfer
nhanphan May 1, 2024
901a8c9
use devnet oracle and real npm js package
nhanphan May 1, 2024
4ae11fd
Add test for preconfigured asset pda with custom offset
danenbm May 1, 2024
7aa75a5
Fix typo
danenbm May 1, 2024
c3be525
merge main
nhanphan May 1, 2024
33e2446
Add test for custom pda typical
danenbm May 1, 2024
58f9f59
merge fix
nhanphan May 1, 2024
5bee42d
Merge branch 'nhan/oracle-external-program' of github.com:metaplex-fo…
nhanphan May 1, 2024
1d22588
formatting
nhanphan May 1, 2024
b453af1
add validate lifecycle helper methods, fix deserialization bug, add m…
nhanphan May 2, 2024
657a4bd
Merge branch 'third-party-plugins-staging' into nhan/oracle-external-…
nhanphan May 2, 2024
8256819
Test that Oracle cannot approve or listen (can only deny)
danenbm May 2, 2024
5bcd5d8
Update error code
danenbm May 2, 2024
d22a612
add deprecation comment
nhanphan May 2, 2024
81839dd
Merge branch 'third-party-plugins-staging' into nhan/oracle-external-…
danenbm May 3, 2024
80c500a
Fixup use correct bit position for CanReject
danenbm May 3, 2024
1083349
change validation return type
nhanphan May 3, 2024
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 clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"@metaplex-foundation/mpl-toolbox": "^0.8.0",
"@ava/typescript": "^3.0.1",
"@metaplex-foundation/mpl-core-oracle-example": "^0.0.1",
"@metaplex-foundation/umi": "^0.8.10",
"@metaplex-foundation/umi-bundle-tests": "^0.8.10",
"@solana/web3.js": "^1.73.0",
Expand Down
13 changes: 13 additions & 0 deletions clients/js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/burnCollectionV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function burnCollectionV1(
},
authority: {
index: 2,
isWritable: false as boolean,
isWritable: true as boolean,
value: input.authority ?? null,
},
logWrapper: {
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/burnV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function burnV1(
},
authority: {
index: 3,
isWritable: false as boolean,
isWritable: true as boolean,
value: input.authority ?? null,
},
systemProgram: {
Expand Down
Loading