diff --git a/packages/packages.json b/packages/packages.json index b79376665..337c37c16 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,18 +1,19 @@ { "dev": { "skill/valory/market_manager_abci/0.1.0": "bafybeidropskas24c4lcekzdbwoflhnzaglmeqxvpyuoa7cf7q2rf2yex4", - "skill/valory/decision_maker_abci/0.1.0": "bafybeigwmf5lrwsq4rvwmcmvdejbwcwb6zkndx5tcpljf4vvvb7fvz7nwe", - "skill/valory/trader_abci/0.1.0": "bafybeidw6qlawxhfjgvoul2lmgxx6c5hx6ehkxa6isy5fjtif4akkrskta", + "skill/valory/decision_maker_abci/0.1.0": "bafybeia6qyuwmuhadhqls4vzk4iesipybit43fmdgm6qh4drnzd3vulcqm", + "skill/valory/trader_abci/0.1.0": "bafybeigv4bvygaxcazvwn6yll25oh6gnriertx6ydzvya5a4rl7el3lutu", "contract/valory/market_maker/0.1.0": "bafybeif4mm2s3gxtvp227yypkcnna5ftec7vajcftvtbdmqddh7nprah5m", - "agent/valory/trader/0.1.0": "bafybeibq5he4r5okaleh7ysnoeusbmaxu7obcxiwb4obaoks6s3ai6jaea", - "service/valory/trader/0.1.0": "bafybeifgp6ml5xsjzyeehi6737fiulcupkbyjimlyfmnfg6s6nsrljol64", - "contract/valory/erc20/0.1.0": "bafybeibysifjwhlcn7nntsjkowdmja53ed6urfzypi6sxfc7chtheecvpi", - "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeica2fsr66v7q4emhfrjsy5olplnb6asty6y4wzq76jgsvjqjii7fe", + "agent/valory/trader/0.1.0": "bafybeibo3hlq3spwgnnclhe4tetcztyz5zsn2fk5mpbaj6wajdedoeb4sy", + "service/valory/trader/0.1.0": "bafybeiaybavgtl7qscnnini5ny43ykh4cwdb5gfepoj6nv5k5zknaujvby", + "contract/valory/erc20/0.1.0": "bafybeieqj7dea4tcv6z2yqkgtmhd23vbiycsr5trhwxdvlbwulpl6vhmam", + "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeif42r2cks5fqdwuuf6u3tdn4drugnyepd4kng6il6scejegi6h6sq", "contract/valory/mech/0.1.0": "bafybeifaavuqr2bz7nypapjwkufc5c6vwxm5ifucmtd3w7sh42tne35nga", "contract/valory/realitio/0.1.0": "bafybeid6kh4tiqswpeufkr7eowmq7seoyhkssnedgzw6pe4h7wswui6dlm", "contract/valory/realitio_proxy/0.1.0": "bafybeidx37xzjjmapwacedgzhum6grfzhp5vhouz4zu3pvpgdy5pgb2fr4", "contract/valory/conditional_tokens/0.1.0": "bafybeifov35k2ifwagzyfvl7km6je6tmyvcqgrccldob3zmbx2af2wzque", - "contract/valory/agent_registry/0.1.0": "bafybeifwdtwxdc2jdlhzdyxctqdmoz6zroxf5o4nhuok5l4luvnofqavty" + "contract/valory/agent_registry/0.1.0": "bafybeifwdtwxdc2jdlhzdyxctqdmoz6zroxf5o4nhuok5l4luvnofqavty", + "contract/valory/service_staking_token/0.1.0": "bafybeibifxmoeaiptovouispl5jdgm4lduzcfgsx723zlw45cfpllecuwy" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeie7xyems76v5b4wc2lmaidcujizpxfzjnnwdeokmhje53g7ym25ii", diff --git a/packages/valory/agents/trader/aea-config.yaml b/packages/valory/agents/trader/aea-config.yaml index 0719f954d..5699b3bf5 100644 --- a/packages/valory/agents/trader/aea-config.yaml +++ b/packages/valory/agents/trader/aea-config.yaml @@ -19,7 +19,7 @@ contracts: - valory/gnosis_safe_proxy_factory:0.1.0:bafybeigxqwbd6wds57ecsfkl2hf4z4vbz5gokex6nutu5zcdpw6irh573y - valory/service_registry:0.1.0:bafybeiebuuhs7fmigfh4c5dvzt6rbm5ekwrcnz7zouyjey7yyyqmpa6dyu - valory/market_maker:0.1.0:bafybeif4mm2s3gxtvp227yypkcnna5ftec7vajcftvtbdmqddh7nprah5m -- valory/erc20:0.1.0:bafybeibysifjwhlcn7nntsjkowdmja53ed6urfzypi6sxfc7chtheecvpi +- valory/erc20:0.1.0:bafybeieqj7dea4tcv6z2yqkgtmhd23vbiycsr5trhwxdvlbwulpl6vhmam - valory/multisend:0.1.0:bafybeig5byt5urg2d2bsecufxe5ql7f4mezg3mekfleeh32nmuusx66p4y - valory/mech:0.1.0:bafybeifaavuqr2bz7nypapjwkufc5c6vwxm5ifucmtd3w7sh42tne35nga - valory/conditional_tokens:0.1.0:bafybeifov35k2ifwagzyfvl7km6je6tmyvcqgrccldob3zmbx2af2wzque @@ -42,10 +42,10 @@ skills: - valory/reset_pause_abci:0.1.0:bafybeicpxn2khtaesuf4cq6ypwdmdmonlqroj2q2i6cxvpizc2y4cw66pe - valory/termination_abci:0.1.0:bafybeieqm46zuccaagnko3qlw6p3nvoohdrfgvpmw467r5lyil2dqrzjsy - valory/transaction_settlement_abci:0.1.0:bafybeia6cdxdlqrcwk2maw25fo7dafzd2p3rs7syropvufophk2pitzbwy -- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeica2fsr66v7q4emhfrjsy5olplnb6asty6y4wzq76jgsvjqjii7fe +- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeif42r2cks5fqdwuuf6u3tdn4drugnyepd4kng6il6scejegi6h6sq - valory/market_manager_abci:0.1.0:bafybeidropskas24c4lcekzdbwoflhnzaglmeqxvpyuoa7cf7q2rf2yex4 -- valory/decision_maker_abci:0.1.0:bafybeigwmf5lrwsq4rvwmcmvdejbwcwb6zkndx5tcpljf4vvvb7fvz7nwe -- valory/trader_abci:0.1.0:bafybeidw6qlawxhfjgvoul2lmgxx6c5hx6ehkxa6isy5fjtif4akkrskta +- valory/decision_maker_abci:0.1.0:bafybeia6qyuwmuhadhqls4vzk4iesipybit43fmdgm6qh4drnzd3vulcqm +- valory/trader_abci:0.1.0:bafybeigv4bvygaxcazvwn6yll25oh6gnriertx6ydzvya5a4rl7el3lutu default_ledger: ethereum required_ledgers: - ethereum diff --git a/packages/valory/contracts/erc20/contract.py b/packages/valory/contracts/erc20/contract.py index 039bae895..b6cbd44cf 100644 --- a/packages/valory/contracts/erc20/contract.py +++ b/packages/valory/contracts/erc20/contract.py @@ -49,6 +49,19 @@ def check_balance( wallet_balance = ledger_api.api.eth.get_balance(account) return dict(token=token_balance, wallet=wallet_balance) + @classmethod + def get_allowance( + cls, + ledger_api: EthereumApi, + contract_address: str, + owner: str, + spender: str, + ) -> JSONLike: + """Check the balance of the given account.""" + contract_instance = cls.get_instance(ledger_api, contract_address) + allowance = contract_instance.functions.allowance(owner, spender).call() + return dict(data=allowance) + @classmethod def build_deposit_tx( cls, diff --git a/packages/valory/contracts/erc20/contract.yaml b/packages/valory/contracts/erc20/contract.yaml index 5144da9de..18cf3d6d8 100644 --- a/packages/valory/contracts/erc20/contract.yaml +++ b/packages/valory/contracts/erc20/contract.yaml @@ -9,7 +9,7 @@ fingerprint: README.md: bafybeifmfma6rglvpa22odtozyosnp5mwljum64utxip2wgmezuhnjjjyi __init__.py: bafybeia2k2vmq7lmd3uchmm6jmzj7ebqkogk5aolpw4nwsawnkgqfobltm build/ERC20.json: bafybeiemn5b5nszuss7xj6lmvmjuendltp6wz7ubihdvd7c6wqw4bohbpa - contract.py: bafybeigk7vgluyhpr65rllw4z5jrozjmrlufkxsfvnicuvpr5l5k3vmm6u + contract.py: bafybeif3vy43l7baa3doljavpfvy42mywkcgkvpvlilweluk5jf6e3doji fingerprint_ignore_patterns: [] contracts: [] class_name: ERC20 diff --git a/packages/valory/contracts/service_staking_token/__init__.py b/packages/valory/contracts/service_staking_token/__init__.py new file mode 100644 index 000000000..cf1e8467e --- /dev/null +++ b/packages/valory/contracts/service_staking_token/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------------------------ +# +# Copyright 2023 Valory AG +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ------------------------------------------------------------------------------ + +"""This module contains the support resources for the agent registry contract.""" diff --git a/packages/valory/contracts/service_staking_token/build/ServiceStakingToken.json b/packages/valory/contracts/service_staking_token/build/ServiceStakingToken.json new file mode 100644 index 000000000..27185c342 --- /dev/null +++ b/packages/valory/contracts/service_staking_token/build/ServiceStakingToken.json @@ -0,0 +1,1134 @@ +{ + "_format": "hh-sol-artifact-1", + "contractName": "ServiceStakingToken", + "sourceName": "contracts/staking/ServiceStakingToken.sol", + "abi": [ + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "maxNumServices", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rewardsPerSecond", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minStakingDeposit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "livenessPeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "livenessRatio", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "numAgentInstances", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "agentIds", + "type": "uint256[]" + }, + { + "internalType": "uint256", + "name": "threshold", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "configHash", + "type": "bytes32" + } + ], + "internalType": "struct ServiceStakingBase.StakingParams", + "name": "_stakingParams", + "type": "tuple" + }, + { + "internalType": "address", + "name": "_serviceRegistry", + "type": "address" + }, + { + "internalType": "address", + "name": "_serviceRegistryTokenUtility", + "type": "address" + }, + { + "internalType": "address", + "name": "_stakingToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "_proxyHash", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "AgentInstanceRegistered", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "AgentInstancesSlotsFilled", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + } + ], + "name": "AgentNotFound", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "AgentNotInService", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "componentId", + "type": "uint256" + } + ], + "name": "ComponentNotFound", + "type": "error" + }, + { + "inputs": [], + "name": "HashExists", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "sent", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expected", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "IncorrectAgentBondingValue", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "sent", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expected", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "IncorrectRegistrationDepositValue", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "provided", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expected", + "type": "uint256" + } + ], + "name": "LowerThan", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "manager", + "type": "address" + } + ], + "name": "ManagerOnly", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "maxNumServices", + "type": "uint256" + } + ], + "name": "MaxNumServicesReached", + "type": "error" + }, + { + "inputs": [], + "name": "NoRewardsAvailable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "provided", + "type": "address" + }, + { + "internalType": "address", + "name": "expected", + "type": "address" + }, + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "OnlyOwnServiceMultisig", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "OperatorHasNoInstances", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "provided", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "max", + "type": "uint256" + } + ], + "name": "Overflow", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnerOnly", + "type": "error" + }, + { + "inputs": [], + "name": "Paused", + "type": "error" + }, + { + "inputs": [], + "name": "ReentrancyGuard", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "ServiceMustBeInactive", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "ServiceNotStaked", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "TokenTransferFailed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "TransferFailed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "multisig", + "type": "address" + } + ], + "name": "UnauthorizedMultisig", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "provided", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expected", + "type": "uint256" + } + ], + "name": "ValueLowerThan", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + } + ], + "name": "WrongAgentId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "numValues1", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "numValues2", + "type": "uint256" + } + ], + "name": "WrongArrayLength", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "WrongOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "WrongServiceConfiguration", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "state", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "WrongServiceState", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "expected", + "type": "address" + }, + { + "internalType": "address", + "name": "provided", + "type": "address" + } + ], + "name": "WrongStakingToken", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "currentThreshold", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minThreshold", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxThreshold", + "type": "uint256" + } + ], + "name": "WrongThreshold", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroAddress", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroValue", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "availableRewards", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "numServices", + "type": "uint256" + } + ], + "name": "Checkpoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "availableRewards", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "multisig", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "nonces", + "type": "uint256[]" + } + ], + "name": "ServiceStaked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "multisig", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "nonces", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "reward", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tsStart", + "type": "uint256" + } + ], + "name": "ServiceUnstaked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Withdraw", + "type": "event" + }, + { + "inputs": [], + "name": "VERSION", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "agentIds", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "availableRewards", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "balance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "calculateServiceStakingReward", + "outputs": [ + { + "internalType": "uint256", + "name": "reward", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "checkpoint", + "outputs": [ + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[][]", + "name": "", + "type": "uint256[][]" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "configHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getNextRewardCheckpointTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "tsNext", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getServiceIds", + "outputs": [ + { + "internalType": "uint256[]", + "name": "serviceIds", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "isServiceStaked", + "outputs": [ + { + "internalType": "bool", + "name": "isStaked", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "livenessPeriod", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "livenessRatio", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "mapServiceInfo", + "outputs": [ + { + "internalType": "address", + "name": "multisig", + "type": "address" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tsStart", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reward", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "maxNumServices", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "minStakingDeposit", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "numAgentInstances", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "proxyHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "rewardsPerSecond", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "serviceRegistry", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "serviceRegistryTokenUtility", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "setServiceIds", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "stake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "stakingToken", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "threshold", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "tsCheckpoint", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "serviceId", + "type": "uint256" + } + ], + "name": "unstake", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "bytecode": "0x6102006040523480156200001257600080fd5b506040516200294c3803806200294c8339810160408190526200003591620003bc565b8484828260000151600014806200004e57506020830151155b806200005c57506060830151155b806200006a57506080830151155b8062000078575060a0830151155b156200009757604051637c946ed760e01b815260040160405180910390fd5b600283604001511015620000d357604080840151905163491a2bb160e01b81526004810191909152600260248201526044015b60405180910390fd5b6001600160a01b038216620000fb5760405163d92e233d60e01b815260040160405180910390fd5b82516080908152602084015160a0908152604085015160c052606085015160e09081529185015161010090815290850151610120526001600160a01b038416610180529084015161014052830151610160526000805b8460c00151518110156200023357818560c001518281518110620001795762000179620004c6565b602002602001015111620001c5578460c001518181518110620001a057620001a0620004c6565b6020026020010151604051632ab10b0b60e21b8152600401620000ca91815260200190565b8460c001518181518110620001de57620001de620004c6565b6020908102919091010151600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0181905591506200022b81620004dc565b905062000151565b50816200025357604051637c946ed760e01b815260040160405180910390fd5b506101a0525050426002556001600160a01b03821615806200027c57506001600160a01b038316155b156200029b5760405163d92e233d60e01b815260040160405180910390fd5b506001600160a01b039081166101e052166101c05250620005049050565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715620002f557620002f5620002b9565b60405290565b600082601f8301126200030d57600080fd5b815160206001600160401b03808311156200032c576200032c620002b9565b8260051b604051601f19603f83011681018181108482111715620003545762000354620002b9565b6040529384528581018301938381019250878511156200037357600080fd5b83870191505b84821015620003945781518352918301919083019062000379565b979650505050505050565b80516001600160a01b0381168114620003b757600080fd5b919050565b600080600080600060a08688031215620003d557600080fd5b85516001600160401b0380821115620003ed57600080fd5b90870190610120828a0312156200040357600080fd5b6200040d620002cf565b825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c0830151828111156200045657600080fd5b620004648b828601620002fb565b60c08301525060e08381015190820152610100928301519281019290925250945062000493602087016200039f565b9350620004a3604087016200039f565b9250620004b3606087016200039f565b9150608086015190509295509295909350565b634e487b7160e01b600052603260045260246000fd5b600060018201620004fd57634e487b7160e01b600052601160045260246000fd5b5060010190565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161231c620006306000396000818161036401528181611030015281816114a50152818161192e015261197201526000818161025801526118b401526000818161039e0152610d3b015260008181610486015281816107cc01528181610af70152610f400152600081816104e201528181610bbf0152610bee0152600081816102b501528181610c350152610c690152600081816103160152610b7d01526000818161033d0152611cb10152600081816102dc015281816114580152611529015260008181610509015281816119a90152611a0001526000818161053001526117da01526000818161022301528181610a7e0152610ab2015261231c6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063a694fc3a116100f9578063e1f1176d11610097578063eb338c9611610071578063eb338c9614610552578063f189e85a14610565578063f4dce7141461057a578063ffa1ad741461058257600080fd5b8063e1f1176d146104dd578063e77cdcc914610504578063eacdaabc1461052b57600080fd5b8063b6b55f25116100d3578063b6b55f2514610454578063c2c4c5c114610467578063cbcf252a14610481578063cd25fe38146104a857600080fd5b8063a694fc3a146103c9578063a74466ad146103dc578063b69ef8a81461044b57600080fd5b806356e760581161016657806372f702f31161014057806372f702f31461035f57806378e0613614610386578063809cee2f14610399578063879d9090146103c057600080fd5b806356e76058146102fe5780635829c5ec14610311578063592cf3fb1461033857600080fd5b80632e17de78116101a25780632e17de78146102925780633e732997146102a757806342cde4e8146102b057806352c824f5146102d757600080fd5b8063150b7a02146101c957806316a751721461021e5780632871405114610253575b600080fd5b6101e86101d7366004611d73565b630a85bd0160e11b95945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6102457f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610215565b61027a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610215565b6102a56102a0366004611e12565b6105b3565b005b61024560025481565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b61024561030c366004611e12565b610896565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b61027a7f000000000000000000000000000000000000000000000000000000000000000081565b610245610394366004611e12565b6108b7565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b61024560015481565b6102a56103d7366004611e12565b610a56565b6104206103ea366004611e12565b600460208190526000918252604090912080546001820154600383015492909301546001600160a01b0391821693909116919084565b604080516001600160a01b039586168152949093166020850152918301526060820152608001610215565b61024560005481565b6102a5610462366004611e12565b610ffd565b61046f61109f565b60405161021596959493929190611e66565b61027a7f000000000000000000000000000000000000000000000000000000000000000081565b6104cd6104b6366004611e12565b600090815260046020526040902060030154151590565b6040519015158152602001610215565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b610245610560366004611e12565b61139e565b61056d6113ae565b6040516102159190611f3e565b610245611454565b6105a6604051806040016040528060058152602001640302e312e360dc1b81525081565b6040516102159190611f51565b600081815260046020526040902060018101546001600160a01b0316331461060a57600181015460405163521eb56d60e11b81523360048201526001600160a01b0390911660248201526044015b60405180910390fd5b60008061061561109f565b95505050505091508061062d5761062a6113ae565b91505b60005b825181101561066a578483828151811061064c5761064c611f9f565b6020026020010151031561066a5761066381611fcb565b9050610630565b600484015460028501805460408051602080840282018101909252828152600093909290918301828280156106be57602002820191906000526020600020905b8154815260200190600101908083116106aa575b5050506003890154895460008c8152600460205260408120805473ffffffffffffffffffffffffffffffffffffffff199081168255600182018054909116905595965091946001600160a01b039091169350915061071f6002830182611cdd565b506000600382018190556004909101556005805461073f90600190611fe4565b8154811061074f5761074f611f9f565b90600052602060002001546005868154811061076d5761076d611f9f565b600091825260209091200155600580548061078a5761078a611ff7565b600082815260208120820160001990810191909155019055604051632142170760e11b8152306004820152336024820152604481018a90526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b15801561081057600080fd5b505af1158015610824573d6000803e3d6000fd5b50505050600084111561083b5761083b8185611489565b806001600160a01b0316336001600160a01b03168a7f246ee6115bfd84e00097b16569c2ff2f822026bb9595a82cd2c1e69d4b6ea50c8688876040516108839392919061200d565b60405180910390a4505050505050505050565b600381815481106108a657600080fd5b600091825260209091200154905081565b6000818152600460209081526040808320815160a08101835281546001600160a01b039081168252600183015416818501526002820180548451818702810187018652818152879693958601939092919083018282801561093757602002820191906000526020600020905b815481526020019060010190808311610923575b505050505081526020016003820154815260200160048201548152505090508060800151915080606001516000036109855760405163e0606b6360e01b815260048101849052602401610601565b6000806000806000610995611512565b50509450945094509450945060005b84811015610a4a57888382815181106109bf576109bf611f9f565b602002602001015103610a3a5785841115610a155783868383815181106109e8576109e8611f9f565b60200260200101516109fa9190612032565b610a049190612049565b610a0e908961206b565b9750610a4a565b818181518110610a2757610a27611f9f565b602002602001015188610a0e919061206b565b610a4381611fcb565b90506109a4565b50505050505050919050565b600154600003610a795760405163afb0be3360e01b815260040160405180910390fd5b6005547f00000000000000000000000000000000000000000000000000000000000000008103610ade5760405163fd20861560e01b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602401610601565b60405163ef0e239b60e01b8152600481018390526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ef0e239b90602401600060405180830381865afa158015610b46573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b6e91908101906121a4565b9050806080015163ffffffff167f000000000000000000000000000000000000000000000000000000000000000014610bbd57604051637ad404bf60e11b815260048101849052602401610601565b7f000000000000000000000000000000000000000000000000000000000000000015801590610c10575080604001517f000000000000000000000000000000000000000000000000000000000000000014155b15610c3157604051637ad404bf60e11b815260048101849052602401610601565b60007f0000000000000000000000000000000000000000000000000000000000000000118015610c8b5750806060015163ffffffff167f000000000000000000000000000000000000000000000000000000000000000014155b15610cac57604051637ad404bf60e11b815260048101849052602401610601565b60048160c001516005811115610cc457610cc4612282565b14610d03578060c001516005811115610cdf57610cdf612282565b604051633c053f9d60e21b8152600481019190915260248101849052604401610601565b600081602001516001600160a01b0316803b806020016040519081016040528181526000908060200190933c805190602001209050807f000000000000000000000000000000000000000000000000000000000000000014610d8857602082015160405162a2307960e51b81526001600160a01b039091166004820152602401610601565b6003548015610e595760e083015151818114610dba57604051637ad404bf60e11b815260048101879052602401610601565b60005b81811015610e56578460e001518181518110610ddb57610ddb611f9f565b602002602001015163ffffffff1660038281548110610dfc57610dfc611f9f565b906000526020600020015414610e465760038181548110610e1f57610e1f611f9f565b9060005260206000200154604051632ab10b0b60e21b815260040161060191815260200190565b610e4f81611fcb565b9050610dbd565b50505b610e758584600001516bffffffffffffffffffffffff16611891565b600085815260046020908152604082209085015181546001600160a01b03821673ffffffffffffffffffffffffffffffffffffffff1991821617835560018301805490911633179055909190610eca90611a32565b8051909150610ee29060028401906020840190611cfe565b50426003830155600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001879055604051632142170760e11b8152336004820152306024820152604481018890527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b158015610f8c57600080fd5b505af1158015610fa0573d6000803e3d6000fd5b5050505084602001516001600160a01b0316336001600160a01b0316887f5d43ac9b1b213902df90d405b0006308578486b6c62182c5df202ed572c844e484604051610fec9190611f3e565b60405180910390a450505050505050565b60008160005461100d919061206b565b905060008260015461101f919061206b565b6000839055600181905590506110577f0000000000000000000000000000000000000000000000000000000000000000333086611a43565b604080518481526020810184905290810182905233907f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e9060600160405180910390a2505050565b60608060006060806000806000806000806000806110bb611512565b965096509650965096509650965060008611156112bf5760008786111561122e5760008060015b8981101561118057888b8883815181106110fe576110fe611f9f565b60200260200101516111109190612032565b61111a9190612049565b9250611126838361206b565b915087818151811061113a5761113a611f9f565b602002602001015193508260046000868152602001908152602001600020600401600082825461116a919061206b565b90915550611179905081611fcb565b90506110e2565b50878a8760008151811061119657611196611f9f565b60200260200101516111a89190612032565b6111b29190612049565b91506111be828261206b565b9050866000815181106111d3576111d3611f9f565b60200260200101519250808a11156111fc576111ef818b611fe4565b6111f9908361206b565b91505b6000838152600460208190526040822001805484929061121d90849061206b565b9091555060009a506112b892505050565b60005b878110156112aa5785818151811061124b5761124b611f9f565b6020026020010151915084818151811061126757611267611f9f565b6020026020010151600460008481526020019081526020016000206004016000828254611294919061206b565b909155506112a3905081611fcb565b9050611231565b506112b58689611fe4565b97505b5060018790555b8051156113895760005b82518110156113465760008382815181106112e6576112e6611f9f565b6020026020010151905082828151811061130257611302611f9f565b6020026020010151600460008381526020019081526020016000206002019080519060200190611333929190611cfe565b50508061133f90611fcb565b90506112c9565b50426002556040805188815260208101889052600199507f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced910160405180910390a15b909c909b509399509097509550929350915050565b600581815481106108a657600080fd5b6005546060908067ffffffffffffffff8111156113cd576113cd61207e565b6040519080825280602002602001820160405280156113f6578160200160208202803683370190505b50915060005b8181101561144f576005818154811061141757611417611f9f565b906000526020600020015483828151811061143457611434611f9f565b602090810291909101015261144881611fcb565b90506113fc565b505090565b60007f0000000000000000000000000000000000000000000000000000000000000000600254611484919061206b565b905090565b8060008082825461149a9190611fe4565b909155506114cb90507f00000000000000000000000000000000000000000000000000000000000000008383611acd565b816001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648260405161150691815260200190565b60405180910390a25050565b6002546001549060009081906060908190819081907f00000000000000000000000000000000000000000000000000000000000000006115528242611fe4565b101580156115605750600088115b15611887576005548067ffffffffffffffff8111156115815761158161207e565b6040519080825280602002602001820160405280156115aa578160200160208202803683370190505b5093508067ffffffffffffffff8111156115c6576115c661207e565b6040519080825280602002602001820160405280156115ef578160200160208202803683370190505b5095508067ffffffffffffffff81111561160b5761160b61207e565b604051908082528060200260200182016040528015611634578160200160208202803683370190505b5094508067ffffffffffffffff8111156116505761165061207e565b60405190808252806020026020018201604052801561168357816020015b606081526020019060019003908161166e5790505b50925060005b8181101561188457600581815481106116a4576116a4611f9f565b90600052602060002001548582815181106116c1576116c1611f9f565b6020026020010181815250506000600460008784815181106116e5576116e5611f9f565b60209081029190910181015182528101919091526040016000208054909150611716906001600160a01b0316611a32565b85838151811061172857611728611f9f565b60209081029190910101526003810154849081811115611746578091505b6117508242611fe4565b905060006117ca88868151811061176957611769611f9f565b6020026020010151856002018054806020026020016040519081016040528092919081815260200182805480156117bf57602002820191906000526020600020905b8154815260200190600101908083116117ab575b505050505084611b4a565b9050801561186f5760006117fe837f0000000000000000000000000000000000000000000000000000000000000000612032565b905061180a818e61206b565b9c50808b8f8151811061181f5761181f611f9f565b60200260200101818152505089868151811061183d5761183d611f9f565b60200260200101518c8f8151811061185757611857611f9f565b602090810291909101015261186b8e611fcb565b9d50505b505050508061187d90611fcb565b9050611689565b50505b5090919293949596565b604051633cebfa4f60e01b81526004810183905260009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633cebfa4f906024016040805180830381865afa1580156118fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191e9190612298565b91509150816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146119a757604051630b80380d60e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015283166024820152604401610601565b7f0000000000000000000000000000000000000000000000000000000000000000816bffffffffffffffffffffffff161015611a2c57604051632b30b24760e21b81526bffffffffffffffffffffffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006024820152604401610601565b50505050565b6060611a3d82611b5f565b92915050565b60006040516323b872dd60e01b6000528460045283602452826044526020600060646000808a5af13d15601f3d1160016000511416171691506000606052806040525080611ac65760405163abae3d6d60e01b81526001600160a01b03808716600483015280861660248301528416604482015260648101839052608401610601565b5050505050565b600060405163a9059cbb60e01b6000528360045282602452602060006044600080895af13d15601f3d1160016000511416171691506000606052806040525080611a2c5760405163abae3d6d60e01b81526001600160a01b0380861660048301523060248301528416604482015260648101839052608401610601565b6000611b57848484611c07565b949350505050565b60408051600180825281830190925260609160208083019080368337019050509050816001600160a01b031663affed0e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be391906122cd565b81600081518110611bf657611bf6611f9f565b602002602001018181525050919050565b60008082118015611c4b575082600081518110611c2657611c26611f9f565b602002602001015184600081518110611c4157611c41611f9f565b6020026020010151115b15611cd65760008284600081518110611c6657611c66611f9f565b602002602001015186600081518110611c8157611c81611f9f565b6020026020010151611c939190611fe4565b611ca590670de0b6b3a7640000612032565b611caf9190612049565b7f000000000000000000000000000000000000000000000000000000000000000011159150505b9392505050565b5080546000825590600052602060002090810190611cfb9190611d49565b50565b828054828255906000526020600020908101928215611d39579160200282015b82811115611d39578251825591602001919060010190611d1e565b50611d45929150611d49565b5090565b5b80821115611d455760008155600101611d4a565b6001600160a01b0381168114611cfb57600080fd5b600080600080600060808688031215611d8b57600080fd5b8535611d9681611d5e565b94506020860135611da681611d5e565b935060408601359250606086013567ffffffffffffffff80821115611dca57600080fd5b818801915088601f830112611dde57600080fd5b813581811115611ded57600080fd5b896020828501011115611dff57600080fd5b9699959850939650602001949392505050565b600060208284031215611e2457600080fd5b5035919050565b600081518084526020808501945080840160005b83811015611e5b57815187529582019590820190600101611e3f565b509495945050505050565b60c081526000611e7960c0830189611e2b565b6020838203818501528189518084528284019150828160051b850101838c016000805b84811015611eef57878403601f19018652825180518086529088019088860190845b81811015611eda5783518352928a0192918a0191600101611ebe565b50509688019694505091860191600101611e9c565b5050508a60408801528681036060880152611f0a818b611e2b565b9450505050508281036080840152611f228186611e2b565b915050611f3360a083018415159052565b979650505050505050565b602081526000611cd66020830184611e2b565b600060208083528351808285015260005b81811015611f7e57858101830151858201604001528201611f62565b506000604082860101526040601f19601f8301168501019250505092915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611fdd57611fdd611fb5565b5060010190565b81810381811115611a3d57611a3d611fb5565b634e487b7160e01b600052603160045260246000fd5b6060815260006120206060830186611e2b565b60208301949094525060400152919050565b8082028115828204841417611a3d57611a3d611fb5565b60008261206657634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115611a3d57611a3d611fb5565b634e487b7160e01b600052604160045260246000fd5b604051610100810167ffffffffffffffff811182821017156120b8576120b861207e565b60405290565b80516bffffffffffffffffffffffff811681146120da57600080fd5b919050565b80516120da81611d5e565b805163ffffffff811681146120da57600080fd5b8051600681106120da57600080fd5b600082601f83011261211e57600080fd5b8151602067ffffffffffffffff8083111561213b5761213b61207e565b8260051b604051601f19603f830116810181811084821117156121605761216061207e565b60405293845285810183019383810192508785111561217e57600080fd5b83870191505b84821015611f3357612195826120ea565b83529183019190830190612184565b6000602082840312156121b657600080fd5b815167ffffffffffffffff808211156121ce57600080fd5b9083019061010082860312156121e357600080fd5b6121eb612094565b6121f4836120be565b8152612202602084016120df565b60208201526040830151604082015261221d606084016120ea565b606082015261222e608084016120ea565b608082015261223f60a084016120ea565b60a082015261225060c084016120fe565b60c082015260e08301518281111561226757600080fd5b6122738782860161210d565b60e08301525095945050505050565b634e487b7160e01b600052602160045260246000fd5b600080604083850312156122ab57600080fd5b82516122b681611d5e565b91506122c4602084016120be565b90509250929050565b6000602082840312156122df57600080fd5b505191905056fea2646970667358221220892b3547cd047374259e7ce0b4c8c70e47fe8f83349b516cd97fa732cc75de9164736f6c63430008150033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063a694fc3a116100f9578063e1f1176d11610097578063eb338c9611610071578063eb338c9614610552578063f189e85a14610565578063f4dce7141461057a578063ffa1ad741461058257600080fd5b8063e1f1176d146104dd578063e77cdcc914610504578063eacdaabc1461052b57600080fd5b8063b6b55f25116100d3578063b6b55f2514610454578063c2c4c5c114610467578063cbcf252a14610481578063cd25fe38146104a857600080fd5b8063a694fc3a146103c9578063a74466ad146103dc578063b69ef8a81461044b57600080fd5b806356e760581161016657806372f702f31161014057806372f702f31461035f57806378e0613614610386578063809cee2f14610399578063879d9090146103c057600080fd5b806356e76058146102fe5780635829c5ec14610311578063592cf3fb1461033857600080fd5b80632e17de78116101a25780632e17de78146102925780633e732997146102a757806342cde4e8146102b057806352c824f5146102d757600080fd5b8063150b7a02146101c957806316a751721461021e5780632871405114610253575b600080fd5b6101e86101d7366004611d73565b630a85bd0160e11b95945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6102457f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610215565b61027a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610215565b6102a56102a0366004611e12565b6105b3565b005b61024560025481565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b61024561030c366004611e12565b610896565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b61027a7f000000000000000000000000000000000000000000000000000000000000000081565b610245610394366004611e12565b6108b7565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b61024560015481565b6102a56103d7366004611e12565b610a56565b6104206103ea366004611e12565b600460208190526000918252604090912080546001820154600383015492909301546001600160a01b0391821693909116919084565b604080516001600160a01b039586168152949093166020850152918301526060820152608001610215565b61024560005481565b6102a5610462366004611e12565b610ffd565b61046f61109f565b60405161021596959493929190611e66565b61027a7f000000000000000000000000000000000000000000000000000000000000000081565b6104cd6104b6366004611e12565b600090815260046020526040902060030154151590565b6040519015158152602001610215565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b6102457f000000000000000000000000000000000000000000000000000000000000000081565b610245610560366004611e12565b61139e565b61056d6113ae565b6040516102159190611f3e565b610245611454565b6105a6604051806040016040528060058152602001640302e312e360dc1b81525081565b6040516102159190611f51565b600081815260046020526040902060018101546001600160a01b0316331461060a57600181015460405163521eb56d60e11b81523360048201526001600160a01b0390911660248201526044015b60405180910390fd5b60008061061561109f565b95505050505091508061062d5761062a6113ae565b91505b60005b825181101561066a578483828151811061064c5761064c611f9f565b6020026020010151031561066a5761066381611fcb565b9050610630565b600484015460028501805460408051602080840282018101909252828152600093909290918301828280156106be57602002820191906000526020600020905b8154815260200190600101908083116106aa575b5050506003890154895460008c8152600460205260408120805473ffffffffffffffffffffffffffffffffffffffff199081168255600182018054909116905595965091946001600160a01b039091169350915061071f6002830182611cdd565b506000600382018190556004909101556005805461073f90600190611fe4565b8154811061074f5761074f611f9f565b90600052602060002001546005868154811061076d5761076d611f9f565b600091825260209091200155600580548061078a5761078a611ff7565b600082815260208120820160001990810191909155019055604051632142170760e11b8152306004820152336024820152604481018a90526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b15801561081057600080fd5b505af1158015610824573d6000803e3d6000fd5b50505050600084111561083b5761083b8185611489565b806001600160a01b0316336001600160a01b03168a7f246ee6115bfd84e00097b16569c2ff2f822026bb9595a82cd2c1e69d4b6ea50c8688876040516108839392919061200d565b60405180910390a4505050505050505050565b600381815481106108a657600080fd5b600091825260209091200154905081565b6000818152600460209081526040808320815160a08101835281546001600160a01b039081168252600183015416818501526002820180548451818702810187018652818152879693958601939092919083018282801561093757602002820191906000526020600020905b815481526020019060010190808311610923575b505050505081526020016003820154815260200160048201548152505090508060800151915080606001516000036109855760405163e0606b6360e01b815260048101849052602401610601565b6000806000806000610995611512565b50509450945094509450945060005b84811015610a4a57888382815181106109bf576109bf611f9f565b602002602001015103610a3a5785841115610a155783868383815181106109e8576109e8611f9f565b60200260200101516109fa9190612032565b610a049190612049565b610a0e908961206b565b9750610a4a565b818181518110610a2757610a27611f9f565b602002602001015188610a0e919061206b565b610a4381611fcb565b90506109a4565b50505050505050919050565b600154600003610a795760405163afb0be3360e01b815260040160405180910390fd5b6005547f00000000000000000000000000000000000000000000000000000000000000008103610ade5760405163fd20861560e01b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602401610601565b60405163ef0e239b60e01b8152600481018390526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ef0e239b90602401600060405180830381865afa158015610b46573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b6e91908101906121a4565b9050806080015163ffffffff167f000000000000000000000000000000000000000000000000000000000000000014610bbd57604051637ad404bf60e11b815260048101849052602401610601565b7f000000000000000000000000000000000000000000000000000000000000000015801590610c10575080604001517f000000000000000000000000000000000000000000000000000000000000000014155b15610c3157604051637ad404bf60e11b815260048101849052602401610601565b60007f0000000000000000000000000000000000000000000000000000000000000000118015610c8b5750806060015163ffffffff167f000000000000000000000000000000000000000000000000000000000000000014155b15610cac57604051637ad404bf60e11b815260048101849052602401610601565b60048160c001516005811115610cc457610cc4612282565b14610d03578060c001516005811115610cdf57610cdf612282565b604051633c053f9d60e21b8152600481019190915260248101849052604401610601565b600081602001516001600160a01b0316803b806020016040519081016040528181526000908060200190933c805190602001209050807f000000000000000000000000000000000000000000000000000000000000000014610d8857602082015160405162a2307960e51b81526001600160a01b039091166004820152602401610601565b6003548015610e595760e083015151818114610dba57604051637ad404bf60e11b815260048101879052602401610601565b60005b81811015610e56578460e001518181518110610ddb57610ddb611f9f565b602002602001015163ffffffff1660038281548110610dfc57610dfc611f9f565b906000526020600020015414610e465760038181548110610e1f57610e1f611f9f565b9060005260206000200154604051632ab10b0b60e21b815260040161060191815260200190565b610e4f81611fcb565b9050610dbd565b50505b610e758584600001516bffffffffffffffffffffffff16611891565b600085815260046020908152604082209085015181546001600160a01b03821673ffffffffffffffffffffffffffffffffffffffff1991821617835560018301805490911633179055909190610eca90611a32565b8051909150610ee29060028401906020840190611cfe565b50426003830155600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001879055604051632142170760e11b8152336004820152306024820152604481018890527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b158015610f8c57600080fd5b505af1158015610fa0573d6000803e3d6000fd5b5050505084602001516001600160a01b0316336001600160a01b0316887f5d43ac9b1b213902df90d405b0006308578486b6c62182c5df202ed572c844e484604051610fec9190611f3e565b60405180910390a450505050505050565b60008160005461100d919061206b565b905060008260015461101f919061206b565b6000839055600181905590506110577f0000000000000000000000000000000000000000000000000000000000000000333086611a43565b604080518481526020810184905290810182905233907f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e9060600160405180910390a2505050565b60608060006060806000806000806000806000806110bb611512565b965096509650965096509650965060008611156112bf5760008786111561122e5760008060015b8981101561118057888b8883815181106110fe576110fe611f9f565b60200260200101516111109190612032565b61111a9190612049565b9250611126838361206b565b915087818151811061113a5761113a611f9f565b602002602001015193508260046000868152602001908152602001600020600401600082825461116a919061206b565b90915550611179905081611fcb565b90506110e2565b50878a8760008151811061119657611196611f9f565b60200260200101516111a89190612032565b6111b29190612049565b91506111be828261206b565b9050866000815181106111d3576111d3611f9f565b60200260200101519250808a11156111fc576111ef818b611fe4565b6111f9908361206b565b91505b6000838152600460208190526040822001805484929061121d90849061206b565b9091555060009a506112b892505050565b60005b878110156112aa5785818151811061124b5761124b611f9f565b6020026020010151915084818151811061126757611267611f9f565b6020026020010151600460008481526020019081526020016000206004016000828254611294919061206b565b909155506112a3905081611fcb565b9050611231565b506112b58689611fe4565b97505b5060018790555b8051156113895760005b82518110156113465760008382815181106112e6576112e6611f9f565b6020026020010151905082828151811061130257611302611f9f565b6020026020010151600460008381526020019081526020016000206002019080519060200190611333929190611cfe565b50508061133f90611fcb565b90506112c9565b50426002556040805188815260208101889052600199507f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced910160405180910390a15b909c909b509399509097509550929350915050565b600581815481106108a657600080fd5b6005546060908067ffffffffffffffff8111156113cd576113cd61207e565b6040519080825280602002602001820160405280156113f6578160200160208202803683370190505b50915060005b8181101561144f576005818154811061141757611417611f9f565b906000526020600020015483828151811061143457611434611f9f565b602090810291909101015261144881611fcb565b90506113fc565b505090565b60007f0000000000000000000000000000000000000000000000000000000000000000600254611484919061206b565b905090565b8060008082825461149a9190611fe4565b909155506114cb90507f00000000000000000000000000000000000000000000000000000000000000008383611acd565b816001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648260405161150691815260200190565b60405180910390a25050565b6002546001549060009081906060908190819081907f00000000000000000000000000000000000000000000000000000000000000006115528242611fe4565b101580156115605750600088115b15611887576005548067ffffffffffffffff8111156115815761158161207e565b6040519080825280602002602001820160405280156115aa578160200160208202803683370190505b5093508067ffffffffffffffff8111156115c6576115c661207e565b6040519080825280602002602001820160405280156115ef578160200160208202803683370190505b5095508067ffffffffffffffff81111561160b5761160b61207e565b604051908082528060200260200182016040528015611634578160200160208202803683370190505b5094508067ffffffffffffffff8111156116505761165061207e565b60405190808252806020026020018201604052801561168357816020015b606081526020019060019003908161166e5790505b50925060005b8181101561188457600581815481106116a4576116a4611f9f565b90600052602060002001548582815181106116c1576116c1611f9f565b6020026020010181815250506000600460008784815181106116e5576116e5611f9f565b60209081029190910181015182528101919091526040016000208054909150611716906001600160a01b0316611a32565b85838151811061172857611728611f9f565b60209081029190910101526003810154849081811115611746578091505b6117508242611fe4565b905060006117ca88868151811061176957611769611f9f565b6020026020010151856002018054806020026020016040519081016040528092919081815260200182805480156117bf57602002820191906000526020600020905b8154815260200190600101908083116117ab575b505050505084611b4a565b9050801561186f5760006117fe837f0000000000000000000000000000000000000000000000000000000000000000612032565b905061180a818e61206b565b9c50808b8f8151811061181f5761181f611f9f565b60200260200101818152505089868151811061183d5761183d611f9f565b60200260200101518c8f8151811061185757611857611f9f565b602090810291909101015261186b8e611fcb565b9d50505b505050508061187d90611fcb565b9050611689565b50505b5090919293949596565b604051633cebfa4f60e01b81526004810183905260009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633cebfa4f906024016040805180830381865afa1580156118fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191e9190612298565b91509150816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146119a757604051630b80380d60e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015283166024820152604401610601565b7f0000000000000000000000000000000000000000000000000000000000000000816bffffffffffffffffffffffff161015611a2c57604051632b30b24760e21b81526bffffffffffffffffffffffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006024820152604401610601565b50505050565b6060611a3d82611b5f565b92915050565b60006040516323b872dd60e01b6000528460045283602452826044526020600060646000808a5af13d15601f3d1160016000511416171691506000606052806040525080611ac65760405163abae3d6d60e01b81526001600160a01b03808716600483015280861660248301528416604482015260648101839052608401610601565b5050505050565b600060405163a9059cbb60e01b6000528360045282602452602060006044600080895af13d15601f3d1160016000511416171691506000606052806040525080611a2c5760405163abae3d6d60e01b81526001600160a01b0380861660048301523060248301528416604482015260648101839052608401610601565b6000611b57848484611c07565b949350505050565b60408051600180825281830190925260609160208083019080368337019050509050816001600160a01b031663affed0e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be391906122cd565b81600081518110611bf657611bf6611f9f565b602002602001018181525050919050565b60008082118015611c4b575082600081518110611c2657611c26611f9f565b602002602001015184600081518110611c4157611c41611f9f565b6020026020010151115b15611cd65760008284600081518110611c6657611c66611f9f565b602002602001015186600081518110611c8157611c81611f9f565b6020026020010151611c939190611fe4565b611ca590670de0b6b3a7640000612032565b611caf9190612049565b7f000000000000000000000000000000000000000000000000000000000000000011159150505b9392505050565b5080546000825590600052602060002090810190611cfb9190611d49565b50565b828054828255906000526020600020908101928215611d39579160200282015b82811115611d39578251825591602001919060010190611d1e565b50611d45929150611d49565b5090565b5b80821115611d455760008155600101611d4a565b6001600160a01b0381168114611cfb57600080fd5b600080600080600060808688031215611d8b57600080fd5b8535611d9681611d5e565b94506020860135611da681611d5e565b935060408601359250606086013567ffffffffffffffff80821115611dca57600080fd5b818801915088601f830112611dde57600080fd5b813581811115611ded57600080fd5b896020828501011115611dff57600080fd5b9699959850939650602001949392505050565b600060208284031215611e2457600080fd5b5035919050565b600081518084526020808501945080840160005b83811015611e5b57815187529582019590820190600101611e3f565b509495945050505050565b60c081526000611e7960c0830189611e2b565b6020838203818501528189518084528284019150828160051b850101838c016000805b84811015611eef57878403601f19018652825180518086529088019088860190845b81811015611eda5783518352928a0192918a0191600101611ebe565b50509688019694505091860191600101611e9c565b5050508a60408801528681036060880152611f0a818b611e2b565b9450505050508281036080840152611f228186611e2b565b915050611f3360a083018415159052565b979650505050505050565b602081526000611cd66020830184611e2b565b600060208083528351808285015260005b81811015611f7e57858101830151858201604001528201611f62565b506000604082860101526040601f19601f8301168501019250505092915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611fdd57611fdd611fb5565b5060010190565b81810381811115611a3d57611a3d611fb5565b634e487b7160e01b600052603160045260246000fd5b6060815260006120206060830186611e2b565b60208301949094525060400152919050565b8082028115828204841417611a3d57611a3d611fb5565b60008261206657634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115611a3d57611a3d611fb5565b634e487b7160e01b600052604160045260246000fd5b604051610100810167ffffffffffffffff811182821017156120b8576120b861207e565b60405290565b80516bffffffffffffffffffffffff811681146120da57600080fd5b919050565b80516120da81611d5e565b805163ffffffff811681146120da57600080fd5b8051600681106120da57600080fd5b600082601f83011261211e57600080fd5b8151602067ffffffffffffffff8083111561213b5761213b61207e565b8260051b604051601f19603f830116810181811084821117156121605761216061207e565b60405293845285810183019383810192508785111561217e57600080fd5b83870191505b84821015611f3357612195826120ea565b83529183019190830190612184565b6000602082840312156121b657600080fd5b815167ffffffffffffffff808211156121ce57600080fd5b9083019061010082860312156121e357600080fd5b6121eb612094565b6121f4836120be565b8152612202602084016120df565b60208201526040830151604082015261221d606084016120ea565b606082015261222e608084016120ea565b608082015261223f60a084016120ea565b60a082015261225060c084016120fe565b60c082015260e08301518281111561226757600080fd5b6122738782860161210d565b60e08301525095945050505050565b634e487b7160e01b600052602160045260246000fd5b600080604083850312156122ab57600080fd5b82516122b681611d5e565b91506122c4602084016120be565b90509250929050565b6000602082840312156122df57600080fd5b505191905056fea2646970667358221220892b3547cd047374259e7ce0b4c8c70e47fe8f83349b516cd97fa732cc75de9164736f6c63430008150033", + "linkReferences": {}, + "deployedLinkReferences": {} +} diff --git a/packages/valory/contracts/service_staking_token/contract.py b/packages/valory/contracts/service_staking_token/contract.py new file mode 100644 index 000000000..79a5e1724 --- /dev/null +++ b/packages/valory/contracts/service_staking_token/contract.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------------------------ +# +# Copyright 2023 Valory AG +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ------------------------------------------------------------------------------ + +"""This module contains the class to connect to the Agent Registry contract.""" + +from aea.common import JSONLike +from aea.configurations.base import PublicId +from aea.contracts.base import Contract +from aea.crypto.base import LedgerApi + + +class ServiceStakingTokenContract(Contract): + """The Agent Registry contract.""" + + contract_id = PublicId.from_str("valory/service_staking_token:0.1.0") + + @classmethod + def is_service_staked( + cls, + ledger_api: LedgerApi, + contract_address: str, + service_id: int, + ) -> JSONLike: + """Retrieve an operator given its agent instance.""" + + contract_instance = cls.get_instance(ledger_api, contract_address) + res = contract_instance.functions.isServiceStaked(service_id).call() + return dict(data=res) + + @classmethod + def build_stake_tx( + cls, + ledger_api: LedgerApi, + contract_address: str, + service_id: int, + ) -> JSONLike: + """Build stake tx.""" + contract_instance = cls.get_instance(ledger_api, contract_address) + data = contract_instance.encodeABI("stake", args=[service_id]) + return dict(data=bytes.fromhex(data[2:])) + + @classmethod + def build_checkpoint_tx( + cls, + ledger_api: LedgerApi, + contract_address: str, + ) -> JSONLike: + """Build stake tx.""" + contract_instance = cls.get_instance(ledger_api, contract_address) + data = contract_instance.encodeABI("checkpoint") + return dict(data=bytes.fromhex(data[2:])) + + @classmethod + def build_unstake_tx( + cls, + ledger_api: LedgerApi, + contract_address: str, + service_id: int, + ) -> JSONLike: + """Build stake tx.""" + contract_instance = cls.get_instance(ledger_api, contract_address) + data = contract_instance.encodeABI("unstake", args=[service_id]) + return dict(data=bytes.fromhex(data[2:])) + + @classmethod + def available_rewards( + cls, + ledger_api: LedgerApi, + contract_address: str, + ) -> JSONLike: + """Retrieve an operator given its agent instance.""" + + contract_instance = cls.get_instance(ledger_api, contract_address) + res = contract_instance.functions.availableRewards().call() + return dict(data=res) + + @classmethod + def get_staking_rewards( + cls, + ledger_api: LedgerApi, + contract_address: str, + service_id: int, + ) -> JSONLike: + """Retrieve an operator given its agent instance.""" + contract = cls.get_instance(ledger_api, contract_address) + reward = contract.functions.calculateServiceStakingReward(service_id).call() + return dict(data=reward) + + @classmethod + def get_next_checkpoint_ts( + cls, + ledger_api: LedgerApi, + contract_address: str, + ) -> JSONLike: + """Retrieve an operator given its agent instance.""" + contract = cls.get_instance(ledger_api, contract_address) + ts = contract.functions.getNextRewardCheckpointTimestamp().call() + return dict(data=ts) diff --git a/packages/valory/contracts/service_staking_token/contract.yaml b/packages/valory/contracts/service_staking_token/contract.yaml new file mode 100644 index 000000000..44eba46d2 --- /dev/null +++ b/packages/valory/contracts/service_staking_token/contract.yaml @@ -0,0 +1,23 @@ +name: service_staking_token +author: valory +version: 0.1.0 +type: contract +description: Service staking token contract +license: Apache-2.0 +aea_version: '>=1.0.0, <2.0.0' +fingerprint: + __init__.py: bafybeid3wfzglolebuo6jrrsopswzu4lk77bm76mvw3euizlsjtnt3wmgu + build/ServiceStakingToken.json: bafybeie2xbccvzmjuptqfqumctv6gtyyeoxe7fkx3t7fgbto7wbdugbqxm + contract.py: bafybeihyuap3ndb7ov7fkqr5ybsazikph47oeallykzbs6wdbyvvwruerq +fingerprint_ignore_patterns: [] +contracts: [] +class_name: ServiceStakingTokenContract +contract_interface_paths: + ethereum: build/ServiceStakingToken.json +dependencies: + open-aea-ledger-ethereum: + version: ==1.41.0 + open-aea-test-autonomy: + version: ==0.13.1 + web3: + version: <7,>=6.0.0 diff --git a/packages/valory/services/trader/service.yaml b/packages/valory/services/trader/service.yaml index 747b2cc2b..32a45a720 100644 --- a/packages/valory/services/trader/service.yaml +++ b/packages/valory/services/trader/service.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeigtuothskwyvrhfosps2bu6suauycolj67dpuxqvnicdrdu7yhtvq fingerprint_ignore_patterns: [] -agent: valory/trader:0.1.0:bafybeibq5he4r5okaleh7ysnoeusbmaxu7obcxiwb4obaoks6s3ai6jaea +agent: valory/trader:0.1.0:bafybeibo3hlq3spwgnnclhe4tetcztyz5zsn2fk5mpbaj6wajdedoeb4sy number_of_agents: 4 deployment: {} --- diff --git a/packages/valory/skills/decision_maker_abci/skill.yaml b/packages/valory/skills/decision_maker_abci/skill.yaml index effa19f9f..505a269dc 100644 --- a/packages/valory/skills/decision_maker_abci/skill.yaml +++ b/packages/valory/skills/decision_maker_abci/skill.yaml @@ -46,7 +46,7 @@ connections: [] contracts: - valory/gnosis_safe:0.1.0:bafybeibt7arvjzz4ah24omst74f4sfjpzrdef76yti6ml7dopsauhdzeci - valory/market_maker:0.1.0:bafybeif4mm2s3gxtvp227yypkcnna5ftec7vajcftvtbdmqddh7nprah5m -- valory/erc20:0.1.0:bafybeibysifjwhlcn7nntsjkowdmja53ed6urfzypi6sxfc7chtheecvpi +- valory/erc20:0.1.0:bafybeieqj7dea4tcv6z2yqkgtmhd23vbiycsr5trhwxdvlbwulpl6vhmam - valory/multisend:0.1.0:bafybeig5byt5urg2d2bsecufxe5ql7f4mezg3mekfleeh32nmuusx66p4y - valory/mech:0.1.0:bafybeifaavuqr2bz7nypapjwkufc5c6vwxm5ifucmtd3w7sh42tne35nga - valory/conditional_tokens:0.1.0:bafybeifov35k2ifwagzyfvl7km6je6tmyvcqgrccldob3zmbx2af2wzque diff --git a/packages/valory/skills/trader_abci/skill.yaml b/packages/valory/skills/trader_abci/skill.yaml index ad030eb13..9d94e0a69 100644 --- a/packages/valory/skills/trader_abci/skill.yaml +++ b/packages/valory/skills/trader_abci/skill.yaml @@ -25,8 +25,8 @@ skills: - valory/transaction_settlement_abci:0.1.0:bafybeia6cdxdlqrcwk2maw25fo7dafzd2p3rs7syropvufophk2pitzbwy - valory/termination_abci:0.1.0:bafybeieqm46zuccaagnko3qlw6p3nvoohdrfgvpmw467r5lyil2dqrzjsy - valory/market_manager_abci:0.1.0:bafybeidropskas24c4lcekzdbwoflhnzaglmeqxvpyuoa7cf7q2rf2yex4 -- valory/decision_maker_abci:0.1.0:bafybeigwmf5lrwsq4rvwmcmvdejbwcwb6zkndx5tcpljf4vvvb7fvz7nwe -- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeica2fsr66v7q4emhfrjsy5olplnb6asty6y4wzq76jgsvjqjii7fe +- valory/decision_maker_abci:0.1.0:bafybeia6qyuwmuhadhqls4vzk4iesipybit43fmdgm6qh4drnzd3vulcqm +- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeif42r2cks5fqdwuuf6u3tdn4drugnyepd4kng6il6scejegi6h6sq behaviours: main: args: {} diff --git a/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml b/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml index 083bdad82..21f60a0d4 100644 --- a/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml +++ b/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml @@ -20,7 +20,7 @@ contracts: [] protocols: [] skills: - valory/abstract_round_abci:0.1.0:bafybeid7neqpxxe4ualp23gxgrtpf6r5u3myr2mmc4uvwameyqshfdoydq -- valory/decision_maker_abci:0.1.0:bafybeigwmf5lrwsq4rvwmcmvdejbwcwb6zkndx5tcpljf4vvvb7fvz7nwe +- valory/decision_maker_abci:0.1.0:bafybeia6qyuwmuhadhqls4vzk4iesipybit43fmdgm6qh4drnzd3vulcqm behaviours: main: args: {}