From 25b7595e7514e1ce60b2c2018239b576bffc46de Mon Sep 17 00:00:00 2001 From: Warrick FitzGerald Date: Mon, 7 Jan 2019 20:21:58 -0500 Subject: [PATCH] rename of wal-eos to eos-transit --- README.md | 10 +- .../.env.local | 0 .../.gitignore | 0 .../README.md | 2 +- .../ScatterNetworkSettings.jpg | Bin .../Scatter_AddAccount1.jpg | Bin .../Scatter_AddAccount2.jpg | Bin .../Scatter_AddAccount3.jpg | Bin .../Scatter_AddAccount4.jpg | Bin .../Scatter_AddAccount5.jpg | Bin .../Transit_DemoVideo.jpg | Bin .../images.d.ts | 0 .../package.json | 6 +- .../public/favicon.ico | Bin .../public/index.html | 0 .../public/manifest.json | 0 .../src/AccessContextSubscribe.tsx | 2 +- .../src/AppRoutes.tsx | 0 .../src/HomeScreen.tsx | 0 .../src/PaymentForm.tsx | 2 +- .../src/WalletStateSubscribe.tsx | 2 +- .../src/config.ts | 0 .../src/core/AppLayout.tsx | 0 .../src/core/AuthenticatedRoute.tsx | 2 +- .../src/core/AvailableWalletList.tsx | 2 +- .../src/core/MenuSectionHeaderButton.tsx | 0 .../src/core/UserAvatar.tsx | 0 .../src/core/UserBlock.tsx | 2 +- .../src/core/UserDropdown.tsx | 0 .../src/core/UserMedia.tsx | 0 .../src/core/UserMenu.tsx | 0 .../src/core/UserMenuAddWalletButton.tsx | 0 .../src/core/UserMenuLogoutButton.tsx | 2 +- .../src/core/UserWalletList.tsx | 2 +- .../src/core/eosActions.ts | 2 +- .../src/globalStyles.ts | 0 .../src/index.tsx | 0 .../src/initDefaultAccessContext.ts | 6 +- .../src/login/LoginButton.tsx | 0 .../src/login/LoginScreen.tsx | 2 +- .../src/login/LoginScreenWalletList.tsx | 2 +- .../src/shared/EosLogo.tsx | 0 .../src/shared/LogoLink.tsx | 0 .../src/shared/MetroLogo.tsx | 0 .../src/shared/NoContent.tsx | 0 .../src/shared/ScatterLogo.tsx | 0 .../src/shared/buttons/CloseButton.tsx | 0 .../src/shared/dropdown/Dropdown.tsx | 0 .../src/shared/dropdown/DropdownContainer.tsx | 0 .../src/shared/dropdown/DropdownContent.tsx | 0 .../src/shared/dropdown/DropdownTrigger.tsx | 0 .../src/shared/dropdown/index.ts | 0 .../src/shared/forms/FieldLabel.tsx | 0 .../src/shared/forms/FormActions.tsx | 0 .../src/shared/forms/FormElement.tsx | 0 .../src/shared/forms/controls/Input.tsx | 0 .../src/shared/forms/index.ts | 0 .../src/shared/helpers.ts | 0 .../src/shared/icons/SpinnerIcon.tsx | 0 .../src/shared/screen/ScreenContent.tsx | 0 .../src/shared/screen/ScreenLayout.tsx | 0 .../src/shared/screen/index.ts | 0 .../transactions/TransactionAddonBlock.tsx | 2 +- .../transactions/TransactionAddonButton.tsx | 0 .../transactions/TransactionAddonMenu.tsx | 2 +- .../transactions/TransactionAddonMenuItem.tsx | 2 +- .../shared/transactions/TransactionButton.tsx | 0 .../transactions/TransactionButtonBlock.tsx | 2 +- .../src/shared/transactions/types.ts | 2 +- .../src/shared/wallets/WalletList.tsx | 2 +- .../src/shared/wallets/WalletListItem.tsx | 2 +- .../src/shared/wallets/WalletListItemInfo.tsx | 2 +- .../shared/wallets/WalletListItemProgress.tsx | 0 .../shared/wallets/WalletListItemStatus.tsx | 2 +- .../src/shared/wallets/WalletProviderIcon.tsx | 0 .../src/shared/wallets/types.ts | 0 .../tsconfig.json | 0 .../tsconfig.prod.json | 0 .../tsconfig.test.json | 0 .../tslint.json | 0 .../yarn.lock | 0 .../index.html | 8 +- .../styles.css | 0 .../.gitignore | 0 .../.npmignore | 0 .../package.json | 4 +- .../src/index.ts | 2 +- .../src/typings/scatterjs-core.d.ts | 0 .../src/typings/scatterjs-plugin-eosjs2.d.ts | 0 .../tsconfig.json | 0 .../tsconfig.webpack.json | 0 .../webpack.config.ts | 6 +- .../yarn.lock | 0 .../.gitignore | 0 .../.npmignore | 0 .../package.json | 4 +- .../src/index.ts | 2 +- .../tsconfig.json | 0 .../tsconfig.webpack.json | 0 .../webpack.config.ts | 6 +- .../yarn.lock | 0 packages/{wal-eos => eos-transit}/.gitignore | 0 packages/{wal-eos => eos-transit}/.npmignore | 0 packages/{wal-eos => eos-transit}/README.md | 126 +++++++++--------- .../{wal-eos => eos-transit}/package.json | 2 +- .../{wal-eos => eos-transit}/src/index.ts | 0 .../src/stateContainer.ts | 0 .../{wal-eos => eos-transit}/src/types.ts | 0 packages/{wal-eos => eos-transit}/src/util.ts | 0 .../{wal-eos => eos-transit}/src/wallet.ts | 0 .../src/walletAccessContext.ts | 0 .../{wal-eos => eos-transit}/tsconfig.json | 0 .../tsconfig.webpack.json | 0 .../webpack.config.eosjs.ts | 0 .../webpack.config.ts | 2 +- packages/{wal-eos => eos-transit}/yarn.lock | 0 webpack.config.ts | 10 +- 117 files changed, 118 insertions(+), 118 deletions(-) rename examples/{wal-react-basic => transit-react-basic}/.env.local (100%) rename examples/{wal-react-basic => transit-react-basic}/.gitignore (100%) rename examples/{wal-react-basic => transit-react-basic}/README.md (85%) rename examples/{wal-react-basic => transit-react-basic}/ScatterNetworkSettings.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/Scatter_AddAccount1.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/Scatter_AddAccount2.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/Scatter_AddAccount3.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/Scatter_AddAccount4.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/Scatter_AddAccount5.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/Transit_DemoVideo.jpg (100%) rename examples/{wal-react-basic => transit-react-basic}/images.d.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/package.json (90%) rename examples/{wal-react-basic => transit-react-basic}/public/favicon.ico (100%) rename examples/{wal-react-basic => transit-react-basic}/public/index.html (100%) rename examples/{wal-react-basic => transit-react-basic}/public/manifest.json (100%) rename examples/{wal-react-basic => transit-react-basic}/src/AccessContextSubscribe.tsx (91%) rename examples/{wal-react-basic => transit-react-basic}/src/AppRoutes.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/HomeScreen.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/PaymentForm.tsx (99%) rename examples/{wal-react-basic => transit-react-basic}/src/WalletStateSubscribe.tsx (92%) rename examples/{wal-react-basic => transit-react-basic}/src/config.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/AppLayout.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/AuthenticatedRoute.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/core/AvailableWalletList.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/core/MenuSectionHeaderButton.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserAvatar.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserBlock.tsx (95%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserDropdown.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserMedia.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserMenu.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserMenuAddWalletButton.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserMenuLogoutButton.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/core/UserWalletList.tsx (95%) rename examples/{wal-react-basic => transit-react-basic}/src/core/eosActions.ts (97%) rename examples/{wal-react-basic => transit-react-basic}/src/globalStyles.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/src/index.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/initDefaultAccessContext.ts (82%) rename examples/{wal-react-basic => transit-react-basic}/src/login/LoginButton.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/login/LoginScreen.tsx (98%) rename examples/{wal-react-basic => transit-react-basic}/src/login/LoginScreenWalletList.tsx (98%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/EosLogo.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/LogoLink.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/MetroLogo.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/NoContent.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/ScatterLogo.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/buttons/CloseButton.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/dropdown/Dropdown.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/dropdown/DropdownContainer.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/dropdown/DropdownContent.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/dropdown/DropdownTrigger.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/dropdown/index.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/forms/FieldLabel.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/forms/FormActions.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/forms/FormElement.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/forms/controls/Input.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/forms/index.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/helpers.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/icons/SpinnerIcon.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/screen/ScreenContent.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/screen/ScreenLayout.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/screen/index.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/TransactionAddonBlock.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/TransactionAddonButton.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/TransactionAddonMenu.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/TransactionAddonMenuItem.tsx (98%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/TransactionButton.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/TransactionButtonBlock.tsx (98%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/transactions/types.ts (92%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/WalletList.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/WalletListItem.tsx (99%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/WalletListItemInfo.tsx (98%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/WalletListItemProgress.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/WalletListItemStatus.tsx (97%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/WalletProviderIcon.tsx (100%) rename examples/{wal-react-basic => transit-react-basic}/src/shared/wallets/types.ts (100%) rename examples/{wal-react-basic => transit-react-basic}/tsconfig.json (100%) rename examples/{wal-react-basic => transit-react-basic}/tsconfig.prod.json (100%) rename examples/{wal-react-basic => transit-react-basic}/tsconfig.test.json (100%) rename examples/{wal-react-basic => transit-react-basic}/tslint.json (100%) rename examples/{wal-react-basic => transit-react-basic}/yarn.lock (100%) rename examples/{wal-script-tag => transit-script-tag}/index.html (94%) rename examples/{wal-script-tag => transit-script-tag}/styles.css (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/.gitignore (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/.npmignore (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/package.json (93%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/src/index.ts (97%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/src/typings/scatterjs-core.d.ts (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/src/typings/scatterjs-plugin-eosjs2.d.ts (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/tsconfig.json (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/tsconfig.webpack.json (100%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/webpack.config.ts (88%) rename packages/{wal-eos-scatter-provider => eos-transit-scatter-provider}/yarn.lock (100%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/.gitignore (100%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/.npmignore (100%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/package.json (93%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/src/index.ts (96%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/tsconfig.json (100%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/tsconfig.webpack.json (100%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/webpack.config.ts (86%) rename packages/{wal-eos-stub-provider => eos-transit-stub-provider}/yarn.lock (100%) rename packages/{wal-eos => eos-transit}/.gitignore (100%) rename packages/{wal-eos => eos-transit}/.npmignore (100%) rename packages/{wal-eos => eos-transit}/README.md (80%) rename packages/{wal-eos => eos-transit}/package.json (98%) rename packages/{wal-eos => eos-transit}/src/index.ts (100%) rename packages/{wal-eos => eos-transit}/src/stateContainer.ts (100%) rename packages/{wal-eos => eos-transit}/src/types.ts (100%) rename packages/{wal-eos => eos-transit}/src/util.ts (100%) rename packages/{wal-eos => eos-transit}/src/wallet.ts (100%) rename packages/{wal-eos => eos-transit}/src/walletAccessContext.ts (100%) rename packages/{wal-eos => eos-transit}/tsconfig.json (100%) rename packages/{wal-eos => eos-transit}/tsconfig.webpack.json (100%) rename packages/{wal-eos => eos-transit}/webpack.config.eosjs.ts (100%) rename packages/{wal-eos => eos-transit}/webpack.config.ts (94%) rename packages/{wal-eos => eos-transit}/yarn.lock (100%) diff --git a/README.md b/README.md index dc90113c..f6ad3d3d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 diff --git a/examples/wal-react-basic/.env.local b/examples/transit-react-basic/.env.local similarity index 100% rename from examples/wal-react-basic/.env.local rename to examples/transit-react-basic/.env.local diff --git a/examples/wal-react-basic/.gitignore b/examples/transit-react-basic/.gitignore similarity index 100% rename from examples/wal-react-basic/.gitignore rename to examples/transit-react-basic/.gitignore diff --git a/examples/wal-react-basic/README.md b/examples/transit-react-basic/README.md similarity index 85% rename from examples/wal-react-basic/README.md rename to examples/transit-react-basic/README.md index 797b85db..9de44b49 100644 --- a/examples/wal-react-basic/README.md +++ b/examples/transit-react-basic/README.md @@ -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 diff --git a/examples/wal-react-basic/ScatterNetworkSettings.jpg b/examples/transit-react-basic/ScatterNetworkSettings.jpg similarity index 100% rename from examples/wal-react-basic/ScatterNetworkSettings.jpg rename to examples/transit-react-basic/ScatterNetworkSettings.jpg diff --git a/examples/wal-react-basic/Scatter_AddAccount1.jpg b/examples/transit-react-basic/Scatter_AddAccount1.jpg similarity index 100% rename from examples/wal-react-basic/Scatter_AddAccount1.jpg rename to examples/transit-react-basic/Scatter_AddAccount1.jpg diff --git a/examples/wal-react-basic/Scatter_AddAccount2.jpg b/examples/transit-react-basic/Scatter_AddAccount2.jpg similarity index 100% rename from examples/wal-react-basic/Scatter_AddAccount2.jpg rename to examples/transit-react-basic/Scatter_AddAccount2.jpg diff --git a/examples/wal-react-basic/Scatter_AddAccount3.jpg b/examples/transit-react-basic/Scatter_AddAccount3.jpg similarity index 100% rename from examples/wal-react-basic/Scatter_AddAccount3.jpg rename to examples/transit-react-basic/Scatter_AddAccount3.jpg diff --git a/examples/wal-react-basic/Scatter_AddAccount4.jpg b/examples/transit-react-basic/Scatter_AddAccount4.jpg similarity index 100% rename from examples/wal-react-basic/Scatter_AddAccount4.jpg rename to examples/transit-react-basic/Scatter_AddAccount4.jpg diff --git a/examples/wal-react-basic/Scatter_AddAccount5.jpg b/examples/transit-react-basic/Scatter_AddAccount5.jpg similarity index 100% rename from examples/wal-react-basic/Scatter_AddAccount5.jpg rename to examples/transit-react-basic/Scatter_AddAccount5.jpg diff --git a/examples/wal-react-basic/Transit_DemoVideo.jpg b/examples/transit-react-basic/Transit_DemoVideo.jpg similarity index 100% rename from examples/wal-react-basic/Transit_DemoVideo.jpg rename to examples/transit-react-basic/Transit_DemoVideo.jpg diff --git a/examples/wal-react-basic/images.d.ts b/examples/transit-react-basic/images.d.ts similarity index 100% rename from examples/wal-react-basic/images.d.ts rename to examples/transit-react-basic/images.d.ts diff --git a/examples/wal-react-basic/package.json b/examples/transit-react-basic/package.json similarity index 90% rename from examples/wal-react-basic/package.json rename to examples/transit-react-basic/package.json index bcc77217..5424eeba 100644 --- a/examples/wal-react-basic/package.json +++ b/examples/transit-react-basic/package.json @@ -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", diff --git a/examples/wal-react-basic/public/favicon.ico b/examples/transit-react-basic/public/favicon.ico similarity index 100% rename from examples/wal-react-basic/public/favicon.ico rename to examples/transit-react-basic/public/favicon.ico diff --git a/examples/wal-react-basic/public/index.html b/examples/transit-react-basic/public/index.html similarity index 100% rename from examples/wal-react-basic/public/index.html rename to examples/transit-react-basic/public/index.html diff --git a/examples/wal-react-basic/public/manifest.json b/examples/transit-react-basic/public/manifest.json similarity index 100% rename from examples/wal-react-basic/public/manifest.json rename to examples/transit-react-basic/public/manifest.json diff --git a/examples/wal-react-basic/src/AccessContextSubscribe.tsx b/examples/transit-react-basic/src/AccessContextSubscribe.tsx similarity index 91% rename from examples/wal-react-basic/src/AccessContextSubscribe.tsx rename to examples/transit-react-basic/src/AccessContextSubscribe.tsx index 5c7e20c5..1add5a07 100644 --- a/examples/wal-react-basic/src/AccessContextSubscribe.tsx +++ b/examples/transit-react-basic/src/AccessContextSubscribe.tsx @@ -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; diff --git a/examples/wal-react-basic/src/AppRoutes.tsx b/examples/transit-react-basic/src/AppRoutes.tsx similarity index 100% rename from examples/wal-react-basic/src/AppRoutes.tsx rename to examples/transit-react-basic/src/AppRoutes.tsx diff --git a/examples/wal-react-basic/src/HomeScreen.tsx b/examples/transit-react-basic/src/HomeScreen.tsx similarity index 100% rename from examples/wal-react-basic/src/HomeScreen.tsx rename to examples/transit-react-basic/src/HomeScreen.tsx diff --git a/examples/wal-react-basic/src/PaymentForm.tsx b/examples/transit-react-basic/src/PaymentForm.tsx similarity index 99% rename from examples/wal-react-basic/src/PaymentForm.tsx rename to examples/transit-react-basic/src/PaymentForm.tsx index 52443ff8..f05f7d83 100644 --- a/examples/wal-react-basic/src/PaymentForm.tsx +++ b/examples/transit-react-basic/src/PaymentForm.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/WalletStateSubscribe.tsx b/examples/transit-react-basic/src/WalletStateSubscribe.tsx similarity index 92% rename from examples/wal-react-basic/src/WalletStateSubscribe.tsx rename to examples/transit-react-basic/src/WalletStateSubscribe.tsx index 76d4c909..feef0ead 100644 --- a/examples/wal-react-basic/src/WalletStateSubscribe.tsx +++ b/examples/transit-react-basic/src/WalletStateSubscribe.tsx @@ -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; diff --git a/examples/wal-react-basic/src/config.ts b/examples/transit-react-basic/src/config.ts similarity index 100% rename from examples/wal-react-basic/src/config.ts rename to examples/transit-react-basic/src/config.ts diff --git a/examples/wal-react-basic/src/core/AppLayout.tsx b/examples/transit-react-basic/src/core/AppLayout.tsx similarity index 100% rename from examples/wal-react-basic/src/core/AppLayout.tsx rename to examples/transit-react-basic/src/core/AppLayout.tsx diff --git a/examples/wal-react-basic/src/core/AuthenticatedRoute.tsx b/examples/transit-react-basic/src/core/AuthenticatedRoute.tsx similarity index 97% rename from examples/wal-react-basic/src/core/AuthenticatedRoute.tsx rename to examples/transit-react-basic/src/core/AuthenticatedRoute.tsx index e6c44d71..d46f9cea 100644 --- a/examples/wal-react-basic/src/core/AuthenticatedRoute.tsx +++ b/examples/transit-react-basic/src/core/AuthenticatedRoute.tsx @@ -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 { component?: Component; diff --git a/examples/wal-react-basic/src/core/AvailableWalletList.tsx b/examples/transit-react-basic/src/core/AvailableWalletList.tsx similarity index 97% rename from examples/wal-react-basic/src/core/AvailableWalletList.tsx rename to examples/transit-react-basic/src/core/AvailableWalletList.tsx index 033c26a8..0f02a9f7 100644 --- a/examples/wal-react-basic/src/core/AvailableWalletList.tsx +++ b/examples/transit-react-basic/src/core/AvailableWalletList.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/core/MenuSectionHeaderButton.tsx b/examples/transit-react-basic/src/core/MenuSectionHeaderButton.tsx similarity index 100% rename from examples/wal-react-basic/src/core/MenuSectionHeaderButton.tsx rename to examples/transit-react-basic/src/core/MenuSectionHeaderButton.tsx diff --git a/examples/wal-react-basic/src/core/UserAvatar.tsx b/examples/transit-react-basic/src/core/UserAvatar.tsx similarity index 100% rename from examples/wal-react-basic/src/core/UserAvatar.tsx rename to examples/transit-react-basic/src/core/UserAvatar.tsx diff --git a/examples/wal-react-basic/src/core/UserBlock.tsx b/examples/transit-react-basic/src/core/UserBlock.tsx similarity index 95% rename from examples/wal-react-basic/src/core/UserBlock.tsx rename to examples/transit-react-basic/src/core/UserBlock.tsx index 1c516d7a..b3fbc6a4 100644 --- a/examples/wal-react-basic/src/core/UserBlock.tsx +++ b/examples/transit-react-basic/src/core/UserBlock.tsx @@ -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; diff --git a/examples/wal-react-basic/src/core/UserDropdown.tsx b/examples/transit-react-basic/src/core/UserDropdown.tsx similarity index 100% rename from examples/wal-react-basic/src/core/UserDropdown.tsx rename to examples/transit-react-basic/src/core/UserDropdown.tsx diff --git a/examples/wal-react-basic/src/core/UserMedia.tsx b/examples/transit-react-basic/src/core/UserMedia.tsx similarity index 100% rename from examples/wal-react-basic/src/core/UserMedia.tsx rename to examples/transit-react-basic/src/core/UserMedia.tsx diff --git a/examples/wal-react-basic/src/core/UserMenu.tsx b/examples/transit-react-basic/src/core/UserMenu.tsx similarity index 100% rename from examples/wal-react-basic/src/core/UserMenu.tsx rename to examples/transit-react-basic/src/core/UserMenu.tsx diff --git a/examples/wal-react-basic/src/core/UserMenuAddWalletButton.tsx b/examples/transit-react-basic/src/core/UserMenuAddWalletButton.tsx similarity index 100% rename from examples/wal-react-basic/src/core/UserMenuAddWalletButton.tsx rename to examples/transit-react-basic/src/core/UserMenuAddWalletButton.tsx diff --git a/examples/wal-react-basic/src/core/UserMenuLogoutButton.tsx b/examples/transit-react-basic/src/core/UserMenuLogoutButton.tsx similarity index 97% rename from examples/wal-react-basic/src/core/UserMenuLogoutButton.tsx rename to examples/transit-react-basic/src/core/UserMenuLogoutButton.tsx index 69ae05e7..1316bddc 100644 --- a/examples/wal-react-basic/src/core/UserMenuLogoutButton.tsx +++ b/examples/transit-react-basic/src/core/UserMenuLogoutButton.tsx @@ -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; diff --git a/examples/wal-react-basic/src/core/UserWalletList.tsx b/examples/transit-react-basic/src/core/UserWalletList.tsx similarity index 95% rename from examples/wal-react-basic/src/core/UserWalletList.tsx rename to examples/transit-react-basic/src/core/UserWalletList.tsx index 17785d7b..661f0cb1 100644 --- a/examples/wal-react-basic/src/core/UserWalletList.tsx +++ b/examples/transit-react-basic/src/core/UserWalletList.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/core/eosActions.ts b/examples/transit-react-basic/src/core/eosActions.ts similarity index 97% rename from examples/wal-react-basic/src/core/eosActions.ts rename to examples/transit-react-basic/src/core/eosActions.ts index c4a785c7..4242ea44 100644 --- a/examples/wal-react-basic/src/core/eosActions.ts +++ b/examples/transit-react-basic/src/core/eosActions.ts @@ -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 diff --git a/examples/wal-react-basic/src/globalStyles.ts b/examples/transit-react-basic/src/globalStyles.ts similarity index 100% rename from examples/wal-react-basic/src/globalStyles.ts rename to examples/transit-react-basic/src/globalStyles.ts diff --git a/examples/wal-react-basic/src/index.tsx b/examples/transit-react-basic/src/index.tsx similarity index 100% rename from examples/wal-react-basic/src/index.tsx rename to examples/transit-react-basic/src/index.tsx diff --git a/examples/wal-react-basic/src/initDefaultAccessContext.ts b/examples/transit-react-basic/src/initDefaultAccessContext.ts similarity index 82% rename from examples/wal-react-basic/src/initDefaultAccessContext.ts rename to examples/transit-react-basic/src/initDefaultAccessContext.ts index c22c2483..f39f3a51 100644 --- a/examples/wal-react-basic/src/initDefaultAccessContext.ts +++ b/examples/transit-react-basic/src/initDefaultAccessContext.ts @@ -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'; diff --git a/examples/wal-react-basic/src/login/LoginButton.tsx b/examples/transit-react-basic/src/login/LoginButton.tsx similarity index 100% rename from examples/wal-react-basic/src/login/LoginButton.tsx rename to examples/transit-react-basic/src/login/LoginButton.tsx diff --git a/examples/wal-react-basic/src/login/LoginScreen.tsx b/examples/transit-react-basic/src/login/LoginScreen.tsx similarity index 98% rename from examples/wal-react-basic/src/login/LoginScreen.tsx rename to examples/transit-react-basic/src/login/LoginScreen.tsx index 57293345..173adccc 100644 --- a/examples/wal-react-basic/src/login/LoginScreen.tsx +++ b/examples/transit-react-basic/src/login/LoginScreen.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/login/LoginScreenWalletList.tsx b/examples/transit-react-basic/src/login/LoginScreenWalletList.tsx similarity index 98% rename from examples/wal-react-basic/src/login/LoginScreenWalletList.tsx rename to examples/transit-react-basic/src/login/LoginScreenWalletList.tsx index 3f104e10..9e03d4b8 100644 --- a/examples/wal-react-basic/src/login/LoginScreenWalletList.tsx +++ b/examples/transit-react-basic/src/login/LoginScreenWalletList.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/EosLogo.tsx b/examples/transit-react-basic/src/shared/EosLogo.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/EosLogo.tsx rename to examples/transit-react-basic/src/shared/EosLogo.tsx diff --git a/examples/wal-react-basic/src/shared/LogoLink.tsx b/examples/transit-react-basic/src/shared/LogoLink.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/LogoLink.tsx rename to examples/transit-react-basic/src/shared/LogoLink.tsx diff --git a/examples/wal-react-basic/src/shared/MetroLogo.tsx b/examples/transit-react-basic/src/shared/MetroLogo.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/MetroLogo.tsx rename to examples/transit-react-basic/src/shared/MetroLogo.tsx diff --git a/examples/wal-react-basic/src/shared/NoContent.tsx b/examples/transit-react-basic/src/shared/NoContent.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/NoContent.tsx rename to examples/transit-react-basic/src/shared/NoContent.tsx diff --git a/examples/wal-react-basic/src/shared/ScatterLogo.tsx b/examples/transit-react-basic/src/shared/ScatterLogo.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/ScatterLogo.tsx rename to examples/transit-react-basic/src/shared/ScatterLogo.tsx diff --git a/examples/wal-react-basic/src/shared/buttons/CloseButton.tsx b/examples/transit-react-basic/src/shared/buttons/CloseButton.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/buttons/CloseButton.tsx rename to examples/transit-react-basic/src/shared/buttons/CloseButton.tsx diff --git a/examples/wal-react-basic/src/shared/dropdown/Dropdown.tsx b/examples/transit-react-basic/src/shared/dropdown/Dropdown.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/dropdown/Dropdown.tsx rename to examples/transit-react-basic/src/shared/dropdown/Dropdown.tsx diff --git a/examples/wal-react-basic/src/shared/dropdown/DropdownContainer.tsx b/examples/transit-react-basic/src/shared/dropdown/DropdownContainer.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/dropdown/DropdownContainer.tsx rename to examples/transit-react-basic/src/shared/dropdown/DropdownContainer.tsx diff --git a/examples/wal-react-basic/src/shared/dropdown/DropdownContent.tsx b/examples/transit-react-basic/src/shared/dropdown/DropdownContent.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/dropdown/DropdownContent.tsx rename to examples/transit-react-basic/src/shared/dropdown/DropdownContent.tsx diff --git a/examples/wal-react-basic/src/shared/dropdown/DropdownTrigger.tsx b/examples/transit-react-basic/src/shared/dropdown/DropdownTrigger.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/dropdown/DropdownTrigger.tsx rename to examples/transit-react-basic/src/shared/dropdown/DropdownTrigger.tsx diff --git a/examples/wal-react-basic/src/shared/dropdown/index.ts b/examples/transit-react-basic/src/shared/dropdown/index.ts similarity index 100% rename from examples/wal-react-basic/src/shared/dropdown/index.ts rename to examples/transit-react-basic/src/shared/dropdown/index.ts diff --git a/examples/wal-react-basic/src/shared/forms/FieldLabel.tsx b/examples/transit-react-basic/src/shared/forms/FieldLabel.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/forms/FieldLabel.tsx rename to examples/transit-react-basic/src/shared/forms/FieldLabel.tsx diff --git a/examples/wal-react-basic/src/shared/forms/FormActions.tsx b/examples/transit-react-basic/src/shared/forms/FormActions.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/forms/FormActions.tsx rename to examples/transit-react-basic/src/shared/forms/FormActions.tsx diff --git a/examples/wal-react-basic/src/shared/forms/FormElement.tsx b/examples/transit-react-basic/src/shared/forms/FormElement.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/forms/FormElement.tsx rename to examples/transit-react-basic/src/shared/forms/FormElement.tsx diff --git a/examples/wal-react-basic/src/shared/forms/controls/Input.tsx b/examples/transit-react-basic/src/shared/forms/controls/Input.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/forms/controls/Input.tsx rename to examples/transit-react-basic/src/shared/forms/controls/Input.tsx diff --git a/examples/wal-react-basic/src/shared/forms/index.ts b/examples/transit-react-basic/src/shared/forms/index.ts similarity index 100% rename from examples/wal-react-basic/src/shared/forms/index.ts rename to examples/transit-react-basic/src/shared/forms/index.ts diff --git a/examples/wal-react-basic/src/shared/helpers.ts b/examples/transit-react-basic/src/shared/helpers.ts similarity index 100% rename from examples/wal-react-basic/src/shared/helpers.ts rename to examples/transit-react-basic/src/shared/helpers.ts diff --git a/examples/wal-react-basic/src/shared/icons/SpinnerIcon.tsx b/examples/transit-react-basic/src/shared/icons/SpinnerIcon.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/icons/SpinnerIcon.tsx rename to examples/transit-react-basic/src/shared/icons/SpinnerIcon.tsx diff --git a/examples/wal-react-basic/src/shared/screen/ScreenContent.tsx b/examples/transit-react-basic/src/shared/screen/ScreenContent.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/screen/ScreenContent.tsx rename to examples/transit-react-basic/src/shared/screen/ScreenContent.tsx diff --git a/examples/wal-react-basic/src/shared/screen/ScreenLayout.tsx b/examples/transit-react-basic/src/shared/screen/ScreenLayout.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/screen/ScreenLayout.tsx rename to examples/transit-react-basic/src/shared/screen/ScreenLayout.tsx diff --git a/examples/wal-react-basic/src/shared/screen/index.ts b/examples/transit-react-basic/src/shared/screen/index.ts similarity index 100% rename from examples/wal-react-basic/src/shared/screen/index.ts rename to examples/transit-react-basic/src/shared/screen/index.ts diff --git a/examples/wal-react-basic/src/shared/transactions/TransactionAddonBlock.tsx b/examples/transit-react-basic/src/shared/transactions/TransactionAddonBlock.tsx similarity index 97% rename from examples/wal-react-basic/src/shared/transactions/TransactionAddonBlock.tsx rename to examples/transit-react-basic/src/shared/transactions/TransactionAddonBlock.tsx index cc83930d..795e73d4 100644 --- a/examples/wal-react-basic/src/shared/transactions/TransactionAddonBlock.tsx +++ b/examples/transit-react-basic/src/shared/transactions/TransactionAddonBlock.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/transactions/TransactionAddonButton.tsx b/examples/transit-react-basic/src/shared/transactions/TransactionAddonButton.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/transactions/TransactionAddonButton.tsx rename to examples/transit-react-basic/src/shared/transactions/TransactionAddonButton.tsx diff --git a/examples/wal-react-basic/src/shared/transactions/TransactionAddonMenu.tsx b/examples/transit-react-basic/src/shared/transactions/TransactionAddonMenu.tsx similarity index 97% rename from examples/wal-react-basic/src/shared/transactions/TransactionAddonMenu.tsx rename to examples/transit-react-basic/src/shared/transactions/TransactionAddonMenu.tsx index 790181c0..e965a049 100644 --- a/examples/wal-react-basic/src/shared/transactions/TransactionAddonMenu.tsx +++ b/examples/transit-react-basic/src/shared/transactions/TransactionAddonMenu.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/transactions/TransactionAddonMenuItem.tsx b/examples/transit-react-basic/src/shared/transactions/TransactionAddonMenuItem.tsx similarity index 98% rename from examples/wal-react-basic/src/shared/transactions/TransactionAddonMenuItem.tsx rename to examples/transit-react-basic/src/shared/transactions/TransactionAddonMenuItem.tsx index 17946098..670b5240 100644 --- a/examples/wal-react-basic/src/shared/transactions/TransactionAddonMenuItem.tsx +++ b/examples/transit-react-basic/src/shared/transactions/TransactionAddonMenuItem.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/transactions/TransactionButton.tsx b/examples/transit-react-basic/src/shared/transactions/TransactionButton.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/transactions/TransactionButton.tsx rename to examples/transit-react-basic/src/shared/transactions/TransactionButton.tsx diff --git a/examples/wal-react-basic/src/shared/transactions/TransactionButtonBlock.tsx b/examples/transit-react-basic/src/shared/transactions/TransactionButtonBlock.tsx similarity index 98% rename from examples/wal-react-basic/src/shared/transactions/TransactionButtonBlock.tsx rename to examples/transit-react-basic/src/shared/transactions/TransactionButtonBlock.tsx index b4b6013f..05f40581 100644 --- a/examples/wal-react-basic/src/shared/transactions/TransactionButtonBlock.tsx +++ b/examples/transit-react-basic/src/shared/transactions/TransactionButtonBlock.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/transactions/types.ts b/examples/transit-react-basic/src/shared/transactions/types.ts similarity index 92% rename from examples/wal-react-basic/src/shared/transactions/types.ts rename to examples/transit-react-basic/src/shared/transactions/types.ts index 030c681f..a382408f 100644 --- a/examples/wal-react-basic/src/shared/transactions/types.ts +++ b/examples/transit-react-basic/src/shared/transactions/types.ts @@ -1,4 +1,4 @@ -import { Wallet } from 'wal-eos'; +import { Wallet } from 'eos-transit'; export interface TransactionStatus { inProgress?: boolean; diff --git a/examples/wal-react-basic/src/shared/wallets/WalletList.tsx b/examples/transit-react-basic/src/shared/wallets/WalletList.tsx similarity index 97% rename from examples/wal-react-basic/src/shared/wallets/WalletList.tsx rename to examples/transit-react-basic/src/shared/wallets/WalletList.tsx index c22e580b..ebf43bf1 100644 --- a/examples/wal-react-basic/src/shared/wallets/WalletList.tsx +++ b/examples/transit-react-basic/src/shared/wallets/WalletList.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/wallets/WalletListItem.tsx b/examples/transit-react-basic/src/shared/wallets/WalletListItem.tsx similarity index 99% rename from examples/wal-react-basic/src/shared/wallets/WalletListItem.tsx rename to examples/transit-react-basic/src/shared/wallets/WalletListItem.tsx index 7389d8dc..4be60b1d 100644 --- a/examples/wal-react-basic/src/shared/wallets/WalletListItem.tsx +++ b/examples/transit-react-basic/src/shared/wallets/WalletListItem.tsx @@ -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'; diff --git a/examples/wal-react-basic/src/shared/wallets/WalletListItemInfo.tsx b/examples/transit-react-basic/src/shared/wallets/WalletListItemInfo.tsx similarity index 98% rename from examples/wal-react-basic/src/shared/wallets/WalletListItemInfo.tsx rename to examples/transit-react-basic/src/shared/wallets/WalletListItemInfo.tsx index e788ecef..029c7b42 100644 --- a/examples/wal-react-basic/src/shared/wallets/WalletListItemInfo.tsx +++ b/examples/transit-react-basic/src/shared/wallets/WalletListItemInfo.tsx @@ -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 diff --git a/examples/wal-react-basic/src/shared/wallets/WalletListItemProgress.tsx b/examples/transit-react-basic/src/shared/wallets/WalletListItemProgress.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/wallets/WalletListItemProgress.tsx rename to examples/transit-react-basic/src/shared/wallets/WalletListItemProgress.tsx diff --git a/examples/wal-react-basic/src/shared/wallets/WalletListItemStatus.tsx b/examples/transit-react-basic/src/shared/wallets/WalletListItemStatus.tsx similarity index 97% rename from examples/wal-react-basic/src/shared/wallets/WalletListItemStatus.tsx rename to examples/transit-react-basic/src/shared/wallets/WalletListItemStatus.tsx index 85ce262a..219b0729 100644 --- a/examples/wal-react-basic/src/shared/wallets/WalletListItemStatus.tsx +++ b/examples/transit-react-basic/src/shared/wallets/WalletListItemStatus.tsx @@ -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 diff --git a/examples/wal-react-basic/src/shared/wallets/WalletProviderIcon.tsx b/examples/transit-react-basic/src/shared/wallets/WalletProviderIcon.tsx similarity index 100% rename from examples/wal-react-basic/src/shared/wallets/WalletProviderIcon.tsx rename to examples/transit-react-basic/src/shared/wallets/WalletProviderIcon.tsx diff --git a/examples/wal-react-basic/src/shared/wallets/types.ts b/examples/transit-react-basic/src/shared/wallets/types.ts similarity index 100% rename from examples/wal-react-basic/src/shared/wallets/types.ts rename to examples/transit-react-basic/src/shared/wallets/types.ts diff --git a/examples/wal-react-basic/tsconfig.json b/examples/transit-react-basic/tsconfig.json similarity index 100% rename from examples/wal-react-basic/tsconfig.json rename to examples/transit-react-basic/tsconfig.json diff --git a/examples/wal-react-basic/tsconfig.prod.json b/examples/transit-react-basic/tsconfig.prod.json similarity index 100% rename from examples/wal-react-basic/tsconfig.prod.json rename to examples/transit-react-basic/tsconfig.prod.json diff --git a/examples/wal-react-basic/tsconfig.test.json b/examples/transit-react-basic/tsconfig.test.json similarity index 100% rename from examples/wal-react-basic/tsconfig.test.json rename to examples/transit-react-basic/tsconfig.test.json diff --git a/examples/wal-react-basic/tslint.json b/examples/transit-react-basic/tslint.json similarity index 100% rename from examples/wal-react-basic/tslint.json rename to examples/transit-react-basic/tslint.json diff --git a/examples/wal-react-basic/yarn.lock b/examples/transit-react-basic/yarn.lock similarity index 100% rename from examples/wal-react-basic/yarn.lock rename to examples/transit-react-basic/yarn.lock diff --git a/examples/wal-script-tag/index.html b/examples/transit-script-tag/index.html similarity index 94% rename from examples/wal-script-tag/index.html rename to examples/transit-script-tag/index.html index f6905544..e4e5adae 100644 --- a/examples/wal-script-tag/index.html +++ b/examples/transit-script-tag/index.html @@ -10,10 +10,10 @@ - - - - + + + + + -or using [`unpkg`](https://unpkg.com) (will only work after `wal-eos` is published): +or using [`unpkg`](https://unpkg.com) (will only work after `eos-transit` is published): - + -> Note that you need to attach `eosjs` dependency as a ` +> > OR > -> +> > -> It isn't some custom `eosjs` tailored for `wal-eos`, its original `eosjs` code packaged nicely, so you don't have to. +> It isn't some custom `eosjs` tailored for `eos-transit`, its original `eosjs` code packaged nicely, so you don't have to. > There's also a [wal-script-tag](examples/wal-script-tag) example in our repo that showcases how to attach the libraries and how to use them to sign a transaction. @@ -240,7 +240,7 @@ There's also a [wal-script-tag](examples/wal-script-tag) example in our repo tha ## Motivation -The need for `wal-eos` has formed up around realizing few issues with using EOS blockchain from the browser: +The need for `eos-transit` has formed up around realizing few issues with using EOS blockchain from the browser: - `eosjs`, while being quite nice and feature-complete EOS blockchain integration for JavaScript, is rather low-level, and is tedious to setup for each particular dapp. @@ -257,13 +257,13 @@ This lib's purpose is to ease the burden of setting up multiple signature provid The WAL:E is just a small convenience wrapper around `eosjs` (core) and some code that communicates to 3rd-party wallet apps for transactions signing (wallet providers). Its not extending the EOS blockchain, nor does it extend these 3rd-party apps, it just provides the consistent glue between these pieces of tech, also providing some assisting capabilities like state tracking for wallet connections. -The `wal-eos` is minimalistic and doesn't stand in a way, providing a lot of escape hatches (like there's always a reference to underlying `eosjs` `Api` instance available on `wal-eos` `wallet` instances) and only doing what its designed for. +The `eos-transit` is minimalistic and doesn't stand in a way, providing a lot of escape hatches (like there's always a reference to underlying `eosjs` `Api` instance available on `eos-transit` `wallet` instances) and only doing what its designed for. -There are 3 core pieces of `wal-eos`: +There are 3 core pieces of `eos-transit`: - `WalletAccessContext` is just a configured bunch of wallet providers in the context of a given **dapp** (identified by the passed **app name** when created) on a given **network** (defined with a passed network configuration). Keeps configured providers and is responsible for initializing `Wallet`s and tracking their state. Performs initial `eosjs` RPC access configuration. -- `WalletProvider` is a piece that communicates to a particular 3rd-party application. As the name implies, it "provides" the access to that app in a consistent manner (there's a `WalletProvider` API defined in `wal-eos`). Its not in any way bound to the `WalletAccessContext` - one can even use the `WalletProvider` instance directly if needed. Doesn't track state or anything, but provides the actual functionality to `connect()`, `login()` to the wallet, etc. The actual implementations are not the part of `wal-eos` core and are maintained and installed separately. +- `WalletProvider` is a piece that communicates to a particular 3rd-party application. As the name implies, it "provides" the access to that app in a consistent manner (there's a `WalletProvider` API defined in `eos-transit`). Its not in any way bound to the `WalletAccessContext` - one can even use the `WalletProvider` instance directly if needed. Doesn't track state or anything, but provides the actual functionality to `connect()`, `login()` to the wallet, etc. The actual implementations are not the part of `eos-transit` core and are maintained and installed separately. - `Wallet` represents a certain `WalletProvider` connection in a certain `WalletAccessContext`. It basically wraps the `WalletProvider` (there's a `provider` property on a `Wallet`) and adds some contextual metadata to that - it tracks if the `wallet` is connecting or authenticating, if its connected or authenticated, if there's a connection or authentication error and keeps the related data. The actual `eosjs` `Api` instance is created on the `Wallet` initialization and is maintained as an instance property. @@ -272,16 +272,16 @@ See [Guide](#guide) and [API reference](#api-reference) for more information and ## Guide -This guide covers all the aspects of how `wal-eos` works step-by-step, so feel free to just follow it along. +This guide covers all the aspects of how `eos-transit` works step-by-step, so feel free to just follow it along. ### Basics #### `WalletAccessContext` setup -The first thing in `wal-eos` setup is initializing `WalletAccessContext` instance. It takes an object of `options` that requires `appName`, `network` and `walletProviders` properties to be passed in: +The first thing in `eos-transit` setup is initializing `WalletAccessContext` instance. It takes an object of `options` that requires `appName`, `network` and `walletProviders` properties to be passed in: ```javascript -import { initAccessContext } from 'wal-eos'; +import { initAccessContext } from 'eos-transit'; const accessContext = initAccessContext({ appName: 'my_dapp', @@ -300,11 +300,11 @@ And you're all set! Now use the newly created `accessContext` instance (that imp #### Setting up wallet providers -We'll use our official `wal-eos-scatter-provider` that connects to a [Scatter](https://get-scatter.com) wallet app. Our setup is extended to include the provider instance: +We'll use our official `eos-transit-scatter-provider` that connects to a [Scatter](https://get-scatter.com) wallet app. Our setup is extended to include the provider instance: ```javascript -import { initAccessContext } from 'wal-eos'; -import scatter from 'wal-eos-scatter-provider'; +import { initAccessContext } from 'eos-transit'; +import scatter from 'eos-transit-scatter-provider'; const accessContext = initAccessContext({ appName: 'my_dapp', @@ -320,7 +320,7 @@ const accessContext = initAccessContext({ }); ``` -Note that we're only passing `network` configuration to our `initAccessContext` and not into provider. The `scatter` in the example above is just a `default` export from our Scatter wallet provider package. Don't get confused, by calling this we're just initializing another function (that accepts `network`) that is then used by `wal-eos` to actually create a provider instance. We might have passed this function directly but this nice `wal-eos-scatter-provider` package creates one for us so that we don't have to. +Note that we're only passing `network` configuration to our `initAccessContext` and not into provider. The `scatter` in the example above is just a `default` export from our Scatter wallet provider package. Don't get confused, by calling this we're just initializing another function (that accepts `network`) that is then used by `eos-transit` to actually create a provider instance. We might have passed this function directly but this nice `eos-transit-scatter-provider` package creates one for us so that we don't have to. For the curious, here's how that `scatter` function is looking internally: ```javascript @@ -332,12 +332,12 @@ function scatter() { } ``` -`wal-eos` then internally calls that at appropriate time and provides its `network` configuration. Pretty neat. +`eos-transit` then internally calls that at appropriate time and provides its `network` configuration. Pretty neat. #### Using `stub` wallet provider for testing and demo purposes -There's one more provider we maintain as a package, `wal-eos-stub-provider` that **does nothing** and is there for purely demonstration and testing purposes. The `wallets` created with it always end up with error after specified timeout. +There's one more provider we maintain as a package, `eos-transit-stub-provider` that **does nothing** and is there for purely demonstration and testing purposes. The `wallets` created with it always end up with error after specified timeout. It will soon be extended to accept the pre-configured private key for `eosjs` `JsSignatureProvider` so that its more useful, but for now it just takes the following `options` object: @@ -354,9 +354,9 @@ It will soon be extended to accept the pre-configured private key for `eosjs` `J Lets add that one as a wallet provider to our app too: ```javascript -import { initAccessContext } from 'wal-eos'; -import scatter from 'wal-eos-scatter-provider'; -import stub from 'wal-eos-~~tub~~-provider'; +import { initAccessContext } from 'eos-transit'; +import scatter from 'eos-transit-scatter-provider'; +import stub from 'eos-transit-~~tub~~-provider'; const accessContext = initAccessContext({ appName: 'my_dapp', @@ -386,9 +386,9 @@ Once configured, our `stub` provider will reside amongst `walletProviders` insid #### Global `WalletAccessContext` instance -A quick note about global `accessContext` maintained by `wal-eos`. You can (and most often should) create one yourself, and pass that to different parts of your app by the means of some UI lib/framework you're using (like `props` and "context" in `React`, etc). As many `WalletAccessContext` instances can be created as you'd like. +A quick note about global `accessContext` maintained by `eos-transit`. You can (and most often should) create one yourself, and pass that to different parts of your app by the means of some UI lib/framework you're using (like `props` and "context" in `React`, etc). As many `WalletAccessContext` instances can be created as you'd like. -But for added convenience we also provide the one managed right by the `wal-eos` package. The catch is that you need to **initialize it first**, otherwise accessing the context throws an `Error` (we don't create one automatically because you might not need it and it needs `appName`, providers and network configured anyway). So, initialize it as soon as the app launches, before accessing anything else from the package. +But for added convenience we also provide the one managed right by the `eos-transit` package. The catch is that you need to **initialize it first**, otherwise accessing the context throws an `Error` (we don't create one automatically because you might not need it and it needs `appName`, providers and network configured anyway). So, initialize it as soon as the app launches, before accessing anything else from the package. The difference is in how you access that: @@ -396,7 +396,7 @@ The difference is in how you access that: ```javascript // accessContext.js file -import { initAccessContext } from 'wal-eos'; +import { initAccessContext } from 'eos-transit'; const accessContext = initAccessContext(...); @@ -422,7 +422,7 @@ import accessContext from './accessContext'; ```javascript // initAccessContext.js file -import { initDefaultAccessContext } from 'wal-eos'; +import { initDefaultAccessContext } from 'eos-transit'; const initDefaultAccessContext(...); @@ -440,13 +440,13 @@ import './some-file2'; ... // some-file1.js -import WAL from 'wal-eos'; +import WAL from 'eos-transit'; -// Note that we're importing the context instance from `wal-eos` +// Note that we're importing the context instance from `eos-transit` // The instance is on `WAL.accessContext` ... // some-file2.js -import WAL from 'wal-eos'; +import WAL from 'eos-transit'; // The instance is on `WAL.accessContext` ... ``` @@ -472,7 +472,7 @@ You can use this list to show off to the user as some sort of login options (sug The `Wallet` represents the actual wallet app connection so to say. It represents a "wallet provider" in the context of a certain `appName` and `network`. That means, the `Wallet` instances are initialized with the help of previously created `WalletAccessContext` instance with certain `WalletProvider` as an argument: ```javascript -import { initAccessContext } from 'wal-eos'; +import { initAccessContext } from 'eos-transit'; const accessContext = initAccessContext({ appName: '...', @@ -486,7 +486,7 @@ const walletProvider = accessContext.getWalletProviders()[0]; const wallet = accessContext.initWallet(walletProvider); ``` -You're all set to use the `Wallet`. Now you can connect to that wallet, login into it, obtain the authentication metadata and fetch the EOS account info with the help of `wal-eos`. All these actions are nicely tracked by the `Wallet` instances themselves and by `WalletAccessContext` which created that `Wallet`. +You're all set to use the `Wallet`. Now you can connect to that wallet, login into it, obtain the authentication metadata and fetch the EOS account info with the help of `eos-transit`. All these actions are nicely tracked by the `Wallet` instances themselves and by `WalletAccessContext` which created that `Wallet`. #### Connecting to `Wallet` @@ -528,7 +528,7 @@ wallet.connect().then(() => { After the user is logged in, the `auth` metadata is available on the `wallet.auth` property. It contains `accountName`, `permission` (like `active`, `owner`, etc) and account's `publicKey`. -As well, because `wal-eos` also fetches the user account data (on successful logins) from EOS network itself, the `wallet.accountInfo` contains all the data returned from [EOS RPC API `get_account` endpoint](https://developers.eos.io/eosio-nodeos/reference#get_account). +As well, because `eos-transit` also fetches the user account data (on successful logins) from EOS network itself, the `wallet.accountInfo` contains all the data returned from [EOS RPC API `get_account` endpoint](https://developers.eos.io/eosio-nodeos/reference#get_account). #### Fetching user account data for a `Wallet` @@ -551,11 +551,11 @@ Aside from being returned in a `Promise`, it will also get remembered in the `Wa The whole purpose of using 3rd-party wallet apps is for them to store user private key secure, so that it doesn't leak anywhere and only provide a signature when needed to sign a transaction before pushing that to the EOS blockchain network. -`wal-eos` doesn't change the way signatures are propagated to `eosjs` `Api` instance - instead, it just passes the `WalletProvider` instance `signatureProvider` property directly when creating the `eosjs` `Api` object for a `Wallet`. +`eos-transit` doesn't change the way signatures are propagated to `eosjs` `Api` instance - instead, it just passes the `WalletProvider` instance `signatureProvider` property directly when creating the `eosjs` `Api` object for a `Wallet`. -`Wallet` object maintains the initialized and configured `Api` instance as the `eosApi` property. So, basically "connected" and "authenticated" `Wallet` is the dapp-level convenience, the real signatures are requested by the `eosjs` when there's the need to sign some transaction. `wal-eos` therefore just assists maintaining `Api` instance working and ready to sign transactions and in fact doesn't replace `eosjs` usage with some custom API (we'll be providing some purely convenience wrappers later on but they won't be a part of the `wal-eos` core per se). +`Wallet` object maintains the initialized and configured `Api` instance as the `eosApi` property. So, basically "connected" and "authenticated" `Wallet` is the dapp-level convenience, the real signatures are requested by the `eosjs` when there's the need to sign some transaction. `eos-transit` therefore just assists maintaining `Api` instance working and ready to sign transactions and in fact doesn't replace `eosjs` usage with some custom API (we'll be providing some purely convenience wrappers later on but they won't be a part of the `eos-transit` core per se). -Here's the example of using `eosio.token` contract transaction to transfer some `EOS` from the user currently authenticated with a `Wallet` and to some other user using `Api.transact(...)` (example is taken directly from [`eosjs` docs](https://github.com/EOSIO/eosjs#sending-a-transaction) and "ported" to use `wal-eos`): +Here's the example of using `eosio.token` contract transaction to transfer some `EOS` from the user currently authenticated with a `Wallet` and to some other user using `Api.transact(...)` (example is taken directly from [`eosjs` docs](https://github.com/EOSIO/eosjs#sending-a-transaction) and "ported" to use `eos-transit`): ```javascript await wallet.connect(); @@ -603,14 +603,14 @@ Nothing special here really. Any other `eosjs` `Api` method can be used wuthout ### State tracking -This is the super-useful part of `wal-eos` and is basically something that would have to be implemented on the dapp side otherwise. Its UI frameworks agnostic and employs a very minimalistic state container internally, so no external dependencies are needed for this feature to work. +This is the super-useful part of `eos-transit` and is basically something that would have to be implemented on the dapp side otherwise. Its UI frameworks agnostic and employs a very minimalistic state container internally, so no external dependencies are needed for this feature to work. -`wal-eos` keeps all the state related to `WalletAccessContext` and `Wallet` inside state containers in the respective `WalletAccessContext`/`Wallet` instances. +`eos-transit` keeps all the state related to `WalletAccessContext` and `Wallet` inside state containers in the respective `WalletAccessContext`/`Wallet` instances. #### Subscribing to the state updates -In a real app its usually not enough to just perform some actions like `connect()`, `login()` or `fetchAccountInfo()` - for the sake of a smooth user experience, we need to store some additional metadata somewhere to know if the `wallet` is `connecting` or `authenticating` currently, or maybe there's `authenticationError` somewhere - these are all kinds of data to be stored *somewhere*. `wal-eos` keeps that in the internal state containers and that state is exposed as a `state` property on both `WalletAccessContext` and `Wallet` instances. +In a real app its usually not enough to just perform some actions like `connect()`, `login()` or `fetchAccountInfo()` - for the sake of a smooth user experience, we need to store some additional metadata somewhere to know if the `wallet` is `connecting` or `authenticating` currently, or maybe there's `authenticationError` somewhere - these are all kinds of data to be stored *somewhere*. `eos-transit` keeps that in the internal state containers and that state is exposed as a `state` property on both `WalletAccessContext` and `Wallet` instances. While the `state` property can be accessed directly at any time to inspect, its very handy to know *if* and, more importantly, *when* that state changes so that dapp can react accordingly, like rerender some piece of UI, etc. @@ -814,7 +814,7 @@ Once `destroy()`ed, the `WalletAccessContext` should not be used anymore. #### Provider instance -Creating custom `WalletProvider` is easy with `wal-eos`. The [`WalletProvider` `interface`](https://github.com/eosnewyork/wal-eos/blob/master/packages/wal-eos/src/types.ts#L68) can be used as a guide to what kind of object is expected as a `WalletProvider` instance even if you're not using TypeScript to write the actual provider. +Creating custom `WalletProvider` is easy with `eos-transit`. The [`WalletProvider` `interface`](https://github.com/eosnewyork/eos-transit/blob/master/packages/eos-transit/src/types.ts#L68) can be used as a guide to what kind of object is expected as a `WalletProvider` instance even if you're not using TypeScript to write the actual provider. The actual `WalletProvider` instance is an object: @@ -840,7 +840,7 @@ The actual `WalletProvider` instance is an object: sign(signatureProviderArgs) { ... } }, - // This method is used by `wal-eos` to connect to a provider. + // This method is used by `eos-transit` to connect to a provider. // Should return a Promise of anything. The method accepts the // `appName` as an argument so that the wallet app can, e.g., // request from the user a permission for the certain app. @@ -874,13 +874,13 @@ Here's the link to [`eosjs` `SignatureProvider` reference](https://eosio.github. You can also check how our wallet provider packages are implemented: -- [`wal-eos-scatter-provider`](packages/wal-eos-scatter-provider/src/index.ts) -- [`wal-eos-stub-provider`](packages/wal-eos-stub-provider/src/index.ts) +- [`eos-transit-scatter-provider`](packages/eos-transit-scatter-provider/src/index.ts) +- [`eos-transit-stub-provider`](packages/eos-transit-stub-provider/src/index.ts) #### Provider factory function -The above-described `WalletProvider` instance is whats being kept in the `wal-eos` state internally and is operated on. But before that happens, `wal-eos` needs to create the provider instance in the first place. +The above-described `WalletProvider` instance is whats being kept in the `eos-transit` state internally and is operated on. But before that happens, `eos-transit` needs to create the provider instance in the first place. When `WalletAccessContext` is being created, the `walletProviders` array is used to pass the providers. But what is "providers" we pass in a `walletProviders` array? Note that its not a `WalletProvidier` instance but instead a function with the following signature: @@ -893,14 +893,14 @@ That means that we pass the function that accepts `network` configuration as an #### Higher-order provider factory function -Its also advisable to create a higher order `function` (which is a `function` that returns another `function`). The `makeWalletProvider` function could be created by another function if there's any additional arguments we want to pass to the provider just like we do with our [`wal-eos-stub-provider`](packages/wal-eos-stub-provider/src/index.ts). +Its also advisable to create a higher order `function` (which is a `function` that returns another `function`). The `makeWalletProvider` function could be created by another function if there's any additional arguments we want to pass to the provider just like we do with our [`eos-transit-stub-provider`](packages/eos-transit-stub-provider/src/index.ts). We encourage to use the higher-order factory functions for all custom providers for consistency: ```javascript -import { initAccessContext } from 'wal-eos'; -import stub from 'wal-eos-stub-provider'; -import scatter from 'wal-eos-scatter-provider'; +import { initAccessContext } from 'eos-transit'; +import stub from 'eos-transit-stub-provider'; +import scatter from 'eos-transit-scatter-provider'; import myProvider from 'my-own-provider-package'; const accessContext = initAccessContext({ @@ -928,4 +928,4 @@ Good luck writing your own custom wallet provider! ## Contribution -Please see the [Contribution Guide](https://github.com/eosnewyork/wal-eos/#contribution) in the root `README`. +Please see the [Contribution Guide](https://github.com/eosnewyork/eos-transit/#contribution) in the root `README`. diff --git a/packages/wal-eos/package.json b/packages/eos-transit/package.json similarity index 98% rename from packages/wal-eos/package.json rename to packages/eos-transit/package.json index 9133c6c9..7e93e635 100644 --- a/packages/wal-eos/package.json +++ b/packages/eos-transit/package.json @@ -1,5 +1,5 @@ { - "name": "wal-eos", + "name": "eos-transit", "version": "0.0.3", "description": "Wallet Access Layer for EOS Blockchain Networks", "license": "UNLICENSED", diff --git a/packages/wal-eos/src/index.ts b/packages/eos-transit/src/index.ts similarity index 100% rename from packages/wal-eos/src/index.ts rename to packages/eos-transit/src/index.ts diff --git a/packages/wal-eos/src/stateContainer.ts b/packages/eos-transit/src/stateContainer.ts similarity index 100% rename from packages/wal-eos/src/stateContainer.ts rename to packages/eos-transit/src/stateContainer.ts diff --git a/packages/wal-eos/src/types.ts b/packages/eos-transit/src/types.ts similarity index 100% rename from packages/wal-eos/src/types.ts rename to packages/eos-transit/src/types.ts diff --git a/packages/wal-eos/src/util.ts b/packages/eos-transit/src/util.ts similarity index 100% rename from packages/wal-eos/src/util.ts rename to packages/eos-transit/src/util.ts diff --git a/packages/wal-eos/src/wallet.ts b/packages/eos-transit/src/wallet.ts similarity index 100% rename from packages/wal-eos/src/wallet.ts rename to packages/eos-transit/src/wallet.ts diff --git a/packages/wal-eos/src/walletAccessContext.ts b/packages/eos-transit/src/walletAccessContext.ts similarity index 100% rename from packages/wal-eos/src/walletAccessContext.ts rename to packages/eos-transit/src/walletAccessContext.ts diff --git a/packages/wal-eos/tsconfig.json b/packages/eos-transit/tsconfig.json similarity index 100% rename from packages/wal-eos/tsconfig.json rename to packages/eos-transit/tsconfig.json diff --git a/packages/wal-eos/tsconfig.webpack.json b/packages/eos-transit/tsconfig.webpack.json similarity index 100% rename from packages/wal-eos/tsconfig.webpack.json rename to packages/eos-transit/tsconfig.webpack.json diff --git a/packages/wal-eos/webpack.config.eosjs.ts b/packages/eos-transit/webpack.config.eosjs.ts similarity index 100% rename from packages/wal-eos/webpack.config.eosjs.ts rename to packages/eos-transit/webpack.config.eosjs.ts diff --git a/packages/wal-eos/webpack.config.ts b/packages/eos-transit/webpack.config.ts similarity index 94% rename from packages/wal-eos/webpack.config.ts rename to packages/eos-transit/webpack.config.ts index 50f40327..0dc15166 100644 --- a/packages/wal-eos/webpack.config.ts +++ b/packages/eos-transit/webpack.config.ts @@ -22,7 +22,7 @@ const config: Configuration = { extensions: ['.tsx', '.ts', '.js'] }, output: { - filename: 'wal-eos.min.js', + filename: 'eos-transit.min.js', path: path.resolve(__dirname, 'umd'), libraryTarget: 'umd', library: 'WAL', diff --git a/packages/wal-eos/yarn.lock b/packages/eos-transit/yarn.lock similarity index 100% rename from packages/wal-eos/yarn.lock rename to packages/eos-transit/yarn.lock diff --git a/webpack.config.ts b/webpack.config.ts index 803350d4..2b2c5fa1 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -4,9 +4,9 @@ import { Configuration, ProvidePlugin } from 'webpack'; const commonConfig: Configuration = { mode: 'production', // entry: { - // 'wal-eos': './src/index.ts', - // 'wal-eos-scatter': './src/walletProviders/scatter/index.ts', - // 'wal-eos-stub': './src/walletProviders/stub.ts'. + // 'eos-transit': './src/index.ts', + // 'eos-transit-scatter': './src/walletProviders/scatter/index.ts', + // 'eos-transit-stub': './src/walletProviders/stub.ts'. // }, module: { rules: [ @@ -43,7 +43,7 @@ const commonConfig: Configuration = { const libConfig: Configuration = { ...commonConfig, entry: { - 'wal-eos': './src/index.ts' + 'eos-transit': './src/index.ts' }, output: { filename: '[name].min.js', @@ -61,7 +61,7 @@ const providersConfig: Configuration = { stub: './src/walletProviders/stub.ts' }, output: { - filename: 'wal-eos-[name].min.js', + filename: 'eos-transit-[name].min.js', path: path.resolve(__dirname, 'dist'), libraryTarget: 'umd', library: ['WAL', 'providers', '[name]'],