Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable Mech request price parameter and migrate mech contract functionality #146

Merged
merged 23 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1ca410a
feat: add request_price
jmoreira-valory Mar 20, 2024
318a67c
fix: copyright
jmoreira-valory Mar 20, 2024
47ab25e
doc: fix hash
jmoreira-valory Mar 20, 2024
7e01f74
Merge commit '37f52190f72166d8fdff8ff4a839c433b16ce1a4' into feat/add…
jmoreira-valory Mar 21, 2024
7d0623c
chore: update hashes
jmoreira-valory Mar 21, 2024
472bb45
[no ci] update contract mech.json
jmoreira-valory Mar 21, 2024
da64e58
[no ci] chore: fixes
jmoreira-valory Mar 22, 2024
0c2c4d4
chore: temp logging
jmoreira-valory Mar 26, 2024
0635d33
Merge remote-tracking branch 'origin/HEAD' into feat/migrate_mech_con…
jmoreira-valory Mar 27, 2024
3f0e1e2
doc: update version
jmoreira-valory Mar 27, 2024
d8f7987
chore: revert logging
jmoreira-valory Mar 27, 2024
80caf40
chore: hashes
jmoreira-valory Mar 27, 2024
9c5e48a
fix: linters
jmoreira-valory Mar 27, 2024
d4aec6b
doc: hashes
jmoreira-valory Mar 27, 2024
7b4654b
fix: added optional values on payload
jmoreira-valory Apr 2, 2024
4cc861a
Merge remote-tracking branch 'origin/HEAD' into feat/migrate_mech_con…
jmoreira-valory Apr 2, 2024
a9030c6
chore: merge main
jmoreira-valory Apr 2, 2024
7907fe2
fix: hash
jmoreira-valory Apr 2, 2024
12e9337
fix: remove logging message
jmoreira-valory Apr 3, 2024
94f2da1
fix: linters
jmoreira-valory Apr 3, 2024
3f9cfe6
feat: backport 50 percent trader mech contract
jmoreira-valory Apr 3, 2024
a60bd3f
feat: migrate remaining functionality to mech contract
jmoreira-valory Apr 4, 2024
c546c15
feat: added checksummed addresses
jmoreira-valory Apr 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ In order to run a local demo service based on the IEKit:
mkdir your_workspace && cd your_workspace
touch Pipfile && pipenv --python 3.10 && pipenv shell

