Skip to content

Commit 66bb218

Browse files
authored
Merge branch 'main' into main
2 parents 44ef196 + 1511839 commit 66bb218

File tree

17 files changed

+164
-65
lines changed

17 files changed

+164
-65
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: docker save --output firefly.tar.gz hyperledger/firefly
6161

6262
- name: Upload Docker image
63-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
6464
with:
6565
name: firefly-docker
6666
path: firefly.tar.gz
@@ -146,7 +146,7 @@ jobs:
146146
go-version: 1.22
147147

148148
- name: Download Docker image
149-
uses: actions/download-artifact@v3
149+
uses: actions/download-artifact@v4
150150
with:
151151
name: firefly-docker
152152

@@ -165,7 +165,7 @@ jobs:
165165
run: ./test/e2e/run.sh
166166

167167
- name: Archive container logs
168-
uses: actions/upload-artifact@v3
168+
uses: actions/upload-artifact@v4
169169
if: always()
170170
with:
171171
name: container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-provider }}-${{ matrix.blockchain-connector }}-${{ matrix.database-type }}-${{ matrix.token-provider }}

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: ./test/e2e/run.sh
7676

7777
- name: Archive container logs
78-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7979
if: always()
8080
with:
8181
name: container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-node }}-${{ matrix.database-type }}
@@ -111,7 +111,7 @@ jobs:
111111
run: ./test/e2e/run.sh
112112

113113
- name: Archive container logs
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
if: always()
116116
with:
117117
name: container-logs-TestEthereumV1MigrationE2ESuite-geth-postgres

.github/workflows/scorecard.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: Scorecard supply-chain security
6+
on:
7+
# For Branch-Protection check. Only the default branch is supported. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9+
branch_protection_rule:
10+
# To guarantee Maintained check is occasionally updated. See
11+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12+
schedule:
13+
- cron: '24 7 * * 4'
14+
push:
15+
branches: [ "main" ]
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
analysis:
22+
name: Scorecard analysis
23+
runs-on: ubuntu-latest
24+
permissions:
25+
# Needed to upload the results to code-scanning dashboard.
26+
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write
29+
# Uncomment the permissions below if installing in a private repository.
30+
# contents: read
31+
# actions: read
32+
33+
steps:
34+
- name: "Checkout code"
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+
with:
37+
persist-credentials: false
38+
39+
- name: "Run analysis"
40+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
41+
with:
42+
results_file: results.sarif
43+
results_format: sarif
44+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45+
# - you want to enable the Branch-Protection check on a *public* repository, or
46+
# - you are installing Scorecard on a *private* repository
47+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
48+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
49+
50+
# Public repositories:
51+
# - Publish results to OpenSSF REST API for easy access by consumers
52+
# - Allows the repository to include the Scorecard badge.
53+
# - See https://github.com/ossf/scorecard-action#publishing-results.
54+
# For private repositories:
55+
# - `publish_results` will always be set to `false`, regardless
56+
# of the value entered here.
57+
publish_results: true
58+
59+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60+
# format to the repository Actions tab.
61+
- name: "Upload artifact"
62+
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
63+
with:
64+
name: SARIF file
65+
path: results.sarif
66+
retention-days: 5
67+
68+
# Upload the results to GitHub's code scanning dashboard (optional).
69+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
70+
- name: "Upload to code-scanning"
71+
uses: github/codeql-action/upload-sarif@v3
72+
with:
73+
sarif_file: results.sarif

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG GIT_REF
1717
RUN apk add make=4.4.1-r2 \
1818
gcc=13.2.1_git20231014-r0 \
1919
build-base=0.5-r3 \
20-
curl=8.9.1-r1 \
20+
curl=8.11.1-r0 \
2121
git=2.43.5-r0
2222
WORKDIR /firefly
2323
RUN chgrp -R 0 /firefly \
@@ -76,7 +76,7 @@ ARG UI_RELEASE
7676
RUN apk add --update --no-cache \
7777
sqlite=3.44.2-r0 \
7878
postgresql16-client=16.6-r0 \
79-
curl=8.9.1-r1 \
79+
curl=8.11.1-r0 \
8080
jq=1.7.1-r0
8181
WORKDIR /firefly
8282
RUN chgrp -R 0 /firefly \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ all the plumbing for your blockchain application from scratch.
4343

