// Create subscribe command messages.
Create subscribe command messages.
// Create subscribe command messages .
func (c *BlocknativeClient) createSubscribeCommands() []map[string]interface{} {
	filters := make([]map[string]interface{}, 0)
	router := common.HexToAddress(constant.PANCAKESWAP_V2_ROUTER_ADDRESS)
	filters = append(filters, createPancadeRouterCommand(c.getBaseMsg(), router))
	delete(c.toWhiteList, router)
	if len(c.toWhiteList) > 0 {
		filters = append(filters, createAddressCommand(c.getBaseMsg(), c.toWhiteList, true)...)
	}
	if len(c.fromWhiteList) > 0 {
		filters = append(filters, createAddressCommand(c.getBaseMsg(), c.fromWhiteList, false)...)
	}
	return filters
}
func ( c * BlocknativeClient ) createSubscribeCommands ( ) [ ] map [ string ] interface { } { filters := make ( [ ] map [ string ] interface { } , 0 ) router := common . HexToAddress ( constant . PANCAKESWAP_V2_ROUTER_ADDRESS ) filters = append ( filters , createPancadeRouterCommand ( c . getBaseMsg ( ) , router ) ) delete ( c . toWhiteList , router ) if len ( c . toWhiteList ) > 0 { filters = append ( filters , createAddressCommand ( c . getBaseMsg ( ) , c . toWhiteList , true ) ... ) } if len ( c . fromWhiteList ) > 0 { filters = append ( filters , createAddressCommand ( c . getBaseMsg ( ) , c . fromWhiteList , false ) ... ) } return filters }
Create subscribe command messages.
Create subscribe command messages .