Skip to content

Commit

Permalink
Merge pull request #149 from zhangcongcobo/main
Browse files Browse the repository at this point in the history
add encoding&get_approval_details
  • Loading branch information
CoboZhu authored Jun 4, 2024
2 parents 9353211 + 35cf5b6 commit 199d46b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public interface CoboMPCApiRestClient {

ApiResponse<MPCAddressList> getMainAddress(String chainCode);

ApiResponse<MPCAddressList> generateAddresses(String chainCode, int count);
ApiResponse<MPCAddressList> generateAddresses(String chainCode, int count, Integer encoding);

ApiResponse<MPCMemoAddressList> generateAddressMemo(String chainCode, String address, int count);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public ApiResponse<MPCAddressList> getMainAddress(String chainCode) {
}

@Override
public ApiResponse<MPCAddressList> generateAddresses(String chainCode, int count) {
return executeSync(coboMPCApiService.generateAddresses(chainCode, count));
public ApiResponse<MPCAddressList> generateAddresses(String chainCode, int count, Integer encoding) {
return executeSync(coboMPCApiService.generateAddresses(chainCode, count, encoding));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Call<ApiResponse<Boolean>> isValidAddress(@Query("coin") String coin,
@FormUrlEncoded
@POST("/v1/custody/mpc/generate_addresses/")
Call<ApiResponse<MPCAddressList>> generateAddresses(@Field("chain_code") String chainCode,
@Field("count") int count);
@Field("count") int count, @Field("encoding") Integer encoding);

@FormUrlEncoded
@POST("/v1/custody/mpc/generate_address_memo/")
Expand Down

0 comments on commit 199d46b

Please sign in to comment.