Skip to content

Commit

Permalink
rename pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
yeager-eren committed Feb 19, 2024
1 parent 4601f49 commit d86c87c
Show file tree
Hide file tree
Showing 433 changed files with 815 additions and 803 deletions.
4 changes: 2 additions & 2 deletions docs/prerelease.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ https://github.com/rango-exchange/widget-examples
Update `widget-embedded` version to latest ***next*** version using this command:

```shell
yarn add @rango-dev/widget-embedded@next
yarn add @yeager-dev/widget-embedded@next
```

Note: don’t commit your changes to the repo, We will doing it after release the production successfully which means we only commit `production` version to the repo. More details is on `Post Release` document.
Expand Down Expand Up @@ -129,4 +129,4 @@ Ensure you send a highlight note on Telegram [like this](https://t.me/c/17972298

**NOTE 2:**

Ensure you update widget-examples using `yarn add @rango-dev/widget-embedded@latest`. Then open a new PR on the repo to ensure all examples are on the latest version.
Ensure you update widget-examples using `yarn add @yeager-dev/widget-embedded@latest`. Then open a new PR on the repo to ensure all examples are on the latest version.
12 changes: 6 additions & 6 deletions examples/queue-manager-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rango-dev/queue-manager-demo",
"name": "@yeager-dev/queue-manager-demo",
"version": "0.13.1-next.14",
"license": "MIT",
"private": true,
Expand All @@ -15,11 +15,11 @@
"rango-sdk": "^0.1.45"
},
"dependencies": {
"@rango-dev/provider-all": "^0.27.1-next.2",
"@rango-dev/queue-manager-rango-preset": "^0.27.1-next.2",
"@rango-dev/queue-manager-react": "^0.25.1-next.0",
"@rango-dev/wallets-react": "^0.13.1-next.2",
"@rango-dev/wallets-shared": "^0.27.1-next.2",
"@yeager-dev/provider-all": "^0.27.1-next.2",
"@yeager-dev/queue-manager-rango-preset": "^0.27.1-next.2",
"@yeager-dev/queue-manager-react": "^0.25.1-next.0",
"@yeager-dev/wallets-react": "^0.13.1-next.2",
"@yeager-dev/wallets-shared": "^0.27.1-next.2",
"bignumber.js": "^9.1.1",
"ethers": "^5.7.2",
"rango-sdk-basic": "^0.1.44",
Expand Down
2 changes: 1 addition & 1 deletion examples/queue-manager-demo/readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @rango-dev/queue-manager-demo
# @yeager-dev/queue-manager-demo
8 changes: 4 additions & 4 deletions examples/queue-manager-demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React, { useMemo } from 'react';
import { Provider as ManagerProvider } from '@rango-dev/queue-manager-react';
import { Provider as ManagerProvider } from '@yeager-dev/queue-manager-react';
import { FlowsList } from './components/FlowsList';
import { meta } from './flows/rango/mock';
import { useWallets } from '@rango-dev/wallets-react';
import { useWallets } from '@yeager-dev/wallets-react';
import { metamaskWallet } from './flows/rango/mock';
import { Wallet } from './flows/rango/types';
import { Network, WalletType } from '@rango-dev/wallets-shared';
import { Network, WalletType } from '@yeager-dev/wallets-shared';
import { Wallets } from './components/Wallets';
import { History } from './components/History';
import {
SwapQueueContext,
makeQueueDefinition,
} from '@rango-dev/queue-manager-rango-preset';
} from '@yeager-dev/queue-manager-rango-preset';
import { getConfig } from './configs';
const wallet: Wallet = metamaskWallet;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useManager } from '@rango-dev/queue-manager-react';
import { useManager } from '@yeager-dev/queue-manager-react';
import React, { useEffect, useState } from 'react';
import { requestSwap, urlToToken } from '../../flows/rango/helpers';
import { FlowRunner } from '../FlowRunner';
import { WalletType } from '@rango-dev/wallets-shared';
import { WalletType } from '@yeager-dev/wallets-shared';

interface PropTypes {
connectedWallets: WalletType[];
Expand Down
10 changes: 5 additions & 5 deletions examples/queue-manager-demo/src/components/History/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useManager } from "@rango-dev/queue-manager-react";
import React from "react";
import { useManager } from '@yeager-dev/queue-manager-react';
import React from 'react';

