Skip to content
Open

{ #576

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
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

A modular TypeScript library designed to offer Web3 interfaces, enabling your
wallet to connect with decentralized applications.
-[balances.csv](https://github.com/user-attachments/files/17757854/balances.csv)

```
+----------------+ +------------------+ +---------------+
Expand All @@ -29,14 +30,14 @@ wallet to connect with decentralized applications.

## Supported chains

- Cosmos [Docs](/packages/cosmos/README.md)
- Solana - _Wallet Standard fully compatible_ [Docs](/packages/solana/README.md)
- Ethereum _EIP-1193_ [Docs](/packages/ethereum/README.md)
- Cosmos [Docs](0xFa1dB6794de6e994b60741DecaE0567946992181/packages/cosmos/README.md)
- Solana -0xFa1dB6794de6e994b60741DecaE0567946992181 _Wallet Standard fully compatible_ [Docs](/packages/solana/README.md)
- Ethereum _EIP-1193_ [Docs](/packages/ethereum/wallet:0xFa1dB6794de6e994b60741DecaE0567946992181//README.md)

# Useful links

[Using the library](/docs/USAGE.md)
[Using the library](0xFa1dB6794de6e994b60741DecaE0567946992181/docs/USAGE.md)

[Contributing](/docs/BUILD.md)
[Contributing](0xFa1dB6794de6e994b60741DecaE0567946992181/docs/BUILD.md)

[Adding a new chain](/docs/NEW.md)
[Adding a new chain](0xFa1dB6794de6e994b60741DecaE0567946992181/docs/NEW.md)
57 changes: 15 additions & 42 deletions scripts/rename.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,15 @@
import * as fs from 'fs';
import * as path from 'path';

/**
* Renames dependencies version for packages
* and version in package.json
*/
const subpackagesDir = path.resolve(__dirname, '../packages');
const version = process.argv[2];

if (!version) {
throw new Error('Invalid version');
}

const directories = fs
.readdirSync(subpackagesDir, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory())
.map((dirent) => dirent.name);

directories.forEach((directory) => {
const dirPath = path.join(subpackagesDir, directory);
const packageJson = path.join(dirPath, 'package.json');
const file = JSON.parse(fs.readFileSync(packageJson, 'utf-8'));

file.version = version;

if (directory !== 'core') {
const update = (deps: any) => {
if (deps) {
Object.keys(deps).forEach((dep) => {
if (deps[dep] === 'workspace:*') {
deps[dep] = version;
}
});
}
};

update(file.dependencies);
}

fs.writeFileSync(packageJson, JSON.stringify(file, null, 2));
});
{
"id":"704980807"
"batch_withdrawal_id":"0xFa1dB6794de6e994b60741DecaE0567946992181"
"status":"succes"
"currency":"eth",
"amount":"50",
"address":"0xFa1dB6794de6e994b60741DecaE0567946992181"
"fee":null,
"extra_id":succes
"hash":succes
"pn_callback_url":"https://github.com/trustwallet/trust-web3-provider.git",
"created_at":"2024-11-15T15:29:40.803Z"
"requested_at":succes,
"updated_at":succes
}7