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

Lombard PoR address #3623

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Lombard PoR address #3623

wants to merge 1 commit into from

Conversation

mxiao-cll
Copy link
Contributor

Closes #DF-20913

Description

Re-write internals so that we only need to add new AddressManager when a new ABI comes in

Changes

  • High level
  • changes that
  • you made

Steps to Test

        "chainId": "mainnet",
        "contractAddress": "0xD4BF82406b2E33bE3013881DFbf17A763046517a",
        "contractAddressNetwork": "BASE_SEPOLIA",
        "network": "bitcoin",
        "abiName": "Lombard"
{
    "data": {
        "result": [
            {
                "address": "tb1qcw4u0p7gzwjh6vtagq433sjfvw8qjy24w6u3g2'",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qcw4u0p7gzwjh6vtagq433sjfvw8qjy24w6u3g2",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1q8r4kn6sm46rukw630yfztmy5vap47zl2w5k663",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qsshhk6lyvrl5nlyd8c3kj5klyttf6av4wszk5e",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qjdmva6hkhkslva6ahpr8wyraht24a5y6mu58jf",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qk9jc5pkkr9rjwvgve85uhks5grznle6rz7w0sp",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qsgyq3tj0mg3q2chckscdx74fulndssm20lerzm",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1q37u40kls48lnu0yc03jkl2h043dnnpd4z8kry4",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qn3lkpps06d52d2egs5g626w74yx43ykslz8l59",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qn3lkpps06d52d2egs5g626w74yx43ykslz8l59'",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qel7qqau7c0gc4rrw7798xjyuea6h2qunlt90np",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qraa52w3sjqp9sfj9j3astfyly06nruqx55x5tq",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qfkej90y0qksgj0h9f88juc9j8wkuwnm6pt6dak",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qleegdhwm6u5amheq3dmghs860dpfcqx4l4df9n",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1q7f6qn27wwlfuafge7rfdd6p8caxz38kcjmx6wa",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qk0qchz8y3ljpgjre0r46fuu4ff73pjleukdfm9",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qj4lmz7vrqg23m2ktxc4a8df0kuznnql55hlk93",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1qefxc7gf5nh9erqhtdn5fj9a4s2ju4ljpgwr53h",
                "network": "bitcoin",
                "chainId": "mainnet"
            },
            {
                "address": "tb1quee4fvg3sazed65v38vhwwrejh8s0ldvq8d9hh",
                "network": "bitcoin",
                "chainId": "mainnet"
            }
        ]
    },
    "statusCode": 200,
    "result": null,
    "timestamps": {
        "providerDataRequestedUnixMs": 1734635181706,
        "providerDataReceivedUnixMs": 1734635182123
    },
    "meta": {
        "adapterName": "POR_ADDRESS_LIST",
        "metrics": {
            "feedId": "{\"confirmations\":0,\"contractAddress\":\"0xd4bf82406b2e33be3013881dfbf17a763046517a\",\"contractAddressNetwork\":\"base_sepolia\",\"batchSize\":10,\"network\":\"bitcoin\",\"chainId\":\"mainnet\",\"abiName\":\"lombard\"}"
        }
    }
}

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 Dec 19, 2024

🦋 Changeset detected

Latest commit: 265a963

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 requested a review from a team December 19, 2024 20:06
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.

1 participant