@voltr/vault-sdk 1.0.17 → 1.0.19
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/dist/client.d.ts +78 -48
- package/dist/client.js +77 -56
- package/dist/idl/voltr_vault.json +830 -71
- package/dist/types/vault.d.ts +3 -1
- package/dist/types/vault.js +2 -0
- package/dist/types/voltr_vault.d.ts +830 -71
- package/package.json +2 -4
|
@@ -13,6 +13,33 @@ export type VoltrVault = {
|
|
|
13
13
|
"description": "Created with Anchor";
|
|
14
14
|
};
|
|
15
15
|
"instructions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "acceptVaultAdmin";
|
|
18
|
+
"discriminator": [
|
|
19
|
+
214,
|
|
20
|
+
137,
|
|
21
|
+
204,
|
|
22
|
+
56,
|
|
23
|
+
78,
|
|
24
|
+
214,
|
|
25
|
+
90,
|
|
26
|
+
125
|
|
27
|
+
];
|
|
28
|
+
"accounts": [
|
|
29
|
+
{
|
|
30
|
+
"name": "pendingAdmin";
|
|
31
|
+
"signer": true;
|
|
32
|
+
"relations": [
|
|
33
|
+
"vault"
|
|
34
|
+
];
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "vault";
|
|
38
|
+
"writable": true;
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
"args": [];
|
|
42
|
+
},
|
|
16
43
|
{
|
|
17
44
|
"name": "addAdaptor";
|
|
18
45
|
"discriminator": [
|
|
@@ -185,6 +212,67 @@ export type VoltrVault = {
|
|
|
185
212
|
}
|
|
186
213
|
];
|
|
187
214
|
};
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "adminLpAta";
|
|
218
|
+
"writable": true;
|
|
219
|
+
"pda": {
|
|
220
|
+
"seeds": [
|
|
221
|
+
{
|
|
222
|
+
"kind": "account";
|
|
223
|
+
"path": "admin";
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"kind": "account";
|
|
227
|
+
"path": "lpTokenProgram";
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "account";
|
|
231
|
+
"path": "vaultLpMint";
|
|
232
|
+
}
|
|
233
|
+
];
|
|
234
|
+
"program": {
|
|
235
|
+
"kind": "const";
|
|
236
|
+
"value": [
|
|
237
|
+
140,
|
|
238
|
+
151,
|
|
239
|
+
37,
|
|
240
|
+
143,
|
|
241
|
+
78,
|
|
242
|
+
36,
|
|
243
|
+
137,
|
|
244
|
+
241,
|
|
245
|
+
187,
|
|
246
|
+
61,
|
|
247
|
+
16,
|
|
248
|
+
41,
|
|
249
|
+
20,
|
|
250
|
+
142,
|
|
251
|
+
13,
|
|
252
|
+
131,
|
|
253
|
+
11,
|
|
254
|
+
90,
|
|
255
|
+
19,
|
|
256
|
+
153,
|
|
257
|
+
218,
|
|
258
|
+
255,
|
|
259
|
+
16,
|
|
260
|
+
132,
|
|
261
|
+
4,
|
|
262
|
+
142,
|
|
263
|
+
123,
|
|
264
|
+
216,
|
|
265
|
+
219,
|
|
266
|
+
233,
|
|
267
|
+
248,
|
|
268
|
+
89
|
|
269
|
+
];
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "lpTokenProgram";
|
|
275
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
188
276
|
}
|
|
189
277
|
];
|
|
190
278
|
"args": [];
|
|
@@ -1352,27 +1440,528 @@ export type VoltrVault = {
|
|
|
1352
1440
|
108,
|
|
1353
1441
|
116,
|
|
1354
1442
|
95,
|
|
1355
|
-
108,
|
|
1356
|
-
112,
|
|
1357
|
-
95,
|
|
1358
|
-
109,
|
|
1443
|
+
108,
|
|
1444
|
+
112,
|
|
1445
|
+
95,
|
|
1446
|
+
109,
|
|
1447
|
+
105,
|
|
1448
|
+
110,
|
|
1449
|
+
116,
|
|
1450
|
+
95,
|
|
1451
|
+
97,
|
|
1452
|
+
117,
|
|
1453
|
+
116,
|
|
1454
|
+
104
|
|
1455
|
+
];
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"kind": "account";
|
|
1459
|
+
"path": "vault";
|
|
1460
|
+
}
|
|
1461
|
+
];
|
|
1462
|
+
};
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"name": "assetTokenProgram";
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "lpTokenProgram";
|
|
1469
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "systemProgram";
|
|
1473
|
+
"address": "11111111111111111111111111111111";
|
|
1474
|
+
}
|
|
1475
|
+
];
|
|
1476
|
+
"args": [
|
|
1477
|
+
{
|
|
1478
|
+
"name": "amount";
|
|
1479
|
+
"type": "u64";
|
|
1480
|
+
}
|
|
1481
|
+
];
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "directWithdrawStrategy";
|
|
1485
|
+
"discriminator": [
|
|
1486
|
+
119,
|
|
1487
|
+
33,
|
|
1488
|
+
54,
|
|
1489
|
+
52,
|
|
1490
|
+
194,
|
|
1491
|
+
8,
|
|
1492
|
+
211,
|
|
1493
|
+
239
|
|
1494
|
+
];
|
|
1495
|
+
"accounts": [
|
|
1496
|
+
{
|
|
1497
|
+
"name": "userTransferAuthority";
|
|
1498
|
+
"docs": [
|
|
1499
|
+
"The authority that owns the LP tokens and wants to redeem them"
|
|
1500
|
+
];
|
|
1501
|
+
"writable": true;
|
|
1502
|
+
"signer": true;
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "protocol";
|
|
1506
|
+
"pda": {
|
|
1507
|
+
"seeds": [
|
|
1508
|
+
{
|
|
1509
|
+
"kind": "const";
|
|
1510
|
+
"value": [
|
|
1511
|
+
112,
|
|
1512
|
+
114,
|
|
1513
|
+
111,
|
|
1514
|
+
116,
|
|
1515
|
+
111,
|
|
1516
|
+
99,
|
|
1517
|
+
111,
|
|
1518
|
+
108
|
|
1519
|
+
];
|
|
1520
|
+
}
|
|
1521
|
+
];
|
|
1522
|
+
};
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
"name": "vault";
|
|
1526
|
+
"writable": true;
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"name": "adaptorAddReceipt";
|
|
1530
|
+
"pda": {
|
|
1531
|
+
"seeds": [
|
|
1532
|
+
{
|
|
1533
|
+
"kind": "const";
|
|
1534
|
+
"value": [
|
|
1535
|
+
97,
|
|
1536
|
+
100,
|
|
1537
|
+
97,
|
|
1538
|
+
112,
|
|
1539
|
+
116,
|
|
1540
|
+
111,
|
|
1541
|
+
114,
|
|
1542
|
+
95,
|
|
1543
|
+
97,
|
|
1544
|
+
100,
|
|
1545
|
+
100,
|
|
1546
|
+
95,
|
|
1547
|
+
114,
|
|
1548
|
+
101,
|
|
1549
|
+
99,
|
|
1550
|
+
101,
|
|
1551
|
+
105,
|
|
1552
|
+
112,
|
|
1553
|
+
116
|
|
1554
|
+
];
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"kind": "account";
|
|
1558
|
+
"path": "vault";
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"kind": "account";
|
|
1562
|
+
"path": "adaptorProgram";
|
|
1563
|
+
}
|
|
1564
|
+
];
|
|
1565
|
+
};
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"name": "strategyInitReceipt";
|
|
1569
|
+
"writable": true;
|
|
1570
|
+
"pda": {
|
|
1571
|
+
"seeds": [
|
|
1572
|
+
{
|
|
1573
|
+
"kind": "const";
|
|
1574
|
+
"value": [
|
|
1575
|
+
115,
|
|
1576
|
+
116,
|
|
1577
|
+
114,
|
|
1578
|
+
97,
|
|
1579
|
+
116,
|
|
1580
|
+
101,
|
|
1581
|
+
103,
|
|
1582
|
+
121,
|
|
1583
|
+
95,
|
|
1584
|
+
105,
|
|
1585
|
+
110,
|
|
1586
|
+
105,
|
|
1587
|
+
116,
|
|
1588
|
+
95,
|
|
1589
|
+
114,
|
|
1590
|
+
101,
|
|
1591
|
+
99,
|
|
1592
|
+
101,
|
|
1593
|
+
105,
|
|
1594
|
+
112,
|
|
1595
|
+
116
|
|
1596
|
+
];
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"kind": "account";
|
|
1600
|
+
"path": "vault";
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"kind": "account";
|
|
1604
|
+
"path": "strategy";
|
|
1605
|
+
}
|
|
1606
|
+
];
|
|
1607
|
+
};
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "directWithdrawInitReceipt";
|
|
1611
|
+
"pda": {
|
|
1612
|
+
"seeds": [
|
|
1613
|
+
{
|
|
1614
|
+
"kind": "const";
|
|
1615
|
+
"value": [
|
|
1616
|
+
100,
|
|
1617
|
+
105,
|
|
1618
|
+
114,
|
|
1619
|
+
101,
|
|
1620
|
+
99,
|
|
1621
|
+
116,
|
|
1622
|
+
95,
|
|
1623
|
+
119,
|
|
1624
|
+
105,
|
|
1625
|
+
116,
|
|
1626
|
+
104,
|
|
1627
|
+
100,
|
|
1628
|
+
114,
|
|
1629
|
+
97,
|
|
1630
|
+
119,
|
|
1631
|
+
95,
|
|
1632
|
+
105,
|
|
1633
|
+
110,
|
|
1634
|
+
105,
|
|
1635
|
+
116,
|
|
1636
|
+
95,
|
|
1637
|
+
114,
|
|
1638
|
+
101,
|
|
1639
|
+
99,
|
|
1640
|
+
101,
|
|
1641
|
+
105,
|
|
1642
|
+
112,
|
|
1643
|
+
116
|
|
1644
|
+
];
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"kind": "account";
|
|
1648
|
+
"path": "vault";
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"kind": "account";
|
|
1652
|
+
"path": "strategy";
|
|
1653
|
+
}
|
|
1654
|
+
];
|
|
1655
|
+
};
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
"name": "strategy";
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "vaultAssetMint";
|
|
1662
|
+
"writable": true;
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"name": "vaultLpMint";
|
|
1666
|
+
"writable": true;
|
|
1667
|
+
"pda": {
|
|
1668
|
+
"seeds": [
|
|
1669
|
+
{
|
|
1670
|
+
"kind": "const";
|
|
1671
|
+
"value": [
|
|
1672
|
+
118,
|
|
1673
|
+
97,
|
|
1674
|
+
117,
|
|
1675
|
+
108,
|
|
1676
|
+
116,
|
|
1677
|
+
95,
|
|
1678
|
+
108,
|
|
1679
|
+
112,
|
|
1680
|
+
95,
|
|
1681
|
+
109,
|
|
1682
|
+
105,
|
|
1683
|
+
110,
|
|
1684
|
+
116
|
|
1685
|
+
];
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"kind": "account";
|
|
1689
|
+
"path": "vault";
|
|
1690
|
+
}
|
|
1691
|
+
];
|
|
1692
|
+
};
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "requestWithdrawLpAta";
|
|
1696
|
+
"docs": [
|
|
1697
|
+
"The request's LP token account from which LP tokens will be burned."
|
|
1698
|
+
];
|
|
1699
|
+
"writable": true;
|
|
1700
|
+
"pda": {
|
|
1701
|
+
"seeds": [
|
|
1702
|
+
{
|
|
1703
|
+
"kind": "account";
|
|
1704
|
+
"path": "requestWithdrawVaultReceipt";
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"kind": "account";
|
|
1708
|
+
"path": "lpTokenProgram";
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"kind": "account";
|
|
1712
|
+
"path": "vaultLpMint";
|
|
1713
|
+
}
|
|
1714
|
+
];
|
|
1715
|
+
"program": {
|
|
1716
|
+
"kind": "const";
|
|
1717
|
+
"value": [
|
|
1718
|
+
140,
|
|
1719
|
+
151,
|
|
1720
|
+
37,
|
|
1721
|
+
143,
|
|
1722
|
+
78,
|
|
1723
|
+
36,
|
|
1724
|
+
137,
|
|
1725
|
+
241,
|
|
1726
|
+
187,
|
|
1727
|
+
61,
|
|
1728
|
+
16,
|
|
1729
|
+
41,
|
|
1730
|
+
20,
|
|
1731
|
+
142,
|
|
1732
|
+
13,
|
|
1733
|
+
131,
|
|
1734
|
+
11,
|
|
1735
|
+
90,
|
|
1736
|
+
19,
|
|
1737
|
+
153,
|
|
1738
|
+
218,
|
|
1739
|
+
255,
|
|
1740
|
+
16,
|
|
1741
|
+
132,
|
|
1742
|
+
4,
|
|
1743
|
+
142,
|
|
1744
|
+
123,
|
|
1745
|
+
216,
|
|
1746
|
+
219,
|
|
1747
|
+
233,
|
|
1748
|
+
248,
|
|
1749
|
+
89
|
|
1750
|
+
];
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "vaultStrategyAuth";
|
|
1756
|
+
"writable": true;
|
|
1757
|
+
"pda": {
|
|
1758
|
+
"seeds": [
|
|
1759
|
+
{
|
|
1760
|
+
"kind": "const";
|
|
1761
|
+
"value": [
|
|
1762
|
+
118,
|
|
1763
|
+
97,
|
|
1764
|
+
117,
|
|
1765
|
+
108,
|
|
1766
|
+
116,
|
|
1767
|
+
95,
|
|
1768
|
+
115,
|
|
1769
|
+
116,
|
|
1770
|
+
114,
|
|
1771
|
+
97,
|
|
1772
|
+
116,
|
|
1773
|
+
101,
|
|
1774
|
+
103,
|
|
1775
|
+
121,
|
|
1776
|
+
95,
|
|
1777
|
+
97,
|
|
1778
|
+
117,
|
|
1779
|
+
116,
|
|
1780
|
+
104
|
|
1781
|
+
];
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"kind": "account";
|
|
1785
|
+
"path": "vault";
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"kind": "account";
|
|
1789
|
+
"path": "strategy";
|
|
1790
|
+
}
|
|
1791
|
+
];
|
|
1792
|
+
};
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "userAssetAta";
|
|
1796
|
+
"docs": [
|
|
1797
|
+
"The user's asset ATA to which asset tokens will be sent."
|
|
1798
|
+
];
|
|
1799
|
+
"writable": true;
|
|
1800
|
+
"pda": {
|
|
1801
|
+
"seeds": [
|
|
1802
|
+
{
|
|
1803
|
+
"kind": "account";
|
|
1804
|
+
"path": "userTransferAuthority";
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"kind": "account";
|
|
1808
|
+
"path": "assetTokenProgram";
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"kind": "account";
|
|
1812
|
+
"path": "vaultAssetMint";
|
|
1813
|
+
}
|
|
1814
|
+
];
|
|
1815
|
+
"program": {
|
|
1816
|
+
"kind": "const";
|
|
1817
|
+
"value": [
|
|
1818
|
+
140,
|
|
1819
|
+
151,
|
|
1820
|
+
37,
|
|
1821
|
+
143,
|
|
1822
|
+
78,
|
|
1823
|
+
36,
|
|
1824
|
+
137,
|
|
1825
|
+
241,
|
|
1826
|
+
187,
|
|
1827
|
+
61,
|
|
1828
|
+
16,
|
|
1829
|
+
41,
|
|
1830
|
+
20,
|
|
1831
|
+
142,
|
|
1832
|
+
13,
|
|
1833
|
+
131,
|
|
1834
|
+
11,
|
|
1835
|
+
90,
|
|
1836
|
+
19,
|
|
1837
|
+
153,
|
|
1838
|
+
218,
|
|
1839
|
+
255,
|
|
1840
|
+
16,
|
|
1841
|
+
132,
|
|
1842
|
+
4,
|
|
1843
|
+
142,
|
|
1844
|
+
123,
|
|
1845
|
+
216,
|
|
1846
|
+
219,
|
|
1847
|
+
233,
|
|
1848
|
+
248,
|
|
1849
|
+
89
|
|
1850
|
+
];
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "vaultStrategyAssetAta";
|
|
1856
|
+
"writable": true;
|
|
1857
|
+
"pda": {
|
|
1858
|
+
"seeds": [
|
|
1859
|
+
{
|
|
1860
|
+
"kind": "account";
|
|
1861
|
+
"path": "vaultStrategyAuth";
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"kind": "account";
|
|
1865
|
+
"path": "assetTokenProgram";
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"kind": "account";
|
|
1869
|
+
"path": "vaultAssetMint";
|
|
1870
|
+
}
|
|
1871
|
+
];
|
|
1872
|
+
"program": {
|
|
1873
|
+
"kind": "const";
|
|
1874
|
+
"value": [
|
|
1875
|
+
140,
|
|
1876
|
+
151,
|
|
1877
|
+
37,
|
|
1878
|
+
143,
|
|
1879
|
+
78,
|
|
1880
|
+
36,
|
|
1881
|
+
137,
|
|
1882
|
+
241,
|
|
1883
|
+
187,
|
|
1884
|
+
61,
|
|
1885
|
+
16,
|
|
1886
|
+
41,
|
|
1887
|
+
20,
|
|
1888
|
+
142,
|
|
1889
|
+
13,
|
|
1890
|
+
131,
|
|
1891
|
+
11,
|
|
1892
|
+
90,
|
|
1893
|
+
19,
|
|
1894
|
+
153,
|
|
1895
|
+
218,
|
|
1896
|
+
255,
|
|
1897
|
+
16,
|
|
1898
|
+
132,
|
|
1899
|
+
4,
|
|
1900
|
+
142,
|
|
1901
|
+
123,
|
|
1902
|
+
216,
|
|
1903
|
+
219,
|
|
1904
|
+
233,
|
|
1905
|
+
248,
|
|
1906
|
+
89
|
|
1907
|
+
];
|
|
1908
|
+
};
|
|
1909
|
+
};
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"name": "requestWithdrawVaultReceipt";
|
|
1913
|
+
"writable": true;
|
|
1914
|
+
"pda": {
|
|
1915
|
+
"seeds": [
|
|
1916
|
+
{
|
|
1917
|
+
"kind": "const";
|
|
1918
|
+
"value": [
|
|
1919
|
+
114,
|
|
1920
|
+
101,
|
|
1921
|
+
113,
|
|
1922
|
+
117,
|
|
1923
|
+
101,
|
|
1924
|
+
115,
|
|
1925
|
+
116,
|
|
1926
|
+
95,
|
|
1927
|
+
119,
|
|
1928
|
+
105,
|
|
1929
|
+
116,
|
|
1930
|
+
104,
|
|
1931
|
+
100,
|
|
1932
|
+
114,
|
|
1933
|
+
97,
|
|
1934
|
+
119,
|
|
1935
|
+
95,
|
|
1936
|
+
118,
|
|
1937
|
+
97,
|
|
1938
|
+
117,
|
|
1939
|
+
108,
|
|
1940
|
+
116,
|
|
1941
|
+
95,
|
|
1942
|
+
114,
|
|
1943
|
+
101,
|
|
1944
|
+
99,
|
|
1945
|
+
101,
|
|
1359
1946
|
105,
|
|
1360
|
-
|
|
1361
|
-
116
|
|
1362
|
-
95,
|
|
1363
|
-
97,
|
|
1364
|
-
117,
|
|
1365
|
-
116,
|
|
1366
|
-
104
|
|
1947
|
+
112,
|
|
1948
|
+
116
|
|
1367
1949
|
];
|
|
1368
1950
|
},
|
|
1369
1951
|
{
|
|
1370
1952
|
"kind": "account";
|
|
1371
1953
|
"path": "vault";
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
"kind": "account";
|
|
1957
|
+
"path": "userTransferAuthority";
|
|
1372
1958
|
}
|
|
1373
1959
|
];
|
|
1374
1960
|
};
|
|
1375
1961
|
},
|
|
1962
|
+
{
|
|
1963
|
+
"name": "adaptorProgram";
|
|
1964
|
+
},
|
|
1376
1965
|
{
|
|
1377
1966
|
"name": "assetTokenProgram";
|
|
1378
1967
|
},
|
|
@@ -1387,22 +1976,24 @@ export type VoltrVault = {
|
|
|
1387
1976
|
];
|
|
1388
1977
|
"args": [
|
|
1389
1978
|
{
|
|
1390
|
-
"name": "
|
|
1391
|
-
"type":
|
|
1979
|
+
"name": "userArgs";
|
|
1980
|
+
"type": {
|
|
1981
|
+
"option": "bytes";
|
|
1982
|
+
};
|
|
1392
1983
|
}
|
|
1393
1984
|
];
|
|
1394
1985
|
},
|
|
1395
1986
|
{
|
|
1396
|
-
"name": "
|
|
1987
|
+
"name": "directWithdrawStrategyWithTolerance";
|
|
1397
1988
|
"discriminator": [
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
52,
|
|
1402
|
-
194,
|
|
1989
|
+
207,
|
|
1990
|
+
51,
|
|
1991
|
+
234,
|
|
1403
1992
|
8,
|
|
1404
|
-
|
|
1405
|
-
|
|
1993
|
+
76,
|
|
1994
|
+
164,
|
|
1995
|
+
10,
|
|
1996
|
+
250
|
|
1406
1997
|
];
|
|
1407
1998
|
"accounts": [
|
|
1408
1999
|
{
|
|
@@ -1892,6 +2483,10 @@ export type VoltrVault = {
|
|
|
1892
2483
|
"type": {
|
|
1893
2484
|
"option": "bytes";
|
|
1894
2485
|
};
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"name": "tolerance";
|
|
2489
|
+
"type": "u64";
|
|
1895
2490
|
}
|
|
1896
2491
|
];
|
|
1897
2492
|
},
|
|
@@ -2242,10 +2837,6 @@ export type VoltrVault = {
|
|
|
2242
2837
|
{
|
|
2243
2838
|
"name": "operationalState";
|
|
2244
2839
|
"type": "u16";
|
|
2245
|
-
},
|
|
2246
|
-
{
|
|
2247
|
-
"name": "fee";
|
|
2248
|
-
"type": "u16";
|
|
2249
2840
|
}
|
|
2250
2841
|
];
|
|
2251
2842
|
},
|
|
@@ -3221,16 +3812,16 @@ export type VoltrVault = {
|
|
|
3221
3812
|
];
|
|
3222
3813
|
},
|
|
3223
3814
|
{
|
|
3224
|
-
"name": "
|
|
3815
|
+
"name": "updateVaultConfig";
|
|
3225
3816
|
"discriminator": [
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3817
|
+
122,
|
|
3818
|
+
3,
|
|
3819
|
+
21,
|
|
3820
|
+
222,
|
|
3821
|
+
158,
|
|
3822
|
+
255,
|
|
3823
|
+
238,
|
|
3824
|
+
157
|
|
3234
3825
|
];
|
|
3235
3826
|
"accounts": [
|
|
3236
3827
|
{
|
|
@@ -3271,33 +3862,37 @@ export type VoltrVault = {
|
|
|
3271
3862
|
];
|
|
3272
3863
|
"args": [
|
|
3273
3864
|
{
|
|
3274
|
-
"name": "
|
|
3865
|
+
"name": "field";
|
|
3275
3866
|
"type": {
|
|
3276
3867
|
"defined": {
|
|
3277
|
-
"name": "
|
|
3868
|
+
"name": "vaultConfigField";
|
|
3278
3869
|
};
|
|
3279
3870
|
};
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
"name": "data";
|
|
3874
|
+
"type": "bytes";
|
|
3280
3875
|
}
|
|
3281
3876
|
];
|
|
3282
3877
|
},
|
|
3283
3878
|
{
|
|
3284
|
-
"name": "
|
|
3879
|
+
"name": "updateVaultProtocolFee";
|
|
3285
3880
|
"discriminator": [
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3881
|
+
62,
|
|
3882
|
+
83,
|
|
3883
|
+
22,
|
|
3884
|
+
192,
|
|
3885
|
+
137,
|
|
3886
|
+
86,
|
|
3887
|
+
74,
|
|
3888
|
+
18
|
|
3294
3889
|
];
|
|
3295
3890
|
"accounts": [
|
|
3296
3891
|
{
|
|
3297
3892
|
"name": "admin";
|
|
3298
3893
|
"signer": true;
|
|
3299
3894
|
"relations": [
|
|
3300
|
-
"
|
|
3895
|
+
"protocol"
|
|
3301
3896
|
];
|
|
3302
3897
|
},
|
|
3303
3898
|
{
|
|
@@ -3325,8 +3920,34 @@ export type VoltrVault = {
|
|
|
3325
3920
|
"writable": true;
|
|
3326
3921
|
},
|
|
3327
3922
|
{
|
|
3328
|
-
"name": "
|
|
3329
|
-
"
|
|
3923
|
+
"name": "vaultLpMint";
|
|
3924
|
+
"writable": true;
|
|
3925
|
+
"pda": {
|
|
3926
|
+
"seeds": [
|
|
3927
|
+
{
|
|
3928
|
+
"kind": "const";
|
|
3929
|
+
"value": [
|
|
3930
|
+
118,
|
|
3931
|
+
97,
|
|
3932
|
+
117,
|
|
3933
|
+
108,
|
|
3934
|
+
116,
|
|
3935
|
+
95,
|
|
3936
|
+
108,
|
|
3937
|
+
112,
|
|
3938
|
+
95,
|
|
3939
|
+
109,
|
|
3940
|
+
105,
|
|
3941
|
+
110,
|
|
3942
|
+
116
|
|
3943
|
+
];
|
|
3944
|
+
},
|
|
3945
|
+
{
|
|
3946
|
+
"kind": "account";
|
|
3947
|
+
"path": "vault";
|
|
3948
|
+
}
|
|
3949
|
+
];
|
|
3950
|
+
};
|
|
3330
3951
|
}
|
|
3331
3952
|
];
|
|
3332
3953
|
"args": [
|
|
@@ -3334,13 +3955,13 @@ export type VoltrVault = {
|
|
|
3334
3955
|
"name": "field";
|
|
3335
3956
|
"type": {
|
|
3336
3957
|
"defined": {
|
|
3337
|
-
"name": "
|
|
3958
|
+
"name": "protocolFeeField";
|
|
3338
3959
|
};
|
|
3339
3960
|
};
|
|
3340
3961
|
},
|
|
3341
3962
|
{
|
|
3342
|
-
"name": "
|
|
3343
|
-
"type": "
|
|
3963
|
+
"name": "feeBps";
|
|
3964
|
+
"type": "u16";
|
|
3344
3965
|
}
|
|
3345
3966
|
];
|
|
3346
3967
|
},
|
|
@@ -4166,6 +4787,19 @@ export type VoltrVault = {
|
|
|
4166
4787
|
}
|
|
4167
4788
|
];
|
|
4168
4789
|
"events": [
|
|
4790
|
+
{
|
|
4791
|
+
"name": "acceptVaultAdminEvent";
|
|
4792
|
+
"discriminator": [
|
|
4793
|
+
140,
|
|
4794
|
+
255,
|
|
4795
|
+
29,
|
|
4796
|
+
68,
|
|
4797
|
+
16,
|
|
4798
|
+
194,
|
|
4799
|
+
251,
|
|
4800
|
+
35
|
|
4801
|
+
];
|
|
4802
|
+
},
|
|
4169
4803
|
{
|
|
4170
4804
|
"name": "addAdaptorEvent";
|
|
4171
4805
|
"discriminator": [
|
|
@@ -4387,6 +5021,19 @@ export type VoltrVault = {
|
|
|
4387
5021
|
57
|
|
4388
5022
|
];
|
|
4389
5023
|
},
|
|
5024
|
+
{
|
|
5025
|
+
"name": "updateVaultProtocolFeeEvent";
|
|
5026
|
+
"discriminator": [
|
|
5027
|
+
172,
|
|
5028
|
+
1,
|
|
5029
|
+
173,
|
|
5030
|
+
230,
|
|
5031
|
+
228,
|
|
5032
|
+
61,
|
|
5033
|
+
77,
|
|
5034
|
+
244
|
|
5035
|
+
];
|
|
5036
|
+
},
|
|
4390
5037
|
{
|
|
4391
5038
|
"name": "withdrawStrategyEvent";
|
|
4392
5039
|
"discriminator": [
|
|
@@ -4492,6 +5139,30 @@ export type VoltrVault = {
|
|
|
4492
5139
|
}
|
|
4493
5140
|
];
|
|
4494
5141
|
"types": [
|
|
5142
|
+
{
|
|
5143
|
+
"name": "acceptVaultAdminEvent";
|
|
5144
|
+
"type": {
|
|
5145
|
+
"kind": "struct";
|
|
5146
|
+
"fields": [
|
|
5147
|
+
{
|
|
5148
|
+
"name": "vault";
|
|
5149
|
+
"type": "pubkey";
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
"name": "adminBefore";
|
|
5153
|
+
"type": "pubkey";
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
"name": "adminAfter";
|
|
5157
|
+
"type": "pubkey";
|
|
5158
|
+
},
|
|
5159
|
+
{
|
|
5160
|
+
"name": "acceptedTs";
|
|
5161
|
+
"type": "u64";
|
|
5162
|
+
}
|
|
5163
|
+
];
|
|
5164
|
+
};
|
|
5165
|
+
},
|
|
4495
5166
|
{
|
|
4496
5167
|
"name": "adaptorAddReceipt";
|
|
4497
5168
|
"serialization": "bytemuckunsafe";
|
|
@@ -4613,7 +5284,11 @@ export type VoltrVault = {
|
|
|
4613
5284
|
"type": "u64";
|
|
4614
5285
|
},
|
|
4615
5286
|
{
|
|
4616
|
-
"name": "
|
|
5287
|
+
"name": "vaultLpSupplyInclFeesBefore";
|
|
5288
|
+
"type": "u64";
|
|
5289
|
+
},
|
|
5290
|
+
{
|
|
5291
|
+
"name": "vaultLpSupplyInclFeesAfter";
|
|
4617
5292
|
"type": "u64";
|
|
4618
5293
|
},
|
|
4619
5294
|
{
|
|
@@ -4624,6 +5299,10 @@ export type VoltrVault = {
|
|
|
4624
5299
|
"name": "vaultHighestAssetPerLpDecimalBitsAfter";
|
|
4625
5300
|
"type": "u128";
|
|
4626
5301
|
},
|
|
5302
|
+
{
|
|
5303
|
+
"name": "amountLpBurned";
|
|
5304
|
+
"type": "u64";
|
|
5305
|
+
},
|
|
4627
5306
|
{
|
|
4628
5307
|
"name": "calibratedTs";
|
|
4629
5308
|
"type": "u64";
|
|
@@ -5036,6 +5715,20 @@ export type VoltrVault = {
|
|
|
5036
5715
|
];
|
|
5037
5716
|
"type": "u16";
|
|
5038
5717
|
},
|
|
5718
|
+
{
|
|
5719
|
+
"name": "protocolPerformanceFee";
|
|
5720
|
+
"docs": [
|
|
5721
|
+
"Protocol performance fee in basis points (BPS)."
|
|
5722
|
+
];
|
|
5723
|
+
"type": "u16";
|
|
5724
|
+
},
|
|
5725
|
+
{
|
|
5726
|
+
"name": "protocolManagementFee";
|
|
5727
|
+
"docs": [
|
|
5728
|
+
"Protocol management fee in basis points (BPS)."
|
|
5729
|
+
];
|
|
5730
|
+
"type": "u16";
|
|
5731
|
+
},
|
|
5039
5732
|
{
|
|
5040
5733
|
"name": "reserved";
|
|
5041
5734
|
"docs": [
|
|
@@ -5044,7 +5737,7 @@ export type VoltrVault = {
|
|
|
5044
5737
|
"type": {
|
|
5045
5738
|
"array": [
|
|
5046
5739
|
"u8",
|
|
5047
|
-
|
|
5740
|
+
32
|
|
5048
5741
|
];
|
|
5049
5742
|
};
|
|
5050
5743
|
}
|
|
@@ -5089,7 +5782,7 @@ export type VoltrVault = {
|
|
|
5089
5782
|
"type": {
|
|
5090
5783
|
"array": [
|
|
5091
5784
|
"u8",
|
|
5092
|
-
|
|
5785
|
+
16
|
|
5093
5786
|
];
|
|
5094
5787
|
};
|
|
5095
5788
|
}
|
|
@@ -5213,10 +5906,6 @@ export type VoltrVault = {
|
|
|
5213
5906
|
"name": "operationalState";
|
|
5214
5907
|
"type": "u16";
|
|
5215
5908
|
},
|
|
5216
|
-
{
|
|
5217
|
-
"name": "fee";
|
|
5218
|
-
"type": "u16";
|
|
5219
|
-
},
|
|
5220
5909
|
{
|
|
5221
5910
|
"name": "initializedTs";
|
|
5222
5911
|
"type": "u64";
|
|
@@ -5440,11 +6129,16 @@ export type VoltrVault = {
|
|
|
5440
6129
|
"type": "u16";
|
|
5441
6130
|
},
|
|
5442
6131
|
{
|
|
5443
|
-
"name": "
|
|
6132
|
+
"name": "padding1";
|
|
5444
6133
|
"docs": [
|
|
5445
|
-
"
|
|
6134
|
+
"previously used for fee, now unused"
|
|
5446
6135
|
];
|
|
5447
|
-
"type":
|
|
6136
|
+
"type": {
|
|
6137
|
+
"array": [
|
|
6138
|
+
"u8",
|
|
6139
|
+
2
|
|
6140
|
+
];
|
|
6141
|
+
};
|
|
5448
6142
|
},
|
|
5449
6143
|
{
|
|
5450
6144
|
"name": "bump";
|
|
@@ -5480,6 +6174,20 @@ export type VoltrVault = {
|
|
|
5480
6174
|
];
|
|
5481
6175
|
};
|
|
5482
6176
|
},
|
|
6177
|
+
{
|
|
6178
|
+
"name": "protocolFeeField";
|
|
6179
|
+
"type": {
|
|
6180
|
+
"kind": "enum";
|
|
6181
|
+
"variants": [
|
|
6182
|
+
{
|
|
6183
|
+
"name": "protocolPerformanceFee";
|
|
6184
|
+
},
|
|
6185
|
+
{
|
|
6186
|
+
"name": "protocolManagementFee";
|
|
6187
|
+
}
|
|
6188
|
+
];
|
|
6189
|
+
};
|
|
6190
|
+
},
|
|
5483
6191
|
{
|
|
5484
6192
|
"name": "removeAdaptorEvent";
|
|
5485
6193
|
"type": {
|
|
@@ -5729,14 +6437,6 @@ export type VoltrVault = {
|
|
|
5729
6437
|
"name": "operationalStateAfter";
|
|
5730
6438
|
"type": "u16";
|
|
5731
6439
|
},
|
|
5732
|
-
{
|
|
5733
|
-
"name": "feeBefore";
|
|
5734
|
-
"type": "u16";
|
|
5735
|
-
},
|
|
5736
|
-
{
|
|
5737
|
-
"name": "feeAfter";
|
|
5738
|
-
"type": "u16";
|
|
5739
|
-
},
|
|
5740
6440
|
{
|
|
5741
6441
|
"name": "updatedTs";
|
|
5742
6442
|
"type": "u64";
|
|
@@ -5876,6 +6576,38 @@ export type VoltrVault = {
|
|
|
5876
6576
|
];
|
|
5877
6577
|
};
|
|
5878
6578
|
},
|
|
6579
|
+
{
|
|
6580
|
+
"name": "updateVaultProtocolFeeEvent";
|
|
6581
|
+
"type": {
|
|
6582
|
+
"kind": "struct";
|
|
6583
|
+
"fields": [
|
|
6584
|
+
{
|
|
6585
|
+
"name": "admin";
|
|
6586
|
+
"type": "pubkey";
|
|
6587
|
+
},
|
|
6588
|
+
{
|
|
6589
|
+
"name": "vault";
|
|
6590
|
+
"type": "pubkey";
|
|
6591
|
+
},
|
|
6592
|
+
{
|
|
6593
|
+
"name": "field";
|
|
6594
|
+
"type": "string";
|
|
6595
|
+
},
|
|
6596
|
+
{
|
|
6597
|
+
"name": "oldValue";
|
|
6598
|
+
"type": "u16";
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
"name": "newValue";
|
|
6602
|
+
"type": "u16";
|
|
6603
|
+
},
|
|
6604
|
+
{
|
|
6605
|
+
"name": "updatedTs";
|
|
6606
|
+
"type": "u64";
|
|
6607
|
+
}
|
|
6608
|
+
];
|
|
6609
|
+
};
|
|
6610
|
+
},
|
|
5879
6611
|
{
|
|
5880
6612
|
"name": "vault";
|
|
5881
6613
|
"serialization": "bytemuckunsafe";
|
|
@@ -5931,6 +6663,13 @@ export type VoltrVault = {
|
|
|
5931
6663
|
};
|
|
5932
6664
|
};
|
|
5933
6665
|
},
|
|
6666
|
+
{
|
|
6667
|
+
"name": "pendingAdmin";
|
|
6668
|
+
"docs": [
|
|
6669
|
+
"The pending admin for admin transfer."
|
|
6670
|
+
];
|
|
6671
|
+
"type": "pubkey";
|
|
6672
|
+
},
|
|
5934
6673
|
{
|
|
5935
6674
|
"name": "manager";
|
|
5936
6675
|
"docs": [
|
|
@@ -5989,6 +6728,13 @@ export type VoltrVault = {
|
|
|
5989
6728
|
};
|
|
5990
6729
|
};
|
|
5991
6730
|
},
|
|
6731
|
+
{
|
|
6732
|
+
"name": "deadWeight";
|
|
6733
|
+
"docs": [
|
|
6734
|
+
"The accumulated dead weight of the vault."
|
|
6735
|
+
];
|
|
6736
|
+
"type": "u64";
|
|
6737
|
+
},
|
|
5992
6738
|
{
|
|
5993
6739
|
"name": "highWaterMark";
|
|
5994
6740
|
"type": {
|
|
@@ -6138,6 +6884,12 @@ export type VoltrVault = {
|
|
|
6138
6884
|
},
|
|
6139
6885
|
{
|
|
6140
6886
|
"name": "manager";
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
"name": "pendingAdmin";
|
|
6890
|
+
},
|
|
6891
|
+
{
|
|
6892
|
+
"name": "disabledOperations";
|
|
6141
6893
|
}
|
|
6142
6894
|
];
|
|
6143
6895
|
};
|
|
@@ -6179,6 +6931,13 @@ export type VoltrVault = {
|
|
|
6179
6931
|
];
|
|
6180
6932
|
"type": "u64";
|
|
6181
6933
|
},
|
|
6934
|
+
{
|
|
6935
|
+
"name": "disabledOperations";
|
|
6936
|
+
"docs": [
|
|
6937
|
+
"Reserved bytes for future use."
|
|
6938
|
+
];
|
|
6939
|
+
"type": "u16";
|
|
6940
|
+
},
|
|
6182
6941
|
{
|
|
6183
6942
|
"name": "reserved";
|
|
6184
6943
|
"docs": [
|
|
@@ -6187,7 +6946,7 @@ export type VoltrVault = {
|
|
|
6187
6946
|
"type": {
|
|
6188
6947
|
"array": [
|
|
6189
6948
|
"u8",
|
|
6190
|
-
|
|
6949
|
+
46
|
|
6191
6950
|
];
|
|
6192
6951
|
};
|
|
6193
6952
|
}
|
|
@@ -6310,7 +7069,7 @@ export type VoltrVault = {
|
|
|
6310
7069
|
"type": {
|
|
6311
7070
|
"array": [
|
|
6312
7071
|
"u8",
|
|
6313
|
-
|
|
7072
|
+
30
|
|
6314
7073
|
];
|
|
6315
7074
|
};
|
|
6316
7075
|
}
|