Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlchemyURLs = map[ChainID]string{ ChainIDs.EthereumGoerli: "https://eth-goerli.g.alchemy.com/v2/%s", ChainIDs.Ethereum: "https://eth-mainnet.g.alchemy.com/v2/%s", ChainIDs.OptimismGoerli: "https://opt-goerli.g.alchemy.com/v2/%s", ChainIDs.Optimism: "https://opt-mainnet.g.alchemy.com/v2/%s", ChainIDs.ArbitrumGoerli: "https://arb-goerli.g.alchemy.com/v2/%s", ChainIDs.Arbitrum: "https://arb-mainnet.g.alchemy.com/v2/%s", ChainIDs.PolygonMumbai: "https://polygon-mumbai.g.alchemy.com/v2/%s", ChainIDs.Polygon: "https://polygon-mainnet.g.alchemy.com/v2/%s", }
AlchemyURLs contains the URLs for supported chains for Alchemy.
View Source
var ChainIDs = struct { Ethereum ChainID Optimism ChainID Polygon ChainID Arbitrum ChainID EthereumGoerli ChainID OptimismGoerli ChainID ArbitrumGoerli ChainID PolygonMumbai ChainID Local ChainID }{ Ethereum: 1, Optimism: 10, Polygon: 137, Arbitrum: 42161, EthereumGoerli: 5, OptimismGoerli: 420, ArbitrumGoerli: 421613, PolygonMumbai: 80001, Local: 31337, }
ChainIDs is all chain ids supported by Tableland.
View Source
var Chains = map[ChainID]Chain{ ChainIDs.Ethereum: { Endpoint: mainnetURL, ID: ChainIDs.Ethereum, Name: "Ethereum", ContractAddr: common.HexToAddress("0x012969f7e3439a9B04025b5a049EB9BAD82A8C12"), }, ChainIDs.Optimism: { Endpoint: mainnetURL, ID: ChainIDs.Optimism, Name: "Optimism", ContractAddr: common.HexToAddress("0xfad44BF5B843dE943a09D4f3E84949A11d3aa3e6"), }, ChainIDs.Polygon: { Endpoint: mainnetURL, ID: ChainIDs.Polygon, Name: "Polygon", ContractAddr: common.HexToAddress("0x5c4e6A9e5C1e1BF445A062006faF19EA6c49aFeA"), }, ChainIDs.Arbitrum: { Endpoint: mainnetURL, ID: ChainIDs.Arbitrum, Name: "Arbitrum", ContractAddr: common.HexToAddress("0x9aBd75E8640871A5a20d3B4eE6330a04c962aFfd"), }, ChainIDs.EthereumGoerli: { Endpoint: testnetURL, ID: ChainIDs.EthereumGoerli, Name: "Ethereum Goerli", ContractAddr: common.HexToAddress("0xDA8EA22d092307874f30A1F277D1388dca0BA97a"), }, ChainIDs.OptimismGoerli: { Endpoint: testnetURL, ID: ChainIDs.OptimismGoerli, Name: "Optimism Goerli", ContractAddr: common.HexToAddress("0xC72E8a7Be04f2469f8C2dB3F1BdF69A7D516aBbA"), }, ChainIDs.ArbitrumGoerli: { Endpoint: testnetURL, ID: ChainIDs.ArbitrumGoerli, Name: "Arbitrum Goerli", ContractAddr: common.HexToAddress("0x033f69e8d119205089Ab15D340F5b797732f646b"), }, ChainIDs.PolygonMumbai: { Endpoint: testnetURL, ID: ChainIDs.PolygonMumbai, Name: "Polygon Mumbai", ContractAddr: common.HexToAddress("0x4b48841d4b32C4650E4ABc117A03FE8B51f38F68"), }, ChainIDs.Local: { Endpoint: localURL, ID: ChainIDs.Local, Name: "Local", ContractAddr: common.HexToAddress("0xe7f1725e7734ce288f8367e1bb143e90bb3f0512"), }, }
Chains is the connection info for all chains supported by Tableland.
View Source
var InfuraURLs = map[ChainID]string{ ChainIDs.EthereumGoerli: "https://goerli.infura.io/v3/%s", ChainIDs.Ethereum: "https://mainnet.infura.io/v3/%s", ChainIDs.OptimismGoerli: "https://optimism-goerli.infura.io/v3/%s", ChainIDs.Optimism: "https://optimism-mainnet.infura.io/v3/%s", ChainIDs.ArbitrumGoerli: "https://arbitrum-goerli.infura.io/v3/%s", ChainIDs.Arbitrum: "https://arbitrum-mainnet.infura.io/v3/%s", ChainIDs.PolygonMumbai: "https://polygon-mumbai.infura.io/v3/%s", ChainIDs.Polygon: "https://polygon-mainnet.infura.io/v3/%s", }
InfuraURLs contains the URLs for supported chains for Infura.
View Source
var LocalURLs = map[ChainID]string{ ChainIDs.Local: "http://localhost:8545", }
LocalURLs contains the URLs for a local network.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
Chain is a info about a network supported by Talbleland.
func (Chain) CanRelayWrites ¶
CanRelayWrites returns whether Tableland validators will relay write requests.
Click to show internal directories.
Click to hide internal directories.