Skip to content

Commit

Permalink
Remove ethereum related code, tests and xpub things
Browse files Browse the repository at this point in the history
  • Loading branch information
National Bitcoiner committed Jun 21, 2020
1 parent 435ef08 commit a36666d
Show file tree
Hide file tree
Showing 220 changed files with 54 additions and 27,210 deletions.
16 changes: 1 addition & 15 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ type Vout struct {
// TokenType specifies type of token
type TokenType string

// ERC20TokenType is Ethereum ERC20 token
const ERC20TokenType TokenType = "ERC20"

// XPUBAddressTokenType is address derived from xpub
const XPUBAddressTokenType TokenType = "XPUBAddress"

Expand Down Expand Up @@ -168,16 +165,6 @@ type TokenTransfer struct {
Value *Amount `json:"value"`
}

// EthereumSpecific contains ethereum specific transaction data
type EthereumSpecific struct {
Status int `json:"status"` // 1 OK, 0 Fail, -1 pending
Nonce uint64 `json:"nonce"`
GasLimit *big.Int `json:"gasLimit"`
GasUsed *big.Int `json:"gasUsed"`
GasPrice *Amount `json:"gasPrice"`
Data string `json:"data,omitempty"`
}

// Tx holds information about a transaction
type Tx struct {
Txid string `json:"txid"`
Expand All @@ -198,7 +185,6 @@ type Tx struct {
CoinSpecificData interface{} `json:"-"`
CoinSpecificJSON json.RawMessage `json:"-"`
TokenTransfers []TokenTransfer `json:"tokenTransfers,omitempty"`
EthereumSpecific *EthereumSpecific `json:"ethereumSpecific,omitempty"`
}

// FeeStats contains detailed block fee statistics
Expand Down Expand Up @@ -264,9 +250,9 @@ type Address struct {
Nonce string `json:"nonce,omitempty"`
UsedTokens int `json:"usedTokens,omitempty"`
Tokens []Token `json:"tokens,omitempty"`
Erc20Contract *bchain.Erc20Contract `json:"erc20Contract,omitempty"`
// helpers for explorer
Filter string `json:"-"`

XPubAddresses map[string]struct{} `json:"-"`
}

Expand Down
Loading

0 comments on commit a36666d

Please sign in to comment.