mirror of https://gitlab.com/ecentrics/drizzle
Ezerous
4 years ago
30 changed files with 525 additions and 766 deletions
@ -1,3 +1,7 @@ |
|||
# @ezerous/drizzle |
|||
|
|||
[![Version](https://img.shields.io/npm/v/@ezerous/drizzle.svg)](https://www.npmjs.com/package/@ezerous/drizzle) |
|||
[![Dependencies](https://img.shields.io/david/Ezerous/@ezerous/drizzle.svg)](https://david-dm.org/Ezerous/drizzle) |
|||
[![License](https://img.shields.io/npm/l/@ezerous/drizzle.svg)](https://www.npmjs.com/package/@ezerous/drizzle) |
|||
|
|||
A reactive data-store for web3 and smart contracts. A modified version of [@drizzle/store](https://github.com/trufflesuite/drizzle/tree/develop/packages/store). |
|||
|
@ -1,4 +0,0 @@ |
|||
export const ACCOUNT_BALANCE_FETCHED = 'ACCOUNT_BALANCE_FETCHED' |
|||
export const ACCOUNT_BALANCE_FAILED = 'ACCOUNT_BALANCE_FAILED' |
|||
export const ACCOUNT_BALANCES_FETCHED = 'ACCOUNT_BALANCES_FETCHED' |
|||
export const ACCOUNT_BALANCES_FETCHING = 'ACCOUNT_BALANCES_FETCHING' |
@ -1,27 +1,17 @@ |
|||
import * as AccountsActions from './constants' |
|||
export const ACCOUNTS_FETCHING = 'ACCOUNTS_FETCHING' |
|||
export const ACCOUNTS_FETCHED = 'ACCOUNTS_FETCHED' |
|||
export const ACCOUNTS_FAILED = 'ACCOUNTS_FAILED' |
|||
export const ACCOUNTS_LISTENING = 'ACCOUNTS_LISTENING' |
|||
|
|||
export function accountsFetching (results) { |
|||
export function accountsFetched (accounts) { |
|||
return { |
|||
type: AccountsActions.ACCOUNTS_FETCHING, |
|||
type: ACCOUNTS_FETCHED, |
|||
accounts |
|||
} |
|||
} |
|||
|
|||
export function accountsFetched (results) { |
|||
export function accountsListening () { |
|||
return { |
|||
type: AccountsActions.ACCOUNTS_FETCHED, |
|||
accounts: results |
|||
} |
|||
} |
|||
|
|||
export function accountsListening (results) { |
|||
return { |
|||
type: AccountsActions.ACCOUNTS_LISTENING, |
|||
} |
|||
} |
|||
|
|||
export function accountsFailed (error) { |
|||
return { |
|||
type: AccountsActions.ACCOUNTS_FAILED, |
|||
error |
|||
type: ACCOUNTS_LISTENING, |
|||
} |
|||
} |
|||
|
@ -1,4 +0,0 @@ |
|||
export const ACCOUNTS_FETCHING = 'ACCOUNTS_FETCHING' |
|||
export const ACCOUNTS_FETCHED = 'ACCOUNTS_FETCHED' |
|||
export const ACCOUNTS_FAILED = 'ACCOUNTS_FAILED' |
|||
export const ACCOUNTS_LISTENING = 'ACCOUNTS_LISTENING' |
File diff suppressed because it is too large
Loading…
Reference in new issue