Skip to content

Commit

Permalink
chore: templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Aug 14, 2024
1 parent 72c42d5 commit b5162ef
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
7 changes: 3 additions & 4 deletions frontend/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,19 @@ export type ServiceTemplate = {
hash: string;
image: string;
description: string;
configuration: ConfigurationTemplate;
service_version: string;
home_chain_id: string;
configurations: { [key: string]: ConfigurationTemplate };
deploy?: boolean;
};

export type ConfigurationTemplate = {
nft: string;
trader_version: string;
rpc?: string; // added by user
agent_id: number;
threshold: number;
use_staking: boolean;
cost_of_bond: number;
olas_cost_of_bond: number;
olas_required_to_stake: number;
monthly_gas_estimate: number;
fund_requirements: FundRequirementsTemplate;
};
Expand Down
29 changes: 15 additions & 14 deletions frontend/constants/serviceTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ export const SERVICE_TEMPLATES: ServiceTemplate[] = [
description: 'Trader agent for omen prediction markets',
image:
'https://operate.olas.network/_next/image?url=%2Fimages%2Fprediction-agent.png&w=3840&q=75',
configuration: {
trader_version: 'v0.16.4',
nft: 'bafybeig64atqaladigoc3ds4arltdu63wkdrk3gesjfvnfdmz35amv7faq',
agent_id: 14,
threshold: 1,
use_staking: true,
cost_of_bond: 10000000000000000,
olas_cost_of_bond: 10000000000000000000,
olas_required_to_stake: 10000000000000000000,
monthly_gas_estimate: 10000000000000000000,
fund_requirements: {
agent: 100000000000000000,
safe: 5000000000000000000,
},
service_version: 'v0.18.1',
home_chain_id: '100',
configurations: {
'100': {
nft: 'bafybeig64atqaladigoc3ds4arltdu63wkdrk3gesjfvnfdmz35amv7faq',
agent_id: 14,
threshold: 1,
use_staking: true,
cost_of_bond: 10000000000000000,
monthly_gas_estimate: 10000000000000000000,
fund_requirements: {
agent: 100000000000000000,
safe: 5000000000000000000,
},
}
},
},
];
28 changes: 14 additions & 14 deletions templates/trader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: "Trader Agent"
description: "A single-agent service (sovereign agent) placing bets on Omen"
hash: bafybeidgjgjj5ul6xkubicbemppufgsbx5sr5rwhtrwttk2oivp5bkdnce
image: https://operate.olas.network/_next/image?url=%2Fimages%2Fprediction-agent.png&w=3840&q=75
trader_version: v0.18.1
configuration:
nft: bafybeig64atqaladigoc3ds4arltdu63wkdrk3gesjfvnfdmz35amv7faq
rpc: http://localhost:8545 # User provided
agent_id: 14
threshold: 1 # TODO: Move to service component
use_staking: false # User provided
cost_of_bond: 10000000000000000
olas_cost_of_bond: 10000000000000000000
olas_required_to_stake: 10000000000000000000
monthly_gas_estimate: 10000000000000000000
fund_requirements:
agent: 100000000000000000
safe: 5000000000000000000
service_version: v0.18.1
home_chain_id: 100
configurations:
100:
staking_program_id: pearl_beta
nft: bafybeig64atqaladigoc3ds4arltdu63wkdrk3gesjfvnfdmz35amv7faq
rpc: http://localhost:8545 # User provided
threshold: 1 # TODO: Move to service component
use_staking: false # User provided
cost_of_bond: 10000000000000000
monthly_gas_estimate: 10000000000000000000 # TODO: Where is this used
fund_requirements:
agent: 100000000000000000
safe: 5000000000000000000

0 comments on commit b5162ef

Please sign in to comment.