* fmt: all

* fmt: eol
This commit is contained in:
DaniPopes 2022-09-28 20:58:26 +02:00 committed by GitHub
parent 3ee1b6796e
commit 5c762c44d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 981 additions and 1005 deletions

View File

@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: bug
assignees: ''
assignees: ""
---
**Version**

View File

@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: ""
labels: feature-request
assignees: ''
assignees: ""
---
**Is your feature request related to a problem? Please describe.**

View File

@ -1,10 +1,9 @@
---
name: Question
about: Please use the Telegram group for questions
title: ''
labels: ''
assignees: ''
title: ""
labels: ""
assignees: ""
---
Please post your question as a discussion in Telegram: https://t.me/ethers_rs

View File

@ -2,8 +2,8 @@ name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- "**/Cargo.toml"
- "**/Cargo.lock"
jobs:
security_audit:
runs-on: ubuntu-latest

View File

@ -154,7 +154,9 @@ jobs:
args: --target wasm32-unknown-unknown
- name: Launch Anvil
run: anvil --block-time 2 -m "stuff inherit faith park genre spread huge knee ecology private marble supreme" &
run:
anvil --block-time 2 -m "stuff inherit faith park genre spread huge knee ecology
private marble supreme" &
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@ -248,7 +250,8 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [
target:
[
i686-pc-windows-gnu,
i686-pc-windows-msvc,
x86_64-pc-windows-gnu,

View File

@ -11,24 +11,22 @@ const previousVersion = (currentVersion, releaseType) => {
return `v${parsedVersion.major}.${parsedVersion.minor - 1}.0`;
}
case "patch": {
return `v${parsedVersion.major}.${parsedVersion.minor}.${
parsedVersion.patch - 1
}`;
return `v${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch - 1}`;
}
case "alpha": {
return `v${parsedVersion.major}.${parsedVersion.minor}.${
parsedVersion.patch
}-alpha.${parsedVersion.prerelease[1] - 1}`;
return `v${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}-alpha.${
parsedVersion.prerelease[1] - 1
}`;
}
case "beta": {
return `v${parsedVersion.major}.${parsedVersion.minor}.${
parsedVersion.patch
}-beta.${parsedVersion.prerelease[1] - 1}`;
return `v${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}-beta.${
parsedVersion.prerelease[1] - 1
}`;
}
case "rc": {
return `v${parsedVersion.major}.${parsedVersion.minor}.${
parsedVersion.patch
}-rc.${parsedVersion.prerelease[1] - 1}`;
return `v${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}-rc.${
parsedVersion.prerelease[1] - 1
}`;
}
}
};

View File

