-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update dependencies & rename passPhrase to passphrase
- Loading branch information
1 parent
92e9aa0
commit 204e846
Showing
29 changed files
with
2,697 additions
and
1,869 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
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,12 +1,12 @@ | ||
const api = require('../../utils/api'); | ||
const config = require('../../utils/config'); | ||
const { requiredParam } = require('../../utils/validate'); | ||
import api from '../../utils/api.js'; | ||
import config from '../../utils/config.js'; | ||
import { requiredParam } from '../../utils/validate.js'; | ||
|
||
exports.createDelegate = async ( | ||
export async function createDelegate( | ||
username = requiredParam('username'), | ||
passPhrase, | ||
) => { | ||
const res = await api.newDelegate(passPhrase || config.passPhrase, username); | ||
passphrase, | ||
) { | ||
const res = await api.newDelegate(passphrase || config.passphrase, username); | ||
|
||
return res.data || res; | ||
}; | ||
} |
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,15 +1,6 @@ | ||
const account = require('./account'); | ||
const get = require('./get'); | ||
const node = require('./node'); | ||
const send = require('./send'); | ||
const delegate = require('./delegate'); | ||
const vote = require('./vote'); | ||
|
||
module.exports = { | ||
...account, | ||
...get, | ||
...node, | ||
...send, | ||
...delegate, | ||
...vote, | ||
}; | ||
export * from './account.js'; | ||
export * from './get.js'; | ||
export * from './node.js'; | ||
export * from './send.js'; | ||
export * from './delegate.js'; | ||
export * from './vote.js'; |
Oops, something went wrong.