function History() {
const id = "xxxx-x-xxx-x-xx-x-x-x--xx";
const id = 'xxxx-x-xxx-x-xx-x-x-x--xx';
const { manager } = useManager();
const storage = manager?.getAll() || new Map();
const queues: React.ReactNode[] = [];
Expand All @@ -13,7 +13,7 @@ function History() {
queues.push(
<div className="q" id={`q-${k}`}>
<h4>
Queue {v.name} ({k}){" "}
Queue {v.name} ({k}){' '}
<span className={`status ${v.list.state.status.toLowerCase()}`}>
{v.list.state.status}
</span>
Expand All @@ -24,7 +24,7 @@ function History() {
return (
<div className="task" id={`t-${id}`}>
<div className="id tooltip">
Task ...{id.slice(-4)}{" "}
Task ...{id.slice(-4)}{' '}
<span className="tooltiptext">{id}</span>
</div>
<div className={`status ${taskStatus.toLowerCase()}`}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { useWallets } from '@rango-dev/wallets-react';
import { useWallets } from '@yeager-dev/wallets-react';

function Wallets() {
const { connect, providers, state, disconnect } = useWallets();
Expand Down
8 changes: 4 additions & 4 deletions examples/queue-manager-demo/src/flows/rango/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type {
AllBlockchains,
Network,
WalletType,
} from '@rango-dev/wallets-shared';
} from '@yeager-dev/wallets-shared';
import type { BestRouteRequest } from 'rango-sdk';
import type { CheckApprovalResponse } from 'rango-sdk-basic';
import type {
Expand All @@ -31,13 +31,13 @@ import type {
PendingSwapStep,
} from 'rango-types';

import { SUPPORTED_ETH_CHAINS as XDEFI_WALLET_SUPPORTED_EVM_CHAINS } from '@rango-dev/provider-xdefi/src/constants';
import { readAccountAddress } from '@rango-dev/wallets-react';
import { SUPPORTED_ETH_CHAINS as XDEFI_WALLET_SUPPORTED_EVM_CHAINS } from '@yeager-dev/provider-xdefi/src/constants';
import { readAccountAddress } from '@yeager-dev/wallets-react';
import {
Networks,
WalletTypes,
XDEFI_WALLET_SUPPORTED_NATIVE_CHAINS,
} from '@rango-dev/wallets-shared';
} from '@yeager-dev/wallets-shared';
import { BigNumber } from 'bignumber.js';
import { ethers } from 'ethers';
import {
Expand Down
2 changes: 1 addition & 1 deletion examples/queue-manager-demo/src/flows/rango/mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Networks, WalletTypes } from '@rango-dev/wallets-shared';
import { Meta, Networks, WalletTypes } from '@yeager-dev/wallets-shared';
import { RawAccounts, Wallet } from './types';

const evmAddress = '0x2702d89c1c8658b49c45dd460deebcc45faec03c';
Expand Down
4 changes: 2 additions & 2 deletions examples/queue-manager-demo/src/flows/rango/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import type {
Transaction,
TransferTransaction,
WalletType,
} from '@rango-dev/wallets-shared';
} from '@yeager-dev/wallets-shared';
import type BigNumber from 'bignumber.js';

import { Networks } from '@rango-dev/wallets-shared';
import { Networks } from '@yeager-dev/wallets-shared';

export type WalletTypeAndAddress = {
walletType: WalletType;
Expand Down
6 changes: 3 additions & 3 deletions examples/queue-manager-demo/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useEffect, useState } from 'react';
import { createRoot } from 'react-dom/client';
import { Events, Provider } from '@rango-dev/wallets-react';
import { allProviders } from '@rango-dev/provider-all';
import { Events, Provider } from '@yeager-dev/wallets-react';
import { allProviders } from '@yeager-dev/provider-all';
import { RangoClient } from 'rango-sdk';
import { App } from './App';
import { WalletType } from '@rango-dev/wallets-shared';
import { WalletType } from '@yeager-dev/wallets-shared';
import { WC_PROJECT_ID } from './configs';

const providers = allProviders({
Expand Down
6 changes: 3 additions & 3 deletions examples/wallets-adapter-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rango-dev/wallets-adapter-demo",
"name": "@yeager-dev/wallets-adapter-demo",
"version": "0.14.1-next.22",
"license": "MIT",
"private": true,
Expand All @@ -11,8 +11,8 @@
"clean": "rimraf .parcel-cache && rimraf dist"
},
"dependencies": {
"@rango-dev/provider-all": "^0.27.1-next.2",
"@rango-dev/wallets-adapter": "^0.22.2-next.10",
"@yeager-dev/provider-all": "^0.27.1-next.2",
"@yeager-dev/wallets-adapter": "^0.22.2-next.10",
"rango-sdk": "^0.1.45",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/wallets-adapter-demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { allProviders } from '@rango-dev/provider-all';
import { AdapterProvider } from '@rango-dev/wallets-adapter';
import { allProviders } from '@yeager-dev/provider-all';
import { AdapterProvider } from '@yeager-dev/wallets-adapter';
import { RangoClient } from 'rango-sdk';
import React, { useEffect, useState } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useAdapter } from '@rango-dev/wallets-adapter';
import { useAdapter } from '@yeager-dev/wallets-adapter';
import React from 'react';

function WalletsModal() {
Expand Down
10 changes: 5 additions & 5 deletions examples/wallets-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rango-dev/wallets-demo",
"name": "@yeager-dev/wallets-demo",
"version": "0.13.1-next.22",
"license": "MIT",
"private": true,
Expand All @@ -11,10 +11,10 @@
"clean": "rimraf .parcel-cache && rimraf dist"
},
"dependencies": {
"@rango-dev/provider-all": "^0.27.1-next.2",
"@rango-dev/ui": "^0.28.2-next.10",
"@rango-dev/wallets-react": "^0.13.1-next.2",
"@rango-dev/wallets-shared": "^0.27.1-next.2",
"@yeager-dev/provider-all": "^0.27.1-next.2",
"@yeager-dev/ui": "^0.28.2-next.10",
"@yeager-dev/wallets-react": "^0.13.1-next.2",
"@yeager-dev/wallets-shared": "^0.27.1-next.2",
"rango-sdk": "^0.1.45",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/wallets-demo/readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @rango-dev/wallets-demo
# @yeager-dev/wallets-demo
6 changes: 3 additions & 3 deletions examples/wallets-demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { BlockchainMeta, Token } from 'rango-sdk';

import { allProviders } from '@rango-dev/provider-all';
import { ErrorIcon, Spinner, Typography } from '@rango-dev/ui';
import { Provider } from '@rango-dev/wallets-react';
import { allProviders } from '@yeager-dev/provider-all';
import { ErrorIcon, Spinner, Typography } from '@yeager-dev/ui';
import { Provider } from '@yeager-dev/wallets-react';
import { RangoClient } from 'rango-sdk';
import React, { useEffect, useState } from 'react';

Expand Down
10 changes: 5 additions & 5 deletions examples/wallets-demo/src/components/List/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {
Network,
WalletInfo,
WalletType,
} from '@rango-dev/wallets-shared';
} from '@yeager-dev/wallets-shared';
import type { Token } from 'rango-sdk';

import {
Expand All @@ -13,10 +13,10 @@ import {
Spinner,
Tooltip,
Typography,
} from '@rango-dev/ui';
import { InfoCircleIcon } from '@rango-dev/ui/src/components/Icon';
import { readAccountAddress, useWallets } from '@rango-dev/wallets-react';
import { detectInstallLink, Networks } from '@rango-dev/wallets-shared';
} from '@yeager-dev/ui';
import { InfoCircleIcon } from '@yeager-dev/ui/src/components/Icon';
import { readAccountAddress, useWallets } from '@yeager-dev/wallets-react';
import { detectInstallLink, Networks } from '@yeager-dev/wallets-shared';
import React, { useState } from 'react';
import './styles.css';

Expand Down
8 changes: 4 additions & 4 deletions examples/wallets-demo/src/components/List/List.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { WalletInfo } from '@rango-dev/wallets-shared';
import type { WalletInfo } from '@yeager-dev/wallets-shared';
import type { Token } from 'rango-sdk';

import { allProviders } from '@rango-dev/provider-all';
import { useWallets } from '@rango-dev/wallets-react';
import { sortWalletsBasedOnState } from '@rango-dev/wallets-shared';
import { allProviders } from '@yeager-dev/provider-all';
import { useWallets } from '@yeager-dev/wallets-react';
import { sortWalletsBasedOnState } from '@yeager-dev/wallets-shared';
import React from 'react';

import { WC_PROJECT_ID } from '../../constants';
Expand Down
8 changes: 4 additions & 4 deletions examples/wallets-demo/src/components/List/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { WalletType } from '@rango-dev/wallets-shared';
import type { WalletType } from '@yeager-dev/wallets-shared';
import type {
Asset,
BestRouteRequest,
Expand All @@ -7,9 +7,9 @@ import type {
TransactionType,
} from 'rango-sdk';

import { Button, Divider, Modal, styled, Typography } from '@rango-dev/ui';
import { useWallets } from '@rango-dev/wallets-react';
import { isEvmAddress, Networks } from '@rango-dev/wallets-shared';
import { Button, Divider, Modal, styled, Typography } from '@yeager-dev/ui';
import { useWallets } from '@yeager-dev/wallets-react';
import { isEvmAddress, Networks } from '@yeager-dev/wallets-shared';
import {
isCosmosBlockchain,
isEvmBlockchain,
Expand Down
4 changes: 2 additions & 2 deletions examples/wallets-demo/src/components/Swap.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { BlockchainMeta, Token } from 'rango-sdk';

import { Image, styled, Typography } from '@rango-dev/ui';
import { ArrowRightIcon } from '@rango-dev/ui/src/components/Icon';
import { Image, styled, Typography } from '@yeager-dev/ui';
import { ArrowRightIcon } from '@yeager-dev/ui/src/components/Icon';
import React from 'react';

interface swap {
Expand Down
6 changes: 3 additions & 3 deletions examples/wallets-demo/src/helper.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Network } from '@rango-dev/wallets-shared';
import type { Network } from '@yeager-dev/wallets-shared';
import type { BlockchainMeta } from 'rango-sdk';

import { readAccountAddress } from '@rango-dev/wallets-react';
import { Networks } from '@rango-dev/wallets-shared';
import { readAccountAddress } from '@yeager-dev/wallets-react';
import { Networks } from '@yeager-dev/wallets-shared';
import { isEvmBlockchain } from 'rango-sdk';

export type Blockchain = {
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
"clean-root": "rimraf .parcel-cache && nx clear-cache",
"clean": "yarn clean-root && nx run-many --target=clean",
"prepare": "husky install && yarn i18n:compile",
"build:signers": "nx run-many --target=build --projects=@rango-dev/signer-* --parallel=5",
"build:wallets": "nx run-many --target=build --projects=@rango-dev/signer-*,@rango-dev/wallets-*,@rango-dev/provider-* --exclude @rango-dev/wallets-demo --parallel=5",
"build:queue-manager": "nx run-many --target=build --projects=@rango-dev/queue-manager-* --exclude=@rango-dev/queue-manager-demo",
"build:widget": "nx run-many --target=build --projects=@rango-dev/widget-*",
"build:iframe": "nx run-many --target=build --projects=@rango-dev/widget-iframe",
"build:signers": "nx run-many --target=build --projects=@yeager-dev/signer-* --parallel=5",
"build:wallets": "nx run-many --target=build --projects=@yeager-dev/signer-*,@yeager-dev/wallets-*,@yeager-dev/provider-* --exclude @yeager-dev/wallets-demo --parallel=5",
"build:queue-manager": "nx run-many --target=build --projects=@yeager-dev/queue-manager-* --exclude=@yeager-dev/queue-manager-demo",
"build:widget": "nx run-many --target=build --projects=@yeager-dev/widget-*",
"build:iframe": "nx run-many --target=build --projects=@yeager-dev/widget-iframe",
"build:all": "nx run-many --target=build",
"build": "nx affected --target=build --parallel=3",
"build:non-demo": "nx affected --target=build --parallel=3 --exclude=@rango-dev/queue-manager-demo,@rango-dev/wallets-demo,@rango-dev/wallets-adapter-demo,@rango-dev/widget-app,@rango-dev/widget-playground",
"dev:ui": "nx run-many --target=storybook --projects=@rango-dev/ui",
"dev:wallets": "node ./scripts/dev-watch/command.mjs --project @rango-dev/wallets-demo",
"dev:queue-manager": "node ./scripts/dev-watch/command.mjs --project @rango-dev/queue-manager-demo",
"dev:widget:type-checker": "node ./scripts/dev-ts-check/command.mjs --project @rango-dev/widget-app",
"build:non-demo": "nx affected --target=build --parallel=3 --exclude=@yeager-dev/queue-manager-demo,@yeager-dev/wallets-demo,@yeager-dev/wallets-adapter-demo,@yeager-dev/widget-app,@yeager-dev/widget-playground",
"dev:ui": "nx run-many --target=storybook --projects=@yeager-dev/ui",
"dev:wallets": "node ./scripts/dev-watch/command.mjs --project @yeager-dev/wallets-demo",
"dev:queue-manager": "node ./scripts/dev-watch/command.mjs --project @yeager-dev/queue-manager-demo",
"dev:widget:type-checker": "node ./scripts/dev-ts-check/command.mjs --project @yeager-dev/widget-app",
"dev:widget:dev-server": "yarn --cwd ./widget/app/ dev",
"dev:widget": "npm-run-all --parallel dev:widget:dev-server dev:widget:type-checker",
"dev:wallets-adapter": "node ./scripts/dev-watch/command.mjs --project @rango-dev/wallets-adapter-demo",
"dev:playground:type-checker": "node ./scripts/dev-ts-check/command.mjs --project @rango-dev/widget-playground",
"dev:wallets-adapter": "node ./scripts/dev-watch/command.mjs --project @yeager-dev/wallets-adapter-demo",
"dev:playground:type-checker": "node ./scripts/dev-ts-check/command.mjs --project @yeager-dev/widget-playground",
"dev:playground:dev-server": "yarn --cwd ./widget/playground/ dev",
"dev:playground": "npm-run-all --parallel dev:playground:dev-server dev:playground:type-checker",
"lint": "nx run-many --target=lint",
Expand Down
2 changes: 1 addition & 1 deletion queue-manager/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rango-dev/queue-manager-core",
"name": "@yeager-dev/queue-manager-core",
"version": "0.25.1-next.0",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion queue-manager/core/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @rango-dev/queue-manager-core
# @yeager-dev/queue-manager-core

Queue Manager Core
10 changes: 5 additions & 5 deletions queue-manager/rango-preset/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rango-dev/queue-manager-rango-preset",
"name": "@yeager-dev/queue-manager-rango-preset",
"version": "0.27.1-next.2",
"license": "MIT",
"type": "module",
Expand All @@ -21,10 +21,10 @@
"lint": "eslint \"**/*.{ts,tsx}\" --ignore-path ../../.eslintignore"
},
"peerDependencies": {
"@rango-dev/queue-manager-core": "*",
"@rango-dev/queue-manager-react": "*",
"@rango-dev/wallets-core": "*",
"@rango-dev/wallets-shared": "*",
"@yeager-dev/queue-manager-core": "*",
"@yeager-dev/queue-manager-react": "*",
"@yeager-dev/wallets-core": "*",
"@yeager-dev/wallets-shared": "*",
"@sentry/browser": "*",
"bignumber.js": "*",
"rango-sdk": "*",
Expand Down
2 changes: 1 addition & 1 deletion queue-manager/rango-preset/readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @rango-dev/queue-manager-rango-preset
# @yeager-dev/queue-manager-rango-preset
2 changes: 1 addition & 1 deletion queue-manager/rango-preset/src/actions/checkStatus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SwapQueueContext, SwapStorage } from '../types';
import type { ExecuterActions } from '@rango-dev/queue-manager-core';
import type { ExecuterActions } from '@yeager-dev/queue-manager-core';
import type { Transaction, TransactionStatusResponse } from 'rango-sdk';
import type { GenericSigner } from 'rango-types';

Expand Down
Loading

0 comments on commit d86c87c

Please sign in to comment.