Skip to content

Commit c2ac809

Browse files
philbuuzacoderabbitai[bot]luancazarinemichelle0927
authored
Overledger upgrade (#15052)
* overledger new actions added - read from smart contract and sign a transaction * Update components/overledger/actions/read-from-a-smart-contract/read-from-smart-contract.mjs Success message alteration to align with current context Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update components/overledger/actions/read-from-a-smart-contract/read-from-smart-contract.mjs inputParameters is an array of Objects so no need to parseObject Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * modified read from smart contract parameters * modified readfromsmart contract transaction, prepare-sign-execute transaction actions * modified readfromsmart contract transaction, prepare-sign-execute transaction actions * modified readfromsmart contract transaction, prepare-sign-execute transaction actions * modified readfromsmart contract transaction, prepare-sign-execute transaction actions * modified Overledger.app to add instance selection between Sandbox and Live Overledger * modified Overledger.app to add instance selection between Sandbox and Live Overledger - altered basURL in hook methods create and delete * comments added to explain actions modifications * added versioning updates to actions and overledger pckage.json. as well as component key adjustments to alin with pipedream requirements * code revisions made based on pull request review * added enironment prop to commmon sources file (base.mjs) and updated delete and creathooks to take in this param * fixed issue with sign-a-transaction default nativeData being undefined now is object * removal of default actions prop values on sign-transaction - stop error flag * tested and ammended read-from smart contract ans sign transcation to prevent failures * upgraded overledger urls sandbox and production to new .dev urls, changed polygon network option from mumbai to amoy * upgraded overledger urls sandbox and production to new .dev urls, changed polygon network option from mumbai to amoy * upgraded overledger urls sandbox and production to new .dev urls, changed polygon network option from mumbai to amoy - uppdated version * versioning update for overledger component to 1.0.0 due to API url change * updates * pnpm-lock.yaml --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Luan Cazarine <[email protected]> Co-authored-by: michelle0927 <[email protected]>
1 parent 9775ad2 commit c2ac809

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

components/overledger/actions/execute-signed-transaction/execute-signed-transaction.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "overledger-execute-signed-transaction",
55
name: "Execute Signed Transaction",
66
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.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
overledger,

components/overledger/actions/prepare-smart-contract-transaction/prepare-smart-contract-transaction.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "overledger-prepare-smart-contract-transaction",
99
name: "Prepare Smart Contract Transaction",
1010
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.2",
11+
version: "0.0.3",
1212
type: "action",
1313
props: {
1414
overledger,

components/overledger/actions/read-from-a-smart-contract/read-from-a-smart-contract.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "overledger-read-from-a-smart-contract",
99
name: "Read from a smart contract",
1010
description: "Reads data from a specified smart contract on the Overledger network.",
11-
version: "0.0.1",
11+
version: "0.0.2",
1212
type: "action",
1313
props: {
1414
overledger,

components/overledger/actions/sign-a-transaction/sign-a-transaction.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import overledger from "../../overledger.app.mjs";
2-
import { TECHNOLOGY_OPTIONS, UNIT_OPTIONS } from "../../common/constants.mjs";
2+
import {
3+
TECHNOLOGY_OPTIONS, UNIT_OPTIONS,
4+
} from "../../common/constants.mjs";
35

46
export default {
57
key: "overledger-sign-a-transaction",
68
name: "Sign a transaction",
79
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-
version: "0.0.1",
10+
version: "0.0.3",
911
type: "action",
1012
props: {
1113
overledger,

components/overledger/common/constants.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ export const TECHNOLOGY_OPTIONS = [
2424
export const NETWORK_OPTIONS = {
2525
"ethereum": [
2626
"ethereum sepolia testnet",
27-
"ethereum goerli testnet",
2827
"ethereum mainnet",
29-
"polygon mumbai testnet",
28+
"polygon amoy testnet",
3029
"polygon mainnet",
3130
"avalanche fuji testnet",
3231
"avalanche c-chain mainnet",
3332
"xdc apothem testnet",
3433
"xdc network mainnet",
35-
"Defined on demand",
3634
],
3735
"substrate": [
3836
"polkadot westend",

components/overledger/overledger.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default {
2727
},
2828
_getBaseUrl(environment) { //conditional for environment url selection.
2929
return environment === "sandbox"
30-
? "https://api.sandbox.overledger.io"
31-
: "https://api.overledger.io";
30+
? "https://api.sandbox.overledger.dev"
31+
: "https://api.overledger.dev";
3232
},
3333
_makeRequest({
3434
$ = this, environment, path, ...otherOpts

components/overledger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/overledger",
3-
"version": "0.2.0",
3+
"version": "1.0.0",
44
"description": "Pipedream Overledger Components",
55
"main": "overledger.app.mjs",
66
"keywords": [

components/overledger/sources/new-contract-event-instant/new-contract-event-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "overledger-new-contract-event-instant",
77
name: "New Smart Contract Event (Instant)",
88
description: "Emit new event when a smart contract releases a new event.",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {

components/overledger/sources/watch-new-account-event-instant/watch-new-account-event-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "overledger-watch-new-account-event-instant",
77
name: "New Account Event (Instant)",
88
description: "Emit new event for transactions to/from a specific account.",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {

0 commit comments

Comments
 (0)