Skip to content

Commit

Permalink
fixing fsm spec errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberosa committed Nov 27, 2024
1 parent ac570c7 commit 73ae01b
Show file tree
Hide file tree
Showing 9 changed files with 385 additions and 385 deletions.
12 changes: 6 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"contract/valory/staking_token/0.1.0": "bafybeiep4r6qyilbfgzdvx6t7zvpgaioxqktmxm7puwtnbpb2ftlib43gy",
"contract/valory/relayer/0.1.0": "bafybeicawmds6czx7db2lcktvexwrp245jpekgulndtos5s5zdid3ilvq4",
"skill/valory/market_manager_abci/0.1.0": "bafybeicztk62pslofv6ui3aw3giw2tnvlfwfmatqbyvvzv4ampneu6isqa",
"skill/valory/decision_maker_abci/0.1.0": "bafybeif4gm5haemydji6vtovzqxm2uzdyydfuyxt4j533vzgoxv5hyg7g4",
"skill/valory/trader_abci/0.1.0": "bafybeif2qsehq3orfrrdd7wilpajnnakqs3diiy5tiwtseg4eghsnjsqzm",
"skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeia63dlxjvohtogbglcgk42qkg7v356rst27xcm27bvryypr2dzhka",
"skill/valory/decision_maker_abci/0.1.0": "bafybeiam3ggpx2s4hpt27vrf5lidbyoyugs64wwogrdiktl6wczmfjuh5y",
"skill/valory/trader_abci/0.1.0": "bafybeieafmrf6h4h2x5ecbm2ecvltuxngwoizvtylzopagiygcrzotx6ga",
"skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeify5ccoioibq3jhwqg27hq2exwggyrhp2oydysmz5ozno2qlvjbca",
"skill/valory/staking_abci/0.1.0": "bafybeictd5pxhscuhqntvctb7l5lfjausxt2m22rg5mkaiuj4cwwcxpvne",
"skill/valory/check_stop_trading_abci/0.1.0": "bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini",
"agent/valory/trader/0.1.0": "bafybeia7dlk5e7swrwz37mmzmwwazeuw6d3bz7skvqsvt25jyzhaksm3re",
"service/valory/trader/0.1.0": "bafybeiaums4lcyrvahjoh3kdcddqbiybqynmkiwrvo2ikgcugaxsiiyhxi",
"service/valory/trader_pearl/0.1.0": "bafybeid6l6jflqhfzx2xhxiqjbr55rajx6tvgtjomp6njxfdeyag2t5xvm"
"agent/valory/trader/0.1.0": "bafybeida6qbaceie3wvznffej7xf6y4t3tlwbzloas4n3vr2e27yc4h23i",
"service/valory/trader/0.1.0": "bafybeih5wgjo2k4vlew7jcws7aneik6gkxvtnpxdcge3iyabjxhcfabr3a",
"service/valory/trader_pearl/0.1.0": "bafybeiautovxcckeikj2s4cuuvuy2u2edc7wlhww4vlwhr5nmxyi5iyxsa"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
6 changes: 3 additions & 3 deletions packages/valory/agents/trader/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ skills:
- valory/reset_pause_abci:0.1.0:bafybeigrdlxed3xlsnxtjhnsbl3cojruihxcqx4jxhgivkd5i2fkjncgba
- valory/termination_abci:0.1.0:bafybeib5l7jhew5ic6iq24dd23nidcoimzqkrk556gqywhoziatj33zvwm
- valory/transaction_settlement_abci:0.1.0:bafybeic7q7recyka272udwcupblwbkc3jkodgp74fvcdxb7urametg5dae
- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeia63dlxjvohtogbglcgk42qkg7v356rst27xcm27bvryypr2dzhka
- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeify5ccoioibq3jhwqg27hq2exwggyrhp2oydysmz5ozno2qlvjbca
- valory/market_manager_abci:0.1.0:bafybeicztk62pslofv6ui3aw3giw2tnvlfwfmatqbyvvzv4ampneu6isqa
- valory/decision_maker_abci:0.1.0:bafybeif4gm5haemydji6vtovzqxm2uzdyydfuyxt4j533vzgoxv5hyg7g4
- valory/trader_abci:0.1.0:bafybeif2qsehq3orfrrdd7wilpajnnakqs3diiy5tiwtseg4eghsnjsqzm
- valory/decision_maker_abci:0.1.0:bafybeiam3ggpx2s4hpt27vrf5lidbyoyugs64wwogrdiktl6wczmfjuh5y
- valory/trader_abci:0.1.0:bafybeieafmrf6h4h2x5ecbm2ecvltuxngwoizvtylzopagiygcrzotx6ga
- valory/staking_abci:0.1.0:bafybeictd5pxhscuhqntvctb7l5lfjausxt2m22rg5mkaiuj4cwwcxpvne
- valory/check_stop_trading_abci:0.1.0:bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini
- valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/trader/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeigtuothskwyvrhfosps2bu6suauycolj67dpuxqvnicdrdu7yhtvq
fingerprint_ignore_patterns: []
agent: valory/trader:0.1.0:bafybeia7dlk5e7swrwz37mmzmwwazeuw6d3bz7skvqsvt25jyzhaksm3re
agent: valory/trader:0.1.0:bafybeida6qbaceie3wvznffej7xf6y4t3tlwbzloas4n3vr2e27yc4h23i
number_of_agents: 4
deployment:
agent:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/trader_pearl/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: bafybeibg7bdqpioh4lmvknw3ygnllfku32oca4eq5pqtvdrdsgw6buko7e
fingerprint_ignore_patterns: []
agent: valory/trader:0.1.0:bafybeia7dlk5e7swrwz37mmzmwwazeuw6d3bz7skvqsvt25jyzhaksm3re
agent: valory/trader:0.1.0:bafybeida6qbaceie3wvznffej7xf6y4t3tlwbzloas4n3vr2e27yc4h23i
number_of_agents: 1
deployment:
agent:
Expand Down
249 changes: 125 additions & 124 deletions packages/valory/skills/decision_maker_abci/fsm_specification.yaml
Original file line number Diff line number Diff line change
@@ -1,131 +1,132 @@
alphabet_in:
- BENCHMARKING_DISABLED
- BENCHMARKING_ENABLED
- BENCHMARKING_FINISHED
- BLACKLIST
- DONE
- FETCH_ERROR
- INSUFFICIENT_BALANCE
- MECH_RESPONSE_ERROR
- MOCK_MECH_REQUEST
- MOCK_TX
- NONE
- NO_MAJORITY
- NO_OP
- NO_REDEEMING
- NO_SUBSCRIPTION
- REDEEM_ROUND_TIMEOUT
- ROUND_TIMEOUT
- SLOTS_UNSUPPORTED_ERROR
- SUBSCRIPTION_ERROR
- TIE
- UNPROFITABLE
- BENCHMARKING_DISABLED
- BENCHMARKING_ENABLED
- BENCHMARKING_FINISHED
- BLACKLIST
- DONE
- FETCH_ERROR
- INSUFFICIENT_BALANCE
- MECH_RESPONSE_ERROR
- MOCK_MECH_REQUEST
- MOCK_TX
- NEW_SIMULATED_RESAMPLE
- NONE
- NO_MAJORITY
- NO_OP
- NO_REDEEMING
- NO_SUBSCRIPTION
- REDEEM_ROUND_TIMEOUT
- ROUND_TIMEOUT
- SLOTS_UNSUPPORTED_ERROR
- SUBSCRIPTION_ERROR
- TIE
- UNPROFITABLE
default_start_state: CheckBenchmarkingModeRound
final_states:
- BenchmarkingDoneRound
- BenchmarkingModeDisabledRound
- FinishedDecisionMakerRound
- FinishedDecisionRequestRound
- FinishedSubscriptionRound
- FinishedWithoutDecisionRound
- FinishedWithoutRedeemingRound
- ImpossibleRound
- RefillRequiredRound
- BenchmarkingDoneRound
- BenchmarkingModeDisabledRound
- FinishedDecisionMakerRound
- FinishedDecisionRequestRound
- FinishedSubscriptionRound
- FinishedWithoutDecisionRound
- FinishedWithoutRedeemingRound
- ImpossibleRound
- RefillRequiredRound
label: DecisionMakerAbciApp
start_states:
- CheckBenchmarkingModeRound
- ClaimRound
- DecisionReceiveRound
- HandleFailedTxRound
- RandomnessRound
- RedeemRound
- CheckBenchmarkingModeRound
- ClaimRound
- DecisionReceiveRound
- HandleFailedTxRound
- RandomnessRound
- RedeemRound
states:
- BenchmarkingDoneRound
- BenchmarkingModeDisabledRound
- BenchmarkingRandomnessRound
- BetPlacementRound
- BlacklistingRound
- CheckBenchmarkingModeRound
- ClaimRound
- DecisionReceiveRound
- DecisionRequestRound
- FinishedDecisionMakerRound
- FinishedDecisionRequestRound
- FinishedSubscriptionRound
- FinishedWithoutDecisionRound
- FinishedWithoutRedeemingRound
- HandleFailedTxRound
- ImpossibleRound
- RandomnessRound
- RedeemRound
- RefillRequiredRound
- SamplingRound
- SubscriptionRound
- ToolSelectionRound
- BenchmarkingDoneRound
- BenchmarkingModeDisabledRound
- BenchmarkingRandomnessRound
- BetPlacementRound
- BlacklistingRound
- CheckBenchmarkingModeRound
- ClaimRound
- DecisionReceiveRound
- DecisionRequestRound
- FinishedDecisionMakerRound
- FinishedDecisionRequestRound
- FinishedSubscriptionRound
- FinishedWithoutDecisionRound
- FinishedWithoutRedeemingRound
- HandleFailedTxRound
- ImpossibleRound
- RandomnessRound
- RedeemRound
- RefillRequiredRound
- SamplingRound
- SubscriptionRound
- ToolSelectionRound
transition_func:
(BenchmarkingRandomnessRound, DONE): SamplingRound
(BenchmarkingRandomnessRound, NO_MAJORITY): BenchmarkingRandomnessRound
(BenchmarkingRandomnessRound, ROUND_TIMEOUT): BenchmarkingRandomnessRound
(BetPlacementRound, DONE): FinishedDecisionMakerRound
(BetPlacementRound, INSUFFICIENT_BALANCE): RefillRequiredRound
(BetPlacementRound, MOCK_TX): RedeemRound
(BetPlacementRound, NONE): ImpossibleRound
(BetPlacementRound, NO_MAJORITY): BetPlacementRound
(BetPlacementRound, ROUND_TIMEOUT): BetPlacementRound
(BlacklistingRound, DONE): FinishedWithoutDecisionRound
(BlacklistingRound, FETCH_ERROR): ImpossibleRound
(BlacklistingRound, MOCK_TX): FinishedWithoutDecisionRound
(BlacklistingRound, NONE): ImpossibleRound
(BlacklistingRound, NO_MAJORITY): BlacklistingRound
(BlacklistingRound, ROUND_TIMEOUT): BlacklistingRound
(CheckBenchmarkingModeRound, BENCHMARKING_DISABLED): BenchmarkingModeDisabledRound
(CheckBenchmarkingModeRound, BENCHMARKING_ENABLED): BenchmarkingRandomnessRound
(CheckBenchmarkingModeRound, BLACKLIST): ImpossibleRound
(CheckBenchmarkingModeRound, NO_MAJORITY): CheckBenchmarkingModeRound
(CheckBenchmarkingModeRound, NO_OP): ImpossibleRound
(CheckBenchmarkingModeRound, ROUND_TIMEOUT): CheckBenchmarkingModeRound
(ClaimRound, DONE): ToolSelectionRound
(ClaimRound, NO_MAJORITY): ClaimRound
(ClaimRound, ROUND_TIMEOUT): ClaimRound
(ClaimRound, SUBSCRIPTION_ERROR): ClaimRound
(DecisionReceiveRound, DONE): BetPlacementRound
(DecisionReceiveRound, MECH_RESPONSE_ERROR): BlacklistingRound
(DecisionReceiveRound, NO_MAJORITY): DecisionReceiveRound
(DecisionReceiveRound, ROUND_TIMEOUT): DecisionReceiveRound
(DecisionReceiveRound, TIE): BlacklistingRound
(DecisionReceiveRound, UNPROFITABLE): BlacklistingRound
(DecisionRequestRound, DONE): FinishedDecisionRequestRound
(DecisionRequestRound, MOCK_MECH_REQUEST): DecisionReceiveRound
(DecisionRequestRound, NO_MAJORITY): DecisionRequestRound
(DecisionRequestRound, ROUND_TIMEOUT): DecisionRequestRound
(DecisionRequestRound, SLOTS_UNSUPPORTED_ERROR): BlacklistingRound
(HandleFailedTxRound, BLACKLIST): BlacklistingRound
(HandleFailedTxRound, NO_MAJORITY): HandleFailedTxRound
(HandleFailedTxRound, NO_OP): RedeemRound
(RandomnessRound, DONE): SamplingRound
(RandomnessRound, NO_MAJORITY): RandomnessRound
(RandomnessRound, ROUND_TIMEOUT): RandomnessRound
(RedeemRound, DONE): FinishedDecisionMakerRound
(RedeemRound, MOCK_TX): SamplingRound
(RedeemRound, NONE): ImpossibleRound
(RedeemRound, NO_MAJORITY): RedeemRound
(RedeemRound, NO_REDEEMING): FinishedWithoutRedeemingRound
(RedeemRound, REDEEM_ROUND_TIMEOUT): FinishedWithoutRedeemingRound
(SamplingRound, DONE): SubscriptionRound
(SamplingRound, FETCH_ERROR): ImpossibleRound
(SamplingRound, NONE): FinishedWithoutDecisionRound
(SamplingRound, NO_MAJORITY): SamplingRound
(SamplingRound, ROUND_TIMEOUT): SamplingRound
(SamplingRound, BENCHMARK_ENABLED): ToolSelectionRound
(SamplingRound, BENCHMARKING_FINISHED): BenchmarkingDoneRound
(SubscriptionRound, DONE): FinishedSubscriptionRound
(SubscriptionRound, MOCK_TX): ToolSelectionRound
(SubscriptionRound, NONE): SubscriptionRound
(SubscriptionRound, NO_MAJORITY): SubscriptionRound
(SubscriptionRound, NO_SUBSCRIPTION): ToolSelectionRound
(SubscriptionRound, ROUND_TIMEOUT): SubscriptionRound
(SubscriptionRound, SUBSCRIPTION_ERROR): SubscriptionRound
(ToolSelectionRound, DONE): DecisionRequestRound
(ToolSelectionRound, NONE): ToolSelectionRound
(ToolSelectionRound, NO_MAJORITY): ToolSelectionRound
(ToolSelectionRound, ROUND_TIMEOUT): ToolSelectionRound
(BenchmarkingRandomnessRound, DONE): SamplingRound
(BenchmarkingRandomnessRound, NO_MAJORITY): BenchmarkingRandomnessRound
(BenchmarkingRandomnessRound, ROUND_TIMEOUT): BenchmarkingRandomnessRound
(BetPlacementRound, DONE): FinishedDecisionMakerRound
(BetPlacementRound, INSUFFICIENT_BALANCE): RefillRequiredRound
(BetPlacementRound, MOCK_TX): RedeemRound
(BetPlacementRound, NONE): ImpossibleRound
(BetPlacementRound, NO_MAJORITY): BetPlacementRound
(BetPlacementRound, ROUND_TIMEOUT): BetPlacementRound
(BlacklistingRound, DONE): FinishedWithoutDecisionRound
(BlacklistingRound, FETCH_ERROR): ImpossibleRound
(BlacklistingRound, MOCK_TX): FinishedWithoutDecisionRound
(BlacklistingRound, NONE): ImpossibleRound
(BlacklistingRound, NO_MAJORITY): BlacklistingRound
(BlacklistingRound, ROUND_TIMEOUT): BlacklistingRound
(CheckBenchmarkingModeRound, BENCHMARKING_DISABLED): BenchmarkingModeDisabledRound
(CheckBenchmarkingModeRound, BENCHMARKING_ENABLED): BenchmarkingRandomnessRound
(CheckBenchmarkingModeRound, BLACKLIST): ImpossibleRound
(CheckBenchmarkingModeRound, NO_MAJORITY): CheckBenchmarkingModeRound
(CheckBenchmarkingModeRound, NO_OP): ImpossibleRound
(CheckBenchmarkingModeRound, ROUND_TIMEOUT): CheckBenchmarkingModeRound
(ClaimRound, DONE): ToolSelectionRound
(ClaimRound, NO_MAJORITY): ClaimRound
(ClaimRound, ROUND_TIMEOUT): ClaimRound
(ClaimRound, SUBSCRIPTION_ERROR): ClaimRound
(DecisionReceiveRound, DONE): BetPlacementRound
(DecisionReceiveRound, MECH_RESPONSE_ERROR): BlacklistingRound
(DecisionReceiveRound, NO_MAJORITY): DecisionReceiveRound
(DecisionReceiveRound, ROUND_TIMEOUT): DecisionReceiveRound
(DecisionReceiveRound, TIE): BlacklistingRound
(DecisionReceiveRound, UNPROFITABLE): BlacklistingRound
(DecisionRequestRound, DONE): FinishedDecisionRequestRound
(DecisionRequestRound, MOCK_MECH_REQUEST): DecisionReceiveRound
(DecisionRequestRound, NO_MAJORITY): DecisionRequestRound
(DecisionRequestRound, ROUND_TIMEOUT): DecisionRequestRound
(DecisionRequestRound, SLOTS_UNSUPPORTED_ERROR): BlacklistingRound
(HandleFailedTxRound, BLACKLIST): BlacklistingRound
(HandleFailedTxRound, NO_MAJORITY): HandleFailedTxRound
(HandleFailedTxRound, NO_OP): RedeemRound
(RandomnessRound, DONE): SamplingRound
(RandomnessRound, NO_MAJORITY): RandomnessRound
(RandomnessRound, ROUND_TIMEOUT): RandomnessRound
(RedeemRound, DONE): FinishedDecisionMakerRound
(RedeemRound, MOCK_TX): SamplingRound
(RedeemRound, NONE): ImpossibleRound
(RedeemRound, NO_MAJORITY): RedeemRound
(RedeemRound, NO_REDEEMING): FinishedWithoutRedeemingRound
(RedeemRound, REDEEM_ROUND_TIMEOUT): FinishedWithoutRedeemingRound
(SamplingRound, BENCHMARKING_ENABLED): ToolSelectionRound
(SamplingRound, BENCHMARKING_FINISHED): BenchmarkingDoneRound
(SamplingRound, DONE): SubscriptionRound
(SamplingRound, FETCH_ERROR): ImpossibleRound
(SamplingRound, NEW_SIMULATED_RESAMPLE): SamplingRound
(SamplingRound, NONE): FinishedWithoutDecisionRound
(SamplingRound, NO_MAJORITY): SamplingRound
(SubscriptionRound, DONE): FinishedSubscriptionRound
(SubscriptionRound, MOCK_TX): ToolSelectionRound
(SubscriptionRound, NONE): SubscriptionRound
(SubscriptionRound, NO_MAJORITY): SubscriptionRound
(SubscriptionRound, NO_SUBSCRIPTION): ToolSelectionRound
(SubscriptionRound, ROUND_TIMEOUT): SubscriptionRound
(SubscriptionRound, SUBSCRIPTION_ERROR): SubscriptionRound
(ToolSelectionRound, DONE): DecisionRequestRound
(ToolSelectionRound, NONE): ToolSelectionRound
(ToolSelectionRound, NO_MAJORITY): ToolSelectionRound
(ToolSelectionRound, ROUND_TIMEOUT): ToolSelectionRound
2 changes: 1 addition & 1 deletion packages/valory/skills/decision_maker_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fingerprint:
behaviours/storage_manager.py: bafybeiez6daaj2bufxdcsghtmqybyrzdh74z26cc4ajsqsiy5krgjo2tla
behaviours/tool_selection.py: bafybeienlxcgjs3ogyofli3d7q3p5rst3mcxxcnwqf7qolqjeefjtixeke
dialogues.py: bafybeigpwuzku3we7axmxeamg7vn656maww6emuztau5pg3ebsoquyfdqm
fsm_specification.yaml: bafybeidp2rpxbx4xlhkeraovbk5qdp2eb3zlbm5s534hxutgspoeoe4b64
fsm_specification.yaml: bafybeiaokkmrfs5dewl5vmfeqwfqrwgzjhjml4t5o6krdellcqprrdxyqq
handlers.py: bafybeigod6gbjrxy4mbmulbzsbokeaoycoqys64vqtxnumishfukzf73za
io_/__init__.py: bafybeifxgmmwjqzezzn3e6keh2bfo4cyo7y5dq2ept3stfmgglbrzfl5rq
io_/loader.py: bafybeih3sdsx5dhe4kzhtoafexjgkutsujwqy3zcdrlrkhtdks45bc7exa
Expand Down
Loading

0 comments on commit 73ae01b

Please sign in to comment.