Skip to content

Commit

Permalink
anchor: fix idl
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Jan 16, 2025
1 parent 460721a commit bdc0bf1
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 8 deletions.
43 changes: 39 additions & 4 deletions anchor/target/idl/glam.json
Original file line number Diff line number Diff line change
Expand Up @@ -5864,13 +5864,48 @@
"errors": [
{
"code": 6000,
"name": "InvalidAssetForSwap",
"msg": "Asset cannot be swapped"
"name": "InvalidName",
"msg": "Name too long: max 50 chars"
},
{
"code": 6001,
"name": "InvalidSwap",
"msg": "Swap failed"
"name": "InvalidSymbol",
"msg": "Symbol too long: max 50 chars"
},
{
"code": 6002,
"name": "InvalidUri",
"msg": "Uri too long: max 20"
},
{
"code": 6003,
"name": "InvalidAssetsLen",
"msg": "Too many assets: max 100"
},
{
"code": 6004,
"name": "Disabled",
"msg": "State account is disabled"
},
{
"code": 6005,
"name": "NoShareClass",
"msg": "No share class found"
},
{
"code": 6006,
"name": "ShareClassesNotClosed",
"msg": "Glam state account can't be closed. Close share classes first"
},
{
"code": 6007,
"name": "CloseNotEmptyError",
"msg": "Error closing state account: not empty"
},
{
"code": 6008,
"name": "WithdrawDenied",
"msg": "Withdraw denied. Only vaults allow withdraws (funds and mints don't)"
}
],
"types": [
Expand Down
43 changes: 39 additions & 4 deletions anchor/target/types/glam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5870,13 +5870,48 @@ export type Glam = {
"errors": [
{
"code": 6000,
"name": "invalidAssetForSwap",
"msg": "Asset cannot be swapped"
"name": "invalidName",
"msg": "Name too long: max 50 chars"
},
{
"code": 6001,
"name": "invalidSwap",
"msg": "Swap failed"
"name": "invalidSymbol",
"msg": "Symbol too long: max 50 chars"
},
{
"code": 6002,
"name": "invalidUri",
"msg": "Uri too long: max 20"
},
{
"code": 6003,
"name": "invalidAssetsLen",
"msg": "Too many assets: max 100"
},
{
"code": 6004,
"name": "disabled",
"msg": "State account is disabled"
},
{
"code": 6005,
"name": "noShareClass",
"msg": "No share class found"
},
{
"code": 6006,
"name": "shareClassesNotClosed",
"msg": "Glam state account can't be closed. Close share classes first"
},
{
"code": 6007,
"name": "closeNotEmptyError",
"msg": "Error closing state account: not empty"
},
{
"code": 6008,
"name": "withdrawDenied",
"msg": "Withdraw denied. Only vaults allow withdraws (funds and mints don't)"
}
],
"types": [
Expand Down

0 comments on commit bdc0bf1

Please sign in to comment.