(
env: &PocketIc,
station_canister_id: Principal,
requester: Principal,
input: FetchAccountBalancesInput,
)
| 861 | } |
| 862 | |
| 863 | pub fn fetch_account_balances( |
| 864 | env: &PocketIc, |
| 865 | station_canister_id: Principal, |
| 866 | requester: Principal, |
| 867 | input: FetchAccountBalancesInput, |
| 868 | ) -> station_api::FetchAccountBalancesResponse { |
| 869 | update_candid_as::<(FetchAccountBalancesInput,), (ApiResult<FetchAccountBalancesResponse>,)>( |
| 870 | env, |
| 871 | station_canister_id, |
| 872 | requester, |
| 873 | "fetch_account_balances", |
| 874 | (input,), |
| 875 | ) |
| 876 | .expect("Failed to send query call") |
| 877 | .0 |
| 878 | .expect("Failed to get account balances") |
| 879 | } |
| 880 | |
| 881 | pub fn get_icp_asset( |
| 882 | env: &PocketIc, |
no outgoing calls