@sleet-js/staking-pool-contract-methods-const 0.0.6 → 0.0.7
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/factory_pool.d.ts +12 -0
- package/dist/factory_pool.js +14 -0
- package/dist/factory_poolv1.d.ts +7 -0
- package/dist/factory_poolv1.js +9 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -293
- package/dist/linear_protocol.d.ts +78 -0
- package/dist/linear_protocol.js +80 -0
- package/dist/meta_pool.d.ts +97 -0
- package/dist/meta_pool.js +99 -0
- package/dist/pool.d.ts +54 -0
- package/dist/pool.js +56 -0
- package/dist/poolv1.d.ts +30 -0
- package/dist/poolv1.js +32 -0
- package/package.json +5 -4
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const factory_pool_methods_const: {
|
|
2
|
+
readonly store: "store";
|
|
3
|
+
readonly new: "new";
|
|
4
|
+
readonly get_min_attached_balance: "get_min_attached_balance";
|
|
5
|
+
readonly get_number_of_staking_pools_created: "get_number_of_staking_pools_created";
|
|
6
|
+
readonly create_staking_pool: "create_staking_pool";
|
|
7
|
+
readonly on_staking_pool_create: "on_staking_pool_create";
|
|
8
|
+
readonly get_code: "get_code";
|
|
9
|
+
readonly allow_contract: "allow_contract";
|
|
10
|
+
readonly disallow_contract: "disallow_contract";
|
|
11
|
+
readonly is_contract_allowed: "is_contract_allowed";
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// ====== factory_pool_methods_const ======
|
|
3
|
+
export const factory_pool_methods_const = {
|
|
4
|
+
store: "store",
|
|
5
|
+
new: "new",
|
|
6
|
+
get_min_attached_balance: "get_min_attached_balance",
|
|
7
|
+
get_number_of_staking_pools_created: "get_number_of_staking_pools_created",
|
|
8
|
+
create_staking_pool: "create_staking_pool",
|
|
9
|
+
on_staking_pool_create: "on_staking_pool_create",
|
|
10
|
+
get_code: "get_code",
|
|
11
|
+
allow_contract: "allow_contract",
|
|
12
|
+
disallow_contract: "disallow_contract",
|
|
13
|
+
is_contract_allowed: "is_contract_allowed",
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const factory_poolv1_methods_const: {
|
|
2
|
+
readonly new: "new";
|
|
3
|
+
readonly get_min_attached_balance: "get_min_attached_balance";
|
|
4
|
+
readonly get_number_of_staking_pools_created: "get_number_of_staking_pools_created";
|
|
5
|
+
readonly create_staking_pool: "create_staking_pool";
|
|
6
|
+
readonly on_staking_pool_create: "on_staking_pool_create";
|
|
7
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// ==========================================
|
|
2
|
+
// ====== factory_poolv1_methods_const ======
|
|
3
|
+
export const factory_poolv1_methods_const = {
|
|
4
|
+
new: "new",
|
|
5
|
+
get_min_attached_balance: "get_min_attached_balance",
|
|
6
|
+
get_number_of_staking_pools_created: "get_number_of_staking_pools_created",
|
|
7
|
+
create_staking_pool: "create_staking_pool",
|
|
8
|
+
on_staking_pool_create: "on_staking_pool_create",
|
|
9
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { factory_pool_methods_const } from "./factory_pool";
|
|
2
|
+
export { factory_poolv1_methods_const } from "./factory_poolv1";
|
|
3
|
+
export { pool_methods_const } from "./pool";
|
|
4
|
+
export { poolv1_methods_const } from "./poolv1";
|
|
5
|
+
export { meta_pool_methods_const } from "./meta_pool";
|
|
6
|
+
export { linear_protocol_methods_const } from "./linear_protocol";
|
package/dist/index.js
CHANGED
|
@@ -1,293 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
on_staking_pool_create: "on_staking_pool_create",
|
|
10
|
-
get_code: "get_code",
|
|
11
|
-
allow_contract: "allow_contract",
|
|
12
|
-
disallow_contract: "disallow_contract",
|
|
13
|
-
is_contract_allowed: "is_contract_allowed"
|
|
14
|
-
};
|
|
15
|
-
// src/factory_poolv1.ts
|
|
16
|
-
var factory_poolv1_methods_const = {
|
|
17
|
-
new: "new",
|
|
18
|
-
get_min_attached_balance: "get_min_attached_balance",
|
|
19
|
-
get_number_of_staking_pools_created: "get_number_of_staking_pools_created",
|
|
20
|
-
create_staking_pool: "create_staking_pool",
|
|
21
|
-
on_staking_pool_create: "on_staking_pool_create"
|
|
22
|
-
};
|
|
23
|
-
// src/pool.ts
|
|
24
|
-
var pool_methods_const = {
|
|
25
|
-
upgrade: "upgrade",
|
|
26
|
-
update: "update",
|
|
27
|
-
migrate: "migrate",
|
|
28
|
-
callback_post_get_owner: "callback_post_get_owner",
|
|
29
|
-
callback_post_withdraw_reward: "callback_post_withdraw_reward",
|
|
30
|
-
claim: "claim",
|
|
31
|
-
stop_farm: "stop_farm",
|
|
32
|
-
set_owner_id: "set_owner_id",
|
|
33
|
-
update_staking_key: "update_staking_key",
|
|
34
|
-
update_reward_fee_fraction: "update_reward_fee_fraction",
|
|
35
|
-
decrease_burn_fee_fraction: "decrease_burn_fee_fraction",
|
|
36
|
-
pause_staking: "pause_staking",
|
|
37
|
-
resume_staking: "resume_staking",
|
|
38
|
-
add_authorized_user: "add_authorized_user",
|
|
39
|
-
remove_authorized_user: "remove_authorized_user",
|
|
40
|
-
add_authorized_farm_token: "add_authorized_farm_token",
|
|
41
|
-
remove_authorized_farm_token: "remove_authorized_farm_token",
|
|
42
|
-
deposit: "deposit",
|
|
43
|
-
deposit_and_stake: "deposit_and_stake",
|
|
44
|
-
withdraw_all: "withdraw_all",
|
|
45
|
-
withdraw: "withdraw",
|
|
46
|
-
stake_all: "stake_all",
|
|
47
|
-
stake: "stake",
|
|
48
|
-
unstake_all: "unstake_all",
|
|
49
|
-
unstake: "unstake",
|
|
50
|
-
unstake_burn: "unstake_burn",
|
|
51
|
-
burn: "burn",
|
|
52
|
-
on_stake_action: "on_stake_action",
|
|
53
|
-
ft_on_transfer: "ft_on_transfer",
|
|
54
|
-
get_pool_summary: "get_pool_summary",
|
|
55
|
-
get_version: "get_version",
|
|
56
|
-
get_owner_id: "get_owner_id",
|
|
57
|
-
get_factory_id: "get_factory_id",
|
|
58
|
-
get_authorized_users: "get_authorized_users",
|
|
59
|
-
get_authorized_farm_tokens: "get_authorized_farm_tokens",
|
|
60
|
-
get_active_farms: "get_active_farms",
|
|
61
|
-
get_farms: "get_farms",
|
|
62
|
-
get_farm: "get_farm",
|
|
63
|
-
get_unclaimed_reward: "get_unclaimed_reward",
|
|
64
|
-
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
65
|
-
get_account_staked_balance: "get_account_staked_balance",
|
|
66
|
-
get_account_total_balance: "get_account_total_balance",
|
|
67
|
-
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
68
|
-
get_total_staked_balance: "get_total_staked_balance",
|
|
69
|
-
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
70
|
-
get_staking_key: "get_staking_key",
|
|
71
|
-
is_staking_paused: "is_staking_paused",
|
|
72
|
-
get_account: "get_account",
|
|
73
|
-
get_number_of_accounts: "get_number_of_accounts",
|
|
74
|
-
get_accounts: "get_accounts",
|
|
75
|
-
new: "new",
|
|
76
|
-
ping: "ping"
|
|
77
|
-
};
|
|
78
|
-
// src/poolv1.ts
|
|
79
|
-
var poolv1_methods_const = {
|
|
80
|
-
new: "new",
|
|
81
|
-
ping: "ping",
|
|
82
|
-
deposit: "deposit",
|
|
83
|
-
deposit_and_stake: "deposit_and_stake",
|
|
84
|
-
withdraw_all: "withdraw_all",
|
|
85
|
-
withdraw: "withdraw",
|
|
86
|
-
stake_all: "stake_all",
|
|
87
|
-
stake: "stake",
|
|
88
|
-
unstake_all: "unstake_all",
|
|
89
|
-
unstake: "unstake",
|
|
90
|
-
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
91
|
-
get_account_staked_balance: "get_account_staked_balance",
|
|
92
|
-
get_account_total_balance: "get_account_total_balance",
|
|
93
|
-
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
94
|
-
get_total_staked_balance: "get_total_staked_balance",
|
|
95
|
-
get_owner_id: "get_owner_id",
|
|
96
|
-
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
97
|
-
get_staking_key: "get_staking_key",
|
|
98
|
-
is_staking_paused: "is_staking_paused",
|
|
99
|
-
get_account: "get_account",
|
|
100
|
-
get_number_of_accounts: "get_number_of_accounts",
|
|
101
|
-
get_accounts: "get_accounts",
|
|
102
|
-
on_stake_action: "on_stake_action",
|
|
103
|
-
update_staking_key: "update_staking_key",
|
|
104
|
-
update_reward_fee_fraction: "update_reward_fee_fraction",
|
|
105
|
-
vote: "vote",
|
|
106
|
-
pause_staking: "pause_staking",
|
|
107
|
-
resume_staking: "resume_staking"
|
|
108
|
-
};
|
|
109
|
-
// src/meta_pool.ts
|
|
110
|
-
var meta_pool_methods_const = {
|
|
111
|
-
distribute_staking: "distribute_staking",
|
|
112
|
-
on_staking_pool_stake_maybe_deposit: "on_staking_pool_stake_maybe_deposit",
|
|
113
|
-
manual_stake: "manual_stake",
|
|
114
|
-
force_rebalance_unstake: "force_rebalance_unstake",
|
|
115
|
-
rebalance_unstake_sp: "rebalance_unstake_sp",
|
|
116
|
-
do_rebalance_unstake: "do_rebalance_unstake",
|
|
117
|
-
distribute_unstaking: "distribute_unstaking",
|
|
118
|
-
on_staking_pool_unstake: "on_staking_pool_unstake",
|
|
119
|
-
set_busy: "set_busy",
|
|
120
|
-
sp_busy: "sp_busy",
|
|
121
|
-
extra_balance_accumulated: "extra_balance_accumulated",
|
|
122
|
-
transfer_extra_balance_accumulated: "transfer_extra_balance_accumulated",
|
|
123
|
-
sync_unstaked_balance: "sync_unstaked_balance",
|
|
124
|
-
on_get_sp_unstaked_balance: "on_get_sp_unstaked_balance",
|
|
125
|
-
distribute_rewards: "distribute_rewards",
|
|
126
|
-
on_get_sp_total_balance: "on_get_sp_total_balance",
|
|
127
|
-
get_staking_pool_requiring_retrieve: "get_staking_pool_requiring_retrieve",
|
|
128
|
-
retrieve_funds_from_a_pool: "retrieve_funds_from_a_pool",
|
|
129
|
-
on_retrieve_from_staking_pool: "on_retrieve_from_staking_pool",
|
|
130
|
-
end_of_epoch_clearing: "end_of_epoch_clearing",
|
|
131
|
-
migrate: "migrate",
|
|
132
|
-
pause_staking: "pause_staking",
|
|
133
|
-
un_pause_staking: "un_pause_staking",
|
|
134
|
-
get_staking_pool_list: "get_staking_pool_list",
|
|
135
|
-
remove_staking_pool: "remove_staking_pool",
|
|
136
|
-
add_staking_pool: "add_staking_pool",
|
|
137
|
-
set_staking_pools: "set_staking_pools",
|
|
138
|
-
compute_current_unstaking_delay: "compute_current_unstaking_delay",
|
|
139
|
-
get_operator_account_id: "get_operator_account_id",
|
|
140
|
-
set_operator_account_id: "set_operator_account_id",
|
|
141
|
-
get_treasury_account_id: "get_treasury_account_id",
|
|
142
|
-
set_treasury_account_id: "set_treasury_account_id",
|
|
143
|
-
set_owner_id: "set_owner_id",
|
|
144
|
-
get_known_deposited_balance: "get_known_deposited_balance",
|
|
145
|
-
get_account_info: "get_account_info",
|
|
146
|
-
get_contract_info: "get_contract_info",
|
|
147
|
-
set_contract_info: "set_contract_info",
|
|
148
|
-
get_st_near_price: "get_st_near_price",
|
|
149
|
-
get_contract_state: "get_contract_state",
|
|
150
|
-
get_contract_params: "get_contract_params",
|
|
151
|
-
set_contract_params: "set_contract_params",
|
|
152
|
-
set_reward_multipliers: "set_reward_multipliers",
|
|
153
|
-
set_max_meta_rewards: "set_max_meta_rewards",
|
|
154
|
-
get_sp_info: "get_sp_info",
|
|
155
|
-
get_staking_pool_requiring_unstake: "get_staking_pool_requiring_unstake",
|
|
156
|
-
storage_deposit: "storage_deposit",
|
|
157
|
-
storage_withdraw: "storage_withdraw",
|
|
158
|
-
storage_unregister: "storage_unregister",
|
|
159
|
-
storage_balance_bounds: "storage_balance_bounds",
|
|
160
|
-
storage_balance_of: "storage_balance_of",
|
|
161
|
-
ft_transfer: "ft_transfer",
|
|
162
|
-
ft_transfer_call: "ft_transfer_call",
|
|
163
|
-
ft_total_supply: "ft_total_supply",
|
|
164
|
-
ft_balance_of: "ft_balance_of",
|
|
165
|
-
ft_resolve_transfer: "ft_resolve_transfer",
|
|
166
|
-
ft_metadata: "ft_metadata",
|
|
167
|
-
ft_metadata_set: "ft_metadata_set",
|
|
168
|
-
new: "new",
|
|
169
|
-
ping: "ping",
|
|
170
|
-
deposit: "deposit",
|
|
171
|
-
withdraw: "withdraw",
|
|
172
|
-
withdraw_all: "withdraw_all",
|
|
173
|
-
withdraw_unstaked: "withdraw_unstaked",
|
|
174
|
-
deposit_and_stake: "deposit_and_stake",
|
|
175
|
-
stake_all: "stake_all",
|
|
176
|
-
stake: "stake",
|
|
177
|
-
unstake_all: "unstake_all",
|
|
178
|
-
unstake: "unstake",
|
|
179
|
-
stake_for_lockup: "stake_for_lockup",
|
|
180
|
-
unstake_from_lockup_shares: "unstake_from_lockup_shares",
|
|
181
|
-
withdraw_to_lockup: "withdraw_to_lockup",
|
|
182
|
-
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
183
|
-
get_account_staked_balance: "get_account_staked_balance",
|
|
184
|
-
get_account_total_balance: "get_account_total_balance",
|
|
185
|
-
get_account_available_balance: "get_account_available_balance",
|
|
186
|
-
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
187
|
-
get_owner_id: "get_owner_id",
|
|
188
|
-
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
189
|
-
get_reward_fee_bp: "get_reward_fee_bp",
|
|
190
|
-
set_reward_fee: "set_reward_fee",
|
|
191
|
-
get_staking_key: "get_staking_key",
|
|
192
|
-
is_staking_paused: "is_staking_paused",
|
|
193
|
-
get_account: "get_account",
|
|
194
|
-
get_number_of_accounts: "get_number_of_accounts",
|
|
195
|
-
get_accounts: "get_accounts",
|
|
196
|
-
get_accounts_info: "get_accounts_info",
|
|
197
|
-
get_near_amount_sell_stnear: "get_near_amount_sell_stnear",
|
|
198
|
-
nslp_get_discount_basis_points: "nslp_get_discount_basis_points",
|
|
199
|
-
liquid_unstake: "liquid_unstake",
|
|
200
|
-
nslp_add_liquidity: "nslp_add_liquidity",
|
|
201
|
-
nslp_remove_liquidity: "nslp_remove_liquidity",
|
|
202
|
-
stake_from_nslp: "stake_from_nslp",
|
|
203
|
-
realize_meta: "realize_meta",
|
|
204
|
-
harvest_meta: "harvest_meta",
|
|
205
|
-
upgrade: "upgrade"
|
|
206
|
-
};
|
|
207
|
-
// src/linear_protocol.ts
|
|
208
|
-
var linear_protocol_methods_const = {
|
|
209
|
-
upgrade: "upgrade",
|
|
210
|
-
epoch_stake: "epoch_stake",
|
|
211
|
-
epoch_unstake: "epoch_unstake",
|
|
212
|
-
epoch_update_rewards: "epoch_update_rewards",
|
|
213
|
-
epoch_withdraw: "epoch_withdraw",
|
|
214
|
-
validator_staked_callback: "validator_staked_callback",
|
|
215
|
-
validator_unstaked_callback: "validator_unstaked_callback",
|
|
216
|
-
validator_get_balance_callback: "validator_get_balance_callback",
|
|
217
|
-
validator_get_account_callback: "validator_get_account_callback",
|
|
218
|
-
validator_withdraw_callback: "validator_withdraw_callback",
|
|
219
|
-
ft_transfer: "ft_transfer",
|
|
220
|
-
ft_transfer_call: "ft_transfer_call",
|
|
221
|
-
ft_total_supply: "ft_total_supply",
|
|
222
|
-
ft_balance_of: "ft_balance_of",
|
|
223
|
-
ft_resolve_transfer: "ft_resolve_transfer",
|
|
224
|
-
ft_price: "ft_price",
|
|
225
|
-
ft_metadata: "ft_metadata",
|
|
226
|
-
storage_deposit: "storage_deposit",
|
|
227
|
-
storage_withdraw: "storage_withdraw",
|
|
228
|
-
storage_unregister: "storage_unregister",
|
|
229
|
-
storage_balance_bounds: "storage_balance_bounds",
|
|
230
|
-
storage_balance_of: "storage_balance_of",
|
|
231
|
-
contract_source_metadata: "contract_source_metadata",
|
|
232
|
-
set_owner: "set_owner",
|
|
233
|
-
add_manager: "add_manager",
|
|
234
|
-
remove_manager: "remove_manager",
|
|
235
|
-
set_beneficiary: "set_beneficiary",
|
|
236
|
-
remove_beneficiary: "remove_beneficiary",
|
|
237
|
-
set_treasury: "set_treasury",
|
|
238
|
-
set_whitelist_contract_id: "set_whitelist_contract_id",
|
|
239
|
-
pause: "pause",
|
|
240
|
-
resume: "resume",
|
|
241
|
-
ping: "ping",
|
|
242
|
-
deposit: "deposit",
|
|
243
|
-
deposit_and_stake: "deposit_and_stake",
|
|
244
|
-
withdraw_all: "withdraw_all",
|
|
245
|
-
withdraw: "withdraw",
|
|
246
|
-
stake_all: "stake_all",
|
|
247
|
-
stake: "stake",
|
|
248
|
-
unstake_all: "unstake_all",
|
|
249
|
-
unstake: "unstake",
|
|
250
|
-
migrate: "migrate",
|
|
251
|
-
add_validator: "add_validator",
|
|
252
|
-
add_validators: "add_validators",
|
|
253
|
-
is_whitelisted_callback: "is_whitelisted_callback",
|
|
254
|
-
remove_validator: "remove_validator",
|
|
255
|
-
update_weight: "update_weight",
|
|
256
|
-
update_weights: "update_weights",
|
|
257
|
-
update_base_stake_amounts: "update_base_stake_amounts",
|
|
258
|
-
sync_balance_from_validator: "sync_balance_from_validator",
|
|
259
|
-
get_validator: "get_validator",
|
|
260
|
-
get_validators: "get_validators",
|
|
261
|
-
drain_unstake: "drain_unstake",
|
|
262
|
-
drain_withdraw: "drain_withdraw",
|
|
263
|
-
validator_drain_unstaked_callback: "validator_drain_unstaked_callback",
|
|
264
|
-
validator_drain_withdraw_callback: "validator_drain_withdraw_callback",
|
|
265
|
-
get_total_share_amount: "get_total_share_amount",
|
|
266
|
-
get_beneficiaries: "get_beneficiaries",
|
|
267
|
-
get_managers: "get_managers",
|
|
268
|
-
get_summary: "get_summary",
|
|
269
|
-
get_account_details: "get_account_details",
|
|
270
|
-
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
271
|
-
get_account_staked_balance: "get_account_staked_balance",
|
|
272
|
-
get_account_total_balance: "get_account_total_balance",
|
|
273
|
-
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
274
|
-
get_total_staked_balance: "get_total_staked_balance",
|
|
275
|
-
get_owner_id: "get_owner_id",
|
|
276
|
-
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
277
|
-
get_staking_key: "get_staking_key",
|
|
278
|
-
is_paused: "is_paused",
|
|
279
|
-
get_account: "get_account",
|
|
280
|
-
get_number_of_accounts: "get_number_of_accounts",
|
|
281
|
-
get_accounts: "get_accounts",
|
|
282
|
-
can_account_withdraw: "can_account_withdraw",
|
|
283
|
-
new: "new",
|
|
284
|
-
version: "version"
|
|
285
|
-
};
|
|
286
|
-
export {
|
|
287
|
-
poolv1_methods_const,
|
|
288
|
-
pool_methods_const,
|
|
289
|
-
meta_pool_methods_const,
|
|
290
|
-
linear_protocol_methods_const,
|
|
291
|
-
factory_poolv1_methods_const,
|
|
292
|
-
factory_pool_methods_const
|
|
293
|
-
};
|
|
1
|
+
// ===============================================
|
|
2
|
+
// ===== staking-pool-contract-methods-const =====
|
|
3
|
+
export { factory_pool_methods_const } from "./factory_pool";
|
|
4
|
+
export { factory_poolv1_methods_const } from "./factory_poolv1";
|
|
5
|
+
export { pool_methods_const } from "./pool";
|
|
6
|
+
export { poolv1_methods_const } from "./poolv1";
|
|
7
|
+
export { meta_pool_methods_const } from "./meta_pool";
|
|
8
|
+
export { linear_protocol_methods_const } from "./linear_protocol";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const linear_protocol_methods_const: {
|
|
2
|
+
readonly upgrade: "upgrade";
|
|
3
|
+
readonly epoch_stake: "epoch_stake";
|
|
4
|
+
readonly epoch_unstake: "epoch_unstake";
|
|
5
|
+
readonly epoch_update_rewards: "epoch_update_rewards";
|
|
6
|
+
readonly epoch_withdraw: "epoch_withdraw";
|
|
7
|
+
readonly validator_staked_callback: "validator_staked_callback";
|
|
8
|
+
readonly validator_unstaked_callback: "validator_unstaked_callback";
|
|
9
|
+
readonly validator_get_balance_callback: "validator_get_balance_callback";
|
|
10
|
+
readonly validator_get_account_callback: "validator_get_account_callback";
|
|
11
|
+
readonly validator_withdraw_callback: "validator_withdraw_callback";
|
|
12
|
+
readonly ft_transfer: "ft_transfer";
|
|
13
|
+
readonly ft_transfer_call: "ft_transfer_call";
|
|
14
|
+
readonly ft_total_supply: "ft_total_supply";
|
|
15
|
+
readonly ft_balance_of: "ft_balance_of";
|
|
16
|
+
readonly ft_resolve_transfer: "ft_resolve_transfer";
|
|
17
|
+
readonly ft_price: "ft_price";
|
|
18
|
+
readonly ft_metadata: "ft_metadata";
|
|
19
|
+
readonly storage_deposit: "storage_deposit";
|
|
20
|
+
readonly storage_withdraw: "storage_withdraw";
|
|
21
|
+
readonly storage_unregister: "storage_unregister";
|
|
22
|
+
readonly storage_balance_bounds: "storage_balance_bounds";
|
|
23
|
+
readonly storage_balance_of: "storage_balance_of";
|
|
24
|
+
readonly contract_source_metadata: "contract_source_metadata";
|
|
25
|
+
readonly set_owner: "set_owner";
|
|
26
|
+
readonly add_manager: "add_manager";
|
|
27
|
+
readonly remove_manager: "remove_manager";
|
|
28
|
+
readonly set_beneficiary: "set_beneficiary";
|
|
29
|
+
readonly remove_beneficiary: "remove_beneficiary";
|
|
30
|
+
readonly set_treasury: "set_treasury";
|
|
31
|
+
readonly set_whitelist_contract_id: "set_whitelist_contract_id";
|
|
32
|
+
readonly pause: "pause";
|
|
33
|
+
readonly resume: "resume";
|
|
34
|
+
readonly ping: "ping";
|
|
35
|
+
readonly deposit: "deposit";
|
|
36
|
+
readonly deposit_and_stake: "deposit_and_stake";
|
|
37
|
+
readonly withdraw_all: "withdraw_all";
|
|
38
|
+
readonly withdraw: "withdraw";
|
|
39
|
+
readonly stake_all: "stake_all";
|
|
40
|
+
readonly stake: "stake";
|
|
41
|
+
readonly unstake_all: "unstake_all";
|
|
42
|
+
readonly unstake: "unstake";
|
|
43
|
+
readonly migrate: "migrate";
|
|
44
|
+
readonly add_validator: "add_validator";
|
|
45
|
+
readonly add_validators: "add_validators";
|
|
46
|
+
readonly is_whitelisted_callback: "is_whitelisted_callback";
|
|
47
|
+
readonly remove_validator: "remove_validator";
|
|
48
|
+
readonly update_weight: "update_weight";
|
|
49
|
+
readonly update_weights: "update_weights";
|
|
50
|
+
readonly update_base_stake_amounts: "update_base_stake_amounts";
|
|
51
|
+
readonly sync_balance_from_validator: "sync_balance_from_validator";
|
|
52
|
+
readonly get_validator: "get_validator";
|
|
53
|
+
readonly get_validators: "get_validators";
|
|
54
|
+
readonly drain_unstake: "drain_unstake";
|
|
55
|
+
readonly drain_withdraw: "drain_withdraw";
|
|
56
|
+
readonly validator_drain_unstaked_callback: "validator_drain_unstaked_callback";
|
|
57
|
+
readonly validator_drain_withdraw_callback: "validator_drain_withdraw_callback";
|
|
58
|
+
readonly get_total_share_amount: "get_total_share_amount";
|
|
59
|
+
readonly get_beneficiaries: "get_beneficiaries";
|
|
60
|
+
readonly get_managers: "get_managers";
|
|
61
|
+
readonly get_summary: "get_summary";
|
|
62
|
+
readonly get_account_details: "get_account_details";
|
|
63
|
+
readonly get_account_unstaked_balance: "get_account_unstaked_balance";
|
|
64
|
+
readonly get_account_staked_balance: "get_account_staked_balance";
|
|
65
|
+
readonly get_account_total_balance: "get_account_total_balance";
|
|
66
|
+
readonly is_account_unstaked_balance_available: "is_account_unstaked_balance_available";
|
|
67
|
+
readonly get_total_staked_balance: "get_total_staked_balance";
|
|
68
|
+
readonly get_owner_id: "get_owner_id";
|
|
69
|
+
readonly get_reward_fee_fraction: "get_reward_fee_fraction";
|
|
70
|
+
readonly get_staking_key: "get_staking_key";
|
|
71
|
+
readonly is_paused: "is_paused";
|
|
72
|
+
readonly get_account: "get_account";
|
|
73
|
+
readonly get_number_of_accounts: "get_number_of_accounts";
|
|
74
|
+
readonly get_accounts: "get_accounts";
|
|
75
|
+
readonly can_account_withdraw: "can_account_withdraw";
|
|
76
|
+
readonly new: "new";
|
|
77
|
+
readonly version: "version";
|
|
78
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// ===========================================
|
|
2
|
+
// ====== linear_protocol_methods_const ======
|
|
3
|
+
export const linear_protocol_methods_const = {
|
|
4
|
+
upgrade: "upgrade",
|
|
5
|
+
epoch_stake: "epoch_stake",
|
|
6
|
+
epoch_unstake: "epoch_unstake",
|
|
7
|
+
epoch_update_rewards: "epoch_update_rewards",
|
|
8
|
+
epoch_withdraw: "epoch_withdraw",
|
|
9
|
+
validator_staked_callback: "validator_staked_callback",
|
|
10
|
+
validator_unstaked_callback: "validator_unstaked_callback",
|
|
11
|
+
validator_get_balance_callback: "validator_get_balance_callback",
|
|
12
|
+
validator_get_account_callback: "validator_get_account_callback",
|
|
13
|
+
validator_withdraw_callback: "validator_withdraw_callback",
|
|
14
|
+
ft_transfer: "ft_transfer",
|
|
15
|
+
ft_transfer_call: "ft_transfer_call",
|
|
16
|
+
ft_total_supply: "ft_total_supply",
|
|
17
|
+
ft_balance_of: "ft_balance_of",
|
|
18
|
+
ft_resolve_transfer: "ft_resolve_transfer",
|
|
19
|
+
ft_price: "ft_price",
|
|
20
|
+
ft_metadata: "ft_metadata",
|
|
21
|
+
storage_deposit: "storage_deposit",
|
|
22
|
+
storage_withdraw: "storage_withdraw",
|
|
23
|
+
storage_unregister: "storage_unregister",
|
|
24
|
+
storage_balance_bounds: "storage_balance_bounds",
|
|
25
|
+
storage_balance_of: "storage_balance_of",
|
|
26
|
+
contract_source_metadata: "contract_source_metadata",
|
|
27
|
+
set_owner: "set_owner",
|
|
28
|
+
add_manager: "add_manager",
|
|
29
|
+
remove_manager: "remove_manager",
|
|
30
|
+
set_beneficiary: "set_beneficiary",
|
|
31
|
+
remove_beneficiary: "remove_beneficiary",
|
|
32
|
+
set_treasury: "set_treasury",
|
|
33
|
+
set_whitelist_contract_id: "set_whitelist_contract_id",
|
|
34
|
+
pause: "pause",
|
|
35
|
+
resume: "resume",
|
|
36
|
+
ping: "ping",
|
|
37
|
+
deposit: "deposit",
|
|
38
|
+
deposit_and_stake: "deposit_and_stake",
|
|
39
|
+
withdraw_all: "withdraw_all",
|
|
40
|
+
withdraw: "withdraw",
|
|
41
|
+
stake_all: "stake_all",
|
|
42
|
+
stake: "stake",
|
|
43
|
+
unstake_all: "unstake_all",
|
|
44
|
+
unstake: "unstake",
|
|
45
|
+
migrate: "migrate",
|
|
46
|
+
add_validator: "add_validator",
|
|
47
|
+
add_validators: "add_validators",
|
|
48
|
+
is_whitelisted_callback: "is_whitelisted_callback",
|
|
49
|
+
remove_validator: "remove_validator",
|
|
50
|
+
update_weight: "update_weight",
|
|
51
|
+
update_weights: "update_weights",
|
|
52
|
+
update_base_stake_amounts: "update_base_stake_amounts",
|
|
53
|
+
sync_balance_from_validator: "sync_balance_from_validator",
|
|
54
|
+
get_validator: "get_validator",
|
|
55
|
+
get_validators: "get_validators",
|
|
56
|
+
drain_unstake: "drain_unstake",
|
|
57
|
+
drain_withdraw: "drain_withdraw",
|
|
58
|
+
validator_drain_unstaked_callback: "validator_drain_unstaked_callback",
|
|
59
|
+
validator_drain_withdraw_callback: "validator_drain_withdraw_callback",
|
|
60
|
+
get_total_share_amount: "get_total_share_amount",
|
|
61
|
+
get_beneficiaries: "get_beneficiaries",
|
|
62
|
+
get_managers: "get_managers",
|
|
63
|
+
get_summary: "get_summary",
|
|
64
|
+
get_account_details: "get_account_details",
|
|
65
|
+
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
66
|
+
get_account_staked_balance: "get_account_staked_balance",
|
|
67
|
+
get_account_total_balance: "get_account_total_balance",
|
|
68
|
+
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
69
|
+
get_total_staked_balance: "get_total_staked_balance",
|
|
70
|
+
get_owner_id: "get_owner_id",
|
|
71
|
+
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
72
|
+
get_staking_key: "get_staking_key",
|
|
73
|
+
is_paused: "is_paused",
|
|
74
|
+
get_account: "get_account",
|
|
75
|
+
get_number_of_accounts: "get_number_of_accounts",
|
|
76
|
+
get_accounts: "get_accounts",
|
|
77
|
+
can_account_withdraw: "can_account_withdraw",
|
|
78
|
+
new: "new",
|
|
79
|
+
version: "version",
|
|
80
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export declare const meta_pool_methods_const: {
|
|
2
|
+
readonly distribute_staking: "distribute_staking";
|
|
3
|
+
readonly on_staking_pool_stake_maybe_deposit: "on_staking_pool_stake_maybe_deposit";
|
|
4
|
+
readonly manual_stake: "manual_stake";
|
|
5
|
+
readonly force_rebalance_unstake: "force_rebalance_unstake";
|
|
6
|
+
readonly rebalance_unstake_sp: "rebalance_unstake_sp";
|
|
7
|
+
readonly do_rebalance_unstake: "do_rebalance_unstake";
|
|
8
|
+
readonly distribute_unstaking: "distribute_unstaking";
|
|
9
|
+
readonly on_staking_pool_unstake: "on_staking_pool_unstake";
|
|
10
|
+
readonly set_busy: "set_busy";
|
|
11
|
+
readonly sp_busy: "sp_busy";
|
|
12
|
+
readonly extra_balance_accumulated: "extra_balance_accumulated";
|
|
13
|
+
readonly transfer_extra_balance_accumulated: "transfer_extra_balance_accumulated";
|
|
14
|
+
readonly sync_unstaked_balance: "sync_unstaked_balance";
|
|
15
|
+
readonly on_get_sp_unstaked_balance: "on_get_sp_unstaked_balance";
|
|
16
|
+
readonly distribute_rewards: "distribute_rewards";
|
|
17
|
+
readonly on_get_sp_total_balance: "on_get_sp_total_balance";
|
|
18
|
+
readonly get_staking_pool_requiring_retrieve: "get_staking_pool_requiring_retrieve";
|
|
19
|
+
readonly retrieve_funds_from_a_pool: "retrieve_funds_from_a_pool";
|
|
20
|
+
readonly on_retrieve_from_staking_pool: "on_retrieve_from_staking_pool";
|
|
21
|
+
readonly end_of_epoch_clearing: "end_of_epoch_clearing";
|
|
22
|
+
readonly migrate: "migrate";
|
|
23
|
+
readonly pause_staking: "pause_staking";
|
|
24
|
+
readonly un_pause_staking: "un_pause_staking";
|
|
25
|
+
readonly get_staking_pool_list: "get_staking_pool_list";
|
|
26
|
+
readonly remove_staking_pool: "remove_staking_pool";
|
|
27
|
+
readonly add_staking_pool: "add_staking_pool";
|
|
28
|
+
readonly set_staking_pools: "set_staking_pools";
|
|
29
|
+
readonly compute_current_unstaking_delay: "compute_current_unstaking_delay";
|
|
30
|
+
readonly get_operator_account_id: "get_operator_account_id";
|
|
31
|
+
readonly set_operator_account_id: "set_operator_account_id";
|
|
32
|
+
readonly get_treasury_account_id: "get_treasury_account_id";
|
|
33
|
+
readonly set_treasury_account_id: "set_treasury_account_id";
|
|
34
|
+
readonly set_owner_id: "set_owner_id";
|
|
35
|
+
readonly get_known_deposited_balance: "get_known_deposited_balance";
|
|
36
|
+
readonly get_account_info: "get_account_info";
|
|
37
|
+
readonly get_contract_info: "get_contract_info";
|
|
38
|
+
readonly set_contract_info: "set_contract_info";
|
|
39
|
+
readonly get_st_near_price: "get_st_near_price";
|
|
40
|
+
readonly get_contract_state: "get_contract_state";
|
|
41
|
+
readonly get_contract_params: "get_contract_params";
|
|
42
|
+
readonly set_contract_params: "set_contract_params";
|
|
43
|
+
readonly set_reward_multipliers: "set_reward_multipliers";
|
|
44
|
+
readonly set_max_meta_rewards: "set_max_meta_rewards";
|
|
45
|
+
readonly get_sp_info: "get_sp_info";
|
|
46
|
+
readonly get_staking_pool_requiring_unstake: "get_staking_pool_requiring_unstake";
|
|
47
|
+
readonly storage_deposit: "storage_deposit";
|
|
48
|
+
readonly storage_withdraw: "storage_withdraw";
|
|
49
|
+
readonly storage_unregister: "storage_unregister";
|
|
50
|
+
readonly storage_balance_bounds: "storage_balance_bounds";
|
|
51
|
+
readonly storage_balance_of: "storage_balance_of";
|
|
52
|
+
readonly ft_transfer: "ft_transfer";
|
|
53
|
+
readonly ft_transfer_call: "ft_transfer_call";
|
|
54
|
+
readonly ft_total_supply: "ft_total_supply";
|
|
55
|
+
readonly ft_balance_of: "ft_balance_of";
|
|
56
|
+
readonly ft_resolve_transfer: "ft_resolve_transfer";
|
|
57
|
+
readonly ft_metadata: "ft_metadata";
|
|
58
|
+
readonly ft_metadata_set: "ft_metadata_set";
|
|
59
|
+
readonly new: "new";
|
|
60
|
+
readonly ping: "ping";
|
|
61
|
+
readonly deposit: "deposit";
|
|
62
|
+
readonly withdraw: "withdraw";
|
|
63
|
+
readonly withdraw_all: "withdraw_all";
|
|
64
|
+
readonly withdraw_unstaked: "withdraw_unstaked";
|
|
65
|
+
readonly deposit_and_stake: "deposit_and_stake";
|
|
66
|
+
readonly stake_all: "stake_all";
|
|
67
|
+
readonly stake: "stake";
|
|
68
|
+
readonly unstake_all: "unstake_all";
|
|
69
|
+
readonly unstake: "unstake";
|
|
70
|
+
readonly stake_for_lockup: "stake_for_lockup";
|
|
71
|
+
readonly unstake_from_lockup_shares: "unstake_from_lockup_shares";
|
|
72
|
+
readonly withdraw_to_lockup: "withdraw_to_lockup";
|
|
73
|
+
readonly get_account_unstaked_balance: "get_account_unstaked_balance";
|
|
74
|
+
readonly get_account_staked_balance: "get_account_staked_balance";
|
|
75
|
+
readonly get_account_total_balance: "get_account_total_balance";
|
|
76
|
+
readonly get_account_available_balance: "get_account_available_balance";
|
|
77
|
+
readonly is_account_unstaked_balance_available: "is_account_unstaked_balance_available";
|
|
78
|
+
readonly get_owner_id: "get_owner_id";
|
|
79
|
+
readonly get_reward_fee_fraction: "get_reward_fee_fraction";
|
|
80
|
+
readonly get_reward_fee_bp: "get_reward_fee_bp";
|
|
81
|
+
readonly set_reward_fee: "set_reward_fee";
|
|
82
|
+
readonly get_staking_key: "get_staking_key";
|
|
83
|
+
readonly is_staking_paused: "is_staking_paused";
|
|
84
|
+
readonly get_account: "get_account";
|
|
85
|
+
readonly get_number_of_accounts: "get_number_of_accounts";
|
|
86
|
+
readonly get_accounts: "get_accounts";
|
|
87
|
+
readonly get_accounts_info: "get_accounts_info";
|
|
88
|
+
readonly get_near_amount_sell_stnear: "get_near_amount_sell_stnear";
|
|
89
|
+
readonly nslp_get_discount_basis_points: "nslp_get_discount_basis_points";
|
|
90
|
+
readonly liquid_unstake: "liquid_unstake";
|
|
91
|
+
readonly nslp_add_liquidity: "nslp_add_liquidity";
|
|
92
|
+
readonly nslp_remove_liquidity: "nslp_remove_liquidity";
|
|
93
|
+
readonly stake_from_nslp: "stake_from_nslp";
|
|
94
|
+
readonly realize_meta: "realize_meta";
|
|
95
|
+
readonly harvest_meta: "harvest_meta";
|
|
96
|
+
readonly upgrade: "upgrade";
|
|
97
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// =====================================
|
|
2
|
+
// ====== meta_pool_methods_const ======
|
|
3
|
+
export const meta_pool_methods_const = {
|
|
4
|
+
distribute_staking: "distribute_staking",
|
|
5
|
+
on_staking_pool_stake_maybe_deposit: "on_staking_pool_stake_maybe_deposit",
|
|
6
|
+
manual_stake: "manual_stake",
|
|
7
|
+
force_rebalance_unstake: "force_rebalance_unstake",
|
|
8
|
+
rebalance_unstake_sp: "rebalance_unstake_sp",
|
|
9
|
+
do_rebalance_unstake: "do_rebalance_unstake",
|
|
10
|
+
distribute_unstaking: "distribute_unstaking",
|
|
11
|
+
on_staking_pool_unstake: "on_staking_pool_unstake",
|
|
12
|
+
set_busy: "set_busy",
|
|
13
|
+
sp_busy: "sp_busy",
|
|
14
|
+
extra_balance_accumulated: "extra_balance_accumulated",
|
|
15
|
+
transfer_extra_balance_accumulated: "transfer_extra_balance_accumulated",
|
|
16
|
+
sync_unstaked_balance: "sync_unstaked_balance",
|
|
17
|
+
on_get_sp_unstaked_balance: "on_get_sp_unstaked_balance",
|
|
18
|
+
distribute_rewards: "distribute_rewards",
|
|
19
|
+
on_get_sp_total_balance: "on_get_sp_total_balance",
|
|
20
|
+
get_staking_pool_requiring_retrieve: "get_staking_pool_requiring_retrieve",
|
|
21
|
+
retrieve_funds_from_a_pool: "retrieve_funds_from_a_pool",
|
|
22
|
+
on_retrieve_from_staking_pool: "on_retrieve_from_staking_pool",
|
|
23
|
+
end_of_epoch_clearing: "end_of_epoch_clearing",
|
|
24
|
+
migrate: "migrate",
|
|
25
|
+
pause_staking: "pause_staking",
|
|
26
|
+
un_pause_staking: "un_pause_staking",
|
|
27
|
+
get_staking_pool_list: "get_staking_pool_list",
|
|
28
|
+
remove_staking_pool: "remove_staking_pool",
|
|
29
|
+
add_staking_pool: "add_staking_pool",
|
|
30
|
+
set_staking_pools: "set_staking_pools",
|
|
31
|
+
compute_current_unstaking_delay: "compute_current_unstaking_delay",
|
|
32
|
+
get_operator_account_id: "get_operator_account_id",
|
|
33
|
+
set_operator_account_id: "set_operator_account_id",
|
|
34
|
+
get_treasury_account_id: "get_treasury_account_id",
|
|
35
|
+
set_treasury_account_id: "set_treasury_account_id",
|
|
36
|
+
set_owner_id: "set_owner_id",
|
|
37
|
+
get_known_deposited_balance: "get_known_deposited_balance",
|
|
38
|
+
get_account_info: "get_account_info",
|
|
39
|
+
get_contract_info: "get_contract_info",
|
|
40
|
+
set_contract_info: "set_contract_info",
|
|
41
|
+
get_st_near_price: "get_st_near_price",
|
|
42
|
+
get_contract_state: "get_contract_state",
|
|
43
|
+
get_contract_params: "get_contract_params",
|
|
44
|
+
set_contract_params: "set_contract_params",
|
|
45
|
+
set_reward_multipliers: "set_reward_multipliers",
|
|
46
|
+
set_max_meta_rewards: "set_max_meta_rewards",
|
|
47
|
+
get_sp_info: "get_sp_info",
|
|
48
|
+
get_staking_pool_requiring_unstake: "get_staking_pool_requiring_unstake",
|
|
49
|
+
storage_deposit: "storage_deposit",
|
|
50
|
+
storage_withdraw: "storage_withdraw",
|
|
51
|
+
storage_unregister: "storage_unregister",
|
|
52
|
+
storage_balance_bounds: "storage_balance_bounds",
|
|
53
|
+
storage_balance_of: "storage_balance_of",
|
|
54
|
+
ft_transfer: "ft_transfer",
|
|
55
|
+
ft_transfer_call: "ft_transfer_call",
|
|
56
|
+
ft_total_supply: "ft_total_supply",
|
|
57
|
+
ft_balance_of: "ft_balance_of",
|
|
58
|
+
ft_resolve_transfer: "ft_resolve_transfer",
|
|
59
|
+
ft_metadata: "ft_metadata",
|
|
60
|
+
ft_metadata_set: "ft_metadata_set",
|
|
61
|
+
new: "new",
|
|
62
|
+
ping: "ping",
|
|
63
|
+
deposit: "deposit",
|
|
64
|
+
withdraw: "withdraw",
|
|
65
|
+
withdraw_all: "withdraw_all",
|
|
66
|
+
withdraw_unstaked: "withdraw_unstaked",
|
|
67
|
+
deposit_and_stake: "deposit_and_stake",
|
|
68
|
+
stake_all: "stake_all",
|
|
69
|
+
stake: "stake",
|
|
70
|
+
unstake_all: "unstake_all",
|
|
71
|
+
unstake: "unstake",
|
|
72
|
+
stake_for_lockup: "stake_for_lockup",
|
|
73
|
+
unstake_from_lockup_shares: "unstake_from_lockup_shares",
|
|
74
|
+
withdraw_to_lockup: "withdraw_to_lockup",
|
|
75
|
+
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
76
|
+
get_account_staked_balance: "get_account_staked_balance",
|
|
77
|
+
get_account_total_balance: "get_account_total_balance",
|
|
78
|
+
get_account_available_balance: "get_account_available_balance",
|
|
79
|
+
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
80
|
+
get_owner_id: "get_owner_id",
|
|
81
|
+
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
82
|
+
get_reward_fee_bp: "get_reward_fee_bp",
|
|
83
|
+
set_reward_fee: "set_reward_fee",
|
|
84
|
+
get_staking_key: "get_staking_key",
|
|
85
|
+
is_staking_paused: "is_staking_paused",
|
|
86
|
+
get_account: "get_account",
|
|
87
|
+
get_number_of_accounts: "get_number_of_accounts",
|
|
88
|
+
get_accounts: "get_accounts",
|
|
89
|
+
get_accounts_info: "get_accounts_info",
|
|
90
|
+
get_near_amount_sell_stnear: "get_near_amount_sell_stnear",
|
|
91
|
+
nslp_get_discount_basis_points: "nslp_get_discount_basis_points",
|
|
92
|
+
liquid_unstake: "liquid_unstake",
|
|
93
|
+
nslp_add_liquidity: "nslp_add_liquidity",
|
|
94
|
+
nslp_remove_liquidity: "nslp_remove_liquidity",
|
|
95
|
+
stake_from_nslp: "stake_from_nslp",
|
|
96
|
+
realize_meta: "realize_meta",
|
|
97
|
+
harvest_meta: "harvest_meta",
|
|
98
|
+
upgrade: "upgrade",
|
|
99
|
+
};
|
package/dist/pool.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const pool_methods_const: {
|
|
2
|
+
readonly upgrade: "upgrade";
|
|
3
|
+
readonly update: "update";
|
|
4
|
+
readonly migrate: "migrate";
|
|
5
|
+
readonly callback_post_get_owner: "callback_post_get_owner";
|
|
6
|
+
readonly callback_post_withdraw_reward: "callback_post_withdraw_reward";
|
|
7
|
+
readonly claim: "claim";
|
|
8
|
+
readonly stop_farm: "stop_farm";
|
|
9
|
+
readonly set_owner_id: "set_owner_id";
|
|
10
|
+
readonly update_staking_key: "update_staking_key";
|
|
11
|
+
readonly update_reward_fee_fraction: "update_reward_fee_fraction";
|
|
12
|
+
readonly decrease_burn_fee_fraction: "decrease_burn_fee_fraction";
|
|
13
|
+
readonly pause_staking: "pause_staking";
|
|
14
|
+
readonly resume_staking: "resume_staking";
|
|
15
|
+
readonly add_authorized_user: "add_authorized_user";
|
|
16
|
+
readonly remove_authorized_user: "remove_authorized_user";
|
|
17
|
+
readonly add_authorized_farm_token: "add_authorized_farm_token";
|
|
18
|
+
readonly remove_authorized_farm_token: "remove_authorized_farm_token";
|
|
19
|
+
readonly deposit: "deposit";
|
|
20
|
+
readonly deposit_and_stake: "deposit_and_stake";
|
|
21
|
+
readonly withdraw_all: "withdraw_all";
|
|
22
|
+
readonly withdraw: "withdraw";
|
|
23
|
+
readonly stake_all: "stake_all";
|
|
24
|
+
readonly stake: "stake";
|
|
25
|
+
readonly unstake_all: "unstake_all";
|
|
26
|
+
readonly unstake: "unstake";
|
|
27
|
+
readonly unstake_burn: "unstake_burn";
|
|
28
|
+
readonly burn: "burn";
|
|
29
|
+
readonly on_stake_action: "on_stake_action";
|
|
30
|
+
readonly ft_on_transfer: "ft_on_transfer";
|
|
31
|
+
readonly get_pool_summary: "get_pool_summary";
|
|
32
|
+
readonly get_version: "get_version";
|
|
33
|
+
readonly get_owner_id: "get_owner_id";
|
|
34
|
+
readonly get_factory_id: "get_factory_id";
|
|
35
|
+
readonly get_authorized_users: "get_authorized_users";
|
|
36
|
+
readonly get_authorized_farm_tokens: "get_authorized_farm_tokens";
|
|
37
|
+
readonly get_active_farms: "get_active_farms";
|
|
38
|
+
readonly get_farms: "get_farms";
|
|
39
|
+
readonly get_farm: "get_farm";
|
|
40
|
+
readonly get_unclaimed_reward: "get_unclaimed_reward";
|
|
41
|
+
readonly get_account_unstaked_balance: "get_account_unstaked_balance";
|
|
42
|
+
readonly get_account_staked_balance: "get_account_staked_balance";
|
|
43
|
+
readonly get_account_total_balance: "get_account_total_balance";
|
|
44
|
+
readonly is_account_unstaked_balance_available: "is_account_unstaked_balance_available";
|
|
45
|
+
readonly get_total_staked_balance: "get_total_staked_balance";
|
|
46
|
+
readonly get_reward_fee_fraction: "get_reward_fee_fraction";
|
|
47
|
+
readonly get_staking_key: "get_staking_key";
|
|
48
|
+
readonly is_staking_paused: "is_staking_paused";
|
|
49
|
+
readonly get_account: "get_account";
|
|
50
|
+
readonly get_number_of_accounts: "get_number_of_accounts";
|
|
51
|
+
readonly get_accounts: "get_accounts";
|
|
52
|
+
readonly new: "new";
|
|
53
|
+
readonly ping: "ping";
|
|
54
|
+
};
|
package/dist/pool.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// ================================
|
|
2
|
+
// ====== pool_methods_const ======
|
|
3
|
+
export const pool_methods_const = {
|
|
4
|
+
upgrade: "upgrade",
|
|
5
|
+
update: "update",
|
|
6
|
+
migrate: "migrate",
|
|
7
|
+
callback_post_get_owner: "callback_post_get_owner",
|
|
8
|
+
callback_post_withdraw_reward: "callback_post_withdraw_reward",
|
|
9
|
+
claim: "claim",
|
|
10
|
+
stop_farm: "stop_farm",
|
|
11
|
+
set_owner_id: "set_owner_id",
|
|
12
|
+
update_staking_key: "update_staking_key",
|
|
13
|
+
update_reward_fee_fraction: "update_reward_fee_fraction",
|
|
14
|
+
decrease_burn_fee_fraction: "decrease_burn_fee_fraction",
|
|
15
|
+
pause_staking: "pause_staking",
|
|
16
|
+
resume_staking: "resume_staking",
|
|
17
|
+
add_authorized_user: "add_authorized_user",
|
|
18
|
+
remove_authorized_user: "remove_authorized_user",
|
|
19
|
+
add_authorized_farm_token: "add_authorized_farm_token",
|
|
20
|
+
remove_authorized_farm_token: "remove_authorized_farm_token",
|
|
21
|
+
deposit: "deposit",
|
|
22
|
+
deposit_and_stake: "deposit_and_stake",
|
|
23
|
+
withdraw_all: "withdraw_all",
|
|
24
|
+
withdraw: "withdraw",
|
|
25
|
+
stake_all: "stake_all",
|
|
26
|
+
stake: "stake",
|
|
27
|
+
unstake_all: "unstake_all",
|
|
28
|
+
unstake: "unstake",
|
|
29
|
+
unstake_burn: "unstake_burn",
|
|
30
|
+
burn: "burn",
|
|
31
|
+
on_stake_action: "on_stake_action",
|
|
32
|
+
ft_on_transfer: "ft_on_transfer",
|
|
33
|
+
get_pool_summary: "get_pool_summary",
|
|
34
|
+
get_version: "get_version",
|
|
35
|
+
get_owner_id: "get_owner_id",
|
|
36
|
+
get_factory_id: "get_factory_id",
|
|
37
|
+
get_authorized_users: "get_authorized_users",
|
|
38
|
+
get_authorized_farm_tokens: "get_authorized_farm_tokens",
|
|
39
|
+
get_active_farms: "get_active_farms",
|
|
40
|
+
get_farms: "get_farms",
|
|
41
|
+
get_farm: "get_farm",
|
|
42
|
+
get_unclaimed_reward: "get_unclaimed_reward",
|
|
43
|
+
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
44
|
+
get_account_staked_balance: "get_account_staked_balance",
|
|
45
|
+
get_account_total_balance: "get_account_total_balance",
|
|
46
|
+
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
47
|
+
get_total_staked_balance: "get_total_staked_balance",
|
|
48
|
+
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
49
|
+
get_staking_key: "get_staking_key",
|
|
50
|
+
is_staking_paused: "is_staking_paused",
|
|
51
|
+
get_account: "get_account",
|
|
52
|
+
get_number_of_accounts: "get_number_of_accounts",
|
|
53
|
+
get_accounts: "get_accounts",
|
|
54
|
+
new: "new",
|
|
55
|
+
ping: "ping",
|
|
56
|
+
};
|
package/dist/poolv1.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const poolv1_methods_const: {
|
|
2
|
+
readonly new: "new";
|
|
3
|
+
readonly ping: "ping";
|
|
4
|
+
readonly deposit: "deposit";
|
|
5
|
+
readonly deposit_and_stake: "deposit_and_stake";
|
|
6
|
+
readonly withdraw_all: "withdraw_all";
|
|
7
|
+
readonly withdraw: "withdraw";
|
|
8
|
+
readonly stake_all: "stake_all";
|
|
9
|
+
readonly stake: "stake";
|
|
10
|
+
readonly unstake_all: "unstake_all";
|
|
11
|
+
readonly unstake: "unstake";
|
|
12
|
+
readonly get_account_unstaked_balance: "get_account_unstaked_balance";
|
|
13
|
+
readonly get_account_staked_balance: "get_account_staked_balance";
|
|
14
|
+
readonly get_account_total_balance: "get_account_total_balance";
|
|
15
|
+
readonly is_account_unstaked_balance_available: "is_account_unstaked_balance_available";
|
|
16
|
+
readonly get_total_staked_balance: "get_total_staked_balance";
|
|
17
|
+
readonly get_owner_id: "get_owner_id";
|
|
18
|
+
readonly get_reward_fee_fraction: "get_reward_fee_fraction";
|
|
19
|
+
readonly get_staking_key: "get_staking_key";
|
|
20
|
+
readonly is_staking_paused: "is_staking_paused";
|
|
21
|
+
readonly get_account: "get_account";
|
|
22
|
+
readonly get_number_of_accounts: "get_number_of_accounts";
|
|
23
|
+
readonly get_accounts: "get_accounts";
|
|
24
|
+
readonly on_stake_action: "on_stake_action";
|
|
25
|
+
readonly update_staking_key: "update_staking_key";
|
|
26
|
+
readonly update_reward_fee_fraction: "update_reward_fee_fraction";
|
|
27
|
+
readonly vote: "vote";
|
|
28
|
+
readonly pause_staking: "pause_staking";
|
|
29
|
+
readonly resume_staking: "resume_staking";
|
|
30
|
+
};
|
package/dist/poolv1.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// ==================================
|
|
2
|
+
// ====== poolv1_methods_const ======
|
|
3
|
+
export const poolv1_methods_const = {
|
|
4
|
+
new: "new",
|
|
5
|
+
ping: "ping",
|
|
6
|
+
deposit: "deposit",
|
|
7
|
+
deposit_and_stake: "deposit_and_stake",
|
|
8
|
+
withdraw_all: "withdraw_all",
|
|
9
|
+
withdraw: "withdraw",
|
|
10
|
+
stake_all: "stake_all",
|
|
11
|
+
stake: "stake",
|
|
12
|
+
unstake_all: "unstake_all",
|
|
13
|
+
unstake: "unstake",
|
|
14
|
+
get_account_unstaked_balance: "get_account_unstaked_balance",
|
|
15
|
+
get_account_staked_balance: "get_account_staked_balance",
|
|
16
|
+
get_account_total_balance: "get_account_total_balance",
|
|
17
|
+
is_account_unstaked_balance_available: "is_account_unstaked_balance_available",
|
|
18
|
+
get_total_staked_balance: "get_total_staked_balance",
|
|
19
|
+
get_owner_id: "get_owner_id",
|
|
20
|
+
get_reward_fee_fraction: "get_reward_fee_fraction",
|
|
21
|
+
get_staking_key: "get_staking_key",
|
|
22
|
+
is_staking_paused: "is_staking_paused",
|
|
23
|
+
get_account: "get_account",
|
|
24
|
+
get_number_of_accounts: "get_number_of_accounts",
|
|
25
|
+
get_accounts: "get_accounts",
|
|
26
|
+
on_stake_action: "on_stake_action",
|
|
27
|
+
update_staking_key: "update_staking_key",
|
|
28
|
+
update_reward_fee_fraction: "update_reward_fee_fraction",
|
|
29
|
+
vote: "vote",
|
|
30
|
+
pause_staking: "pause_staking",
|
|
31
|
+
resume_staking: "resume_staking",
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleet-js/staking-pool-contract-methods-const",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "TypeScript constants for NEAR staking pool contracts including factory pools, meta-pools, and linear protocol",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"
|
|
19
|
+
"clean": "rm -rf dist",
|
|
20
|
+
"build": "tsc --outDir dist",
|
|
20
21
|
"prepublishOnly": "bun run build"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"@types/bun": "
|
|
24
|
+
"@types/bun": "^1.3.11"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
|
-
"typescript": "^
|
|
27
|
+
"typescript": "^6.0.2"
|
|
27
28
|
}
|
|
28
29
|
}
|