// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: bitsong/smartaccount/v1beta1/params.proto

package types

import (
	fmt "fmt"
	_ "github.com/cosmos/gogoproto/gogoproto"
	proto "github.com/cosmos/gogoproto/proto"
	io "io"
	math "math"
	math_bits "math/bits"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

// Params defines the parameters for the module.
type Params struct {
	// MaximumUnauthenticatedGas defines the maximum amount of gas that can be
	// used to authenticate a transaction in ante handler without having fee payer
	// authenticated.
	MaximumUnauthenticatedGas uint64 `protobuf:"varint,1,opt,name=maximum_unauthenticated_gas,json=maximumUnauthenticatedGas,proto3" json:"maximum_unauthenticated_gas,omitempty" yaml:"maximum_unauthenticated_gas"`
	// IsSmartAccountActive defines the state of the authenticator.
	// If set to false, the authenticator module will not be used
	// and the classic cosmos sdk authentication will be used instead.
	IsSmartAccountActive bool `protobuf:"varint,2,opt,name=is_smart_account_active,json=isSmartAccountActive,proto3" json:"is_smart_account_active,omitempty" yaml:"is_smart_account_active"`
	// CircuitBreakerControllers defines list of addresses that are allowed to
	// set is_smart_account_active without going through governance.
	CircuitBreakerControllers []string `protobuf:"bytes,3,rep,name=circuit_breaker_controllers,json=circuitBreakerControllers,proto3" json:"circuit_breaker_controllers,omitempty" yaml:"circuit_breaker_controllers"`
}

func (m *Params) Reset()         { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage()    {}
func (*Params) Descriptor() ([]byte, []int) {
	return fileDescriptor_9037366a5ffa9305, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_Params.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *Params) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
	return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
	xxx_messageInfo_Params.DiscardUnknown(m)
}

var xxx_messageInfo_Params proto.InternalMessageInfo

func (m *Params) GetMaximumUnauthenticatedGas() uint64 {
	if m != nil {
		return m.MaximumUnauthenticatedGas
	}
	return 0
}

func (m *Params) GetIsSmartAccountActive() bool {
	if m != nil {
		return m.IsSmartAccountActive
	}
	return false
}

func (m *Params) GetCircuitBreakerControllers() []string {
	if m != nil {
		return m.CircuitBreakerControllers
	}
	return nil
}

func init() {
	proto.RegisterType((*Params)(nil), "bitsong.smartaccount.v1beta1.Params")
}

func init() {
	proto.RegisterFile("bitsong/smartaccount/v1beta1/params.proto", fileDescriptor_9037366a5ffa9305)
}

var fileDescriptor_9037366a5ffa9305 = []byte{
	// 328 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xbd, 0x4e, 0x32, 0x41,
	0x14, 0x86, 0x59, 0xf8, 0x42, 0x3e, 0xb7, 0x24, 0x24, 0x82, 0x9a, 0x81, 0x4c, 0x61, 0xb0, 0x60,
	0x37, 0xc4, 0x4e, 0x2b, 0xd6, 0xc2, 0xd6, 0x60, 0x28, 0xb4, 0x99, 0x9c, 0x1d, 0x87, 0x65, 0xe2,
	0xce, 0x0e, 0x99, 0x39, 0x4b, 0xe0, 0x2e, 0xbc, 0x17, 0x6f, 0xc2, 0x92, 0xd2, 0x8a, 0x18, 0xb8,
	0x03, 0xae, 0xc0, 0xec, 0x0f, 0x11, 0x0b, 0xe9, 0x26, 0xe7, 0x79, 0x66, 0xe6, 0xbc, 0x79, 0xdd,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1b, 0xe2, 0x7c, 0x6d, 0x88, 0xf3, 0xb6, 0x25, 0x95, 0xd5,
	0x96, 0x54, 0x3e, 0xb7, 0xa4, 0xf2, 0x7c, 0x1b, 0x49, 0x9c, 0xa6, 0xa1, 0xc7, 0xb5, 0xf2, 0xcb,
	0x3a, 0xf4, 0x64, 0x22, 0xb9, 0x84, 0xd8, 0x8f, 0x74, 0x7f, 0x5f, 0xe6, 0xa2, 0xa8, 0xb3, 0xbf,
	0xef, 0x13, 0x97, 0x33, 0x61, 0xc3, 0x7a, 0xde, 0xc9, 0xf5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff,
	0x7f, 0xa4, 0xc1, 0xf1, 0xf4, 0x01, 0x00, 0x00,
}

func (m *Params) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *Params) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.CircuitBreakerControllers) > 0 {
		for iNdEx := len(m.CircuitBreakerControllers) - 1; iNdEx >= 0; iNdEx-- {
			i -= len(m.CircuitBreakerControllers[iNdEx])
			copy(dAtA[i:], m.CircuitBreakerControllers[iNdEx])
			i = encodeVarintParams(dAtA, i, uint64(len(m.CircuitBreakerControllers[iNdEx])))
			i--
			dAtA[i] = 0x1a
		}
	}
	if m.IsSmartAccountActive {
		i--
		if m.IsSmartAccountActive {
			dAtA[i] = 1
		} else {
			dAtA[i] = 0
		}
		i--
		dAtA[i] = 0x10
	}
	if m.MaximumUnauthenticatedGas != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.MaximumUnauthenticatedGas))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
	offset -= sovParams(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *Params) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.MaximumUnauthenticatedGas != 0 {
		n += 1 + sovParams(uint64(m.MaximumUnauthenticatedGas))
	}
	if m.IsSmartAccountActive {
		n += 2
	}
	if len(m.CircuitBreakerControllers) > 0 {
		for _, s := range m.CircuitBreakerControllers {
			l = len(s)
			n += 1 + l + sovParams(uint64(l))
		}
	}
	return n
}

func sovParams(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
	return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowParams
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Params: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field MaximumUnauthenticatedGas", wireType)
			}
			m.MaximumUnauthenticatedGas = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.MaximumUnauthenticatedGas |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field IsSmartAccountActive", wireType)
			}
			var v int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				v |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			m.IsSmartAccountActive = bool(v != 0)
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerControllers", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthParams
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthParams
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.CircuitBreakerControllers = append(m.CircuitBreakerControllers, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipParams(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthParams
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func skipParams(dAtA []byte) (n int, err error) {
	l := len(dAtA)
	iNdEx := 0
	depth := 0
	for iNdEx < l {
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return 0, ErrIntOverflowParams
			}
			if iNdEx >= l {
				return 0, io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= (uint64(b) & 0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		wireType := int(wire & 0x7)
		switch wireType {
		case 0:
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowParams
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				iNdEx++
				if dAtA[iNdEx-1] < 0x80 {
					break
				}
			}
		case 1:
			iNdEx += 8
		case 2:
			var length int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowParams
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				length |= (int(b) & 0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if length < 0 {
				return 0, ErrInvalidLengthParams
			}
			iNdEx += length
		case 3:
			depth++
		case 4:
			if depth == 0 {
				return 0, ErrUnexpectedEndOfGroupParams
			}
			depth--
		case 5:
			iNdEx += 4
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
		if iNdEx < 0 {
			return 0, ErrInvalidLengthParams
		}
		if depth == 0 {
			return iNdEx, nil
		}
	}
	return 0, io.ErrUnexpectedEOF
}

var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
