Skip to content

Commit

Permalink
feat: base mainnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
dtbuchholz committed Jul 10, 2024
1 parent 479414d commit c635e55
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tableland/cli",
"version": "7.2.0",
"version": "7.3.0",
"description": "Tableland command line tools",
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,9 +49,9 @@
"license": "MIT AND Apache-2.0",
"dependencies": {
"@tableland/node-helpers": "^1.0.0",
"@tableland/sdk": "^7.1.0",
"@tableland/sdk": "^7.2.0",
"@tableland/sqlparser": "^1.3.0",
"@tableland/studio-cli": "^0.2.1",
"@tableland/studio-cli": "^0.3.0-pre.0",
"cli-select-2": "^2.0.0",
"cosmiconfig": "^9.0.0",
"data-uri-to-buffer": "^6.0.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export function getLink(chain: helpers.ChainName, hash: string): string {
}
return `https://arbiscan.io/tx/${hash}`;
} else if (chain.includes("base")) {
return `https://sepolia.basescan.org/tx/${hash}`;
if (chain.includes("sepolia")) {
return `https://sepolia.basescan.org/tx/${hash}`;
}
return `https://basescan.org/tx/${hash}`;
} else if (chain.includes("filecoin")) {
if (chain.includes("calibration")) {
return `https://calibration.filfox.info/tx/${hash}`;
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tableland/sdk",
"version": "7.1.0",
"version": "7.2.0",
"description": "A database client and helpers for the Tableland network",
"repository": {
"type": "git",
Expand Down Expand Up @@ -82,7 +82,7 @@
"license": "MIT AND Apache-2.0",
"dependencies": {
"@async-generators/from-emitter": "^0.3.0",
"@tableland/evm": "^6.2.0",
"@tableland/evm": "^6.3.0",
"@tableland/sqlparser": "^1.3.0",
"ethers": "^6.12.1"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/test/chains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ describe("chains", function () {
const mainnets: ChainName[] = [
"mainnet",
"arbitrum",
"base",
"polygon",
"optimism",
];
Expand Down Expand Up @@ -89,6 +90,7 @@ describe("chains", function () {
strictEqual(getChainId("optimism"), 10);
strictEqual(getChainId("arbitrum"), 42161);
strictEqual(getChainId("arbitrum-nova"), 42170);
strictEqual(getChainId("base"), 8453);
strictEqual(getChainId("filecoin"), 314);
// Testnets
strictEqual(getChainId("sepolia"), 11155111);
Expand Down

0 comments on commit c635e55

Please sign in to comment.