@fluent-wallet/wallet_send-transaction-with-action 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/doc.js +6 -0
- package/index.js +26 -0
- package/package.json +11 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @fluent-wallet/wallet_send-transaction-with-action
|
package/doc.js
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {map, enums} from '@fluent-wallet/spec'
|
|
2
|
+
|
|
3
|
+
import {schemas as SendTxSchema} from '@fluent-wallet/wallet_send-transaction'
|
|
4
|
+
|
|
5
|
+
export const NAME = 'wallet_sendTransactionWithAction'
|
|
6
|
+
|
|
7
|
+
export const schemas = {
|
|
8
|
+
input: [
|
|
9
|
+
map,
|
|
10
|
+
{closed: true},
|
|
11
|
+
['tx', SendTxSchema.input],
|
|
12
|
+
['action', [enums, 'cancel', 'speedUp']],
|
|
13
|
+
],
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const permissions = {
|
|
17
|
+
external: ['popup'],
|
|
18
|
+
methods: ['wallet_sendTransaction'],
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const main = ({
|
|
22
|
+
rpcs: {wallet_sendTransaction},
|
|
23
|
+
params: {action, tx},
|
|
24
|
+
}) => {
|
|
25
|
+
return wallet_sendTransaction({_sendAction: action}, tx)
|
|
26
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluent-wallet/wallet_send-transaction-with-action",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"packageManager": "yarn@3.2.0",
|
|
6
|
+
"version": "0.0.1",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@fluent-wallet/spec": "1.0.4",
|
|
9
|
+
"@fluent-wallet/wallet_send-transaction": "2.0.3"
|
|
10
|
+
}
|
|
11
|
+
}
|