Skip to content

Commit

Permalink
Merge pull request #54 from allo-protocol/add-SEI
Browse files Browse the repository at this point in the history
Add SEI support and bump version to .59 and publish
  • Loading branch information
0xKurt authored Apr 10, 2024
2 parents d29ab0d + 276908b commit 8769531
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 8,937 deletions.
29 changes: 29 additions & 0 deletions dist/Client/customChains.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Chain } from "viem";
export declare const SeiIcon = "https://ipfs.io/ipfs/QmUvNaLwzNf1bHjqTMW1aBjRgd5FrsTDqjSnyypLwxv8x5";
/** Local development chain support */
export declare const devChain1: Chain;
export declare const seiDevnet: {
id: number;
name: string;
network: string;
iconUrl: string;
nativeCurrency: {
name: string;
symbol: string;
decimals: number;
};
rpcUrls: {
default: {
http: string[];
};
public: {
http: string[];
};
};
blockExplorers: {
default: {
name: string;
url: string;
};
};
};
50 changes: 49 additions & 1 deletion dist/Client/customChains.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
"use strict";
// import { Chain } from "viem";
Object.defineProperty(exports, "__esModule", { value: true });
exports.seiDevnet = exports.devChain1 = exports.SeiIcon = void 0;
// Add your custom chains here
exports.SeiIcon = "https://ipfs.io/ipfs/QmUvNaLwzNf1bHjqTMW1aBjRgd5FrsTDqjSnyypLwxv8x5";
/** Local development chain support */
exports.devChain1 = {
id: 1337,
name: "Development 1",
network: "dev1",
nativeCurrency: {
decimals: 18,
name: "Ether",
symbol: "ETH",
},
rpcUrls: {
default: { http: ["http://127.0.0.1:8545/"] },
public: { http: ["http://127.0.0.1:8545/"] },
},
blockExplorers: {
default: {
name: "dev1",
url: "",
},
},
};
exports.seiDevnet = {
id: 713715,
name: "SEI Devnet",
network: "SEI Devnet",
iconUrl: exports.SeiIcon,
nativeCurrency: {
name: "SEI",
symbol: "SEI",
decimals: 18,
},
rpcUrls: {
default: {
http: ["https://evm-rpc-arctic-1.sei-apis.com"],
},
public: {
http: ["https://evm-rpc-arctic-1.sei-apis.com"],
},
},
blockExplorers: {
default: {
name: "SEI Explorer",
url: "https://seistream.app/",
},
},
};
25 changes: 3 additions & 22 deletions dist/chains.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.supportedChains = void 0;
const chains_1 = require("viem/chains");
/** Local development chain support */
const devChain1 = {
id: 1337,
name: "Development 1",
network: "dev1",
nativeCurrency: {
decimals: 18,
name: "Ether",
symbol: "ETH",
},
rpcUrls: {
default: { http: ["http://127.0.0.1:8545/"] },
public: { http: ["http://127.0.0.1:8545/"] },
},
blockExplorers: {
default: {
name: "dev1",
url: "",
},
},
};
const customChains_1 = require("./Client/customChains");
/** Reference for supported chains: https://github.com/gitcoinco/grants-stack/issues/3107 */
exports.supportedChains = [
chains_1.mainnet,
Expand All @@ -39,5 +19,6 @@ exports.supportedChains = [
chains_1.polygonMumbai,
chains_1.avalancheFuji,
chains_1.fantomTestnet,
devChain1,
customChains_1.devChain1,
customChains_1.seiDevnet,
];
Loading

0 comments on commit 8769531

Please sign in to comment.