Skip to content

Commit

Permalink
Merge branch 'master' into feat/lido-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamier authored Oct 17, 2024
2 parents 0313dd9 + b4139cf commit 4a68c4f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ descriptors:
ci:
- changed-files:
- any-glob-to-any-file: ['.github/**']

preview-tool:
- changed-files:
- any-glob-to-any-file: ['developer-preview']
1 change: 1 addition & 0 deletions .github/workflows/pull_request_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ jobs:
specifications
descriptors
ci
preview-tool
add_comment: true
8 changes: 6 additions & 2 deletions developer-preview/src/app/ContractInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
import { UI } from "~/ui/UI";
import { type Deploymnent, type PreviewData } from "~/types/PreviewData";
import { type PreviewData } from "~/types/PreviewData";
import { formatShortAddress } from "~/app/formatShortAddress";

export const ContractInfo = ({ data }: { data: PreviewData }) => {
if (data.contract.deployments.length === 0) {
return <UI.FauxInput error>No deployments found</UI.FauxInput>;
}

const uniqueAddresses = Array.from(
new Set(data.contract.deployments.map(({ address }) => address)),
);

return (
<div>
<UI.FauxInput>
<div className="flex items-center justify-between">
<UI.InputText>{data.contract.name}</UI.InputText>

<div className="flex gap-5">
{data.contract.deployments.map(({ address }: Deploymnent) => (
{uniqueAddresses.map((address: string) => (
<UI.GreyLink
href={`https://etherscan.io/address/${address}`}
key={address}
Expand Down
16 changes: 10 additions & 6 deletions registry/paraswap/calldata-AugustusSwapper.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,18 @@
"label": "Exchange",
"format": "addressName",
"params": {
"types": ["contract"]
"types": [
"contract"
]
}
},
"factory": {
"label": "Uniswap Factory",
"format": "addressName",
"params": {
"types": ["contract"]
"types": [
"contract"
]
}
}
},
Expand Down Expand Up @@ -265,7 +269,7 @@
}
},
{
"path": "toAmount",
"path": "amountOutMin",
"$ref": "$.display.definitions.minReceiveAmount",
"params": {
"tokenPath": "toToken"
Expand Down Expand Up @@ -293,7 +297,7 @@
}
},
{
"path": "toAmount",
"path": "amountOutMin",
"$ref": "$.display.definitions.minReceiveAmount",
"params": {
"tokenPath": "toToken"
Expand Down Expand Up @@ -427,7 +431,7 @@
"path": "data.toAmount",
"$ref": "$.display.definitions.minReceiveAmount",
"params": {
"tokenPath": "data.path.-1.to"
"tokenPath": "data.path.[-1].to"
}
},
{
Expand Down Expand Up @@ -499,4 +503,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion registry/uniswap/calldata-UniswapV3Router02.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"label": "Amount to Send",
"format": "tokenAmount",
"params": {
"tokenPath": "path[0]"
"tokenPath": "path.[0]"
}
},
{
Expand Down

0 comments on commit 4a68c4f

Please sign in to comment.