Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
34d8e5e
fix: fix unbonding fee
jrwbabylonlab Jun 6, 2024
0fba95f
v0.1.3
jrwbabylonlab Jun 6, 2024
2bcd5b4
Fix delegation unbonding fee (#230)
jrwbabylonlab Jun 6, 2024
0808dae
stats overlapping layout flow
gbarkhatov Jun 6, 2024
7363d38
diligence
gbarkhatov Jun 6, 2024
fadbefd
Fix delegation unbonding fee (#231)
jrwbabylonlab Jun 7, 2024
b82af45
note change
gbarkhatov Jun 7, 2024
9b8f43b
feature: Diligence (#236)
gbarkhatov Jun 7, 2024
d212a71
feature: Diligence (#241)
gbarkhatov Jun 7, 2024
e6c97fb
feature: Stats overlapping layout flow (#235)
gbarkhatov Jun 7, 2024
ed062d3
feature: Stats overlapping layout flow (#242)
gbarkhatov Jun 7, 2024
4865fba
chore: CI: Update image registry name (#232)
filippos47 Jun 7, 2024
e1b1791
pending stored in the local storage tooltip
gbarkhatov Jun 6, 2024
c75c4cb
feat: work with height based cap (#243)
jrwbabylonlab Jun 12, 2024
7ee8084
support gate wallet
vdgwerdfgCell Jun 12, 2024
5c7fec0
initial wallets network support
gbarkhatov Jun 9, 2024
d84e301
initial ui separation
gbarkhatov Jun 6, 2024
c0b21c0
feature: Wallets network support (#246)
gbarkhatov Jun 12, 2024
3aa9f58
feature: Initial UI separation (#233)
gbarkhatov Jun 12, 2024
45cfef4
feature: Pending - stored in the local storage - tooltip (#234)
gbarkhatov Jun 12, 2024
c829a06
Setup jest (#249)
jrwbabylonlab Jun 13, 2024
4dba8b2
fix: remove duplicated next block calculation for height cap (#251)
jrwbabylonlab Jun 13, 2024
9210576
Align node version (#250)
jrwbabylonlab Jun 13, 2024
9658945
feature: Custom fees (#252)
gbarkhatov Jun 17, 2024
ca2fef6
Add tooltip msg to preview button (#255)
jrwbabylonlab Jun 18, 2024
f33fd03
Set up unit tests that works with staking ts lib (#253)
supertong Jun 18, 2024
acc6f4e
fix: should not show error if user decide to cancel the keystone conn…
jrwbabylonlab Jun 18, 2024
563cdd5
add icon and tooltip on FP (#263)
jeremy-babylonlabs Jun 18, 2024
81cc1a1
feature: Filter staking delegations local storage (#260)
gbarkhatov Jun 18, 2024
c759c17
fix: show nearest days and weeks (#257)
jrwbabylonlab Jun 18, 2024
2d99062
fix: update FAQ for overflow and use coinName instead of hardcoded sB…
jrwbabylonlab Jun 18, 2024
5236e03
chore: when there is 1 block left, use block instead of blocks (#265)
jrwbabylonlab Jun 18, 2024
baa00a2
bump btc-staking-ts to 022 (#267)
gbarkhatov Jun 18, 2024
1f3ade5
feature: Max log scale calculation (#266)
gbarkhatov Jun 18, 2024
76d22bc
add terms modal (#262)
jeremy-babylonlabs Jun 18, 2024
9040c94
Release v0.2.0 (#268)
vitsalis Jun 18, 2024
d131dbb
chore: fix missing space in unbonding text, as well as remove the ok …
jrwbabylonlab Jun 19, 2024
74d4cac
chore: fix missing space in unbonding text (#269)
jrwbabylonlab Jun 19, 2024
9baaba0
Fix missing spacein unbonding text (#270)
jrwbabylonlab Jun 19, 2024
b68b4ab
hotfix: Use the correct output when constructing withdrawal tx
vitsalis Jun 19, 2024
5bb2109
hotfix: Use the correct output when constructing withdrawal tx (#271)
vitsalis Jun 19, 2024
ea4e52c
hotfix: Use the correct output when constructing withdrawal tx (#272)
vitsalis Jun 19, 2024
58d779e
chore: add more unit tests for simple-staking
jrwbabylonlab Jun 19, 2024
94a422c
chore: add test for signStakingTx
jrwbabylonlab Jun 20, 2024
91af707
Add more unit tests (#273)
jrwbabylonlab Jun 21, 2024
17b089d
chore: Remove CD
filippos47 Jun 21, 2024
118926f
chore: Remove CD (#283)
filippos47 Jun 21, 2024
3e45fdc
chore: Remove CD (#284)
filippos47 Jun 21, 2024
53d2650
update FP alignment UI (#275)
jeremy-babylonlabs Jun 25, 2024
2412ebd
fix: should not allow user to choose the FP which has the same PK as …
jrwbabylonlab Jun 26, 2024
e000930
chore: bump version to 0.2.3 contain hotfix
jrwbabylonlab Jun 26, 2024
2158981
chore: update the msg
jrwbabylonlab Jun 26, 2024
3d85444
hotfix: PK should be different for FP and Wallet (#288)
jrwbabylonlab Jun 27, 2024
259a6ca
Should not allow select fp wallet same pk (#289)
jrwbabylonlab Jun 27, 2024
32524b9
feature: Test updateDelegations (#286)
gbarkhatov Jun 27, 2024
bc731cb
local storage tests
gbarkhatov Jun 27, 2024
8b05d40
fix: block to fix shall rounded to ceil
jrwbabylonlab Jun 28, 2024
18e2bee
fix: block to fix shall rounded to ceil (#293)
jrwbabylonlab Jun 28, 2024
085381a
fix: accurate fee estimation and bump simple staking version to 0.2.4
jrwbabylonlab Jun 28, 2024
66b280c
fix: accurate fee estimation and bump simple staking version to 0.2.4…
jrwbabylonlab Jun 28, 2024
44988b1
Fix block to weeks (#295)
jrwbabylonlab Jun 28, 2024
f95a6a2
remove mock dir, move generateMockDelegations to test helper
gbarkhatov Jul 1, 2024
a9e5da3
chore: add withdraw unit tests
jrwbabylonlab Jun 26, 2024
37b3bdf
chore: add withdraw unit tests (#291)
jrwbabylonlab Jul 1, 2024
6ed5cf9
fix: accurate fee estimation and bump simple staking version to 0.2.4
jrwbabylonlab Jun 28, 2024
0f01da9
Merge branch 'dev' into bump-btc-staking-lib
jrwbabylonlab Jul 1, 2024
214b8de
Bump btc staking lib (#305)
jrwbabylonlab Jul 1, 2024
d2a59e5
feature: Local storage tests (#292)
jrwbabylonlab Jul 1, 2024
3b71c6b
fix: have enough amount when creating staking tx
jrwbabylonlab Jul 1, 2024
e417560
feature: Unable to select FP without data (#306)
gbarkhatov Jul 2, 2024
e5012e8
fix: have enough amount when creating staking tx (#307)
jrwbabylonlab Jul 2, 2024
95f7d2d
fix: add op_return value size when calculating fee
jrwbabylonlab Jul 2, 2024
9084caf
fix: minor preview modal text change
jrwbabylonlab Jul 2, 2024
674df90
Minor preview modal text change (#312)
jrwbabylonlab Jul 2, 2024
c962f50
resolve merge conflict
jrwbabylonlab Jul 2, 2024
232de8f
Minor preview modal text change (#313)
jrwbabylonlab Jul 2, 2024
e85cd6e
Bump btc staking lib 0.2.8 (#309)
jrwbabylonlab Jul 2, 2024
1f384af
Dev into main (#316)
jrwbabylonlab Jul 2, 2024
115b7d2
Hotfix - Error handling of the unbonding & withdraw request failure (…
jeremy-babylonlabs Jul 2, 2024
2671bd5
fix: use virtualSize instead of bytelength
jrwbabylonlab Jul 2, 2024
dd6c975
add tooltips on negative pending stake (#311)
jeremy-babylonlabs Jul 2, 2024
e126fb4
feat: safety check on staking fee (#302)
jrwbabylonlab Jul 3, 2024
72d56ce
chore: cut release version v0.2.5
jrwbabylonlab Jul 3, 2024
078452e
chore: cut release version v0.2.5 (#320)
jrwbabylonlab Jul 3, 2024
61484d3
chore: add tx fee FAQ
jrwbabylonlab Jul 8, 2024
cfc8134
chore: add tx fee FAQ (#327)
jrwbabylonlab Jul 8, 2024
6c17e81
resolve useEffects warning (#326)
jeremy-babylonlabs Jul 9, 2024
019a070
chore: add fee wanring to unbonding and withdraw tx
jrwbabylonlab Jul 8, 2024
5b5b3a7
chore: add fee wanring to unbonding and withdraw tx (#329)
jrwbabylonlab Jul 9, 2024
1fea232
chore: bump simple-staking to v0.2.7
jrwbabylonlab Jul 9, 2024
df008dc
chore: bump simple-staking to v0.2.7 (#334)
jrwbabylonlab Jul 9, 2024
ae0b803
fix: approaching tvl cap should display overflow warning
jrwbabylonlab Jul 10, 2024
c7498c4
Hotfix approaching tvl cap (#335)
jrwbabylonlab Jul 10, 2024
450e89d
fix: wallet address switch shall reflect on dApp
jrwbabylonlab Jul 11, 2024
770a057
fix: wallet address switch shall reflect on dApp (#341)
jrwbabylonlab Jul 12, 2024
8b99f33
resolve conflict
vdgwerdfgCell Jul 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 7 additions & 131 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- checkout
- node/install:
node-version: '21.7'
node-version: "22.3"
- run:
name: Install dependencies
command: |
npm install
- run:
name: Run tests
command: |
npm run test
- run:
name: Build project
command: |
Expand All @@ -36,7 +40,7 @@ jobs:
path: ./
build-path: ./
tag: "$CIRCLE_SHA1,$CIRCLE_TAG"
repo: "$CIRCLE_PROJECT_REPONAME"
repo: "simple-staking"
- run:
name: Save Docker image to export it to workspace
command: |
Expand Down Expand Up @@ -64,104 +68,9 @@ jobs:
- aws-ecr/push-image:
registry-id: AWS_ECR_REGISTRY_ID
region: "$AWS_REGION"
repo: "$CIRCLE_PROJECT_REPONAME"
repo: "simple-staking"
tag: "$CIRCLE_SHA1,$CIRCLE_TAG"

deploy_staging:
machine:
image: ubuntu-2204:2024.01.1
resource_class: large
steps:
- checkout
- aws-ecr/ecr-login:
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
region: "$AWS_REGION"
- kubernetes/install-kubeconfig:
kubeconfig: TESTNET_KUBECONFIG
- helm/install-helm-client
- run:
name: Fetch and replace config placeholders from CircleCi env vars
command: |
HELM_VALUES=/home/circleci/project/.circleci/values-staging.yaml
sed -i "s/API_STAGING_FQDN/$API_STAGING_FQDN/g" $HELM_VALUES
sed -i "s/DASHBOARD_STAGING_FQDN/$DASHBOARD_STAGING_FQDN/g" $HELM_VALUES
- run:
name: Perform a dry run of the new release
command: |
helm upgrade --install --debug --dry-run \
-n $DEPLOY_STAGING_NAMESPACE \
--values /home/circleci/project/.circleci/values-staging.yaml \
--version $HELM_CHART_VERSION \
--set deployment.version=$CIRCLE_SHA1 \
simple-staking $HELM_CHART_REPO
- run:
name: Release new service version in an atomic way
command: |
helm upgrade --install --debug --atomic --wait \
-n $DEPLOY_STAGING_NAMESPACE --create-namespace \
--values /home/circleci/project/.circleci/values-staging.yaml \
--version $HELM_CHART_VERSION \
--set deployment.version=$CIRCLE_SHA1 \
simple-staking $HELM_CHART_REPO

deploy_testnet:
machine:
image: ubuntu-2204:2024.01.1
resource_class: large
steps:
- checkout
- aws-ecr/ecr-login:
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
region: "$AWS_REGION"
- kubernetes/install-kubeconfig:
kubeconfig: TESTNET_KUBECONFIG
- helm/install-helm-client
- run:
name: Fetch and replace config placeholders from CircleCi env vars
command: |
HELM_VALUES=/home/circleci/project/.circleci/values-testnet.yaml
sed -i "s/API_FQDN/$API_FQDN/g" $HELM_VALUES
sed -i "s/DASHBOARD_FQDN/$DASHBOARD_FQDN/g" $HELM_VALUES
- run:
name: Perform a dry run of the new release
command: |
helm upgrade --install --debug --dry-run \
-n $DEPLOY_TESTNET_NAMESPACE \
--values /home/circleci/project/.circleci/values-testnet.yaml \
--version $HELM_CHART_VERSION \
--set deployment.version=$CIRCLE_SHA1 \
simple-staking $HELM_CHART_REPO
- run:
name: Release new service version in an atomic way
command: |
helm upgrade --install --debug --atomic --wait \
-n $DEPLOY_TESTNET_NAMESPACE --create-namespace \
--values /home/circleci/project/.circleci/values-testnet.yaml \
--version $HELM_CHART_VERSION \
--set deployment.version=$CIRCLE_SHA1 \
simple-staking $HELM_CHART_REPO

rollback_testnet:
machine:
image: ubuntu-2204:2024.01.1
resource_class: large
steps:
- checkout
- aws-ecr/ecr-login:
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
region: "$AWS_REGION"
- kubernetes/install-kubeconfig:
kubeconfig: TESTNET_KUBECONFIG
- helm/install-helm-client
- run:
name: Rollback Helm Chart to previous release
command: |
helm rollback --cleanup-on-fail --force --recreate-pods --wait \
--debug -n $DEPLOY_TESTNET_NAMESPACE simple-staking

workflows:
CICD:
jobs:
Expand All @@ -184,36 +93,3 @@ workflows:
only:
- dev
- main
- deploy_staging:
requires:
- push_docker
filters:
branches:
only:
- dev
- require_approval_deploy:
type: approval
requires:
- push_docker
filters:
branches:
only:
- main
- deploy_testnet:
requires:
- require_approval_deploy
filters:
branches:
only:
- main
- require_approval_rollback:
type: approval
requires:
- deploy_testnet
filters:
branches:
only:
- main
- rollback_testnet:
requires:
- require_approval_rollback
61 changes: 0 additions & 61 deletions .circleci/values-staging.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions .circleci/values-testnet.yaml

This file was deleted.

29 changes: 6 additions & 23 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
{
"extends": [
"next/core-web-vitals",
"prettier"
],
"plugins": [
"@tanstack/query",
"import"
],
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["@tanstack/query", "import"],
"rules": {
"import/order": [
"error",
{
"groups": [
[
"builtin",
"external"
],
[
"internal",
"parent",
"sibling",
"index"
]
["builtin", "external"],
["internal", "parent", "sibling", "index"]
],
"pathGroups": [
{
Expand All @@ -35,12 +21,9 @@
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [
"builtin",
"external"
],
"pathGroupsExcludedImportTypes": ["builtin", "external"],
"newlines-between": "always"
}
]
}
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.3.0
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
dist
build
coverage
.circleci
.husky
.next
docs
public
README.md
16 changes: 15 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,19 @@
"plugins": [
"prettier-plugin-tailwindcss",
"prettier-plugin-organize-imports"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"options": {
"parser": "typescript"
}
},
{
"files": ["*.js", "*.jsx"],
"options": {
"parser": "babel"
}
}
]
}
}
Loading