@glamsystems/glam-sdk 1.0.12 → 1.0.13-test
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.
- package/LICENSE +201 -0
- package/README.md +1 -1
- package/index.cjs.js +1 -57320
- package/index.esm.js +1 -57081
- package/package.json +26 -15
- package/src/assets.d.ts +10 -17
- package/src/client/access.d.ts +13 -0
- package/src/client/base.d.ts +30 -7
- package/src/client/bridge.d.ts +183 -0
- package/src/client/bridgeRegistry.d.ts +32 -0
- package/src/client/epi.d.ts +78 -0
- package/src/client/fees.d.ts +4 -0
- package/src/client/invest.d.ts +1 -1
- package/src/client/jupiter.d.ts +27 -20
- package/src/client/loopscale.d.ts +84 -0
- package/src/client/mint.d.ts +54 -1
- package/src/client/price.d.ts +26 -39
- package/src/client.d.ts +9 -5
- package/src/constants.d.ts +11 -7
- package/src/deser/index.d.ts +1 -1
- package/src/deser/integrationPolicies.d.ts +30 -20
- package/src/deser/tokenAclLayouts.d.ts +67 -0
- package/src/error.d.ts +2 -1
- package/src/glamExports.d.ts +1351 -1546
- package/src/globalConfig.d.ts +27 -0
- package/src/index.d.ts +5 -1
- package/src/models/state.d.ts +2 -0
- package/src/utils/accounts.d.ts +9 -1
- package/src/utils/bitmask.d.ts +3 -0
- package/src/utils/common.d.ts +2 -0
- package/src/utils/glamPDAs.d.ts +6 -0
- package/src/utils/index.d.ts +0 -1
- package/src/utils/pkmap.d.ts +23 -18
- package/src/utils/positionCategorizer.d.ts +3 -21
- package/target/idl/ext_bridge-staging.json +2379 -0
- package/target/idl/ext_bridge.json +2379 -0
- package/target/idl/ext_cctp.json +1 -1
- package/target/idl/ext_drift.json +1613 -142
- package/target/idl/ext_epi-staging.json +2169 -0
- package/target/idl/ext_epi.json +2169 -0
- package/target/idl/ext_kamino-staging.json +1 -1
- package/target/idl/ext_kamino.json +109 -1
- package/target/idl/{ext_drift-staging.json → ext_loopscale-staging.json} +986 -1438
- package/target/idl/ext_loopscale.json +3541 -0
- package/target/idl/ext_marinade-staging.json +1587 -0
- package/target/idl/ext_spl-staging.json +1 -1
- package/target/idl/ext_spl.json +1 -1
- package/target/idl/glam_config.json +78 -9
- package/target/idl/glam_mint-staging.json +3002 -1244
- package/target/idl/glam_mint.json +239 -8
- package/target/idl/glam_policies.json +2 -7
- package/target/idl/glam_protocol-staging.json +187 -266
- package/target/idl/glam_protocol.json +217 -114
- package/target/idl/mock_layerzero_endpoint.json +144 -0
- package/target/idl/mock_layerzero_oft.json +155 -0
- package/target/types/ext_bridge-staging.d.ts +2385 -0
- package/target/types/ext_bridge-staging.ts +2385 -0
- package/target/types/ext_bridge.d.ts +2385 -0
- package/target/types/ext_bridge.ts +2385 -0
- package/target/types/ext_cctp.d.ts +1 -1
- package/target/types/ext_cctp.ts +1 -1
- package/target/types/ext_drift.d.ts +1609 -138
- package/target/types/ext_drift.ts +1613 -142
- package/target/types/ext_epi-staging.d.ts +2175 -0
- package/target/types/ext_epi-staging.ts +2175 -0
- package/target/types/ext_epi.d.ts +2175 -0
- package/target/types/ext_epi.ts +2175 -0
- package/target/types/ext_kamino-staging.d.ts +3433 -0
- package/target/types/ext_kamino-staging.ts +1 -1
- package/target/types/ext_kamino.d.ts +109 -1
- package/target/types/ext_kamino.ts +109 -1
- package/target/types/ext_loopscale-staging.d.ts +3547 -0
- package/target/types/{ext_drift-staging.ts → ext_loopscale-staging.ts} +988 -1440
- package/target/types/ext_loopscale.d.ts +3547 -0
- package/target/types/ext_loopscale.ts +3547 -0
- package/target/types/ext_marinade-staging.d.ts +1593 -0
- package/target/types/ext_marinade-staging.ts +1593 -0
- package/target/types/{ext_offchain.d.ts → ext_spl-staging.d.ts} +219 -19
- package/target/types/ext_spl-staging.ts +1 -1
- package/target/types/ext_spl.d.ts +1 -1
- package/target/types/ext_spl.ts +1 -1
- package/target/types/ext_stake_pool-staging.d.ts +1622 -0
- package/target/types/glam_config.d.ts +78 -9
- package/target/types/glam_config.ts +78 -9
- package/target/types/glam_mint-staging.d.ts +7856 -0
- package/target/types/glam_mint-staging.ts +3002 -1244
- package/target/types/glam_mint.d.ts +239 -8
- package/target/types/glam_mint.ts +239 -8
- package/target/types/glam_policies.d.ts +477 -0
- package/target/types/glam_policies.ts +2 -7
- package/target/types/glam_protocol-staging.d.ts +3292 -0
- package/target/types/glam_protocol-staging.ts +187 -266
- package/target/types/glam_protocol.d.ts +217 -114
- package/target/types/glam_protocol.ts +217 -114
- package/target/types/mock_layerzero_endpoint.d.ts +150 -0
- package/target/types/mock_layerzero_endpoint.ts +150 -0
- package/target/types/mock_layerzero_oft.d.ts +161 -0
- package/target/types/mock_layerzero_oft.ts +161 -0
- package/src/client/drift/index.d.ts +0 -2
- package/src/client/drift/protocol-v2.d.ts +0 -93
- package/src/client/drift/vaults.d.ts +0 -60
- package/src/deser/driftLayouts.d.ts +0 -217
- package/src/react/cluster-provider.d.ts +0 -22
- package/src/react/glam.d.ts +0 -51
- package/src/react/index.d.ts +0 -5
- package/src/react/query-keys.d.ts +0 -40
- package/src/react/useVaultBalanceSubscription.d.ts +0 -17
- package/src/utils/drift/index.d.ts +0 -2
- package/src/utils/drift/orderParams.d.ts +0 -28
- package/src/utils/drift/types.d.ts +0 -522
|
@@ -8,22 +8,22 @@ export type GlamProtocol = {
|
|
|
8
8
|
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "glamProtocol",
|
|
11
|
-
"version": "1.0.
|
|
11
|
+
"version": "1.0.4",
|
|
12
12
|
"spec": "0.1.0",
|
|
13
13
|
"description": "Glam Protocol"
|
|
14
14
|
},
|
|
15
15
|
"instructions": [
|
|
16
16
|
{
|
|
17
|
-
"name": "
|
|
17
|
+
"name": "addAssets",
|
|
18
18
|
"discriminator": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
221,
|
|
20
|
+
232,
|
|
21
|
+
106,
|
|
22
|
+
164,
|
|
23
|
+
156,
|
|
24
|
+
75,
|
|
25
|
+
127,
|
|
26
|
+
106
|
|
27
27
|
],
|
|
28
28
|
"accounts": [
|
|
29
29
|
{
|
|
@@ -39,82 +39,29 @@ export type GlamProtocol = {
|
|
|
39
39
|
"args": []
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"name": "
|
|
42
|
+
"name": "cancelTimelock",
|
|
43
43
|
"discriminator": [
|
|
44
|
+
158,
|
|
44
45
|
180,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
195
|
|
46
|
+
47,
|
|
47
|
+
81,
|
|
48
|
+
133,
|
|
49
|
+
231,
|
|
50
|
+
168,
|
|
51
|
+
238
|
|
52
52
|
],
|
|
53
53
|
"accounts": [
|
|
54
54
|
{
|
|
55
|
-
"name": "glamState"
|
|
55
|
+
"name": "glamState",
|
|
56
|
+
"writable": true
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
59
|
"name": "glamSigner",
|
|
59
60
|
"writable": true,
|
|
60
61
|
"signer": true
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "transferTracker",
|
|
64
|
-
"writable": true,
|
|
65
|
-
"pda": {
|
|
66
|
-
"seeds": [
|
|
67
|
-
{
|
|
68
|
-
"kind": "const",
|
|
69
|
-
"value": [
|
|
70
|
-
116,
|
|
71
|
-
114,
|
|
72
|
-
97,
|
|
73
|
-
110,
|
|
74
|
-
115,
|
|
75
|
-
102,
|
|
76
|
-
101,
|
|
77
|
-
114,
|
|
78
|
-
45,
|
|
79
|
-
116,
|
|
80
|
-
114,
|
|
81
|
-
97,
|
|
82
|
-
99,
|
|
83
|
-
107,
|
|
84
|
-
101,
|
|
85
|
-
114
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"kind": "account",
|
|
90
|
-
"path": "glamState"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"kind": "account",
|
|
94
|
-
"path": "glamSigner"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"kind": "arg",
|
|
98
|
-
"path": "mint"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"name": "systemProgram",
|
|
105
|
-
"address": "11111111111111111111111111111111"
|
|
106
62
|
}
|
|
107
63
|
],
|
|
108
|
-
"args": [
|
|
109
|
-
{
|
|
110
|
-
"name": "mint",
|
|
111
|
-
"type": "pubkey"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "amount",
|
|
115
|
-
"type": "u64"
|
|
116
|
-
}
|
|
117
|
-
]
|
|
64
|
+
"args": []
|
|
118
65
|
},
|
|
119
66
|
{
|
|
120
67
|
"name": "closeState",
|
|
@@ -243,6 +190,31 @@ export type GlamProtocol = {
|
|
|
243
190
|
}
|
|
244
191
|
]
|
|
245
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
|
+
},
|
|
246
218
|
{
|
|
247
219
|
"name": "emergencyAccessUpdate",
|
|
248
220
|
"docs": [
|
|
@@ -476,6 +448,70 @@ export type GlamProtocol = {
|
|
|
476
448
|
243,
|
|
477
449
|
18
|
|
478
450
|
],
|
|
451
|
+
"accounts": [
|
|
452
|
+
{
|
|
453
|
+
"name": "glamState",
|
|
454
|
+
"writable": true
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "glamVault",
|
|
458
|
+
"writable": true,
|
|
459
|
+
"pda": {
|
|
460
|
+
"seeds": [
|
|
461
|
+
{
|
|
462
|
+
"kind": "const",
|
|
463
|
+
"value": [
|
|
464
|
+
118,
|
|
465
|
+
97,
|
|
466
|
+
117,
|
|
467
|
+
108,
|
|
468
|
+
116
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"kind": "account",
|
|
473
|
+
"path": "glamState"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "glamSigner",
|
|
480
|
+
"writable": true,
|
|
481
|
+
"signer": true
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "cpiProgram",
|
|
485
|
+
"address": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "inputStakePool",
|
|
489
|
+
"optional": true
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "outputStakePool",
|
|
493
|
+
"optional": true
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"args": [
|
|
497
|
+
{
|
|
498
|
+
"name": "data",
|
|
499
|
+
"type": "bytes"
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "jupiterSwapV2",
|
|
505
|
+
"discriminator": [
|
|
506
|
+
28,
|
|
507
|
+
155,
|
|
508
|
+
14,
|
|
509
|
+
63,
|
|
510
|
+
87,
|
|
511
|
+
96,
|
|
512
|
+
62,
|
|
513
|
+
221
|
|
514
|
+
],
|
|
479
515
|
"accounts": [
|
|
480
516
|
{
|
|
481
517
|
"name": "glamState",
|
|
@@ -597,6 +633,10 @@ export type GlamProtocol = {
|
|
|
597
633
|
}
|
|
598
634
|
],
|
|
599
635
|
"args": [
|
|
636
|
+
{
|
|
637
|
+
"name": "skipQuotePriceCheck",
|
|
638
|
+
"type": "bool"
|
|
639
|
+
},
|
|
600
640
|
{
|
|
601
641
|
"name": "data",
|
|
602
642
|
"type": "bytes"
|
|
@@ -774,40 +814,6 @@ export type GlamProtocol = {
|
|
|
774
814
|
}
|
|
775
815
|
]
|
|
776
816
|
},
|
|
777
|
-
{
|
|
778
|
-
"name": "setTransferRateLimitPolicy",
|
|
779
|
-
"discriminator": [
|
|
780
|
-
27,
|
|
781
|
-
40,
|
|
782
|
-
234,
|
|
783
|
-
194,
|
|
784
|
-
151,
|
|
785
|
-
218,
|
|
786
|
-
55,
|
|
787
|
-
203
|
|
788
|
-
],
|
|
789
|
-
"accounts": [
|
|
790
|
-
{
|
|
791
|
-
"name": "glamState",
|
|
792
|
-
"writable": true
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"name": "glamSigner",
|
|
796
|
-
"writable": true,
|
|
797
|
-
"signer": true
|
|
798
|
-
}
|
|
799
|
-
],
|
|
800
|
-
"args": [
|
|
801
|
-
{
|
|
802
|
-
"name": "policy",
|
|
803
|
-
"type": {
|
|
804
|
-
"defined": {
|
|
805
|
-
"name": "transferRateLimitPolicy"
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
]
|
|
810
|
-
},
|
|
811
817
|
{
|
|
812
818
|
"name": "stakeAuthorize",
|
|
813
819
|
"discriminator": [
|
|
@@ -1663,19 +1669,6 @@ export type GlamProtocol = {
|
|
|
1663
1669
|
249,
|
|
1664
1670
|
103
|
|
1665
1671
|
]
|
|
1666
|
-
},
|
|
1667
|
-
{
|
|
1668
|
-
"name": "transferTracker",
|
|
1669
|
-
"discriminator": [
|
|
1670
|
-
153,
|
|
1671
|
-
136,
|
|
1672
|
-
2,
|
|
1673
|
-
106,
|
|
1674
|
-
24,
|
|
1675
|
-
146,
|
|
1676
|
-
147,
|
|
1677
|
-
60
|
|
1678
|
-
]
|
|
1679
1672
|
}
|
|
1680
1673
|
],
|
|
1681
1674
|
"errors": [
|
|
@@ -1731,8 +1724,8 @@ export type GlamProtocol = {
|
|
|
1731
1724
|
},
|
|
1732
1725
|
{
|
|
1733
1726
|
"code": 48010,
|
|
1734
|
-
"name": "
|
|
1735
|
-
"msg": "Account
|
|
1727
|
+
"name": "unexpectedProgramOwner",
|
|
1728
|
+
"msg": "Account is owned by an unexpected program"
|
|
1736
1729
|
},
|
|
1737
1730
|
{
|
|
1738
1731
|
"code": 48011,
|
|
@@ -1761,8 +1754,8 @@ export type GlamProtocol = {
|
|
|
1761
1754
|
},
|
|
1762
1755
|
{
|
|
1763
1756
|
"code": 49004,
|
|
1764
|
-
"name": "
|
|
1765
|
-
"msg": "
|
|
1757
|
+
"name": "invalidAssetsLen",
|
|
1758
|
+
"msg": "Too many assets: max 100"
|
|
1766
1759
|
},
|
|
1767
1760
|
{
|
|
1768
1761
|
"code": 49005,
|
|
@@ -1821,14 +1814,34 @@ export type GlamProtocol = {
|
|
|
1821
1814
|
},
|
|
1822
1815
|
{
|
|
1823
1816
|
"code": 49016,
|
|
1817
|
+
"name": "staleDriftInterest",
|
|
1818
|
+
"msg": "Drift spot market cumulative interest is stale"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"code": 49017,
|
|
1822
|
+
"name": "assetBalanceNotZero",
|
|
1823
|
+
"msg": "Cannot delete asset: vault token account balance is not zero"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"code": 49018,
|
|
1827
|
+
"name": "cannotDeleteBaseAsset",
|
|
1828
|
+
"msg": "Cannot delete base asset from allowlist"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"code": 49019,
|
|
1824
1832
|
"name": "integrationAclLimitExceeded",
|
|
1825
1833
|
"msg": "Integration ACL limit exceeded"
|
|
1826
1834
|
},
|
|
1827
1835
|
{
|
|
1828
|
-
"code":
|
|
1836
|
+
"code": 49020,
|
|
1829
1837
|
"name": "delegateAclLimitExceeded",
|
|
1830
1838
|
"msg": "Delegate ACL limit exceeded"
|
|
1831
1839
|
},
|
|
1840
|
+
{
|
|
1841
|
+
"code": 49021,
|
|
1842
|
+
"name": "invalidFeeStructure",
|
|
1843
|
+
"msg": "Invalid fee structure"
|
|
1844
|
+
},
|
|
1832
1845
|
{
|
|
1833
1846
|
"code": 50000,
|
|
1834
1847
|
"name": "withdrawDenied",
|
|
@@ -1869,6 +1882,11 @@ export type GlamProtocol = {
|
|
|
1869
1882
|
"name": "multipleStakeAccountsDisallowed",
|
|
1870
1883
|
"msg": "Multiple stake accounts disallowed"
|
|
1871
1884
|
},
|
|
1885
|
+
{
|
|
1886
|
+
"code": 50008,
|
|
1887
|
+
"name": "maxDeviationExceeded",
|
|
1888
|
+
"msg": "Max deviation exceeded"
|
|
1889
|
+
},
|
|
1872
1890
|
{
|
|
1873
1891
|
"code": 51000,
|
|
1874
1892
|
"name": "invalidAssetPrice",
|
|
@@ -1907,7 +1925,7 @@ export type GlamProtocol = {
|
|
|
1907
1925
|
{
|
|
1908
1926
|
"code": 51105,
|
|
1909
1927
|
"name": "priceDivergenceTooLarge",
|
|
1910
|
-
"msg": "
|
|
1928
|
+
"msg": "No priced assets found"
|
|
1911
1929
|
},
|
|
1912
1930
|
{
|
|
1913
1931
|
"code": 51106,
|
|
@@ -1916,18 +1934,18 @@ export type GlamProtocol = {
|
|
|
1916
1934
|
},
|
|
1917
1935
|
{
|
|
1918
1936
|
"code": 51107,
|
|
1919
|
-
"name": "
|
|
1920
|
-
"msg": "
|
|
1937
|
+
"name": "mathError",
|
|
1938
|
+
"msg": "Math error"
|
|
1921
1939
|
},
|
|
1922
1940
|
{
|
|
1923
1941
|
"code": 51108,
|
|
1924
|
-
"name": "
|
|
1925
|
-
"msg": "
|
|
1942
|
+
"name": "typeCastingError",
|
|
1943
|
+
"msg": "Type casting error"
|
|
1926
1944
|
},
|
|
1927
1945
|
{
|
|
1928
1946
|
"code": 51109,
|
|
1929
|
-
"name": "
|
|
1930
|
-
"msg": "
|
|
1947
|
+
"name": "baseAssetNotSupported",
|
|
1948
|
+
"msg": "Base asset must have 6 decimals."
|
|
1931
1949
|
},
|
|
1932
1950
|
{
|
|
1933
1951
|
"code": 51110,
|
|
@@ -1946,14 +1964,24 @@ export type GlamProtocol = {
|
|
|
1946
1964
|
},
|
|
1947
1965
|
{
|
|
1948
1966
|
"code": 51113,
|
|
1949
|
-
"name": "
|
|
1950
|
-
"msg": "
|
|
1967
|
+
"name": "unexpectedDiscriminator",
|
|
1968
|
+
"msg": "Invalid account: discriminator mismatch"
|
|
1951
1969
|
},
|
|
1952
1970
|
{
|
|
1953
1971
|
"code": 51114,
|
|
1954
1972
|
"name": "invalidAccountData",
|
|
1955
1973
|
"msg": "Invalid account data"
|
|
1956
1974
|
},
|
|
1975
|
+
{
|
|
1976
|
+
"code": 51115,
|
|
1977
|
+
"name": "oraclePriceSuspended",
|
|
1978
|
+
"msg": "Oracle price is suspended"
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"code": 51116,
|
|
1982
|
+
"name": "assetNotInPricingSet",
|
|
1983
|
+
"msg": "Asset not in pricing set"
|
|
1984
|
+
},
|
|
1957
1985
|
{
|
|
1958
1986
|
"code": 50100,
|
|
1959
1987
|
"name": "transferRateLimitExceeded",
|
|
@@ -1983,6 +2011,16 @@ export type GlamProtocol = {
|
|
|
1983
2011
|
"code": 52003,
|
|
1984
2012
|
"name": "lockUp",
|
|
1985
2013
|
"msg": "Policy violation: lock-up has not expired"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
"code": 52004,
|
|
2017
|
+
"name": "policyNotSet",
|
|
2018
|
+
"msg": "Protocol policy not set"
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"code": 52005,
|
|
2022
|
+
"name": "unsupportedOracleSource",
|
|
2023
|
+
"msg": "Oracle source not supported in this context"
|
|
1986
2024
|
}
|
|
1987
2025
|
],
|
|
1988
2026
|
"types": [
|
|
@@ -2072,30 +2110,6 @@ export type GlamProtocol = {
|
|
|
2072
2110
|
]
|
|
2073
2111
|
}
|
|
2074
2112
|
},
|
|
2075
|
-
{
|
|
2076
|
-
"name": "assetRateLimit",
|
|
2077
|
-
"type": {
|
|
2078
|
-
"kind": "struct",
|
|
2079
|
-
"fields": [
|
|
2080
|
-
{
|
|
2081
|
-
"name": "mint",
|
|
2082
|
-
"type": "pubkey"
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
"name": "periodType",
|
|
2086
|
-
"type": {
|
|
2087
|
-
"defined": {
|
|
2088
|
-
"name": "periodType"
|
|
2089
|
-
}
|
|
2090
|
-
}
|
|
2091
|
-
},
|
|
2092
|
-
{
|
|
2093
|
-
"name": "amount",
|
|
2094
|
-
"type": "u64"
|
|
2095
|
-
}
|
|
2096
|
-
]
|
|
2097
|
-
}
|
|
2098
|
-
},
|
|
2099
2113
|
{
|
|
2100
2114
|
"name": "createdModel",
|
|
2101
2115
|
"type": {
|
|
@@ -2147,28 +2161,6 @@ export type GlamProtocol = {
|
|
|
2147
2161
|
]
|
|
2148
2162
|
}
|
|
2149
2163
|
},
|
|
2150
|
-
{
|
|
2151
|
-
"name": "delegateRateLimit",
|
|
2152
|
-
"type": {
|
|
2153
|
-
"kind": "struct",
|
|
2154
|
-
"fields": [
|
|
2155
|
-
{
|
|
2156
|
-
"name": "delegate",
|
|
2157
|
-
"type": "pubkey"
|
|
2158
|
-
},
|
|
2159
|
-
{
|
|
2160
|
-
"name": "limits",
|
|
2161
|
-
"type": {
|
|
2162
|
-
"vec": {
|
|
2163
|
-
"defined": {
|
|
2164
|
-
"name": "assetRateLimit"
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
}
|
|
2168
|
-
}
|
|
2169
|
-
]
|
|
2170
|
-
}
|
|
2171
|
-
},
|
|
2172
2164
|
{
|
|
2173
2165
|
"name": "emergencyAccessUpdateArgs",
|
|
2174
2166
|
"type": {
|
|
@@ -2677,6 +2669,10 @@ export type GlamProtocol = {
|
|
|
2677
2669
|
"vec": "pubkey"
|
|
2678
2670
|
}
|
|
2679
2671
|
}
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
"name": "maxDeviationBps",
|
|
2675
|
+
"type": "i16"
|
|
2680
2676
|
}
|
|
2681
2677
|
]
|
|
2682
2678
|
}
|
|
@@ -2839,26 +2835,6 @@ export type GlamProtocol = {
|
|
|
2839
2835
|
]
|
|
2840
2836
|
}
|
|
2841
2837
|
},
|
|
2842
|
-
{
|
|
2843
|
-
"name": "periodType",
|
|
2844
|
-
"repr": {
|
|
2845
|
-
"kind": "rust"
|
|
2846
|
-
},
|
|
2847
|
-
"type": {
|
|
2848
|
-
"kind": "enum",
|
|
2849
|
-
"variants": [
|
|
2850
|
-
{
|
|
2851
|
-
"name": "day"
|
|
2852
|
-
},
|
|
2853
|
-
{
|
|
2854
|
-
"name": "week"
|
|
2855
|
-
},
|
|
2856
|
-
{
|
|
2857
|
-
"name": "month"
|
|
2858
|
-
}
|
|
2859
|
-
]
|
|
2860
|
-
}
|
|
2861
|
-
},
|
|
2862
2838
|
{
|
|
2863
2839
|
"name": "pricedProtocol",
|
|
2864
2840
|
"type": {
|
|
@@ -3226,66 +3202,6 @@ export type GlamProtocol = {
|
|
|
3226
3202
|
]
|
|
3227
3203
|
}
|
|
3228
3204
|
},
|
|
3229
|
-
{
|
|
3230
|
-
"name": "transferRateLimitPolicy",
|
|
3231
|
-
"type": {
|
|
3232
|
-
"kind": "struct",
|
|
3233
|
-
"fields": [
|
|
3234
|
-
{
|
|
3235
|
-
"name": "vaultDefaults",
|
|
3236
|
-
"type": {
|
|
3237
|
-
"vec": {
|
|
3238
|
-
"defined": {
|
|
3239
|
-
"name": "assetRateLimit"
|
|
3240
|
-
}
|
|
3241
|
-
}
|
|
3242
|
-
}
|
|
3243
|
-
},
|
|
3244
|
-
{
|
|
3245
|
-
"name": "delegateOverrides",
|
|
3246
|
-
"type": {
|
|
3247
|
-
"vec": {
|
|
3248
|
-
"defined": {
|
|
3249
|
-
"name": "delegateRateLimit"
|
|
3250
|
-
}
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
}
|
|
3254
|
-
]
|
|
3255
|
-
}
|
|
3256
|
-
},
|
|
3257
|
-
{
|
|
3258
|
-
"name": "transferTracker",
|
|
3259
|
-
"type": {
|
|
3260
|
-
"kind": "struct",
|
|
3261
|
-
"fields": [
|
|
3262
|
-
{
|
|
3263
|
-
"name": "vault",
|
|
3264
|
-
"type": "pubkey"
|
|
3265
|
-
},
|
|
3266
|
-
{
|
|
3267
|
-
"name": "signer",
|
|
3268
|
-
"type": "pubkey"
|
|
3269
|
-
},
|
|
3270
|
-
{
|
|
3271
|
-
"name": "mint",
|
|
3272
|
-
"type": "pubkey"
|
|
3273
|
-
},
|
|
3274
|
-
{
|
|
3275
|
-
"name": "periodStart",
|
|
3276
|
-
"type": "i64"
|
|
3277
|
-
},
|
|
3278
|
-
{
|
|
3279
|
-
"name": "amountTransferred",
|
|
3280
|
-
"type": "u64"
|
|
3281
|
-
},
|
|
3282
|
-
{
|
|
3283
|
-
"name": "bump",
|
|
3284
|
-
"type": "u8"
|
|
3285
|
-
}
|
|
3286
|
-
]
|
|
3287
|
-
}
|
|
3288
|
-
},
|
|
3289
3205
|
{
|
|
3290
3206
|
"name": "valuationModel",
|
|
3291
3207
|
"type": {
|
|
@@ -3307,6 +3223,16 @@ export type GlamProtocol = {
|
|
|
3307
3223
|
"type": "u16",
|
|
3308
3224
|
"value": "4"
|
|
3309
3225
|
},
|
|
3226
|
+
{
|
|
3227
|
+
"name": "protoJupiterSwapPermSkipQuotePriceCheck",
|
|
3228
|
+
"type": "u64",
|
|
3229
|
+
"value": "32"
|
|
3230
|
+
},
|
|
3231
|
+
{
|
|
3232
|
+
"name": "protoJupiterSwapPermSkipQuotePriceCheckLimited",
|
|
3233
|
+
"type": "u64",
|
|
3234
|
+
"value": "16"
|
|
3235
|
+
},
|
|
3310
3236
|
{
|
|
3311
3237
|
"name": "protoJupiterSwapPermSwapAllowlisted",
|
|
3312
3238
|
"type": "u64",
|
|
@@ -3361,11 +3287,6 @@ export type GlamProtocol = {
|
|
|
3361
3287
|
"name": "protoSystemPermWsol",
|
|
3362
3288
|
"type": "u64",
|
|
3363
3289
|
"value": "1"
|
|
3364
|
-
},
|
|
3365
|
-
{
|
|
3366
|
-
"name": "protoTransferLimit",
|
|
3367
|
-
"type": "u16",
|
|
3368
|
-
"value": "8"
|
|
3369
3290
|
}
|
|
3370
3291
|
]
|
|
3371
3292
|
};
|