Skip to content

Commit

Permalink
Update Por address list contract (#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Nov 21, 2024
1 parent 92137cc commit ad74721
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-onions-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/por-address-list-adapter': patch
---

Fix multi address list contract
Original file line number Diff line number Diff line change
@@ -1,21 +1,49 @@
[
{
"inputs": [
{ "internalType": "uint256", "name": "startIndex_", "type": "uint256" },
{ "internalType": "uint256", "name": "endIndex_", "type": "uint256" }
{
"internalType": "uint256",
"name": "startIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endIndex",
"type": "uint256"
}
],
"name": "getPoRAddressList",
"outputs": [
{
"components": [
{ "internalType": "string", "name": "tokenSymbol", "type": "string" },
{ "internalType": "string", "name": "chain", "type": "string" },
{ "internalType": "uint64", "name": "chainId", "type": "uint64" },
{ "internalType": "address", "name": "tokenAddress", "type": "address" },
{ "internalType": "address", "name": "vaultAddress", "type": "address" }
{
"internalType": "string",
"name": "chain",
"type": "string"
},
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "string",
"name": "tokenSymbol",
"type": "string"
},
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "address",
"name": "vaultAddress",
"type": "address"
}
],
"internalType": "struct IPoRAddressListMulti.TokenVaultInfo[]",
"name": "tokenVaultInfos_",
"internalType": "struct IEVMPoRAddressList.PoRInfo[]",
"name": "",
"type": "tuple[]"
}
],
Expand All @@ -25,7 +53,13 @@
{
"inputs": [],
"name": "getPoRAddressListLength",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type RequestParams = typeof inputParameters.validated
interface ResponseSchema {
tokenSymbol: string
chain: string
chainId: bigint
chainId: number
tokenAddress: string
vaultAddress: string
}
Expand Down

0 comments on commit ad74721

Please sign in to comment.