Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

frontend multi-chain multi-agent support #434

Draft
wants to merge 550 commits into
base: feat/multi-chain-support-middleware
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
550 commits
Select commit Hold shift + click to select a range
ba5ff06
Merge pull request #465 from valory-xyz/refactor/balance-provider-hooks
truemiller Nov 20, 2024
bfc988d
fix: remove merge conflict markers and clean up walletAddress assignm…
truemiller Nov 20, 2024
23f5c6d
feat: refactor GasBalanceSection to utilize service-specific balances…
truemiller Nov 20, 2024
dfa62b3
feat: update BalanceStatus component to accept serviceConfigId prop f…
truemiller Nov 20, 2024
9886961
fix: update BalanceStatus prop to use serviceConfigId for consistency
truemiller Nov 20, 2024
cbe5a0d
fix: rename balance loading state variable for clarity in OlasBalance…
truemiller Nov 20, 2024
fa40f18
Merge pull request #467 from valory-xyz/refactor/usebalance-consumer-…
truemiller Nov 20, 2024
e5073b4
Merge pull request #468 from valory-xyz/refactor/usebalance-gas-balan…
truemiller Nov 20, 2024
4b1f03b
fix: services types
truemiller Nov 20, 2024
06ca2d5
chore: not convinced this provider is needed
truemiller Nov 20, 2024
ea9c2e3
refactor: remove unused MasterSafeProvider from App component
truemiller Nov 20, 2024
708688d
refactor: update SystemNotificationTriggers to use selectedService in…
truemiller Nov 20, 2024
34e989b
refactor: wallet types, organize, add more
truemiller Nov 20, 2024
d164d9b
refactor: remove unused MasterSafeProvider component
truemiller Nov 20, 2024
2002704
refactor: add multisig query key for retrieving owners
truemiller Nov 20, 2024
41f157a
refactor: remove GnosisSafe service file
truemiller Nov 20, 2024
82f8963
refactor: update useMasterSafe hook to use react-query for fetching o…
truemiller Nov 20, 2024
f986a5a
refactor: replace useMasterSafe with useMultisig for more generic app…
truemiller Nov 20, 2024
42c4204
fix: replace add backup wallet alert
truemiller Nov 20, 2024
d22c91e
refactor: migrate from useMasterSafe to useMultisig for improved func…
truemiller Nov 20, 2024
64d4abb
refactor: rename WalletProvider to MasterWalletProvider for clarity
truemiller Nov 20, 2024
de7834c
refactor: update AgentNotRunningButton to use useMasterWalletContext …
truemiller Nov 20, 2024
8601847
refactor: update AddFundsSection to use useMasterWalletContext for wa…
truemiller Nov 20, 2024
0692f00
refactor: update AddBackupWalletViaSafePage to use masterSafe for imp…
truemiller Nov 20, 2024
2ad650a
refactor: debug section
truemiller Nov 20, 2024
f8d8a31
feat/simple backup owner update
jmoreira-valory Nov 20, 2024
bebc919
chore: import updates
truemiller Nov 20, 2024
5e7537c
chore: change eth balance threshold keys to ChainId
truemiller Nov 20, 2024
1b6dbfb
refactor: update BalanceProvider to use MasterWalletContext for walle…
truemiller Nov 20, 2024
47ffacf
refactor: change Wallet provider to MasterWallet provider (poor naming)
truemiller Nov 20, 2024
d8137eb
chore: delete WalletProvider
truemiller Nov 20, 2024
722c110
feat: chain name by chainId
truemiller Nov 20, 2024
76dd098
chore: remove unneeded destructure
truemiller Nov 20, 2024
8e1b388
chore: refactor import names
truemiller Nov 20, 2024
1aac95f
refactor: update MasterWalletProvider import path
truemiller Nov 20, 2024
9a9f145
feat: resolve errors to ensure the app runs (part 1) (#466)
mohandast52 Nov 20, 2024
cbafa62
refactor: move useAddress hook to backup and update import path
truemiller Nov 21, 2024
393b51e
feat: add useMultisigs hook to fetch owners from multiple multisigs
truemiller Nov 21, 2024
de0a55e
chore: comment out unused hooks and functions in useLogs for future r…
truemiller Nov 21, 2024
2cd0db3
feat: add masterEoa computation to useService hook for fetching EOA w…
truemiller Nov 21, 2024
907c8a6
feat: add functions to retrieve service templates from SERVICE_TEMPLATES
truemiller Nov 21, 2024
efcc19b
feat: add functions to retrieve native token symbol and ERC20 tokens …
truemiller Nov 21, 2024
dc7b25b
feat: add useMasterBalances hook to compute balances for master walle…
truemiller Nov 21, 2024
10b5da1
chore: update import statement for useLogs in HelpAndSupportPage comp…
truemiller Nov 21, 2024
9146e1b
chore: remove unused useLogs hook and related code
truemiller Nov 21, 2024
2e2b67e
chore: remove unused useServiceTemplates hook and related code; refac…
truemiller Nov 21, 2024
ca26658
Update frontend/hooks/useBalanceContext.ts
truemiller Nov 21, 2024
3c6b9d6
chore: lint fixes, export `masterWallets` to avoid confusion
truemiller Nov 21, 2024
095c640
fix: useService should only expect service wallets, not master safes/…
truemiller Nov 21, 2024
7b829d7
Merge pull request #471 from valory-xyz/refactor/review-all-contexts
truemiller Nov 21, 2024
ac35504
fix: update useMasterBalances to filter balances based on master safe…
truemiller Nov 21, 2024
3feb3d4
docs: add notes to useMasterBalances about master wallets and safes
truemiller Nov 21, 2024
7fb1c99
fix: add TODO comment for future refactor of serviceWallets logic
truemiller Nov 21, 2024
535a0a6
fix: rename masterSafes to serviceSafes for clarity in useService and…
truemiller Nov 21, 2024
88da4b1
fix: remove masterSafes alias in GasBalanceSection and useServiceBala…
truemiller Nov 21, 2024
8c9ca07
chore: lint fix
truemiller Nov 21, 2024
57d3f86
Merge remote-tracking branch 'origin/refactor/multi-chain-support-fro…
truemiller Nov 21, 2024
c3c01f2
Merge pull request #472 from valory-xyz/refactor/hooks
truemiller Nov 21, 2024
0f16cb8
fix: temporarily disable environment validation during refactor
truemiller Nov 21, 2024
3967b51
fix: enhance useServiceBalances to include service EOA and improve ba…
truemiller Nov 21, 2024
209fa1d
refactor: simplify balance calculations and add master EOA balances
truemiller Nov 21, 2024
a927426
feat: enhance OLAS balance calculations by integrating master and ser…
truemiller Nov 21, 2024
c5388ad
fix: remove unused masterStakedBalances from useMasterBalances function
truemiller Nov 21, 2024
30d0a8a
refactor: reorganize low balance calculations in useMasterBalances fo…
truemiller Nov 21, 2024
c64ecee
fix: comment out duplicate MainOlasBalance component in MainPage for …
truemiller Nov 21, 2024
2baf40c
fix: comment out GasBalanceSection in MainPage for clarity
truemiller Nov 21, 2024
079247f
Merge pull request #473 from valory-xyz/refactor/balances-feature
truemiller Nov 21, 2024
cd3aacb
feat: add agenttype to service templates
truemiller Nov 21, 2024
33a5097
feat: add mechType to GNOSIS staking programs configuration
truemiller Nov 21, 2024
699660b
feat: enhance useActiveStakingContractInfo with service staking state…
truemiller Nov 21, 2024
f38092b
feat: add ServiceStakingState enum to improve clarity of staking states
truemiller Nov 21, 2024
9b325dd
feat: refactor AgentButton and AgentNotRunningButton to use useActive…
truemiller Nov 21, 2024
2157686
refactor: finalize useNeedsFunds hook, update MainNeedsFunds
Tanya-atatakai Nov 21, 2024
038f35e
feat: rename ServiceStakingState to StakingState for consistency and …
truemiller Nov 21, 2024
9e4f2da
Merge pull request #475 from valory-xyz/refactor/agent-buttons
truemiller Nov 21, 2024
96cafe0
Merge pull request #476 from valory-xyz/tanya/needs-funds-main
Tanya-atatakai Nov 21, 2024
e4fd942
chore: bump autonomy
jmoreira-valory Nov 21, 2024
38c4127
feat: refactor SettingsPage to use master wallet context and improve …
truemiller Nov 21, 2024
f6c75d9
feat: refactor logging hooks by removing deprecated useLogs and intro…
truemiller Nov 21, 2024
e470a3a
Merge pull request #477 from valory-xyz/refactor/backup-wallet-settings
truemiller Nov 21, 2024
6454287
Merge remote-tracking branch 'origin/refactor/multi-chain-support-fro…
truemiller Nov 21, 2024
69601fc
feat: update safes multiple chains
jmoreira-valory Nov 21, 2024
7e1ba46
fix: linters
jmoreira-valory Nov 21, 2024
5c232ab
chore: update api
jmoreira-valory Nov 21, 2024
e6269ac
refactor: update YourWalletPage to use updated types, contexts, hooks
truemiller Nov 21, 2024
2af6dc1
refactor: specify type for masterEoaBalance in YourWalletPage component
truemiller Nov 21, 2024
2ae151a
fix: review comments
truemiller Nov 21, 2024
4c80e72
feat: refactor onboarding (#478)
mohandast52 Nov 21, 2024
023164b
refactor: add funds section
Tanya-atatakai Nov 22, 2024
f615fb5
refactor: remove commented code, add todo
Tanya-atatakai Nov 22, 2024
ae81ebd
feat: last transaction (#481)
mohandast52 Nov 22, 2024
34b0bbf
Merge pull request #483 from valory-xyz/tanya/add-funds
Tanya-atatakai Nov 22, 2024
39ec47f
Merge pull request #480 from valory-xyz/fix/your-wallet-page
truemiller Nov 22, 2024
84b260a
refactor: start refactoring useMigrate
Tanya-atatakai Nov 21, 2024
e1432df
refactor: fix useMigrate hook with agent type and balance calculation…
truemiller Nov 21, 2024
6e02571
refactor: update useMigrate and related components
Tanya-atatakai Nov 21, 2024
84838a2
refactor: main alerts and modals
Tanya-atatakai Nov 22, 2024
ff8d311
refactor: change agentSafe to masterSafe
Tanya-atatakai Nov 22, 2024
673458d
refactor: remove service check
Tanya-atatakai Nov 22, 2024
8a20583
Merge pull request #482 from valory-xyz/tanya/migration
Tanya-atatakai Nov 22, 2024
0b5b88c
Merge remote-tracking branch 'origin/refactor/multi-chain-support-fro…
truemiller Nov 22, 2024
7cf3170
refactor: enhance query enabling conditions in useMultisig hook
truemiller Nov 22, 2024
333d4d1
Update frontend/hooks/useLogs.ts
truemiller Nov 22, 2024
4360dd2
Update frontend/hooks/useLogs.ts
truemiller Nov 22, 2024
6a11b72
Merge pull request #479 from valory-xyz/fix/uselogs
truemiller Nov 22, 2024
9d194c4
feat: add middleware deployment status enums and refactor service hoo…
truemiller Nov 22, 2024
f729346
chore: remove TODO comment
truemiller Nov 22, 2024
7931a36
refactor: Staking rewards (main page) (#485)
mohandast52 Nov 22, 2024
7fa15f7
refactor: update AddBackupWalletViaSafePage to use context and handle…
truemiller Nov 22, 2024
2486f9d
Update frontend/client/enums.ts
truemiller Nov 22, 2024
a6b3c4c
Update frontend/hooks/useService.ts
truemiller Nov 22, 2024
eb7d8ce
refactor: enhance AddBackupWalletViaSafePage to utilize services and …
truemiller Nov 22, 2024
477ccec
Merge pull request #487 from valory-xyz/fix/use-notify-on-new-epoch
truemiller Nov 22, 2024
ca5b524
chore: update cli
jmoreira-valory Nov 22, 2024
d0c3058
doc: typo
jmoreira-valory Nov 22, 2024
228bfcd
chore: updates
jmoreira-valory Nov 22, 2024
8af9e30
refactor: integrate services into YourWalletPage and enhance token sy…
truemiller Nov 22, 2024
9b68d86
refactor: update comment formatting for accruedServiceStakingRewards …
truemiller Nov 22, 2024
a2d4ae2
refactor: Rewards History (#486)
mohandast52 Nov 22, 2024
8af742d
Merge pull request #488 from valory-xyz/fix/add-backup-wallet-safe-page
truemiller Nov 22, 2024
5283e18
refactor: enhance YourAgentWallet to include serviceSafeRewards and i…
truemiller Nov 22, 2024
daa1256
refactor: clean up unused comment for accruedServiceStakingRewards in…
truemiller Nov 22, 2024
8074c9d
fix: linters
jmoreira-valory Nov 22, 2024
12c331c
Merge pull request #470 from valory-xyz/feat/swap_owner_multi_chain
jmoreira-valory Nov 22, 2024
23d8990
refactor: bulk rename to remove "Optimus" from various files
truemiller Nov 22, 2024
e8f8a30
refactor: update appId from "optimus" to "operate-app" in build scripts
truemiller Nov 22, 2024
68785d5
refactor: update download_binaries.sh to use trader version instead o…
truemiller Nov 22, 2024
02d9b5d
refactor: debug section
Tanya-atatakai Nov 22, 2024
9141cf7
refactor: magic moment popup and few other components (#491)
mohandast52 Nov 22, 2024
04093cf
Merge pull request #492 from valory-xyz/chore/rename-to-pearl
truemiller Nov 22, 2024
4ea9941
Merge pull request #490 from valory-xyz/fix/your-agent
truemiller Nov 22, 2024
bc14382
Merge pull request #493 from valory-xyz/tanya/debug-window
Tanya-atatakai Nov 22, 2024
82b62e6
refactor: update staking program handling and improve logs mapping
truemiller Nov 22, 2024
33bb1af
Merge pull request #494 from valory-xyz/fix/errors-fixed-to-load-login
truemiller Nov 22, 2024
9b1be7a
Merge remote-tracking branch 'origin/feat/allow-multiple-services-mid…
truemiller Nov 22, 2024
1c395c3
fix: quick fixes
truemiller Nov 22, 2024
6831a66
feat: integrate master wallet context and update multisig address ret…
truemiller Nov 22, 2024
a86cdfd
feat: chain conversion helper
truemiller Nov 22, 2024
858dd47
chore: add enriched endpoint
jmoreira-valory Nov 22, 2024
8e29636
chore: doc
jmoreira-valory Nov 22, 2024
5842c86
refactor: rename parameter
jmoreira-valory Nov 22, 2024
ea8381f
chore: add all_chains_same_safe_address
jmoreira-valory Nov 22, 2024
741787d
chore: update
jmoreira-valory Nov 22, 2024
6c3e9d3
doc: fix doc
jmoreira-valory Nov 22, 2024
11c5ea4
fix: resolve all build errors
truemiller Nov 23, 2024
a3d9b0f
refactor: remove unused chain-related logic and clean up ServicesProv…
truemiller Nov 23, 2024
f4d47a6
fix: use ledger_type not chain
truemiller Nov 24, 2024
637bcc0
refactor: remove chain parameter from createEoa function
truemiller Nov 24, 2024
ce36f22
refactor: large fix
truemiller Nov 25, 2024
bb9b298
fix: further fixes for refactor
truemiller Nov 25, 2024
4f48bbe
refactor: update ServiceAndNftDetails to use serviceNftTokenId instea…
truemiller Nov 25, 2024
8efbaab
fix: lint
truemiller Nov 25, 2024
0dcfc2e
refactor: streamline RewardsHistory and Settings components for impro…
truemiller Nov 25, 2024
2e2ba2e
refactor: implement extractFunctionsFromAbi utility and update contra…
mohandast52 Nov 25, 2024
8605280
Merge pull request #498 from valory-xyz/fix/user-onboarding-path
truemiller Nov 25, 2024
457bf39
Merge pull request #495 from valory-xyz/chore/merge-latest-middleware
truemiller Nov 25, 2024
f444ba8
Merge pull request #500 from valory-xyz/mohan/errors-on-rewards
Tanya-atatakai Nov 25, 2024
8eaee8b
refactor: rename owner parameter to backup_owner in createSafe and ad…
truemiller Nov 25, 2024
3d03cf2
fix: backup wallets
truemiller Nov 25, 2024
1082651
refactor: clean up imports and simplify useMultisig hook usage in Add…
truemiller Nov 25, 2024
1e37db2
fix: add missing semicolon in AddBackupWalletViaSafePage component
truemiller Nov 25, 2024
a2cb7a0
refactor: needs funds and migrate sections
Tanya-atatakai Nov 25, 2024
b51e008
feat: return token balances
jmoreira-valory Nov 25, 2024
2f36d4c
chore: update api.md
jmoreira-valory Nov 25, 2024
cf68e3d
Merge pull request #496 from valory-xyz/feat/return_safe_owners
jmoreira-valory Nov 25, 2024
1fd4615
fix: correct method name and update parameters in setErc20Balance fun…
truemiller Nov 25, 2024
ad01baf
fix: update dotenv path resolution and adjust environment variable or…
truemiller Nov 25, 2024
34a52ec
feat: add service status fetching and update context for selected ser…
truemiller Nov 25, 2024
8928e65
Merge branch 'fix/backup-wallet-onboarding' into fix/service-statuses
truemiller Nov 25, 2024
3c4244f
chore: review fixes
Tanya-atatakai Nov 26, 2024
c4b7188
refactor: support creating service when switching contract after onbo…
Tanya-atatakai Nov 26, 2024
79d33d2
Update frontend/context/StakingProgramProvider.tsx
Tanya-atatakai Nov 26, 2024
f175b40
fix: refactor AgentButton to use selectedService's deployment status …
truemiller Nov 26, 2024
f3ece89
fix: template hash
truemiller Nov 26, 2024
554b39c
Update frontend/components/MainPage/sections/AlertSections/AddBackupW…
truemiller Nov 26, 2024
45d846b
Update frontend/components/MainPage/sections/AlertSections/AddBackupW…
truemiller Nov 26, 2024
587d0a1
fix: update lodash import to use isEmpty instead of isArray in AddBac…
truemiller Nov 26, 2024
05a22b9
Merge pull request #501 from valory-xyz/fix/backup-wallet-onboarding
truemiller Nov 26, 2024
2f8be05
Merge remote-tracking branch 'origin/refactor/multi-chain-support-fro…
truemiller Nov 26, 2024
aada92f
refactor: update staking program loading state
Tanya-atatakai Nov 26, 2024
54f3fa2
refactor: fix logs
Tanya-atatakai Nov 26, 2024
2b17774
chore: review fixes
Tanya-atatakai Nov 26, 2024
b608acb
Merge pull request #502 from valory-xyz/tanya/fixes
Tanya-atatakai Nov 26, 2024
11bfac3
Merge remote-tracking branch 'origin/refactor/multi-chain-support-fro…
truemiller Nov 26, 2024
778af62
fix: incorrect dependency
Tanya-atatakai Nov 26, 2024
9f35db3
Merge pull request #505 from valory-xyz/tanya/logs
Tanya-atatakai Nov 26, 2024
07935a7
fix: ensure service creation only occurs if it does not already exist
truemiller Nov 26, 2024
92dac1a
Merge remote-tracking branch 'origin/refactor/multi-chain-support-fro…
truemiller Nov 26, 2024
8bb1c65
fix: update release rpcs
truemiller Nov 26, 2024
bef7772
fix: has enough service slots
truemiller Nov 26, 2024
007e347
fix: progress on agent buttons, still glitchy
truemiller Nov 26, 2024
1dd5c80
fix: remove unused service hook and handle undefined serviceConfigId
truemiller Nov 26, 2024
7b57b6d
fix: update version to 0.2.0-rc1 in package.json and pyproject.toml
truemiller Nov 26, 2024
374a1d3
fix: refactor service configuration handling and improve type definit…
truemiller Nov 26, 2024
37bb16d
fix: add missing import for useMasterWalletContext in useMultisig hook
truemiller Nov 26, 2024
053c5e1
fix: add masterEoa to useMasterWalletContext and update backupOwners …
truemiller Nov 26, 2024
5a8c30e
fix: update version to 0.2.0-rc2 in package.json and pyproject.toml
truemiller Nov 26, 2024
9502847
fix: simplify release workflow by removing redundant environment vari…
truemiller Nov 26, 2024
fe9d889
fix: chain_config undefined errors
Tanya-atatakai Nov 27, 2024
4fe6a41
fix: safe creation multiple times, incorrect button state after onboa…
Tanya-atatakai Nov 27, 2024
4248503
chore: review fixes
Tanya-atatakai Nov 27, 2024
54eb359
fix: logs export
Tanya-atatakai Nov 27, 2024
741f5d4
refactor: update selectedService logic, fix floating numbers displayi…
Tanya-atatakai Nov 27, 2024
f026860
fix: streak infinite loading after onboarding
Tanya-atatakai Nov 28, 2024
8c30546
refactor: update refetch interval for rewards
Tanya-atatakai Nov 28, 2024
8724ecc
refactor: review fixes
Tanya-atatakai Nov 28, 2024
b389a4c
Merge pull request #508 from valory-xyz/tanya/fixes
Tanya-atatakai Nov 28, 2024
a337d5a
Merge pull request #504 from valory-xyz/fix/service-statuses
Tanya-atatakai Nov 28, 2024
435e8f4
chore: fix wallet migration
jmoreira-valory Nov 28, 2024
9191ba7
Merge remote-tracking branch 'origin/feat/allow-multiple-services-mid…
truemiller Nov 28, 2024
d0d15ad
fix: app fails to start (#514)
mohandast52 Nov 28, 2024
4c663b3
refactor: fix balances request
Tanya-atatakai Nov 28, 2024
e9808a4
Merge pull request #515 from valory-xyz/tanya/balance-fix
Tanya-atatakai Nov 28, 2024
2912a97
refactor: separate staking contract details and service info
Tanya-atatakai Nov 28, 2024
98c79a8
refactor: fix balance issues, review comments
Tanya-atatakai Nov 29, 2024
edb7acf
Merge pull request #517 from valory-xyz/tanya/fixes
Tanya-atatakai Nov 29, 2024
3a065fa
fix: wallet balances to include service wallets (#519)
Tanya-atatakai Nov 29, 2024
8a422c0
feat: add dynamic token swap link for selected EVM chain (#518)
mohandast52 Nov 29, 2024
8434828
feat: allow update metadata fields
jmoreira-valory Nov 29, 2024
d19585e
refactor: improve address validation and migration logic in staking c…
truemiller Nov 29, 2024
f194df5
chore: bump version to 0.2.0-rc5 in package.json and pyproject.toml
truemiller Nov 29, 2024
1debf31
refactor: remove redundant tendermint installation logic for Windows
truemiller Nov 29, 2024
7f5c44e
refactor: enhance type definitions for staking components and address…
truemiller Nov 29, 2024
5047f43
fix: missing getWallets response
truemiller Dec 1, 2024
6da9cc4
chore: add placeholder
jmoreira-valory Dec 1, 2024
5d478ee
fix: correct casing in Gnosis staking program contract addresses
truemiller Dec 2, 2024
be0e505
Merge pull request #522 from valory-xyz/feat/allow_update_metadata_fi…
OjusWiZard Dec 2, 2024
7fabab3
chore: revert getWallets change
truemiller Dec 2, 2024
492bec6
fix: replace 0xstring
truemiller Dec 2, 2024
fedc083
Merge remote-tracking branch 'origin/feat/allow-multiple-services-mid…
truemiller Dec 2, 2024
a2f8f12
Update frontend/context/StakingProgramProvider.tsx
truemiller Dec 2, 2024
b48280b
Merge pull request #525 from valory-xyz/release/v0.2.0-rc5
truemiller Dec 2, 2024
d02ab73
fix: migrate CannotMigrate logic
truemiller Dec 2, 2024
e73fe3f
fix: update MasterSafeNativeBalance and MasterEoaSignerNativeBalance …
truemiller Dec 2, 2024
93f38b7
fix: add TODO comments for multi-chain refactor in MasterSafeNativeBa…
truemiller Dec 2, 2024
c579838
fix: your wallet info breakdowns as per figma
truemiller Dec 2, 2024
ca2ecef
fix: staking history headers
truemiller Dec 2, 2024
c7a5dcc
fix: bump version to 0.2.0-rc6 in package.json and pyproject.toml
truemiller Dec 2, 2024
ca7deae
fix: replace Paragraph with Text in AgentRunningButton for better typ…
truemiller Dec 3, 2024
95d6ae3
chore: skeleton for async Earned tags
truemiller Dec 3, 2024
004c19b
Merge pull request #534 from valory-xyz/release/v0.2.0-rc6
truemiller Dec 4, 2024
c4b15dc
fix: bump version to 0.2.0-rc7 in package.json and pyproject.toml
truemiller Dec 5, 2024
3f18e5a
fix: remove truemiller-stack subproject reference
truemiller Dec 5, 2024
f05a500
fix: update build function to return promise and log results
truemiller Dec 5, 2024
e6ee5b0
win build: env fixes
solarw Dec 8, 2024
b63c99b
fix: enhance error handling and validation in staking rewards details
truemiller Dec 9, 2024
cdd08b4
Merge pull request #556 from valory-xyz/fix/win-env-vars-build
solarw Dec 9, 2024
ecaa225
doc: minor fixes
jmoreira-valory Dec 9, 2024
ffe432e
Merge pull request #428 from valory-xyz/feat/allow-multiple-services-…
truemiller Dec 9, 2024
95fbbe8
Merge pull request #557 from valory-xyz/fix/optimistic-rewards
truemiller Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FORK_URL=
DEV_RPC=

## post-refactor pearl envs
GNOSIS_DEV_RPC=
ETHEREUM_DEV_RPC=
OPTIMISM_DEV_RPC=
BASE_DEV_RPC=
GNOSIS_RPC=
ETHEREUM_RPC=
OPTIMISM_RPC=
BASE_RPC=
7 changes: 7 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
with:
node-version: "20.x"

# Configure Yarn network settings for timeout, retries, and reduced concurrency
- name: Configure Yarn network settings
run: |
yarn config set network-timeout 60000 # Set network timeout to 1 minute
yarn config set network-retries 10 # Retry up to 10 times
yarn config set network-concurrency 2 # Reduce concurrency to 2 connections

# Python
- uses: actions/setup-python@v4
with:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/common_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,27 @@ jobs:
# - name: License compatibility check
# run: tox -e liccheck
# tox -p -e vulture -e darglint

test:
continue-on-error: True
needs:
- linter_checks
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.10.9" ]

timeout-minutes: 30

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Run unit tests
run: |
pip install tomte[tox]==0.2.15
tox -e unit-tests
7 changes: 7 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
with:
node-version: "20.x"

# Configure Yarn network settings for timeout, retries, and reduced concurrency
- name: Configure Yarn network settings
run: |
yarn config set network-timeout 60000 # Set network timeout to 1 minute
yarn config set network-retries 10 # Retry up to 10 times
yarn config set network-concurrency 2 # Reduce concurrency to 2 connections

# Install dependencies
- name: Install dependencies
run: yarn install:frontend
Expand Down
91 changes: 59 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14, macos-14-large]
os: [macos-14]
arch: [arm64, x64]

steps:
- uses: actions/checkout@v3

# Setup Python
- uses: actions/setup-python@v4
# Set up Python with setup-python action and add it to PATH
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.10"

Expand All @@ -32,10 +34,10 @@ jobs:
virtualenvs-path: ~/my-custom-path
installer-parallel: true

# Set architecture for macos-latest-large as x64 and arm64 for other versions
# Set OS_ARCH env
- name: Set architecture environment variable
run: |
if [ "${{ matrix.os }}" == "macos-14-large" ]; then echo "OS_ARCH=x64" >> $GITHUB_ENV; else echo "OS_ARCH=arm64" >> $GITHUB_ENV; fi
run:
echo "OS_ARCH=${{ matrix.arch }}" >> $GITHUB_ENV;

# Cache Poetry dependencies with unique key for each environment and architecture
- name: Cache Poetry dependencies
Expand All @@ -45,34 +47,45 @@ jobs:
~/.cache/pypoetry
~/.cache/pip
~/.venv
key: poetry-${{ env.OS_ARCH }}-${{ hashFiles('**/poetry.lock') }}
key: poetry-${{ matrix.arch }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ env.OS_ARCH }}-
poetry-${{ matrix.arch }}-

- name: Install dependencies
run: poetry install

# Download and build with PyInstaller
- name: Get trader bin
run: |
optimus_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/optimus.yaml')); print(config['service_version'])")
echo $optimus_version
mkdir dist && curl -L -o dist/aea_bin "https://github.com/valory-xyz/optimus/releases/download/${$optimus_version}/optimus_bin_${{ env.OS_ARCH }}"

trader_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/trader.yaml')); print(config['service_version'])")
echo $trader_version
make ./dist/aea_bin
#instead of this one mwe use make; mkdir dist && curl -L -o dist/aea_bin "https://github.com/valory-xyz/trader/releases/download/${trader_version}/trader_bin_${{ env.OS_ARCH }}"

# -- old optimus getter
# optimus_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/optimus.yaml')); print(config['service_version'])")
# echo $optimus_version
# mkdir dist && curl -L -o dist/aea_bin "https://github.com/valory-xyz/optimus/releases/download/${$optimus_version}/optimus_bin_${{ env.OS_ARCH }}"
- name: Build with PyInstaller
run: |
poetry run pyinstaller operate/services/utils/tendermint.py --onefile

# patch open aea in place
rm -fr ./open-aea
git clone https://github.com/valory-xyz/open-aea.git -b fix/1.5.2_encoding
poetry run pip install ./open-aea/

poetry run pyinstaller --collect-data eth_account --collect-all aea --collect-all autonomy --collect-all operate --collect-all aea_ledger_ethereum --collect-all aea_ledger_cosmos --collect-all aea_ledger_ethereum_flashbots --hidden-import aea_ledger_ethereum --hidden-import aea_ledger_cosmos --hidden-import aea_ledger_ethereum_flashbots operate/pearl.py --add-binary dist/aea_bin:. --add-binary dist/tendermint:. --onefile --name pearl_${{ env.OS_ARCH }}

- name: Upload Release Assets
uses: actions/upload-artifact@v4
with:
name: pearl_${{ env.OS_ARCH }}
path: dist/pearl_${{ env.OS_ARCH }}
name: pearl_${{ matrix.arch }}
path: dist/pearl_${{ matrix.arch }}

# Jobs for production and development, running separately for x64 and arm64
build-release:
runs-on: macos-latest
runs-on: macos-14
strategy:
matrix:
env: [production, development]
Expand All @@ -86,10 +99,18 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
registry-url: "https://registry.npmjs.org"

# Configure Yarn network settings for timeout, retries, and reduced concurrency
- name: Configure Yarn network settings
run: |
yarn config set network-timeout 60000 # Set network timeout to 1 minute
yarn config set network-retries 10 # Retry up to 10 times
yarn config set network-concurrency 2 # Reduce concurrency to 2 connections


# Download the appropriate architecture artifact
- name: Download Pearl (Optimus) binary for architecture
- name: Download Pearl binary for architecture
uses: actions/download-artifact@v4
with:
name: pearl_${{ matrix.arch }}
Expand Down Expand Up @@ -130,35 +151,42 @@ jobs:
if: matrix.env == 'production'
run: yarn build:frontend
env:
NODE_ENV: ${{ matrix.env }}
DEV_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
NODE_ENV: ${{ matrix.env }}
IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }}
FORK_URL: https://rpc-gate.autonolas.tech/gnosis-rpc/
OPTIMISM_RPC: https://rpc-gate.autonolas.tech/optimism-rpc/
BASE_RPC: https://rpc-gate.autonolas.tech/base-rpc/
GNOSIS_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
ETHEREUM_RPC: https://rpc-gate.autonolas.tech/ethereum-rpc/


# Build frontend for development
- name: Build frontend for development
if: matrix.env == 'development'
run: yarn build:frontend
env:
NODE_ENV: ${{ matrix.env }}
DEV_RPC: https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0
IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }}
FORK_URL: https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0
OPTIMISM_RPC: https://rpc-gate.autonolas.tech/optimism-rpc/
BASE_RPC: https://rpc-gate.autonolas.tech/base-rpc/
GNOSIS_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
ETHEREUM_RPC: https://rpc-gate.autonolas.tech/ethereum-rpc/

# Run the build and notarization process for production
- name: Build, notarize, and publish (Production)
if: matrix.env == 'production'
env:
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLEIDPASS }}
APPLE_ID: ${{ secrets.APPLEID }}
APPLETEAMID: ${{ secrets.APPLETEAMID }}
APPLE_TEAM_ID: ${{ secrets.APPLETEAMID }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
GH_TOKEN: ${{ secrets.github_token }}
NODE_ENV: ${{ matrix.env }}
ARCH: ${{ matrix.arch }}
DEV_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
FORK_URL: https://rpc-gate.autonolas.tech/gnosis-rpc/
OPTIMISM_RPC: https://rpc-gate.autonolas.tech/optimism-rpc/
BASE_RPC: https://rpc-gate.autonolas.tech/base-rpc/
GNOSIS_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
ETHEREUM_RPC: https://rpc-gate.autonolas.tech/ethereum-rpc/
run: node build.js

# Run the build and notarization process for development
Expand All @@ -167,15 +195,14 @@ jobs:
env:
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLEIDPASS }}
APPLE_ID: ${{ secrets.APPLEID }}
APPLETEAMID: ${{ secrets.APPLETEAMID }}
APPLE_TEAM_ID: ${{ secrets.APPLETEAMID }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
GH_TOKEN: ${{ secrets.github_token }}
NODE_ENV: ${{ matrix.env }}
ARCH: ${{ matrix.arch }}
DEV_RPC: https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0
FORK_URL: https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0
run: |
echo "DEV_RPC=https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0" >> .env
echo "FORK_URL=https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0" >> .env
node build.js
OPTIMISM_RPC: https://rpc-gate.autonolas.tech/optimism-rpc/
BASE_RPC: https://rpc-gate.autonolas.tech/base-rpc/
GNOSIS_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
ETHEREUM_RPC: https://rpc-gate.autonolas.tech/ethereum-rpc/
run: node build.js
40 changes: 31 additions & 9 deletions .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,44 @@ jobs:
matrix:
include:
- env: "production"
rpc: "https://rpc-gate.autonolas.tech/gnosis-rpc/"
OPTIMISM_RPC: "https://rpc-gate.autonolas.tech/optimism-rpc/"
BASE_RPC: "https://rpc-gate.autonolas.tech/base-rpc/"
GNOSIS_RPC: "https://rpc-gate.autonolas.tech/gnosis-rpc/"
ETHEREUM_RPC: "https://rpc-gate.autonolas.tech/ethereum-rpc/"
arch: "x64"
- env: "development"
rpc: "https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0"
OPTIMISM_RPC: "https://rpc-gate.autonolas.tech/optimism-rpc/"
BASE_RPC: "https://rpc-gate.autonolas.tech/base-rpc/"
GNOSIS_RPC: "https://virtual.gnosis.rpc.tenderly.co/80ff70d1-71fd-4c9e-9402-913f0c4c58b0"
ETHEREUM_RPC: "https://rpc-gate.autonolas.tech/ethereum-rpc/"
arch: "x64"
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
# Set up Python with setup-python action and add it to PATH
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.10"

- name: Add Python to PATH
run: |
echo "${{ steps.setup-python.outputs.python-path }}" >> $GITHUB_PATH

- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
registry-url: "https://registry.npmjs.org"

# Configure Yarn network settings for timeout, retries, and reduced concurrency
- name: Configure Yarn network settings
run: |
yarn config set network-timeout 60000 # Set network timeout to 1 minute
yarn config set network-retries 10 # Retry up to 10 times
yarn config set network-concurrency 2 # Reduce concurrency to 2 connections

- name: Install and configure Poetry
uses: snok/install-poetry@v1
Expand Down Expand Up @@ -84,16 +102,20 @@ jobs:

- name: set env vars to prod.env
env:
NODE_ENV: ${{ matrix.env }}
DEV_RPC: ${{ matrix.rpc }}
NODE_ENV: ${{ matrix.env }}
GNOSIS_RPC: ${{ matrix.GNOSIS_RPC }}
BASE_RPC: ${{ matrix.BASE_RPC }}
ETHEREUM_RPC: ${{ matrix.ETHEREUM_RPC }}
OPTIMISM_RPC: ${{ matrix.OPTIMISM_RPC }}
IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }}
FORK_URL: ${{ matrix.rpc }}
GH_TOKEN: ${{ secrets.github_token}}
run: |
echo NODE_ENV=$NODE_ENV >> prod.env
echo DEV_RPC=$DEV_RPC >> prod.env
echo IS_STAGING=$IS_STAGING >> prod.env
echo FORK_URL=$FORK_URL >> prod.env
echo OPTIMISM_RPC=$OPTIMISM_RPC >> prod.env
echo BASE_RPC=$BASE_RPC >> prod.env
echo ETHEREUM_RPC=$ETHEREUM_RPC >> prod.env
echo GNOSIS_RPC=$GNOSIS_RPC >> prod.env
cat prod.env
echo GH_TOKEN=$GH_TOKEN >> prod.env
- run: rm -rf /dist
Expand Down
8 changes: 4 additions & 4 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ ada5590acaa13a35afb62c368b13c3601e658c0c:operate/services/manage.py:generic-api-
ada5590acaa13a35afb62c368b13c3601e658c0c:operate/services/manage.py:generic-api-key:449
ef9ec7a111816282b6185e8268a460d02329fbe4:api.md:generic-api-key:13
ef9ec7a111816282b6185e8268a460d02329fbe4:api.md:generic-api-key:37
44388a82d29ce4d96e554c828c3c2c12d6ee3b8a:operate/data/contracts/service_staking_token/contract.yaml:generic-api-key:10
43bb67ace89a4a6e0eee84d3ee6495088288c528:backend/operate/data/contracts/service_staking_token/contract.yaml:generic-api-key:10
19ecb1e59813c632971658183a9f2d9d88e0614b:backend/operate/data/contracts/service_staking_token/contract.yaml:generic-api-key:10
44388a82d29ce4d96e554c828c3c2c12d6ee3b8a:operate/data/contracts/staking_token/contract.yaml:generic-api-key:10
43bb67ace89a4a6e0eee84d3ee6495088288c528:backend/operate/data/contracts/staking_token/contract.yaml:generic-api-key:10
19ecb1e59813c632971658183a9f2d9d88e0614b:backend/operate/data/contracts/staking_token/contract.yaml:generic-api-key:10
37847b0c322a0dbc8987df526a49df70301e44d4:backend/operate/ledger/profiles.py:generic-api-key:29
6834023917760bf7875cc7c107e0c59ad7925ef4:backend/operate/ledger/profiles.py:generic-api-key:32
4e8c1c21dffd9283195052117ad4c371f770e0b2:backend/operate/ledger/profiles.py:generic-api-key:28
Expand All @@ -17,7 +17,7 @@ daf41a143aa8c483db584ba1e7222e8eafec1d3b:backend/controller.py:generic-api-key:2
af77e930289cbc87987567bff0efc25936484df2:backend/controller.py:generic-api-key:354b04972639d66053109596d3b73a1d91688964ebb:electron/constants/publishOptions.js:github-fine-grained-pat:3
b04972639d66053109596d3b73a1d91688964ebb:electron/constants/publishOptions.js:github-fine-grained-pat:3
af77e930289cbc87987567bff0efc25936484df2:backend/controller.py:generic-api-key:354
e7de9ce0b902ed6d68f8c5b033d044f39b08f5a1:operate/data/contracts/service_staking_token/contract.yaml:generic-api-key:10
e7de9ce0b902ed6d68f8c5b033d044f39b08f5a1:operate/data/contracts/staking_token/contract.yaml:generic-api-key:10
d8149e9b5b7bd6a7ed7bc1039900702f1d4f287b:operate/services/manage.py:generic-api-key:405
d8149e9b5b7bd6a7ed7bc1039900702f1d4f287b:operate/services/manage.py:generic-api-key:406
d8149e9b5b7bd6a7ed7bc1039900702f1d4f287b:operate/services/manage.py:generic-api-key:454
Expand Down
Loading
Loading