Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PSDK-132] Address.createTransfer / Wallet.createTransfer Implementation #17

Merged
merged 1 commit into from
May 23, 2024

Conversation

John-peterson-coinbase
Copy link
Contributor

@John-peterson-coinbase John-peterson-coinbase commented May 16, 2024

What changed? Why?

  • Adds Address.createTransfer
  • Adds Wallet.createTransfer
    Follow-ups:
  • Tests are not fully covered vs Ruby SDK

Qualified Impact

@John-peterson-coinbase John-peterson-coinbase force-pushed the psdk-132-address-create-transfer branch 4 times, most recently from d7028ec to 4d2e786 Compare May 23, 2024 18:59
@John-peterson-coinbase John-peterson-coinbase changed the title 🚧 [WIP][PSDK-132] Address.createTransfer Implementation 🚧 [WIP][PSDK-132] Address.createTransfer / Wallet.createTransfer Implementation May 23, 2024
@John-peterson-coinbase John-peterson-coinbase marked this pull request as ready for review May 23, 2024 19:12
@John-peterson-coinbase John-peterson-coinbase changed the title [WIP][PSDK-132] Address.createTransfer / Wallet.createTransfer Implementation [PSDK-132] Address.createTransfer / Wallet.createTransfer Implementation May 23, 2024
transfer: TransferAPIClient;
baseSepoliaProvider: ethers.Provider;
};
import { WEI_PER_ETHER } from "./constants";
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we need to export these constants to the index file. I will create a PR for this.

Comment on lines 198 to 200
const key = new ethers.Wallet(convertStringToHex(hdKey.privateKey!));
const response = await Coinbase.apiClients.address!.getAddress(this.model.id!, key.address);
this.cacheAddress(response.data, key);
Copy link
Contributor

Choose a reason for hiding this comment

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

This part has been updated. Could you please pull the latest changes from master?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated and rebased on master

@John-peterson-coinbase John-peterson-coinbase merged commit b603eee into master May 23, 2024
6 checks passed
@erdimaden erdimaden deleted the psdk-132-address-create-transfer branch June 21, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants