Skip to content

Upgrade viem and demo packages #353

Upgrade viem and demo packages

Upgrade viem and demo packages #353

Triggered via pull request January 15, 2025 18:59
Status Failure
Total duration 2m 16s
Artifacts

pull-request.yml

on: pull_request
Unit tests and linting
2m 6s
Unit tests and linting
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
src/client.test.ts > Should test the client. > Should confirm client is configured properly.: packages/sdk/src/client.test.ts#L25
AssertionError: expected RelayClient{ …(8) } to deeply equal ObjectContaining{…} - Expected + Received - ObjectContaining { - "actions": ObjectContaining { - "execute": Anything, - "getQuote": Anything, - "getSolverCapacity": Anything, + RelayClient { + "actions": Object { + "execute": [Function execute], + "getPrice": [Function getPrice], + "getQuote": [Function getQuote], + "getSolverCapacity": [Function getSolverCapacity], }, "baseApiUrl": "https://api.relay.link", - "chains": ArrayContaining [ - ObjectContaining { + "chains": Array [ + Object { + "currency": Object { + "address": "0x0000000000000000000000000000000000000000", + "decimals": 18, + "name": "Ether", + "symbol": "ETH", + }, "depositEnabled": true, "displayName": "Ethereum", "explorerUrl": "https://etherscan.io", - "httpRpcUrl": "https://cloudflare-eth.com", + "httpRpcUrl": "https://eth.merkle.io", + "icon": Object { + "dark": "https://assets.relay.link/icons/1/dark.png", + "light": "https://assets.relay.link/icons/1/light.png", + "squaredDark": "https://assets.relay.link/icons/square/1/dark.png", + "squaredLight": "https://assets.relay.link/icons/square/1/light.png", + }, + "id": 1, + "name": "Ethereum", + "viemChain": Object { + "blockExplorers": Object { + "default": Object { + "apiUrl": "https://api.etherscan.io/api", + "name": "Etherscan", + "url": "https://etherscan.io", + }, + }, + "contracts": Object { + "ensRegistry": Object { + "address": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + "ensUniversalResolver": Object { + "address": "0xce01f8eee7E479C928F8919abD53E553a36CeF67", + "blockCreated": 19258213, + }, + "multicall3": Object { + "address": "0xca11bde05977b3631167028862be2a173976ca11", + "blockCreated": 14353601, + }, + }, + "fees": undefined, + "formatters": undefined, "id": 1, "name": "Ethereum", + "nativeCurrency": Object { + "decimals": 18, + "name": "Ether", + "symbol": "ETH", + }, + "rpcUrls": Object { + "default": Object { + "http": Array [ + "https://eth.merkle.io", + ], + }, + }, + "serializers": undefined, + }, + "vmType": "evm", "wsRpcUrl": "", }, - ObjectContaining { + Object { + "currency": Object { + "address": "0x0000000000000000000000000000000000000000", + "decimals": 18, + "name": "Ether", + "symbol": "ETH", + }, "depositEnabled": true, "displayName": "Base", "explorerUrl": "https://basescan.org", "httpRpcUrl": "https://mainnet.base.org", + "icon": Object { + "dark": "https://assets.relay.link/icons/8453/dark.png", + "light": "https://assets.relay.link/icons/8453/light.png", + "squaredDark": "https://assets.relay.link/icons/square/8453/dark.png", + "squaredLight": "https://assets.relay.link/icons/square/8453/light.png", + }, "id": 8453, "name": "Base", + "viemChain": Object { + "blockExplorers": Object { + "default": Object { + "apiUrl": "https://api.basescan.org/api", + "name": "Basescan", + "url": "https://basescan.org", + }, + }, + "contracts": Object { + "disputeGameFactory": Object { + "1": Object { + "address": "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e", + }, + }, + "gasPriceOracle": Object { + "address": "0x420000000000000000000000000000000000000F", + }, + "l1Block": Object { + "address": "0x42
src/client.test.ts > Should test the client. > Should confirm getClient returns the client correctly.: packages/sdk/src/client.test.ts#L98
AssertionError: expected RelayClient{ …(8) } to deeply equal ObjectContaining{…} - Expected + Received - ObjectContaining { - "actions": ObjectContaining { - "execute": Anything, - "getQuote": Anything, - "getSolverCapacity": Anything, + RelayClient { + "actions": Object { + "execute": [Function execute], + "getPrice": [Function getPrice], + "getQuote": [Function getQuote], + "getSolverCapacity": [Function getSolverCapacity], }, "baseApiUrl": "https://api.relay.link", - "chains": ArrayContaining [ - ObjectContaining { + "chains": Array [ + Object { + "currency": Object { + "address": "0x0000000000000000000000000000000000000000", + "decimals": 18, + "name": "Ether", + "symbol": "ETH", + }, "depositEnabled": true, "displayName": "Ethereum", "explorerUrl": "https://etherscan.io", - "httpRpcUrl": "https://cloudflare-eth.com", + "httpRpcUrl": "https://eth.merkle.io", + "icon": Object { + "dark": "https://assets.relay.link/icons/1/dark.png", + "light": "https://assets.relay.link/icons/1/light.png", + "squaredDark": "https://assets.relay.link/icons/square/1/dark.png", + "squaredLight": "https://assets.relay.link/icons/square/1/light.png", + }, + "id": 1, + "name": "Ethereum", + "viemChain": Object { + "blockExplorers": Object { + "default": Object { + "apiUrl": "https://api.etherscan.io/api", + "name": "Etherscan", + "url": "https://etherscan.io", + }, + }, + "contracts": Object { + "ensRegistry": Object { + "address": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + }, + "ensUniversalResolver": Object { + "address": "0xce01f8eee7E479C928F8919abD53E553a36CeF67", + "blockCreated": 19258213, + }, + "multicall3": Object { + "address": "0xca11bde05977b3631167028862be2a173976ca11", + "blockCreated": 14353601, + }, + }, + "fees": undefined, + "formatters": undefined, "id": 1, "name": "Ethereum", + "nativeCurrency": Object { + "decimals": 18, + "name": "Ether", + "symbol": "ETH", + }, + "rpcUrls": Object { + "default": Object { + "http": Array [ + "https://eth.merkle.io", + ], + }, + }, + "serializers": undefined, + }, + "vmType": "evm", "wsRpcUrl": "", }, - ObjectContaining { + Object { + "currency": Object { + "address": "0x0000000000000000000000000000000000000000", + "decimals": 18, + "name": "Ether", + "symbol": "ETH", + }, "depositEnabled": true, "displayName": "Base", "explorerUrl": "https://basescan.org", "httpRpcUrl": "https://mainnet.base.org", + "icon": Object { + "dark": "https://assets.relay.link/icons/8453/dark.png", + "light": "https://assets.relay.link/icons/8453/light.png", + "squaredDark": "https://assets.relay.link/icons/square/8453/dark.png", + "squaredLight": "https://assets.relay.link/icons/square/8453/light.png", + }, "id": 8453, "name": "Base", + "viemChain": Object { + "blockExplorers": Object { + "default": Object { + "apiUrl": "https://api.basescan.org/api", + "name": "Basescan", + "url": "https://basescan.org", + }, + }, + "contracts": Object { + "disputeGameFactory": Object { + "1": Object { + "address": "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e", + }, + }, + "gasPriceOracle": Object { + "address": "0x420000000000000000000000000000000000000F", + }, + "l1Block": Object { + "address": "0x42
Unit tests and linting
Process completed with exit code 1.
Unit tests and linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636