fix address filter
parent
c9d434cf31
commit
47c69cd9be
|
@ -308,9 +308,6 @@ func (p *BaseParser) EthereumTypeGetErc20FromTx(tx *Tx) ([]Erc20Transfer, error)
|
|||
func (p *BaseParser) IsSyscoinTx(nVersion int32) bool {
|
||||
return false
|
||||
}
|
||||
func (p *BaseParser) IsTxIndexAsset(txIndex int32) bool {
|
||||
return false
|
||||
}
|
||||
func (p *BaseParser) IsSyscoinMintTx(nVersion int32) bool {
|
||||
return false
|
||||
}
|
||||
|
|
|
@ -224,10 +224,6 @@ func (p *SyscoinParser) IsSyscoinTx(nVersion int32) bool {
|
|||
return p.IsAssetTx(nVersion) || p.IsAssetSendTx(nVersion) || p.IsAssetAllocationTx(nVersion) || p.IsSyscoinMintTx(nVersion)
|
||||
}
|
||||
|
||||
func (p *SyscoinParser) IsTxIndexAsset(txIndex int32) bool {
|
||||
return txIndex > (SYSCOIN_TX_VERSION_ALLOCATION_SEND*10)
|
||||
}
|
||||
|
||||
|
||||
// TryGetOPReturn tries to process OP_RETURN script and return data
|
||||
func (p *SyscoinParser) TryGetOPReturn(script []byte) []byte {
|
||||
|
|
|
@ -746,7 +746,6 @@ type BlockChainParser interface {
|
|||
EthereumTypeGetErc20FromTx(tx *Tx) ([]Erc20Transfer, error)
|
||||
// SyscoinType specific
|
||||
IsSyscoinTx(nVersion int32) bool
|
||||
IsTxIndexAsset(txIndex int32) bool
|
||||
IsSyscoinMintTx(nVersion int32) bool
|
||||
IsAssetTx(nVersion int32) bool
|
||||
IsAssetAllocationTx(nVersion int32) bool
|
||||
|
|
|
@ -130,7 +130,10 @@
|
|||
<option {{if eq $addr.Filter "inputs" -}} selected{{end}} value="inputs">Address on input side</option>
|
||||
<option {{if eq $addr.Filter "outputs" -}} selected{{end}} value="outputs">Address on output side</option>
|
||||
{{- if $addr.Tokens -}}
|
||||
<option {{if eq $addr.Filter "0" -}} selected{{end}} value="0">Non-token</option>
|
||||
<option {{if eq $addr.Filter "token-only" -}} selected{{end}} value="token-only">Tokens only</option>
|
||||
<option {{if eq $addr.Filter "non-tokens" -}} selected{{end}} value="non-tokens">Non-token</option>
|
||||
<option {{if eq $addr.Filter "token-transfers" -}} selected{{end}} value="token-transfers">Token transfers</option>
|
||||
<option {{if eq $addr.Filter "non-token-transfers" -}} selected{{end}} value="non-token-transfers">Token non-transfers</option>
|
||||
{{- range $t := $addr.Tokens -}}{{- if $t -}}
|
||||
<option {{if eq $addr.Filter $t.ContractIndex -}} selected{{end}} value="{{$t.ContractIndex}}">{{$t.Name}}</option>
|
||||
{{- end -}}{{- end -}}
|
||||
|
|
Loading…
Reference in New Issue