@glamsystems/glam-sdk 1.0.11 → 1.0.12-alpha.1

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 (44) hide show
  1. package/index.cjs.js +11042 -7906
  2. package/index.esm.js +11037 -7906
  3. package/package.json +1 -1
  4. package/src/client/base.d.ts +5 -1
  5. package/src/client/fees.d.ts +3 -0
  6. package/src/client/mint.d.ts +5 -1
  7. package/src/client/price.d.ts +3 -2
  8. package/src/clientConfig.d.ts +1 -0
  9. package/src/constants.d.ts +3 -3
  10. package/src/deser/integrationPolicies.d.ts +29 -1
  11. package/src/glamExports.d.ts +527 -51
  12. package/src/models/state.d.ts +3 -1
  13. package/src/react/glam.d.ts +1 -0
  14. package/src/react/index.d.ts +2 -0
  15. package/src/react/query-keys.d.ts +39 -0
  16. package/src/react/useVaultBalanceSubscription.d.ts +17 -0
  17. package/src/utils/bitmask.d.ts +4 -3
  18. package/src/utils/index.d.ts +0 -1
  19. package/src/utils/jupiterApi.d.ts +1 -1
  20. package/src/utils/lookupTables.d.ts +45 -1
  21. package/src/utils/timelock.d.ts +4 -4
  22. package/src/utils/transaction.d.ts +1 -1
  23. package/target/idl/ext_drift-staging.json +4 -0
  24. package/target/idl/ext_drift.json +4 -0
  25. package/target/idl/glam_config.json +12 -2
  26. package/target/idl/glam_mint-staging.json +16 -186
  27. package/target/idl/glam_mint.json +16 -186
  28. package/target/idl/glam_policies.json +6 -1
  29. package/target/idl/glam_protocol-staging.json +536 -7
  30. package/target/idl/glam_protocol.json +536 -7
  31. package/target/types/ext_drift-staging.ts +4 -0
  32. package/target/types/ext_drift.d.ts +4 -0
  33. package/target/types/ext_drift.ts +4 -0
  34. package/target/types/ext_offchain.d.ts +1080 -0
  35. package/target/types/glam_config.d.ts +12 -2
  36. package/target/types/glam_config.ts +12 -2
  37. package/target/types/glam_mint-staging.ts +16 -186
  38. package/target/types/glam_mint.d.ts +16 -186
  39. package/target/types/glam_mint.ts +16 -186
  40. package/target/types/glam_policies.ts +6 -1
  41. package/target/types/glam_protocol-staging.ts +536 -7
  42. package/target/types/glam_protocol.d.ts +536 -7
  43. package/target/types/glam_protocol.ts +536 -7
  44. package/src/utils/glamApi.d.ts +0 -12
@@ -9,6 +9,7 @@ import type { ExtKamino } from "../target/types/ext_kamino";
9
9
  import type { ExtMarinade } from "../target/types/ext_marinade";
10
10
  import type { ExtStakePool } from "../target/types/ext_stake_pool";
11
11
  import type { ExtCctp } from "../target/types/ext_cctp";
12
+ import type { ExtOffchain } from "../target/types/ext_offchain";
12
13
  export { GlamProtocol, GlamMint, GlamConfig };
13
14
  export type GlamProtocolProgram = Program<GlamProtocol>;
14
15
  export type GlamConfigProgram = Program<GlamConfig>;
@@ -19,8 +20,10 @@ export type ExtKaminoProgram = Program<ExtKamino>;
19
20
  export type ExtMarinadeProgram = Program<ExtMarinade>;
20
21
  export type ExtStakePoolProgram = Program<ExtStakePool>;
21
22
  export type ExtCctpProgram = Program<ExtCctp>;
