1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! Orca Whirlpool 账户填充模块
use crate*;
use Pubkey;
pub type AccountGetter<'a> = dyn Fn + 'a;
/// Orca Whirlpool Swap 账户填充
///
/// swap instruction account mapping (based on IDL):
/// 0: tokenProgram
/// 1: tokenAuthority
/// 2: whirlpool
/// 3: tokenOwnerAccountA
/// 4: tokenVaultA
/// 5: tokenOwnerAccountB
/// 6: tokenVaultB
/// 7: tickArray0
/// 8: tickArray1
/// 9: tickArray2
/// 10: oracle
/// Orca Whirlpool Liquidity Increased 账户填充
///
/// increaseLiquidity instruction account mapping (based on IDL):
/// 0: whirlpool
/// 1: tokenProgram
/// 2: positionAuthority
/// 3: position
/// 4: positionTokenAccount
/// 5: tokenOwnerAccountA
/// 6: tokenOwnerAccountB
/// 7: tokenVaultA
/// 8: tokenVaultB
/// 9: tickArrayLower
/// 10: tickArrayUpper
/// Orca Whirlpool Liquidity Decreased 账户填充
///
/// decreaseLiquidity instruction account mapping (based on IDL):
/// 0: whirlpool
/// 1: tokenProgram
/// 2: positionAuthority
/// 3: position
/// 4: positionTokenAccount
/// 5: tokenOwnerAccountA
/// 6: tokenOwnerAccountB
/// 7: tokenVaultA
/// 8: tokenVaultB
/// 9: tickArrayLower
/// 10: tickArrayUpper