Skip to content

Commit

Permalink
Eoi service (#327)
Browse files Browse the repository at this point in the history
* feat: create EOI service
  • Loading branch information
jrwbabylonlab authored Nov 11, 2024
1 parent ce11452 commit fe0e242
Show file tree
Hide file tree
Showing 11 changed files with 407 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NEXT_PUBLIC_MEMPOOL_API=https://mempool.space
NEXT_PUBLIC_API_URL=https://staking-api.testnet.babylonchain.io
NEXT_PUBLIC_API_URL=https://staking-api.phase-2-devnet.babylonlabs.io
NEXT_PUBLIC_POINTS_API_URL=https://points.testnet.babylonchain.io
NEXT_PUBLIC_NETWORK=signet
NEXT_PUBLIC_DISPLAY_TESTING_MESSAGES=true
Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"node": "22.3.0"
},
"dependencies": {
"@babylonlabs-io/babylon-proto-ts": "0.0.3-canary.2",
"@babylonlabs-io/btc-staking-ts": "0.4.0-canary.2",
"@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3",
"@bitcoinerlab/secp256k1": "^1.1.1",
Expand Down
5 changes: 3 additions & 2 deletions src/app/components/Modals/PreviewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ interface PreviewModalProps {
stakingTimeBlocks: number;
stakingFeeSat: number;
feeRate: number;
confirmationDepth: number;
unbondingFeeSat: number;
awaitingWalletResponse: boolean;
}
Expand All @@ -33,7 +32,6 @@ export const PreviewModal: React.FC<PreviewModalProps> = ({
onSign,
stakingFeeSat,
feeRate,
confirmationDepth,
unbondingFeeSat,
awaitingWalletResponse,
}) => {
Expand All @@ -42,6 +40,9 @@ export const PreviewModal: React.FC<PreviewModalProps> = ({

const { coinName } = getNetworkConfig();

// TODO: Get confirmation depth from params
const confirmationDepth = 10;

return (
<GeneralModal
open={open}
Expand Down
Loading

0 comments on commit fe0e242

Please sign in to comment.