Skip to content

Commit

Permalink
feat(images): add support for tapd v0.5.0-alpha.rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaljsr committed Nov 29, 2024
1 parent 05f447f commit 0cce270
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
1 change: 1 addition & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Replace `<version>` with the desired Eclair version (ex: `0.3.3`).

### Tags

- `0.5.0-alpha.rc1` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
- `0.4.1-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
- `0.4.0-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
- `0.3.3-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
Expand Down
2 changes: 1 addition & 1 deletion src/store/models/designer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ describe('Designer model', () => {
expect.objectContaining({
message: 'Failed to add node',
error: new Error(
'This network does not contain a LND v0.18.0-beta (or higher) ' +
'This network does not contain a LND v0.18.4-beta.rc1 (or higher) ' +
`node which is required for tapd v${tapdLatest}`,
),
}),
Expand Down
11 changes: 9 additions & 2 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,18 @@ export const defaultRepoState: DockerRepoState = {
versions: [],
},
tapd: {
latest: '0.4.1-alpha',
versions: ['0.4.1-alpha', '0.4.0-alpha', '0.3.3-alpha', '0.3.2-alpha'],
latest: '0.5.0-alpha.rc1',
versions: [
'0.5.0-alpha.rc1',
'0.4.1-alpha',
'0.4.0-alpha',
'0.3.3-alpha',
'0.3.2-alpha',
],
// Not all tapd versions are compatible with all LND versions.
// This mapping specifies the minimum compatible LND for each tapd version
compatibility: {
'0.5.0-alpha.rc1': '0.18.4-beta.rc1',
'0.4.1-alpha': '0.18.0-beta',
'0.4.0-alpha': '0.18.0-beta',
'0.3.3-alpha': '0.16.0-beta',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/network.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ describe('Network Utils', () => {
it('should add a tap node linked to the exact minimum LND version', async () => {
const lnd = createLndNetworkNode(
network,
'0.18.0-beta',
'0.18.4-beta.rc1',
defaultRepoState.images.LND.compatibility,
{ image: '', command: '' },
Status.Stopped,
Expand Down
24 changes: 17 additions & 7 deletions src/utils/tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ export const testRepoState: DockerRepoState = {
version: 50,
images: {
LND: {
latest: '0.18.2-beta',
latest: '0.18.4-beta.rc1',
versions: [
'0.18.4-beta.rc1',
'0.18.3-beta',
'0.18.2-beta',
'0.18.1-beta',
'0.18.0-beta',
Expand Down Expand Up @@ -104,6 +106,8 @@ export const testRepoState: DockerRepoState = {
// not all LND versions are compatible with all bitcoind versions.
// this mapping specifies the highest compatible bitcoind for each LND version
compatibility: {
'0.18.4-beta.rc1': '27.0',
'0.18.3-beta': '27.0',
'0.18.2-beta': '27.0',
'0.18.1-beta': '27.0',
'0.18.0-beta': '27.0',
Expand Down Expand Up @@ -171,23 +175,29 @@ export const testRepoState: DockerRepoState = {
versions: [],
},
tapd: {
latest: '0.4.1-alpha',
versions: ['0.4.1-alpha', '0.4.0-alpha', '0.3.3-alpha', '0.3.2-alpha'],
latest: '0.5.0-alpha.rc1',
versions: [
'0.5.0-alpha.rc1',
'0.4.1-alpha',
'0.4.0-alpha',
'0.3.3-alpha',
'0.3.2-alpha',
],
// Not all tapd versions are compatible with all LND versions.
// This mapping specifies the minimum compatible LND for each tapd version
compatibility: {
'0.5.0-alpha.rc1': '0.18.4-beta.rc1',
'0.4.1-alpha': '0.18.0-beta',
'0.4.0-alpha': '0.18.0-beta',
'0.3.3-alpha': '0.16.0-beta',
'0.3.2-alpha': '0.16.0-beta',
},
},
litd: {
latest: '0.13.991-exp',
versions: ['0.13.991-exp', '0.13.99-exp'],
latest: '0.14.0-alpha.rc1',
versions: ['0.14.0-alpha.rc1'],
compatibility: {
'0.13.991-exp': '27.0',
'0.13.99-exp': '27.0',
'0.14.0-alpha.rc1': '27.0',
},
},
},
Expand Down

0 comments on commit 0cce270

Please sign in to comment.