-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improves README readability. (#42) * Improves README readability. * Update README.md Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com> --------- Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com> * remove deps, move files, add license, fix package.json * linting hooks, tidy * mostly fix types? --------- Co-authored-by: Johnny <9611008+johnnymatthews@users.noreply.github.com> Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>
- Loading branch information
1 parent
6837b9b
commit 9920537
Showing
22 changed files
with
3,977 additions
and
4,698 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
npx tsc && echo "✔ tsc..." && \ | ||
npx lint-staged |
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
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,19 +1,19 @@ | ||
export const version = '0' | ||
|
||
export function migrate (data= {}) { | ||
try { | ||
const migratedData = { | ||
...data, | ||
accounts: [], | ||
endpoints: { | ||
dev: 'ws://127.0.0.1:9944', | ||
'test-net': 'ws://testnet.entropy.xyz:9944/' | ||
}, | ||
'migration-version': version, | ||
} | ||
return migratedData | ||
} catch (e) { | ||
console.error(`error in migration ${version}: e.message`) | ||
try { | ||
const migratedData = { | ||
...data, | ||
accounts: [], | ||
endpoints: { | ||
dev: 'ws://127.0.0.1:9944', | ||
'test-net': 'ws://testnet.entropy.xyz:9944/' | ||
}, | ||
'migration-version': version, | ||
} | ||
return migratedData | ||
} catch (e) { | ||
console.error(`error in migration ${version}: e.message`) | ||
} | ||
return data | ||
} | ||
} |
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
Oops, something went wrong.