Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updated npm packages #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: npm publish
- run: yarn changeset publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLIC_PUBLISH_TOKEN}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ This library currently supports the following blockchain networks:
To use this library in your TypeScript project, you can install it via npm or yarn:

```bash
npm install @xdefi-tech/chains
npm install @ctrl-tech/chains
# or
yarn add @xdefi-tech/chains
yarn add @ctrl-tech/chains
```

## Manifest
Expand Down Expand Up @@ -146,8 +146,8 @@ await provider.broadcast([message]);
- The number of retry attempts and the order in which the alternative data sources are used can be customized based on the requirements and preferences of the application.

```typescript
import { FallbackDataSource } from '@xdefi-tech/chains-core';
import { EvmProvider, EVM_MANIFESTS } from '@xdefi-tech/chains-evm';
import { FallbackDataSource } from '@ctrl-tech/chains-core';
import { EvmProvider, EVM_MANIFESTS } from '@ctrl-tech/chains-evm';

const provider = new EvmProvider(
new FallbackDataSource(
Expand Down
4 changes: 2 additions & 2 deletions examples/expo-example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {
SOLANA_MANIFEST,
SolanaProvider,
ChainDataSource, // <=== has been changed
} from '@xdefi-tech/chains-solana';
} from '@ctrl-tech/chains-solana';
import { Buffer } from "buffer";
import 'react-native-get-random-values';
// import { SeedPhraseSigner } from "@xdefi-tech/chains-solana/dist/signers/react-native";
// import { SeedPhraseSigner } from "@ctrl-tech/chains-solana/dist/signers/react-native";

function App() {
const [nft, setNft] = useState(null)
Expand Down
12 changes: 6 additions & 6 deletions examples/expo-example/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
- 4fe86fc: feat: pin all package dependencies to strict versions
feat: update ledger signer initialisation stage, currently required transport. see README for the details
- Updated dependencies [4fe86fc]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]

## 1.1.1

### Patch Changes

- af2734d: Bump all packages to apply changes from develop branch
- Updated dependencies [af2734d]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]

## 1.1.0

Expand All @@ -26,28 +26,28 @@
### Patch Changes

- Updated dependencies [346e09e]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]

## 1.0.3

### Patch Changes

- 680b517: Add test coverage, bunch minor fixes
- Updated dependencies [680b517]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]

## 1.0.2

### Patch Changes

- 1efef82: Change import from mjs to common js
- Updated dependencies [1efef82]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]

## 1.0.1

### Patch Changes

- cca1491: Update chains-controller, add providerList to each chain. Fix solana memo message
- Updated dependencies [cca1491]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
2 changes: 1 addition & 1 deletion examples/expo-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@ethersproject/shims": "5.7.0",
"@xdefi-tech/chains-controller": "*",
"@ctrl-tech/chains-controller": "*",
"expo": "~48.0.15",
"expo-status-bar": "~1.4.4",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/expo-example/trust-wallet.signer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Signer, SignerDecorator } from '@xdefi-tech/chains-core';
import { Signer, SignerDecorator } from '@ctrl-tech/chains-core';
// import * as ExpoTrustWallet from 'expo-trust-wallet';

@SignerDecorator(Signer.SignerType.TRUST_WALLET)
Expand Down
132 changes: 66 additions & 66 deletions examples/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@
- 4fe86fc: feat: pin all package dependencies to strict versions
feat: update ledger signer initialisation stage, currently required transport. see README for the details
- Updated dependencies [4fe86fc]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]

## 0.2.1

### Patch Changes

- af2734d: Bump all packages to apply changes from develop branch
- Updated dependencies [af2734d]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]

## 0.2.0

Expand All @@ -46,68 +46,68 @@
### Patch Changes

- Updated dependencies [346e09e]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]

## 0.1.3

### Patch Changes

- 680b517: Add test coverage, bunch minor fixes
- Updated dependencies [680b517]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]

## 0.1.2

### Patch Changes

- 1efef82: Change import from mjs to common js
- Updated dependencies [1efef82]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]

## 0.1.1

### Patch Changes

- cca1491: Update chains-controller, add providerList to each chain. Fix solana memo message
- Updated dependencies [cca1491]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @xdefi-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
- @ctrl-tech/[email protected]
2 changes: 1 addition & 1 deletion examples/react/components/balances.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ListItem,
ListItemText,
} from '@mui/material';
import { Coin, Chain } from '@xdefi-tech/chains-core';
import { Coin, Chain } from '@ctrl-tech/chains-core';
import { isEmpty } from 'lodash';

export interface IBalancesComponent {
Expand Down
4 changes: 2 additions & 2 deletions examples/react/components/broadcast.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
TextField,
Typography,
} from '@mui/material';
import { Chain, GasFeeSpeed, MsgEncoding } from '@xdefi-tech/chains-core';
import { PrivateKeySigner } from '@xdefi-tech/chains-binance/dist/signers/web';
import { Chain, GasFeeSpeed, MsgEncoding } from '@ctrl-tech/chains-core';
import { PrivateKeySigner } from '@ctrl-tech/chains-binance/dist/signers/web';

export interface IBroadcastComponent {
provider: Chain.Provider;
Expand Down
2 changes: 1 addition & 1 deletion examples/react/components/transactions.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ListItem,
ListItemText,
} from '@mui/material';
import { Chain, Transaction } from '@xdefi-tech/chains-core';
import { Chain, Transaction } from '@ctrl-tech/chains-core';

export interface ITransactionsComponent {
provider: Chain.Provider;
Expand Down
20 changes: 10 additions & 10 deletions examples/react/context/chains.context.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import React from 'react';
import { ChainController } from '@xdefi-tech/chains-controller';
import { EVM_MANIFESTS, EvmProvider } from '@xdefi-tech/chains-evm';
import { COSMOS_MANIFESTS, CosmosProvider } from '@xdefi-tech/chains-cosmos';
import { BINANCE_MANIFEST, BinanceProvider } from '@xdefi-tech/chains-binance';
import { SOLANA_MANIFEST, SolanaProvider } from '@xdefi-tech/chains-solana';
import { THORCHAIN_MANIFESTS, ThorProvider } from '@xdefi-tech/chains-thor';
import { BITCOIN_MANIFEST, BitcoinProvider } from '@xdefi-tech/chains-bitcoin';
import { ChainController } from '@ctrl-tech/chains-controller';
import { EVM_MANIFESTS, EvmProvider } from '@ctrl-tech/chains-evm';
import { COSMOS_MANIFESTS, CosmosProvider } from '@ctrl-tech/chains-cosmos';
import { BINANCE_MANIFEST, BinanceProvider } from '@ctrl-tech/chains-binance';
import { SOLANA_MANIFEST, SolanaProvider } from '@ctrl-tech/chains-solana';
import { THORCHAIN_MANIFESTS, ThorProvider } from '@ctrl-tech/chains-thor';
import { BITCOIN_MANIFEST, BitcoinProvider } from '@ctrl-tech/chains-bitcoin';
import {
LITECOIN_MANIFEST,
LitecoinProvider,
} from '@xdefi-tech/chains-litecoin';
} from '@ctrl-tech/chains-litecoin';
import {
DOGECOIN_MANIFEST,
DogecoinProvider,
} from '@xdefi-tech/chains-dogecoin';
} from '@ctrl-tech/chains-dogecoin';
import {
BITCOINCASH_MANIFEST,
BitcoinCashProvider,
} from '@xdefi-tech/chains-bitcoincash';
} from '@ctrl-tech/chains-bitcoincash';

export const ChainsContextDefaultValue = new ChainController();

Expand Down
22 changes: 11 additions & 11 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@mui/material": "5.11.12",
"@xdefi-tech/chains-binance": "*",
"@xdefi-tech/chains-bitcoin": "*",
"@xdefi-tech/chains-bitcoincash": "*",
"@xdefi-tech/chains-dogecoin": "*",
"@xdefi-tech/chains-litecoin": "*",
"@xdefi-tech/chains-core": "*",
"@xdefi-tech/chains-evm": "*",
"@xdefi-tech/chains-thor": "*",
"@xdefi-tech/chains-solana": "*",
"@xdefi-tech/chains-cosmos": "*",
"@xdefi-tech/chains-controller": "*",
"@ctrl-tech/chains-binance": "*",
"@ctrl-tech/chains-bitcoin": "*",
"@ctrl-tech/chains-bitcoincash": "*",
"@ctrl-tech/chains-dogecoin": "*",
"@ctrl-tech/chains-litecoin": "*",
"@ctrl-tech/chains-core": "*",
"@ctrl-tech/chains-evm": "*",
"@ctrl-tech/chains-thor": "*",
"@ctrl-tech/chains-solana": "*",
"@ctrl-tech/chains-cosmos": "*",
"@ctrl-tech/chains-controller": "*",
"ethers": "5.6.4",
"next": "12.3.0",
"react": "18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/react/pages/ibc-transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
ChainMsg,
CosmosProvider,
IndexerDataSource,
} from '@xdefi-tech/chains-cosmos';
import { SeedPhraseSigner } from '@xdefi-tech/chains-cosmos/dist/signers/web';
import { GasFeeSpeed } from '@xdefi-tech/chains-core';
} from '@ctrl-tech/chains-cosmos';
import { SeedPhraseSigner } from '@ctrl-tech/chains-cosmos/dist/signers/web';
import { GasFeeSpeed } from '@ctrl-tech/chains-core';

const IBCTokenTranfer = () => {
const [sourceChain, setSourceChain] = useState('osmosis');
Expand Down
2 changes: 1 addition & 1 deletion examples/react/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TextField,
Box,
} from '@mui/material';
import { Chain } from '@xdefi-tech/chains-core';
import { Chain } from '@ctrl-tech/chains-core';
import {
ChainsContext,
initDefaultProviders,
Expand Down
Loading
Loading