-
-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #832 from MyEtherWallet/develop
Tag release 0.1.0
- Loading branch information
Showing
289 changed files
with
7,543 additions
and
2,875 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './resolveDomain'; |
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,35 @@ | ||
import * as ActionTypes from '../actionTypes'; | ||
import { TypeKeys } from '../constants'; | ||
import { DomainRequest } from 'libs/ens'; | ||
import { ResolveDomainCached } from 'actions/ens'; | ||
|
||
export type TResolveDomainRequested = typeof resolveDomainRequested; | ||
export const resolveDomainRequested = (domain: string): ActionTypes.ResolveDomainRequested => ({ | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_REQUESTED, | ||
payload: { domain } | ||
}); | ||
|
||
export const resolveDomainCached = ( | ||
payload: ResolveDomainCached['payload'] | ||
): ResolveDomainCached => ({ | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_CACHED, | ||
payload | ||
}); | ||
|
||
export type TResolveDomainSucceeded = typeof resolveDomainSucceeded; | ||
export const resolveDomainSucceeded = ( | ||
domain: string, | ||
domainData: DomainRequest | ||
): ActionTypes.ResolveDomainSucceeded => ({ | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_SUCCEEDED, | ||
payload: { domain, domainData } | ||
}); | ||
|
||
export type TResolveDomainFailed = typeof resolveDomainFailed; | ||
export const resolveDomainFailed = ( | ||
domain: string, | ||
error: Error | ||
): ActionTypes.ResolveDomainFailed => ({ | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_FAILED, | ||
payload: { domain, error } | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { ResolveDomainAction } from './resolveDomain'; | ||
|
||
export * from './resolveDomain'; | ||
|
||
export type EnsAction = ResolveDomainAction; |
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 @@ | ||
export * from './actionTypes'; |
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,28 @@ | ||
import { TypeKeys } from '../constants'; | ||
import { DomainRequest } from 'libs/ens'; | ||
|
||
export interface ResolveDomainRequested { | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_REQUESTED; | ||
payload: { domain: string }; | ||
} | ||
|
||
export interface ResolveDomainSucceeded { | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_SUCCEEDED; | ||
payload: { domain: string; domainData: DomainRequest }; | ||
} | ||
|
||
export interface ResolveDomainCached { | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_CACHED; | ||
payload: { domain: string }; | ||
} | ||
|
||
export interface ResolveDomainFailed { | ||
type: TypeKeys.ENS_RESOLVE_DOMAIN_FAILED; | ||
payload: { domain: string; error: Error }; | ||
} | ||
|
||
export type ResolveDomainAction = | ||
| ResolveDomainRequested | ||
| ResolveDomainSucceeded | ||
| ResolveDomainFailed | ||
| ResolveDomainCached; |
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,6 @@ | ||
export const ENS_RESOLVE = 'ENS_RESOLVE'; | ||
export const ENS_CACHE = 'ENS_CACHE'; | ||
export enum TypeKeys { | ||
ENS_RESOLVE_DOMAIN_REQUESTED = 'ENS_RESOLVE_DOMAIN_REQUESTED', | ||
ENS_RESOLVE_DOMAIN_SUCCEEDED = 'ENS_RESOLVE_DOMAIN_SUCCEEDED', | ||
ENS_RESOLVE_DOMAIN_CACHED = 'ENS_RESOLVE_DOMAIN_CACHED', | ||
ENS_RESOLVE_DOMAIN_FAILED = 'ENS_RESOLVE_DOMAIN_FAILED' | ||
} |
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,31 @@ | ||
import * as interfaces from './actionTypes'; | ||
import { TypeKeys } from './constants'; | ||
|
||
export type TStartOnboardSession = typeof startOnboardSession; | ||
export function startOnboardSession(): interfaces.StartOnboardSessionAction { | ||
return { | ||
type: TypeKeys.START_ONBOARD_SESSION | ||
}; | ||
} | ||
|
||
export type TResumeSlide = typeof resumeSlide; | ||
export function resumeSlide(slideNumber: number): interfaces.ResumeSlideAction { | ||
return { | ||
type: TypeKeys.RESUME_SLIDE, | ||
slideNumber | ||
}; | ||
} | ||
|
||
export type TDecrementSlide = typeof decrementSlide; | ||
export function decrementSlide(): interfaces.DecrementSlideAction { | ||
return { | ||
type: TypeKeys.DECREMENT_SLIDE | ||
}; | ||
} | ||
|
||
export type TIncrementSlide = typeof incrementSlide; | ||
export function incrementSlide(): interfaces.IncrementSlideAction { | ||
return { | ||
type: TypeKeys.INCREMENT_SLIDE | ||
}; | ||
} |
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,24 @@ | ||
import { TypeKeys } from './constants'; | ||
|
||
export interface StartOnboardSessionAction { | ||
type: TypeKeys.START_ONBOARD_SESSION; | ||
} | ||
|
||
export interface ResumeSlideAction { | ||
type: TypeKeys.RESUME_SLIDE; | ||
slideNumber: number; | ||
} | ||
|
||
export interface DecrementSlideAction { | ||
type: TypeKeys.DECREMENT_SLIDE; | ||
} | ||
|
||
export interface IncrementSlideAction { | ||
type: TypeKeys.INCREMENT_SLIDE; | ||
} | ||
|
||
export type OnboardStatusAction = | ||
| StartOnboardSessionAction | ||
| ResumeSlideAction | ||
| DecrementSlideAction | ||
| IncrementSlideAction; |
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 @@ | ||
export enum TypeKeys { | ||
START_ONBOARD_SESSION = 'START_ONBOARD_SESSION', | ||
RESUME_SLIDE = 'RESUME_SLIDE', | ||
DECREMENT_SLIDE = 'DECREMENT_SLIDE', | ||
INCREMENT_SLIDE = 'INCREMENT_SLIDE' | ||
} |
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 @@ | ||
export * from './actionTypes'; | ||
export * from './actionCreators'; |
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.