alfred/pool-swap #33
| @ -124,6 +124,9 @@ func (ls *LocalHandlerService) GetHandler(accountService remote.AccountService) | |||||||
| 	ls.DbRs.AddLocalFunc("set_back", appHandlers.SetBack) | 	ls.DbRs.AddLocalFunc("set_back", appHandlers.SetBack) | ||||||
| 	ls.DbRs.AddLocalFunc("show_blocked_account", appHandlers.ShowBlockedAccount) | 	ls.DbRs.AddLocalFunc("show_blocked_account", appHandlers.ShowBlockedAccount) | ||||||
| 	ls.DbRs.AddLocalFunc("clear_temporary_value", appHandlers.ClearTemporaryValue) | 	ls.DbRs.AddLocalFunc("clear_temporary_value", appHandlers.ClearTemporaryValue) | ||||||
|  | 	ls.DbRs.AddLocalFunc("get_pools", appHandlers.GetPools) | ||||||
|  | 	ls.DbRs.AddLocalFunc("swap_from_list", appHandlers.LoadSwapFromList) | ||||||
|  | 	ls.DbRs.AddLocalFunc("swap_to_list", appHandlers.LoadSwapToList) | ||||||
| 	ls.first = appHandlers.Init | 	ls.first = appHandlers.Init | ||||||
| 
 | 
 | ||||||
| 	return appHandlers, nil | 	return appHandlers, nil | ||||||
|  | |||||||
| @ -9,13 +9,15 @@ RELOAD check_balance | |||||||
| CATCH api_failure flag_api_call_error 1 | CATCH api_failure flag_api_call_error 1 | ||||||
| MAP check_balance | MAP check_balance | ||||||
| MOUT send 1 | MOUT send 1 | ||||||
| MOUT vouchers 2 | MOUT swap 2 | ||||||
|  | MOUT vouchers 3 | ||||||
| MOUT account 3 | MOUT account 3 | ||||||
| MOUT help 4 | MOUT help 4 | ||||||
| MOUT quit 9 | MOUT quit 9 | ||||||
| HALT | HALT | ||||||
| INCMP send 1 | INCMP send 1 | ||||||
| INCMP my_vouchers 2 | INCMP pool_swap 2 | ||||||
|  | INCMP my_vouchers 3 | ||||||
| INCMP my_account 3 | INCMP my_account 3 | ||||||
| INCMP help 4 | INCMP help 4 | ||||||
| INCMP quit 9 | INCMP quit 9 | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								services/registration/pool_swap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								services/registration/pool_swap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Enter number or pool symbol to swap from: | ||||||
|  | {{.get_pools}} | ||||||
							
								
								
									
										8
									
								
								services/registration/pool_swap.vis
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								services/registration/pool_swap.vis
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | LOAD get_pools 100 | ||||||
|  | MAP get_pools | ||||||
|  | MOUT back 0 | ||||||
|  | MOUT quit 99 | ||||||
|  | HALT | ||||||
|  | INCMP _ 0 | ||||||
|  | INCMP quit 99 | ||||||
|  | INCMP swap_from_list * | ||||||
							
								
								
									
										2
									
								
								services/registration/pool_swap_swa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								services/registration/pool_swap_swa
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Chagua bwawa la sarafu la kubadilishana: | ||||||
|  | {{.get_pools}} | ||||||
							
								
								
									
										2
									
								
								services/registration/swap_from_list
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								services/registration/swap_from_list
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Select number or symbol to swap FROM: | ||||||
|  | {{.swap_from_list}} | ||||||
							
								
								
									
										7
									
								
								services/registration/swap_from_list.vis
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								services/registration/swap_from_list.vis
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | |||||||
|  | LOAD swap_from_list 0 | ||||||
|  | CATCH _ flag_incorrect_pool 1 | ||||||
|  | MAP swap_from_list | ||||||
|  | MOUT back 0 | ||||||
|  | HALT | ||||||
|  | INCMP _ 0 | ||||||
|  | INCMP swap_to_list * | ||||||
							
								
								
									
										2
									
								
								services/registration/swap_from_list_swa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								services/registration/swap_from_list_swa
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Chagua nambari au ishara ya sarafu kubadilisha KUTOKA: | ||||||
|  | {{.swap_from_list}} | ||||||
							
								
								
									
										2
									
								
								services/registration/swap_to_list
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								services/registration/swap_to_list
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Select number or symbol to swap TO: | ||||||
|  | {{.swap_to_list}} | ||||||
							
								
								
									
										7
									
								
								services/registration/swap_to_list.vis
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								services/registration/swap_to_list.vis
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | |||||||
|  | LOAD swap_to_list 0 | ||||||
|  | CATCH _ flag_incorrect_voucher 1 | ||||||
|  | MAP swap_to_list | ||||||
|  | MOUT back 0 | ||||||
|  | HALT | ||||||
|  | INCMP _ 0 | ||||||
|  | INCMP swap_limit * | ||||||
							
								
								
									
										2
									
								
								services/registration/swap_to_list_swa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								services/registration/swap_to_list_swa
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Chagua nambari au ishara ya sarafu kubadilisha KWENDA: | ||||||
|  | {{.swap_to_list}} | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user