Skip to content

Commit c7df07b

Browse files
Merge branch 'develop'
2 parents 8a02610 + ebcf9c6 commit c7df07b

Some content is hidden

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

63 files changed

+587
-12469
lines changed

.github/workflows/macOS-tests.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "macOS 12"
1+
name: "macOS 13"
22

33
on:
44
push:
@@ -23,38 +23,38 @@ on:
2323
- develop-4.0
2424

2525
env:
26-
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
26+
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
2727

2828
jobs:
2929
spm:
30-
name: Swift Package Manager 5.7
31-
runs-on: macOS-12
30+
name: Swift Package Manager 5.9
31+
runs-on: macos-13
3232
concurrency:
3333
group: spm-${{ github.run_id }}
3434
cancel-in-progress: false
3535
steps:
3636
- uses: actions/checkout@v3
3737
- name: Discover typos
3838
run: |
39-
pip3 install --upgrade pip
40-
pip3 install codespell
39+
pipx install codespell
4140
codespell # See .codespellrc for args
4241
- name: SwiftLint
4342
run: |
4443
# 1. Make all automated fixes that are possible
4544
# 2. git diff to see what (if any) automated fixes were made
4645
# 3. See https://github.com/realm/SwiftLint#xcode explains why the double run
4746
swiftlint --fix --quiet && git diff && swiftlint --quiet
47+
- name: Install Foundry (includes anvil EVM)
48+
run: |
49+
curl -L https://foundry.paradigm.xyz | bash
50+
source ~/.bashrc
51+
foundryup
52+
- name: Start anvil in background
53+
run: ~/.foundry/bin/anvil -q &
4854
- name: Resolve dependencies
4955
run: swift package resolve
5056
- name: Build
5157
run: swift build --build-tests
52-
- name: Install ganache
53-
run: npm install ganache --global
54-
- name: Start ganache in background
55-
run: ganache &
56-
- name: Wait till ganache starts
57-
run: sleep 1
5858
- name: Run local tests
5959
run: swift test --skip-build -c debug --filter localTests
6060
- name: Run remote tests

.swiftformat

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# rules
2+
--enable isEmpty
3+
--enable redundantFileprivate
4+
--enable redundantReturn
5+
--enable redundantBackticks
6+
--enable redundantBreak
7+
--enable redundantClosure
8+
--enable redundantExtensionACL
9+
--enable organizeDeclarations
10+
--enable redundantFileprivate
11+
--enable redundantGet
12+
--enable redundantInit
13+
--enable redundantInternal
14+
--enable redundantLet
15+
--enable redundantLetError
16+
--enable redundantNilInit
17+
--enable redundantObjc
18+
--enable redundantOptionalBinding
19+
--enable redundantParens
20+
--enable redundantPattern
21+
--enable redundantStaticSelf
22+
--enable redundantVoidReturnType
23+
--disable redundantRawValues
24+
--disable sortImports
25+
--disable andOperator
26+
--disable wrapMultilineStatementBraces
27+
--disable extensionAccessControl
28+
29+
# format options
30+
--indentcase true
31+
--trimwhitespace nonblank-lines
32+
--maxwidth 130
33+
--commas inline
34+
--comments indent
35+
--decimalgrouping 3,5
36+
--exponentcase lowercase
37+
--exponentgrouping disabled
38+
--extensionacl on-declarations
39+
--fractiongrouping disabled
40+
--ifdef no-indent
41+
--importgrouping testable-top
42+
--operatorfunc no-space
43+
--nospaceoperators ..<, ...
44+
--selfrequired validate
45+
--stripunusedargs closure-only
46+
--wraparguments preserve
47+
--wrapcollections preserve
48+
--wrapparameters preserve
49+
50+
# organizeDeclarations
51+
--markcategories false

Package.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ let package = Package(
1212
.library(name: "web3swift", targets: ["web3swift"])
1313
],
1414
dependencies: [
15-
.package(url: "https://github.com/attaswift/BigInt.git", .upToNextMinor(from: "5.3.0")),
16-
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMinor(from: "1.5.1"))
15+
.package(url: "https://github.com/attaswift/BigInt.git", .upToNextMinor(from: "5.4.0")),
16+
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.5.1"),
17+
.package(name: "secp256k1", url: "https://github.com/GigaBitcoin/secp256k1.swift", .upToNextMinor(from: "0.10.0")),
1718
],
1819
targets: [
19-
.target(name: "secp256k1"),
2020
.target(
2121
name: "Web3Core",
2222
dependencies: ["BigInt", "secp256k1", "CryptoSwift"]

Sources/secp256k1/basic-config.h

-33
This file was deleted.

Sources/secp256k1/ecdh_impl.h

-54
This file was deleted.

Sources/secp256k1/ecdsa.h

-21
This file was deleted.

0 commit comments

Comments
 (0)