Skip to content

Commit bd68d12

Browse files
authored
Merge pull request #86 from blinklabs-io/chore/rename
chore: rename repo to blinklabs-io/tx-submit-api
2 parents bbf48b9 + b62214d commit bd68d12

File tree

18 files changed

+91
-86
lines changed

18 files changed

+91
-86
lines changed

.github/workflows/ci-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
REGISTRY: ghcr.io
10-
IMAGE_NAME: cloudstruct/cardano-submit-api
10+
IMAGE_NAME: blinklabs-io/tx-submit-api
1111

1212
jobs:
1313
docker:

.github/workflows/publish-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
concurrency: ${{ github.ref }}
88

99
env:
10-
BIN_NAME: cardano-submit-api
10+
BIN_NAME: tx-submit-api
1111

1212
jobs:
1313
release:

.github/workflows/publish-docker-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
concurrency: ${{ github.ref }}
99

1010
env:
11-
IMAGE_NAME: cloudstruct/cardano-submit-api
11+
IMAGE_NAME: blinklabs/tx-submit-api
1212

1313
jobs:
1414
build-and-push-image:
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
images: |
3939
${{ env.IMAGE_NAME }}
40-
ghcr.io/${{ env.IMAGE_NAME }}
40+
ghcr.io/${{ github.repository }}
4141
tags: |
4242
# Only version, no revision
4343
type=match,pattern=v(.*)-(.*),group=1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# vendor/
1616

1717
# Binary
18-
/cardano-submit-api
18+
/tx-submit-api

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ WORKDIR /code
44
COPY . .
55
RUN make build
66

7-
FROM cgr.dev/chainguard/glibc-dynamic AS cardano-submit-api
8-
COPY --from=build /code/cardano-submit-api /bin/
9-
ENTRYPOINT ["/bin/cardano-submit-api"]
7+
FROM cgr.dev/chainguard/glibc-dynamic AS tx-submit-api
8+
COPY --from=build /code/tx-submit-api /bin/
9+
ENTRYPOINT ["tx-submit-api"]

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
identification within third-party archives.
188188

189189
Copyright 2022 CloudStruct, LLC.
190+
Copyright 2023 Blink Labs, Inc.
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BINARY=cardano-submit-api
1+
BINARY=tx-submit-api
22

33
# Determine root directory
44
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
@@ -23,6 +23,10 @@ build: $(BINARY)
2323
clean:
2424
rm -f $(BINARY)
2525

26+
swagger:
27+
swag f -g api.go -d internal/api
28+
swag i -g api.go -d internal/api
29+
2630
# Build docker image
2731
image: build
2832
docker build -t $(BINARY) .

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# go-cardano-submit-api
1+
# tx-submit-api
2+
23
Cardano Transaction Submission API
34

45
A simple HTTP API which accepts a CBOR encoded Cardano transaction as a
@@ -10,13 +11,13 @@ The recommended method of using this application is via the published
1011
container images.
1112

1213
```
13-
docker run -p 8090 ghcr.io/cloudstruct/cardano-submit-api:0.11.0
14+
docker run -p 8090 ghcr.io/blinklabs-io/tx-submit-api:0.11.0
1415
```
1516

1617
Binaries can be executed directly.
1718

1819
```
19-
./cardano-submit-api
20+
./tx-submit-api
2021
```
2122

2223
### Configuration
@@ -70,12 +71,12 @@ Cardano node configuration:
7071

7172
You can connect to either a cardano-node running locally on the host or a
7273
container running either `inputoutput/cardano-node` or
73-
`cloudstruct/cardano-node` by mapping in the correct paths and setting the
74+
`blinklabs-io/cardano-node` by mapping in the correct paths and setting the
7475
environment variables or configuration options to match.
7576

76-
#### Together with cloudstruct/cardano-node in Docker
77+
#### Together with blinklabs-io/cardano-node in Docker
7778

78-
Use Docker to run both cardano-node and go-cardano-submit-api with Docker
79+
Use Docker to run both cardano-node and tx-submit-api with Docker
7980
volumes for blockchain storage and node-ipc.
8081

8182
```
@@ -85,14 +86,14 @@ docker run --detach \
8586
-v node-data:/opt/cardano/data \
8687
-v node-ipc:/opt/cardano/ipc \
8788
-p 3001:3001 \
88-
ghcr.io/cloudstruct/cardano-node run
89+
ghcr.io/blinklabs-io/cardano-node run
8990
9091
# Start submit-api
9192
docker run --detach \
92-
--name cardano-submit-api
93+
--name tx-submit-api
9394
-v node-ipc:/node-ipc \
9495
-p 8090:8090 \
95-
ghcr.io/cloudstruct/cardano-submit-api
96+
ghcr.io/blinklabs-io/tx-submit-api
9697
```
9798

9899
#### Using a local cardano-node
@@ -103,10 +104,10 @@ a local cardano-node.
103104
```
104105
# Start submit-api
105106
docker run --detach \
106-
--name cardano-submit-api \
107+
--name tx-submit-api \
107108
-v /opt/cardano/ipc:/node-ipc \
108109
-p 8090:8090 \
109-
ghcr.io/cloudstruct/cardano-submit-api
110+
ghcr.io/blinklabs-io/tx-submit-api
110111
```
111112

112113
### Sending transactions
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package main
33
import (
44
"flag"
55
"fmt"
6-
"github.com/cloudstruct/go-cardano-submit-api/internal/api"
7-
"github.com/cloudstruct/go-cardano-submit-api/internal/config"
8-
"github.com/cloudstruct/go-cardano-submit-api/internal/logging"
6+
"github.com/blinklabs-io/tx-submit-api/internal/api"
7+
"github.com/blinklabs-io/tx-submit-api/internal/config"
8+
"github.com/blinklabs-io/tx-submit-api/internal/logging"
99
"net/http"
1010
_ "net/http/pprof"
1111
"os"

config.yaml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# Example config file for cardano-submit-api
2+
# Example config file for tx-submit-api
33
# The values shown below correspond to the in-code defaults
44

55
logging:

0 commit comments

Comments
 (0)