@ -167,7 +167,7 @@ directly referencing the crate.
The type level example for `ethers_providers::Provider` provides a good example of a
documentation test:
```rust
````rust
/// ```no_run
/// use ethers::providers::{JsonRpcClient, Provider, Http};
/// use std::convert::TryFrom;
@ -182,9 +182,9 @@ documentation test:
/// # Ok(())
/// # }
/// ```
```
````
Given that this is a *type* level documentation test and the primary way users
Given that this is a _type_ level documentation test and the primary way users
of `ethers-rs` will create an instance of `Provider` is by using
`Provider::<T>::try_from`, this is how the documentation test is structured.
@ -210,18 +210,18 @@ A good commit message should describe what changed and why.
1. The first line should:
* contain a short description of the change (preferably 50 characters or less,
- contain a short description of the change (preferably 50 characters or less,
and no more than 72 characters)
* be entirely in lowercase with the exception of proper nouns, acronyms, and
- be entirely in lowercase with the exception of proper nouns, acronyms, and
the words that refer to code, like function/variable names
* be prefixed with the name of the sub crate being changed (without the `ethers-`
- be prefixed with the name of the sub crate being changed (without the `ethers-`
prefix) and start with an imperative verb. If modifying `ethers` proper,
omit the crate prefix.
Examples:
* providers: introduce ENS querying for names and addresses
* re-export the abi, types and utils modules from `ethers_core`
- providers: introduce ENS querying for names and addresses
- re-export the abi, types and utils modules from `ethers_core`
2. Keep the second line blank.
3. Wrap all other lines at 72 columns (except for long URLs).
@ -326,7 +326,7 @@ Note that only **incremental** improvement is needed to land a PR. This means
that the PR does not need to be perfect, only better than the status quo. Follow
up PRs may be opened to continue iterating.
When changes are necessary, *request* them, do not *demand* them, and **do not
When changes are necessary, _request_ them, do not _demand_ them, and **do not
assume that the submitter already knows how to add a test or run a benchmark**.
Specific performance optimization techniques, coding styles and conventions
@ -346,7 +346,7 @@ with the appropriate reason to keep the conversation flow concise and relevant.
### Be aware of the person behind the code
Be aware that *how* you communicate requests and reviews in your feedback can
Be aware that _how_ you communicate requests and reviews in your feedback can
have a significant impact on the success of the Pull Request. Yes, we may land
a particular change that makes ethers-rs better, but the individual might just not
want to have anything to do with ethers-rs ever again. The goal is not just having

View File

@ -21,7 +21,7 @@ members = [
"ethers-middleware",
"ethers-etherscan",
"ethers-solc",
"examples/ethers-wasm"
"examples/ethers-wasm",
]
default-members = [
@ -32,7 +32,7 @@ default-members = [
"ethers-core",
"ethers-middleware",
"ethers-etherscan",
"ethers-solc"
"ethers-solc",
]
[package.metadata.docs.rs]
@ -51,7 +51,7 @@ celo = [
"ethers-signers/celo",
"ethers-contract/celo",
"ethers-middleware/celo",
"legacy"
"legacy",
]
legacy = ["ethers-core/legacy", "ethers-contract/legacy"]
@ -66,13 +66,13 @@ rustls = [
"ethers-providers/rustls",
"ethers-etherscan/rustls",
"ethers-contract/rustls",
"ethers-solc/rustls"
"ethers-solc/rustls",
]
openssl = [
"ethers-providers/openssl",
"ethers-etherscan/openssl",
"ethers-contract/openssl",
"ethers-solc/openssl"
"ethers-solc/openssl",
]
dev-rpc = ["ethers-providers/dev-rpc"]
## signers
@ -101,16 +101,16 @@ ethers-etherscan = { version = "^0.17.0", default-features = false, path = "./et
[dev-dependencies]
ethers-contract = { version = "^0.17.0", default-features = false, path = "./ethers-contract", features = [
"abigen",
"eip712"
"eip712",
] }
ethers-providers = { version = "^0.17.0", default-features = false, path = "./ethers-providers", features = [
"ws"
"ws",
] }
[target.'cfg(target_family = "unix")'.dev-dependencies]
ethers-providers = { version = "^0.17.0", default-features = false, path = "./ethers-providers", features = [
"ws",
"ipc"
"ipc",
] }
eyre = "0.6"
rand = "0.8.5"

View File

@ -1,5 +1,3 @@
Copyright (c) 2020 Georgios Konstantopoulos
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@ -176,28 +174,3 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,25 +1,19 @@
Copyright (c) 2020 Georgios Konstantopoulos
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE O THE USE OR OTHER
DEALINGS IN THE SOFTWARE.R
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -126,6 +126,7 @@ If you are looking to connect to a HTTPS endpoint, then you need to enable the `
feature-flags.
To enable `rustls`:
```toml
[dependencies]
@ -133,6 +134,7 @@ ethers = { git = "https://github.com/gakonst/ethers-rs", features = ["rustls"] }
```
To enable `openssl`:
```toml
[dependencies]

View File

@ -27,13 +27,13 @@ hex = { version = "0.4.3", default-features = false, features = ["std"] }
[dev-dependencies]
ethers-providers = { version = "^0.17.0", path = "../ethers-providers", default-features = false, features = [
"ws"
"ws",
] }
ethers-signers = { version = "^0.17.0", path = "../ethers-signers" }
ethers-contract-abigen = { version = "^0.17.0", path = "ethers-contract-abigen" }
ethers-contract-derive = { version = "^0.17.0", path = "ethers-contract-derive" }
ethers-core = { version = "^0.17.0", path = "../ethers-core", default-features = false, features = [
"eip712"
"eip712",
] }
ethers-derive-eip712 = { version = "^0.17.0", path = "../ethers-core/ethers-derive-eip712" }
ethers-solc = { version = "^0.17.0", path = "../ethers-solc", default-features = false }

View File

@ -1,7 +1,10 @@
[package]
name = "ethers-contract-abigen"
version = "0.17.0"
authors = ["Nicholas Rodrigues Lordello <nlordell@gmail.com>", "Georgios Konstantopoulos <me@gakonst.com>"]
authors = [
"Nicholas Rodrigues Lordello <nlordell@gmail.com>",
"Georgios Konstantopoulos <me@gakonst.com>",
]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Code generation for type-safe bindings to Ethereum smart contracts"
@ -42,4 +45,7 @@ rustls = ["reqwest/rustls-tls"]
[dev-dependencies]
tempfile = "3.2.0"
ethers-solc = { version = "^0.17.0", path = "../../ethers-solc", default-features = false, features = ["project-util", "svm-solc"] }
ethers-solc = { version = "^0.17.0", path = "../../ethers-solc", default-features = false, features = [
"project-util",
"svm-solc",
] }

View File

@ -1,7 +1,10 @@
[package]
name = "ethers-contract-derive"
version = "0.17.0"
authors = ["Nicholas Rodrigues Lordello <nlordell@gmail.com>", "Georgios Konstantopoulos <me@gakonst.com>"]
authors = [
"Nicholas Rodrigues Lordello <nlordell@gmail.com>",
"Georgios Konstantopoulos <me@gakonst.com>",
]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Proc macro for type-safe bindings generation to Ethereum and Celo smart contracts"

View File

@ -1,7 +1,7 @@
# Ethereum types, cryptography and utilities.
It is recommended to use the `utils`, `types` and `abi` re-exports instead of
the `core` module to simplify your imports.\_
the `core` module to simplify your imports.
This library provides type definitions for Ethereum's main datatypes along with
other utilities for interacting with the Ethereum ecosystem
@ -37,7 +37,7 @@ The crate provides utilities for launching local Ethereum testnets by using
# Features
- - ["eip712"] | Provides Eip712 trait for EIP-712 encoding of typed data for
- ["eip712"] | Provides Eip712 trait for EIP-712 encoding of typed data for
derived structs
# ABI Encoding and Decoding

View File

@ -4,7 +4,7 @@ version = "0.17.0"
rust-version = "1.62"
authors = [
"Matthias Seitz <matthias.seitz@outlook.de>",
"Georgios Konstantopoulos <me@gakonst.com>"
"Georgios Konstantopoulos <me@gakonst.com>",
]
license = "MIT OR Apache-2.0"
edition = "2018"

View File

@ -45,7 +45,7 @@ hex = { version = "0.4.3", default-features = false, features = ["std"] }
rand = { version = "0.8.5", default-features = false }
ethers-providers = { version = "^0.17.0", path = "../ethers-providers", default-features = false, features = [
"ws",
"rustls"
"rustls",
] }
once_cell = "1.15.0"
ethers-solc = { version = "^0.17.0", path = "../ethers-solc" }

View File

@ -47,7 +47,7 @@ hashers = "1.0.1"
# tokio
tokio = { version = "1.18", features = ["time"] }
tokio-tungstenite = { version = "0.17.2", default-features = false, features = [
"connect"
"connect",
], optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]

View File

@ -30,7 +30,7 @@ futures-util = { version = "^0.3", optional = true }
futures-executor = { version = "^0.3", optional = true }
semver = { version = "1.0.14", optional = true }
trezor-client = { version = "0.0.6", optional = true, default-features = false, features = [
"f_ethereum"
"f_ethereum",
] }
# aws

View File

@ -5,7 +5,7 @@ edition = "2018"
rust-version = "1.62"
authors = [
"Matthias Seitz <matthias.seitz@outlook.de>",
"Georgios Konstantopoulos <me@gakonst.com>"
"Georgios Konstantopoulos <me@gakonst.com>",
]
license = "MIT OR Apache-2.0"
readme = "../README.md"
@ -46,7 +46,7 @@ cfg-if = "1.0.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
home = "0.5.3"
svm = { package = "svm-rs", version = "0.2.18", default-features = false, optional = true, features = [
"blocking"
"blocking",
] }
svm-builds = { package = "svm-rs-builds", version = "0.1.8", optional = true }