Skip to content

Commit

Permalink
pass linter
Browse files Browse the repository at this point in the history
  • Loading branch information
miladz68 committed Oct 13, 2023
1 parent 122ad5e commit fd25664
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2097,8 +2097,8 @@ Msg defines the Msg service.
| `Unfreeze` | [MsgUnfreeze](#coreum.asset.nft.v1.MsgUnfreeze) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | Unfreeze removes the freeze effect already put on an NFT | |
| `AddToWhitelist` | [MsgAddToWhitelist](#coreum.asset.nft.v1.MsgAddToWhitelist) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | AddToWhitelist sets the account as whitelisted to hold the NFT | |
| `RemoveFromWhitelist` | [MsgRemoveFromWhitelist](#coreum.asset.nft.v1.MsgRemoveFromWhitelist) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | RemoveFromWhitelist removes an account from whitelisted list of the NFT | |
| `AddToClassWhitelist` | [MsgAddToClassWhitelist](#coreum.asset.nft.v1.MsgAddToClassWhitelist) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | AddToClassWhitelist adds account as whitelist for all the NFTs in the class | |
| `RemoveFromClassWhitelist` | [MsgRemoveFromClassWhitelist](#coreum.asset.nft.v1.MsgRemoveFromClassWhitelist) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | RemoveFromClassWhitelist removes account as whitelist for the entire class NOTE: if specific whitelist is granted for an NFT, that whitelist will still be valid. | |
| `AddToClassWhitelist` | [MsgAddToClassWhitelist](#coreum.asset.nft.v1.MsgAddToClassWhitelist) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | AddToClassWhitelist adds account as whitelist for all the NFTs in the class NOTE: class whitelist does not affect the individual nft whitelisting. | |
| `RemoveFromClassWhitelist` | [MsgRemoveFromClassWhitelist](#coreum.asset.nft.v1.MsgRemoveFromClassWhitelist) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | RemoveFromClassWhitelist removes account as whitelist for the entire class NOTE: class whitelist does not affect the individual nft whitelisting. ie. if specific whitelist is granted for an NFT, that whitelist will still be valid, ater we add and remove it from the class whitelist. | |
| `UpdateParams` | [MsgUpdateParams](#coreum.asset.nft.v1.MsgUpdateParams) | [EmptyResponse](#coreum.asset.nft.v1.EmptyResponse) | UpdateParams is a governance operation that sets the parameters of the module. NOTE: all parameters must be provided. | |

<!-- end services -->
Expand Down
1 change: 1 addition & 0 deletions x/asset/nft/client/cli/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func mint(
requireT.NoError(err)
}

//nolint:unparam // we don't want to use constants for helpers
func issueClass(
requireT *require.Assertions,
ctx client.Context,
Expand Down
2 changes: 1 addition & 1 deletion x/asset/nft/client/cli/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func TestCmdClassWhitelist(t *testing.T) {
types.ClassFeature_whitelisting,
)
// mint nft
nftID := "nft-1"
nftID := "nft"
mint(
requireT,
ctx,
Expand Down
12 changes: 10 additions & 2 deletions x/asset/nft/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/deterministicgas/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func TestDeterministicGas_DeterministicMessages(t *testing.T) {
// we assert length to be equal to exact number, so each change requires
// explicit adjustment of tests.
assert.Equal(t, 60, len(nondeterministicMsgs))
assert.Equal(t, 46, len(deterministicMsgs))
assert.Equal(t, 48, len(deterministicMsgs))

for _, sdkMsg := range deterministicMsgs {
sdkMsg := sdkMsg
Expand Down
2 changes: 2 additions & 0 deletions x/deterministicgas/spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ TotalGas = 65000 + 2 * 70000 + 2 * 1000 + max(0, 2050-2048) * 10
| `/coreum.asset.ft.v1.MsgSetWhitelistedLimit` | 9000 |
| `/coreum.asset.ft.v1.MsgUnfreeze` | 8500 |
| `/coreum.asset.ft.v1.MsgUpgradeTokenV1` | 25000 |
| `/coreum.asset.nft.v1.MsgAddToClassWhitelist` | 7000 |
| `/coreum.asset.nft.v1.MsgAddToWhitelist` | 7000 |
| `/coreum.asset.nft.v1.MsgBurn` | 26000 |
| `/coreum.asset.nft.v1.MsgFreeze` | 8000 |
| `/coreum.asset.nft.v1.MsgIssueClass` | 16000 |
| `/coreum.asset.nft.v1.MsgMint` | 39000 |
| `/coreum.asset.nft.v1.MsgRemoveFromClassWhitelist` | 3500 |
| `/coreum.asset.nft.v1.MsgRemoveFromWhitelist` | 3500 |
| `/coreum.asset.nft.v1.MsgUnfreeze` | 5000 |
| `/coreum.nft.v1beta1.MsgSend` | 25000 |
Expand Down

0 comments on commit fd25664

Please sign in to comment.