Skip to content

Commit cd1d179

Browse files
authored
Merge pull request #1 from kevinheavey/new-idl
Support the v0.30 idl
2 parents 14b64c6 + 6ef3076 commit cd1d179

38 files changed

+5271
-14176
lines changed

Cargo.lock

Lines changed: 8 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ name = "anchorpy_idl"
1313
crate-type = ["cdylib", "rlib"]
1414

1515
[dependencies]
16+
anchor-lang-idl-spec = "0.1.0"
1617
pyo3 = { version = "0.17.2", features = ["extension-module", "abi3-py37"] }
1718
solders-macros = "0.6.0"
1819
derive_more = "0.99.17"
19-
anchor-syn = { version = "0.29.0", features = ["idl-types"] }
2020
serde = { version = "1.0.147", features = ["derive"] }
2121
solders-traits = "0.9.3"
2222
serde_json = "1.0.87"
23-
pythonize = "0.17.0"

python/anchorpy_idl/__init__.py

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,25 @@
44
IdlTypeOption,
55
IdlTypeVec,
66
IdlTypeArray,
7-
IdlTypeGenericLenArray,
87
IdlTypeGeneric,
98
IdlDefinedTypeArg,
10-
IdlTypeDefinedWithTypeArgs,
119
IdlConst,
1210
IdlField,
13-
IdlTypeDefinitionTyStruct,
14-
IdlTypeDefinitionTyAlias,
15-
EnumFieldsNamed,
16-
EnumFieldsTuple,
1711
IdlEnumVariant,
18-
IdlTypeDefinitionTyEnum,
19-
IdlTypeDefinitionTy,
20-
IdlTypeDefinition,
12+
IdlTypeDef,
13+
IdlTypeDefAlias,
14+
IdlTypeDefEnum,
15+
IdlTypeDefStruct,
16+
IdlTypeDefTy,
2117
IdlAccountItem,
22-
IdlAccounts,
2318
IdlSeedConst,
2419
IdlSeedArg,
2520
IdlSeedAccount,
2621
IdlSeed,
2722
IdlPda,
2823
IdlAccount,
2924
IdlInstruction,
30-
IdlState,
3125
IdlEvent,
32-
IdlEventField,
3326
IdlErrorCode,
3427
Idl,
3528
IdlTypeCompound,
@@ -44,33 +37,25 @@
4437
"IdlTypeOption",
4538
"IdlTypeVec",
4639
"IdlTypeArray",
47-
"IdlTypeGenericLenArray",
4840
"IdlTypeGeneric",
4941
"IdlDefinedTypeArg",
50-
"IdlTypeDefinedWithTypeArgs",
51-
"IdlTypeDefinedWithTypeArgs",
5242
"IdlConst",
5343
"IdlField",
54-
"IdlTypeDefinitionTyStruct",
55-
"IdlTypeDefinitionTyAlias",
56-
"EnumFieldsNamed",
57-
"EnumFieldsTuple",
5844
"IdlEnumVariant",
59-
"IdlTypeDefinitionTyEnum",
60-
"IdlTypeDefinitionTy",
61-
"IdlTypeDefinition",
45+
"IdlTypeDef",
46+
"IdlTypeDefAlias",
47+
"IdlTypeDefEnum",
48+
"IdlTypeDefStruct",
49+
"IdlTypeDefTy",
6250
"IdlAccountItem",
63-
"IdlAccounts",
6451
"IdlSeedConst",
6552
"IdlSeedArg",
6653
"IdlSeedAccount",
6754
"IdlSeed",
6855
"IdlPda",
6956
"IdlAccount",
7057
"IdlInstruction",
71-
"IdlState",
7258
"IdlEvent",
73-
"IdlEventField",
7459
"IdlErrorCode",
7560
"Idl",
7661
"IdlTypeCompound",

0 commit comments

Comments
 (0)