ci: add IDL freshness check and consolidate artifacts

Move IDL files to artifacts/ and add a convention-based CI check that
discovers all programs via */methods/guest/src/bin/*.rs and fails if
any program is missing its IDL or has one that is out of date.
This commit is contained in:
r4bbit
2026-04-14 11:13:42 +02:00
parent 9824cd8f90
commit 19dfb494f6
10 changed files with 163 additions and 17 deletions
-102
View File
@@ -1,102 +0,0 @@
{
"version": "0.1.0",
"name": "ata",
"instructions": [
{
"name": "create",
"accounts": [
{
"name": "owner",
"writable": false,
"signer": false,
"init": false
},
{
"name": "token_definition",
"writable": false,
"signer": false,
"init": false
},
{
"name": "ata_account",
"writable": false,
"signer": false,
"init": false
}
],
"args": [
{
"name": "ata_program_id",
"type": "program_id"
}
]
},
{
"name": "transfer",
"accounts": [
{
"name": "owner",
"writable": false,
"signer": false,
"init": false
},
{
"name": "sender_ata",
"writable": false,
"signer": false,
"init": false
},
{
"name": "recipient",
"writable": false,
"signer": false,
"init": false
}
],
"args": [
{
"name": "ata_program_id",
"type": "program_id"
},
{
"name": "amount",
"type": "u128"
}
]
},
{
"name": "burn",
"accounts": [
{
"name": "owner",
"writable": false,
"signer": false,
"init": false
},
{
"name": "holder_ata",
"writable": false,
"signer": false,
"init": false
},
{
"name": "token_definition",
"writable": false,
"signer": false,
"init": false
}
],
"args": [
{
"name": "ata_program_id",
"type": "program_id"
},
{
"name": "amount",
"type": "u128"
}
]
}
],
"instruction_type": "ata_core::Instruction"
}