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

Multi Chain PoR Address List EA #3561

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Multi Chain PoR Address List EA #3561

merged 1 commit into from
Nov 15, 2024

Conversation

mxiao-cll
Copy link
Contributor

Closes #DF-20746

Description

Adding a new endpoint to handle Multi Chain PoR Address List

  • This means that the address list contract contains address list for multiple chains

Changes

Steps to Test

{
    "data": {
        "result": [
            {
                "network": "224",
                "contractAddress": "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",
                "wallets": [
                    "0xdE2BA910eBDCC53FC8a11dcD51aDe24E3eD5c3fC",
                    "0x70451b1AF665F490df5aC86c15F5162a383A594B"
                ]
            },
            {
                "network": "224",
                "contractAddress": "0x0000000000000000000000000000000000000001",
                "wallets": [
                    "0xb8119F2ccfA504735c14D381cf888d1D267dbe43"
                ]
            }
        ]
    },
    "statusCode": 200,
    "result": null,
    "timestamps": {
        "providerDataRequestedUnixMs": 1731594036969,
        "providerDataReceivedUnixMs": 1731594037827
    },
    "meta": {
        "adapterName": "POR_ADDRESS_LIST",
        "metrics": {
            "feedId": "{\"contractAddress\":\"0xb7c0817dd23de89e4204502dd2c2ef7f57d3a3b8\",\"contractAddressNetwork\":\"bsc\",\"confirmations\":0,\"batchSize\":10}"
        }
    }
}
{
    "data": {
        "result": [
            {
                "network": "56",
                "contractAddress": "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",
                "wallets": [
                    "0xb37Cf50f279a5f6C63CC33f447679E600D03394f",
                    "0x9537Bc0546506785bD1eBd19fD67d1F06800D185"
                ]
            },
            {
                "network": "1",
                "contractAddress": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
                "wallets": [
                    "0x9Bc8EF6bb09e3D0F3F3a6CD02D2B9dC3115C7c5C",
                    "0x51c2ba3c5e8a90E7c27Fa9eC8b287454EB698EAd"
                ]
            },
            {
                "network": "42161",
                "contractAddress": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
                "wallets": [
                    "0x032470aBBb896b1255299d5165c1a5e9ef26bcD2"
                ]
            },
            {
                "network": "60808",
                "contractAddress": "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3",
                "wallets": [
                    "0x33b7A7a164B77433A61d4B49bD780a2718812e6e"
                ]
            },
            {
                "network": "1",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0xBE6297731720B7E218031Ca8970921f9b41f3D00"
                ]
            },
            {
                "network": "5000",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x33b7A7a164B77433A61d4B49bD780a2718812e6e"
                ]
            },
            {
                "network": "1",
                "contractAddress": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
                "wallets": [
                    "0xAd713bd85E8bff9CE85Ca03a8A930e4a38f6893D"
                ]
            },
            {
                "network": "8453",
                "contractAddress": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
                "wallets": [
                    "0xcDAAAa09E6E0DE3e7171259cF6962E4D44f983F9"
                ]
            },
            {
                "network": "43114",
                "contractAddress": "0x152b9d0FdC40C096757F570A51E494bd4b943E50",
                "wallets": [
                    "0x33b7A7a164B77433A61d4B49bD780a2718812e6e"
                ]
            }
        ]
    },
    "statusCode": 200,
    "result": null,
    "timestamps": {
        "providerDataRequestedUnixMs": 1731594071661,
        "providerDataReceivedUnixMs": 1731594072395
    },
    "meta": {
        "adapterName": "POR_ADDRESS_LIST",
        "metrics": {
            "feedId": "{\"contractAddress\":\"0xdc8f09ceb7ff5ba61a2aadcb3058cb24d2926b01\",\"contractAddressNetwork\":\"eth_sepolia\",\"confirmations\":0,\"batchSize\":10}"
        }
    }
}
{
    "data": {
        "result": [
            {
                "network": "1",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x3A29CD3052774224E7C2CF001254211C986967B2",
                    "0x3d9bCcA8Bc7D438a4c5171435f41a0AF5d5E6083",
                    "0x77A0545Dc1Dc6bAee8d9c1d436c6688a75Ae5777",
                    "0xAC364d14020f1da0044699691a91f06ca6131Fe3"
                ]
            },
            {
                "network": "1",
                "contractAddress": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
                "wallets": [
                    "0x1fCca65fb6Ae3b2758b9b2B394CB227eAE404e1E",
                    "0x3A29CD3052774224E7C2CF001254211C986967B2",
                    "0x77A0545Dc1Dc6bAee8d9c1d436c6688a75Ae5777",
                    "0xAC364d14020f1da0044699691a91f06ca6131Fe3"
                ]
            },
            {
                "network": "56",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x1553B5053EBF7aDd0f202D41E44Aa43C41Cfc421",
                    "0x2b4B9047C9fEA54705218388bFC7Aa7bADA4BB5E",
                    "0x4914c2524ed7491C7DD190F71E5f32443798D357",
                    "0x8A0727B87fa1027c419c3aa2caf56C799d5Bd8c5"
                ]
            },
            {
                "network": "56",
                "contractAddress": "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",
                "wallets": [
                    "0x1553B5053EBF7aDd0f202D41E44Aa43C41Cfc421",
                    "0x2Ee808F769AB697C477E0aF8357315069b66bCBb",
                    "0x4914c2524ed7491C7DD190F71E5f32443798D357",
                    "0x80922aD2771c5Ea9C14bA5FF4a903EC6B0f7e7C9",
                    "0x8A0727B87fa1027c419c3aa2caf56C799d5Bd8c5"
                ]
            },
            {
                "network": "5001",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x4913D495cBA3e1380218d2258126F22Ea5dE5f8B",
                    "0xC7DA129335F8815d62fBd3ca7183A3b2791CdB5e",
                    "0xca873913BBf124441857d32Bb23f723b68433465",
                    "0xd6Ab15B2458B6EC3E94cE210174d860FdBdd6b96"
                ]
            },
            {
                "network": "1234",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x4913D495cBA3e1380218d2258126F22Ea5dE5f8B",
                    "0x75Fb83D483359416027038D9be4A61745c1f3bF7",
                    "0xC7DA129335F8815d62fBd3ca7183A3b2791CdB5e",
                    "0xca873913BBf124441857d32Bb23f723b68433465",
                    "0xd7C019326B5C22A6a2e0AadD1241Af94FF7ecf7B"
                ]
            },
            {
                "network": "8453",
                "contractAddress": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
                "wallets": [
                    "0x1fCca65fb6Ae3b2758b9b2B394CB227eAE404e1E",
                    "0x4913D495cBA3e1380218d2258126F22Ea5dE5f8B",
                    "0xC7DA129335F8815d62fBd3ca7183A3b2791CdB5e",
                    "0xca873913BBf124441857d32Bb23f723b68433465",
                    "0xF1D06Be8dF2F7Ed4Cdc9ac05915EA2b618FFA3Fb"
                ]
            }
        ]
    },
    "statusCode": 200,
    "result": null,
    "timestamps": {
        "providerDataRequestedUnixMs": 1731595909282,
        "providerDataReceivedUnixMs": 1731595910471
    },
    "meta": {
        "adapterName": "POR_ADDRESS_LIST",
        "metrics": {
            "feedId": "{\"contractAddress\":\"0xbb118b7a9ecd1852bcefcaaf1a6c8b4cc78a8fbb\",\"contractAddressNetwork\":\"polygon\",\"confirmations\":0,\"batchSize\":10}"
        }
    }
}

Quality Assurance

  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant infra-k8s configuration file.
  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant adapter-secrets configuration file or update the soak testing blacklist.
  • If a new adapter was made, or a new endpoint was added, update the test-payload.json file with relevant requests.
  • The branch naming follows git flow (feature/x, chore/x, release/x, hotfix/x, fix/x) or is created from Jira.
  • This is related to a maximum of one Jira story or GitHub issue.
  • Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
  • All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.

Copy link

changeset-bot bot commented Nov 14, 2024

🦋 Changeset detected

Latest commit: 577bb01

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@chainlink/por-address-list-adapter Minor
@chainlink/proof-of-reserves-adapter Patch
@chainlink/renvm-address-set-adapter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mxiao-cll mxiao-cll merged commit 5f0ae26 into main Nov 15, 2024
8 checks passed
@mxiao-cll mxiao-cll deleted the por branch November 15, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants