From f6b93b88dfe6ff780de129ff32a6855e998f6bf6 Mon Sep 17 00:00:00 2001 From: makarychev <3645723+makarychev@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:51:17 +0200 Subject: [PATCH] update idls json files --- app/src/idls/access_control.json | 7 ++- app/src/idls/dividends.json | 26 ++++++++++- app/src/idls/transfer_restrictions.json | 59 +++++++++++++++++++++++-- 3 files changed, 87 insertions(+), 5 deletions(-) diff --git a/app/src/idls/access_control.json b/app/src/idls/access_control.json index 4410c21..a9b2c6d 100644 --- a/app/src/idls/access_control.json +++ b/app/src/idls/access_control.json @@ -1202,7 +1202,7 @@ }, { "code": 6004, - "name": "MisMatchedEscrow", + "name": "MismatchedEscrowAccount", "msg": "Mismatched escrow account" }, { @@ -1214,6 +1214,11 @@ "code": 6006, "name": "CantForceTransferBetweenLockup", "msg": "Cannot force transfer between lockup accounts" + }, + { + "code": 6007, + "name": "ValueUnchanged", + "msg": "The provided value is already set. No changes were made" } ], "types": [ diff --git a/app/src/idls/dividends.json b/app/src/idls/dividends.json index 5c3b898..b96349c 100644 --- a/app/src/idls/dividends.json +++ b/app/src/idls/dividends.json @@ -283,7 +283,26 @@ "name": "access_control", "docs": [ "Access Control for Security Token." - ] + ], + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 97, + 99 + ] + }, + { + "kind": "account", + "path": "security_mint" + } + ] + } + }, + { + "name": "security_mint", + "writable": true }, { "name": "payer", @@ -518,6 +537,11 @@ "code": 6010, "name": "InvalidIPFSHashSize", "msg": "Invalid IPFS hash size" + }, + { + "code": 6011, + "name": "ValueUnchanged", + "msg": "The provided value is already set. No changes were made" } ], "types": [ diff --git a/app/src/idls/transfer_restrictions.json b/app/src/idls/transfer_restrictions.json index d5e5b5c..25ef411 100644 --- a/app/src/idls/transfer_restrictions.json +++ b/app/src/idls/transfer_restrictions.json @@ -30,13 +30,61 @@ "name": "destination_account" }, { - "name": "transfer_restriction_data" + "name": "transfer_restriction_data", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 116, + 114, + 100 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } }, { - "name": "security_associated_account_from" + "name": "security_associated_account_from", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 115, + 97, + 97 + ] + }, + { + "kind": "account", + "path": "source_account" + } + ] + } }, { - "name": "security_associated_account_to" + "name": "security_associated_account_to", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 115, + 97, + 97 + ] + }, + { + "kind": "account", + "path": "destination_account" + } + ] + } }, { "name": "transfer_rule", @@ -2054,6 +2102,11 @@ "code": 6020, "name": "ZeroGroupHolderGroupMaxCannotBeNonZero", "msg": "Zero group holder group max cannot be non-zero" + }, + { + "code": 6021, + "name": "ValueUnchanged", + "msg": "The provided value is already set. No changes were made" } ], "types": [