-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathorder_engine.json
102 lines (102 loc) · 2.07 KB
/
order_engine.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"address": "61DFfeTKM7trxYcPQCM78bJ794ddZprZpAwAnLiwTpYH",
"metadata": {
"name": "order_engine",
"version": "0.1.0",
"spec": "0.1.0"
},
"instructions": [
{
"name": "fill",
"discriminator": [
168,
96,
183,
163,
92,
10,
40,
160
],
"accounts": [
{
"name": "taker",
"writable": true,
"signer": true
},
{
"name": "maker",
"writable": true,
"signer": true
},
{
"name": "taker_input_mint_token_account",
"writable": true,
"optional": true
},
{
"name": "maker_input_mint_token_account",
"writable": true,
"optional": true
},
{
"name": "taker_output_mint_token_account",
"writable": true,
"optional": true
},
{
"name": "maker_output_mint_token_account",
"writable": true,
"optional": true
},
{
"name": "input_mint"
},
{
"name": "input_token_program"
},
{
"name": "output_mint"
},
{
"name": "output_token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "input_amount",
"type": "u64"
},
{
"name": "output_amount",
"type": "u64"
},
{
"name": "expire_at",
"type": "i64"
}
]
}
],
"errors": [
{
"code": 6000,
"name": "InvalidCalculation"
},
{
"code": 6001,
"name": "MissingTemporaryWrappedSolTokenAccount"
}
],
"constants": [
{
"name": "TEMPORARY_WSOL_TOKEN_ACCOUNT",
"type": "bytes",
"value": "[116, 101, 109, 112, 111, 114, 97, 114, 121, 45, 119, 115, 111, 108, 45, 116, 111, 107, 101, 110, 45, 97, 99, 99, 111, 117, 110, 116]"
}
]
}