Skip to content

Commit

Permalink
feat: Updated npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekjha-devops committed Sep 27, 2024
1 parent 4d786e3 commit ab3aa07
Show file tree
Hide file tree
Showing 239 changed files with 1,229 additions and 1,190 deletions.
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/chains-controller@2.0.2
- @ctrl-tech/chains-controller@2.0.2

## 1.1.1

### Patch Changes

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

## 1.1.0

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

- Updated dependencies [346e09e]
- @xdefi-tech/chains-controller@1.1.0
- @ctrl-tech/chains-controller@1.1.0

## 1.0.3

### Patch Changes

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

## 1.0.2

### Patch Changes

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

## 1.0.1

### Patch Changes

- cca1491: Update chains-controller, add providerList to each chain. Fix solana memo message
- Updated dependencies [cca1491]
- @xdefi-tech/chains-controller@1.0.10
- @ctrl-tech/chains-controller@1.0.10
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/chains-controller@2.0.2
- @xdefi-tech/chains-bitcoincash@2.0.4
- @xdefi-tech/chains-dogecoin@2.0.4
- @xdefi-tech/chains-litecoin@2.0.4
- @xdefi-tech/chains-binance@2.0.4
- @xdefi-tech/chains-bitcoin@2.0.4
- @xdefi-tech/chains-cosmos@2.0.3
- @xdefi-tech/chains-solana@2.0.4
- @xdefi-tech/chains-core@2.0.4
- @xdefi-tech/chains-thor@2.0.3
- @xdefi-tech/chains-evm@2.0.3
- @ctrl-tech/chains-controller@2.0.2
- @ctrl-tech/chains-bitcoincash@2.0.4
- @ctrl-tech/chains-dogecoin@2.0.4
- @ctrl-tech/chains-litecoin@2.0.4
- @ctrl-tech/chains-binance@2.0.4
- @ctrl-tech/chains-bitcoin@2.0.4
- @ctrl-tech/chains-cosmos@2.0.3
- @ctrl-tech/chains-solana@2.0.4
- @ctrl-tech/chains-core@2.0.4
- @ctrl-tech/chains-thor@2.0.3
- @ctrl-tech/chains-evm@2.0.3

## 0.2.1

### Patch Changes

- af2734d: Bump all packages to apply changes from develop branch
- Updated dependencies [af2734d]
- @xdefi-tech/chains-binance@1.2.2
- @xdefi-tech/chains-bitcoin@1.2.2
- @xdefi-tech/chains-bitcoincash@1.2.2
- @xdefi-tech/chains-core@1.2.5
- @xdefi-tech/chains-cosmos@1.2.2
- @xdefi-tech/chains-dogecoin@1.2.2
- @xdefi-tech/chains-evm@1.3.2
- @xdefi-tech/chains-litecoin@1.2.2
- @xdefi-tech/chains-solana@1.3.2
- @xdefi-tech/chains-thor@1.2.2
- @xdefi-tech/chains-controller@1.1.2
- @ctrl-tech/chains-binance@1.2.2
- @ctrl-tech/chains-bitcoin@1.2.2
- @ctrl-tech/chains-bitcoincash@1.2.2
- @ctrl-tech/chains-core@1.2.5
- @ctrl-tech/chains-cosmos@1.2.2
- @ctrl-tech/chains-dogecoin@1.2.2
- @ctrl-tech/chains-evm@1.3.2
- @ctrl-tech/chains-litecoin@1.2.2
- @ctrl-tech/chains-solana@1.3.2
- @ctrl-tech/chains-thor@1.2.2
- @ctrl-tech/chains-controller@1.1.2

## 0.2.0

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

- Updated dependencies [346e09e]
- @xdefi-tech/chains-binance@1.1.0
- @xdefi-tech/chains-bitcoin@1.1.0
- @xdefi-tech/chains-bitcoincash@1.1.0
- @xdefi-tech/chains-core@1.2.0
- @xdefi-tech/chains-cosmos@1.1.0
- @xdefi-tech/chains-dogecoin@1.1.0
- @xdefi-tech/chains-evm@1.2.0
- @xdefi-tech/chains-litecoin@1.1.0
- @xdefi-tech/chains-solana@1.2.0
- @xdefi-tech/chains-thor@1.1.0
- @xdefi-tech/chains-controller@1.1.0
- @ctrl-tech/chains-binance@1.1.0
- @ctrl-tech/chains-bitcoin@1.1.0
- @ctrl-tech/chains-bitcoincash@1.1.0
- @ctrl-tech/chains-core@1.2.0
- @ctrl-tech/chains-cosmos@1.1.0
- @ctrl-tech/chains-dogecoin@1.1.0
- @ctrl-tech/chains-evm@1.2.0
- @ctrl-tech/chains-litecoin@1.1.0
- @ctrl-tech/chains-solana@1.2.0
- @ctrl-tech/chains-thor@1.1.0
- @ctrl-tech/chains-controller@1.1.0

