Skip to content

Commit e535bc6

Browse files
authored
Merge pull request #1436 from iotaledger/feat/identity-rebased-alpha
Identity Rebased alpha
2 parents 81c6292 + fa6f0b0 commit e535bc6

File tree

574 files changed

+41548
-8614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

574 files changed

+41548
-8614
lines changed

.cargo/audit.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[advisories]
22
ignore = [
3+
"RUSTSEC-2024-0437", # protobuf uncontrolled recursion https://github.com/iotaledger/iota/issues/5861
34
"RUSTSEC-2021-0127", # serde_cbor is unmaintained https://github.com/iotaledger/identity.rs/issues/518
45
"RUSTSEC-2023-0052", # temporary ignore until fix is provided
56
"RUSTSEC-2023-0065", # temporary ignore until fix is provided
7+
"RUSTSEC-2023-0071", # temporary ignore until fix is provided
8+
"RUSTSEC-2024-0437", # temporary ignore until fix is provided
69
]

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
target/
2-
bindings/wasm/
2+
bindings/wasm/identity_wasm
33
bindings/grpc/target/
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: "iota-private-network setup"
2+
description: "Setup IOTA Sandbox"
3+
4+
inputs:
5+
platform:
6+
description: "Platform to download binary for (linux or macos)"
7+
required: true
8+
default: "linux"
9+
logfile:
10+
description: "Optional log file to store server log as workflow artifact"
11+
required: false
12+
default: ""
13+
iota-version:
14+
description: "IOTA version to pull from GitHub releases, recognizes well known networks (mainnet, testnet, devnet), defaults to 'testnet'"
15+
required: false
16+
default: ""
17+
18+
runs:
19+
using: composite
20+
steps:
21+
- name: Set up IOTA Node
22+
shell: bash
23+
run: |
24+
set -e
25+
mkdir -p iota
26+
cd iota
27+
28+
# Default
29+
VERSION="${{ inputs.iota-version }}"
30+
if [[ "$VERSION" = "" ]]; then
31+
VERSION="testnet"
32+
fi
33+
34+
if [ "$VERSION" = "mainnet" ]; then
35+
VERSION_SEARCH_STRING="[Mainnet]"
36+
elif [ "$VERSION" = "testnet" ]; then
37+
VERSION_SEARCH_STRING="[Testnet]"
38+
elif [ "$VERSION" = "devnet" ]; then
39+
VERSION_SEARCH_STRING="[Devnet]"
40+
else
41+
VERSION_SEARCH_STRING=$VERSION
42+
fi
43+
44+
echo "Looking for version: $VERSION_SEARCH_STRING"
45+
46+
PLATFORM="${{ inputs.platform }}"
47+
48+
if [ "$PLATFORM" = "linux" ]; then
49+
PLATFORM_TRIPLET="linux-x86_64"
50+
elif [ "$PLATFORM" = "macos" ]; then
51+
PLATFORM_TRIPLET="macos-arm64"
52+
brew install postgresql
53+
brew reinstall libpq
54+
else
55+
echo "not binaries for platform: $PLATFORM"
56+
exit 1
57+
fi
58+
59+
echo "Looking for platform: $PLATFORM_TRIPLET"
60+
61+
curl "https://api.github.com/repos/iotaledger/iota/releases" \
62+
--header 'authorization: Bearer ${{ github.token }}' > releases.json
63+
64+
{
65+
# Note: Releases might be visible before all binaries are available
66+
DOWNLOAD_URL=$(cat releases.json | jq -r 'map(select(.name | contains('\"$VERSION_SEARCH_STRING\"'))) | first | .assets | .[] | select(.browser_download_url | contains('\"$PLATFORM_TRIPLET\"')) | .browser_download_url')
67+
} || {
68+
# log releases in case of failure
69+
cat releases.json
70+
echo "could not parse release"
71+
exit 1
72+
}
73+
74+
# Download and extract
75+
echo "Downloading from: $DOWNLOAD_URL"
76+
curl -L -o iota.tar.gz $DOWNLOAD_URL
77+
tar -xzf iota.tar.gz
78+
79+
echo "$PWD" >> $GITHUB_PATH
80+
export PATH="$PWD:$PATH"
81+
82+
which iota || echo "iota not found in PATH"
83+
ls -la "$PWD"
84+
- name: Start the Network
85+
shell: bash
86+
working-directory: iota
87+
run: |
88+
# Clear previous configuration
89+
rm -rf ~/.iota || true
90+
91+
# Check log file arg
92+
LOGFILE="${{ inputs.logfile }}"
93+
echo "Starting server with log file: $LOGFILE"
94+
95+
# Start the network
96+
iota start --with-faucet ${{ inputs.logfile && format('> {0} 2>&1', inputs.logfile) || '' }} &

.github/actions/iota-sandbox/setup/action.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/actions/iota-sandbox/tear-down/action.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/actions/release/changelog-generator/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ runs:
3737
fi
3838
echo SINCE_ARG=$SINCE_ARG
3939
echo SINCE_ARG=$SINCE_ARG >> $GITHUB_ENV
40-
40+
4141
- name: Prepare Repository For Changelog Generator
4242
shell: bash
4343
run: |
4444
GITHUB_REPOSITORY_USER=$( echo $GITHUB_REPOSITORY | awk -F'/' '{print $1}')
45-
GITHUB_REPOSITORY_PROJECT=$( echo $GITHUB_REPOSITORY | awk -F'/' '{print $2}')
45+
GITHUB_REPOSITORY_PROJECT=$( echo $GITHUB_REPOSITORY | awk -F'/' '{print $2}')
4646
4747
echo GITHUB_REPOSITORY_USER=$GITHUB_REPOSITORY_USER
4848
echo GITHUB_REPOSITORY_PROJECT=$GITHUB_REPOSITORY_PROJECT

.github/actions/rust/sccache/setup-sccache/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ runs:
1515
brew update --auto-update
1616
brew install sccache
1717
18-
- name: Install sccache (ubuntu-latest)
19-
if: inputs.os == 'ubuntu-latest'
18+
- name: Install sccache (ubuntu)
19+
if: ${{ startsWith(inputs.os, 'ubuntu-') }}
2020
shell: bash
2121
run: |
2222
SCCACHE_DOWNLOAD_LINK=https://github.com/mozilla/sccache/releases/download
@@ -42,5 +42,6 @@ runs:
4242
- name: Start sccache
4343
shell: bash
4444
run: |
45+
echo "starting sccache on ${{ inputs.os }}"
4546
sccache --start-server
4647
sccache -s

.github/workflows/audit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
pull_request:
1515
branches:
1616
- main
17+
- 'feat/**'
18+
- 'support/**'
1719
paths:
1820
- "**/Cargo.lock"
1921
- "**/Cargo.toml"

.github/workflows/build-and-test-grpc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [ opened, synchronize, reopened, ready_for_review ]
99
branches:
1010
- main
11-
- 'epic/**'
11+
- 'feat/**'
1212
- 'support/**'
1313
paths:
1414
- '.github/workflows/build-and-test.yml'

0 commit comments

Comments
 (0)