diff --git a/.changeset/angry-onions-love.md b/.changeset/angry-onions-love.md new file mode 100644 index 0000000000..67998754fc --- /dev/null +++ b/.changeset/angry-onions-love.md @@ -0,0 +1,5 @@ +--- +'@chainlink/por-address-list-adapter': patch +--- + +Fix multi address list contract diff --git a/packages/sources/por-address-list/src/config/PoRAddressListMulti.json b/packages/sources/por-address-list/src/config/PoRAddressListMulti.json index da8af723ef..2eb4df030a 100644 --- a/packages/sources/por-address-list/src/config/PoRAddressListMulti.json +++ b/packages/sources/por-address-list/src/config/PoRAddressListMulti.json @@ -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[]" } ], @@ -25,7 +53,13 @@ { "inputs": [], "name": "getPoRAddressListLength", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], "stateMutability": "view", "type": "function" } diff --git a/packages/sources/por-address-list/src/transport/multichainAddress.ts b/packages/sources/por-address-list/src/transport/multichainAddress.ts index c893645514..fec330a4ae 100644 --- a/packages/sources/por-address-list/src/transport/multichainAddress.ts +++ b/packages/sources/por-address-list/src/transport/multichainAddress.ts @@ -15,7 +15,7 @@ type RequestParams = typeof inputParameters.validated interface ResponseSchema { tokenSymbol: string chain: string - chainId: bigint + chainId: number tokenAddress: string vaultAddress: string }