-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc25914
commit 333260c
Showing
27 changed files
with
215 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
SECRET_KEY="[ | ||
128, 166, 168, 193, 245, 44, 59, 104, 191, 31, | ||
234, 44, 94, 240, 73, 226, 167, 218, 120, 123, | ||
100, 217, 143, 131, 240, 117, 3, 133, 104, 97, | ||
221, 192, 63, 247, 49, 204, 178, 219, 103, 184, | ||
240, 179, 100, 205, 229, 87, 193, 135, 159, 117, | ||
114, 238, 250, 53, 147, 116, 130, 199, 143, 120, | ||
62, 15, 23, 15 | ||
]" | ||
MINT_ACCOUNT=[12,30,154,17,31,70,145,100,167,126,88,76,254,107,186,122,219,36,215,214,217,160,183,84,215,35,56,161,192,39,160,112,243,82,181,22,133,180,38,99,209,98,105,87,51,115,31,180,29,64,36,237,175,202,124,200,38,110,27,63,103,215,1,189] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
|
||
> [email protected] lint | ||
> pnpx @biomejs/biome lint ./ | ||
|
||
Progress: resolved 1, reused 0, downloaded 0, added 0 | ||
Packages: +2 | ||
++ | ||
Progress: resolved 9, reused 2, downloaded 0, added 2, done | ||
./basics/rent/native/tests/test.ts:16:17 lint/suspicious/noAssignInExpressions ━━━━━━━━━━━━━━━━━━━━━ | ||
|
||
! The assignment should not be in an expression. | ||
|
||
14 │ constructor(properties) { | ||
15 │ Object.keys(properties).map((key) => { | ||
> 16 │ return (this[key] = properties[key]); | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
17 │ }); | ||
18 │ } | ||
|
||
i The use of assignments in expressions is confusing. | ||
Expressions are often considered as side-effect free. | ||
|
||
|
||
./basics/program-derived-addresses/native/tests/test.ts:17:17 lint/suspicious/noAssignInExpressions ━━━━━━━━━━ | ||
|
||
! The assignment should not be in an expression. | ||
|
||
15 │ constructor(properties) { | ||
16 │ Object.keys(properties).map((key) => { | ||
> 17 │ return (this[key] = properties[key]); | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
18 │ }); | ||
19 │ } | ||
|
||
i The use of assignments in expressions is confusing. | ||
Expressions are often considered as side-effect free. | ||
|
||
|
||
./basics/repository-layout/native/tests/test.ts:16:17 lint/suspicious/noAssignInExpressions ━━━━━━━━━━ | ||
|
||
! The assignment should not be in an expression. | ||
|
||
14 │ constructor(properties) { | ||
15 │ Object.keys(properties).map((key) => { | ||
> 16 │ return (this[key] = properties[key]); | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
17 │ }); | ||
18 │ } | ||
|
||
i The use of assignments in expressions is confusing. | ||
Expressions are often considered as side-effect free. | ||
|
||
|
||
./basics/counter/native/ts/instructions/createIncrementInstruction.ts:7:40 lint/complexity/noBannedTypes ━━━━━━━━━━ | ||
|
||
! Don't use '{}' as a type. | ||
|
||
5 │ counter: PublicKey; | ||
6 │ }; | ||
> 7 │ export type IncrementInstructionArgs = {}; | ||
│ ^^ | ||
8 │ | ||
9 │ export function createIncrementInstruction(accounts: IncrementInstructionAccounts, args: IncrementInstructionArgs): TransactionInstruction { | ||
|
||
i Prefer explicitly define the object shape. '{}' means "any non-nullable value". | ||
|
||
|
||
./tokens/token-2022/nft-meta-data-pointer/anchor-example/app/utils/wrappedConnection.ts:128:9 lint/style/noParameterAssign ━━━━━━━━━━ | ||
|
||
! Reassigning a function parameter is confusing. | ||
|
||
126 │ console.log(`Requested page${page}`); | ||
127 │ | ||
> 128 │ page += 1; | ||
│ ^^^^ | ||
129 │ response = await axios.post(process.env.NEXT_PUBLIC_RPC ? process.env.NEXT_PUBLIC_RPC : METAPLEX_READAPI, { | ||
130 │ jsonrpc: '2.0', | ||
|
||
i The parameter is declared here: | ||
|
||
108 │ sortBy: any, | ||
109 │ limit: number, | ||
> 110 │ page: number, | ||
│ ^^^^^^^^^^^^ | ||
111 │ before: string, | ||
112 │ after: string, | ||
|
||
i Use a local variable instead. | ||
|
||
|
||
Checked 7251 files in 409ms. No fixes needed. | ||
Found 5 warnings. |
Oops, something went wrong.