Skip to content

Commit

Permalink
fix: ledger protocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Dec 11, 2023
1 parent 5864d39 commit b6fbfc8
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 17 deletions.
4 changes: 2 additions & 2 deletions packages/fetchai/skills/erc1155_client/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fingerprint:
tests/test_strategy.py: bafybeicbxie3v6vue3gcnru6vsvggcgy3shxwrldis5gppizbuhooslcqa
fingerprint_ignore_patterns: []
connections:
- valory/ledger:0.19.0:bafybeicmfvnz6pn2dilqa5biapdvwihitikkmogp7oet3att4bn4kpm3le
- valory/ledger:0.19.0:bafybeifp6ordr7vkamdwirh7fcfnnzpzug5eegpqewlpf52mycrz6c2uay
contracts:
- fetchai/erc1155:0.22.0:bafybeiff7a6xncyad53o2r7lekpnhexcspze6ocy55xtpzqeuacnlpunm4
protocols:
Expand All @@ -30,7 +30,7 @@ protocols:
- fetchai/oef_search:1.0.0:bafybeicysyqgag7gsbpvly5mzhlwwiosl7gupgmohx233gynw7xtgsxewy
- open_aea/signing:1.0.0:bafybeie7xyems76v5b4wc2lmaidcujizpxfzjnnwdeokmhje53g7ym25ii
- valory/contract_api:1.0.0:bafybeialhbjvwiwcnqq3ysxcyemobcbie7xza66gaofcvla5njezkvhcka
- valory/ledger_api:1.0.0:bafybeiepcb6zm6a25opt4qzkr7aagvxpicefxn7g7bip5x3erihvx2epoa
- valory/ledger_api:1.0.0:bafybeiciqothoywhd6ebz2ztwmcfeoodz6hqh7djof3khlygtzpakkbb3u
skills: []
behaviours:
search:
Expand Down
4 changes: 2 additions & 2 deletions packages/fetchai/skills/erc1155_deploy/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fingerprint:
tests/test_strategy.py: bafybeigxtw2j2c7vl6xhdwos62jbtmx62xfgdyadptm5eewmkesmcooyea
fingerprint_ignore_patterns: []
connections:
- valory/ledger:0.19.0:bafybeicmfvnz6pn2dilqa5biapdvwihitikkmogp7oet3att4bn4kpm3le
- valory/ledger:0.19.0:bafybeifp6ordr7vkamdwirh7fcfnnzpzug5eegpqewlpf52mycrz6c2uay
contracts:
- fetchai/erc1155:0.22.0:bafybeiff7a6xncyad53o2r7lekpnhexcspze6ocy55xtpzqeuacnlpunm4
protocols:
Expand All @@ -30,7 +30,7 @@ protocols:
- fetchai/oef_search:1.0.0:bafybeicysyqgag7gsbpvly5mzhlwwiosl7gupgmohx233gynw7xtgsxewy
- open_aea/signing:1.0.0:bafybeie7xyems76v5b4wc2lmaidcujizpxfzjnnwdeokmhje53g7ym25ii
- valory/contract_api:1.0.0:bafybeialhbjvwiwcnqq3ysxcyemobcbie7xza66gaofcvla5njezkvhcka
- valory/ledger_api:1.0.0:bafybeiepcb6zm6a25opt4qzkr7aagvxpicefxn7g7bip5x3erihvx2epoa
- valory/ledger_api:1.0.0:bafybeiciqothoywhd6ebz2ztwmcfeoodz6hqh7djof3khlygtzpakkbb3u
skills: []
behaviours:
service_registration:
Expand Down
4 changes: 2 additions & 2 deletions packages/fetchai/skills/generic_buyer/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ fingerprint:
tests/test_models.py: bafybeibh72j3n72yseqvmpppucpu5wtidf6ebxbxkfnmrnlh4zv5y5apei
fingerprint_ignore_patterns: []
connections:
- valory/ledger:0.19.0:bafybeicmfvnz6pn2dilqa5biapdvwihitikkmogp7oet3att4bn4kpm3le
- valory/ledger:0.19.0:bafybeifp6ordr7vkamdwirh7fcfnnzpzug5eegpqewlpf52mycrz6c2uay
contracts: []
protocols:
- fetchai/default:1.0.0:bafybeibtqp56jkijwjsohk4z5vqp6pfkiexmnmk5uleteotbsgrypy6gxm
- fetchai/fipa:1.0.0:bafybeid6o7dxutkendclxxtxo3pyizrfho3vxyj5j5sowkysmuqamywb24
- fetchai/oef_search:1.0.0:bafybeicysyqgag7gsbpvly5mzhlwwiosl7gupgmohx233gynw7xtgsxewy
- open_aea/signing:1.0.0:bafybeie7xyems76v5b4wc2lmaidcujizpxfzjnnwdeokmhje53g7ym25ii
- valory/ledger_api:1.0.0:bafybeiepcb6zm6a25opt4qzkr7aagvxpicefxn7g7bip5x3erihvx2epoa
- valory/ledger_api:1.0.0:bafybeiciqothoywhd6ebz2ztwmcfeoodz6hqh7djof3khlygtzpakkbb3u
skills: []
behaviours:
search:
Expand Down
4 changes: 2 additions & 2 deletions packages/fetchai/skills/generic_seller/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ fingerprint:
tests/test_models.py: bafybeihabrc22zqssit3fmqhxptosy6qz6mx65ukhf5iayvirfv42xrhoq
fingerprint_ignore_patterns: []
connections:
- valory/ledger:0.19.0:bafybeicmfvnz6pn2dilqa5biapdvwihitikkmogp7oet3att4bn4kpm3le
- valory/ledger:0.19.0:bafybeifp6ordr7vkamdwirh7fcfnnzpzug5eegpqewlpf52mycrz6c2uay
contracts: []
protocols:
- fetchai/default:1.0.0:bafybeibtqp56jkijwjsohk4z5vqp6pfkiexmnmk5uleteotbsgrypy6gxm
- fetchai/fipa:1.0.0:bafybeid6o7dxutkendclxxtxo3pyizrfho3vxyj5j5sowkysmuqamywb24
- fetchai/oef_search:1.0.0:bafybeicysyqgag7gsbpvly5mzhlwwiosl7gupgmohx233gynw7xtgsxewy
- valory/ledger_api:1.0.0:bafybeiepcb6zm6a25opt4qzkr7aagvxpicefxn7g7bip5x3erihvx2epoa
- valory/ledger_api:1.0.0:bafybeiciqothoywhd6ebz2ztwmcfeoodz6hqh7djof3khlygtzpakkbb3u
skills: []
behaviours:
service_registration:
Expand Down
12 changes: 6 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"protocol/valory/acn/1.1.0": "bafybeic2pxzfc3voxl2ejhcqyf2ehm4wm5gxvgx7bliloiqi2uppmq6weu",
"protocol/valory/contract_api/1.0.0": "bafybeialhbjvwiwcnqq3ysxcyemobcbie7xza66gaofcvla5njezkvhcka",
"protocol/valory/http/1.0.0": "bafybeiejoqgv7finfxo3rcvvovrlj5ccrbgxodjq43uo26ylpowsa3llfe",
"protocol/valory/ledger_api/1.0.0": "bafybeiepcb6zm6a25opt4qzkr7aagvxpicefxn7g7bip5x3erihvx2epoa",
"protocol/valory/ledger_api/1.0.0": "bafybeiciqothoywhd6ebz2ztwmcfeoodz6hqh7djof3khlygtzpakkbb3u",
"connection/fetchai/stub/0.21.0": "bafybeictgpdqbpyppmoxn2g7jkaxvulihew7zaszv4xyhgvsntq7tqs7wi",
"connection/valory/ledger/0.19.0": "bafybeicmfvnz6pn2dilqa5biapdvwihitikkmogp7oet3att4bn4kpm3le",
"connection/valory/ledger/0.19.0": "bafybeifp6ordr7vkamdwirh7fcfnnzpzug5eegpqewlpf52mycrz6c2uay",
"connection/valory/http_server/0.22.0": "bafybeiesafy2af2wakqvsal4hz6ldycb73j5w62szhwy25iyhlf2wgyg44",
"connection/valory/p2p_libp2p/0.1.0": "bafybeiaykya7tvir7k5scovjzuagpfcftvptxoi2od5qqqvukwglsrrtzy",
"connection/valory/p2p_libp2p_client/0.1.0": "bafybeihge56dn3xep2dzomu7rtvbgo4uc2qqh7ljl3fubqdi2lq44gs5lq",
Expand All @@ -32,12 +32,12 @@
"connection/valory/http_client/0.23.0": "bafybeiddrfvomrmgvh5yuv2coq7ci72wcdf663stayi3m5aawnj4srggce",
"connection/valory/test_libp2p/0.1.0": "bafybeidy7qyswtj2fnh2q3qnusevamllw2ozzu723sh52r4k4gna3ig4e4",
"protocol/fetchai/tac/1.0.0": "bafybeiaukfwe7wbpikztprlmrfpphsxqpdzgamkbhvqyz54tl3k73kzsvi",
"skill/fetchai/erc1155_client/0.28.0": "bafybeib23bsgrs7z2h6vuvgjb3u52uzbjpc5mcvyweul7oswgygfr4r7au",
"skill/fetchai/erc1155_deploy/0.30.0": "bafybeihltfeedxbzmgs2azfa7ljgvozhf4fs5fnruwcrulhcgycfqz7mny",
"skill/fetchai/erc1155_client/0.28.0": "bafybeiczs2dror4ftbarlikb4mr6g46hpphd7fcute5e5gbqvj6w3grcle",
"skill/fetchai/erc1155_deploy/0.30.0": "bafybeihg5awqcud2qkozwgm2gp7xjauqr2smeltzgmks43holfx23xn27a",
"skill/fetchai/error/0.17.0": "bafybeignei6feootyjzrqdt5j5yx7r4nrzuy6tdgdgsmrncldt5bud2dri",
"skill/fetchai/fipa_dummy_buyer/0.2.0": "bafybeid7rzqruvc3fkesueig2mbzy2qsfplieircyjzwbdl7c6q5eauiky",
"skill/fetchai/generic_buyer/0.26.0": "bafybeidmvqgnzhxkbz3r7bncee7j47qvgmmzzckrwro4qd3tx74vs7c5ty",
"skill/fetchai/generic_seller/0.27.0": "bafybeidctapktksfxctecoanwx67xnhzij7r5uytekaycmo43zhccimmiy",
"skill/fetchai/generic_buyer/0.26.0": "bafybeiculnqdy2spybj6uzalhr4bfb5xny2b34loqtitorekfkzf4xjzka",
"skill/fetchai/generic_seller/0.27.0": "bafybeieoykyvybc4t74kxuskrhnrhdc7so7ifq35auggk6zhconxgqq76i",
"skill/fetchai/task_test_skill/0.1.0": "bafybeidv77u2xl52mnxakwvh7fuh46aiwfpteyof4eaptfd4agoi6cdble"
},
"third_party": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/connections/ledger/connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fingerprint_ignore_patterns: []
connections: []
protocols:
- valory/contract_api:1.0.0:bafybeialhbjvwiwcnqq3ysxcyemobcbie7xza66gaofcvla5njezkvhcka
- valory/ledger_api:1.0.0:bafybeiepcb6zm6a25opt4qzkr7aagvxpicefxn7g7bip5x3erihvx2epoa
- valory/ledger_api:1.0.0:bafybeiciqothoywhd6ebz2ztwmcfeoodz6hqh7djof3khlygtzpakkbb3u
class_name: LedgerConnection
config:
ledger_apis:
Expand Down
4 changes: 2 additions & 2 deletions packages/valory/protocols/ledger_api/protocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fingerprint:
message.py: bafybeicrzikjr3ykwxffqlvov62mnois4ve5r7jm2xpk4p4mvdzi4yyxei
serialization.py: bafybeibxkxeccsnvaryu6ny7svpliky4yh6a63u3ugpzjaauoqqxbwgu2a
tests/__init__.py: bafybeih2pvd62uql4qcvrrzqx6evsuu3apqok6wu63qq4r5qm3rikbfsmy
tests/test_ledger_api.py: bafybeicrrng4cfjptpqvkxev6xdbranqzcb7hp4pnhflmbskgkn5mljwra
tests/test_ledger_api.py: bafybeiayvznmhqqy66rfqffyurysjc5jfp3bywhcv4zfvwr7kdwj25qjpa
tests/test_ledger_api_dialogues.py: bafybeiaq4ia6kvbwblyyuq7l64vwlluf57lpdkfddohbkbf2osiolrjeku
tests/test_ledger_api_messages.py: bafybeigygfgohfifmgk2qkq2tp4rwpwpipbr7cym2dfuupvsitv7256y5i
tests/test_ledger_api_messages.py: bafybeif4abvermxrxcqqfp65blbajadzl5ymnfjmwx62obj6n45emnlzuu
fingerprint_ignore_patterns: []
dependencies:
protobuf: {}
2 changes: 2 additions & 0 deletions packages/valory/protocols/ledger_api/tests/test_ledger_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def test_send_signed_transaction_serialization():
signed_transaction=LedgerApiMessage.SignedTransaction(
"some_ledger_id", {"body": "some_body"}
),
kwargs=Kwargs({}),
)
msg.to = "receiver"
envelope = Envelope(
Expand Down Expand Up @@ -714,6 +715,7 @@ def build_message(self) -> LedgerApiMessage:
signed_transaction=LedgerApiMessage.SignedTransaction(
ledger_id=self.ledger_id, body={}
),
kwargs=Kwargs({}),
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def build_messages(self) -> List[LedgerApiMessage]: # type: ignore[override]
signed_transaction=SignedTransaction(
"some_ledger_id", {"body": "some_body"}
),
kwargs=Kwargs({}),
),
LedgerApiMessage(
performative=LedgerApiMessage.Performative.GET_TRANSACTION_RECEIPT,
Expand Down

0 comments on commit b6fbfc8

Please sign in to comment.