From 26eb82735471b85ccfda27a7620e6ac717d8f9e1 Mon Sep 17 00:00:00 2001 From: Greg May Date: Mon, 16 Sep 2024 10:39:32 -0700 Subject: [PATCH] chose(SOLNENG-27): update docs --- README.md | 4 ++-- ethereum-staking/fireblocks/nodejs/.env.example | 1 - ethereum-staking/fireblocks/nodejs/README.md | 5 +++-- ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts | 6 +----- ...na-staking-with-buildervault-wallet-using-typescript.mp4 | 3 --- 5 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 media/solana-staking-with-buildervault-wallet-using-typescript.mp4 diff --git a/README.md b/README.md index 45d9289..bbc991f 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ This repository contains multiple applications. Below are the links to the indiv To get started, click on the links for installation and usage instructions. ## Solana Staking -- [Stake deposit from Builder Vault wallet with TypeScript SDK](./solana-staking/buildervault/nodejs/README.md) - [(video clip)](./media/solana-staking-with-buildervault-wallet-using-typescript.mp4) +- [Stake deposit from Builder Vault wallet with TypeScript SDK](./solana-staking/buildervault/nodejs/README.md) - [(video clip)](https://youtu.be/wy-10gsdSGs?feature=shared) - [Stake deposit from Fireblocks wallet with TypeScript SDK](./solana-staking/fireblocks/nodejs/README.md) ## Ethereum Staking - [Stake deposit from Builder Vault wallet with Golang SDK](./ethereum-staking/buildervault/golang/README.md) - [Stake deposit from Builder Vault wallet with TypeScript SDK](./ethereum-staking/buildervault/nodejs/README.md) -- [Stake deposit from Fireblocks wallet with TypeScript SDK](./ethereum-staking/fireblocks/nodejs/README.md) +- [Stake deposit from Fireblocks wallet with TypeScript SDK](./ethereum-staking/fireblocks/nodejs/README.md) - [(video clip)](https://youtu.be/_6uwwNTh7iQ?feature=shared) diff --git a/ethereum-staking/fireblocks/nodejs/.env.example b/ethereum-staking/fireblocks/nodejs/.env.example index c7c53dd..f194096 100644 --- a/ethereum-staking/fireblocks/nodejs/.env.example +++ b/ethereum-staking/fireblocks/nodejs/.env.example @@ -1,5 +1,4 @@ # Blockdaemon Stake -BLOCKDAEMON_API_KEY= BLOCKDAEMON_STAKE_API_KEY= ETHEREUM_NETWORK=holesky # mainnet | holesky ETHEREUM_WITHDRAWAL_ADDRESS= diff --git a/ethereum-staking/fireblocks/nodejs/README.md b/ethereum-staking/fireblocks/nodejs/README.md index 6ab85bc..18abdae 100644 --- a/ethereum-staking/fireblocks/nodejs/README.md +++ b/ethereum-staking/fireblocks/nodejs/README.md @@ -20,8 +20,9 @@ sequenceDiagram ### Prerequisites - [Node.js](https://nodejs.org/en/download/package-manager) or launch in [code-spaces](https://codespaces.new/Blockdaemon/demo-buildervault-stakingAPI?quickstart=1) - Create Fireblocks [API and Secret key](https://developers.fireblocks.com/docs/manage-api-keys) for use with the [Fireblocks Web3 provider](https://github.com/fireblocks/fireblocks-web3-provider) - - Register free Blockdaemon [RPC API key](https://docs.blockdaemon.com/reference/get-started-rpc#step-1-sign-up-for-an-api-key) and set in .env as BLOCKDAEMON_API_KEY - - Register free Blockdaemon [Staking API key](https://docs.blockdaemon.com/reference/get-started-staking-api#step-1-sign-up-for-an-api-key) and set in .env as BLOCKDAEMON_STAKE_API_KEY + - Ensure you have a Fireblocks Transaction Policy that permits Contract Calls for your Ethereum vault [Fireblocks TAP](https://developers.fireblocks.com/reference/configure-transaction-authorization-policy#tap-examples) + - Should you wish to allow-list the contracts, the Blockdaemon Ethereum Batch Deposit addresses are Mainnet:`0x3F124C700fb5E741F128e28985267D44f56B242F` and Holesky:`0x0b6E07c5EAd5596C1f26ca2F6B97050ceC853671` + - Register a free Blockdaemon [Staking API key](https://docs.blockdaemon.com/reference/get-started-staking-api#step-1-sign-up-for-an-api-key) and set in .env as BLOCKDAEMON_STAKE_API_KEY ### Step 1. Set environment variables in .env ```shell diff --git a/ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts b/ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts index 800f28d..142300d 100644 --- a/ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts +++ b/ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts @@ -39,7 +39,7 @@ function createStakeIntent( 'Content-Type': 'application/json', Accept: 'application/json', 'X-API-Key': bossApiKey, - 'Idempotency-Key': 'FB81DEED-D58B-4948-B51D-99E2E1064B9C', + //'Idempotency-Key': 'FB81DEED-D58B-4948-B51D-99E2E1064B9C', }, body: JSON.stringify(request), }; @@ -55,10 +55,6 @@ async function main() { const gwei = 10n ** 9n; // Check for the required environment variables - if (!process.env.BLOCKDAEMON_API_KEY) { - throw new Error('BLOCKDAEMON_API_KEY environment variable not set'); - } - if (!process.env.BLOCKDAEMON_STAKE_API_KEY) { throw new Error('BLOCKDAEMON_STAKE_API_KEY environment variable not set'); } diff --git a/media/solana-staking-with-buildervault-wallet-using-typescript.mp4 b/media/solana-staking-with-buildervault-wallet-using-typescript.mp4 deleted file mode 100644 index a547576..0000000 --- a/media/solana-staking-with-buildervault-wallet-using-typescript.mp4 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c018d07d9c6093220ed7a4fad1f4d9b07039494dc32b50ed1a18b2d3007c9054 -size 147281271