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

Feat: Add alfajores #8

Merged
merged 10 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = {
'Please import from src/dependencies to make this dependency more testable',
},
{
group: ['@balancer-labs/sdk'],
group: ['@kolektivo-labs/sdk'],
importNames: ['PoolsFallbackRepository'],
message:
'Please import from src/dependencies to make this dependency more testable',
Expand Down Expand Up @@ -103,7 +103,7 @@ module.exports = {
'Please import from src/dependencies to make this dependency more testable',
},
{
group: ['@balancer-labs/sdk'],
group: ['@kolektivo-labs/sdk'],
importNames: ['Network'],
message:
'Please import Network from @/lib/config to avoid adding SDK to bundle',
Expand Down
190 changes: 95 additions & 95 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
"tailwind:build": "tailwind-config-viewer export ./tailwind-static",
"tailwind:view": "tailwind-config-viewer -o",
"generate:contract-addresses": "NODE_ENV=development npx vite-node ./src/lib/scripts/contract-addresses.generator.ts",
"generate:tokenlists": "NODE_ENV=development npx vite-node --options.deps.inline=@ethersproject/basex --options.deps.inline=@ethersproject/signing-key --options.deps.inline=@balancer-labs/sdk ./src/lib/scripts/tokenlists.generator.ts",
"generate:voting-gauges": "NODE_ENV=development npx vite-node --options.deps.inline=date-fns --options.deps.inline=@ethersproject/basex --options.deps.inline=@ethersproject/signing-key --options.deps.inline=@balancer-labs/sdk ./src/lib/scripts/voting-gauge.generator.ts",
"generate:tokenlists": "NODE_ENV=development npx vite-node --options.deps.inline=@ethersproject/basex --options.deps.inline=@ethersproject/signing-key --options.deps.inline=@kolektivo-labs/sdk ./src/lib/scripts/tokenlists.generator.ts",
"generate:voting-gauges": "NODE_ENV=development npx vite-node --options.deps.inline=date-fns --options.deps.inline=@ethersproject/basex --options.deps.inline=@ethersproject/signing-key --options.deps.inline=@kolektivo-labs/sdk ./src/lib/scripts/voting-gauge.generator.ts",
"generate:api": "graphql-codegen --config codegen.yml -r dotenv/config",
"typecheck": "vue-tsc --noEmit"
},
"devDependencies": {
"@aave/protocol-js": "^4.3.0",
"@balancer-labs/assets": "github:balancer-labs/assets#master",
"@balancer-labs/sdk": "^1.1.6-beta.3",
"@balancer-labs/typechain": "^1.0.0",
"@balancer-labs/v2-deployments": "^3.2.0",
"@cowprotocol/contracts": "^1.3.1",
Expand All @@ -69,6 +68,7 @@
"@graphql-codegen/typescript-operations": "^2.2.0",
"@graphql-codegen/typescript-resolvers": "2.4.1",
"@intlify/unplugin-vue-i18n": "^0.8.1",
"@kolektivo-labs/sdk": "^0.0.1-beta",
"@layerzerolabs/scan-client": "^0.0.5",
"@metamask/detect-provider": "^1.2.0",
"@popperjs/core": "^2.9.2",
Expand Down
72 changes: 72 additions & 0 deletions src/assets/data/contracts/alfajores.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"AaveLinearPoolFactory": "",
"Authorizer": "0x03eCF2CCfA707aeE1E5F07E920796c62bB1fb5Bc",
"AuthorizerAdaptor": "",
"AuthorizerAdaptorEntrypoint": "",
"AuthorizerWithAdaptorValidation": "",
"BalancerHelpers": "0xCFB54b5eaFe6E71FdC569736fF626D1f83a58B19",
"BalancerQueries": "",
"BalancerRelayer": "",
"BalancerPoolDataQueries": "",
"BatchRelayerLibrary": "",
"ChainlinkRateProviderFactory": "",
"ChildChainGauge": "",
"ChildChainGaugeFactory": "",
"ChildChainGaugeRewardHelper": "",
"ChildChainGaugeTokenAdder": "",
"ChildChainLiquidityGaugeFactory": "",
"ChildChainStreamer": "",
"ChildChainGaugeWorkingBalanceHelper": "",
"ChildChainGaugeCheckpointer": "",
"CircuitBreakerLib": "",
"ComposableStablePoolFactory": "",
"DoubleEntrypointFixRelayer": "",
"ERC4626LinearPoolFactory": "",
"ExternalWeightedMath": "",
"GaugeWorkingBalanceHelper": "",
"GearboxLinearPoolFactory": "",
"InvestmentPoolFactory": "",
"L2BalancerPseudoMinter": "",
"L2LayerZeroBridgeForwarder": "",
"LiquidityBootstrappingPoolFactory": "",
"ManagedPoolAddRemoveTokenLib": "",
"ManagedPoolAmmLib": "",
"ManagedPoolFactory": "",
"MerkleOrchard": "",
"MerkleRedeem": "",
"MetaStablePoolFactory": "",
"MockAaveLendingPool": "",
"MockAaveLinearPool": "",
"MockComposableStablePool": "",
"MockERC4626LinearPool": "",
"MockLiquidityBootstrappingPool": "",
"MockERC4626Token": "",
"MockGearboxDieselToken": "",
"MockGearboxLinearPool": "",
"MockGearboxVault": "",
"MockManagedPool": "",
"MockStaticAToken": "",
"MockWeightedPool": "0x04E4BBA6BeaC4E1950a2cE8363849Ff24547fA09",
"MockYearnLinearPool": "",
"MockYearnTokenVault": "",
"NoProtocolFeeLiquidityBootstrappingPoolFactory": "",
"NullVotingEscrow": "",
"PoolRecoveryHelper": "",
"ProtocolFeePercentagesProvider": "0x73cB650e9f3CE181A684C7e28c8ee7626B448c50",
"ProtocolFeesCollector": "0x5Dd8459e1889Ec166085EF96AAf18591b1AB0B88",
"ProtocolFeesWithdrawer": "",
"ProtocolIdRegistry": "",
"QueryProcessor": "",
"RecoveryModeHelper": "",
"RewardsOnlyGauge": "",
"StablePhantomPoolFactory": "",
"StablePoolFactory": "",
"TestBalancerToken": "",
"UnbuttonAaveLinearPoolFactory": "",
"Vault": "0xf2D39dd1b3e991f23d8a61bABb1c13873640873F",
"VotingEscrowDelegationProxy": "",
"WeightedPool2TokensFactory": "",
"WeightedPoolFactory": "0x997252b17F61fFc6Ca2fDDd7fa1Cb0cdb98f202D",
"YearnLinearPoolFactory": "",
"Multicall": "0xca11bde05977b3631167028862be2a173976ca11"
}
13 changes: 13 additions & 0 deletions src/assets/images/icons/networks/alfajores.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/images/icons/networks/celo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/cards/SwapCard/SwapCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
</template>

<script lang="ts">
import { SubgraphPoolBase } from '@balancer-labs/sdk';
import { SubgraphPoolBase } from '@kolektivo-labs/sdk';
import { getAddress, isAddress } from '@ethersproject/address';
import { formatUnits } from '@ethersproject/units';
import { useI18n } from 'vue-i18n';
Expand Down
2 changes: 1 addition & 1 deletion src/components/cards/SwapCard/SwapRoute.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { SubgraphPoolBase, SwapV2 } from '@balancer-labs/sdk';
import { SubgraphPoolBase, SwapV2 } from '@kolektivo-labs/sdk';
import { getAddress } from '@ethersproject/address';
import { AddressZero } from '@ethersproject/constants';
import BigNumber from 'bignumber.js';
Expand Down
Loading