@pipedream/overledger 0.1.0 → 1.0.0
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 +11 -0
- package/actions/execute-signed-transaction/execute-signed-transaction.mjs +17 -7
- package/actions/prepare-smart-contract-transaction/prepare-smart-contract-transaction.mjs +27 -18
- package/actions/read-from-a-smart-contract/read-from-a-smart-contract.mjs +86 -0
- package/actions/sign-a-transaction/sign-a-transaction.mjs +77 -0
- package/common/constants.mjs +20 -3
- package/overledger.app.mjs +30 -6
- package/package.json +1 -1
- package/sources/common/base.mjs +8 -0
- package/sources/new-contract-event-instant/new-contract-event-instant.mjs +1 -1
- package/sources/watch-new-account-event-instant/watch-new-account-event-instant.mjs +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
The Overledger API by Quant Network allows developers to interact with multiple blockchain networks. It facilitates the creation, reading, and execution of smart contracts and transactions across different blockchains. This API simplifies the complex nature of blockchain interoperability, enabling multi-chain applications (MApps) through a single gateway.
|
|
4
|
+
|
|
5
|
+
# Example Use Cases
|
|
6
|
+
|
|
7
|
+
- **Automated Multi-chain Financial Reporting**: Build a workflow on Pipedream that triggers monthly, pulling transaction data from various blockchains via the Overledger API. Integrate this data with Google Sheets or a similar app on Pipedream to generate consolidated financial reports.
|
|
8
|
+
|
|
9
|
+
- **Cross-Blockchain Event Monitoring**: Set up a Pipedream workflow to monitor specific events (like transactions or smart contract interactions) across multiple blockchains using Overledger. This can trigger notifications via Slack or email when predefined conditions are met, such as unusual transaction volumes or large transfers.
|
|
10
|
+
|
|
11
|
+
- **Decentralized Application (DApp) Management**: Develop a workflow in Pipedream that utilizes Overledger to deploy and manage smart contracts across different blockchains. The workflow could, for instance, automatically update or verify contracts on Ethereum and Binance Smart Chain when a GitHub repository is updated, using a combination of Overledger and GitHub triggers on Pipedream.
|
|
@@ -4,29 +4,39 @@ export default {
|
|
|
4
4
|
key: "overledger-execute-signed-transaction",
|
|
5
5
|
name: "Execute Signed Transaction",
|
|
6
6
|
description: "Executes a signed transaction by sending it to a blockchain node via Overledger. [See the documentation](https://developers.quant.network/reference/executesignedrequest)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
overledger,
|
|
11
|
+
environment: {
|
|
12
|
+
propDefinition: [
|
|
13
|
+
overledger,
|
|
14
|
+
"environment",
|
|
15
|
+
],
|
|
16
|
+
},
|
|
11
17
|
requestId: {
|
|
12
18
|
type: "string",
|
|
13
19
|
label: "Request ID",
|
|
14
|
-
description: "The
|
|
20
|
+
description: "The Overledger identifier assigned to the related transaction preparation request. This should be set to the requestId parameter found in the response object of the 'Prepare a Smart Contract Transaction' Overledger action.",
|
|
15
21
|
},
|
|
16
22
|
signedTransaction: {
|
|
17
23
|
type: "string",
|
|
18
24
|
label: "Signed Transaction",
|
|
19
|
-
description: "The
|
|
25
|
+
description: "The raw transaction bytecode after signing. This should be set to the signed parameter found in the response object of the 'Sign a Transaction' Overledger action.",
|
|
20
26
|
optional: true,
|
|
21
27
|
},
|
|
22
28
|
},
|
|
23
29
|
async run({ $ }) {
|
|
30
|
+
|
|
31
|
+
const requestBody = {
|
|
32
|
+
requestId: this.requestId,
|
|
33
|
+
signedTransaction: this.signedTransaction,
|
|
34
|
+
};
|
|
35
|
+
|
|
24
36
|
const response = await this.overledger.executeSignedTransaction({
|
|
25
37
|
$,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
signedTransaction: this.signedTransaction,
|
|
29
|
-
},
|
|
38
|
+
environment: this.environment,
|
|
39
|
+
data: requestBody,
|
|
30
40
|
});
|
|
31
41
|
|
|
32
42
|
$.export("$summary", `Successfully executed signed transaction with Request ID ${this.requestId}`);
|
|
@@ -8,10 +8,16 @@ export default {
|
|
|
8
8
|
key: "overledger-prepare-smart-contract-transaction",
|
|
9
9
|
name: "Prepare Smart Contract Transaction",
|
|
10
10
|
description: "Prepares a smart contract transaction for signing on the Overledger platform. [See the documentation](https://developers.quant.network/reference/preparesmartcontractwrite)",
|
|
11
|
-
version: "0.0.
|
|
11
|
+
version: "0.0.3",
|
|
12
12
|
type: "action",
|
|
13
13
|
props: {
|
|
14
14
|
overledger,
|
|
15
|
+
environment: {
|
|
16
|
+
propDefinition: [
|
|
17
|
+
overledger,
|
|
18
|
+
"environment",
|
|
19
|
+
],
|
|
20
|
+
},
|
|
15
21
|
locationTechnology: {
|
|
16
22
|
type: "string",
|
|
17
23
|
label: "Location Technology",
|
|
@@ -22,19 +28,19 @@ export default {
|
|
|
22
28
|
signingAccountId: {
|
|
23
29
|
type: "string",
|
|
24
30
|
label: "Signing Account ID",
|
|
25
|
-
description: "The blockchain account that will
|
|
31
|
+
description: "The blockchain account ID/address that will be sending this transaction",
|
|
32
|
+
},
|
|
33
|
+
smartContractId: {
|
|
34
|
+
type: "string",
|
|
35
|
+
label: "Smart Contract ID",
|
|
36
|
+
description: "The ID/address of the smart contract to interact with.",
|
|
37
|
+
|
|
26
38
|
},
|
|
27
39
|
functionName: {
|
|
28
40
|
type: "string",
|
|
29
41
|
label: "Function Name",
|
|
30
42
|
description: "The name of the function to call on the smart contract.",
|
|
31
43
|
},
|
|
32
|
-
smartContractId: {
|
|
33
|
-
propDefinition: [
|
|
34
|
-
overledger,
|
|
35
|
-
"smartContractId",
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
44
|
inputParameters: {
|
|
39
45
|
type: "string[]",
|
|
40
46
|
label: "Input Parameters",
|
|
@@ -55,18 +61,21 @@ export default {
|
|
|
55
61
|
return props;
|
|
56
62
|
},
|
|
57
63
|
async run({ $ }) {
|
|
64
|
+
const requestBody = {
|
|
65
|
+
location: {
|
|
66
|
+
technology: this.locationTechnology,
|
|
67
|
+
network: this.locationNetwork,
|
|
68
|
+
},
|
|
69
|
+
signingAccountId: this.signingAccountId,
|
|
70
|
+
functionName: this.functionName,
|
|
71
|
+
smartContractId: this.smartContractId,
|
|
72
|
+
inputParameters: parseObject(this.inputParameters), //parse these values using the parseObject function at this shouls turn the JSON string into JSON objects to used in the request body.
|
|
73
|
+
};
|
|
74
|
+
|
|
58
75
|
const response = await this.overledger.prepareSmartContractTransaction({
|
|
59
76
|
$,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
technology: this.locationTechnology,
|
|
63
|
-
network: this.locationNetwork,
|
|
64
|
-
},
|
|
65
|
-
signingAccountId: this.signingAccountId,
|
|
66
|
-
functionName: this.functionName,
|
|
67
|
-
smartContractId: this.smartContractId,
|
|
68
|
-
inputParameters: this.inputParameters && parseObject(this.inputParameters),
|
|
69
|
-
},
|
|
77
|
+
environment: this.environment,
|
|
78
|
+
data: requestBody,
|
|
70
79
|
});
|
|
71
80
|
$.export("$summary", "Smart contract transaction prepared successfully");
|
|
72
81
|
return response;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NETWORK_OPTIONS, TECHNOLOGY_OPTIONS,
|
|
3
|
+
} from "../../common/constants.mjs";
|
|
4
|
+
import { parseObject } from "../../common/utils.mjs";
|
|
5
|
+
import overledger from "../../overledger.app.mjs";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
key: "overledger-read-from-a-smart-contract",
|
|
9
|
+
name: "Read from a smart contract",
|
|
10
|
+
description: "Reads data from a specified smart contract on the Overledger network.",
|
|
11
|
+
version: "0.0.2",
|
|
12
|
+
type: "action",
|
|
13
|
+
props: {
|
|
14
|
+
overledger,
|
|
15
|
+
environment: {
|
|
16
|
+
propDefinition: [
|
|
17
|
+
overledger,
|
|
18
|
+
"environment",
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
locationTechnology: {
|
|
22
|
+
type: "string",
|
|
23
|
+
label: "Location Technology",
|
|
24
|
+
description: "The technology of the blockchain that the transaction will be submitted to",
|
|
25
|
+
options: TECHNOLOGY_OPTIONS,
|
|
26
|
+
reloadProps: true,
|
|
27
|
+
},
|
|
28
|
+
functionName: {
|
|
29
|
+
type: "string",
|
|
30
|
+
label: "Function Name",
|
|
31
|
+
description: "The name of the function to call on the smart contract.",
|
|
32
|
+
},
|
|
33
|
+
inputParameters: {
|
|
34
|
+
type: "string[]",
|
|
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
|
+
optional: true,
|
|
38
|
+
default: [],
|
|
39
|
+
},
|
|
40
|
+
smartContractId: {
|
|
41
|
+
type: "string",
|
|
42
|
+
label: "Smart Contract ID",
|
|
43
|
+
description: "The ID/address of the smart contract to interact with.",
|
|
44
|
+
},
|
|
45
|
+
outputParameters: {
|
|
46
|
+
type: "string[]",
|
|
47
|
+
label: "Output Parameters",
|
|
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\"}",
|
|
49
|
+
optional: true,
|
|
50
|
+
default: [],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
async additionalProps() {
|
|
54
|
+
const props = {};
|
|
55
|
+
if (this.locationTechnology) {
|
|
56
|
+
props.locationNetwork = {
|
|
57
|
+
type: "string",
|
|
58
|
+
label: "Location Network",
|
|
59
|
+
description: "The blockchain network the transaction will be submitted to.",
|
|
60
|
+
options: NETWORK_OPTIONS[this.locationTechnology],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return props;
|
|
64
|
+
},
|
|
65
|
+
async run({ $ }) {
|
|
66
|
+
|
|
67
|
+
const requestBody = {
|
|
68
|
+
location: {
|
|
69
|
+
technology: this.locationTechnology,
|
|
70
|
+
network: this.locationNetwork,
|
|
71
|
+
},
|
|
72
|
+
functionName: this.functionName,
|
|
73
|
+
inputParameters: parseObject(this.inputParameters), //parse these values using the parseObject function at this shouls turn the JSON string into JSON objects to used in the request body.
|
|
74
|
+
smartContractId: this.smartContractId,
|
|
75
|
+
outputParameters: parseObject(this.outputParameters),
|
|
76
|
+
};
|
|
77
|
+
// Make the API call to Overledger
|
|
78
|
+
const response = await this.overledger.readFromSmartContract({
|
|
79
|
+
$,
|
|
80
|
+
environment: this.environment,
|
|
81
|
+
data: requestBody,
|
|
82
|
+
});
|
|
83
|
+
$.export("$summary", `Successfully read from contract: ${this.smartContractId}`);
|
|
84
|
+
return response;
|
|
85
|
+
},
|
|
86
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import overledger from "../../overledger.app.mjs";
|
|
2
|
+
import {
|
|
3
|
+
TECHNOLOGY_OPTIONS, UNIT_OPTIONS,
|
|
4
|
+
} from "../../common/constants.mjs";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
key: "overledger-sign-a-transaction",
|
|
8
|
+
name: "Sign a transaction",
|
|
9
|
+
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)",
|
|
10
|
+
version: "0.0.3",
|
|
11
|
+
type: "action",
|
|
12
|
+
props: {
|
|
13
|
+
overledger,
|
|
14
|
+
environment: {
|
|
15
|
+
propDefinition: [
|
|
16
|
+
overledger,
|
|
17
|
+
"environment",
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
locationTechnology: {
|
|
21
|
+
type: "string",
|
|
22
|
+
label: "Location Technology",
|
|
23
|
+
description: "The blockchain technology used for this transaction, e.g., ethereum, substrate - required in order to set the dltfee",
|
|
24
|
+
options: TECHNOLOGY_OPTIONS,
|
|
25
|
+
reloadProps: true,
|
|
26
|
+
},
|
|
27
|
+
keyId: {
|
|
28
|
+
type: "string",
|
|
29
|
+
label: "Signing Account ID",
|
|
30
|
+
description: "The ID/address of the blockchain account that will sign the transaction.",
|
|
31
|
+
},
|
|
32
|
+
requestId: {
|
|
33
|
+
type: "string",
|
|
34
|
+
label: "Request ID",
|
|
35
|
+
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.",
|
|
36
|
+
},
|
|
37
|
+
transactionSigningResponderName: {
|
|
38
|
+
type: "string",
|
|
39
|
+
label: "Transaction Signing Responder Name",
|
|
40
|
+
description: "The name of the Transaction Signing Responder you would like to use. The CTA Transaction Signing Responder is the Quant-provided signer for testnet accounts.",
|
|
41
|
+
},
|
|
42
|
+
nativeData: {
|
|
43
|
+
type: "object",
|
|
44
|
+
label: "Native Data",
|
|
45
|
+
description: "An object representing the transaction required to be signed - This should be set to the nativeData object of the 'Prepare Transaction' Overledger action.",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
async run({ $ }) {
|
|
49
|
+
//default values of gatewayFee and dltfee hard coded into params.
|
|
50
|
+
const gatewayFee = {
|
|
51
|
+
amount: "0",
|
|
52
|
+
unit: "QNT",
|
|
53
|
+
};
|
|
54
|
+
// Define DLT Fee and dynamically set the 'unit/symbol' from UNIT_OPTIONS
|
|
55
|
+
const dltFee = {
|
|
56
|
+
amount: "0.000019897764079968",
|
|
57
|
+
unit: UNIT_OPTIONS[this.locationTechnology] || "ETH", // Use default if not found
|
|
58
|
+
};
|
|
59
|
+
// Sign the transaction
|
|
60
|
+
const requestBody = {
|
|
61
|
+
keyId: this.keyId,
|
|
62
|
+
gatewayFee: gatewayFee,
|
|
63
|
+
requestId: this.requestId,
|
|
64
|
+
dltFee: dltFee,
|
|
65
|
+
nativeData: this.nativeData,
|
|
66
|
+
transactionSigningResponderName: this.transactionSigningResponderName,
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const response = await this.overledger.signTransaction({
|
|
70
|
+
$,
|
|
71
|
+
environment: this.environment,
|
|
72
|
+
data: requestBody,
|
|
73
|
+
});
|
|
74
|
+
$.export("$summary", "Transaction signed successfully");
|
|
75
|
+
return response;
|
|
76
|
+
},
|
|
77
|
+
};
|
package/common/constants.mjs
CHANGED
|
@@ -24,15 +24,13 @@ export const TECHNOLOGY_OPTIONS = [
|
|
|
24
24
|
export const NETWORK_OPTIONS = {
|
|
25
25
|
"ethereum": [
|
|
26
26
|
"ethereum sepolia testnet",
|
|
27
|
-
"ethereum goerli testnet",
|
|
28
27
|
"ethereum mainnet",
|
|
29
|
-
"polygon
|
|
28
|
+
"polygon amoy testnet",
|
|
30
29
|
"polygon mainnet",
|
|
31
30
|
"avalanche fuji testnet",
|
|
32
31
|
"avalanche c-chain mainnet",
|
|
33
32
|
"xdc apothem testnet",
|
|
34
33
|
"xdc network mainnet",
|
|
35
|
-
"Defined on demand",
|
|
36
34
|
],
|
|
37
35
|
"substrate": [
|
|
38
36
|
"polkadot westend",
|
|
@@ -50,3 +48,22 @@ export const NETWORK_OPTIONS = {
|
|
|
50
48
|
"Sandbox",
|
|
51
49
|
],
|
|
52
50
|
};
|
|
51
|
+
//Overledger environment to be used - Test or Live
|
|
52
|
+
export const OVERLEDGER_INSTANCE = [
|
|
53
|
+
{
|
|
54
|
+
label: "Sandbox",
|
|
55
|
+
value: "sandbox",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "Overledger",
|
|
59
|
+
value: "overledger",
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
///unit options to allow for the correct selection based on the location network
|
|
63
|
+
export const UNIT_OPTIONS = {
|
|
64
|
+
"ethereum": "ETH", // Ethereum's token symbol is ETH
|
|
65
|
+
"substrate": "DOT", // Polkadot's token symbol is DOT
|
|
66
|
+
"xrp ledger": "XRP", // XRP Ledger's token symbol is XRP
|
|
67
|
+
"bitcoin": "BTC", // Bitcoin's token symbol is BTC
|
|
68
|
+
"hyperledger fabric": "FAB", // Placeholder for Hyperledger Fabric's token symbol
|
|
69
|
+
};
|
package/overledger.app.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { axios } from "@pipedream/platform";
|
|
2
|
+
import { OVERLEDGER_INSTANCE } from "./common/constants.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
type: "app",
|
|
@@ -9,11 +10,14 @@ export default {
|
|
|
9
10
|
label: "Smart Contract ID",
|
|
10
11
|
description: "The ID of the smart contract to interact with.",
|
|
11
12
|
},
|
|
13
|
+
environment: {
|
|
14
|
+
type: "string",
|
|
15
|
+
label: "Overledger Instance",
|
|
16
|
+
description: "Select the Overledger instance to be used",
|
|
17
|
+
options: OVERLEDGER_INSTANCE,
|
|
18
|
+
},
|
|
12
19
|
},
|
|
13
20
|
methods: {
|
|
14
|
-
_baseUrl() {
|
|
15
|
-
return "https://api.overledger.io";
|
|
16
|
-
},
|
|
17
21
|
_headers() {
|
|
18
22
|
return {
|
|
19
23
|
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
|
|
@@ -21,12 +25,17 @@ export default {
|
|
|
21
25
|
"API-Version": "3.0.0",
|
|
22
26
|
};
|
|
23
27
|
},
|
|
28
|
+
_getBaseUrl(environment) { //conditional for environment url selection.
|
|
29
|
+
return environment === "sandbox"
|
|
30
|
+
? "https://api.sandbox.overledger.dev"
|
|
31
|
+
: "https://api.overledger.dev";
|
|
32
|
+
},
|
|
24
33
|
_makeRequest({
|
|
25
|
-
$ = this, path, ...otherOpts
|
|
34
|
+
$ = this, environment, path, ...otherOpts
|
|
26
35
|
}) {
|
|
27
36
|
return axios($, {
|
|
28
37
|
...otherOpts,
|
|
29
|
-
url: this.
|
|
38
|
+
url: this._getBaseUrl(environment) + path,
|
|
30
39
|
headers: this._headers(),
|
|
31
40
|
});
|
|
32
41
|
},
|
|
@@ -37,6 +46,20 @@ export default {
|
|
|
37
46
|
...opts,
|
|
38
47
|
});
|
|
39
48
|
},
|
|
49
|
+
readFromSmartContract(opts = {}) {
|
|
50
|
+
return this._makeRequest({
|
|
51
|
+
method: "POST",
|
|
52
|
+
path: "/api/smart-contracts/read",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
signTransaction(opts = {}) {
|
|
57
|
+
return this._makeRequest({
|
|
58
|
+
method: "POST",
|
|
59
|
+
path: "/api/transaction-signing-sandbox",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
},
|
|
40
63
|
executeSignedTransaction(opts = {}) {
|
|
41
64
|
return this._makeRequest({
|
|
42
65
|
method: "POST",
|
|
@@ -54,11 +77,12 @@ export default {
|
|
|
54
77
|
});
|
|
55
78
|
},
|
|
56
79
|
deleteHook({
|
|
57
|
-
path, webhookId,
|
|
80
|
+
path, webhookId, ...opts
|
|
58
81
|
}) {
|
|
59
82
|
return this._makeRequest({
|
|
60
83
|
method: "DELETE",
|
|
61
84
|
path: `/api/webhooks/${path}/${webhookId}`,
|
|
85
|
+
...opts,
|
|
62
86
|
});
|
|
63
87
|
},
|
|
64
88
|
},
|
package/package.json
CHANGED
package/sources/common/base.mjs
CHANGED
|
@@ -6,6 +6,12 @@ import overledger from "../../overledger.app.mjs";
|
|
|
6
6
|
export default {
|
|
7
7
|
props: {
|
|
8
8
|
overledger,
|
|
9
|
+
environment: {
|
|
10
|
+
propDefinition: [
|
|
11
|
+
overledger,
|
|
12
|
+
"environment",
|
|
13
|
+
],
|
|
14
|
+
},
|
|
9
15
|
db: "$.service.db",
|
|
10
16
|
http: {
|
|
11
17
|
type: "$.interface.http",
|
|
@@ -35,6 +41,7 @@ export default {
|
|
|
35
41
|
async activate() {
|
|
36
42
|
const response = await this.overledger.createHook({
|
|
37
43
|
path: this.getPath(),
|
|
44
|
+
environment: this.environment,
|
|
38
45
|
data: {
|
|
39
46
|
location: {
|
|
40
47
|
technology: this.locationTechnology,
|
|
@@ -51,6 +58,7 @@ export default {
|
|
|
51
58
|
await this.overledger.deleteHook({
|
|
52
59
|
path: this.getPath(),
|
|
53
60
|
webhookId,
|
|
61
|
+
environment: this.environment,
|
|
54
62
|
});
|
|
55
63
|
},
|
|
56
64
|
},
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "overledger-new-contract-event-instant",
|
|
7
7
|
name: "New Smart Contract Event (Instant)",
|
|
8
8
|
description: "Emit new event when a smart contract releases a new event.",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "overledger-watch-new-account-event-instant",
|
|
7
7
|
name: "New Account Event (Instant)",
|
|
8
8
|
description: "Emit new event for transactions to/from a specific account.",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
};
|
|
28
28
|
},
|
|
29
29
|
getSummary(body) {
|
|
30
|
-
return `New
|
|
30
|
+
return `New account event with transaction Id: ${body.transactionId}`;
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
sampleEmit,
|