feat(erc20): add Pausable and Capped extensions for ERC-20 token #143
Annotations
12 warnings
[clippy] contracts/src/erc20/mod.rs#L104:
contracts/src/erc20/mod.rs#L104
warning: field marked as public but also inferred as unused because it's prefixed with `_`
--> contracts/src/erc20/mod.rs:104:1
|
104 | / sol_storage! {
105 | | /// State of an ERC20 token.
106 | | pub struct ERC20 {
107 | | /// Maps users to balances.
... |
113 | | }
114 | | }
| |_^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro `sol_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/pausable.rs#L18:
contracts/src/utils/pausable.rs#L18
warning: field marked as public but also inferred as unused because it's prefixed with `_`
--> contracts/src/utils/pausable.rs:18:1
|
18 | / sol_storage! {
19 | | /// State of a Pausable Contract.
20 | | pub struct Pausable {
21 | | /// Indicates whether the contract is `Paused`.
22 | | bool _paused;
23 | | }
24 | | }
| |_^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro `sol_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/capped.rs#L15:
contracts/src/utils/capped.rs#L15
warning: field marked as public but also inferred as unused because it's prefixed with `_`
--> contracts/src/utils/capped.rs:15:1
|
15 | / sol_storage! {
16 | | /// State of a Capped Contract.
17 | | pub struct Capped {
18 | | /// A cap to the supply of tokens.
19 | | uint256 _cap;
20 | | }
21 | | }
| |_^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro `sol_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/pausable.rs#L26:
contracts/src/utils/pausable.rs#L26
warning: missing documentation for a struct field
--> contracts/src/utils/pausable.rs:26:1
|
26 | / sol! {
27 | | /// Emitted when the `Pause` is triggered by an `account`.
28 | | event Paused(address indexed account);
29 | | /// Emitted when the `Unpause` is lifted by an `account`.
30 | | event Unpaused(address indexed account);
31 | | }
| |_^
|
= note: this warning originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/capped.rs#L23:
contracts/src/utils/capped.rs#L23
warning: missing documentation for a struct field
--> contracts/src/utils/capped.rs:23:1
|
23 | / sol! {
24 | | /// Emitted when `_cap` is set to `cap` value
25 | | /// by an `account`.
26 | | event Cap(address indexed account, uint256 cap);
27 | | }
| |_^
|
= note: this warning originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/capped.rs#L29:
contracts/src/utils/capped.rs#L29
warning: missing documentation for a struct field
--> contracts/src/utils/capped.rs:29:1
|
29 | / sol! {
30 | | /// Indicates an error related to the operation that failed
31 | | /// because `total_supply` exceeded the `_cap`.
32 | | #[derive(Debug)]
... |
37 | | error InvalidCap(uint256 cap);
38 | | }
| |_^
|
= note: this warning originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/erc20/mod.rs#L104:
contracts/src/erc20/mod.rs#L104
warning: field marked as public but also inferred as unused because it's prefixed with `_`
--> contracts/src/erc20/mod.rs:104:1
|
104 | / sol_storage! {
105 | | /// State of an ERC20 token.
106 | | pub struct ERC20 {
107 | | /// Maps users to balances.
... |
113 | | }
114 | | }
| |_^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro `sol_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/pausable.rs#L18:
contracts/src/utils/pausable.rs#L18
warning: field marked as public but also inferred as unused because it's prefixed with `_`
--> contracts/src/utils/pausable.rs:18:1
|
18 | / sol_storage! {
19 | | /// State of a Pausable Contract.
20 | | pub struct Pausable {
21 | | /// Indicates whether the contract is `Paused`.
22 | | bool _paused;
23 | | }
24 | | }
| |_^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro `sol_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/capped.rs#L15:
contracts/src/utils/capped.rs#L15
warning: field marked as public but also inferred as unused because it's prefixed with `_`
--> contracts/src/utils/capped.rs:15:1
|
15 | / sol_storage! {
16 | | /// State of a Capped Contract.
17 | | pub struct Capped {
18 | | /// A cap to the supply of tokens.
19 | | uint256 _cap;
20 | | }
21 | | }
| |_^
|
= help: consider removing the underscore, or making the field private
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#pub_underscore_fields
= note: this warning originates in the macro `sol_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/pausable.rs#L26:
contracts/src/utils/pausable.rs#L26
warning: missing documentation for a struct field
--> contracts/src/utils/pausable.rs:26:1
|
26 | / sol! {
27 | | /// Emitted when the `Pause` is triggered by an `account`.
28 | | event Paused(address indexed account);
29 | | /// Emitted when the `Unpause` is lifted by an `account`.
30 | | event Unpaused(address indexed account);
31 | | }
| |_^
|
= note: this warning originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/capped.rs#L23:
contracts/src/utils/capped.rs#L23
warning: missing documentation for a struct field
--> contracts/src/utils/capped.rs:23:1
|
23 | / sol! {
24 | | /// Emitted when `_cap` is set to `cap` value
25 | | /// by an `account`.
26 | | event Cap(address indexed account, uint256 cap);
27 | | }
| |_^
|
= note: this warning originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] contracts/src/utils/capped.rs#L29:
contracts/src/utils/capped.rs#L29
warning: missing documentation for a struct field
--> contracts/src/utils/capped.rs:29:1
|
29 | / sol! {
30 | | /// Indicates an error related to the operation that failed
31 | | /// because `total_supply` exceeded the `_cap`.
32 | | #[derive(Debug)]
... |
37 | | error InvalidCap(uint256 cap);
38 | | }
| |_^
|
= note: this warning originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
|