pipenv install open-autonomy[all]==0.14.6
pipenv install open-autonomy[all]==0.14.10
autonomy init --remote --ipfs --reset --author=your_name
```

2. Fetch the IEKit.

```bash
autonomy fetch valory/impact_evaluator:0.1.0:bafybeieyvs6u4ul3gn74nb3lgv7vi22quogn6ycjtqzdu33czngnxezwky --service
autonomy fetch valory/impact_evaluator:0.1.0:bafybeibalbgu2khvypip32ssj6upjby3fwq2rcjtzh4qwsg5pxhfipcine --service
```

3. Build the Docker image of the service agents
Expand Down
12 changes: 6 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"protocol/valory/llm/1.0.0": "bafybeihj2orqapokafg7co3wlogwgf6cckaaj2bz3nuv4rm3opkoyhrlp4",
"protocol/valory/srr/0.1.0": "bafybeihrixgptxuqpf2s4nujypwlv5aed2nboozq5kl4c26cxw6r7si2x4",
"contract/valory/dynamic_contribution/0.1.0": "bafybeier4e6577cl5rxkhxz3r53tacbdqoabqw5ae3kig2jgrfwdit7zpy",
"contract/valory/mech/0.1.0": "bafybeicct2ijhq7x5tin3km6b4bjmrhbknrz7xptxwzzriv7443shcmjle",
"contract/valory/mech/0.1.0": "bafybeiejdn3rqqa7smbeiypajy63um7okteimvj6bsud3gezneycmdc6te",
"contract/valory/compatibility_fallback_handler/0.1.0": "bafybeiaoaxll4lwdiaahxl2r2vunafifu7w2axjbpnghwcfrexusfbsftq",
"contract/valory/wveolas/0.1.0": "bafybeibtlvxqrve5g4uentwwfsjpnffxr3qfczwjqa7va3oyvosrzw5vd4",
"contract/valory/veolas_delegation/0.1.0": "bafybeifsl5e75bauixbq2fvrq4dyse3dle5zvdozz224t2heridjqequti",
Expand All @@ -15,19 +15,19 @@
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeidoizlbvmh7gk3vll7k4hid7fxkde4qdvrdxpo7gweda2f5kqyj3m",
"skill/valory/ceramic_read_abci/0.1.0": "bafybeihnao4vubt3rjhka7swjqedifppohfa3jzgpmdxalfdofr44q5jti",
"skill/valory/ceramic_write_abci/0.1.0": "bafybeia5mutx7urihg3bfjqmw7ox2luspcr2fakuvkkx6oglupbt52wpxi",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeif36fcmfsuqcm2e6bkn54tse45onpwrlyl5qpehmweztx43jmgvhi",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeihbj67rybtlqxs6oai7t2hgk3b5dof7bfqntgxic5wbbr3yhuayym",
"skill/valory/generic_scoring_abci/0.1.0": "bafybeif5yqzf7lwnfssijm2eytog6takawngjltkvgzxmhfdob7klmgph4",
"skill/valory/twitter_write_abci/0.1.0": "bafybeialoyaropbcglckqsvhul3ojiuthsbdcm6a34py5p2b2sit4awoey",
"skill/valory/llm_abci/0.1.0": "bafybeigu2xacitzocldv7kofnzi4g6e64xwl4vzl3m665bjbdqfkua6g3q",
"skill/valory/decision_making_abci/0.1.0": "bafybeien73urcvuyewvpdyp26lwvnasmpltgtcsi5h463it6a2h576riem",
"skill/valory/olas_week_abci/0.1.0": "bafybeigjaawlgphqsjispczom6mrmvl23xhzaaxxytovgcgwzzhyht463i",
"skill/valory/mech_interact_abci/0.1.0": "bafybeia55wkn5bpwtm66avsyst5aot6nj7gelnfpyhtsyayzxba5cresii",
"skill/valory/mech_interact_abci/0.1.0": "bafybeidxignwgujlkhw5hbek7xw2uz5nrd3h2xx7sj5zor263dgh4fm3p4",
"skill/valory/farcaster_write_abci/0.1.0": "bafybeibrrumk6wgzon36a6iy6ke4p52cqgsmnmuooza4thpaga5fzz6l4e",
"skill/valory/farcaster_test_abci/0.1.0": "bafybeid3wxhjrltl7t3pxinygg46e3ob4jvch2pkvbfcv3ovhvhnhaq6ie",
"agent/valory/impact_evaluator/0.1.0": "bafybeihxhstvhp2gduiixf3m2wms7iv6qo3g5xlr4eq7ovdhoz6ogmi3yy",
"agent/valory/impact_evaluator/0.1.0": "bafybeicenmzty5b422p6yyaly3qsvrbuhx5qn7dedajzylvibzhdy5zyva",
"agent/valory/farcaster_test/0.1.0": "bafybeibmygyr2wl4hzevlduyop32cgeyyzewfifrwh7cmvazyasuz3u454",
"service/valory/impact_evaluator/0.1.0": "bafybeieyvs6u4ul3gn74nb3lgv7vi22quogn6ycjtqzdu33czngnxezwky",
"service/valory/impact_evaluator_local/0.1.0": "bafybeih3r5xmscyv2u6m37npdcozw3jlxshmvjs3c7q6wksnfezvyjhiia"
"service/valory/impact_evaluator/0.1.0": "bafybeibalbgu2khvypip32ssj6upjby3fwq2rcjtzh4qwsg5pxhfipcine",
"service/valory/impact_evaluator_local/0.1.0": "bafybeigdaxvq5hrlv4aiqhcwnubairjgjia6hiuv7xpbqqmebuxcuuc3eq"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
7 changes: 4 additions & 3 deletions packages/valory/agents/impact_evaluator/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeihat4giyc4bz6zopvahcj4iw53356pbtwfn7p4d5yflwly2qhahum
- valory/abstract_round_abci:0.1.0:bafybeih3enhagoql7kzpeyzzu2scpkif6y3ubakpralfnwxcvxexdyvy5i
- valory/impact_evaluator_abci:0.1.0:bafybeif36fcmfsuqcm2e6bkn54tse45onpwrlyl5qpehmweztx43jmgvhi
- valory/impact_evaluator_abci:0.1.0:bafybeihbj67rybtlqxs6oai7t2hgk3b5dof7bfqntgxic5wbbr3yhuayym
- valory/generic_scoring_abci:0.1.0:bafybeif5yqzf7lwnfssijm2eytog6takawngjltkvgzxmhfdob7klmgph4
- valory/twitter_scoring_abci:0.1.0:bafybeidoizlbvmh7gk3vll7k4hid7fxkde4qdvrdxpo7gweda2f5kqyj3m
- valory/ceramic_read_abci:0.1.0:bafybeihnao4vubt3rjhka7swjqedifppohfa3jzgpmdxalfdofr44q5jti
Expand All @@ -57,7 +57,7 @@ skills:
- valory/decision_making_abci:0.1.0:bafybeien73urcvuyewvpdyp26lwvnasmpltgtcsi5h463it6a2h576riem
- valory/llm_abci:0.1.0:bafybeigu2xacitzocldv7kofnzi4g6e64xwl4vzl3m665bjbdqfkua6g3q
- valory/olas_week_abci:0.1.0:bafybeigjaawlgphqsjispczom6mrmvl23xhzaaxxytovgcgwzzhyht463i
- valory/mech_interact_abci:0.1.0:bafybeia55wkn5bpwtm66avsyst5aot6nj7gelnfpyhtsyayzxba5cresii
- valory/mech_interact_abci:0.1.0:bafybeidxignwgujlkhw5hbek7xw2uz5nrd3h2xx7sj5zor263dgh4fm3p4
default_ledger: ethereum
required_ledgers:
- ethereum
Expand Down Expand Up @@ -250,7 +250,8 @@ models:
light_slash_unit_amount: ${int:5000000000000000}
serious_slash_unit_amount: ${int:8000000000000000}
multisend_batch_size: ${int:50}
mech_contract_address: ${str:0x77af31de935740567cf4ff1986d04b2c964a786a}
mech_contract_address: ${str:0x77af31De935740567Cf4fF1986D04B2c964A786a}
request_price: ${int:null}
ipfs_address: ${str:https://gateway.autonolas.tech/ipfs/}
default_chain_id: ${str:ethereum}
transaction_service_url: ${str:https://safe-transaction-mainnet.safe.global/api/v1/messages/{message_hash}/}
Expand Down
Loading
Loading