Remove ethereum and base token bridge in contract-watcher (#1327)
* Remove ethereum and base token bridge in contract-watcher Co-authored-by: ftocal <fert1335@gmail.com> * Remove moonbeam and oasis token bridge in contract-watcher Co-authored-by: ftocal <fert1335@gmail.com> * Update contract-watcher memory resource production-mainnet Co-authored-by: ftocal <fert1335@gmail.com> * Remove avalanche and fantom token bridge in contract-watcher Co-authored-by: ftocal <fert1335@gmail.com> * Remove polygon, bsc and celo token bridge contract-watcher Co-authored-by: ftocal <fert1335@gmail.com> --------- Co-authored-by: ftocal <fert1335@gmail.com>
This commit is contained in:
parent
688a0d0f71
commit
980316bb2d
|
@ -81,8 +81,6 @@ func newWatcherForMainnet(cfg *config.BackfillerConfiguration, repo *storage.Rep
|
|||
watcher = builder.CreateAnkrEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.AVALANCHE_MAINNET, repo, metrics, logger)
|
||||
case config.TERRA_MAINNET.ChainID.String():
|
||||
watcher = builder.CreateTerraWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.TERRA_MAINNET, logger, repo, metrics)
|
||||
case config.OASIS_MAINNET.ChainID.String():
|
||||
watcher = builder.CreateEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.OASIS_MAINNET, logger, repo, metrics)
|
||||
case config.MOONBEAM_MAINNET.ChainID.String():
|
||||
watcher = builder.CreateEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.MOONBEAM_MAINNET, logger, repo, metrics)
|
||||
case config.CELO_MAINNET.ChainID.String():
|
||||
|
@ -112,8 +110,6 @@ func newWatcherForTestnet(cfg *config.BackfillerConfiguration, repo *storage.Rep
|
|||
watcher = builder.CreateAnkrEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.FANTOM_TESTNET, repo, metrics, logger)
|
||||
case config.AVALANCHE_TESTNET.ChainID.String():
|
||||
watcher = builder.CreateAnkrEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.AVALANCHE_TESTNET, repo, metrics, logger)
|
||||
case config.OASIS_TESTNET.ChainID.String():
|
||||
watcher = builder.CreateEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.OASIS_TESTNET, logger, repo, metrics)
|
||||
case config.MOONBEAM_TESTNET.ChainID.String():
|
||||
watcher = builder.CreateEvmWatcher(cfg.RateLimitPerSecond, cfg.ChainUrl, config.MOONBEAM_TESTNET, logger, repo, metrics)
|
||||
case config.CELO_TESTNET.ChainID.String():
|
||||
|
|
|
@ -41,36 +41,32 @@ func handleExit() {
|
|||
}
|
||||
|
||||
type watchersConfig struct {
|
||||
ankr []config.WatcherBlockchainAddresses
|
||||
arbitrum *config.WatcherBlockchainAddresses
|
||||
avalanche *config.WatcherBlockchainAddresses
|
||||
base *config.WatcherBlockchainAddresses
|
||||
baseSepolia *config.WatcherBlockchainAddresses
|
||||
ethereum *config.WatcherBlockchainAddresses
|
||||
ethereumSepolia *config.WatcherBlockchainAddresses
|
||||
celo *config.WatcherBlockchainAddresses
|
||||
moonbeam *config.WatcherBlockchainAddresses
|
||||
oasis *config.WatcherBlockchainAddresses
|
||||
optimism *config.WatcherBlockchainAddresses
|
||||
polygon *config.WatcherBlockchainAddresses
|
||||
terra *config.WatcherBlockchain
|
||||
rateLimit rateLimitConfig
|
||||
ankr []config.WatcherBlockchainAddresses
|
||||
arbitrum *config.WatcherBlockchainAddresses
|
||||
avalanche *config.WatcherBlockchainAddresses
|
||||
base *config.WatcherBlockchainAddresses
|
||||
baseSepolia *config.WatcherBlockchainAddresses
|
||||
ethereum *config.WatcherBlockchainAddresses
|
||||
celo *config.WatcherBlockchainAddresses
|
||||
moonbeam *config.WatcherBlockchainAddresses
|
||||
optimism *config.WatcherBlockchainAddresses
|
||||
polygon *config.WatcherBlockchainAddresses
|
||||
terra *config.WatcherBlockchain
|
||||
rateLimit rateLimitConfig
|
||||
}
|
||||
|
||||
type rateLimitConfig struct {
|
||||
ankr int
|
||||
arbitrum int
|
||||
avalanche int
|
||||
base int
|
||||
baseSepolia int
|
||||
celo int
|
||||
ethereum int
|
||||
ethereumSepolia int
|
||||
moonbeam int
|
||||
oasis int
|
||||
optimism int
|
||||
polygon int
|
||||
terra int
|
||||
ankr int
|
||||
arbitrum int
|
||||
avalanche int
|
||||
base int
|
||||
baseSepolia int
|
||||
celo int
|
||||
ethereum int
|
||||
moonbeam int
|
||||
optimism int
|
||||
polygon int
|
||||
terra int
|
||||
}
|
||||
|
||||
func Run() {
|
||||
|
@ -155,7 +151,7 @@ func Run() {
|
|||
logger.Info("Finished wormhole-explorer-contract-watcher")
|
||||
}
|
||||
|
||||
func newHealthChecks(ctx context.Context, db *mongo.Database) ([]health.Check, error) {
|
||||
func newHealthChecks(_ context.Context, db *mongo.Database) ([]health.Check, error) {
|
||||
return []health.Check{health.Mongo(db)}, nil
|
||||
}
|
||||
|
||||
|
@ -187,12 +183,6 @@ func newWatchers(config *config.ServiceConfiguration, testnetConfig *config.Test
|
|||
result = append(result, ethereumWatcher)
|
||||
}
|
||||
|
||||
// add ethereum sepolia watcher
|
||||
if watchers.ethereumSepolia != nil {
|
||||
ethereumSepoliaWatcher := builder.CreateEvmWatcher(watchers.rateLimit.ethereumSepolia, testnetConfig.EthereumSepoliaBaseUrl, *watchers.ethereumSepolia, logger, repo, metrics)
|
||||
result = append(result, ethereumSepoliaWatcher)
|
||||
}
|
||||
|
||||
// add avalanche watcher
|
||||
if watchers.avalanche != nil {
|
||||
avalancheWatcher := builder.CreateEvmWatcher(watchers.rateLimit.avalanche, config.AvalancheUrl, *watchers.avalanche, logger, repo, metrics)
|
||||
|
@ -205,12 +195,6 @@ func newWatchers(config *config.ServiceConfiguration, testnetConfig *config.Test
|
|||
result = append(result, terraWatcher)
|
||||
}
|
||||
|
||||
// add oasis watcher
|
||||
if watchers.oasis != nil {
|
||||
oasisWatcher := builder.CreateEvmWatcher(watchers.rateLimit.oasis, config.OasisUrl, *watchers.oasis, logger, repo, metrics)
|
||||
result = append(result, oasisWatcher)
|
||||
}
|
||||
|
||||
// add moonbeam watcher
|
||||
if watchers.moonbeam != nil {
|
||||
moonbeamWatcher := builder.CreateEvmWatcher(watchers.rateLimit.moonbeam, config.MoonbeamUrl, *watchers.moonbeam, logger, repo, metrics)
|
||||
|
@ -268,7 +252,6 @@ func newWatchersForMainnet(cfg *config.ServiceConfiguration) *watchersConfig {
|
|||
celo: &config.CELO_MAINNET,
|
||||
ethereum: &config.ETHEREUM_MAINNET,
|
||||
moonbeam: &config.MOONBEAM_MAINNET,
|
||||
oasis: &config.OASIS_MAINNET,
|
||||
optimism: &config.OPTIMISM_MAINNET,
|
||||
polygon: &config.POLYGON_MAINNET,
|
||||
terra: &config.TERRA_MAINNET,
|
||||
|
@ -281,7 +264,6 @@ func newWatchersForMainnet(cfg *config.ServiceConfiguration) *watchersConfig {
|
|||
celo: cfg.CeloRequestsPerSecond,
|
||||
ethereum: cfg.EthereumRequestsPerSecond,
|
||||
moonbeam: cfg.MoonbeamRequestsPerSecond,
|
||||
oasis: cfg.OasisRequestsPerSecond,
|
||||
optimism: cfg.OptimismRequestsPerSecond,
|
||||
polygon: cfg.PolygonRequestsPerSecond,
|
||||
terra: cfg.TerraRequestsPerSecond,
|
||||
|
@ -295,31 +277,27 @@ func newWatchersForTestnet(cfg *config.ServiceConfiguration, testnetCfg *config.
|
|||
config.BSC_TESTNET,
|
||||
config.FANTOM_TESTNET,
|
||||
},
|
||||
arbitrum: &config.ARBITRUM_TESTNET,
|
||||
avalanche: &config.AVALANCHE_TESTNET,
|
||||
celo: &config.CELO_TESTNET,
|
||||
base: &config.BASE_TESTNET,
|
||||
baseSepolia: &config.BASE_SEPOLIA_TESTNET,
|
||||
ethereum: &config.ETHEREUM_TESTNET,
|
||||
ethereumSepolia: &config.ETHEREUM_SEPOLIA_TESTNET,
|
||||
moonbeam: &config.MOONBEAM_TESTNET,
|
||||
oasis: &config.OASIS_TESTNET,
|
||||
optimism: &config.OPTIMISM_TESTNET,
|
||||
polygon: &config.POLYGON_TESTNET,
|
||||
arbitrum: &config.ARBITRUM_TESTNET,
|
||||
avalanche: &config.AVALANCHE_TESTNET,
|
||||
celo: &config.CELO_TESTNET,
|
||||
base: &config.BASE_TESTNET,
|
||||
baseSepolia: &config.BASE_SEPOLIA_TESTNET,
|
||||
ethereum: &config.ETHEREUM_TESTNET,
|
||||
moonbeam: &config.MOONBEAM_TESTNET,
|
||||
optimism: &config.OPTIMISM_TESTNET,
|
||||
polygon: &config.POLYGON_TESTNET,
|
||||
rateLimit: rateLimitConfig{
|
||||
ankr: cfg.AnkrRequestsPerSecond,
|
||||
avalanche: cfg.AvalancheRequestsPerSecond,
|
||||
arbitrum: cfg.ArbitrumRequestsPerSecond,
|
||||
base: cfg.BaseRequestsPerSecond,
|
||||
baseSepolia: testnetCfg.BaseSepoliaRequestsPerMinute,
|
||||
celo: cfg.CeloRequestsPerSecond,
|
||||
ethereum: cfg.EthereumRequestsPerSecond,
|
||||
ethereumSepolia: testnetCfg.EthereumSepoliaRequestsPerMinute,
|
||||
moonbeam: cfg.MoonbeamRequestsPerSecond,
|
||||
oasis: cfg.OasisRequestsPerSecond,
|
||||
optimism: cfg.OptimismRequestsPerSecond,
|
||||
polygon: cfg.PolygonRequestsPerSecond,
|
||||
terra: cfg.TerraRequestsPerSecond,
|
||||
ankr: cfg.AnkrRequestsPerSecond,
|
||||
avalanche: cfg.AvalancheRequestsPerSecond,
|
||||
arbitrum: cfg.ArbitrumRequestsPerSecond,
|
||||
base: cfg.BaseRequestsPerSecond,
|
||||
baseSepolia: testnetCfg.BaseSepoliaRequestsPerMinute,
|
||||
celo: cfg.CeloRequestsPerSecond,
|
||||
ethereum: cfg.EthereumRequestsPerSecond,
|
||||
moonbeam: cfg.MoonbeamRequestsPerSecond,
|
||||
optimism: cfg.OptimismRequestsPerSecond,
|
||||
polygon: cfg.PolygonRequestsPerSecond,
|
||||
terra: cfg.TerraRequestsPerSecond,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,24 +13,6 @@ var ETHEREUM_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 16820790,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x3ee18B2214AFF97000D974cf647E7C347E8fa585"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -47,24 +29,6 @@ var POLYGON_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 40307020,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -87,24 +51,6 @@ var BSC_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 26436320,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -121,24 +67,6 @@ var FANTOM_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 57525624,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -164,24 +92,6 @@ var AVALANCHE_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 8237181,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -191,34 +101,6 @@ var AVALANCHE_MAINNET = WatcherBlockchainAddresses{
|
|||
},
|
||||
}
|
||||
|
||||
var OASIS_MAINNET = WatcherBlockchainAddresses{
|
||||
ChainID: vaa.ChainIDOasis,
|
||||
Name: "oasis",
|
||||
SizeBlocks: 50,
|
||||
WaitSeconds: 10,
|
||||
InitialBlock: 1762,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x5848C791e09901b40A9Ef749f2a6735b418d7564"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var MOONBEAM_MAINNET = WatcherBlockchainAddresses{
|
||||
ChainID: vaa.ChainIDMoonbeam,
|
||||
Name: "moonbeam",
|
||||
|
@ -226,24 +108,6 @@ var MOONBEAM_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 1853330,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0xb1731c586ca89a23809861c6103f0b96b3f57d92"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -260,24 +124,6 @@ var CELO_MAINNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 12947239,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -327,22 +173,6 @@ var BASE_MAINNET = WatcherBlockchainAddresses{
|
|||
InitialBlock: 1_422_314,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
Name: MetehodCompleteTransferWithRelay,
|
||||
|
|
|
@ -13,24 +13,6 @@ var ETHEREUM_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 8660321,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0xF890982f9310df57d00f659cf4fd87e65adEd8d7"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -40,34 +22,6 @@ var ETHEREUM_TESTNET = WatcherBlockchainAddresses{
|
|||
},
|
||||
}
|
||||
|
||||
var ETHEREUM_SEPOLIA_TESTNET = WatcherBlockchainAddresses{
|
||||
ChainID: vaa.ChainIDSepolia,
|
||||
Name: "eth_sepolia",
|
||||
SizeBlocks: 100,
|
||||
WaitSeconds: 10,
|
||||
InitialBlock: 3_174_984,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0xDB5492265f6038831E89f495670FF909aDe94bd9"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var POLYGON_TESTNET = WatcherBlockchainAddresses{
|
||||
ChainID: vaa.ChainIDPolygon,
|
||||
Name: "polygon_mumbai",
|
||||
|
@ -75,24 +29,6 @@ var POLYGON_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 33151522,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x377D55a7928c046E18eEbb61977e714d2a76472a"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -115,24 +51,6 @@ var BSC_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 28071327,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x9dcF9D205C9De35334D646BeE44b2D2859712A09"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -149,24 +67,6 @@ var FANTOM_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 14524466,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -183,24 +83,6 @@ var AVALANCHE_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 11014526,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x61E44E506Ca5659E6c0bba9b678586fA2d729756"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -210,34 +92,6 @@ var AVALANCHE_TESTNET = WatcherBlockchainAddresses{
|
|||
},
|
||||
}
|
||||
|
||||
var OASIS_TESTNET = WatcherBlockchainAddresses{
|
||||
ChainID: vaa.ChainIDOasis,
|
||||
Name: "oasis",
|
||||
SizeBlocks: 50,
|
||||
WaitSeconds: 10,
|
||||
InitialBlock: 130400,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x88d8004A9BdbfD9D28090A02010C19897a29605c"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var MOONBEAM_TESTNET = WatcherBlockchainAddresses{
|
||||
ChainID: vaa.ChainIDMoonbeam,
|
||||
Name: "moonbeam",
|
||||
|
@ -245,24 +99,6 @@ var MOONBEAM_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 2097310,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -279,24 +115,6 @@ var CELO_TESTNET = WatcherBlockchainAddresses{
|
|||
WaitSeconds: 10,
|
||||
InitialBlock: 10625129,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
},
|
||||
strings.ToLower("0x9563a59C15842a6f322B10f69d1dD88b41f2E97B"): {
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
|
@ -346,22 +164,6 @@ var BASE_TESTNET = WatcherBlockchainAddresses{
|
|||
InitialBlock: 902_385,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
Name: MetehodCompleteTransferWithRelay,
|
||||
|
@ -378,22 +180,6 @@ var BASE_SEPOLIA_TESTNET = WatcherBlockchainAddresses{
|
|||
InitialBlock: 3_415_420,
|
||||
MethodsByAddress: map[string][]BlockchainMethod{
|
||||
strings.ToLower("0x86F55A04690fd7815A3D802bD587e83eA888B239"): {
|
||||
{
|
||||
ID: MethodIDCompleteTransfer,
|
||||
Name: MethodCompleteTransfer,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCompleteAndUnwrapETH,
|
||||
Name: MethodCompleteAndUnwrapETH,
|
||||
},
|
||||
{
|
||||
ID: MethodIDCreateWrapped,
|
||||
Name: MethodCreateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MethodIDUpdateWrapped,
|
||||
Name: MethodUpdateWrapped,
|
||||
},
|
||||
{
|
||||
ID: MetehodIDCompleteTransferWithRelay,
|
||||
Name: MetehodCompleteTransferWithRelay,
|
||||
|
|
|
@ -3,9 +3,9 @@ NAMESPACE=wormscan
|
|||
NAME=wormscan-contract-watcher
|
||||
REPLICAS=1
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_MEMORY=512Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_MEMORY=256Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
P2P_NETWORK=mainnet
|
||||
PPROF_ENABLED=false
|
||||
|
|
Loading…
Reference in New Issue