Skip to content

Commit

Permalink
Merge pull request #234 from valory-xyz/fix/staking_contract
Browse files Browse the repository at this point in the history
Fix/staking contract
  • Loading branch information
dvilelaf authored Nov 21, 2024
2 parents 96d239d + 962a45f commit 2b80492
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In order to run a local demo service based on the IEKit:
2. Fetch the IEKit.

```bash
autonomy fetch valory/impact_evaluator:0.1.0:bafybeigyuwwe4rvvcmkwykvtc3uazvhp3hubsilhjf6ynpsyfvvkccgmgi --service
autonomy fetch valory/impact_evaluator:0.1.0:bafybeifzvdmfow4yrejyc562iogo7iytlldky46lqrszo3sd4kk52wfv3u --service
```

3. Build the Docker image of the service agents
Expand Down
18 changes: 9 additions & 9 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
"connection/valory/twitter/0.1.0": "bafybeiffqsvt3i37sd5qdsmpzf5i4hm37uosbobyogg5oyosovjs66buni",
"connection/valory/openai/0.1.0": "bafybeifz2n6s6u3zvvryhhxpkvn6guyp2jwpagtyjducvgwoldtmz7ea64",
"connection/valory/farcaster/0.1.0": "bafybeibbdas7lxbipksodaphjms3uop7vnzjqkroktjq2g6wbvgtlldaxi",
"skill/valory/dynamic_nft_abci/0.1.0": "bafybeicvcwlfzsaeggcnxevdywbzfsi6kfjozxyu7yjwxrpdausbwywuam",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeig6ub26ba34wc3r33maqdr6ybzztfgmx76fogsw7rglybjcvsqawu",
"skill/valory/dynamic_nft_abci/0.1.0": "bafybeigxtox3vcdqcurgbgrfkz4i35kf4ujqmrhfvfbvzmnevtptlnwcou",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeihe5s7krhlyu3xjy5z6tq4x44kmquoby7mtjgssy2tlnbtxwlvrti",
"skill/valory/ceramic_read_abci/0.1.0": "bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u",
"skill/valory/ceramic_write_abci/0.1.0": "bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeihtaki4v4oigli64rfp7sqgz5tifwa6zhcpru4z6etw35qjtyodhe",
"skill/valory/generic_scoring_abci/0.1.0": "bafybeiaptf53yvhtf3oe7eyn3f4dos7nwhnyh2togtety52qlstpmkm5dm",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeicmb7rbwkjflvuwqsgezppkh7w3mqobbptdwtjbitlvj4jam37meq",
"skill/valory/generic_scoring_abci/0.1.0": "bafybeidfghwiknidk7su2wkf56dr66miqjvn5txp2vw2vy4ifweue7xrtm",
"skill/valory/twitter_write_abci/0.1.0": "bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde",
"skill/valory/llm_abci/0.1.0": "bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq",
"skill/valory/decision_making_abci/0.1.0": "bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu",
"skill/valory/olas_week_abci/0.1.0": "bafybeihkkkji27gjxtop5ue5f6iag3ztxnjdetmjuuq7esrn74mwrgdsui",
"skill/valory/decision_making_abci/0.1.0": "bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy",
"skill/valory/olas_week_abci/0.1.0": "bafybeicoxb6a77suh6oanas3nn734xxxm5r7cy62wc6lbh52mgjbxzxs4e",
"skill/valory/mech_interact_abci/0.1.0": "bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma",
"skill/valory/farcaster_write_abci/0.1.0": "bafybeigx2wyujnojer7er7g2eufm5lojon2dckotvsgwb6tn5iyiwdfgsu",
"skill/valory/farcaster_test_abci/0.1.0": "bafybeielv62wl7hrnmbnqdtjfj5uz6onm46awmuzfpwotxa4ex4tqme7am",
"skill/valory/staking_abci/0.1.0": "bafybeia25btekbiwi7tep6wzjlojc5g4msrxtfkhunuzlopjbjziactrje",
"agent/valory/impact_evaluator/0.1.0": "bafybeif7n2havoghy5lmusbxfgnrr6hnpz7kgtvwt65ibgaw2rvq3gvvda",
"agent/valory/impact_evaluator/0.1.0": "bafybeibchcegxdutuzwch54mraki7x5lzemlwdycb4a2ytfm7fs2zlqreq",
"agent/valory/farcaster_test/0.1.0": "bafybeicm25cyzmnnqxfschr3qpwfamiecc6zbog2brzxuxzlbv7wsykxlu",
"service/valory/impact_evaluator/0.1.0": "bafybeigyuwwe4rvvcmkwykvtc3uazvhp3hubsilhjf6ynpsyfvvkccgmgi",
"service/valory/impact_evaluator_local/0.1.0": "bafybeidzipvfsob3t5nyhcp75dq2lo5nm3lmz4hv7ro2246e5i5yup5gqm"
"service/valory/impact_evaluator/0.1.0": "bafybeifzvdmfow4yrejyc562iogo7iytlldky46lqrszo3sd4kk52wfv3u",
"service/valory/impact_evaluator_local/0.1.0": "bafybeibrsnejy3eji4vs3zva25i2yeinif3unjcyzidence4pljbd23fhu"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
12 changes: 6 additions & 6 deletions packages/valory/agents/impact_evaluator/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeieo7pe5wqjphs5izpz5aujjbubymlxub62b3rhx6yglu65ibalffu
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/impact_evaluator_abci:0.1.0:bafybeihtaki4v4oigli64rfp7sqgz5tifwa6zhcpru4z6etw35qjtyodhe
- valory/generic_scoring_abci:0.1.0:bafybeiaptf53yvhtf3oe7eyn3f4dos7nwhnyh2togtety52qlstpmkm5dm
- valory/twitter_scoring_abci:0.1.0:bafybeig6ub26ba34wc3r33maqdr6ybzztfgmx76fogsw7rglybjcvsqawu
- valory/impact_evaluator_abci:0.1.0:bafybeicmb7rbwkjflvuwqsgezppkh7w3mqobbptdwtjbitlvj4jam37meq
- valory/generic_scoring_abci:0.1.0:bafybeidfghwiknidk7su2wkf56dr66miqjvn5txp2vw2vy4ifweue7xrtm
- valory/twitter_scoring_abci:0.1.0:bafybeihe5s7krhlyu3xjy5z6tq4x44kmquoby7mtjgssy2tlnbtxwlvrti
- valory/ceramic_read_abci:0.1.0:bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u
- valory/ceramic_write_abci:0.1.0:bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i
- valory/dynamic_nft_abci:0.1.0:bafybeicvcwlfzsaeggcnxevdywbzfsi6kfjozxyu7yjwxrpdausbwywuam
- valory/dynamic_nft_abci:0.1.0:bafybeigxtox3vcdqcurgbgrfkz4i35kf4ujqmrhfvfbvzmnevtptlnwcou
- valory/registration_abci:0.1.0:bafybeib3n6vqkfbrcubcbliebjnuwyywdinxkbzt76n6gbn2kg7ace47dq
- valory/reset_pause_abci:0.1.0:bafybeihkj6lmaypspyxe5qqrjgnolyck62pyvqoylr24ab6ue4steqcw7e
- valory/termination_abci:0.1.0:bafybeifi2uodnrjsrivj53g3sjutocmyusbx6mlsb6oanqdyt2mfbyvusy
- valory/transaction_settlement_abci:0.1.0:bafybeigh2vkt74jrad5gtsczrgqcuhcqe7jkgjy7jdw56yamlzwwnaymjy
- valory/twitter_write_abci:0.1.0:bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde
- valory/decision_making_abci:0.1.0:bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu
- valory/decision_making_abci:0.1.0:bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy
- valory/llm_abci:0.1.0:bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq
- valory/olas_week_abci:0.1.0:bafybeihkkkji27gjxtop5ue5f6iag3ztxnjdetmjuuq7esrn74mwrgdsui
- valory/olas_week_abci:0.1.0:bafybeicoxb6a77suh6oanas3nn734xxxm5r7cy62wc6lbh52mgjbxzxs4e
- valory/mech_interact_abci:0.1.0:bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma
- valory/staking_abci:0.1.0:bafybeia25btekbiwi7tep6wzjlojc5g4msrxtfkhunuzlopjbjziactrje
default_ledger: ethereum
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/impact_evaluator/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe
fingerprint_ignore_patterns: []
agent: valory/impact_evaluator:0.1.0:bafybeif7n2havoghy5lmusbxfgnrr6hnpz7kgtvwt65ibgaw2rvq3gvvda
agent: valory/impact_evaluator:0.1.0:bafybeibchcegxdutuzwch54mraki7x5lzemlwdycb4a2ytfm7fs2zlqreq
number_of_agents: 4
deployment:
agent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe
fingerprint_ignore_patterns: []
agent: valory/impact_evaluator:0.1.0:bafybeif7n2havoghy5lmusbxfgnrr6hnpz7kgtvwt65ibgaw2rvq3gvvda
agent: valory/impact_evaluator:0.1.0:bafybeibchcegxdutuzwch54mraki7x5lzemlwdycb4a2ytfm7fs2zlqreq
number_of_agents: 1
deployment:
agent:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/decision_making_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fingerprint:
tasks/read_stream_preparation.py: bafybeicmjasiyecopfweobodzbmn3tbluu5q724uzzqkit6urn3lb5q354
tasks/score_preparations.py: bafybeie7cfot24zcyod5becz6t5lasvva77httfkw57qmvgjk35d3qluxa
tasks/signature_validation.py: bafybeihbwrv72hnh3ytko2i5oszqgdky2j6h2wse45wvuhf2j32lo2tsjy
tasks/staking.py: bafybeigkhawwqub36el3jrgiefostogk62axys2gqnuc2xkhlbltmvaohq
tasks/staking.py: bafybeihmzs7tv4hxie2lia2unbn3y5mbre4dyii2xvns6rzpvz6lpinjby
tasks/task_preparations.py: bafybeihfm3ms665fvz2qwmhmcwgl2ws5mt62pykomowoxpm6a46jlqvsmu
tasks/tweet_validation_preparation.py: bafybeif3wbfskiyuij7unx72euklms7owrzwzgdu462xatvypalm6xrgca
tasks/twitter_preparation.py: bafybeicn7stcvmd6oex55dwptwxpikpssbcwnj2d3xkercikg5nlzqh4k4
Expand Down
4 changes: 4 additions & 0 deletions packages/valory/skills/decision_making_abci/tasks/staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ def get_activity_updates(
staking_contract = yield from self.get_staking_contract(
user_data["wallet_address"]
)

if not staking_contract:
continue

this_epoch = staking_contract_to_epoch[staking_contract]

# Get this epoch's tweets and points
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/dynamic_nft_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protocols:
- valory/http:1.0.0:bafybeifugzl63kfdmwrxwphrnrhj7bn6iruxieme3a4ntzejf6kmtuwmae
skills:
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/decision_making_abci:0.1.0:bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu
- valory/decision_making_abci:0.1.0:bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy
behaviours:
main:
args: {}
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/generic_scoring_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contracts: []
protocols: []
skills:
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/decision_making_abci:0.1.0:bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu
- valory/decision_making_abci:0.1.0:bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy
behaviours:
main:
args: {}
Expand Down
10 changes: 5 additions & 5 deletions packages/valory/skills/impact_evaluator_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ protocols: []
skills:
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/ceramic_read_abci:0.1.0:bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u
- valory/generic_scoring_abci:0.1.0:bafybeiaptf53yvhtf3oe7eyn3f4dos7nwhnyh2togtety52qlstpmkm5dm
- valory/twitter_scoring_abci:0.1.0:bafybeig6ub26ba34wc3r33maqdr6ybzztfgmx76fogsw7rglybjcvsqawu
- valory/generic_scoring_abci:0.1.0:bafybeidfghwiknidk7su2wkf56dr66miqjvn5txp2vw2vy4ifweue7xrtm
- valory/twitter_scoring_abci:0.1.0:bafybeihe5s7krhlyu3xjy5z6tq4x44kmquoby7mtjgssy2tlnbtxwlvrti
- valory/ceramic_write_abci:0.1.0:bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i
- valory/dynamic_nft_abci:0.1.0:bafybeicvcwlfzsaeggcnxevdywbzfsi6kfjozxyu7yjwxrpdausbwywuam
- valory/dynamic_nft_abci:0.1.0:bafybeigxtox3vcdqcurgbgrfkz4i35kf4ujqmrhfvfbvzmnevtptlnwcou
- valory/registration_abci:0.1.0:bafybeib3n6vqkfbrcubcbliebjnuwyywdinxkbzt76n6gbn2kg7ace47dq
- valory/reset_pause_abci:0.1.0:bafybeihkj6lmaypspyxe5qqrjgnolyck62pyvqoylr24ab6ue4steqcw7e
- valory/termination_abci:0.1.0:bafybeifi2uodnrjsrivj53g3sjutocmyusbx6mlsb6oanqdyt2mfbyvusy
- valory/transaction_settlement_abci:0.1.0:bafybeigh2vkt74jrad5gtsczrgqcuhcqe7jkgjy7jdw56yamlzwwnaymjy
- valory/decision_making_abci:0.1.0:bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu
- valory/decision_making_abci:0.1.0:bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy
- valory/llm_abci:0.1.0:bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq
- valory/twitter_write_abci:0.1.0:bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde
- valory/olas_week_abci:0.1.0:bafybeihkkkji27gjxtop5ue5f6iag3ztxnjdetmjuuq7esrn74mwrgdsui
- valory/olas_week_abci:0.1.0:bafybeicoxb6a77suh6oanas3nn734xxxm5r7cy62wc6lbh52mgjbxzxs4e
- valory/mech_interact_abci:0.1.0:bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma
- valory/staking_abci:0.1.0:bafybeia25btekbiwi7tep6wzjlojc5g4msrxtfkhunuzlopjbjziactrje
behaviours:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/olas_week_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protocols:
- valory/llm:1.0.0:bafybeihj2orqapokafg7co3wlogwgf6cckaaj2bz3nuv4rm3opkoyhrlp4
skills:
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/decision_making_abci:0.1.0:bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu
- valory/decision_making_abci:0.1.0:bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy
behaviours:
main:
args: {}
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/twitter_scoring_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protocols:
- valory/contract_api:1.0.0:bafybeidgu7o5llh26xp3u3ebq3yluull5lupiyeu6iooi2xyymdrgnzq5i
skills:
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/decision_making_abci:0.1.0:bafybeicbtyqe5ercqxe24fob4qjri7ak5jum74lmqw3ovdc5ohu4d2bkdu
- valory/decision_making_abci:0.1.0:bafybeigap5a5cidz6rqqs3n3oaqrkaj23g5gs2zlhjswrcy27gna56zxdy
- valory/mech_interact_abci:0.1.0:bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma
behaviours:
main:
Expand Down

0 comments on commit 2b80492

Please sign in to comment.