Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Create cold wallet references #1111

Merged
merged 79 commits into from
Jul 24, 2019
Merged

Conversation

mederic-p
Copy link
Contributor

@mederic-p mederic-p commented Jul 10, 2019

Issue/Task Number: 695
Closes #695, #1107

Overview

This PR allows the creation of a cold wallet "reference" using blockchain_wallet.create.

Changes

  • Add blockchain_wallet.create endpoint and associated files.

Implementation Details

The blockchain_wallet.create endpoints requires a name, an address and a type. For now, as we are only supporting cold wallet creation with the API, the given type must be cold.

Usage

The easiest is to test the endpoint in the updated swagger ui.

Impact

N/A

@mederic-p mederic-p changed the title [WIP] Create cold wallet references Create cold wallet references Jul 12, 2019
@mederic-p mederic-p requested a review from sirn July 18, 2019 07:07
apps/ewallet_db/lib/ewallet_db/blockchain_wallet.ex Outdated Show resolved Hide resolved
@@ -103,7 +134,27 @@ defmodule EWalletDB.BlockchainWallet do
@spec insert(map()) :: {:ok, %__MODULE__{}}
def insert(attrs) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still have any case where we insert a wallet that is both not hot nor cold? Might be able to remove this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted that it's being used by the test helpers. Refactor can be done in a separate PR

@mederic-p mederic-p changed the base branch from 695-update-token-erc20 to eth-blockchain July 24, 2019 06:44
@mederic-p mederic-p added this to Review in eWallet Jul 24, 2019
@mederic-p mederic-p merged commit f910f9f into eth-blockchain Jul 24, 2019
eWallet automation moved this from Review to Done Jul 24, 2019
@mederic-p mederic-p deleted the 1091-cold-wallet-reference branch July 24, 2019 08:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
eWallet
  
5-Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants