@blinklabs/dingo 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinklabs/dingo",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Dingo is a Cardano blockchain data node",
5
5
  "main": "index.js",
6
6
  "bin": "dingo",
Binary file
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- ��
2
- � �-��G)�+��Hello Badger
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- # Blink Labs
2
- #
3
- * @blinklabs-io/core
4
- *.md @blinklabs-io/core @blinklabs-io/docs @blinklabs-io/pms
5
- LICENSE @blinklabs-io/core @blinklabs-io/pms
@@ -1,19 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
-
6
- version: 2
7
- updates:
8
- - package-ecosystem: "docker"
9
- directory: "/"
10
- schedule:
11
- interval: "weekly"
12
- - package-ecosystem: "github-actions"
13
- directory: "/"
14
- schedule:
15
- interval: "weekly"
16
- - package-ecosystem: "gomod"
17
- directory: "/"
18
- schedule:
19
- interval: "weekly"
Binary file
package/.github/dingo.md DELETED
@@ -1,56 +0,0 @@
1
- ```
2
-
3
-
4
- ==
5
- ===*******+==+
6
- ==+*************+==
7
- ==== ==*******++++*******+==
8
- ===++****+++=+****=== ==+******==
9
- @%@@ ==+**************+++= =+******+=
10
- @#-----*#%@@ ==+******************+= =*******==
11
- @#--=%%%+=-----*#%@ ==+*********************+== =********==
12
- @%=-=%%%%%%%%%%%+=--+ ==************************+=# =+**##%%%#+=
13
- %*--#%%%%%%%%%%%%--=-=@ -=== -=+**************************+= =#@@@@@@@@%=
14
- %*--=%%%%%%%%%%%%=--%%+-%@ ====== ==*#+= ==*****************************== ==#@@@@@@@@@%=
15
- %---+%%%%%%%%%%%#--*%%%*--@ =+%%#*=== -=*#@@#*= =+******************************+= =*@@@@@@@@@@%=
16
- @-------==#%%%%=-=%%%%%%--# =+%@@#**+= ==*%@@@@*== +=+*******************************+= =+@@@@@@@@@@@+=
17
- @%-+%%%%#=-----=%%%%%%%%+-# =+#%%@%***=== ==#%@@%@%#*= ==*********************************+= ==@@@@@@@@@@@#==
18
- %=-%%%%%%%%%--#%%%%%%%%#--@ =#==%+%#***+= =+#@@%%=%##*+= =+**********************************+= =#@@@@@@@@@@@+=
19
- @=-+%%%%%%%%#-*%%%%%%%%%--# =*=#=#+@#****=====+%%@+#=*-#%**= ==+***********************************== =@@@@@@@@@@%+=
20
- @%+##%=-=%%%%--%%%%%%%+--*@ =+%-----#%********%@%=-=-#-#%**===*************************************= =#@@@@@@@@#+==
21
- @*--+--+@%%%%=-*%%%%*--+@ ==#=---=***********#=------%#**=+*************************************+= =#@@@@%*===
22
- @*-*++%-+%%%%%#-+%%#--+% =*+-+****************+----@***++*************************************= =%@%#===
23
- @+-#%++=-*-+##%%--%=-=@@ ==%********************+-=%***++**************************+*********== =%#==
24
- +-%*%%--#%++--------*@ =*##********************%#***++*************************=+*********= =+= @@%###=-=%@
25
- %---+-=% @@@+=+@ ==#%%#*********#%%%%%%#*******++************************==*********= == @@%%##=------===--*@
26
- @--=%@ ==+ +#*******%= -%%#*******++**********************+===***###**+= @+----==+%%%%%%%%%=--%@
27
- %*--%@ @%%%@@ =* # ******# #* .%********++*********************+= +=#%-----%= @%*-%%%----%%%%%%%%%%%%%%%---%
28
- @%-----+@ #------=++ ****- .#********++********************+= @%---+%%----==-+%--*-*%--=%%%%%%%%%%%%%%#--#
29
- @=-%%%*-+@ @*==%@---=@@%=****+**#%#***+ +**%@%%#***++*******************+= #-#%%**%#-------+@%--%%%*--#%%%%%%%%%%%%%%=-=%
30
- @==@ @%#*@@@ %*-=#------#@ =*****#%@@%#*********#%@@@@@@%**++******************== #---+*=---%@@%-=+@+-+%%%%%=-+%%%%%%%%%%%%%%*--#@
31
- %-=@@=-------=++%=-#@#---@%#--=***%%@@@@%*********%%@@@*===#@%*=*******##%#******==-#+-==----=###== @#-%--%%%%%%%+--#%%%%%%%%%%%#+=--+
32
- @#=#=-*-=%%%##+#-=#-#%--# ++%@@%@@@@@%%*****%%@@@@@*:%# =@@++*****%*-----++%#= *-++--=%=*****== @+-*%%%%%%%%%--=%%#++=------+=-*
33
- @+--%%=-+%%%%%*-#%=*-=% =** *@@@@@@@@@@@@*=% -*@%=****#+--+%%%*+----=+*#@#+=-%=*****== %--%%%%%%%%%%%#-----+**%%%%%%-=@
34
- %=-+%%%%--%%%%%#-----#@ ==% *@%@@@%@@@@@*+ -.=*@#=***#*--*%%%%%%%%%%#*=--=@*-#@=*****== @*-*%%%%%%%%%%%+-=%%%%%%%%%%%=-#
35
- @#--*%%%%%*-=%%%%--#@%+-@ ==#. -%@@%@@@@@@@@%#=- :=#@#++**##--+%%%%%%%%%%%%%*----%-+@ =+****== @=-+%%%%%%%%%%%=-%%%%%%%%%%%#--@
36
- @+-=%%%%%%%%=-%%%%@%%%%*-=@ #=+%**#@@@@@@@@%#==+-+%@%*==**##--+%%%%%%%%%%%%%#--+%#-#+@ =+****== @*--#%%%%%%%%*-+%%%%%%%%%%%+-%@
37
- @+-*%%%%%%%%#--%%%%%%%%%=-# ===*#%*++++++=-%@@%=-#+ ==**#=----=##%%%%%%%#--=%%%#--% =+****== @=--%%%%%%%--%%%%%%%%%%%%-=%
38
- %=-%%%%%%%%%------+#%%%#--@ =========%=-#++@+-#==*####-+%%==----*%%--=%%%%%%--* =+****== @#--*%%%%#-*%%%%%%%%%%%+-*@
39
- @*-+%%%%%%*--%%%#===------* ==*******#*-=%---*%*----%--%%%%%%%==---%%%%%%%%%-*@ =+****== @+-=%%%--%%%%%%%%%%%%-=@
40
- @+-%%%%%=-=%%%%%%%%%%%+--@ ==+*******+=+%=-------=%#**+-+%%%%%%%%%-=%%%%%%%%%=-#==*%@%*=== #--**-=%%%%%#=------*
41
- %-=%%#--*%%%%%%%%%%%--+@ ==********== @@@@=+-=-#*%%%-=%%%%%%%%%+-%%%%%%%%%=-+@@@@@@@%+= %=-----------*%%%%@@
42
- @*-**--%%%%%%%%%%%#--%@ ==+*******== =+#*------#--%%%%%%%%%+-=%%%%%%#--+%@@@@@@@@%+= @%--*%%%@@@
43
- %---+%%%%%%%%%%%=-=% ==+******+=+*******+== =+***####+=+*-=%%%%%%%%%--%%%%#=-=#@@@%@@@@@@%+=
44
- @#------=++*%%%=-#@=+%@@@@@%#*********==: ==== ==*******+== %---=+#%%%%%+-%%#--=%%==++****++===
45
- @@@%##*=-----# =+@@@@@@@@@%******=====*#*****+=*******== @%#*=----+*#--=-=%@ ===
46
- @@@@ =#@@@@@@@@@@#**+== =+%@@@@@@%********+== @@%*+----=#@
47
- =+#@@%@@@@%#+=== ==%@@@@@@@@%*****+== @@%%@
48
- ========== =#@@@@@@@@@@%**+==
49
- ==+##%%%###+===
50
- =====
51
-
52
-
53
-
54
- ```
55
-
56
- Created using https://itoa.hex.dance/
@@ -1,36 +0,0 @@
1
- name: Docker CI
2
-
3
- on:
4
- pull_request:
5
- branches: ['main']
6
- paths: ['Dockerfile','cmd/**','docs/**','internal/**','go.*','.github/workflows/ci-docker.yml']
7
-
8
- env:
9
- GHCR_IMAGE_NAME: ghcr.io/blinklabs-io/dingo
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- docker:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- with:
20
- fetch-depth: '0'
21
- - name: qemu
22
- uses: docker/setup-qemu-action@v3
23
- - uses: docker/setup-buildx-action@v3
24
- - id: meta
25
- uses: docker/metadata-action@v5
26
- with:
27
- images: ${{ env.GHCR_IMAGE_NAME }}
28
- - name: build
29
- uses: docker/build-push-action@v6
30
- with:
31
- context: .
32
- push: false
33
- ### TODO: test multiple platforms
34
- # platforms: linux/amd64,linux/arm64
35
- tags: ${{ steps.meta.outputs.tags }}
36
- labels: ${{ steps.meta.outputs.labels }}
@@ -1,17 +0,0 @@
1
- # The below is pulled from upstream and slightly modified
2
- # https://github.com/webiny/action-conventional-commits/blob/master/README.md#usage
3
-
4
- name: Conventional Commits
5
-
6
- on:
7
- pull_request:
8
-
9
- jobs:
10
- build:
11
- name: Conventional Commits
12
- runs-on: ubuntu-latest
13
- permissions:
14
- contents: read
15
- steps:
16
- - uses: actions/checkout@v4
17
- - uses: webiny/action-conventional-commits@v1.3.0
@@ -1,29 +0,0 @@
1
- name: go-test
2
-
3
- on:
4
- push:
5
- tags:
6
- - v*
7
- branches:
8
- - main
9
- pull_request:
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- go-test:
16
- name: go-test
17
- strategy:
18
- matrix:
19
- go-version: [1.23.x, 1.24.x]
20
- # We want to make sure that this builds on Linux and Darwin
21
- platform: [ubuntu-latest, macos-latest]
22
- runs-on: ${{ matrix.platform }}
23
- steps:
24
- - uses: actions/checkout@v4
25
- - uses: actions/setup-go@v5
26
- with:
27
- go-version: ${{ matrix.go-version }}
28
- - name: go-test
29
- run: go test ./...
@@ -1,23 +0,0 @@
1
- name: golangci-lint
2
- on:
3
- push:
4
- tags:
5
- - v*
6
- branches:
7
- - main
8
- pull_request:
9
-
10
- permissions:
11
- contents: read
12
-
13
- jobs:
14
- golangci:
15
- name: lint
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: actions/setup-go@v5
20
- with:
21
- go-version: 1.23.x
22
- - name: golangci-lint
23
- uses: golangci/golangci-lint-action@v8
@@ -1,201 +0,0 @@
1
- name: publish
2
-
3
- on:
4
- push:
5
- branches: ['main']
6
- tags:
7
- - 'v*.*.*'
8
-
9
- concurrency: ${{ github.ref }}
10
-
11
- env:
12
- APPLICATION_NAME: 'dingo'
13
-
14
- jobs:
15
- create-draft-release:
16
- runs-on: ubuntu-latest
17
- permissions:
18
- contents: write
19
- outputs:
20
- RELEASE_ID: ${{ steps.create-release.outputs.result }}
21
- steps:
22
- - run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
23
- - uses: actions/github-script@v7
24
- id: create-release
25
- if: startsWith(github.ref, 'refs/tags/')
26
- with:
27
- github-token: ${{ secrets.GITHUB_TOKEN }}
28
- result-encoding: string
29
- script: |
30
- try {
31
- const response = await github.rest.repos.createRelease({
32
- draft: true,
33
- generate_release_notes: true,
34
- name: process.env.RELEASE_TAG,
35
- owner: context.repo.owner,
36
- prerelease: false,
37
- repo: context.repo.repo,
38
- tag_name: process.env.RELEASE_TAG,
39
- });
40
-
41
- return response.data.id;
42
- } catch (error) {
43
- core.setFailed(error.message);
44
- }
45
-
46
- build-binaries:
47
- strategy:
48
- matrix:
49
- include:
50
- - runner: macos-latest
51
- os: darwin
52
- arch: arm64
53
- - runner: ubuntu-latest
54
- os: freebsd
55
- arch: amd64
56
- - runner: ubuntu-latest
57
- os: freebsd
58
- arch: arm64
59
- - runner: ubuntu-latest
60
- os: linux
61
- arch: amd64
62
- - runner: ubuntu-latest
63
- os: linux
64
- arch: arm64
65
- runs-on: ${{ matrix.runner }}
66
- needs: [create-draft-release]
67
- permissions:
68
- actions: write
69
- attestations: write
70
- checks: write
71
- contents: write
72
- id-token: write
73
- packages: write
74
- statuses: write
75
- steps:
76
- - name: Set RELEASE_TAG
77
- run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
78
- - uses: actions/checkout@v4
79
- with:
80
- fetch-depth: '0'
81
- - uses: actions/setup-go@v5
82
- with:
83
- go-version: 1.23.x
84
- - name: Build binary
85
- run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build
86
- - name: Upload release asset
87
- if: startsWith(github.ref, 'refs/tags/')
88
- run: |
89
- _filename=${{ env.APPLICATION_NAME }}-${{ env.RELEASE_TAG }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
90
- tar czf ${_filename} ${{ env.APPLICATION_NAME }}
91
- curl \
92
- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
93
- -H "Content-Type: application/octet-stream" \
94
- --data-binary @${_filename} \
95
- https://uploads.github.com/repos/${{ github.repository_owner }}/${{ env.APPLICATION_NAME }}/releases/${{ needs.create-draft-release.outputs.RELEASE_ID }}/assets?name=${_filename}
96
- - name: Attest binary
97
- if: startsWith(github.ref, 'refs/tags/')
98
- uses: actions/attest-build-provenance@v2
99
- with:
100
- subject-path: '${{ env.APPLICATION_NAME }}'
101
-
102
- build-images:
103
- runs-on: ubuntu-latest
104
- needs: [create-draft-release]
105
- permissions:
106
- actions: write
107
- attestations: write
108
- checks: write
109
- contents: write
110
- id-token: write
111
- packages: write
112
- statuses: write
113
- steps:
114
- - run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
115
- - uses: actions/checkout@v4
116
- with:
117
- fetch-depth: '0'
118
- - name: Set up QEMU
119
- uses: docker/setup-qemu-action@v3
120
- - name: Set up Docker Buildx
121
- uses: docker/setup-buildx-action@v3
122
- - name: Login to Docker Hub
123
- uses: docker/login-action@v3
124
- with:
125
- username: blinklabs
126
- password: ${{ secrets.DOCKER_PASSWORD }} # uses token
127
- - name: Login to GHCR
128
- uses: docker/login-action@v3
129
- with:
130
- username: ${{ github.repository_owner }}
131
- password: ${{ secrets.GITHUB_TOKEN }}
132
- registry: ghcr.io
133
- - id: meta
134
- uses: docker/metadata-action@v5
135
- with:
136
- images: |
137
- blinklabs/dingo
138
- ghcr.io/${{ github.repository }}
139
- tags: |
140
- # Only version, no revision
141
- type=match,pattern=v(.*)-(.*),group=1
142
- # branch
143
- type=ref,event=branch
144
- # semver
145
- type=semver,pattern={{version}}
146
- - name: Build images
147
- id: push
148
- uses: docker/build-push-action@v6
149
- with:
150
- outputs: "type=registry,push=true"
151
- platforms: linux/amd64,linux/arm64
152
- tags: ${{ steps.meta.outputs.tags }}
153
- labels: ${{ steps.meta.outputs.labels }}
154
- - name: Attest Docker Hub image
155
- uses: actions/attest-build-provenance@v2
156
- with:
157
- subject-name: index.docker.io/blinklabs/dingo
158
- subject-digest: ${{ steps.push.outputs.digest }}
159
- push-to-registry: true
160
- - name: Attest GHCR image
161
- uses: actions/attest-build-provenance@v2
162
- with:
163
- subject-name: ghcr.io/${{ github.repository }}
164
- subject-digest: ${{ steps.push.outputs.digest }}
165
- push-to-registry: true
166
- # Update Docker Hub from README
167
- - name: Docker Hub Description
168
- uses: peter-evans/dockerhub-description@v4
169
- with:
170
- username: blinklabs
171
- password: ${{ secrets.DOCKER_PASSWORD }}
172
- repository: blinklabs/${{ env.APPLICATION_NAME }}
173
- readme-filepath: ./README.md
174
- short-description: "Dingo is a Cardano blockchain data node"
175
-
176
- finalize-release:
177
- runs-on: ubuntu-latest
178
- permissions:
179
- contents: write
180
- needs: [create-draft-release, build-binaries, build-images]
181
- steps:
182
- - uses: actions/github-script@v7
183
- if: startsWith(github.ref, 'refs/tags/')
184
- with:
185
- github-token: ${{ secrets.GITHUB_TOKEN }}
186
- script: |
187
- try {
188
- await github.rest.repos.updateRelease({
189
- owner: context.repo.owner,
190
- repo: context.repo.repo,
191
- release_id: ${{ needs.create-draft-release.outputs.RELEASE_ID }},
192
- draft: false,
193
- });
194
- } catch (error) {
195
- core.setFailed(error.message);
196
- }
197
-
198
- # This updates the documentation on pkg.go.dev and the latest version available via the Go module proxy
199
- - name: Pull new module version
200
- if: startsWith(github.ref, 'refs/tags/')
201
- uses: andrewslotin/go-proxy-pull-action@v1.3.0