-
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.
* updated config and env.example * added api * added link-shortener service * updated encoder * updated decoder * refactored route path to route names * updated names of mixin, classes, i18n keys * added share btn for hash-function form * check path of data from link-shortener for encoder and decoder * added incompatible data received runtime error * added todos --------- Co-authored-by: Yehor Podporinov <[email protected]>
- Loading branch information
1 parent
3e21f57
commit 8dba31d
Showing
43 changed files
with
532 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { config } from '@/config' | ||
import { Fetcher, fetcher } from '@distributedlab/fetcher' | ||
|
||
const api = new Fetcher({ baseUrl: config.API_URL }) | ||
|
||
export { api, fetcher } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './route-names.constant' | ||
export * from './numbers.constant' |
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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './ethereum-types.enum' | ||
export { ICON_NAMES } from './icon-names.enum' | ||
export * from './icon-names.enum' | ||
export * from './route-names.enum' | ||
export * from './window-breakpoints.enum' |
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,21 @@ | ||
export enum ROUTE_NAMES { | ||
app = 'index', | ||
audits = 'audits', | ||
abi = 'abi', | ||
abiEncoderId = 'abi-encoder-id', | ||
abiDecoderId = 'abi-decoder-id', | ||
unixEpoch = 'unix-epoch', | ||
unixEpochDate = 'unix-epoch-date', | ||
unixEpochTimestamp = 'unix-epoch-timestamp', | ||
converter = 'converter', | ||
converterUnit = 'converter-unit', | ||
converterNumber = 'converter-number', | ||
hashFunction = 'hash-function', | ||
hashFunctionKeccak256Id = 'hash-function-keccak256-id', | ||
hashFunctionSha256Id = 'hash-function-sha256-id', | ||
hashFunctionRipemd160Id = 'hash-function-ripemd160-id', | ||
addressUtils = 'address-utils', | ||
addressUtilsCommonAddresses = 'address-utils-common-addresses', | ||
addressUtilsCreate = 'address-utils-create', | ||
addressUtilsCreate2 = 'address-utils-create2', | ||
} |
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,5 +1,9 @@ | ||
import * as linkShortenerServiceErrors from './link-shortener.service.errors' | ||
import * as runtimeErrors from './runtime-errors' | ||
|
||
export const errors = { | ||
...runtimeErrors, | ||
linkShortenerServiceErrors, | ||
} | ||
|
||
export { linkShortenerServiceErrors, runtimeErrors } |
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,11 @@ | ||
import { RuntimeError } from './runtime-errors' | ||
|
||
export class CreateLinkFetchError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'failed to create link' | ||
} | ||
|
||
export class GetDataByLinkFetchError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'failed to get data by link' | ||
} |
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,17 +1,26 @@ | ||
export class RuntimeError extends Error {} | ||
|
||
export class FunctionSignatureFetchError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'failed to get function signature' | ||
} | ||
|
||
export class FunctionFragmentGuessError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'failed to guess function fragment' | ||
} | ||
|
||
export class ParamTypesGuessError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'failed guess params types' | ||
} | ||
|
||
export class AbiDecodeError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'failed to decode abi' | ||
} | ||
|
||
export class IncompatibleDataReceivedError extends RuntimeError { | ||
// TODO: refactoring by web-kit | ||
message = 'incompatible data received' | ||
} |
Oops, something went wrong.