Skip to content

Commit

Permalink
rename of wal-eos to eos-transit
Browse files Browse the repository at this point in the history
  • Loading branch information
Warrick FitzGerald committed Jan 8, 2019
1 parent 6f9711d commit 25b7595
Show file tree
Hide file tree
Showing 117 changed files with 118 additions and 118 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This allows developers to concentrate on building awesome apps instead of settin
> *Disclaimer: This library is in early alpha. The core API has stabilized but some changes and extension should be expected. We encourage developers to give it a try when building decentralized apps and to share any thoughts, doubts, and concerns. All feedback is highly appreciated.*

👉🏻 **Please see the "Quick Start" and thorough guide in the [`wal-eos` package docs](packages/wal-eos)**
👉🏻 **Please see the "Quick Start" and thorough guide in the [`eos-transit` package docs](packages/eos-transit)**


## Features
Expand All @@ -25,9 +25,9 @@ This is a monorepo that is managed with [`lerna`](https://github.com/lerna/lerna

| Package | Version | Description |
|-----------------------------------------------------------------|---------|-----------------------------------|
| [`wal-eos`](packages/wal-eos) | 0.0.1 | WAL:E core package |
| [`wal-eos-scatter-provider`](packages/wal-eos-scatter-provider) | 0.0.1 | Wallet provider for [Scatter](https://get-scatter.com/) app |
| [`wal-eos-stub-provider`](packages/wal-eos-stub-provider) | 0.0.1 | Stub wallet provider that does nothing, for demo and testing only |
| [`eos-transit`](packages/eos-transit) | 0.0.1 | WAL:E core package |
| [`eos-transit-scatter-provider`](packages/eos-transit-scatter-provider) | 0.0.1 | Wallet provider for [Scatter](https://get-scatter.com/) app |
| [`eos-transit-stub-provider`](packages/eos-transit-stub-provider) | 0.0.1 | Stub wallet provider that does nothing, for demo and testing only |


## Contribution
Expand All @@ -40,7 +40,7 @@ This is a monorepo that is managed with [`lerna`](https://github.com/lerna/lerna

$ yarn install

**Note** that before `wal-eos`, `wal-eos-scatter-provider` and `wal-eos-stub-provider` are published, they are managed by `lerna` along with packages themselves. That means, before running the examples, `lerna` should wire up all the dependencies and instead of running `yarn install` manually from this folder, the following commands should be run from the project root:
**Note** that before `eos-transit`, `eos-transit-scatter-provider` and `eos-transit-stub-provider` are published, they are managed by `lerna` along with packages themselves. That means, before running the examples, `lerna` should wire up all the dependencies and instead of running `yarn install` manually from this folder, the following commands should be run from the project root:

3. Bootstrap the dependencies with

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Make sure you have [`yarn`](https://yarnpkg.com) installed.

1. Install the dependencies.

**Note** that before `wal-eos`, `wal-eos-scatter-provider` and `wal-eos-stub-provider` are published, they are managed by `lerna` along with packages themselves. That means, before running the examples, `lerna` should wire up all the dependencies and instead of running `yarn install` manually from this folder, the following commands should be run from the project root:
**Note** that before `eos-transit`, `eos-transit-scatter-provider` and `eos-transit-stub-provider` are published, they are managed by `lerna` along with packages themselves. That means, before running the examples, `lerna` should wire up all the dependencies and instead of running `yarn install` manually from this folder, the following commands should be run from the project root:

$ yarn bootstrap
$ yarn build-packages
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"react-router-dom": "^4.3.1",
"react-scripts-ts": "3.1.0",
"scatterjs-core": "2.3.8",
"wal-eos": "^0.0.3",
"wal-eos-scatter-provider": "^0.0.3",
"wal-eos-stub-provider": "^0.0.3"
"eos-transit": "^0.0.3",
"eos-transit-scatter-provider": "^0.0.3",
"eos-transit-stub-provider": "^0.0.3"
},
"devDependencies": {
"@types/node": "^10.11.3",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, ReactNode } from 'react';
import WAL, { WalletAccessContext, StateUnsubscribeFn } from 'wal-eos';
import WAL, { WalletAccessContext, StateUnsubscribeFn } from 'eos-transit';

export interface AccessContextSubscribeProps {
children?: (accessContext: WalletAccessContext) => ReactNode;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, FormEvent } from 'react';
import styled from 'react-emotion';
import WAL, { Wallet } from 'wal-eos';
import WAL, { Wallet } from 'eos-transit';
import { TransactionButtonBlock } from './shared/transactions/TransactionButtonBlock';
import { FormElement, Input, FormActions, FieldLabel } from './shared/forms';
import { transfer } from './core/eosActions';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, ReactNode } from 'react';
import { StateUnsubscribeFn, Wallet, WalletState } from 'wal-eos';
import { StateUnsubscribeFn, Wallet, WalletState } from 'eos-transit';

export interface WalletStateSubscribeProps {
wallet: Wallet;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
withRouter,
RouteComponentProps
} from 'react-router-dom';
import WAL from 'wal-eos';
import WAL from 'eos-transit';

export interface Props extends RouteComponentProps<any> {
component?: Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import WAL from 'wal-eos';
import WAL from 'eos-transit';
import { NoContent } from '../shared/NoContent';
import { WalletList } from '../shared/wallets/WalletList';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactNode } from 'react';
import WAL from 'wal-eos';
import WAL from 'eos-transit';
import { UserDropdown } from './UserDropdown';

const { accessContext } = WAL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styled from 'react-emotion';
import WAL from 'wal-eos';
import WAL from 'eos-transit';
import { IoIosLogOut } from 'react-icons/io';

const { accessContext } = WAL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import WAL from 'wal-eos';
import WAL from 'eos-transit';
import { NoContent } from '../shared/NoContent';
import { WalletList } from '../shared/wallets/WalletList';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Wallet } from 'wal-eos';
import { Wallet } from 'eos-transit';

// TODO: Consider moving to WAL in a generic and convenient way

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { initDefaultAccessContext } from 'wal-eos';
import scatter from 'wal-eos-scatter-provider';
import stub from 'wal-eos-stub-provider';
import { initDefaultAccessContext } from 'eos-transit';
import scatter from 'eos-transit-scatter-provider';
import stub from 'eos-transit-stub-provider';

const appName = 'my_eos_dapp';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import styled from 'react-emotion';
import { Redirect, withRouter } from 'react-router';
import WAL, { WalletProvider, Wallet } from 'wal-eos';
import WAL, { WalletProvider, Wallet } from 'eos-transit';
import { CloseButton } from '../shared/buttons/CloseButton';
import { LoginButton } from './LoginButton';
import { LoginScreenWalletList } from './LoginScreenWalletList';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import styled from 'react-emotion';
import { Wallet, WalletProvider } from 'wal-eos';
import { Wallet, WalletProvider } from 'eos-transit';
import WalletListItem from '../shared/wallets/WalletListItem';
import WalletStateSubscribe from '../WalletStateSubscribe';
import AccessContextSubscribe from 'AccessContextSubscribe';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { IoIosArrowDown } from 'react-icons/io';
import { Wallet } from 'wal-eos';
import { Wallet } from 'eos-transit';
import { Dropdown, DropdownContainer, DropdownContent } from '../dropdown';
import { TransactionAddonButton } from './TransactionAddonButton';
import TransactionAddonMenu from './TransactionAddonMenu';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import styled from 'react-emotion';
import WAL, { Wallet } from 'wal-eos';
import WAL, { Wallet } from 'eos-transit';
import { TransactionAddonMenuItem } from './TransactionAddonMenuItem';
import WalletStateSubscribe from 'WalletStateSubscribe';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import styled from 'react-emotion';
import { Wallet } from 'wal-eos';
import { Wallet } from 'eos-transit';
import { toNumber } from '../helpers';
import { WalletProviderIcon } from '../wallets/WalletProviderIcon';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, ReactNode } from 'react';
import styled from 'react-emotion';
import { Wallet } from 'wal-eos';
import { Wallet } from 'eos-transit';
import TransactionButton from './TransactionButton';
import { TransactionAddonBlock } from './TransactionAddonBlock';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Wallet } from 'wal-eos';
import { Wallet } from 'eos-transit';

