@glamsystems/glam-sdk 1.0.14-alpha.4 → 1.0.14-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/index.cjs.js +50322 -20832
  2. package/index.esm.js +50167 -20833
  3. package/package.json +3 -3
  4. package/target/idl/ext_jupiter-staging.json +1960 -0
  5. package/target/idl/ext_jupiter.json +1960 -0
  6. package/target/idl/ext_orca-staging.json +2797 -0
  7. package/target/idl/ext_orca.json +2797 -0
  8. package/target/idl/glam_mint-staging.json +1452 -80
  9. package/target/idl/glam_mint.json +256 -1
  10. package/target/idl/glam_protocol-staging.json +22 -2
  11. package/target/idl/glam_protocol.json +584 -0
  12. package/target/types/ext_jupiter-staging.ts +1966 -0
  13. package/target/types/ext_jupiter.ts +1966 -0
  14. package/target/types/ext_orca-staging.ts +2803 -0
  15. package/target/types/ext_orca.ts +2803 -0
  16. package/target/types/glam_mint-staging.ts +1452 -80
  17. package/target/types/glam_mint.ts +256 -1
  18. package/target/types/glam_protocol-staging.ts +22 -2
  19. package/target/types/glam_protocol.ts +584 -0
  20. package/src/assets.d.ts +0 -40
  21. package/src/client/access.d.ts +0 -57
  22. package/src/client/base.d.ts +0 -180
  23. package/src/client/bridge.d.ts +0 -185
  24. package/src/client/bridgeRegistry.d.ts +0 -32
  25. package/src/client/cctp.d.ts +0 -156
  26. package/src/client/epi.d.ts +0 -78
  27. package/src/client/fees.d.ts +0 -33
  28. package/src/client/invest.d.ts +0 -37
  29. package/src/client/jupiter.d.ts +0 -45
  30. package/src/client/kamino/farm.d.ts +0 -39
  31. package/src/client/kamino/index.d.ts +0 -4
  32. package/src/client/kamino/lending.d.ts +0 -86
  33. package/src/client/kamino/types.d.ts +0 -56
  34. package/src/client/kamino/vaults.d.ts +0 -31
  35. package/src/client/marinade.d.ts +0 -42
  36. package/src/client/mint.d.ts +0 -127
  37. package/src/client/price.d.ts +0 -128
  38. package/src/client/stake-pool.d.ts +0 -39
  39. package/src/client/stake.d.ts +0 -34
  40. package/src/client/state.d.ts +0 -56
  41. package/src/client/timelock.d.ts +0 -31
  42. package/src/client/vault.d.ts +0 -90
  43. package/src/client.d.ts +0 -62
  44. package/src/clientConfig.d.ts +0 -29
  45. package/src/constants.d.ts +0 -82
  46. package/src/deser/base.d.ts +0 -18
  47. package/src/deser/index.d.ts +0 -3
  48. package/src/deser/integrationPolicies.d.ts +0 -106
  49. package/src/deser/kaminoLayouts.d.ts +0 -264
  50. package/src/deser/tokenAclLayouts.d.ts +0 -67
  51. package/src/error.d.ts +0 -29
  52. package/src/glamExports.d.ts +0 -5563
  53. package/src/globalConfig.d.ts +0 -22
  54. package/src/index.d.ts +0 -18
  55. package/src/models/acl.d.ts +0 -43
  56. package/src/models/index.d.ts +0 -8
  57. package/src/models/mint.d.ts +0 -64
  58. package/src/models/state.d.ts +0 -104
  59. package/src/models/types.d.ts +0 -28
  60. package/src/react/cluster-provider.d.ts +0 -22
  61. package/src/react/glam.d.ts +0 -47
  62. package/src/react/index.d.ts +0 -5
  63. package/src/react/query-keys.d.ts +0 -38
  64. package/src/react/useVaultBalanceSubscription.d.ts +0 -17
  65. package/src/utils/accounts.d.ts +0 -72
  66. package/src/utils/bitmask.d.ts +0 -53
  67. package/src/utils/blockhash.d.ts +0 -11
  68. package/src/utils/common.d.ts +0 -37
  69. package/src/utils/computeBudget.d.ts +0 -15
  70. package/src/utils/evm.d.ts +0 -10
  71. package/src/utils/fraction.d.ts +0 -29
  72. package/src/utils/glamPDAs.d.ts +0 -14
  73. package/src/utils/index.d.ts +0 -16
  74. package/src/utils/jupiterApi.d.ts +0 -89
  75. package/src/utils/lookupTables.d.ts +0 -53
  76. package/src/utils/pkmap.d.ts +0 -82
  77. package/src/utils/pkset.d.ts +0 -73
  78. package/src/utils/positionCategorizer.d.ts +0 -36
  79. package/src/utils/rpc.d.ts +0 -33
  80. package/src/utils/timelock.d.ts +0 -52
  81. package/src/utils/transaction.d.ts +0 -13
  82. package/target/types/ext_bridge.d.ts +0 -2385
  83. package/target/types/ext_cctp.d.ts +0 -1268
  84. package/target/types/ext_epi.d.ts +0 -2175
  85. package/target/types/ext_kamino.d.ts +0 -3433
  86. package/target/types/ext_marinade.d.ts +0 -1593
  87. package/target/types/ext_spl.d.ts +0 -1274
  88. package/target/types/ext_stake_pool.d.ts +0 -1622
  89. package/target/types/glam_config.d.ts +0 -755
  90. package/target/types/glam_mint.d.ts +0 -6094
  91. package/target/types/glam_protocol.d.ts +0 -2708
