Versions in this module Expand all Collapse all v0 v0.2.0 Oct 12, 2022 Changes in this version type Provider + func (p *Provider) BuildGasTransferTx(privateKey *ecdsa.PrivateKey, txData TransactionData, value *big.Int) (*types.Transaction, error) v0.1.0 Aug 9, 2022 Changes in this version + const KitabuChainId + func ChecksumToSarafuAddress(address string) (string, error) + func SarafuAddressToChecksum(address string) string + type ERC20TokenMetadata struct + Decimals big.Int + DemurrageAmount big.Int + DemurrageTimestamp big.Int + DemurrageToken bool + Name string + Owner common.Address + PeriodDuration big.Int + PeriodStart big.Int + SinkAddress common.Address + Symbol string + TaxLevel big.Int + TotalSupply big.Int + type Provider struct + EthClient *w3.Client + Signer types.Signer + func NewProvider(rpcEndpoint string) (*Provider, error) + func (p *Provider) BuildKitabuTx(privateKey *ecdsa.PrivateKey, txData TransactionData) (*types.Transaction, error) + func (p *Provider) Close() error + func (p *Provider) ERC20TokenInfo(ctx context.Context, tokenAddress common.Address) (ERC20TokenMetadata, error) + func (p *Provider) NetworkNonce(ctx context.Context, address common.Address) (uint64, error) + func (p *Provider) TokensBalance(ctx context.Context, ownerAddress common.Address, ...) ([]*big.Int, error) + type TransactionData struct + GasLimit uint64 + InputData []byte + Nonce uint64 + To common.Address