Skip to content

Commit

Permalink
chore: change tonapi to tonviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
braveltd authored Aug 28, 2023
1 parent e48f551 commit 92c3644
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/cli/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Flags:
--mainnet, --testnet - specifies the network to use when running the script. If not specified on the command line, it will be asked interactively.
--custom [api-v2-endpoint] - indicates that a custom API should be used when running the script, and the API URL optionally.
--tonconnect, --tonhub, --deeplink, --mnemonic - specifies the deployer to use when running the script. If not specified on the command line, it will be asked interactively.
--tonscan, --tonapi, --toncx, --dton - specifies the network explorer to use when displaying links to the deployed contracts. Default: tonscan.`,
--tonscan, --tonviewer, --toncx, --dton - specifies the network explorer to use when displaying links to the deployed contracts. Default: tonscan.`,
build: `Usage: blueprint build [contract name] [flags]
Builds the specified contract according to the respective .compile.ts file. If the contract is written in TACT, all TACT-generated files (wrapper class, etc) will be placed in the build/<contract name> folder.
Expand Down
8 changes: 4 additions & 4 deletions src/network/createNetworkProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const argSpec = {
'--mnemonic': Boolean,

'--tonscan': Boolean,
'--tonapi': Boolean,
'--tonviewer': Boolean,
'--toncx': Boolean,
'--dton': Boolean,
};
Expand All @@ -48,7 +48,7 @@ type Args = arg.Result<typeof argSpec>;

type Network = 'mainnet' | 'testnet' | 'custom';

type Explorer = 'tonscan' | 'tonapi' | 'toncx' | 'dton';
type Explorer = 'tonscan' | 'tonviewer' | 'toncx' | 'dton';

class SendProviderSender implements Sender {
#provider: SendProvider;
Expand Down Expand Up @@ -139,7 +139,7 @@ class NetworkProviderImpl implements NetworkProvider {
return this.#network;
}

explorer(): 'tonscan' | 'tonapi' | 'toncx' | 'dton' {
explorer(): 'tonscan' | 'tonviewer' | 'toncx' | 'dton' {
return this.#explorer;
}

Expand Down Expand Up @@ -287,7 +287,7 @@ class NetworkProviderBuilder {
return (
oneOrZeroOf({
tonscan: this.args['--tonscan'],
tonapi: this.args['--tonapi'],
tonviewer: this.args['--tonviewer'],
toncx: this.args['--toncx'],
dton: this.args['--dton'],
}) ?? 'tonscan'
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export function getExplorerLink(address: string, network: string, explorer: stri
case 'tonscan':
return `https://${networkPrefix}tonscan.org/address/${address}`;

case 'tonapi':
return `https://${networkPrefix}tonapi.io/account/${address}`;
case 'tonviewer':
return `https://${networkPrefix}tonviewer.com/${address}`;

case 'toncx':
return `https://${networkPrefix}ton.cx/address/${address}`;
Expand Down

0 comments on commit 92c3644

Please sign in to comment.