@@ -13,6 +13,31 @@ export type GlamProtocol = {
13
13
  "description": "Glam Protocol"
14
14
  },
15
15
  "instructions": [
16
+ {
17
+ "name": "addAssets",
18
+ "discriminator": [
19
+ 221,
20
+ 232,
21
+ 106,
22
+ 164,
23
+ 156,
24
+ 75,
25
+ 127,
26
+ 106
27
+ ],
28
+ "accounts": [
29
+ {
30
+ "name": "glamState",
31
+ "writable": true
32
+ },
33
+ {
34
+ "name": "glamSigner",
35
+ "writable": true,
36
+ "signer": true
37
+ }
38
+ ],
39
+ "args": []
40
+ },
16
41
  {
17
42
  "name": "cancelTimelock",
18
43
  "discriminator": [
@@ -165,6 +190,31 @@ export type GlamProtocol = {
165
190
  }
166
191
  ]
167
192
  },
193
+ {
194
+ "name": "deleteAssets",
195
+ "discriminator": [
196
+ 85,
197
+ 141,
198
+ 142,
199
+ 118,
200
+ 39,
201
+ 152,
202
+ 168,
203
+ 188
204
+ ],
205
+ "accounts": [
206
+ {
207
+ "name": "glamState",
208
+ "writable": true
209
+ },
210
+ {
211
+ "name": "glamSigner",
212
+ "writable": true,
213
+ "signer": true
214
+ }
215
+ ],
216
+ "args": []
217
+ },
168
218
  {
169
219
  "name": "emergencyAccessUpdate",
170
220
  "docs": [
@@ -764,6 +814,535 @@ export type GlamProtocol = {
764
814
  }
765
815
  ]
766
816
  },
817
+ {
818
+ "name": "stakeAuthorize",
819
+ "discriminator": [
820
+ 127,
821
+ 247,
822
+ 88,
823
+ 164,
824
+ 201,
825
+ 0,
826
+ 79,
827
+ 7
828
+ ],
829
+ "accounts": [
830
+ {
831
+ "name": "glamState",
832
+ "writable": true
833
+ },
834
+ {
835
+ "name": "glamVault",
836
+ "writable": true,
837
+ "pda": {
838
+ "seeds": [
839
+ {
840
+ "kind": "const",
841
+ "value": [
842
+ 118,
843
+ 97,
844
+ 117,
845
+ 108,
846
+ 116
847
+ ]
848
+ },
849
+ {
850
+ "kind": "account",
851
+ "path": "glamState"
852
+ }
853
+ ]
854
+ }
855
+ },
856
+ {
857
+ "name": "glamSigner",
858
+ "writable": true,
859
+ "signer": true
860
+ },
861
+ {
862
+ "name": "cpiProgram",
863
+ "address": "Stake11111111111111111111111111111111111111"
864
+ },
865
+ {
866
+ "name": "stake",
867
+ "writable": true
868
+ },
869
+ {
870
+ "name": "clock",
871
+ "address": "SysvarC1ock11111111111111111111111111111111"
872
+ }
873
+ ],
874
+ "args": [
875
+ {
876
+ "name": "newAuthority",
877
+ "type": "pubkey"
878
+ },
879
+ {
880
+ "name": "stakerOrWithdrawer",
881
+ "type": "u32"
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ "name": "stakeDeactivate",
887
+ "discriminator": [
888
+ 224,
889
+ 10,
890
+ 93,
891
+ 175,
892
+ 175,
893
+ 145,
894
+ 237,
895
+ 169
896
+ ],
897
+ "accounts": [
898
+ {
899
+ "name": "glamState"
900
+ },
901
+ {
902
+ "name": "glamVault",
903
+ "writable": true,
904
+ "pda": {
905
+ "seeds": [
906
+ {
907
+ "kind": "const",
908
+ "value": [
909
+ 118,
910
+ 97,
911
+ 117,
912
+ 108,
913
+ 116
914
+ ]
915
+ },
916
+ {
917
+ "kind": "account",
918
+ "path": "glamState"
919
+ }
920
+ ]
921
+ }
922
+ },
923
+ {
924
+ "name": "glamSigner",
925
+ "writable": true,
926
+ "signer": true
927
+ },
928
+ {
929
+ "name": "cpiProgram",
930
+ "address": "Stake11111111111111111111111111111111111111"
931
+ },
932
+ {
933
+ "name": "stake",
934
+ "writable": true
935
+ },
936
+ {
937
+ "name": "clock",
938
+ "address": "SysvarC1ock11111111111111111111111111111111"
939
+ }
940
+ ],
941
+ "args": []
942
+ },
943
+ {
944
+ "name": "stakeDelegateStake",
945
+ "discriminator": [
946
+ 202,
947
+ 40,
948
+ 152,
949
+ 239,
950
+ 175,
951
+ 251,
952
+ 66,
953
+ 228
954
+ ],
955
+ "accounts": [
956
+ {
957
+ "name": "glamState",
958
+ "writable": true
959
+ },
960
+ {
961
+ "name": "glamVault",
962
+ "writable": true,
963
+ "pda": {
964
+ "seeds": [
965
+ {
966
+ "kind": "const",
967
+ "value": [
968
+ 118,
969
+ 97,
970
+ 117,
971
+ 108,
972
+ 116
973
+ ]
974
+ },
975
+ {
976
+ "kind": "account",
977
+ "path": "glamState"
978
+ }
979
+ ]
980
+ }
981
+ },
982
+ {
983
+ "name": "glamSigner",
984
+ "writable": true,
985
+ "signer": true
986
+ },
987
+ {
988
+ "name": "cpiProgram",
989
+ "address": "Stake11111111111111111111111111111111111111"
990
+ },
991
+ {
992
+ "name": "stake",
993
+ "writable": true
994
+ },
995
+ {
996
+ "name": "vote"
997
+ },
998
+ {
999
+ "name": "clock",
1000
+ "address": "SysvarC1ock11111111111111111111111111111111"
1001
+ },
1002
+ {
1003
+ "name": "stakeHistory",
1004
+ "address": "SysvarStakeHistory1111111111111111111111111"
1005
+ },
1006
+ {
1007
+ "name": "stakeConfig"
1008
+ }
1009
+ ],
1010
+ "args": []
1011
+ },
1012
+ {
1013
+ "name": "stakeInitialize",
1014
+ "discriminator": [
1015
+ 68,
1016
+ 66,
1017
+ 118,
1018
+ 79,
1019
+ 15,
1020
+ 144,
1021
+ 190,
1022
+ 190
1023
+ ],
1024
+ "accounts": [
1025
+ {
1026
+ "name": "glamState",
1027
+ "writable": true
1028
+ },
1029
+ {
1030
+ "name": "glamVault",
1031
+ "writable": true,
1032
+ "pda": {
1033
+ "seeds": [
1034
+ {
1035
+ "kind": "const",
1036
+ "value": [
1037
+ 118,
1038
+ 97,
1039
+ 117,
1040
+ 108,
1041
+ 116
1042
+ ]
1043
+ },
1044
+ {
1045
+ "kind": "account",
1046
+ "path": "glamState"
1047
+ }
1048
+ ]
1049
+ }
1050
+ },
1051
+ {
1052
+ "name": "glamSigner",
1053
+ "writable": true,
1054
+ "signer": true
1055
+ },
1056
+ {
1057
+ "name": "cpiProgram",
1058
+ "address": "Stake11111111111111111111111111111111111111"
1059
+ },
1060
+ {
1061
+ "name": "stake",
1062
+ "writable": true
1063
+ },
1064
+ {
1065
+ "name": "rent",
1066
+ "address": "SysvarRent111111111111111111111111111111111"
1067
+ },
1068
+ {
1069
+ "name": "systemProgram",
1070
+ "address": "11111111111111111111111111111111"
1071
+ }
1072
+ ],
1073
+ "args": []
1074
+ },
1075
+ {
1076
+ "name": "stakeMerge",
1077
+ "discriminator": [
1078
+ 46,
1079
+ 181,
1080
+ 125,
1081
+ 12,
1082
+ 51,
1083
+ 179,
1084
+ 134,
1085
+ 176
1086
+ ],
1087
+ "accounts": [
1088
+ {
1089
+ "name": "glamState",
1090
+ "writable": true
1091
+ },
1092
+ {
1093
+ "name": "glamVault",
1094
+ "writable": true,
1095
+ "pda": {
1096
+ "seeds": [
1097
+ {
1098
+ "kind": "const",
1099
+ "value": [
1100
+ 118,
1101
+ 97,
1102
+ 117,
1103
+ 108,
1104
+ 116
1105
+ ]
1106
+ },
1107
+ {
1108
+ "kind": "account",
1109
+ "path": "glamState"
1110
+ }
1111
+ ]
1112
+ }
1113
+ },
1114
+ {
1115
+ "name": "glamSigner",
1116
+ "writable": true,
1117
+ "signer": true
1118
+ },
1119
+ {
1120
+ "name": "cpiProgram",
1121
+ "address": "Stake11111111111111111111111111111111111111"
1122
+ },
1123
+ {
1124
+ "name": "destinationStake",
1125
+ "writable": true
1126
+ },
1127
+ {
1128
+ "name": "sourceStake",
1129
+ "writable": true
1130
+ },
1131
+ {
1132
+ "name": "clock",
1133
+ "address": "SysvarC1ock11111111111111111111111111111111"
1134
+ },
1135
+ {
1136
+ "name": "stakeHistory",
1137
+ "address": "SysvarStakeHistory1111111111111111111111111"
1138
+ }
1139
+ ],
1140
+ "args": []
1141
+ },
1142
+ {
1143
+ "name": "stakeMove",
1144
+ "discriminator": [
1145
+ 165,
1146
+ 157,
1147
+ 188,
1148
+ 245,
1149
+ 244,
1150
+ 234,
1151
+ 42,
1152
+ 186
1153
+ ],
1154
+ "accounts": [
1155
+ {
1156
+ "name": "glamState",
1157
+ "writable": true
1158
+ },
1159
+ {
1160
+ "name": "glamVault",
1161
+ "writable": true,
1162
+ "pda": {
1163
+ "seeds": [
1164
+ {
1165
+ "kind": "const",
1166
+ "value": [
1167
+ 118,
1168
+ 97,
1169
+ 117,
1170
+ 108,
1171
+ 116
1172
+ ]
1173
+ },
1174
+ {
1175
+ "kind": "account",
1176
+ "path": "glamState"
1177
+ }
1178
+ ]
1179
+ }
1180
+ },
1181
+ {
1182
+ "name": "glamSigner",
1183
+ "writable": true,
1184
+ "signer": true
1185
+ },
1186
+ {
1187
+ "name": "cpiProgram",
1188
+ "address": "Stake11111111111111111111111111111111111111"
1189
+ },
1190
+ {
1191
+ "name": "sourceStake",
1192
+ "writable": true
1193
+ },
1194
+ {
1195
+ "name": "destinationStake",
1196
+ "writable": true
1197
+ }
1198
+ ],
1199
+ "args": [
1200
+ {
1201
+ "name": "moveStake",
1202
+ "type": "bool"
1203
+ },
1204
+ {
1205
+ "name": "lamports",
1206
+ "type": "u64"
1207
+ }
1208
+ ]
1209
+ },
1210
+ {
1211
+ "name": "stakeSplit",
1212
+ "discriminator": [
1213
+ 63,
1214
+ 128,
1215
+ 169,
1216
+ 206,
1217
+ 158,
1218
+ 60,
1219
+ 135,
1220
+ 48
1221
+ ],
1222
+ "accounts": [
1223
+ {
1224
+ "name": "glamState",
1225
+ "writable": true
1226
+ },
1227
+ {
1228
+ "name": "glamVault",
1229
+ "writable": true,
1230
+ "pda": {
1231
+ "seeds": [
1232
+ {
1233
+ "kind": "const",
1234
+ "value": [
1235
+ 118,
1236
+ 97,
1237
+ 117,
1238
+ 108,
1239
+ 116
1240
+ ]
1241
+ },
1242
+ {
1243
+ "kind": "account",
1244
+ "path": "glamState"
1245
+ }
1246
+ ]
1247
+ }
1248
+ },
1249
+ {
1250
+ "name": "glamSigner",
1251
+ "writable": true,
1252
+ "signer": true
1253
+ },
1254
+ {
1255
+ "name": "cpiProgram",
1256
+ "address": "Stake11111111111111111111111111111111111111"
1257
+ },
1258
+ {
1259
+ "name": "stake",
1260
+ "writable": true
1261
+ },
1262
+ {
1263
+ "name": "splitStake",
1264
+ "writable": true
1265
+ }
1266
+ ],
1267
+ "args": [
1268
+ {
1269
+ "name": "lamports",
1270
+ "type": "u64"
1271
+ }
1272
+ ]
1273
+ },
1274
+ {
1275
+ "name": "stakeWithdraw",
1276
+ "discriminator": [
1277
+ 199,
1278
+ 13,
1279
+ 168,
1280
+ 20,
1281
+ 92,
1282
+ 151,
1283
+ 29,
1284
+ 56
1285
+ ],
1286
+ "accounts": [
1287
+ {
1288
+ "name": "glamState",
1289
+ "writable": true
1290
+ },
1291
+ {
1292
+ "name": "glamVault",
1293
+ "writable": true,
1294
+ "pda": {
1295
+ "seeds": [
1296
+ {
1297
+ "kind": "const",
1298
+ "value": [
1299
+ 118,
1300
+ 97,
1301
+ 117,
1302
+ 108,
1303
+ 116
1304
+ ]
1305
+ },
1306
+ {
1307
+ "kind": "account",
1308
+ "path": "glamState"
1309
+ }
1310
+ ]
1311
+ }
1312
+ },
1313
+ {
1314
+ "name": "glamSigner",
1315
+ "writable": true,
1316
+ "signer": true
1317
+ },
1318
+ {
1319
+ "name": "cpiProgram",
1320
+ "address": "Stake11111111111111111111111111111111111111"
1321
+ },
1322
+ {
1323
+ "name": "stake",
1324
+ "writable": true
1325
+ },
1326
+ {
1327
+ "name": "clock",
1328
+ "address": "SysvarC1ock11111111111111111111111111111111"
1329
+ },
1330
+ {
1331
+ "name": "stakeHistory",
1332
+ "address": "SysvarStakeHistory1111111111111111111111111"
1333
+ },
1334
+ {
1335
+ "name": "systemProgram",
1336
+ "address": "11111111111111111111111111111111"
1337
+ }
1338
+ ],
1339
+ "args": [
1340
+ {
1341
+ "name": "lamports",
1342
+ "type": "u64"
1343
+ }
1344
+ ]
1345
+ },
767
1346
  {
768
1347
  "name": "systemTransfer",
769
1348
  "docs": [
@@ -1258,6 +1837,11 @@ export type GlamProtocol = {
1258
1837
  "name": "delegateAclLimitExceeded",
1259
1838
  "msg": "Delegate ACL limit exceeded"
1260
1839
  },
1840
+ {
1841
+ "code": 49021,
1842
+ "name": "invalidFeeStructure",
1843
+ "msg": "Invalid fee structure"
1844
+ },
1261
1845
  {
1262
1846
  "code": 50000,
1263
1847
  "name": "withdrawDenied",
package/src/assets.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { PublicKey } from "@solana/web3.js";
2
- export declare const STAKE_POOLS: {
3
- name: string;
4
- symbol: string;
5
- mint: string;
6
- decimals: number;
7
- logoURI: string;
8
- tokenProgram: PublicKey;
9
- poolState: PublicKey;
10
- isMarinade: boolean;
11
- }[];
12
- export declare const STAKE_POOLS_MAP: Map<string, {
13
- name: string;
14
- symbol: string;
15
- mint: string;
16
- decimals: number;
17
- logoURI: string;
18
- tokenProgram: PublicKey;
19
- poolState: PublicKey;
20
- isMarinade: boolean;
21
- }>;
22
- /**
23
- * Metadata for an asset for pricing
24
- */
25
- export interface AssetMeta {
26
- asset: PublicKey;
27
- decimals: number;
28
- oracle: PublicKey;
29
- programId: PublicKey;
30
- oracleSource?: string;
31
- }
32
- /**
33
- * Legacy asset metadata snapshot retained for backward compatibility.
34
- *
35
- * Runtime consumers should prefer the onchain-backed helpers in `globalConfig.ts`.
36
- * Note that we use functional prices for LSTs, and the oracle pubkey of a LST
37
- * asset is the pool state.
38
- */
39
- export declare const ASSETS_MAINNET: Map<string, AssetMeta>;
40
- export declare const ASSETS_TESTS: Map<string, AssetMeta>;
@@ -1,57 +0,0 @@
1
- import { PublicKey, VersionedTransaction, TransactionSignature, TransactionInstruction } from "@solana/web3.js";
2
- import { BN } from "@coral-xyz/anchor";
3
- import { BaseClient, BaseTxBuilder, TxOptions } from "./base";
4
- import { EmergencyAccessUpdateArgs } from "../models";
5
- declare class TxBuilder extends BaseTxBuilder<AccessClient> {
6
- emergencyAccessUpdateIx(args: Partial<EmergencyAccessUpdateArgs>, signer?: PublicKey): Promise<TransactionInstruction>;
7
- emergencyAccessUpdateTx(args: Partial<EmergencyAccessUpdateArgs>, txOptions?: TxOptions): Promise<VersionedTransaction>;
8
- enableDisableProtocolsIx(integrationProgram: PublicKey, protocolBitmask: number, setEnabled: boolean, glamSigner: PublicKey): Promise<TransactionInstruction>;
9
- enableDisableProtocolsTx(integrationProgram: PublicKey, protocolBitmask: number, setEnabled: boolean, txOptions: TxOptions): Promise<VersionedTransaction>;
10
- grantRevokeDelegatePermissionsIx(delegate: PublicKey, integrationProgram: PublicKey, protocolBitflag: number, permissionsBitmask: BN, setGranted: boolean, signer?: PublicKey): Promise<TransactionInstruction>;
11
- grantRevokeDelegatePermissionsTx(delegate: PublicKey, integrationProgram: PublicKey, protocolBitflag: number, permissionsBitmask: BN, setGranted: boolean, txOptions: TxOptions): Promise<VersionedTransaction>;
12
- addAssetsIx(assets: PublicKey[], signer?: PublicKey): Promise<TransactionInstruction>;
13
- addAssetsTx(assets: PublicKey[], txOptions?: TxOptions): Promise<VersionedTransaction>;
14
- deleteAssetsIx(assets: PublicKey[], signer?: PublicKey): Promise<TransactionInstruction>;
15
- deleteAssetsTx(assets: PublicKey[], txOptions?: TxOptions): Promise<VersionedTransaction>;
16
- setProtocolPolicyIx(integrationProgram: PublicKey, protocolBitflag: number, data: Buffer, glamSigner: PublicKey): Promise<TransactionInstruction>;
17
- setProtocolPolicyTx(integrationProgram: PublicKey, protocolBitflag: number, data: Buffer, txOptions: TxOptions): Promise<VersionedTransaction>;
18
- }
19
- export declare class AccessClient {
20
- readonly base: BaseClient;
21
- txBuilder: TxBuilder;
22
- constructor(base: BaseClient);
23
- /**
24
- * Add assets to the vault allowlist
25
- */
26
- addAssets(assets: PublicKey[], txOptions?: TxOptions): Promise<TransactionSignature>;
27
- /**
28
- * Delete assets from the vault allowlist.
29
- * Assets must have zero vault balance (ATA empty or non-existent).
30
- */
31
- deleteAssets(assets: PublicKey[], txOptions?: TxOptions): Promise<TransactionSignature>;
32
- /**
33
- * Emergency access update - bypasses timelock for critical access control changes
34
- */
35
- emergencyAccessUpdate(args: Partial<EmergencyAccessUpdateArgs>, txOptions?: TxOptions): Promise<TransactionSignature>;
36
- /**
37
- * Enable protocols for an integration program
38
- */
39
- enableProtocols(integrationProgram: PublicKey, protocolBitmask: number, txOptions?: TxOptions): Promise<TransactionSignature>;
40
- /**
41
- * Disable protocols for an integration program
42
- */
43
- disableProtocols(integrationProgram: PublicKey, protocolBitmask: number, txOptions?: TxOptions): Promise<TransactionSignature>;
44
- /**
45
- * Grant delegate permissions for a specific protocol
46
- */
47
- grantDelegatePermissions(delegate: PublicKey, integrationProgram: PublicKey, protocolBitflag: number, permissionsBitmask: BN, txOptions?: TxOptions): Promise<TransactionSignature>;
48
- /**
49
- * Revoke delegate permissions for a specific protocol
50
- */
51
- revokeDelegatePermissions(delegate: PublicKey, integrationProgram: PublicKey, protocolBitflag: number, permissionsBitmask: BN, txOptions?: TxOptions): Promise<TransactionSignature>;
52
- /**
53
- * Set protocol policy data for an integration
54
- */
55
- setProtocolPolicy(integrationProgram: PublicKey, protocolBitflag: number, data: Buffer, txOptions?: TxOptions): Promise<TransactionSignature>;
56
- }
57
- export {};