22
- export declare const isStaging: () => boolean;
23
- export declare function getGlamProtocolIdl(): {
23
+ export type ExtOffchainProgram = Program<ExtOffchain>;
24
+ /** Resolve staging flag: explicit param overrides env-var default */
25
+ export declare function resolveStaging(useStaging?: boolean): boolean;
26
+ export declare function getGlamProtocolIdl(staging: boolean): {
24
27
  address: string;
25
28
  metadata: {
26
29
  name: string;
@@ -29,6 +32,126 @@ export declare function getGlamProtocolIdl(): {
29
32
  description: string;
30
33
  };
31
34
  instructions: ({
35
+ name: string;
36
+ docs: string[];
37
+ discriminator: number[];
38
+ accounts: ({
39
+ name: string;
40
+ writable: boolean;
41
+ pda?: undefined;
42
+ signer?: undefined;
43
+ address?: undefined;
44
+ } | {
45
+ name: string;
46
+ writable: boolean;
47
+ pda: {
48
+ seeds: ({
49
+ kind: string;
50
+ value: number[];
51
+ path?: undefined;
52
+ } | {
53
+ kind: string;
54
+ path: string;
55
+ value?: undefined;
56
+ })[];
57
+ program?: undefined;
58
+ };
59
+ signer?: undefined;
60
+ address?: undefined;
61
+ } | {
62
+ name: string;
63
+ writable: boolean;
64
+ signer: boolean;
65
+ pda?: undefined;
66
+ address?: undefined;
67
+ } | {
68
+ name: string;
69
+ writable?: undefined;
70
+ pda?: undefined;
71
+ signer?: undefined;
72
+ address?: undefined;
73
+ } | {
74
+ name: string;
75
+ writable: boolean;
76
+ pda: {
77
+ seeds: {
78
+ kind: string;
79
+ path: string;
80
+ }[];
81
+ program: {
82
+ kind: string;
83
+ value: number[];
84
+ };
85
+ };
86
+ signer?: undefined;
87
+ address?: undefined;
88
+ } | {
89
+ name: string;
90
+ pda: {
91
+ seeds: {
92
+ kind: string;
93
+ value: number[];
94
+ }[];
95
+ program: {
96
+ kind: string;
97
+ value: number[];
98
+ };
99
+ };
100
+ writable?: undefined;
101
+ signer?: undefined;
102
+ address?: undefined;
103
+ } | {
104
+ name: string;
105
+ address: string;
106
+ writable?: undefined;
107
+ pda?: undefined;
108
+ signer?: undefined;
109
+ })[];
110
+ args: never[];
111
+ } | {
112
+ name: string;
113
+ discriminator: number[];
114
+ accounts: ({
115
+ name: string;
116
+ writable?: undefined;
117
+ signer?: undefined;
118
+ pda?: undefined;
119
+ address?: undefined;
120
+ } | {
121
+ name: string;
122
+ writable: boolean;
123
+ signer: boolean;
124
+ pda?: undefined;
125
+ address?: undefined;
126
+ } | {
127
+ name: string;
128
+ writable: boolean;
129
+ pda: {
130
+ seeds: ({
131
+ kind: string;
132
+ value: number[];
133
+ path?: undefined;
134
+ } | {
135
+ kind: string;
136
+ path: string;
137
+ value?: undefined;
138
+ })[];
139
+ };
140
+ signer?: undefined;
141
+ address?: undefined;
142
+ } | {
143
+ name: string;
144
+ address: string;
145
+ writable?: undefined;
146
+ signer?: undefined;
147
+ pda?: undefined;
148
+ })[];
149
+ args: {
150
+ name: string;
151
+ type: string;
152
+ }[];
153
+ docs?: undefined;
154
+ } | {
32
155
  name: string;
33
156
  docs: string[];
34
157
  discriminator: number[];
@@ -345,6 +468,7 @@ export declare function getGlamProtocolIdl(): {
345
468
  fields?: undefined;
346
469
  };
347
470
  docs?: undefined;
471
+ repr?: undefined;
348
472
  } | {
349
473
  name: string;
350
474
  type: {
@@ -365,6 +489,7 @@ export declare function getGlamProtocolIdl(): {
365
489
  variants?: undefined;
366
490
  };
367
491
  docs?: undefined;
492
+ repr?: undefined;
368
493
  } | {
369
494
  name: string;
370
495
  type: {
@@ -409,6 +534,7 @@ export declare function getGlamProtocolIdl(): {
409
534
  fields?: undefined;
410
535
  };
411
536
  docs?: undefined;
537
+ repr?: undefined;
412
538
  } | {
413
539
  name: string;
414
540
  type: {
@@ -434,6 +560,7 @@ export declare function getGlamProtocolIdl(): {
434
560
  variants?: undefined;
435
561
  };
436
562
  docs?: undefined;
563
+ repr?: undefined;
437
564
  } | {
438
565
  name: string;
439
566
  docs: string[];
@@ -454,6 +581,7 @@ export declare function getGlamProtocolIdl(): {
454
581
  })[];
455
582
  variants?: undefined;
456
583
  };
584
+ repr?: undefined;
457
585
  } | {
458
586
  name: string;
459
587
  type: {
@@ -472,6 +600,7 @@ export declare function getGlamProtocolIdl(): {
472
600
  variants?: undefined;
473
601
  };
474
602
  docs?: undefined;
603
+ repr?: undefined;
475
604
  } | {
476
605
  name: string;
477
606
  docs: string[];
@@ -494,6 +623,20 @@ export declare function getGlamProtocolIdl(): {
494
623
  })[];
495
624
  variants?: undefined;
496
625
  };
626
+ repr?: undefined;
627
+ } | {
628
+ name: string;
629
+ repr: {
630
+ kind: string;
631
+ };
632
+ type: {
633
+ kind: string;
634
+ variants: {
635
+ name: string;
636
+ }[];
637
+ fields?: undefined;
638
+ };
639
+ docs?: undefined;
497
640
  } | {
498
641
  name: string;
499
642
  type: {
@@ -554,6 +697,7 @@ export declare function getGlamProtocolIdl(): {
554
697
  variants?: undefined;
555
698
  };
556
699
  docs?: undefined;
700
+ repr?: undefined;
557
701
  } | {
558
702
  name: string;
559
703
  type: {
@@ -609,6 +753,7 @@ export declare function getGlamProtocolIdl(): {
609
753
  variants?: undefined;
610
754
  };
611
755
  docs?: undefined;
756
+ repr?: undefined;
612
757
  })[];
613
758
  constants: {
614
759
  name: string;
@@ -624,6 +769,126 @@ export declare function getGlamProtocolIdl(): {
624
769
  description: string;
625
770
  };
626
771
  instructions: ({
772
+ name: string;
773
+ docs: string[];
774
+ discriminator: number[];
775
+ accounts: ({
776
+ name: string;
777
+ writable: boolean;
778
+ pda?: undefined;
779
+ signer?: undefined;
780
+ address?: undefined;
781
+ } | {
782
+ name: string;
783
+ writable: boolean;
784
+ pda: {
785
+ seeds: ({
786
+ kind: string;
787
+ value: number[];
788
+ path?: undefined;
789
+ } | {
790
+ kind: string;
791
+ path: string;
792
+ value?: undefined;
793
+ })[];
794
+ program?: undefined;
795
+ };
796
+ signer?: undefined;
797
+ address?: undefined;
798
+ } | {
799
+ name: string;
800
+ writable: boolean;
801
+ signer: boolean;
802
+ pda?: undefined;
803
+ address?: undefined;
804
+ } | {
805
+ name: string;
806
+ writable?: undefined;
807
+ pda?: undefined;
808
+ signer?: undefined;
809
+ address?: undefined;
810
+ } | {
811
+ name: string;
812
+ writable: boolean;
813
+ pda: {
814
+ seeds: {
815
+ kind: string;
816
+ path: string;
817
+ }[];
818
+ program: {
819
+ kind: string;
820
+ value: number[];
821
+ };
822
+ };
823
+ signer?: undefined;
824
+ address?: undefined;
825
+ } | {
826
+ name: string;
827
+ pda: {
828
+ seeds: {
829
+ kind: string;
830
+ value: number[];
831
+ }[];
832
+ program: {
833
+ kind: string;
834
+ value: number[];
835
+ };
836
+ };
837
+ writable?: undefined;
838
+ signer?: undefined;
839
+ address?: undefined;
840
+ } | {
841
+ name: string;
842
+ address: string;
843
+ writable?: undefined;
844
+ pda?: undefined;
845
+ signer?: undefined;
846
+ })[];
847
+ args: never[];
848
+ } | {
849
+ name: string;
850
+ discriminator: number[];
851
+ accounts: ({
852
+ name: string;
853
+ writable?: undefined;
854
+ signer?: undefined;
855
+ pda?: undefined;
856
+ address?: undefined;
857
+ } | {
858
+ name: string;
859
+ writable: boolean;
860
+ signer: boolean;
861
+ pda?: undefined;
862
+ address?: undefined;
863
+ } | {
864
+ name: string;
865
+ writable: boolean;
866
+ pda: {
867
+ seeds: ({
868
+ kind: string;
869
+ value: number[];
870
+ path?: undefined;
871
+ } | {
872
+ kind: string;
873
+ path: string;
874
+ value?: undefined;
875
+ })[];
876
+ };
877
+ signer?: undefined;
878
+ address?: undefined;
879
+ } | {
880
+ name: string;
881
+ address: string;
882
+ writable?: undefined;
883
+ signer?: undefined;
884
+ pda?: undefined;
885
+ })[];
886
+ args: {
887
+ name: string;
888
+ type: string;
889
+ }[];
890
+ docs?: undefined;
891
+ } | {
627
892
  name: string;
628
893
  docs: string[];
629
894
  discriminator: number[];
@@ -957,6 +1222,7 @@ export declare function getGlamProtocolIdl(): {
957
1222
  fields?: undefined;
958
1223
  };
959
1224
  docs?: undefined;
1225
+ repr?: undefined;
960
1226
  } | {
961
1227
  name: string;
962
1228
  type: {
@@ -977,6 +1243,7 @@ export declare function getGlamProtocolIdl(): {
977
1243
  variants?: undefined;
978
1244
  };
979
1245
  docs?: undefined;
1246
+ repr?: undefined;
980
1247
  } | {
981
1248
  name: string;
982
1249
  type: {
@@ -1021,6 +1288,7 @@ export declare function getGlamProtocolIdl(): {
1021
1288
  fields?: undefined;
1022
1289
  };
1023
1290
  docs?: undefined;
1291
+ repr?: undefined;
1024
1292
  } | {
1025
1293
  name: string;
1026
1294
  type: {
@@ -1046,6 +1314,7 @@ export declare function getGlamProtocolIdl(): {
1046
1314
  variants?: undefined;
1047
1315
  };
1048
1316
  docs?: undefined;
1317
+ repr?: undefined;
1049
1318
  } | {
1050
1319
  name: string;
1051
1320
  docs: string[];
@@ -1066,6 +1335,7 @@ export declare function getGlamProtocolIdl(): {
1066
1335
  })[];
1067
1336
  variants?: undefined;
1068
1337
  };
1338
+ repr?: undefined;
1069
1339
  } | {
1070
1340
  name: string;
1071
1341
  type: {
@@ -1084,6 +1354,7 @@ export declare function getGlamProtocolIdl(): {
1084
1354
  variants?: undefined;
1085
1355
  };
1086
1356
  docs?: undefined;
1357
+ repr?: undefined;
1087
1358
  } | {
1088
1359
  name: string;
1089
1360
  docs: string[];
@@ -1106,6 +1377,20 @@ export declare function getGlamProtocolIdl(): {
1106
1377
  })[];
1107
1378
  variants?: undefined;
1108
1379
  };
1380
+ repr?: undefined;
1381
+ } | {
1382
+ name: string;
1383
+ repr: {
1384
+ kind: string;
1385
+ };
1386
+ type: {
1387
+ kind: string;
1388
+ variants: {
1389
+ name: string;
1390
+ }[];
1391
+ fields?: undefined;
1392
+ };
1393
+ docs?: undefined;
1109
1394
  } | {
1110
1395
  name: string;
1111
1396
  type: {
@@ -1166,6 +1451,7 @@ export declare function getGlamProtocolIdl(): {
1166
1451
  variants?: undefined;
1167
1452
  };
1168
1453
  docs?: undefined;
1454
+ repr?: undefined;
1169
1455
  } | {
1170
1456
  name: string;
1171
1457
  type: {
@@ -1221,6 +1507,7 @@ export declare function getGlamProtocolIdl(): {
1221
1507
  variants?: undefined;
1222
1508
  };
1223
1509
  docs?: undefined;
1510
+ repr?: undefined;
1224
1511
  })[];
1225
1512
  constants: {
1226
1513
  name: string;
@@ -1228,7 +1515,7 @@ export declare function getGlamProtocolIdl(): {
1228
1515
  value: string;
1229
1516
  }[];
1230
1517
  };
1231
- export declare function getGlamMintIdl(): {
1518
+ export declare function getGlamMintIdl(staging: boolean): {
1232
1519
  address: string;
1233
1520
  metadata: {
1234
1521
  name: string;
@@ -2281,32 +2568,6 @@ export declare function getGlamMintIdl(): {
2281
2568
  fields?: undefined;
2282
2569
  };
2283
2570
  docs?: undefined;
2284
- } | {
2285
- name: string;
2286
- type: {
2287
- kind: string;
2288
- fields: ({
2289
- name: string;
2290
- docs: string[];
2291
- type: string;
2292
- } | {
2293
- name: string;
2294
- type: string;
2295
- docs?: undefined;
2296
- } | {
2297
- name: string;
2298
- type: {
2299
- vec: {
2300
- defined: {
2301
- name: string;
2302
- };
2303
- };
2304
- };
2305
- docs?: undefined;
2306
- })[];
2307
- variants?: undefined;
2308
- };
2309
- docs?: undefined;
2310
2571
  } | {
2311
2572
  name: string;
2312
2573
  docs: string[];
@@ -2476,7 +2737,7 @@ export declare function getGlamMintIdl(): {
2476
2737
  value: string;
2477
2738
  }[];
2478
2739
  };
2479
- export declare function getExtSplIdl(): {
2740
+ export declare function getExtSplIdl(staging: boolean): {
2480
2741
  address: string;
2481
2742
  metadata: {
2482
2743
  name: string;
@@ -2743,7 +3004,7 @@ export declare function getExtSplIdl(): {
2743
3004
  value: string;
2744
3005
  }[];
2745
3006
  };
2746
- export declare function getExtDriftIdl(): {
3007
+ export declare function getExtDriftIdl(staging: boolean): {
2747
3008
  address: string;
2748
3009
  metadata: {
2749
3010
  name: string;
@@ -3395,7 +3656,7 @@ export declare function getExtDriftIdl(): {
3395
3656
  value: string;
3396
3657
  }[];
3397
3658
  };
3398
- export declare function getExtKaminoIdl(): {
3659
+ export declare function getExtKaminoIdl(staging: boolean): {
3399
3660
  address: string;
3400
3661
  metadata: {
3401
3662
  name: string;
@@ -3723,7 +3984,7 @@ export declare function getExtKaminoIdl(): {
3723
3984
  value: string;
3724
3985
  }[];
3725
3986
  };
3726
- export declare function getExtStakePoolIdl(): {
3987
+ export declare function getExtStakePoolIdl(staging: boolean): {
3727
3988
  address: string;
3728
3989
  metadata: {
3729
3990
  name: string;
@@ -3968,7 +4229,7 @@ export declare function getExtStakePoolIdl(): {
3968
4229
  value: string;
3969
4230
  }[];
3970
4231
  };
3971
- export declare function getExtCctpIdl(): {
4232
+ export declare function getExtCctpIdl(staging: boolean): {
3972
4233
  address: string;
3973
4234
  metadata: {
3974
4235
  name: string;
@@ -4212,7 +4473,7 @@ export declare function getExtCctpIdl(): {
4212
4473
  value: string;
4213
4474
  }[];
4214
4475
  };
4215
- export declare function getExtMarinadeIdl(): {
4476
+ export declare function getExtMarinadeIdl(staging: boolean): {
4216
4477
  address: string;
4217
4478
  metadata: {
4218
4479
  name: string;
@@ -4453,20 +4714,235 @@ export declare function getExtMarinadeIdl(): {
4453
4714
  value: string;
4454
4715
  }[];
4455
4716
  };
4456
- export declare function getGlamProtocolProgramId(): PublicKey;
4457
- export declare function getGlamMintProgramId(): PublicKey;
4458
- export declare function getExtSplProgramId(): PublicKey;
4459
- export declare function getExtDriftProgramId(): PublicKey;
4460
- export declare function getExtKaminoProgramId(): PublicKey;
4461
- export declare function getExtStakePoolProgramId(): PublicKey;
4462
- export declare function getExtCctpProgramId(): PublicKey;
4463
- export declare function getExtMarinadeProgramId(): PublicKey;
4464
- export declare function getGlamProtocolProgram(provider: Provider): GlamProtocolProgram;
4465
- export declare function getGlamMintProgram(provider: Provider): GlamMintProgram;
4717
+ export declare function getExtOffchainIdl(staging: boolean): {
4718
+ address: string;
4719
+ metadata: {
4720
+ name: string;
4721
+ version: string;
4722
+ spec: string;
4723
+ description: string;
4724
+ };
4725
+ instructions: {
4726
+ name: string;
4727
+ discriminator: number[];
4728
+ accounts: ({
4729
+ name: string;
4730
+ writable: boolean;
4731
+ signer?: undefined;
4732
+ pda?: undefined;
4733
+ address?: undefined;
4734
+ } | {
4735
+ name: string;
4736
+ signer: boolean;
4737
+ writable?: undefined;
4738
+ pda?: undefined;
4739
+ address?: undefined;
4740
+ } | {
4741
+ name: string;
4742
+ pda: {
4743
+ seeds: {
4744
+ kind: string;
4745
+ value: number[];
4746
+ }[];
4747
+ };
4748
+ writable?: undefined;
4749
+ signer?: undefined;
4750
+ address?: undefined;
4751
+ } | {
4752
+ name: string;
4753
+ address: string;
4754
+ writable?: undefined;
4755
+ signer?: undefined;
4756
+ pda?: undefined;
4757
+ })[];
4758
+ args: {
4759
+ name: string;
4760
+ type: string;
4761
+ }[];
4762
+ }[];
4763
+ accounts: {
4764
+ name: string;
4765
+ discriminator: number[];
4766
+ }[];
4767
+ types: ({
4768
+ name: string;
4769
+ type: {
4770
+ kind: string;
4771
+ variants: {
4772
+ name: string;
4773
+ }[];
4774
+ fields?: undefined;
4775
+ };
4776
+ docs?: undefined;
4777
+ } | {
4778
+ name: string;
4779
+ type: {
4780
+ kind: string;
4781
+ variants: ({
4782
+ name: string;
4783
+ fields: {
4784
+ name: string;
4785
+ type: string;
4786
+ }[];
4787
+ } | {
4788
+ name: string;
4789
+ fields: {
4790
+ name: string;
4791
+ type: {
4792
+ vec: string;
4793
+ };
4794
+ }[];
4795
+ } | {
4796
+ name: string;
4797
+ fields: {
4798
+ name: string;
4799
+ type: {
4800
+ vec: {
4801
+ defined: {
4802
+ name: string;
4803
+ };
4804
+ };
4805
+ };
4806
+ }[];
4807
+ } | {
4808
+ name: string;
4809
+ fields: {
4810
+ name: string;
4811
+ type: {
4812
+ defined: {
4813
+ name: string;
4814
+ };
4815
+ };
4816
+ }[];
4817
+ })[];
4818
+ fields?: undefined;
4819
+ };
4820
+ docs?: undefined;
4821
+ } | {
4822
+ name: string;
4823
+ docs: string[];
4824
+ type: {
4825
+ kind: string;
4826
+ fields: ({
4827
+ name: string;
4828
+ type: string;
4829
+ } | {
4830
+ name: string;
4831
+ type: {
4832
+ vec: {
4833
+ defined: {
4834
+ name: string;
4835
+ };
4836
+ };
4837
+ };
4838
+ })[];
4839
+ variants?: undefined;
4840
+ };
4841
+ } | {
4842
+ name: string;
4843
+ docs: string[];
4844
+ type: {
4845
+ kind: string;
4846
+ fields: ({
4847
+ name: string;
4848
+ type: {
4849
+ vec: {
4850
+ array: (string | number)[];
4851
+ };
4852
+ array?: undefined;
4853
+ };
4854
+ } | {
4855
+ name: string;
4856
+ type: {
4857
+ array: (string | number)[];
4858
+ vec?: undefined;
4859
+ };
4860
+ })[];
4861
+ variants?: undefined;
4862
+ };
4863
+ } | {
4864
+ name: string;
4865
+ type: {
4866
+ kind: string;
4867
+ fields: ({
4868
+ name: string;
4869
+ type: {
4870
+ defined: {
4871
+ name: string;
4872
+ };
4873
+ array?: undefined;
4874
+ vec?: undefined;
4875
+ };
4876
+ } | {
4877
+ name: string;
4878
+ type: string;
4879
+ } | {
4880
+ name: string;
4881
+ type: {
4882
+ array: (string | number)[];
4883
+ defined?: undefined;
4884
+ vec?: undefined;
4885
+ };
4886
+ } | {
4887
+ name: string;
4888
+ type: {
4889
+ vec: string;
4890
+ defined?: undefined;
4891
+ array?: undefined;
4892
+ };
4893
+ } | {
4894
+ name: string;
4895
+ type: {
4896
+ vec: {
4897
+ defined: {
4898
+ name: string;
4899
+ };
4900
+ vec?: undefined;
4901
+ };
4902
+ defined?: undefined;
4903
+ array?: undefined;
4904
+ };
4905
+ } | {
4906
+ name: string;
4907
+ type: {
4908
+ vec: {
4909
+ vec: {
4910
+ defined: {
4911
+ name: string;
4912
+ };
4913
+ };
4914
+ defined?: undefined;
4915
+ };
4916
+ defined?: undefined;
4917
+ array?: undefined;
4918
+ };
4919
+ })[];
4920
+ variants?: undefined;
4921
+ };
4922
+ docs?: undefined;
4923
+ })[];
4924
+ constants: {
4925
+ name: string;
4926
+ type: string;
4927
+ value: string;
4928
+ }[];
4929
+ };
4930
+ export declare function getGlamProtocolProgramId(staging: boolean): PublicKey;
4931
+ export declare function getGlamMintProgramId(staging: boolean): PublicKey;
4932
+ export declare function getExtSplProgramId(staging: boolean): PublicKey;
4933
+ export declare function getExtDriftProgramId(staging: boolean): PublicKey;
4934
+ export declare function getExtKaminoProgramId(staging: boolean): PublicKey;
4935
+ export declare function getExtStakePoolProgramId(staging: boolean): PublicKey;
4936
+ export declare function getExtCctpProgramId(staging: boolean): PublicKey;
4937
+ export declare function getExtMarinadeProgramId(staging: boolean): PublicKey;
4938
+ export declare function getExtOffchainProgramId(staging: boolean): PublicKey;
4939
+ export declare function getGlamProtocolProgram(provider: Provider, staging: boolean): GlamProtocolProgram;
4940
+ export declare function getGlamMintProgram(provider: Provider, staging: boolean): GlamMintProgram;
4466
4941
  export declare function getGlamConfigProgram(provider: Provider): GlamConfigProgram;
4467
- export declare function getExtSplProgram(provider: Provider): ExtSplProgram;
4468
- export declare function getExtDriftProgram(provider: Provider): ExtDriftProgram;
4469
- export declare function getExtKaminoProgram(provider: Provider): ExtKaminoProgram;
4470
- export declare function getExtMarinadeProgram(provider: Provider): ExtMarinadeProgram;
4471
- export declare function getExtStakePoolProgram(provider: Provider): ExtStakePoolProgram;
4472
- export declare function getExtCctpProgram(provider: Provider): ExtCctpProgram;
4942
+ export declare function getExtSplProgram(provider: Provider, staging: boolean): ExtSplProgram;
4943
+ export declare function getExtDriftProgram(provider: Provider, staging: boolean): ExtDriftProgram;
4944
+ export declare function getExtKaminoProgram(provider: Provider, staging: boolean): ExtKaminoProgram;
4945
+ export declare function getExtMarinadeProgram(provider: Provider, staging: boolean): ExtMarinadeProgram;
4946
+ export declare function getExtStakePoolProgram(provider: Provider, staging: boolean): ExtStakePoolProgram;
4947
+ export declare function getExtCctpProgram(provider: Provider, staging: boolean): ExtCctpProgram;
4948
+ export declare function getExtOffchainProgram(provider: Provider, staging: boolean): ExtOffchainProgram;