From bdc0bf1e13999ffbcedeb975ff156686a592c992 Mon Sep 17 00:00:00 2001 From: Yuru Shao Date: Thu, 16 Jan 2025 05:47:17 +0000 Subject: [PATCH] anchor: fix idl --- anchor/target/idl/glam.json | 43 +++++++++++++++++++++++++++++++++---- anchor/target/types/glam.ts | 43 +++++++++++++++++++++++++++++++++---- 2 files changed, 78 insertions(+), 8 deletions(-) diff --git a/anchor/target/idl/glam.json b/anchor/target/idl/glam.json index a32c7fe2..8b55709b 100644 --- a/anchor/target/idl/glam.json +++ b/anchor/target/idl/glam.json @@ -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": [ diff --git a/anchor/target/types/glam.ts b/anchor/target/types/glam.ts index 2fefd0b5..593e096d 100644 --- a/anchor/target/types/glam.ts +++ b/anchor/target/types/glam.ts @@ -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": [