From ea88d6bcc7c958158dd70cf4996f784b75377c93 Mon Sep 17 00:00:00 2001 From: Elliot Kennedy Date: Tue, 3 Dec 2024 14:49:02 +0000 Subject: [PATCH] - Upgrade anchor 0.29.0 - Update Solana cli CI version 1.14.17 -> 1.17.18 - Update node CI version 18 -> 22 - Add rust toolchain to fix CI runner to rust 1.74.1 - Enable overflow-checks as required by anchor 0.30.0 - Error on alias types - they are broken in anchor 0.29.0 anyway --- .../example-program-gen/exp/accounts/index.ts | 4 +- tests/example-program-gen/idl.json | 48 +++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/tests/example-program-gen/exp/accounts/index.ts b/tests/example-program-gen/exp/accounts/index.ts index e2ab300..9e048ec 100644 --- a/tests/example-program-gen/exp/accounts/index.ts +++ b/tests/example-program-gen/exp/accounts/index.ts @@ -1,6 +1,6 @@ +export { OptionalState } from "./OptionalState" +export type { OptionalStateFields, OptionalStateJSON } from "./OptionalState" export { State } from "./State" export type { StateFields, StateJSON } from "./State" export { State2 } from "./State2" export type { State2Fields, State2JSON } from "./State2" -export { OptionalState } from "./OptionalState" -export type { OptionalStateFields, OptionalStateJSON } from "./OptionalState" diff --git a/tests/example-program-gen/idl.json b/tests/example-program-gen/idl.json index 266b441..35a7614 100644 --- a/tests/example-program-gen/idl.json +++ b/tests/example-program-gen/idl.json @@ -310,6 +310,30 @@ } ], "accounts": [ + { + "name": "OptionalState", + "type": { + "kind": "struct", + "fields": [ + { + "name": "readonlySignerOption", + "type": "bool" + }, + { + "name": "mutableSignerOption", + "type": "bool" + }, + { + "name": "readonlyOption", + "type": "bool" + }, + { + "name": "mutableOption", + "type": "bool" + } + ] + } + }, { "name": "State", "docs": [ @@ -470,30 +494,6 @@ } ] } - }, - { - "name": "OptionalState", - "type": { - "kind": "struct", - "fields": [ - { - "name": "readonlySignerOption", - "type": "bool" - }, - { - "name": "mutableSignerOption", - "type": "bool" - }, - { - "name": "readonlyOption", - "type": "bool" - }, - { - "name": "mutableOption", - "type": "bool" - } - ] - } } ], "types": [