Skip to content

Commit

Permalink
Overledger upgrade (#15052)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
4 people authored Jan 9, 2025
1 parent 9775ad2 commit c2ac809
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "overledger-execute-signed-transaction",
name: "Execute Signed Transaction",
description: "Executes a signed transaction by sending it to a blockchain node via Overledger. [See the documentation](https://developers.quant.network/reference/executesignedrequest)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
overledger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "overledger-prepare-smart-contract-transaction",
name: "Prepare Smart Contract Transaction",
description: "Prepares a smart contract transaction for signing on the Overledger platform. [See the documentation](https://developers.quant.network/reference/preparesmartcontractwrite)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
overledger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "overledger-read-from-a-smart-contract",
name: "Read from a smart contract",
description: "Reads data from a specified smart contract on the Overledger network.",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
overledger,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import overledger from "../../overledger.app.mjs";
import { TECHNOLOGY_OPTIONS, UNIT_OPTIONS } from "../../common/constants.mjs";
import {
TECHNOLOGY_OPTIONS, UNIT_OPTIONS,
} from "../../common/constants.mjs";

export default {
key: "overledger-sign-a-transaction",
name: "Sign a transaction",
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)",
version: "0.0.1",
version: "0.0.3",
type: "action",
props: {
overledger,
Expand Down
4 changes: 1 addition & 3 deletions components/overledger/common/constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ export const TECHNOLOGY_OPTIONS = [
export const NETWORK_OPTIONS = {
"ethereum": [
"ethereum sepolia testnet",
"ethereum goerli testnet",
"ethereum mainnet",
"polygon mumbai testnet",
"polygon amoy testnet",
"polygon mainnet",
"avalanche fuji testnet",
"avalanche c-chain mainnet",
"xdc apothem testnet",
"xdc network mainnet",
"Defined on demand",
],
"substrate": [
"polkadot westend",
Expand Down
4 changes: 2 additions & 2 deletions components/overledger/overledger.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default {
},
_getBaseUrl(environment) { //conditional for environment url selection.
return environment === "sandbox"
? "https://api.sandbox.overledger.io"
: "https://api.overledger.io";
? "https://api.sandbox.overledger.dev"
: "https://api.overledger.dev";
},
_makeRequest({
$ = this, environment, path, ...otherOpts
Expand Down
2 changes: 1 addition & 1 deletion components/overledger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/overledger",
"version": "0.2.0",
"version": "1.0.0",
"description": "Pipedream Overledger Components",
"main": "overledger.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "overledger-new-contract-event-instant",
name: "New Smart Contract Event (Instant)",
description: "Emit new event when a smart contract releases a new event.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "overledger-watch-new-account-event-instant",
name: "New Account Event (Instant)",
description: "Emit new event for transactions to/from a specific account.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
props: {
Expand Down

0 comments on commit c2ac809

Please sign in to comment.