-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Non-EVM-1062] Solana Codec events support, Hookup Fuzz tests and cle…
…anup Codec init (#987) * Add events IDL parsing to codec * temp * Add a basic codec test for event IDL parsing * Cleanup Solana Codec init * Hookup Codec fuzz tests * delete an unnecessary comment * lint
- Loading branch information
Showing
5 changed files
with
222 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"version": "0.1.0", | ||
"name": "test_item_event_type", | ||
"instructions": [], | ||
"events": [ | ||
{ | ||
"name": "TestItem", | ||
"fields": [ | ||
{ "name": "Field", "type": "i32" }, | ||
{ "name": "OracleId", "type": "u8" }, | ||
{ "name": "OracleIds", "type": { "array": ["u8", 32] } }, | ||
{ "name": "AccountStruct", "type": { "defined": "AccountStruct" } }, | ||
{ "name": "Accounts", "type": { "vec": "publicKey" } }, | ||
{ "name": "DifferentField", "type": "string" }, | ||
{ "name": "BigField", "type": "i128" }, | ||
{ "name": "NestedDynamicStruct", "type": { "defined": "NestedDynamic" } }, | ||
{ "name": "NestedStaticStruct", "type": { "defined": "NestedStatic" } } | ||
] | ||
} | ||
], | ||
"types": [ | ||
{ | ||
"name": "AccountStruct", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ "name": "Account", "type": "publicKey" }, | ||
{ "name": "AccountStr", "type": "publicKey" } | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "InnerDynamic", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ "name": "IntVal", "type": "i64" }, | ||
{ "name": "S", "type": "string" } | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "NestedDynamic", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ "name": "FixedBytes", "type": { "array": ["u8", 2] } }, | ||
{ "name": "Inner", "type": { "defined": "InnerDynamic" } } | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "InnerStatic", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ "name": "IntVal", "type": "i64" }, | ||
{ "name": "A", "type": "publicKey" } | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "NestedStatic", | ||
"type": { | ||
"kind": "struct", | ||
"fields": [ | ||
{ "name": "FixedBytes", "type": { "array": ["u8", 2] } }, | ||
{ "name": "Inner", "type": { "defined": "InnerStatic" } } | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.