mirror of
https://github.com/wharfkit/transact-plugin-explorerlink.git
synced 2026-07-21 17:43:39 +00:00
Upgrading to 0.5.0 and a few tweaks
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@
|
||||
"@types/node": "^18.7.18",
|
||||
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
||||
"@typescript-eslint/parser": "^5.20.0",
|
||||
"@wharfkit/session": "^0.3.0",
|
||||
"@wharfkit/session": "^0.5.0",
|
||||
"@wharfkit/wallet-plugin-privatekey": "^0.3.0",
|
||||
"chai": "^4.3.4",
|
||||
"eslint": "^8.13.0",
|
||||
|
||||
+3
-8
@@ -51,9 +51,6 @@ export class TransactPluginExplorerLink extends AbstractTransactPlugin {
|
||||
)
|
||||
}
|
||||
|
||||
// Update the status bar
|
||||
context.ui.status(t('complete', {default: 'Transaction Complete'}))
|
||||
|
||||
// Prompt the user with the link to view the transaction
|
||||
const prompt: Cancelable<PromptResponse> = context.ui.prompt({
|
||||
title: t('complete', {
|
||||
@@ -61,26 +58,24 @@ export class TransactPluginExplorerLink extends AbstractTransactPlugin {
|
||||
}),
|
||||
body: t('click', {
|
||||
default:
|
||||
'Click the button below to view the transaction in a block explorer.',
|
||||
'Click the button below to view the transaction in a block explorer to verify its status.',
|
||||
}),
|
||||
elements: [
|
||||
{
|
||||
type: 'link',
|
||||
data: {
|
||||
button: true,
|
||||
variant: 'primary',
|
||||
label: t('visit', {
|
||||
default: 'Visit Explorer',
|
||||
}),
|
||||
href: this.getExplorerLink(
|
||||
context,
|
||||
result.chain,
|
||||
result.resolved.transaction.id
|
||||
String(result.resolved.transaction.id)
|
||||
),
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'close',
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"complete": "Transaction Complete",
|
||||
"click": "Click the button below to view the transaction in a block explorer.",
|
||||
"click": "Click the button below to view the transaction in a block explorer to verify its status.",
|
||||
"visit": "Visit Explorer",
|
||||
"no-result": "Unable to generate explorer link, no result.",
|
||||
"no-chain": "Unable to generate explorer link, no chain definition.",
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
minimatch "^3.1.2"
|
||||
strip-json-comments "^3.1.1"
|
||||
|
||||
"@greymass/eosio@^0.6.0", "@greymass/eosio@^0.6.9":
|
||||
"@greymass/eosio@^0.6.0":
|
||||
version "0.6.9"
|
||||
resolved "https://registry.yarnpkg.com/@greymass/eosio/-/eosio-0.6.9.tgz#e5475dfb6f1507da6ec2f9f0065e19684e8d4b70"
|
||||
integrity sha512-Xd6X3sesStFQiw3+6+8tD1IauW3WX25GQnHa/zhUqIE1cB23bjzLqn89JDTcyQYKJ4R24L1rERqko/u6p7RizA==
|
||||
@@ -223,6 +223,17 @@
|
||||
hash.js "^1.0.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"@greymass/eosio@^0.6.10":
|
||||
version "0.6.11"
|
||||
resolved "https://registry.yarnpkg.com/@greymass/eosio/-/eosio-0.6.11.tgz#9bd1783f8467834563ac893d41524c01aba0228c"
|
||||
integrity sha512-Ud6V7+vQJ+OLxqD7QcKTv/ik/Hd5uaRHyGY9Hzc+cJXezYU4sADX4TyQ8sn6XIr8ebVVNZFvWpc5JR0a9lBzKw==
|
||||
dependencies:
|
||||
bn.js "^4.11.9"
|
||||
brorand "^1.1.0"
|
||||
elliptic "^6.5.4"
|
||||
hash.js "^1.0.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"@humanwhocodes/config-array@^0.11.8":
|
||||
version "0.11.8"
|
||||
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9"
|
||||
@@ -550,13 +561,13 @@
|
||||
"@typescript-eslint/types" "5.47.1"
|
||||
eslint-visitor-keys "^3.3.0"
|
||||
|
||||
"@wharfkit/session@^0.3.0":
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-0.3.0.tgz#e42312c7c14dd328d06941ab41cab4abd9926e6d"
|
||||
integrity sha512-U/B6aRPCm6l0ipxT3/30WEsOSwu5WRuOV3W/DncnYGH2K8rpy7BwZKJURDGN1HPRruNkT9/r+4sT7t+s4EEChw==
|
||||
"@wharfkit/session@^0.5.0":
|
||||
version "0.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-0.5.0.tgz#8003c9c2eefd9335331623ceee2f3c02e5dbce40"
|
||||
integrity sha512-UhOUMmhRkljDTrJrPoD/APfEmA9V1iMNuH1ZqqN1CmQgZ7Jz/6FnR7Ams7peEaxAIVP1bY/GN1lie98+8CEL8g==
|
||||
dependencies:
|
||||
"@greymass/eosio" "^0.6.9"
|
||||
eosio-signing-request "^2.5.2"
|
||||
"@greymass/eosio" "^0.6.10"
|
||||
eosio-signing-request "^2.5.3"
|
||||
pako "^2.0.4"
|
||||
tslib "^2.1.0"
|
||||
|
||||
@@ -1021,10 +1032,10 @@ emoji-regex@^8.0.0:
|
||||
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
|
||||
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
|
||||
|
||||
eosio-signing-request@^2.5.2:
|
||||
version "2.5.2"
|
||||
resolved "https://registry.yarnpkg.com/eosio-signing-request/-/eosio-signing-request-2.5.2.tgz#3cf53d71204d32bb5112e2ac84aba189661a630c"
|
||||
integrity sha512-mkWhsjZYVfyvUujbeSBZ4u1NlT5Pks/VAT2CesUtMsffg1e4LaA2/uijrDoGNkhRzVv4VDxrssh9jVPdyV97rw==
|
||||
eosio-signing-request@^2.5.3:
|
||||
version "2.5.3"
|
||||
resolved "https://registry.yarnpkg.com/eosio-signing-request/-/eosio-signing-request-2.5.3.tgz#4b15bcc67d2814393a83084c45e4473d638b16e1"
|
||||
integrity sha512-jb4cKjQM+NI8+JwtGClYiCDX9sgSeUreRTE7YkIAga0fo21vtLTjTn0ZUH1zyfQU5b4Drdcs/yUMXdPUtqp9bg==
|
||||
dependencies:
|
||||
"@greymass/eosio" "^0.6.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
Reference in New Issue
Block a user