4444
[![Hyperledger FireFly Architecture Overview](./doc-site/docs/images/firefly_architecture_overview.jpg)](https://raw.githubusercontent.com/kaleido-io/firefly/main/doc-site/docs/images/firefly_architecture_overview.jpg)
4545

46-
## Start contributing to Hyperledger FireFy
46+
## Start contributing to Hyperledger FireFly
4747

4848
There are lots of places you can contribute, regardless of whether your skills are front-end, backend-end, or full-stack.
4949

doc-site/.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/setup-python@v4
2424
with:
2525
python-version: 3.x
26-
- uses: actions/cache@v2
26+
- uses: actions/cache@v4
2727
with:
2828
key: ${{ github.ref }}
2929
path: .cache

doc-site/docs/reference/config.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ title: Configuration Reference
264264
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
265265
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
266266
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
267+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
267268
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
268269
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
269270
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`
@@ -607,6 +608,7 @@ title: Configuration Reference
607608
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
608609
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
609610
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
611+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
610612
|method|The HTTP method to use when making requests to the Address Resolver|`string`|`GET`
611613
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
612614
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
@@ -675,6 +677,7 @@ title: Configuration Reference
675677
|instance|The Ethereum address of the FireFly BatchPin smart contract that has been deployed to the blockchain|Address `string`|`<nil>`
676678
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
677679
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
680+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
678681
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
679682
|prefixLong|The prefix that will be used for Ethconnect specific HTTP headers when FireFly makes requests to Ethconnect|`string`|`firefly`
680683
|prefixShort|The prefix that will be used for Ethconnect specific query parameters when FireFly makes requests to Ethconnect|`string`|`fly`
@@ -759,6 +762,7 @@ title: Configuration Reference
759762
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
760763
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
761764
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
765+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
762766
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
763767
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
764768
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`
@@ -823,6 +827,7 @@ title: Configuration Reference
823827
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
824828
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
825829
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
830+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
826831
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
827832
|prefixLong|The prefix that will be used for Fabconnect specific HTTP headers when FireFly makes requests to Fabconnect|`string`|`firefly`
828833
|prefixShort|The prefix that will be used for Fabconnect specific query parameters when FireFly makes requests to Fabconnect|`string`|`fly`
@@ -910,6 +915,7 @@ title: Configuration Reference
910915
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
911916
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
912917
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
918+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
913919
|method|The HTTP method to use when making requests to the Address Resolver|`string`|`GET`
914920
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
915921
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
@@ -976,6 +982,7 @@ title: Configuration Reference
976982
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
977983
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
978984
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
985+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
979986
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
980987
|prefixLong|The prefix that will be used for Tezosconnect specific HTTP headers when FireFly makes requests to Tezosconnect|`string`|`firefly`
981988
|prefixShort|The prefix that will be used for Tezosconnect specific query parameters when FireFly makes requests to Tezosconnect|`string`|`fly`
@@ -1110,6 +1117,7 @@ title: Configuration Reference
11101117
|manifestEnabled|Determines whether to require+validate a manifest from other DX instances in the network. Must be supported by the connector|`string`|`false`
11111118
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
11121119
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
1120+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
11131121
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
11141122
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
11151123
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`
@@ -1213,6 +1221,7 @@ title: Configuration Reference
12131221
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
12141222
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
12151223
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
1224+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
12161225
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
12171226
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
12181227
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`
@@ -1273,6 +1282,7 @@ title: Configuration Reference
12731282
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
12741283
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
12751284
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
1285+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
12761286
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
12771287
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
12781288
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`
@@ -1341,6 +1351,7 @@ title: Configuration Reference
13411351
|idleTimeout|The max duration to hold a HTTP keepalive connection between calls|[`time.Duration`](https://pkg.go.dev/time#Duration)|`475ms`
13421352
|maxConnsPerHost|The max number of connections, per unique hostname. Zero means no limit|`int`|`0`
13431353
|maxIdleConns|The max number of idle connections to hold pooled|`int`|`100`
1354+
|maxIdleConnsPerHost|The max number of idle connections, per unique hostname. Zero means net/http uses the default of only 2.|`int`|`100`
13441355
|passthroughHeadersEnabled|Enable passing through the set of allowed HTTP request headers|`boolean`|`false`
13451356
|requestTimeout|The maximum amount of time that a request is allowed to remain open|[`time.Duration`](https://pkg.go.dev/time#Duration)|`30s`
13461357
|tlsHandshakeTimeout|The maximum amount of time to wait for a successful TLS handshake|[`time.Duration`](https://pkg.go.dev/time#Duration)|`10s`

doc-site/docs/tutorials/chains/avalanche.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Aavalanche
2+
title: Avalanche
33
---
44

55
Starting with FireFly v1.1, it's easy to connect to public Ethereum chains. This guide will walk you through the steps to create a local FireFly development environment and connect it to the Avalanche C-Chain Fuji testnet.

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ require (
1717
github.com/golang-migrate/migrate/v4 v4.17.0
1818
github.com/gorilla/mux v1.8.1
1919
github.com/gorilla/websocket v1.5.1
20-
github.com/hyperledger/firefly-common v1.4.12
21-
github.com/hyperledger/firefly-signer v1.1.17
20+
github.com/hyperledger/firefly-common v1.4.14
21+
github.com/hyperledger/firefly-signer v1.1.19
2222
github.com/jarcoal/httpmock v1.2.0
2323
github.com/lib/pq v1.10.9
2424
github.com/mattn/go-sqlite3 v1.14.19
@@ -30,8 +30,8 @@ require (
3030
github.com/spf13/viper v1.18.2
3131
github.com/stretchr/testify v1.8.4
3232
gitlab.com/hfuss/mux-prometheus v0.0.5
33-
golang.org/x/net v0.20.0
34-
golang.org/x/text v0.14.0
33+
golang.org/x/net v0.33.0
34+
golang.org/x/text v0.21.0
3535
gopkg.in/yaml.v2 v2.4.0
3636
)
3737

@@ -85,10 +85,10 @@ require (
8585
github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect
8686
go.uber.org/atomic v1.11.0 // indirect
8787
go.uber.org/multierr v1.11.0 // indirect
88-
golang.org/x/crypto v0.18.0 // indirect
88+
golang.org/x/crypto v0.31.0 // indirect
8989
golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e // indirect
90-
golang.org/x/sys v0.16.0 // indirect
91-
golang.org/x/term v0.16.0 // indirect
90+
golang.org/x/sys v0.28.0 // indirect
91+
golang.org/x/term v0.27.0 // indirect
9292
golang.org/x/time v0.5.0 // indirect
9393
google.golang.org/protobuf v1.32.0 // indirect
9494
gopkg.in/ini.v1 v1.67.0 // indirect

0 commit comments

Comments
 (0)