You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/overledger/actions/read-from-a-smart-contract/read-from-a-smart-contract.mjs
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,10 @@ export default {
32
32
},
33
33
inputParameters: {
34
34
type: "string[]",
35
-
label: "Input Parameters - Stringified Objects",
36
-
description: "The input parameters for the smart contract function, in JSON string format. Example: `['{\"type\":\"string\",\"value\":\"param1\"}', '{\"type\":\"uint256\",\"value\":\"param2\"}']`",
35
+
label: "Input Parameters",
36
+
description: "The input parameters for the smart contract function, provide both type and value in object format. Example: {\"type\":\"uint256\",\"value\":\"5\"} or {\"type\":\"address\",\"value\":\"0x3....ed8\"}",
37
37
optional: true,
38
+
default: [],
38
39
},
39
40
smartContractId: {
40
41
type: "string",
@@ -44,7 +45,9 @@ export default {
44
45
outputParameters: {
45
46
type: "string[]",
46
47
label: "Output Parameters",
47
-
description: "The type of output parameter required e.g., address, string",
48
+
description: "Each output parameter expected, provide just the type in object format. Example - 1) function returns one uint256 value: {\"type\": \"uint256\"} or 2) function returns two address values: {\"type\": \"address\"},{\"type\": \"address\"}",
description: "Sign a transaction using Overledger",
7
+
description: "Sign a transaction using Overledger - Part 2 of [Overledger Pattern](https://developers.quant.network/reference/overledger-pattern). [See documentation](https://developers.quant.network/reference/sandboxsigning)",
8
8
version: "0.0.1",
9
9
type: "action",
10
10
props: {
@@ -19,16 +19,18 @@ export default {
19
19
type: "string",
20
20
label: "Location Technology",
21
21
description: "The blockchain technology used for this transaction, e.g., ethereum, substrate - required in order to set the dltfee",
22
+
options: TECHNOLOGY_OPTIONS,
23
+
reloadProps: true,
22
24
},
23
25
keyId: {
24
26
type: "string",
25
27
label: "Signing Account ID",
26
-
description: "The blockchain account that will sign the transaction.",
28
+
description: "The ID/address of the blockchain account that will sign the transaction.",
27
29
},
28
30
requestId: {
29
31
type: "string",
30
-
label: "requestId",
31
-
description: "The ID assigned to a preparation request in Overledger. This should be set to the requestId parameter found in the response object of the 'Prepare Smart Contract Transaction' Overledger action.",
32
+
label: "Request ID",
33
+
description: "The Request ID assigned to a preparation request in Overledger. This should be set to the requestId parameter found in the response object of the 'Prepare Transaction' Overledger action.",
32
34
},
33
35
transactionSigningResponderName: {
34
36
type: "string",
@@ -38,7 +40,7 @@ export default {
38
40
nativeData: {
39
41
type: "object",
40
42
label: "Native Data",
41
-
description: "A JSON object representing the transaction required to be signed.",
43
+
description: "An object representing the transaction required to be signed - This should be set to the nativeData object of the 'Prepare Transaction' Overledger action.",
0 commit comments