Skip to content

Commit abddc2c

Browse files
committed
Base 2 commit
1 parent 1bfb6ed commit abddc2c

File tree

339 files changed

+18638
-11419
lines changed

Some content is hidden

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

339 files changed

+18638
-11419
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
watch_file shell.nix
12
use flake

.github/actions/build-test-image/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ runs:
2626
uses: ./.github/actions/install-cairo
2727
- name: Check if image exists
2828
id: check-image
29-
uses: goplugin/plugin-github-actions/docker/image-exists@8489879838862929f43f7d7cd1b33903965cf507 # v2.1.6
29+
uses: goplugin/plugin-github-actions/docker/image-exists@fc3e0df622521019f50d772726d6bf8dc919dd38 # v2.3.19
3030
with:
3131
repository: plugin-starknet-tests
3232
tag: ${{ inputs.tag }}
3333
AWS_REGION: ${{ inputs.QA_AWS_REGION }}
3434
AWS_ROLE_TO_ASSUME: ${{ inputs.QA_AWS_ROLE_TO_ASSUME }}
3535
- name: Build and Publish Test Runner
3636
if: steps.check-image.outputs.exists == 'false'
37-
uses: goplugin/plugin-github-actions/docker/build-push@8489879838862929f43f7d7cd1b33903965cf507 # v2.1.6
37+
uses: goplugin/plugin-github-actions/docker/build-push@fc3e0df622521019f50d772726d6bf8dc919dd38 # v2.3.19
3838
with:
3939
tags: |
4040
${{ inputs.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ inputs.QA_AWS_REGION }}.amazonaws.com/plugin-starknet-tests:${{ inputs.tag }}

.github/actions/install-cairo/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ description: A composite action that installs cairo and scarb binaries
44
inputs:
55
cairo_version:
66
description: Cairo release version
7-
default: "v2.2.0"
7+
default: "v2.6.4"
88
required: false
99
scarb_version:
1010
description: Scarb release version
11-
default: "v0.7.0"
11+
default: "v2.6.5"
1212
required: false
1313

1414
runs:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Install Starknet Foundry (snforge and sncast)
2+
description: A composite action that installs the snforge and sncast binaries
3+
4+
inputs:
5+
starknet_foundry_version:
6+
description: Starknet Foundry release version
7+
default: "0.27.0"
8+
required: false
9+
10+
runs:
11+
using: composite
12+
steps:
13+
- name: Setup Starknet Foundry for Linux
14+
id: install-starknet-foundry
15+
shell: bash
16+
run: |
17+
curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
18+
snfoundryup -v ${{ inputs.starknet_foundry_version }}

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"

.github/workflows/amarna.yml

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

.github/workflows/changesets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
steps:
1313
# Checkout this repository
1414
- name: Checkout Repo
15-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1616
with:
1717
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1818
fetch-depth: 0
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
# Install nix
2121
- name: Install Nix
22-
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
22+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
2323
with:
2424
nix_path: nixpkgs=channel:nixos-unstable
2525
# Install dependencies using yarn
2626
- name: Install Dependencies
2727
run: nix develop -c yarn install --frozen-lockfile
2828
# Create PR that will update versions or trigger publish
2929
- name: Create Release Pull Request
30-
uses: changesets/action@2a025e8ab1cfa4312c2868cb6aa3cd3b473b84bf # v1.3.0
30+
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
3131
id: changesets
3232
with:
3333
publish: nix develop -c yarn release

.github/workflows/contracts.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout sources
16-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
16+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1717

1818
- name: Install Nix
19-
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
19+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
2020
with:
2121
nix_path: nixpkgs=channel:nixos-unstable
2222

2323
- name: Install Cairo
2424
uses: ./.github/actions/install-cairo
2525

26-
- name: Install starknet-devnet (via venv+pip)
27-
run: nix develop -c pip install -r contracts/requirements.txt -c contracts/constraints.txt
28-
2926
- name: Test
3027
run: nix develop -c make test-ts-contracts
3128

@@ -34,15 +31,18 @@ jobs:
3431
runs-on: ubuntu-latest
3532
steps:
3633
- name: Checkout sources
37-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
34+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3835

3936
- name: Install Nix
40-
uses: cachix/install-nix-action@5c11eae19dba042788936d4f1c9685fdd814ac49 # v19
37+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
4138
with:
4239
nix_path: nixpkgs=channel:nixos-unstable
4340

4441
- name: Install Cairo
4542
uses: ./.github/actions/install-cairo
4643

44+
- name: Install Starknet Foundry
45+
uses: ./.github/actions/install-starknet-foundry
46+
4747
- name: Test
4848
run: nix develop -c make test-cairo-contracts

.github/workflows/examples.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Example Contracts
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
run_examples_tests:
12+
name: Run Tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
17+
18+
- name: Install Nix
19+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
20+
with:
21+
nix_path: nixpkgs=channel:nixos-unstable
22+
23+
- name: Install Cairo
24+
uses: ./.github/actions/install-cairo
25+
26+
- name: Install Starknet Foundry
27+
uses: ./.github/actions/install-starknet-foundry
28+
29+
- name: Test
30+
run: nix develop -c make test-examples

.github/workflows/golangci-lint.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout sources
12-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
12+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1313
- name: Install Nix
14-
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
14+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
1515
with:
1616
nix_path: nixpkgs=channel:nixos-unstable
1717
- name: Parse version
@@ -31,9 +31,9 @@ jobs:
3131
needs: [golangci-lint-version]
3232
steps:
3333
- name: Checkout sources
34-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
34+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3535
- name: Install Nix
36-
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
36+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
3737
with:
3838
nix_path: nixpkgs=channel:nixos-unstable
3939
- name: Lint relayer
@@ -43,7 +43,7 @@ jobs:
4343
run: cat ./relayer/golangci-lint-relayer-report.xml
4444
- name: Store Golangci lint relayer report artifact
4545
if: always()
46-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
46+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
4747
with:
4848
name: golangci-lint-relayer-report
4949
path: ./relayer/golangci-lint-relayer-report.xml
@@ -54,9 +54,9 @@ jobs:
5454
needs: [golangci-lint-version]
5555
steps:
5656
- name: Checkout sources
57-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
57+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5858
- name: Install Nix
59-
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
59+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
6060
with:
6161
nix_path: nixpkgs=channel:nixos-unstable
6262
- name: Lint ops
@@ -66,7 +66,7 @@ jobs:
6666
run: cat ./ops/golangci-lint-ops-report.xml
6767
- name: Store Golangci lint ops report artifact
6868
if: always()
69-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
69+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
7070
with:
7171
name: golangci-lint-ops-report
7272
path: ./ops/golangci-lint-ops-report.xml
@@ -77,9 +77,9 @@ jobs:
7777
needs: [golangci-lint-version]
7878
steps:
7979
- name: Checkout sources
80-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
80+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8181
- name: Install Nix
82-
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
82+
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
8383
with:
8484
nix_path: nixpkgs=channel:nixos-unstable
8585
- name: Lint integration-tests
@@ -89,7 +89,7 @@ jobs:
8989
run: cat ./integration-tests/golangci-lint-integration-tests-report.xml
9090
- name: Store Golangci lint integration tests report artifact
9191
if: always()
92-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
92+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
9393
with:
9494
name: golangci-lint-integration-tests-report
9595
path: ./integration-tests/golangci-lint-integration-tests-report.xml

0 commit comments

Comments
 (0)