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

Update bedrock API structure #3588

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Update bedrock API structure #3588

merged 2 commits into from
Nov 27, 2024

Conversation

mxiao-cll
Copy link
Contributor

@mxiao-cll mxiao-cll commented Nov 27, 2024

Description

API structure has changed

Changes

Steps to Test

{
    "result": null,
    "data": {
        "result": [
            {
                "address": "0xF9775085d726E782E83585033B58606f7731AB18",
                "network": "bitlayer",
                "chainId": "200901"
            },
            {
                "address": "0xF9775085d726E782E83585033B58606f7731AB18",
                "network": "bsquared",
                "chainId": "223"
            },
            {
                "address": "0xF9775085d726E782E83585033B58606f7731AB18",
                "network": "merlin",
                "chainId": "4200"
            }
        ]
    },
    "timestamps": {
        "providerDataRequestedUnixMs": 1732725039121,
        "providerDataReceivedUnixMs": 1732725040398
    },
    "statusCode": 200,
    "meta": {
        "adapterName": "POR_ADDRESS_LIST",
        "metrics": {
            "feedId": "{\"type\":\"vault\"}"
        }
    }
}
{
    "result": null,
    "data": {
        "result": [
            {
                "chainId": "42161",
                "contractAddress": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "42161",
                "contractAddress": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "42161",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "200901",
                "contractAddress": "0xfF204e2681A6fA0e2C3FaDe68a1B28fb90E4Fc5F",
                "wallets": [
                    "0xF9775085d726E782E83585033B58606f7731AB18"
                ]
            },
            {
                "chainId": "60808",
                "contractAddress": "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3",
                "wallets": [
                    "0x2ac98DB41Cbd3172CB7B8FD8A8Ab3b91cFe45dCf"
                ]
            },
            {
                "chainId": "60808",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x2ac98DB41Cbd3172CB7B8FD8A8Ab3b91cFe45dCf"
                ]
            },
            {
                "chainId": "56",
                "contractAddress": "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "56",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "223",
                "contractAddress": "0x4200000000000000000000000000000000000006",
                "wallets": [
                    "0xF9775085d726E782E83585033B58606f7731AB18"
                ]
            },
            {
                "chainId": "1",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0x047D41F2544B7F63A8e991aF2068a363d210d6Da"
                ]
            },
            {
                "chainId": "1",
                "contractAddress": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
                "wallets": [
                    "0x047D41F2544B7F63A8e991aF2068a363d210d6Da"
                ]
            },
            {
                "chainId": "1",
                "contractAddress": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
                "wallets": [
                    "0x047D41F2544B7F63A8e991aF2068a363d210d6Da"
                ]
            },
            {
                "chainId": "5000",
                "contractAddress": "0xC96dE26018A54D51c097160568752c4E3BD6C364",
                "wallets": [
                    "0xF9775085d726E782E83585033B58606f7731AB18"
                ]
            },
            {
                "chainId": "4200",
                "contractAddress": "0xB880fd278198bd590252621d4CD071b1842E9Bcd",
                "wallets": [
                    "0xF9775085d726E782E83585033B58606f7731AB18"
                ]
            },
            {
                "chainId": "4200",
                "contractAddress": "0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA",
                "wallets": [
                    "0xF9775085d726E782E83585033B58606f7731AB18"
                ]
            },
            {
                "chainId": "34443",
                "contractAddress": "0x59889b7021243dB5B1e065385F918316cD90D46c",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "34443",
                "contractAddress": "0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            },
            {
                "chainId": "10",
                "contractAddress": "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
                "wallets": [
                    "0xF9775085d726E782E83585033B58606f7731AB18"
                ]
            },
            {
                "chainId": "7000",
                "contractAddress": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4",
                "wallets": [
                    "0x84E5C854A7fF9F49c888d69DECa578D406C26800"
                ]
            }
        ]
    },
    "timestamps": {
        "providerDataRequestedUnixMs": 1732725056427,
        "providerDataReceivedUnixMs": 1732725056761
    },
    "statusCode": 200,
    "meta": {
        "adapterName": "POR_ADDRESS_LIST",
        "metrics": {
            "feedId": "{\"type\":\"tokens\"}"
        }
    }
}

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 27, 2024

🦋 Changeset detected

Latest commit: 591a168

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 Patch
@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

alecgard
alecgard previously approved these changes Nov 27, 2024
Copy link
Contributor

@alecgard alecgard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment on adding details on the new type, but not necessarily blocking

@mxiao-cll mxiao-cll merged commit c6bcee9 into main Nov 27, 2024
8 checks passed
@mxiao-cll mxiao-cll deleted the por branch November 27, 2024 17:01
@github-actions github-actions bot mentioned this pull request Nov 27, 2024
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.

2 participants