-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove assemblyscript dep * update wallet-provider * cleanup formating config * format code * fix ci lint warning * prettier --------- Co-authored-by: BenRey <[email protected]>
- Loading branch information
Showing
113 changed files
with
4,883 additions
and
5,651 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
module.exports = { | ||
extends: ["@massalabs"], | ||
extends: ["@massalabs","prettier"], | ||
rules: { | ||
"tsdoc/syntax": "warn", | ||
"max-len": ["error", 200], | ||
camelcase: "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
'no-console': 'warn', | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"*.{js,ts,jsx,tsx,json,cjs}": ["npx eslint"], | ||
"*.ts": ["npx as-prettier --check"] | ||
"*.{js,ts,json,cjs,md}": [ | ||
"prettier --check", | ||
"eslint" | ||
] | ||
} |
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,9 @@ | ||
/** @type {import("prettier").Config} */ | ||
const config = { | ||
trailingComma: 'es5', | ||
tabWidth: 2, | ||
semi: false, | ||
singleQuote: true, | ||
} | ||
|
||
module.exports = config |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = { presets: ['@babel/preset-env'] }; | ||
module.exports = { presets: ['@babel/preset-env'] } |
24 changes: 11 additions & 13 deletions
24
packages/massa-web3/code-snippets/walletGenerateNewAccount.ts
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { WalletClient } from '@massalabs/massa-web3'; | ||
import { WalletClient } from '@massalabs/massa-web3' | ||
|
||
(async () => { | ||
const newAccount = await WalletClient.walletGenerateNewAccount(); | ||
const newAccount = await WalletClient.walletGenerateNewAccount() | ||
|
||
// print the account address, public and private keys | ||
console.log( | ||
'Address: ', | ||
newAccount.address, | ||
'Public key', | ||
newAccount.publicKey, | ||
'Private key', | ||
newAccount.secretKey, | ||
); | ||
})(); | ||
// print the account address, public and private keys | ||
console.log( | ||
Check warning on line 6 in packages/massa-web3/code-snippets/walletGenerateNewAccount.ts
|
||
'Address: ', | ||
newAccount.address, | ||
'Public key', | ||
newAccount.publicKey, | ||
'Private key', | ||
newAccount.secretKey | ||
) |
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
Oops, something went wrong.