Files
bridge/opnet-watcher/plugins/tezos.go
T
zeekay 118e977946 feat: universal Teleport bridge with 35+ chain plugins
- opnet-watcher: universal binary with plugin architecture
  - 3 functional plugins (OP_NET, Solana, TON)
  - Generic EVMPlugin handles all EVM chains (Ethereum, Base, Arbitrum, etc.)
  - 17 non-EVM chain stubs (Sui, NEAR, Cosmos, XRPL, ICP, etc.)
  - Threshold signing via luxfi/crypto (CGGMP21/FROST)
  - Separate txSigner hot wallet for on-chain submission
  - Multi-tenant API with hostname-based routing
  - Confirmation depth, backing sanity checks, EIP-155 local signing
- manifests: 32 chain configs + 5 tenant configs (lux, zoo, hanzo, pars, spc)
- k8s: fix chain IDs 1330663759→4294967299, ClusterIP services, KMS secrets
- CI: conformance tests gate production deployment
2026-04-06 23:03:19 -07:00

42 lines
1.1 KiB
Go

// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package plugins
import (
"context"
"fmt"
"math/big"
"net/http"
"time"
)
const TezosChainID uint64 = 4294967500
// TezosPlugin polls a Tezos RPC node for deposit operations from the bridge
// Michelson contract. Tezos uses ed25519 signing.
type TezosPlugin struct {
rpcURL string
bridgeAddr string // KT1... contract address
client *http.Client
}
func NewTezosPlugin(rpcURL, bridgeAddr string) *TezosPlugin {
return &TezosPlugin{
rpcURL: rpcURL,
bridgeAddr: bridgeAddr,
client: &http.Client{Timeout: 15 * time.Second},
}
}
func (t *TezosPlugin) Name() string { return "tezos" }
func (t *TezosPlugin) ChainID() uint64 { return TezosChainID }
func (t *TezosPlugin) PollDeposits(ctx context.Context, fromLevel uint64) ([]DepositEvent, uint64, error) {
return nil, fromLevel, fmt.Errorf("tezos: not yet implemented")
}
func (t *TezosPlugin) QueryBacking(ctx context.Context) (*big.Int, error) {
return nil, fmt.Errorf("tezos: not yet implemented")
}