export interface TransactionStatus {
inProgress?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import styled from 'react-emotion';
import { WalletProvider, Wallet } from 'wal-eos';
import { WalletProvider, Wallet } from 'eos-transit';
import WalletListItem from './WalletListItem';
import WalletStateSubscribe from 'WalletStateSubscribe';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, ComponentType } from 'react';
import styled from 'react-emotion';
import { WalletProvider, Wallet, WalletState } from 'wal-eos';
import { WalletProvider, Wallet, WalletState } from 'eos-transit';
import { IoMdClose, IoIosLogOut } from 'react-icons/io';
import { SpinnerIcon } from '../icons/SpinnerIcon';
import { WalletListItemProgress } from './WalletListItemProgress';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styled from 'react-emotion';
import { AccountInfo } from 'wal-eos';
import { AccountInfo } from 'eos-transit';
import { toNumber } from '../helpers';

// TODO: Make expandable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styled from 'react-emotion';
import { WalletProvider, Wallet } from 'wal-eos';
import { WalletProvider, Wallet } from 'eos-transit';

// Visual components

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<link rel="stylesheet" href="./styles.css">
<script src="https://cdn.scattercdn.com/file/scatter-cdn/js/latest/scatterjs-core.min.js"></script>
<script src="https://cdn.scattercdn.com/file/scatter-cdn/js/latest/scatterjs-plugin-eosjs2.min.js"></script>
<script src="../../packages/wal-eos/umd/eosjs.min.js"></script>
<script src="../../packages/wal-eos/umd/wal-eos.min.js"></script>
<script src="../../packages/wal-eos-stub-provider/umd/wal-eos-stub-provider.min.js"></script>
<script src="../../packages/wal-eos-scatter-provider/umd/wal-eos-scatter-provider.min.js"></script>
<script src="../../packages/eos-transit/umd/eosjs.min.js"></script>
<script src="../../packages/eos-transit/umd/eos-transit.min.js"></script>
<script src="../../packages/eos-transit-stub-provider/umd/eos-transit-stub-provider.min.js"></script>
<script src="../../packages/eos-transit-scatter-provider/umd/eos-transit-scatter-provider.min.js"></script>

