func (zb *znsBuilder) SetNetwork(network string) ZnsBuilder {
	zb.network = network
	return zb
}
SetNetwork set Zilliqa blockchain network to communicate with ZNS registry.
package resolution
import (
	"encoding/json"
	"strings"
	"github.com/unstoppabledomains/resolution-go/namingservice"
	"github.com/Zilliqa/gozilliqa-sdk/provider"
	"github.com/unstoppabledomains/resolution-go/dnsrecords"
)
type Zns struct {
	provider    ZnsProvider
	znsRegistry string
}
type ZnsBuilder interface {
	SetProvider(provider ZnsProvider) ZnsBuilder
	SetNetwork(network string) ZnsBuilder
	Build() (*Zns, error)
}
type znsBuilder struct {
	provider ZnsProvider
	network  string
}
type ZnsProvider interface {
	GetSmartContractSubState(contractAddress string, params ...interface{}) (string, error)
}
type ZnsDomainState struct {
	Resolver string
	Owner    string
	Records  map[string]string
}
type registrySubState struct {
	Result map[string]map[string]struct {
		Arguments   []string
		Argtypes    []string
		Constructor string
	}
}
type resolverSubState struct {
	Result map[string]map[string]string
}
const znsDefaultProvider = "https://api.zilliqa.com"
const znsMainnetRegistry = "9611c53BE6d1b32058b2747bdeCECed7e1216793"
const znsTestnetRegistry = "b925add1d5eaf13f40efd43451bf97a22ab3d727"
const znsContractField = "records"
const znsZeroAddress = "0x0000000000000000000000000000000000000000"
func NewZnsBuilder() ZnsBuilder {
	return &znsBuilder{network: "mainnet"}
}
func (zb *znsBuilder) SetProvider(provider ZnsProvider) ZnsBuilder {
	zb.provider = provider
	return zb
}