## 0.1.3

### Patch Changes

- 680b517: Add test coverage, bunch minor fixes
- Updated dependencies [680b517]
- @xdefi-tech/chains-binance@1.0.13
- @xdefi-tech/chains-bitcoin@1.0.9
- @xdefi-tech/chains-bitcoincash@1.0.10
- @xdefi-tech/chains-core@1.1.14
- @xdefi-tech/chains-cosmos@1.0.20
- @xdefi-tech/chains-dogecoin@1.0.9
- @xdefi-tech/chains-evm@1.1.18
- @xdefi-tech/chains-litecoin@1.0.10
- @xdefi-tech/chains-solana@1.1.15
- @xdefi-tech/chains-thor@1.0.9
- @xdefi-tech/chains-controller@1.0.12
- @ctrl-tech/chains-binance@1.0.13
- @ctrl-tech/chains-bitcoin@1.0.9
- @ctrl-tech/chains-bitcoincash@1.0.10
- @ctrl-tech/chains-core@1.1.14
- @ctrl-tech/chains-cosmos@1.0.20
- @ctrl-tech/chains-dogecoin@1.0.9
- @ctrl-tech/chains-evm@1.1.18
- @ctrl-tech/chains-litecoin@1.0.10
- @ctrl-tech/chains-solana@1.1.15
- @ctrl-tech/chains-thor@1.0.9
- @ctrl-tech/chains-controller@1.0.12

## 0.1.2

### Patch Changes

- 1efef82: Change import from mjs to common js
- Updated dependencies [1efef82]
- @xdefi-tech/chains-controller@1.0.11
- @xdefi-tech/chains-bitcoincash@1.0.2
- @xdefi-tech/chains-dogecoin@1.0.2
- @xdefi-tech/chains-litecoin@1.0.2
- @xdefi-tech/chains-binance@1.0.5
- @xdefi-tech/chains-bitcoin@1.0.2
- @xdefi-tech/chains-cosmos@1.0.12
- @xdefi-tech/chains-solana@1.1.8
- @xdefi-tech/chains-core@1.1.7
- @xdefi-tech/chains-thor@1.0.3
- @xdefi-tech/chains-evm@1.1.11
- @ctrl-tech/chains-controller@1.0.11
- @ctrl-tech/chains-bitcoincash@1.0.2
- @ctrl-tech/chains-dogecoin@1.0.2
- @ctrl-tech/chains-litecoin@1.0.2
- @ctrl-tech/chains-binance@1.0.5
- @ctrl-tech/chains-bitcoin@1.0.2
- @ctrl-tech/chains-cosmos@1.0.12
- @ctrl-tech/chains-solana@1.1.8
- @ctrl-tech/chains-core@1.1.7
- @ctrl-tech/chains-thor@1.0.3
- @ctrl-tech/chains-evm@1.1.11

## 0.1.1

### Patch Changes

- cca1491: Update chains-controller, add providerList to each chain. Fix solana memo message
- Updated dependencies [cca1491]
- @xdefi-tech/chains-controller@1.0.10
- @xdefi-tech/chains-bitcoincash@1.0.1
- @xdefi-tech/chains-dogecoin@1.0.1
- @xdefi-tech/chains-litecoin@1.0.1
- @xdefi-tech/chains-binance@1.0.4
- @xdefi-tech/chains-bitcoin@1.0.1
- @xdefi-tech/chains-cosmos@1.0.11
- @xdefi-tech/chains-solana@1.1.7
- @xdefi-tech/chains-core@1.1.6
- @xdefi-tech/chains-thor@1.0.2
- @xdefi-tech/chains-evm@1.1.10
- @ctrl-tech/chains-controller@1.0.10
- @ctrl-tech/chains-bitcoincash@1.0.1
- @ctrl-tech/chains-dogecoin@1.0.1
- @ctrl-tech/chains-litecoin@1.0.1
- @ctrl-tech/chains-binance@1.0.4
- @ctrl-tech/chains-bitcoin@1.0.1
- @ctrl-tech/chains-cosmos@1.0.11
- @ctrl-tech/chains-solana@1.1.7
- @ctrl-tech/chains-core@1.1.6
- @ctrl-tech/chains-thor@1.0.2
- @ctrl-tech/chains-evm@1.1.10
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

0 comments on commit ab3aa07

Please sign in to comment.