<script>
function transfer(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wal-eos-scatter-provider",
"name": "eos-transit-scatter-provider",
"version": "0.0.3",
"description": "Scatter app wallet provider for WAL:E",
"license": "UNLICENSED",
Expand All @@ -18,7 +18,7 @@
"dependencies": {
"scatterjs-core": "2.3.8",
"scatterjs-plugin-eosjs2": "1.1.6",
"wal-eos": "^0.0.3"
"eos-transit": "^0.0.3"
},
"devDependencies": {
"webpack": "^4.25.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ScatterJS from 'scatterjs-core';
import ScatterEOS from 'scatterjs-plugin-eosjs2';
import { WalletProvider, NetworkConfig, WalletAuth } from 'wal-eos';
import { WalletProvider, NetworkConfig, WalletAuth } from 'eos-transit';

const { scatter } = ScatterJS;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ const config: Configuration = {
extensions: ['.tsx', '.ts', '.js']
},
output: {
filename: 'wal-eos-scatter-provider.min.js',
filename: 'eos-transit-scatter-provider.min.js',
path: path.resolve(__dirname, 'umd'),
libraryTarget: 'umd',
library: ['WAL', 'providers', 'scatter'],
libraryExport: 'default'
},
plugins: [
new ProvidePlugin({
'window.WAL': ['wal-eos', 'default'],
'window.WAL': ['eos-transit', 'default'],
'window.ScatterJS': ['scatterjs-core', 'default'],
'window.ScatterEOS': ['scatterjs-plugin-eosjs2', 'default']
})
],
externals: {
'wal-eos': 'WAL',
'eos-transit': 'WAL',
'scatterjs-core': 'ScatterJS',
'scatterjs-plugin-eosjs2': 'ScatterEOS'
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wal-eos-stub-provider",
"name": "eos-transit-stub-provider",
"version": "0.0.3",
"description": "Stub wallet provider for WAL:E (for development and testing only)",
"license": "UNLICENSED",
Expand All @@ -16,7 +16,7 @@
"lint": "../../node_modules/.bin/tslint -c ../../tslint.json -p ./tsconfig.json"
},
"dependencies": {
"wal-eos": "^0.0.3"
"eos-transit": "^0.0.3"
},
"devDependencies": {
"eosjs": "20.0.0-beta2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiInterfaces } from 'eosjs';
import { WalletProvider, NetworkConfig, WalletAuth } from 'wal-eos';
import { WalletProvider, NetworkConfig, WalletAuth } from 'eos-transit';

// A fake wallet provider that does nothing and always
// errors on connection attempts. Useful for demoing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ const config: Configuration = {
extensions: ['.tsx', '.ts', '.js']
},
output: {
filename: 'wal-eos-stub-provider.min.js',
filename: 'eos-transit-stub-provider.min.js',
path: path.resolve(__dirname, 'umd'),
libraryTarget: 'umd',
library: ['WAL', 'providers', 'stub'],
libraryExport: 'default'
},
plugins: [
new ProvidePlugin({
'window.WAL': ['wal-eos', 'default']
'window.WAL': ['eos-transit', 'default']
})
],
externals: {
'wal-eos': 'WAL'
'eos-transit': 'WAL'
},
stats: {
colors: true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 25b7595

Please sign in to comment.