/'
+ baseUrl: '/autonomous-agents/archietecture_docusaurus/',
- // GitHub pages deployment config.
- // If you aren't using GitHub pages, you don't need these.
- organizationName: "cardanoapi", // Usually your GitHub org/user name.
- projectName: "autonomous-agents", // Usually your repo name.
+ // GitHub pages deployment config.
+ // If you aren't using GitHub pages, you don't need these.
+ organizationName: 'cardanoapi', // Usually your GitHub org/user name.
+ projectName: 'autonomous-agents', // Usually your repo name.
- onBrokenLinks: "throw",
- onBrokenMarkdownLinks: "warn",
+ onBrokenLinks: 'throw',
+ onBrokenMarkdownLinks: 'warn',
- // Even if you don't use internationalization, you can use this field to set
- // useful metadata like html lang. For example, if your site is Chinese, you
- // may want to replace "en" with "zh-Hans".
- i18n: {
- defaultLocale: "en",
- locales: ["en"],
- },
+ // Even if you don't use internationalization, you can use this field to set
+ // useful metadata like html lang. For example, if your site is Chinese, you
+ // may want to replace "en" with "zh-Hans".
+ i18n: {
+ defaultLocale: 'en',
+ locales: ['en'],
+ },
- presets: [
- [
- "classic",
- {
- docs: {
- sidebarPath: "./sidebars.ts",
+ presets: [
+ [
+ 'classic',
+ {
+ docs: {
+ sidebarPath: './sidebars.ts',
- editUrl: "https://github.com/cardanoapi/autonomous-agents.git",
- },
- theme: {
- customCss: "./src/css/custom.css",
- },
- } satisfies Preset.Options,
+ editUrl: 'https://github.com/cardanoapi/autonomous-agents.git',
+ },
+ theme: {
+ customCss: './src/css/custom.css',
+ },
+ } satisfies Preset.Options,
+ ],
],
- ],
- themeConfig: {
- image: "img/docusaurus-social-card.jpg",
- navbar: {
- title: "Autonomous Agents",
- logo: {
- alt: "My Site Logo",
- src: "img/logo.svg",
- },
- items: [
- {
- type: "docSidebar",
- sidebarId: "tutorialSidebar",
- position: "left",
- label: "Architecture",
+ themeConfig: {
+ image: 'img/docusaurus-social-card.jpg',
+ navbar: {
+ title: 'Autonomous Agents',
+ logo: {
+ alt: 'My Site Logo',
+ src: 'img/logo.svg',
+ },
+ items: [
+ {
+ href: "https://github.com/cardanoapi/autonomous-agents.git",
+ label: "GitHub",
+ position: "right",
+ },
+ ],
},
- {
- href: "https://github.com/cardanoapi/autonomous-agents.git",
- label: "GitHub",
- position: "right",
+ footer: {
+ style: 'dark',
+ copyright: `Copyright © ${new Date().getFullYear()} Autonomous Agents`,
},
- ],
- },
- footer: {
- style: "dark",
- copyright: `Copyright © ${new Date().getFullYear()} Autonomous Agents`,
- },
- prism: {
- theme: prismThemes.github,
- darkTheme: prismThemes.dracula,
- },
- } satisfies Preset.ThemeConfig,
-};
+ prism: {
+ theme: prismThemes.github,
+ darkTheme: prismThemes.dracula,
+ },
+ } satisfies Preset.ThemeConfig,
+}
-export default config;
+export default config
diff --git a/docs/package.json b/docs/package.json
index 70883fb48..ee6210939 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -43,5 +43,6 @@
},
"engines": {
"node": ">=18.0"
- }
+ },
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
diff --git a/docs/sidebars.ts b/docs/sidebars.ts
index acc7685ac..b156546fe 100644
--- a/docs/sidebars.ts
+++ b/docs/sidebars.ts
@@ -1,4 +1,4 @@
-import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
+import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'
/**
* Creating a sidebar enables you to:
@@ -11,21 +11,8 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
- // By default, Docusaurus generates a sidebar from the docs folder structure
- tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
+ // By default, Docusaurus generates a sidebar from the docs folder structure
+ tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
+}
- // But you can create a sidebar manually
- /*
- tutorialSidebar: [
- 'intro',
- 'hello',
- {
- type: 'category',
- label: 'Tutorial',
- items: ['tutorial-basics/create-a-document'],
- },
- ],
- */
-};
-
-export default sidebars;
+export default sidebars
diff --git a/docs/static/assets/preview/AgentsDelegation-preview.gif b/docs/static/assets/preview/AgentsDelegation-preview.gif
new file mode 100644
index 000000000..91c989e6f
Binary files /dev/null and b/docs/static/assets/preview/AgentsDelegation-preview.gif differ
diff --git a/docs/static/assets/preview/DirectVoting-preview.gif b/docs/static/assets/preview/DirectVoting-preview.gif
new file mode 100644
index 000000000..d22e5c250
Binary files /dev/null and b/docs/static/assets/preview/DirectVoting-preview.gif differ
diff --git a/docs/static/assets/preview/EventBasedVoting-preview.gif b/docs/static/assets/preview/EventBasedVoting-preview.gif
new file mode 100644
index 000000000..c951b1f52
Binary files /dev/null and b/docs/static/assets/preview/EventBasedVoting-preview.gif differ
diff --git a/docs/static/assets/preview/InfoAction-preview.gif b/docs/static/assets/preview/InfoAction-preview.gif
new file mode 100644
index 000000000..da272145e
Binary files /dev/null and b/docs/static/assets/preview/InfoAction-preview.gif differ
diff --git a/docs/static/assets/preview/NewConstitution-preview.gif b/docs/static/assets/preview/NewConstitution-preview.gif
new file mode 100644
index 000000000..404d3bf79
Binary files /dev/null and b/docs/static/assets/preview/NewConstitution-preview.gif differ
diff --git a/docs/static/assets/preview/TresuryWithdrawal-preview.gif b/docs/static/assets/preview/TresuryWithdrawal-preview.gif
new file mode 100644
index 000000000..b20179855
Binary files /dev/null and b/docs/static/assets/preview/TresuryWithdrawal-preview.gif differ
diff --git a/docs/static/assets/preview/UpdateCommittee-preview.gif b/docs/static/assets/preview/UpdateCommittee-preview.gif
new file mode 100644
index 000000000..c0b3552cf
Binary files /dev/null and b/docs/static/assets/preview/UpdateCommittee-preview.gif differ
diff --git a/docs/static/assets/sanchonet/AgentsDelegation-sanchonet.gif b/docs/static/assets/sanchonet/AgentsDelegation-sanchonet.gif
new file mode 100644
index 000000000..299f0037c
Binary files /dev/null and b/docs/static/assets/sanchonet/AgentsDelegation-sanchonet.gif differ
diff --git a/docs/static/assets/sanchonet/DirectVoting-sanchonet.gif b/docs/static/assets/sanchonet/DirectVoting-sanchonet.gif
new file mode 100644
index 000000000..ee7be1330
Binary files /dev/null and b/docs/static/assets/sanchonet/DirectVoting-sanchonet.gif differ
diff --git a/docs/static/assets/sanchonet/EventBasedVoting-sanchonet.gif b/docs/static/assets/sanchonet/EventBasedVoting-sanchonet.gif
new file mode 100644
index 000000000..0f42f05de
Binary files /dev/null and b/docs/static/assets/sanchonet/EventBasedVoting-sanchonet.gif differ
diff --git a/docs/static/assets/sanchonet/InfoAction-sanchonet.gif b/docs/static/assets/sanchonet/InfoAction-sanchonet.gif
new file mode 100644
index 000000000..9c5f626bc
Binary files /dev/null and b/docs/static/assets/sanchonet/InfoAction-sanchonet.gif differ
diff --git a/docs/static/assets/sanchonet/NewConstitution-sanchonet.gif b/docs/static/assets/sanchonet/NewConstitution-sanchonet.gif
new file mode 100644
index 000000000..251f6c221
Binary files /dev/null and b/docs/static/assets/sanchonet/NewConstitution-sanchonet.gif differ
diff --git a/docs/static/assets/sanchonet/TresuryWithdrawal-sanchonet.gif b/docs/static/assets/sanchonet/TresuryWithdrawal-sanchonet.gif
new file mode 100644
index 000000000..df3ccd410
Binary files /dev/null and b/docs/static/assets/sanchonet/TresuryWithdrawal-sanchonet.gif differ
diff --git a/docs/static/assets/sanchonet/UpdateCommittee-sanchonet.gif b/docs/static/assets/sanchonet/UpdateCommittee-sanchonet.gif
new file mode 100644
index 000000000..337452872
Binary files /dev/null and b/docs/static/assets/sanchonet/UpdateCommittee-sanchonet.gif differ
diff --git a/frontend/README.md b/frontend/README.md
index f600741a1..23765051d 100644
--- a/frontend/README.md
+++ b/frontend/README.md
@@ -8,10 +8,12 @@ yarn install
Once the installation is complete create new file `.env` and copy env variables form `.env.example` to `.env` and update the env variables.
-- **`NEXT_PUBLIC_NETWORK_NAME`**: Set to`sanchonet` or `preview` or `preprod`.
- **`Note`**: It will only display network type in web app. You need to update `agent-manager`, `backend` and `dbsync-api` services to change thw working of functions in other networks.
-- - **`NEXT_PUBLIC_ENABLE_AGENT_INSTANCE`**: Enable it by adding `true` to run `multiple instances of single agent` feature where same type of functions will be executed by multiple instance of agent. To use this feature you also need to increase the instance number from `Agent Overview ` section.
-- - **`NEXT_PUBLIC_API_URL`**: `Backend ` service url accessed from browser.
+- **`NEXT_PUBLIC_NETWORK_NAME`**: Set to`sanchonet` or `preview` or `preprod`.
+
+ **`Note`**: It will only display network type in web app.
You need to update `agent-manager`, `backend` and `dbsync-api` services to change thw working of functions in other networks.
+
+- **`NEXT_PUBLIC_ENABLE_AGENT_INSTANCE`**: Enable it by adding `true` to run `multiple instances of single agent` feature where same type of functions will be executed by multiple instance of agent. To use this feature you also need to increase the instance number from `Agent Overview ` section.
+- **`NEXT_PUBLIC_API_URL`**: `Backend ` service url accessed from browser.
##### Finally run one of the commands below to start the development server:
diff --git a/frontend/src/components/Agent/AgentContent/Logs.tsx b/frontend/src/components/Agent/AgentContent/Logs.tsx
index 76e032ff1..9f735bbf4 100644
--- a/frontend/src/components/Agent/AgentContent/Logs.tsx
+++ b/frontend/src/components/Agent/AgentContent/Logs.tsx
@@ -181,7 +181,9 @@ export const AgentLogCard = ({
{history.result ? (
Result
- {history.txHash || !history.message ? (
+ {!checkIfValueIsObject(history.result) ? (
+ {history.result}
+ ) : history.txHash || !history.message ? (
) : (
{history.message}
@@ -326,3 +328,7 @@ export const AgentLogCardSkeleton = ({ className }: { className?: string }) => {
);
};
+
+function checkIfValueIsObject(val: any) {
+ return typeof val === 'object';
+}
diff --git a/frontend/src/models/types/functions.ts b/frontend/src/models/types/functions.ts
index 07dffed87..0734c39b8 100644
--- a/frontend/src/models/types/functions.ts
+++ b/frontend/src/models/types/functions.ts
@@ -3,7 +3,7 @@ export type ParameterType = 'string' | 'number' | 'object' | 'options' | 'hash'
type groupTypes = 'Certificates' | 'Vote' | 'Payment' | 'Governance Proposal';
export interface IFunctionsDto {
- group: groupTypes;
+ group: groupTypes | string;
items: IFunctionsItem[];
}
diff --git a/scenario/Preview.md b/scenario/Preview.md
new file mode 100644
index 000000000..8bcc5e176
--- /dev/null
+++ b/scenario/Preview.md
@@ -0,0 +1,60 @@
+# Scenario Testing and Evidence ( Preview )
+
+Tests were executed at [preview.agents.cardanoapi.io](https://preview.agents.cardanoapi.io) .
+
+## Info Action Proposal Creation
+
+
+
+
+[ **View on Cexplorer** ](https://preview.cexplorer.io/tx/a16846400f10bb7613825817b11df5aaa9f08a95a867f4b2148b2dfaf34ea554/governance#data)
+
+**Governance Action ID** : a16846400f10bb7613825817b11df5aaa9f08a95a867f4b2148b2dfaf34ea554
+
+## Update Committee Proposal Creation
+
+
+
+[**View on Cexplorer**](https://preview.cexplorer.io/tx/053437d52f50e798b9fe5f6109a463cd36b6c9962cf769e4c0867cda8ab85d20/governance#data)
+
+**Gocernance Action ID** :
+053437d52f50e798b9fe5f6109a463cd36b6c9962cf769e4c0867cda8ab85d20
+
+## New Constitution Proposal Creation
+
+
+
+[**View on Cexplorer**](https://preview.cexplorer.io/tx/6550d7c5c30a7d7a92d89fed803258beece8d1c38df947f31d068a8e81ba9703/governance#data)
+
+**Governance Action ID** : aabc250eb8b83eca86f191fd8491997bbceabb4c2c4c6d6f286cdf27ff999a9d
+
+
+## Tresury Withdrawal Proposal Creation
+
+
+
+[**View on Cexplorer**](https://preview.cexplorer.io/tx/5a79d5e1b80aa0b3c94ed6fc617ad7a333743ce14508ee0b48b6a744bc3ae8f1/governance#data)
+
+**Governance Action ID**: 5a79d5e1b80aa0b3c94ed6fc617ad7a333743ce14508ee0b48b6a744bc3ae8f1
+
+## Direct Agent Voting
+
+
+
+
+[**View on Cexplorer**](https://preview.cexplorer.io/tx/b8b8282bd390131d8387adc703250e73cdc5c115904ca94c4870d1ab2a790008/governance#data)
+
+**Transaction Hash** : b8b8282bd390131d8387adc703250e73cdc5c115904ca94c4870d1ab2a790008
+
+
+## Agent Delagation to Drep
+
+
+
+[**View on Cexplorer**](https://preview.cexplorer.io/tx/d62543eebce8b966c95a891f18077538b013e55c08d08f46af9e4a77a7010dcd/governance#data)
+
+**DRep ID** :
+8141d8651e0139b3bfc9c31f76d885431f83957329d75e0e53a65c2a
+
+**Transaction Hash** :
+d62543eebce8b966c95a891f18077538b013e55c08d08f46af9e4a77a7010dcd
\ No newline at end of file
diff --git a/scenario/README.md b/scenario/README.md
new file mode 100644
index 000000000..6b71cffd1
--- /dev/null
+++ b/scenario/README.md
@@ -0,0 +1,34 @@
+# Scenarios covered under the scope of CIP 1694
+
+## Proposal Creation
+
+Agents are able to create different proposals and tirgger Governance actions mentioned in the [CIP 1694 ](https://www.1694.io/en). Proposals can be created manually or be configured to be created by the agent periodically.
+
+
+ - **Info Action Proposal** : An action that has no effect on-chain, other than an on-chain record.
+
+ - **Motion of No Confidence** : A motion to create a state of no-confidence in the current constitutional committee.
+
+ - **New Constitution** : A modification to the Constitution or Guardrails Script, recorded as on-chain hashes
+
+ - **Tresaury Withdrawal** : Withdrawas from the Tresaury
+
+ - **Update Committee** : Changes to the members of the constitutional committee and/or to its signature threshold and/or terms
+
+
+## Voting on Proposal
+
+Agents have the ability to participate in various governance actions through voting. They can be configured to vote either based on event occurrences or through direct voting.
+
+- **Event based Proposal voting** : Agents are able to detect new proposals that are created on the network while they are active and autonomously vote on them.
+
+- **Direct Proposal voting** : Agents are also able to directly vote on existing proposals.
+
+
+
+# Governance beyond CIP 1694
+Beyond the Scenarios of CIP 1694 , Agents are capable of performing other actions on the network, mimicking the behavior of a real user and providing a realistic simulation of on-chain activity.
+
+- **Ada Transfers** : Agents can transfer Ada to other wallet holders in the network, simulating wallet-to-wallet transactions.
+
+- **Drep Management** : Agents can register and deregister as a Drep, as well as manage their stake and delegation status.
diff --git a/scenario/SanchoNet.md b/scenario/SanchoNet.md
new file mode 100644
index 000000000..2adb0ab6d
--- /dev/null
+++ b/scenario/SanchoNet.md
@@ -0,0 +1,77 @@
+# Scenario Testing and Evidence ( SanchoNet )
+
+Tests were executed at [agents.cardanoapi.io](https://agents.cardanoapi.io) .
+
+## Info Action Proposal Creation
+
+
+
+
+**Governance Action ID** : 8dea16c7e047e4a6de60ac928f33ac36ef9755e38d66a6c7f7870ad8b271bda8#0
+
+**Epoch** : 524
+
+## Update Committee Proposal Creation
+
+
+
+**Gocernance Action ID** :
+770354b2132cf55f9d7fdede0be186a5f90ccc8238fb2a061a86177b848ea81e
+
+**Epoch** : 525
+
+
+## New Constitution Proposal Creation
+
+
+
+**Governance Action ID** :
+64397d882477f795cf209b516685e30d52ee1336654198b1e7e963d3da099520#0
+
+**Epoch** : 525
+
+## Tresury Withdrawal Proposal Creation
+
+
+
+**Governance Action ID**: 8accd7d79ed6e4f98bc538c2aea8998c0cb03255b23bb5af408d7c3201dc9b44#0
+
+**Epoch** : 525
+
+## Multiple Agents Voting Directly
+
+
+
+
+**Transaction Hash**
+ - 626b64310f0976f4de2fd0bd85ebe481019c6d67d2b83a8d8bebe814c72f2723
+ - 8c38a0f4625c30ef556d5f1aa3c40a3ba25ba8b26285e2a6fb02a22cd66f6652
+ - 36eb0f174fb0f58a567bb403d4a365617c7abc3666a480711ac1c47d204eed7e
+ - 3a383fe969e2210ee843d4f863ec53037e53741a6dc3523c4ffd5074d4a7d357
+ - 8318450e2bee736c73f0c790b8bf175301ab93745b35be1e988d6f051ac5f100
+
+
+## Event Based Agents Voting Autonomously
+
+
+
+**Governance Action ID** :
+a5ea393f80a88320e457a1e4f5c8ffb4e198efe9ae798458fc13011f222f3a0c#0
+
+**Transaction Hash**
+- 976b6de916ecaa6294c8d0876e39f4df30781813bed92952e03fea340eb8ec26
+- fc5924655c91c8c0e3468128b5af702f6c83745591ad14d518d3fcee5856d790
+
+## Multiple Agents Delegating to a DRep
+
+
+
+**DRep ID** :
+766fea13963a6c27a98d4c48221548cc3e2d10ad7c085c5fb9936dfa
+
+**Transaction Hash** :
+- 6970a725bc883ce08beb0240507b6886c60185cbb4ea3627362f62492404a5ed
+- 4f4a5130c7285d3585345c5b1f89a6e184889039908b85a6ca5fd714f86ed34b
+- dfc3262b717f7bec91cdea749599e31d8250a4552f0887bc9ab85b6d8c19c7f9
+- dfc3262b717f7bec91cdea749599e31d8250a4552f0887bc9ab85b6d8c19c7f9
+- c2604bccf2b35bbc172bfacf694b7a8b709188d8b427ad198c209f82c4c374ab
\ No newline at end of file
diff --git a/scenario/assets/preview/AgentsDelegation-preview.gif b/scenario/assets/preview/AgentsDelegation-preview.gif
new file mode 100644
index 000000000..91c989e6f
Binary files /dev/null and b/scenario/assets/preview/AgentsDelegation-preview.gif differ
diff --git a/scenario/assets/preview/DirectVoting-preview.gif b/scenario/assets/preview/DirectVoting-preview.gif
new file mode 100644
index 000000000..d22e5c250
Binary files /dev/null and b/scenario/assets/preview/DirectVoting-preview.gif differ
diff --git a/scenario/assets/preview/EventBasedVoting-preview.gif b/scenario/assets/preview/EventBasedVoting-preview.gif
new file mode 100644
index 000000000..c951b1f52
Binary files /dev/null and b/scenario/assets/preview/EventBasedVoting-preview.gif differ
diff --git a/scenario/assets/preview/InfoAction-preview.gif b/scenario/assets/preview/InfoAction-preview.gif
new file mode 100644
index 000000000..da272145e
Binary files /dev/null and b/scenario/assets/preview/InfoAction-preview.gif differ
diff --git a/scenario/assets/preview/NewConstitution-preview.gif b/scenario/assets/preview/NewConstitution-preview.gif
new file mode 100644
index 000000000..404d3bf79
Binary files /dev/null and b/scenario/assets/preview/NewConstitution-preview.gif differ
diff --git a/scenario/assets/preview/TresuryWithdrawal-preview.gif b/scenario/assets/preview/TresuryWithdrawal-preview.gif
new file mode 100644
index 000000000..b20179855
Binary files /dev/null and b/scenario/assets/preview/TresuryWithdrawal-preview.gif differ
diff --git a/scenario/assets/preview/UpdateCommittee-preview.gif b/scenario/assets/preview/UpdateCommittee-preview.gif
new file mode 100644
index 000000000..c0b3552cf
Binary files /dev/null and b/scenario/assets/preview/UpdateCommittee-preview.gif differ
diff --git a/scenario/assets/sanchonet/AgentsDelegation-sanchonet.gif b/scenario/assets/sanchonet/AgentsDelegation-sanchonet.gif
new file mode 100644
index 000000000..299f0037c
Binary files /dev/null and b/scenario/assets/sanchonet/AgentsDelegation-sanchonet.gif differ
diff --git a/scenario/assets/sanchonet/DirectVoting-sanchonet.gif b/scenario/assets/sanchonet/DirectVoting-sanchonet.gif
new file mode 100644
index 000000000..ee7be1330
Binary files /dev/null and b/scenario/assets/sanchonet/DirectVoting-sanchonet.gif differ
diff --git a/scenario/assets/sanchonet/EventBasedVoting-sanchonet.gif b/scenario/assets/sanchonet/EventBasedVoting-sanchonet.gif
new file mode 100644
index 000000000..0f42f05de
Binary files /dev/null and b/scenario/assets/sanchonet/EventBasedVoting-sanchonet.gif differ
diff --git a/scenario/assets/sanchonet/InfoAction-sanchonet.gif b/scenario/assets/sanchonet/InfoAction-sanchonet.gif
new file mode 100644
index 000000000..9c5f626bc
Binary files /dev/null and b/scenario/assets/sanchonet/InfoAction-sanchonet.gif differ
diff --git a/scenario/assets/sanchonet/NewConstitution-sanchonet.gif b/scenario/assets/sanchonet/NewConstitution-sanchonet.gif
new file mode 100644
index 000000000..251f6c221
Binary files /dev/null and b/scenario/assets/sanchonet/NewConstitution-sanchonet.gif differ
diff --git a/scenario/assets/sanchonet/TresuryWithdrawal-sanchonet.gif b/scenario/assets/sanchonet/TresuryWithdrawal-sanchonet.gif
new file mode 100644
index 000000000..df3ccd410
Binary files /dev/null and b/scenario/assets/sanchonet/TresuryWithdrawal-sanchonet.gif differ
diff --git a/scenario/assets/sanchonet/UpdateCommittee-sanchonet.gif b/scenario/assets/sanchonet/UpdateCommittee-sanchonet.gif
new file mode 100644
index 000000000..337452872
Binary files /dev/null and b/scenario/assets/sanchonet/UpdateCommittee-sanchonet.gif differ