Skip to content

Commit

Permalink
Bump anchor 0.28.0 -> 0.29.0
Browse files Browse the repository at this point in the history
Bump `@solana/web3.js` 1.77.3 -> 2.0.0
  • Loading branch information
elliotkennedy committed Nov 12, 2024
1 parent 2942a0f commit 8106a2a
Show file tree
Hide file tree
Showing 6 changed files with 868 additions and 194 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"check": "tsc --noEmit"
},
"devDependencies": {
"@coral-xyz/anchor-cli": "0.28.0",
"@coral-xyz/anchor-cli": "0.29.0",
"@types/bn.js": "^5.1.1",
"@types/eslint": "^8.40.1",
"@typescript-eslint/eslint-plugin": "^5.59.9",
Expand All @@ -44,9 +44,9 @@
"vitest": "^0.32.0"
},
"dependencies": {
"@coral-xyz/anchor": "0.28.0",
"@coral-xyz/borsh": "^0.28.0",
"@solana/web3.js": "^1.77.3",
"@coral-xyz/anchor": "0.29.0",
"@coral-xyz/borsh": "^0.29.0",
"@solana/web3.js": "^2.0.0",
"bn.js": "^5.2.1",
"camelcase": "^7.0.1",
"commander": "^10.0.1",
Expand Down
12 changes: 6 additions & 6 deletions tests/example-program-gen/exp/types/FooEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export class Named {
toEncodable() {
return {
Named: {
bool_field: this.value.boolField,
u8_field: this.value.u8Field,
boolField: this.value.boolField,
u8Field: this.value.u8Field,
nested: types.BarStruct.toEncodable(this.value.nested),
},
}
Expand Down Expand Up @@ -285,8 +285,8 @@ export function fromDecoded(obj: any): types.FooEnumKind {
if ("Named" in obj) {
const val = obj["Named"]
return new Named({
boolField: val["bool_field"],
u8Field: val["u8_field"],
boolField: val["boolField"],
u8Field: val["u8Field"],
nested: types.BarStruct.fromDecoded(val["nested"]),
})
}
Expand Down Expand Up @@ -364,8 +364,8 @@ export function layout(property?: string) {
borsh.struct([types.BarStruct.layout("_0")], "UnnamedSingle"),
borsh.struct(
[
borsh.bool("bool_field"),
borsh.u8("u8_field"),
borsh.bool("boolField"),
borsh.u8("u8Field"),
types.BarStruct.layout("nested"),
],
"Named"
Expand Down
4 changes: 2 additions & 2 deletions tests/example-program-gen/idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,14 @@
"name": "Named",
"fields": [
{
"name": "bool_field",
"name": "boolField",
"docs": [
"A bool field inside a struct tuple kind"
],
"type": "bool"
},
{
"name": "u8_field",
"name": "u8Field",
"type": "u8"
},
{
Expand Down
Loading

0 comments on commit 8106a2a

Please sign in to comment.