@glamsystems/glam-sdk 0.1.25 → 0.1.27
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/index.cjs.js +1991 -662
- package/index.esm.js +1986 -659
- package/package.json +1 -1
- package/src/client/assets.d.ts +7 -4
- package/src/client/base.d.ts +1 -2
- package/src/client/drift.d.ts +38 -7
- package/src/client/kamino.d.ts +26 -15
- package/src/client/marinade.d.ts +2 -8
- package/src/client/price.d.ts +35 -4
- package/src/client/staking.d.ts +2 -2
- package/src/client/state.d.ts +1 -0
- package/src/client/vault.d.ts +1 -1
- package/src/client.d.ts +6 -2
- package/src/constants.d.ts +3 -1
- package/src/deser/driftLayouts.d.ts +68 -0
- package/src/deser/kaminoLayouts.d.ts +55 -0
- package/src/utils/driftTypes.d.ts +1 -0
- package/src/utils/helpers.d.ts +5 -3
- package/target/idl/glam_protocol.json +969 -207
- package/target/types/glam_protocol.d.ts +965 -203
- package/target/types/glam_protocol.ts +969 -207
|
@@ -8,7 +8,7 @@ export type GlamProtocol = {
|
|
|
8
8
|
"address": "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "glamProtocol",
|
|
11
|
-
"version": "0.4.
|
|
11
|
+
"version": "0.4.29",
|
|
12
12
|
"spec": "0.1.0",
|
|
13
13
|
"description": "Glam Protocol"
|
|
14
14
|
},
|
|
@@ -1578,6 +1578,391 @@ export type GlamProtocol = {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
]
|
|
1580
1580
|
},
|
|
1581
|
+
{
|
|
1582
|
+
"name": "driftVaultsCancelRequestWithdraw",
|
|
1583
|
+
"discriminator": [
|
|
1584
|
+
241,
|
|
1585
|
+
196,
|
|
1586
|
+
156,
|
|
1587
|
+
180,
|
|
1588
|
+
21,
|
|
1589
|
+
155,
|
|
1590
|
+
228,
|
|
1591
|
+
125
|
|
1592
|
+
],
|
|
1593
|
+
"accounts": [
|
|
1594
|
+
{
|
|
1595
|
+
"name": "glamState"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"name": "glamVault",
|
|
1599
|
+
"pda": {
|
|
1600
|
+
"seeds": [
|
|
1601
|
+
{
|
|
1602
|
+
"kind": "const",
|
|
1603
|
+
"value": [
|
|
1604
|
+
118,
|
|
1605
|
+
97,
|
|
1606
|
+
117,
|
|
1607
|
+
108,
|
|
1608
|
+
116
|
|
1609
|
+
]
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"kind": "account",
|
|
1613
|
+
"path": "glamState"
|
|
1614
|
+
}
|
|
1615
|
+
]
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"name": "glamSigner",
|
|
1620
|
+
"writable": true,
|
|
1621
|
+
"signer": true
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"name": "cpiProgram",
|
|
1625
|
+
"address": "vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR"
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"name": "vault",
|
|
1629
|
+
"writable": true
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"name": "vaultDepositor",
|
|
1633
|
+
"writable": true
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"name": "driftUserStats"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"name": "driftUser"
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
"args": []
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"name": "driftVaultsDeposit",
|
|
1646
|
+
"discriminator": [
|
|
1647
|
+
95,
|
|
1648
|
+
223,
|
|
1649
|
+
42,
|
|
1650
|
+
76,
|
|
1651
|
+
37,
|
|
1652
|
+
21,
|
|
1653
|
+
176,
|
|
1654
|
+
73
|
|
1655
|
+
],
|
|
1656
|
+
"accounts": [
|
|
1657
|
+
{
|
|
1658
|
+
"name": "glamState"
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "glamVault",
|
|
1662
|
+
"pda": {
|
|
1663
|
+
"seeds": [
|
|
1664
|
+
{
|
|
1665
|
+
"kind": "const",
|
|
1666
|
+
"value": [
|
|
1667
|
+
118,
|
|
1668
|
+
97,
|
|
1669
|
+
117,
|
|
1670
|
+
108,
|
|
1671
|
+
116
|
|
1672
|
+
]
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"kind": "account",
|
|
1676
|
+
"path": "glamState"
|
|
1677
|
+
}
|
|
1678
|
+
]
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "glamSigner",
|
|
1683
|
+
"writable": true,
|
|
1684
|
+
"signer": true
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "cpiProgram",
|
|
1688
|
+
"address": "vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"name": "vault",
|
|
1692
|
+
"writable": true
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "vaultDepositor",
|
|
1696
|
+
"writable": true
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"name": "vaultTokenAccount",
|
|
1700
|
+
"writable": true
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"name": "driftUserStats",
|
|
1704
|
+
"writable": true
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"name": "driftUser",
|
|
1708
|
+
"writable": true
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "driftState"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"name": "driftSpotMarketVault",
|
|
1715
|
+
"writable": true
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"name": "userTokenAccount",
|
|
1719
|
+
"writable": true
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"name": "driftProgram"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"name": "tokenProgram"
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1728
|
+
"args": [
|
|
1729
|
+
{
|
|
1730
|
+
"name": "amount",
|
|
1731
|
+
"type": "u64"
|
|
1732
|
+
}
|
|
1733
|
+
]
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "driftVaultsInitializeVaultDepositor",
|
|
1737
|
+
"discriminator": [
|
|
1738
|
+
109,
|
|
1739
|
+
183,
|
|
1740
|
+
50,
|
|
1741
|
+
62,
|
|
1742
|
+
60,
|
|
1743
|
+
195,
|
|
1744
|
+
192,
|
|
1745
|
+
51
|
|
1746
|
+
],
|
|
1747
|
+
"accounts": [
|
|
1748
|
+
{
|
|
1749
|
+
"name": "glamState",
|
|
1750
|
+
"writable": true
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"name": "glamVault",
|
|
1754
|
+
"writable": true,
|
|
1755
|
+
"pda": {
|
|
1756
|
+
"seeds": [
|
|
1757
|
+
{
|
|
1758
|
+
"kind": "const",
|
|
1759
|
+
"value": [
|
|
1760
|
+
118,
|
|
1761
|
+
97,
|
|
1762
|
+
117,
|
|
1763
|
+
108,
|
|
1764
|
+
116
|
|
1765
|
+
]
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"kind": "account",
|
|
1769
|
+
"path": "glamState"
|
|
1770
|
+
}
|
|
1771
|
+
]
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "glamSigner",
|
|
1776
|
+
"writable": true,
|
|
1777
|
+
"signer": true
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"name": "cpiProgram",
|
|
1781
|
+
"address": "vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"name": "vault"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "vaultDepositor",
|
|
1788
|
+
"writable": true
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"name": "rent",
|
|
1792
|
+
"address": "SysvarRent111111111111111111111111111111111"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "systemProgram",
|
|
1796
|
+
"address": "11111111111111111111111111111111"
|
|
1797
|
+
}
|
|
1798
|
+
],
|
|
1799
|
+
"args": []
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"name": "driftVaultsRequestWithdraw",
|
|
1803
|
+
"discriminator": [
|
|
1804
|
+
19,
|
|
1805
|
+
53,
|
|
1806
|
+
222,
|
|
1807
|
+
51,
|
|
1808
|
+
44,
|
|
1809
|
+
215,
|
|
1810
|
+
35,
|
|
1811
|
+
82
|
|
1812
|
+
],
|
|
1813
|
+
"accounts": [
|
|
1814
|
+
{
|
|
1815
|
+
"name": "glamState"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"name": "glamVault",
|
|
1819
|
+
"pda": {
|
|
1820
|
+
"seeds": [
|
|
1821
|
+
{
|
|
1822
|
+
"kind": "const",
|
|
1823
|
+
"value": [
|
|
1824
|
+
118,
|
|
1825
|
+
97,
|
|
1826
|
+
117,
|
|
1827
|
+
108,
|
|
1828
|
+
116
|
|
1829
|
+
]
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"kind": "account",
|
|
1833
|
+
"path": "glamState"
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"name": "glamSigner",
|
|
1840
|
+
"writable": true,
|
|
1841
|
+
"signer": true
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"name": "cpiProgram",
|
|
1845
|
+
"address": "vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"name": "vault",
|
|
1849
|
+
"writable": true
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"name": "vaultDepositor",
|
|
1853
|
+
"writable": true
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
"name": "driftUserStats"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"name": "driftUser"
|
|
1860
|
+
}
|
|
1861
|
+
],
|
|
1862
|
+
"args": [
|
|
1863
|
+
{
|
|
1864
|
+
"name": "withdrawAmount",
|
|
1865
|
+
"type": "u64"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"name": "withdrawUnit",
|
|
1869
|
+
"type": {
|
|
1870
|
+
"defined": {
|
|
1871
|
+
"name": "withdrawUnit"
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
]
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "driftVaultsWithdraw",
|
|
1879
|
+
"discriminator": [
|
|
1880
|
+
58,
|
|
1881
|
+
127,
|
|
1882
|
+
150,
|
|
1883
|
+
177,
|
|
1884
|
+
66,
|
|
1885
|
+
45,
|
|
1886
|
+
5,
|
|
1887
|
+
30
|
|
1888
|
+
],
|
|
1889
|
+
"accounts": [
|
|
1890
|
+
{
|
|
1891
|
+
"name": "glamState"
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"name": "glamVault",
|
|
1895
|
+
"pda": {
|
|
1896
|
+
"seeds": [
|
|
1897
|
+
{
|
|
1898
|
+
"kind": "const",
|
|
1899
|
+
"value": [
|
|
1900
|
+
118,
|
|
1901
|
+
97,
|
|
1902
|
+
117,
|
|
1903
|
+
108,
|
|
1904
|
+
116
|
|
1905
|
+
]
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"kind": "account",
|
|
1909
|
+
"path": "glamState"
|
|
1910
|
+
}
|
|
1911
|
+
]
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"name": "glamSigner",
|
|
1916
|
+
"writable": true,
|
|
1917
|
+
"signer": true
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
"name": "cpiProgram",
|
|
1921
|
+
"address": "vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "vault",
|
|
1925
|
+
"writable": true
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"name": "vaultDepositor",
|
|
1929
|
+
"writable": true
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
"name": "vaultTokenAccount",
|
|
1933
|
+
"writable": true
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
"name": "driftUserStats",
|
|
1937
|
+
"writable": true
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"name": "driftUser",
|
|
1941
|
+
"writable": true
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"name": "driftState"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "driftSpotMarketVault",
|
|
1948
|
+
"writable": true
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"name": "driftSigner"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "userTokenAccount",
|
|
1955
|
+
"writable": true
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"name": "driftProgram"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"name": "tokenProgram"
|
|
1962
|
+
}
|
|
1963
|
+
],
|
|
1964
|
+
"args": []
|
|
1965
|
+
},
|
|
1581
1966
|
{
|
|
1582
1967
|
"name": "driftWithdraw",
|
|
1583
1968
|
"discriminator": [
|
|
@@ -1746,6 +2131,40 @@ export type GlamProtocol = {
|
|
|
1746
2131
|
}
|
|
1747
2132
|
]
|
|
1748
2133
|
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "extendState",
|
|
2136
|
+
"discriminator": [
|
|
2137
|
+
34,
|
|
2138
|
+
147,
|
|
2139
|
+
151,
|
|
2140
|
+
206,
|
|
2141
|
+
134,
|
|
2142
|
+
128,
|
|
2143
|
+
82,
|
|
2144
|
+
228
|
|
2145
|
+
],
|
|
2146
|
+
"accounts": [
|
|
2147
|
+
{
|
|
2148
|
+
"name": "glamState",
|
|
2149
|
+
"writable": true
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"name": "glamSigner",
|
|
2153
|
+
"writable": true,
|
|
2154
|
+
"signer": true
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
"name": "systemProgram",
|
|
2158
|
+
"address": "11111111111111111111111111111111"
|
|
2159
|
+
}
|
|
2160
|
+
],
|
|
2161
|
+
"args": [
|
|
2162
|
+
{
|
|
2163
|
+
"name": "bytes",
|
|
2164
|
+
"type": "u32"
|
|
2165
|
+
}
|
|
2166
|
+
]
|
|
2167
|
+
},
|
|
1749
2168
|
{
|
|
1750
2169
|
"name": "forceTransferTokens",
|
|
1751
2170
|
"discriminator": [
|
|
@@ -3724,7 +4143,8 @@ export type GlamProtocol = {
|
|
|
3724
4143
|
],
|
|
3725
4144
|
"accounts": [
|
|
3726
4145
|
{
|
|
3727
|
-
"name": "glamState"
|
|
4146
|
+
"name": "glamState",
|
|
4147
|
+
"writable": true
|
|
3728
4148
|
},
|
|
3729
4149
|
{
|
|
3730
4150
|
"name": "glamVault",
|
|
@@ -3825,16 +4245,113 @@ export type GlamProtocol = {
|
|
|
3825
4245
|
]
|
|
3826
4246
|
},
|
|
3827
4247
|
{
|
|
3828
|
-
"name": "
|
|
4248
|
+
"name": "kaminoVaultsDeposit",
|
|
3829
4249
|
"discriminator": [
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
4250
|
+
209,
|
|
4251
|
+
133,
|
|
4252
|
+
37,
|
|
4253
|
+
193,
|
|
4254
|
+
192,
|
|
4255
|
+
217,
|
|
4256
|
+
55,
|
|
4257
|
+
40
|
|
4258
|
+
],
|
|
4259
|
+
"accounts": [
|
|
4260
|
+
{
|
|
4261
|
+
"name": "glamState",
|
|
4262
|
+
"writable": true
|
|
4263
|
+
},
|
|
4264
|
+
{
|
|
4265
|
+
"name": "glamVault",
|
|
4266
|
+
"writable": true,
|
|
4267
|
+
"pda": {
|
|
4268
|
+
"seeds": [
|
|
4269
|
+
{
|
|
4270
|
+
"kind": "const",
|
|
4271
|
+
"value": [
|
|
4272
|
+
118,
|
|
4273
|
+
97,
|
|
4274
|
+
117,
|
|
4275
|
+
108,
|
|
4276
|
+
116
|
|
4277
|
+
]
|
|
4278
|
+
},
|
|
4279
|
+
{
|
|
4280
|
+
"kind": "account",
|
|
4281
|
+
"path": "glamState"
|
|
4282
|
+
}
|
|
4283
|
+
]
|
|
4284
|
+
}
|
|
4285
|
+
},
|
|
4286
|
+
{
|
|
4287
|
+
"name": "glamSigner",
|
|
4288
|
+
"writable": true,
|
|
4289
|
+
"signer": true
|
|
4290
|
+
},
|
|
4291
|
+
{
|
|
4292
|
+
"name": "cpiProgram",
|
|
4293
|
+
"address": "KvauGMspG5k6rtzrqqn7WNn3oZdyKqLKwK2XWQ8FLjd"
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
"name": "vaultState",
|
|
4297
|
+
"writable": true
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
"name": "tokenVault",
|
|
4301
|
+
"writable": true
|
|
4302
|
+
},
|
|
4303
|
+
{
|
|
4304
|
+
"name": "tokenMint"
|
|
4305
|
+
},
|
|
4306
|
+
{
|
|
4307
|
+
"name": "baseVaultAuthority"
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
"name": "sharesMint",
|
|
4311
|
+
"writable": true
|
|
4312
|
+
},
|
|
4313
|
+
{
|
|
4314
|
+
"name": "userTokenAta",
|
|
4315
|
+
"writable": true
|
|
4316
|
+
},
|
|
4317
|
+
{
|
|
4318
|
+
"name": "userSharesAta",
|
|
4319
|
+
"writable": true
|
|
4320
|
+
},
|
|
4321
|
+
{
|
|
4322
|
+
"name": "klendProgram"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
"name": "tokenProgram"
|
|
4326
|
+
},
|
|
4327
|
+
{
|
|
4328
|
+
"name": "sharesTokenProgram"
|
|
4329
|
+
},
|
|
4330
|
+
{
|
|
4331
|
+
"name": "eventAuthority"
|
|
4332
|
+
},
|
|
4333
|
+
{
|
|
4334
|
+
"name": "program"
|
|
4335
|
+
}
|
|
4336
|
+
],
|
|
4337
|
+
"args": [
|
|
4338
|
+
{
|
|
4339
|
+
"name": "amount",
|
|
4340
|
+
"type": "u64"
|
|
4341
|
+
}
|
|
4342
|
+
]
|
|
4343
|
+
},
|
|
4344
|
+
{
|
|
4345
|
+
"name": "kaminoVaultsWithdraw",
|
|
4346
|
+
"discriminator": [
|
|
4347
|
+
82,
|
|
4348
|
+
106,
|
|
4349
|
+
49,
|
|
4350
|
+
86,
|
|
4351
|
+
156,
|
|
4352
|
+
15,
|
|
4353
|
+
87,
|
|
4354
|
+
8
|
|
3838
4355
|
],
|
|
3839
4356
|
"accounts": [
|
|
3840
4357
|
{
|
|
@@ -3842,57 +4359,123 @@ export type GlamProtocol = {
|
|
|
3842
4359
|
"writable": true
|
|
3843
4360
|
},
|
|
3844
4361
|
{
|
|
3845
|
-
"name": "glamVault",
|
|
3846
|
-
"writable": true,
|
|
3847
|
-
"pda": {
|
|
3848
|
-
"seeds": [
|
|
3849
|
-
{
|
|
3850
|
-
"kind": "const",
|
|
3851
|
-
"value": [
|
|
3852
|
-
118,
|
|
3853
|
-
97,
|
|
3854
|
-
117,
|
|
3855
|
-
108,
|
|
3856
|
-
116
|
|
3857
|
-
]
|
|
3858
|
-
},
|
|
3859
|
-
{
|
|
3860
|
-
"kind": "account",
|
|
3861
|
-
"path": "glamState"
|
|
3862
|
-
}
|
|
3863
|
-
]
|
|
3864
|
-
}
|
|
4362
|
+
"name": "glamVault",
|
|
4363
|
+
"writable": true,
|
|
4364
|
+
"pda": {
|
|
4365
|
+
"seeds": [
|
|
4366
|
+
{
|
|
4367
|
+
"kind": "const",
|
|
4368
|
+
"value": [
|
|
4369
|
+
118,
|
|
4370
|
+
97,
|
|
4371
|
+
117,
|
|
4372
|
+
108,
|
|
4373
|
+
116
|
|
4374
|
+
]
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"kind": "account",
|
|
4378
|
+
"path": "glamState"
|
|
4379
|
+
}
|
|
4380
|
+
]
|
|
4381
|
+
}
|
|
4382
|
+
},
|
|
4383
|
+
{
|
|
4384
|
+
"name": "glamSigner",
|
|
4385
|
+
"writable": true,
|
|
4386
|
+
"signer": true
|
|
4387
|
+
},
|
|
4388
|
+
{
|
|
4389
|
+
"name": "cpiProgram",
|
|
4390
|
+
"address": "KvauGMspG5k6rtzrqqn7WNn3oZdyKqLKwK2XWQ8FLjd"
|
|
4391
|
+
},
|
|
4392
|
+
{
|
|
4393
|
+
"name": "withdrawFromAvailableVaultState",
|
|
4394
|
+
"writable": true
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
"name": "withdrawFromAvailableTokenVault",
|
|
4398
|
+
"writable": true
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
"name": "withdrawFromAvailableBaseVaultAuthority"
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
"name": "withdrawFromAvailableUserTokenAta",
|
|
4405
|
+
"writable": true
|
|
4406
|
+
},
|
|
4407
|
+
{
|
|
4408
|
+
"name": "withdrawFromAvailableTokenMint",
|
|
4409
|
+
"writable": true
|
|
4410
|
+
},
|
|
4411
|
+
{
|
|
4412
|
+
"name": "withdrawFromAvailableUserSharesAta",
|
|
4413
|
+
"writable": true
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
"name": "withdrawFromAvailableSharesMint",
|
|
4417
|
+
"writable": true
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
"name": "withdrawFromAvailableTokenProgram"
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
"name": "withdrawFromAvailableSharesTokenProgram"
|
|
4424
|
+
},
|
|
4425
|
+
{
|
|
4426
|
+
"name": "withdrawFromAvailableKlendProgram"
|
|
4427
|
+
},
|
|
4428
|
+
{
|
|
4429
|
+
"name": "withdrawFromAvailableEventAuthority"
|
|
4430
|
+
},
|
|
4431
|
+
{
|
|
4432
|
+
"name": "withdrawFromAvailableProgram"
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
"name": "withdrawFromReserveVaultState",
|
|
4436
|
+
"writable": true
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"name": "withdrawFromReserveReserve",
|
|
4440
|
+
"writable": true
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
"name": "withdrawFromReserveCtokenVault",
|
|
4444
|
+
"writable": true
|
|
3865
4445
|
},
|
|
3866
4446
|
{
|
|
3867
|
-
"name": "
|
|
3868
|
-
"writable": true,
|
|
3869
|
-
"signer": true
|
|
4447
|
+
"name": "withdrawFromReserveLendingMarket"
|
|
3870
4448
|
},
|
|
3871
4449
|
{
|
|
3872
|
-
"name": "
|
|
3873
|
-
"address": "MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD"
|
|
4450
|
+
"name": "withdrawFromReserveLendingMarketAuthority"
|
|
3874
4451
|
},
|
|
3875
4452
|
{
|
|
3876
|
-
"name": "
|
|
4453
|
+
"name": "withdrawFromReserveReserveLiquiditySupply",
|
|
3877
4454
|
"writable": true
|
|
3878
4455
|
},
|
|
3879
4456
|
{
|
|
3880
|
-
"name": "
|
|
4457
|
+
"name": "withdrawFromReserveReserveCollateralMint",
|
|
3881
4458
|
"writable": true
|
|
3882
4459
|
},
|
|
3883
4460
|
{
|
|
3884
|
-
"name": "
|
|
3885
|
-
"writable": true
|
|
4461
|
+
"name": "withdrawFromReserveReserveCollateralTokenProgram"
|
|
3886
4462
|
},
|
|
3887
4463
|
{
|
|
3888
|
-
"name": "
|
|
4464
|
+
"name": "withdrawFromReserveInstructionSysvarAccount"
|
|
3889
4465
|
},
|
|
3890
4466
|
{
|
|
3891
|
-
"name": "
|
|
3892
|
-
|
|
4467
|
+
"name": "eventAuthority"
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"name": "program"
|
|
3893
4471
|
}
|
|
3894
4472
|
],
|
|
3895
|
-
"args": [
|
|
4473
|
+
"args": [
|
|
4474
|
+
{
|
|
4475
|
+
"name": "amount",
|
|
4476
|
+
"type": "u64"
|
|
4477
|
+
}
|
|
4478
|
+
]
|
|
3896
4479
|
},
|
|
3897
4480
|
{
|
|
3898
4481
|
"name": "marinadeDeposit",
|
|
@@ -4091,88 +4674,6 @@ export type GlamProtocol = {
|
|
|
4091
4674
|
}
|
|
4092
4675
|
]
|
|
4093
4676
|
},
|
|
4094
|
-
{
|
|
4095
|
-
"name": "marinadeOrderUnstake",
|
|
4096
|
-
"discriminator": [
|
|
4097
|
-
202,
|
|
4098
|
-
3,
|
|
4099
|
-
33,
|
|
4100
|
-
27,
|
|
4101
|
-
183,
|
|
4102
|
-
156,
|
|
4103
|
-
57,
|
|
4104
|
-
231
|
|
4105
|
-
],
|
|
4106
|
-
"accounts": [
|
|
4107
|
-
{
|
|
4108
|
-
"name": "glamState",
|
|
4109
|
-
"writable": true
|
|
4110
|
-
},
|
|
4111
|
-
{
|
|
4112
|
-
"name": "glamVault",
|
|
4113
|
-
"writable": true,
|
|
4114
|
-
"pda": {
|
|
4115
|
-
"seeds": [
|
|
4116
|
-
{
|
|
4117
|
-
"kind": "const",
|
|
4118
|
-
"value": [
|
|
4119
|
-
118,
|
|
4120
|
-
97,
|
|
4121
|
-
117,
|
|
4122
|
-
108,
|
|
4123
|
-
116
|
|
4124
|
-
]
|
|
4125
|
-
},
|
|
4126
|
-
{
|
|
4127
|
-
"kind": "account",
|
|
4128
|
-
"path": "glamState"
|
|
4129
|
-
}
|
|
4130
|
-
]
|
|
4131
|
-
}
|
|
4132
|
-
},
|
|
4133
|
-
{
|
|
4134
|
-
"name": "glamSigner",
|
|
4135
|
-
"writable": true,
|
|
4136
|
-
"signer": true
|
|
4137
|
-
},
|
|
4138
|
-
{
|
|
4139
|
-
"name": "cpiProgram",
|
|
4140
|
-
"address": "MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD"
|
|
4141
|
-
},
|
|
4142
|
-
{
|
|
4143
|
-
"name": "state",
|
|
4144
|
-
"writable": true
|
|
4145
|
-
},
|
|
4146
|
-
{
|
|
4147
|
-
"name": "msolMint",
|
|
4148
|
-
"writable": true
|
|
4149
|
-
},
|
|
4150
|
-
{
|
|
4151
|
-
"name": "burnMsolFrom",
|
|
4152
|
-
"writable": true
|
|
4153
|
-
},
|
|
4154
|
-
{
|
|
4155
|
-
"name": "newTicketAccount",
|
|
4156
|
-
"writable": true
|
|
4157
|
-
},
|
|
4158
|
-
{
|
|
4159
|
-
"name": "clock"
|
|
4160
|
-
},
|
|
4161
|
-
{
|
|
4162
|
-
"name": "rent",
|
|
4163
|
-
"address": "SysvarRent111111111111111111111111111111111"
|
|
4164
|
-
},
|
|
4165
|
-
{
|
|
4166
|
-
"name": "tokenProgram"
|
|
4167
|
-
}
|
|
4168
|
-
],
|
|
4169
|
-
"args": [
|
|
4170
|
-
{
|
|
4171
|
-
"name": "msolAmount",
|
|
4172
|
-
"type": "u64"
|
|
4173
|
-
}
|
|
4174
|
-
]
|
|
4175
|
-
},
|
|
4176
4677
|
{
|
|
4177
4678
|
"name": "marinadeWithdrawStakeAccount",
|
|
4178
4679
|
"discriminator": [
|
|
@@ -5725,51 +6226,171 @@ export type GlamProtocol = {
|
|
|
5725
6226
|
]
|
|
5726
6227
|
}
|
|
5727
6228
|
}
|
|
5728
|
-
},
|
|
5729
|
-
{
|
|
5730
|
-
"name": "recipient",
|
|
5731
|
-
"writable": true
|
|
5732
|
-
},
|
|
5733
|
-
{
|
|
5734
|
-
"name": "policyAccount",
|
|
5735
|
-
"writable": true,
|
|
5736
|
-
"optional": true
|
|
5737
|
-
},
|
|
5738
|
-
{
|
|
5739
|
-
"name": "systemProgram",
|
|
5740
|
-
"address": "11111111111111111111111111111111"
|
|
5741
|
-
},
|
|
5742
|
-
{
|
|
5743
|
-
"name": "token2022Program",
|
|
5744
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
5745
|
-
},
|
|
5746
|
-
{
|
|
5747
|
-
"name": "policiesProgram",
|
|
5748
|
-
"address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
|
|
6229
|
+
},
|
|
6230
|
+
{
|
|
6231
|
+
"name": "recipient",
|
|
6232
|
+
"writable": true
|
|
6233
|
+
},
|
|
6234
|
+
{
|
|
6235
|
+
"name": "policyAccount",
|
|
6236
|
+
"writable": true,
|
|
6237
|
+
"optional": true
|
|
6238
|
+
},
|
|
6239
|
+
{
|
|
6240
|
+
"name": "systemProgram",
|
|
6241
|
+
"address": "11111111111111111111111111111111"
|
|
6242
|
+
},
|
|
6243
|
+
{
|
|
6244
|
+
"name": "token2022Program",
|
|
6245
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
6246
|
+
},
|
|
6247
|
+
{
|
|
6248
|
+
"name": "policiesProgram",
|
|
6249
|
+
"address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
|
|
6250
|
+
}
|
|
6251
|
+
],
|
|
6252
|
+
"args": [
|
|
6253
|
+
{
|
|
6254
|
+
"name": "mintId",
|
|
6255
|
+
"type": "u8"
|
|
6256
|
+
},
|
|
6257
|
+
{
|
|
6258
|
+
"name": "amount",
|
|
6259
|
+
"type": "u64"
|
|
6260
|
+
}
|
|
6261
|
+
]
|
|
6262
|
+
},
|
|
6263
|
+
{
|
|
6264
|
+
"name": "priceDriftUsers",
|
|
6265
|
+
"discriminator": [
|
|
6266
|
+
12,
|
|
6267
|
+
5,
|
|
6268
|
+
143,
|
|
6269
|
+
51,
|
|
6270
|
+
101,
|
|
6271
|
+
81,
|
|
6272
|
+
200,
|
|
6273
|
+
150
|
|
6274
|
+
],
|
|
6275
|
+
"accounts": [
|
|
6276
|
+
{
|
|
6277
|
+
"name": "glamState",
|
|
6278
|
+
"writable": true
|
|
6279
|
+
},
|
|
6280
|
+
{
|
|
6281
|
+
"name": "glamVault",
|
|
6282
|
+
"pda": {
|
|
6283
|
+
"seeds": [
|
|
6284
|
+
{
|
|
6285
|
+
"kind": "const",
|
|
6286
|
+
"value": [
|
|
6287
|
+
118,
|
|
6288
|
+
97,
|
|
6289
|
+
117,
|
|
6290
|
+
108,
|
|
6291
|
+
116
|
|
6292
|
+
]
|
|
6293
|
+
},
|
|
6294
|
+
{
|
|
6295
|
+
"kind": "account",
|
|
6296
|
+
"path": "glamState"
|
|
6297
|
+
}
|
|
6298
|
+
]
|
|
6299
|
+
}
|
|
6300
|
+
},
|
|
6301
|
+
{
|
|
6302
|
+
"name": "signer",
|
|
6303
|
+
"writable": true,
|
|
6304
|
+
"signer": true
|
|
6305
|
+
},
|
|
6306
|
+
{
|
|
6307
|
+
"name": "solOracle"
|
|
6308
|
+
},
|
|
6309
|
+
{
|
|
6310
|
+
"name": "glamConfig",
|
|
6311
|
+
"pda": {
|
|
6312
|
+
"seeds": [
|
|
6313
|
+
{
|
|
6314
|
+
"kind": "const",
|
|
6315
|
+
"value": [
|
|
6316
|
+
103,
|
|
6317
|
+
108,
|
|
6318
|
+
111,
|
|
6319
|
+
98,
|
|
6320
|
+
97,
|
|
6321
|
+
108,
|
|
6322
|
+
95,
|
|
6323
|
+
99,
|
|
6324
|
+
111,
|
|
6325
|
+
110,
|
|
6326
|
+
102,
|
|
6327
|
+
105,
|
|
6328
|
+
103
|
|
6329
|
+
]
|
|
6330
|
+
}
|
|
6331
|
+
],
|
|
6332
|
+
"program": {
|
|
6333
|
+
"kind": "const",
|
|
6334
|
+
"value": [
|
|
6335
|
+
10,
|
|
6336
|
+
11,
|
|
6337
|
+
0,
|
|
6338
|
+
83,
|
|
6339
|
+
72,
|
|
6340
|
+
16,
|
|
6341
|
+
46,
|
|
6342
|
+
144,
|
|
6343
|
+
46,
|
|
6344
|
+
42,
|
|
6345
|
+
79,
|
|
6346
|
+
22,
|
|
6347
|
+
157,
|
|
6348
|
+
123,
|
|
6349
|
+
21,
|
|
6350
|
+
242,
|
|
6351
|
+
192,
|
|
6352
|
+
146,
|
|
6353
|
+
1,
|
|
6354
|
+
78,
|
|
6355
|
+
88,
|
|
6356
|
+
59,
|
|
6357
|
+
102,
|
|
6358
|
+
9,
|
|
6359
|
+
190,
|
|
6360
|
+
226,
|
|
6361
|
+
92,
|
|
6362
|
+
189,
|
|
6363
|
+
187,
|
|
6364
|
+
232,
|
|
6365
|
+
83,
|
|
6366
|
+
220
|
|
6367
|
+
]
|
|
6368
|
+
}
|
|
6369
|
+
}
|
|
5749
6370
|
}
|
|
5750
6371
|
],
|
|
5751
6372
|
"args": [
|
|
5752
6373
|
{
|
|
5753
|
-
"name": "
|
|
5754
|
-
"type":
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
6374
|
+
"name": "denom",
|
|
6375
|
+
"type": {
|
|
6376
|
+
"defined": {
|
|
6377
|
+
"name": "priceDenom"
|
|
6378
|
+
}
|
|
6379
|
+
}
|
|
5759
6380
|
}
|
|
5760
6381
|
]
|
|
5761
6382
|
},
|
|
5762
6383
|
{
|
|
5763
|
-
"name": "
|
|
6384
|
+
"name": "priceDriftVaultDepositors",
|
|
5764
6385
|
"discriminator": [
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
6386
|
+
234,
|
|
6387
|
+
16,
|
|
6388
|
+
238,
|
|
6389
|
+
70,
|
|
6390
|
+
189,
|
|
6391
|
+
23,
|
|
6392
|
+
98,
|
|
6393
|
+
160
|
|
5773
6394
|
],
|
|
5774
6395
|
"accounts": [
|
|
5775
6396
|
{
|
|
@@ -5777,7 +6398,25 @@ export type GlamProtocol = {
|
|
|
5777
6398
|
"writable": true
|
|
5778
6399
|
},
|
|
5779
6400
|
{
|
|
5780
|
-
"name": "glamVault"
|
|
6401
|
+
"name": "glamVault",
|
|
6402
|
+
"pda": {
|
|
6403
|
+
"seeds": [
|
|
6404
|
+
{
|
|
6405
|
+
"kind": "const",
|
|
6406
|
+
"value": [
|
|
6407
|
+
118,
|
|
6408
|
+
97,
|
|
6409
|
+
117,
|
|
6410
|
+
108,
|
|
6411
|
+
116
|
|
6412
|
+
]
|
|
6413
|
+
},
|
|
6414
|
+
{
|
|
6415
|
+
"kind": "account",
|
|
6416
|
+
"path": "glamState"
|
|
6417
|
+
}
|
|
6418
|
+
]
|
|
6419
|
+
}
|
|
5781
6420
|
},
|
|
5782
6421
|
{
|
|
5783
6422
|
"name": "signer",
|
|
@@ -5788,13 +6427,66 @@ export type GlamProtocol = {
|
|
|
5788
6427
|
"name": "solOracle"
|
|
5789
6428
|
},
|
|
5790
6429
|
{
|
|
5791
|
-
"name": "
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
6430
|
+
"name": "glamConfig",
|
|
6431
|
+
"pda": {
|
|
6432
|
+
"seeds": [
|
|
6433
|
+
{
|
|
6434
|
+
"kind": "const",
|
|
6435
|
+
"value": [
|
|
6436
|
+
103,
|
|
6437
|
+
108,
|
|
6438
|
+
111,
|
|
6439
|
+
98,
|
|
6440
|
+
97,
|
|
6441
|
+
108,
|
|
6442
|
+
95,
|
|
6443
|
+
99,
|
|
6444
|
+
111,
|
|
6445
|
+
110,
|
|
6446
|
+
102,
|
|
6447
|
+
105,
|
|
6448
|
+
103
|
|
6449
|
+
]
|
|
6450
|
+
}
|
|
6451
|
+
],
|
|
6452
|
+
"program": {
|
|
6453
|
+
"kind": "const",
|
|
6454
|
+
"value": [
|
|
6455
|
+
10,
|
|
6456
|
+
11,
|
|
6457
|
+
0,
|
|
6458
|
+
83,
|
|
6459
|
+
72,
|
|
6460
|
+
16,
|
|
6461
|
+
46,
|
|
6462
|
+
144,
|
|
6463
|
+
46,
|
|
6464
|
+
42,
|
|
6465
|
+
79,
|
|
6466
|
+
22,
|
|
6467
|
+
157,
|
|
6468
|
+
123,
|
|
6469
|
+
21,
|
|
6470
|
+
242,
|
|
6471
|
+
192,
|
|
6472
|
+
146,
|
|
6473
|
+
1,
|
|
6474
|
+
78,
|
|
6475
|
+
88,
|
|
6476
|
+
59,
|
|
6477
|
+
102,
|
|
6478
|
+
9,
|
|
6479
|
+
190,
|
|
6480
|
+
226,
|
|
6481
|
+
92,
|
|
6482
|
+
189,
|
|
6483
|
+
187,
|
|
6484
|
+
232,
|
|
6485
|
+
83,
|
|
6486
|
+
220
|
|
6487
|
+
]
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
5798
6490
|
}
|
|
5799
6491
|
],
|
|
5800
6492
|
"args": [
|
|
@@ -5847,7 +6539,7 @@ export type GlamProtocol = {
|
|
|
5847
6539
|
}
|
|
5848
6540
|
},
|
|
5849
6541
|
{
|
|
5850
|
-
"name": "
|
|
6542
|
+
"name": "signer",
|
|
5851
6543
|
"writable": true,
|
|
5852
6544
|
"signer": true
|
|
5853
6545
|
},
|
|
@@ -5949,16 +6641,16 @@ export type GlamProtocol = {
|
|
|
5949
6641
|
]
|
|
5950
6642
|
},
|
|
5951
6643
|
{
|
|
5952
|
-
"name": "
|
|
6644
|
+
"name": "priceKaminoVaultShares",
|
|
5953
6645
|
"discriminator": [
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
6646
|
+
112,
|
|
6647
|
+
92,
|
|
6648
|
+
238,
|
|
6649
|
+
224,
|
|
6650
|
+
145,
|
|
6651
|
+
105,
|
|
6652
|
+
38,
|
|
6653
|
+
249
|
|
5962
6654
|
],
|
|
5963
6655
|
"accounts": [
|
|
5964
6656
|
{
|
|
@@ -5987,10 +6679,14 @@ export type GlamProtocol = {
|
|
|
5987
6679
|
}
|
|
5988
6680
|
},
|
|
5989
6681
|
{
|
|
5990
|
-
"name": "
|
|
6682
|
+
"name": "signer",
|
|
5991
6683
|
"writable": true,
|
|
5992
6684
|
"signer": true
|
|
5993
6685
|
},
|
|
6686
|
+
{
|
|
6687
|
+
"name": "kaminoLendingProgram",
|
|
6688
|
+
"address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
|
|
6689
|
+
},
|
|
5994
6690
|
{
|
|
5995
6691
|
"name": "solOracle"
|
|
5996
6692
|
},
|
|
@@ -6055,6 +6751,22 @@ export type GlamProtocol = {
|
|
|
6055
6751
|
]
|
|
6056
6752
|
}
|
|
6057
6753
|
}
|
|
6754
|
+
},
|
|
6755
|
+
{
|
|
6756
|
+
"name": "pythOracle",
|
|
6757
|
+
"optional": true
|
|
6758
|
+
},
|
|
6759
|
+
{
|
|
6760
|
+
"name": "switchboardPriceOracle",
|
|
6761
|
+
"optional": true
|
|
6762
|
+
},
|
|
6763
|
+
{
|
|
6764
|
+
"name": "switchboardTwapOracle",
|
|
6765
|
+
"optional": true
|
|
6766
|
+
},
|
|
6767
|
+
{
|
|
6768
|
+
"name": "scopePrices",
|
|
6769
|
+
"optional": true
|
|
6058
6770
|
}
|
|
6059
6771
|
],
|
|
6060
6772
|
"args": [
|
|
@@ -6069,16 +6781,16 @@ export type GlamProtocol = {
|
|
|
6069
6781
|
]
|
|
6070
6782
|
},
|
|
6071
6783
|
{
|
|
6072
|
-
"name": "
|
|
6784
|
+
"name": "priceMeteoraPositions",
|
|
6073
6785
|
"discriminator": [
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6786
|
+
186,
|
|
6787
|
+
22,
|
|
6788
|
+
157,
|
|
6789
|
+
249,
|
|
6790
|
+
185,
|
|
6791
|
+
176,
|
|
6792
|
+
253,
|
|
6793
|
+
133
|
|
6082
6794
|
],
|
|
6083
6795
|
"accounts": [
|
|
6084
6796
|
{
|
|
@@ -6107,7 +6819,7 @@ export type GlamProtocol = {
|
|
|
6107
6819
|
}
|
|
6108
6820
|
},
|
|
6109
6821
|
{
|
|
6110
|
-
"name": "
|
|
6822
|
+
"name": "signer",
|
|
6111
6823
|
"writable": true,
|
|
6112
6824
|
"signer": true
|
|
6113
6825
|
},
|
|
@@ -6189,16 +6901,16 @@ export type GlamProtocol = {
|
|
|
6189
6901
|
]
|
|
6190
6902
|
},
|
|
6191
6903
|
{
|
|
6192
|
-
"name": "
|
|
6904
|
+
"name": "priceStakes",
|
|
6193
6905
|
"discriminator": [
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6906
|
+
0,
|
|
6907
|
+
60,
|
|
6908
|
+
60,
|
|
6909
|
+
103,
|
|
6910
|
+
201,
|
|
6911
|
+
94,
|
|
6912
|
+
72,
|
|
6913
|
+
223
|
|
6202
6914
|
],
|
|
6203
6915
|
"accounts": [
|
|
6204
6916
|
{
|
|
@@ -6227,7 +6939,7 @@ export type GlamProtocol = {
|
|
|
6227
6939
|
}
|
|
6228
6940
|
},
|
|
6229
6941
|
{
|
|
6230
|
-
"name": "
|
|
6942
|
+
"name": "signer",
|
|
6231
6943
|
"writable": true,
|
|
6232
6944
|
"signer": true
|
|
6233
6945
|
},
|
|
@@ -6347,7 +7059,7 @@ export type GlamProtocol = {
|
|
|
6347
7059
|
}
|
|
6348
7060
|
},
|
|
6349
7061
|
{
|
|
6350
|
-
"name": "
|
|
7062
|
+
"name": "signer",
|
|
6351
7063
|
"writable": true,
|
|
6352
7064
|
"signer": true
|
|
6353
7065
|
},
|
|
@@ -9486,11 +10198,6 @@ export type GlamProtocol = {
|
|
|
9486
10198
|
"name": "invalidAuthority",
|
|
9487
10199
|
"msg": "Invalid authority"
|
|
9488
10200
|
},
|
|
9489
|
-
{
|
|
9490
|
-
"code": 48009,
|
|
9491
|
-
"name": "invalidPriceDenom",
|
|
9492
|
-
"msg": "Invalid price denom"
|
|
9493
|
-
},
|
|
9494
10201
|
{
|
|
9495
10202
|
"code": 49000,
|
|
9496
10203
|
"name": "invalidAccountType",
|
|
@@ -9691,6 +10398,26 @@ export type GlamProtocol = {
|
|
|
9691
10398
|
"name": "baseAssetNotSupported",
|
|
9692
10399
|
"msg": "Base asset must have 6 decimals."
|
|
9693
10400
|
},
|
|
10401
|
+
{
|
|
10402
|
+
"code": 51110,
|
|
10403
|
+
"name": "invalidQuoteSpotMarket",
|
|
10404
|
+
"msg": "Unsupported spot market for perp quotes"
|
|
10405
|
+
},
|
|
10406
|
+
{
|
|
10407
|
+
"code": 51111,
|
|
10408
|
+
"name": "unknownExternalVaultAsset",
|
|
10409
|
+
"msg": "Unknown external vault account"
|
|
10410
|
+
},
|
|
10411
|
+
{
|
|
10412
|
+
"code": 51112,
|
|
10413
|
+
"name": "invalidPriceDenom",
|
|
10414
|
+
"msg": "Invalid price denom"
|
|
10415
|
+
},
|
|
10416
|
+
{
|
|
10417
|
+
"code": 51113,
|
|
10418
|
+
"name": "unexpectedDiscriminator",
|
|
10419
|
+
"msg": "Invalid account: discriminator mismatch"
|
|
10420
|
+
},
|
|
9694
10421
|
{
|
|
9695
10422
|
"code": 52000,
|
|
9696
10423
|
"name": "transfersDisabled",
|
|
@@ -11022,6 +11749,12 @@ export type GlamProtocol = {
|
|
|
11022
11749
|
},
|
|
11023
11750
|
{
|
|
11024
11751
|
"name": "meteoraDlmm"
|
|
11752
|
+
},
|
|
11753
|
+
{
|
|
11754
|
+
"name": "driftVaults"
|
|
11755
|
+
},
|
|
11756
|
+
{
|
|
11757
|
+
"name": "kaminoVaults"
|
|
11025
11758
|
}
|
|
11026
11759
|
]
|
|
11027
11760
|
}
|
|
@@ -12142,6 +12875,18 @@ export type GlamProtocol = {
|
|
|
12142
12875
|
},
|
|
12143
12876
|
{
|
|
12144
12877
|
"name": "emergencyUpdate"
|
|
12878
|
+
},
|
|
12879
|
+
{
|
|
12880
|
+
"name": "driftVaultsDeposit"
|
|
12881
|
+
},
|
|
12882
|
+
{
|
|
12883
|
+
"name": "driftVaultsWithdraw"
|
|
12884
|
+
},
|
|
12885
|
+
{
|
|
12886
|
+
"name": "kaminoVaultsDeposit"
|
|
12887
|
+
},
|
|
12888
|
+
{
|
|
12889
|
+
"name": "kaminoVaultsWithdraw"
|
|
12145
12890
|
}
|
|
12146
12891
|
]
|
|
12147
12892
|
}
|
|
@@ -12998,6 +13743,23 @@ export type GlamProtocol = {
|
|
|
12998
13743
|
}
|
|
12999
13744
|
]
|
|
13000
13745
|
}
|
|
13746
|
+
},
|
|
13747
|
+
{
|
|
13748
|
+
"name": "withdrawUnit",
|
|
13749
|
+
"type": {
|
|
13750
|
+
"kind": "enum",
|
|
13751
|
+
"variants": [
|
|
13752
|
+
{
|
|
13753
|
+
"name": "shares"
|
|
13754
|
+
},
|
|
13755
|
+
{
|
|
13756
|
+
"name": "token"
|
|
13757
|
+
},
|
|
13758
|
+
{
|
|
13759
|
+
"name": "sharesPercent"
|
|
13760
|
+
}
|
|
13761
|
+
]
|
|
13762
|
+
}
|
|
13001
13763
|
}
|
|
13002
13764
|
],
|
|
13003
13765
|
"constants": [
|