query
stringlengths 7
3.85k
| document
stringlengths 11
430k
| metadata
dict | negatives
sequencelengths 0
101
| negative_scores
sequencelengths 0
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
ValidateOrderParameters is a free data retrieval call binding the contract method 0xca595b9a. Solidity: function validateOrderParameters_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata) constant returns(bool) | func (_WyvernExchange *WyvernExchangeSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {
return _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrderParameters(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrderParameters_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (o Order) Valid() error {\n\t_, ok := orderOptions[o]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: order\")\n\t\tlog.Printf(\"value: %s\", string(o))\n\t\treturn errors.New(\"invalid query param: order\")\n\t}\n\treturn nil\n}",
"func (p Params) Validate() error {\n\tif err := validateSpotMarketInstantListingFee(p.SpotMarketInstantListingFee); err != nil {\n\t\treturn err\n\t}\n\tif err := validateDerivativeMarketInstantListingFee(p.DerivativeMarketInstantListingFee); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateMakerFee(p.DefaultSpotMakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultSpotTakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultDerivativeMakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultDerivativeTakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateMarginRatio(p.DefaultInitialMarginRatio); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateMarginRatio(p.DefaultMaintenanceMarginRatio); err != nil {\n\t\treturn err\n\t}\n\tif err := validateFundingInterval(p.DefaultFundingInterval); err != nil {\n\t\treturn err\n\t}\n\tif err := validateFundingMultiple(p.FundingMultiple); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.RelayerFeeShareRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultHourlyFundingRateCap); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultHourlyInterestRate); err != nil {\n\t\treturn err\n\t}\n\tif err := validateDerivativeOrderSideCount(p.MaxDerivativeOrderSideCount); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func validateParams(method model.Method, params map[string]interface{}) (bool, error) {\n\tvar notSpecified []model.Parameter\n\tfor _, param := range method.Parameters {\n\t\tvalue := params[param.Name]\n\t\tif param.Required {\n\t\t\tif value != \"\" && value != nil{\n\t\t\t\tactualType := getTypeName(value)\n\t\t\t\tif actualType != param.Type {\n\t\t\t\t\tmsg := fmt.Sprintf(\"Wrong argument '%s' for method '%s'. Expected type '%s', but found '%s'\", param.Name, method.Name, param.Type, actualType)\n\t\t\t\t\tlog.Printf(\"[ERROR] \" + msg)\n\t\t\t\t\treturn false, errors.New(msg)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnotSpecified = append(notSpecified, param)\n\t\t\t}\n\t\t} else {\n\t\t\tif value != \"\" && value != nil {\n\t\t\t\t// optional parameters check\n\t\t\t\tactualType := getTypeName(value)\n\t\t\t\tif actualType != param.Type {\n\t\t\t\t\tmsg := fmt.Sprintf(\"Wrong argument '%s' for method '%s'. Expected type '%s', but found '%s'\", param.Name, method.Name, param.Type, actualType)\n\t\t\t\t\tlog.Printf(\"[ERROR] \" + msg)\n\t\t\t\t\treturn false, errors.New(msg)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(notSpecified) != 0 {\n\t\tvar paramStr string = \"\"\n\t\tfor _, param := range notSpecified {\n\t\t\tparamStr += fmt.Sprintf(\"'%s', \", param.Name)\n\t\t}\n\t\tmsg := fmt.Sprintf(\"Required parameters are not provided for '%s' method. Please specify: %s\", method.Name, paramStr[:len(paramStr) - 2])\n\t\tlog.Printf(\"[ERROR] \" + msg)\n\t\treturn false, errors.New(msg)\n\t}\n\treturn true, nil\n}",
"func (p Params) Validate() error {\n\tif err := validateCreateWhoisPrice(p.CreateWhoisPrice); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateUpdateWhoisPrice(p.UpdateWhoisPrice); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateDeleteWhoisPrice(p.DeleteWhoisPrice); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (p Params) Validate() error {\n\tif err := validateTokenCourse(p.TokenCourse); err != nil {\n\t\treturn err\n\t}\n\tif err := validateSubscriptionPrice(p.SubscriptionPrice); err != nil {\n\t\treturn err\n\t}\n\tif err := validateVPNGBPrice(p.VPNGBPrice); err != nil {\n\t\treturn err\n\t}\n\tif err := validateStorageGBPrice(p.StorageGBPrice); err != nil {\n\t\treturn err\n\t}\n\tif err := validateBaseVPNGb(p.BaseVPNGb); err != nil {\n\t\treturn err\n\t}\n\tif err := validateBaseStorageGb(p.BaseStorageGb); err != nil {\n\t\treturn err\n\t}\n\tif err := validateCourseChangeSigners(p.CourseChangeSigners); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (o *ListPaymentsParams) validateOrderBy(formats strfmt.Registry) error {\n\n\tif err := validate.Pattern(\"orderBy\", \"query\", (*o.OrderBy), `^[A-Za-z0-9_]+$`); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (o *GetV1LoansParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.Enum(\"order\", \"query\", *o.Order, []interface{}{\"amount\", \"end_at\", \"score\"}); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func ValidateOracleParams(i interface{}) error {\n\tparams, isOracleParams := i.(OracleParams)\n\tif !isOracleParams {\n\t\treturn fmt.Errorf(\"invalid parameters type: %s\", i)\n\t}\n\n\tif params.AskCount < params.MinCount {\n\t\treturn fmt.Errorf(\"invalid ask count: %d, min count: %d\", params.AskCount, params.MinCount)\n\t}\n\n\tif params.MinCount <= 0 {\n\t\treturn fmt.Errorf(\"invalid min count: %d\", params.MinCount)\n\t}\n\n\tif params.PrepareGas <= 0 {\n\t\treturn fmt.Errorf(\"invalid prepare gas: %d\", params.PrepareGas)\n\t}\n\n\tif params.ExecuteGas <= 0 {\n\t\treturn fmt.Errorf(\"invalid execute gas: %d\", params.ExecuteGas)\n\t}\n\n\terr := params.FeeAmount.Validate()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (m *MarketIfTouchedOrderRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePositionFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTimeInForce(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTradeClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTriggerCondition(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func validateServiceParameters(parameters []*Service_Parameter, data *types.Struct) error {\n\tvar errs xerrors.Errors\n\n\tfor _, p := range parameters {\n\t\tvar value *types.Value\n\t\tif data != nil && data.Fields != nil {\n\t\t\tvalue = data.Fields[p.Key]\n\t\t}\n\t\tif err := p.Validate(value); err != nil {\n\t\t\terrs = append(errs, err)\n\t\t}\n\t}\n\treturn errs.ErrorOrNil()\n}",
"func (p Params) Validate() error {\n\tif err := validateActiveParam(p.Active); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateDelegatorParams(p.DelegatorDistributionSchedules); err != nil {\n\t\treturn err\n\t}\n\n\treturn validateLPParams(p.LiquidityProviderSchedules)\n}",
"func (p Params) Validate() error {\n\tif err := validateActiveParam(p.Active); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateDelegatorParams(p.DelegatorDistributionSchedules); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateLPParams(p.LiquidityProviderSchedules); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateMoneyMarketParams(p.MoneyMarkets); err != nil {\n\t\treturn err\n\t}\n\n\treturn validateCheckLtvIndexCount(p.CheckLtvIndexCount)\n}",
"func assertOrderValid(t *testing.T, actual *Order, expected *Order) {\n\tassert.Equal(t, actual.Location.Lon, expected.Location.Lon)\n\tassert.Equal(t, actual.Location.Lat, expected.Location.Lat)\n\tassert.NotEmpty(t, expected.Id)\n\tassert.Equal(t, actual.Desc, expected.Desc)\n\tassert.NotEmpty(t, expected.TimeRequested)\n\tassert.Equal(t, actual.ConsumerId, expected.ConsumerId)\n\tassert.Equal(t, actual.BidPrice, expected.BidPrice)\n}",
"func ValidateParams(paramSpec []GeneratorParam, params map[string]interface{}) error {\n\tallErrs := []error{}\n\tfor ix := range paramSpec {\n\t\tif paramSpec[ix].Required {\n\t\t\tvalue, found := params[paramSpec[ix].Name]\n\t\t\tif !found || IsZero(value) {\n\t\t\t\tallErrs = append(allErrs, fmt.Errorf(\"Parameter: %s is required\", paramSpec[ix].Name))\n\t\t\t}\n\t\t}\n\t}\n\treturn utilerrors.NewAggregate(allErrs)\n}",
"func TestValidParams(t *testing.T) {\n\tvalidator, err := openrtb_ext.NewBidderParamsValidator(\"../../static/bidder-params\")\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to fetch the json-schemas. %v\", err)\n\t}\n\n\tfor _, validParam := range validParams {\n\t\tif err := validator.Validate(openrtb_ext.BidderSmartAdserver, json.RawMessage(validParam)); err != nil {\n\t\t\tt.Errorf(\"Schema rejected smartadserver params: %s \\n Error: %s\", validParam, err)\n\t\t}\n\t}\n}",
"func (o *GetOrderShipmentOKBodyBillingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (m *PTXServiceDTOShipSpecificationV3ShipRoute) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorityCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperators(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteDistance(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSrcUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTicketPriceDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateVessels(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateWeatherURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (p Params) Validate() error {\n\tif len(p.SendEnabled) > 0 {\n\t\treturn errors.New(\"use of send_enabled in params is no longer supported\")\n\t}\n\treturn validateIsBool(p.DefaultSendEnabled)\n}",
"func (cro CreateOrderRequest) Validate() (int, *Error) {\n\tif (cro.Origin == routes.Location{}) ||\n\t\t(cro.Destination == routes.Location{}) {\n\t\treturn ErrBadRequestParametersMissing(\"origin and destination are mandatory\")\n\t}\n\n\tif !cro.Origin.IsValid() || !cro.Destination.IsValid() {\n\t\treturn ErrBadRequestInvalidBody(\"Origin or destination not in proper format\")\n\t}\n\treturn 0, nil\n}",
"func (c customerio) verifyParams() {\n\tif c.from.Email == \"\" {\n\t\tpanic(\"gomailer: you must provide from\")\n\t}\n\tif len(c.toList) <= 0 {\n\t\tpanic(\"gomailer: you must provide at least one receipent\")\n\t}\n\tif len(c.toList)+len(c.ccList)+len(c.bccList) > customerioMaxReceipents {\n\t\tpanic(fmt.Sprintf(\"mailer: total number of receipents including to/cc/bcc can not be greater than %d for customerio\", customerioMaxReceipents))\n\t}\n\tif c.bodyText == \"\" && c.bodyHTML == \"\" {\n\t\tpanic(\"gomailer: you must provide a Text or HTML body\")\n\t}\n}",
"func (m *PaymentServiceItemParam) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateKey(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOrigin(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentServiceItemID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (p *Order) Validate(act coract.Action) (err error) {\n\n\tswitch act {\n\tcase coract.Save:\n\n\t\t// if len(p.Name) > 255 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"name\",\n\t\t// \t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t// \t\tdict.R(corterm.Name), 255)\n\t\t// }\n\n\t\t// if p.Price == 0 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"price\",\n\t\t// \t\tcorerr.VisRequired, dict.R(\"price\"))\n\t\t// }\n\n\t\tif len(p.Description) > 255 {\n\t\t\terr = limberr.AddInvalidParam(err, \"description\",\n\t\t\t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t\t\tdict.R(corterm.Description), 255)\n\t\t}\n\t}\n\n\treturn err\n}",
"func RPCParameterValidator(ctx context.Context,\n\treq interface{},\n\tinfo *grpc.UnaryServerInfo,\n\thandler grpc.UnaryHandler) (interface{}, error) {\n\tstart := time.Now()\n\tvar status interface{}\n\tvar err error = errors.New(\"Parameter validation failed\")\n\n\tlog.Println(\"ServerInterceptor:Parameter Validation - Preprocessing step(s) before calling the handler\", info.FullMethod, req)\n\n\tvalid, status := validateParameters(info.FullMethod, req) // TODO Check if the status can be used eliminating the boolean ? Faced problem with status == nil\n\n\tif valid {\n\t\tlog.Printf(\"ServerInerceptor:Parameter Validation - Invoking handler / Next interceptor - Method:%s\\n\", info.FullMethod)\n\t\tstatus, err = handler(ctx, req)\n\t\tlog.Printf(\"ServerInterceptor:Parameter Validation - Response from handler - Method:%s\\tDuration:%s\\tError:%v\\n\",\n\t\t\tinfo.FullMethod,\n\t\t\ttime.Since(start),\n\t\t\terr)\n\n\t\tlog.Println(\"ServerInterceptor:Parameter Validation - Postprocessing step(s) after calling the handler\")\n\t} else {\n\t\tlog.Print(\"ServerInterceptor:Parameter Validation failed with \", status)\n\t\terr = errors.New(\"Parameter validation failed\")\n\t}\n\n\treturn status, err\n}",
"func CheckParams(params Setting, passwordType string) bool {\n\n\tminLen := params.MinLength\n\tminSpecials := params.MinSpecialCharacters\n\tminDigits := params.MinDigits\n\tminLowers := params.MinLowercase\n\tminUppers := params.MinUppercase\n\n\tif minLen < AbsoluteMinLen ||\n\t\tminDigits < config[passwordType].MinDigits ||\n\t\tminLowers < config[passwordType].MinLowercase ||\n\t\tminUppers < config[passwordType].MinUppercase ||\n\t\tminSpecials < config[passwordType].MinSpecialCharacters {\n\t\treturn false\n\t}\n\n\treturn true\n}",
"func validateOrderDetails(tx db.Tx, order *model.Order, privs model.Privilege) bool {\n\n\torder.Created = time.Now()\n\n\t// Office notes are allowed only by office staff.\n\tif order.ONote != \"\" && privs&model.PrivManageOrders == 0 {\n\t\treturn false\n\t}\n\n\t// Remove any lines with zero quantity. Make sure there's at least one\n\t// line left.\n\tvar j = 0\n\tfor i := range order.Lines {\n\t\tif order.Lines[i].Quantity < 0 {\n\t\t\treturn false\n\t\t}\n\t\tif order.Lines[i].Quantity != 0 {\n\t\t\torder.Lines[j] = order.Lines[i]\n\t\t\tj++\n\t\t}\n\t}\n\torder.Lines = order.Lines[:j]\n\tif len(order.Lines) == 0 {\n\t\treturn false\n\t}\n\n\t// Check the validity of each order line.\n\tfor _, line := range order.Lines {\n\n\t\t// Additional constraints by product type:\n\t\tswitch line.Product.Type {\n\t\tcase model.ProdDonation, model.ProdRecording, model.ProdSheetMusic, model.ProdRegistration, model.ProdAuctionItem:\n\t\t\t// Donations, concert recordings, sheet music, auction\n\t\t\t// items, and event registrations must have a quantity\n\t\t\t// of 1.\n\t\t\tif line.Quantity != 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdWardrobe:\n\t\t\tif line.Quantity < 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdTicket:\n\t\t\tif line.Used < 0 || line.Used > line.Quantity*line.Product.TicketCount {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif line.Used != 0 {\n\t\t\t\tvar found bool\n\t\t\t\tfor _, e := range line.Product.Events {\n\t\t\t\t\tif e.Event.ID == line.UsedAt {\n\t\t\t\t\t\tfound = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif !found {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (m *EventChannelParameters) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateBatch(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSMTPSecurity(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (us UsersSVCClient) ValidateOrder(orderId int) (usersvc.Order, usersvc.Plan, error) {\n\tconn, err := common.OpenGRPCConnection(us.host)\n\tif err != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, err\n\t}\n\tdefer conn.Close()\n\n\tclient := grpcusr.NewUserSVCClient(conn)\n\tresp, validateError := client.ValidateOrder(context.Background(), &grpcusr.ValidateOrderRequest{\n\t\tOrderId: int32(orderId),\n\t})\n\n\tif validateError != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, validateError\n\t}\n\n\torder, decodeOrderError := usersvc.DecodeOrder(resp.Order)\n\tif decodeOrderError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, usersvc.Plan{}, decodeOrderError\n\t}\n\n\tplan, decodePlanError := usersvc.DecodePlan(resp.Plan)\n\tif decodePlanError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, *plan, decodePlanError\n\t}\n\n\tif resp.Err != common.ErrorNilString {\n\t\treturn *order, *plan, errors.New(resp.Err)\n\t}\n\n\n\treturn *order, *plan, nil\n}",
"func CheckParameters(r *rest.Request, needed_fields []string) (bool, map[string]string) {\n\tvar result map[string]string\n\tresult = make(map[string]string)\n\tfor _, field := range needed_fields {\n\t\tvalues, _ := r.URL.Query()[field]\n\t\tif len(values) < 1 {\n\t\t\treturn false, result\n\t\t}\n\t\tresult[field] = values[0]\n\t}\n\treturn true, result\n}",
"func ValidateOrderResponseBody(body *OrderResponseBody) (err error) {\n\tif body.ChainID == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"chainId\", \"body\"))\n\t}\n\tif body.ExchangeAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"exchangeAddress\", \"body\"))\n\t}\n\tif body.MakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAddress\", \"body\"))\n\t}\n\tif body.TakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAddress\", \"body\"))\n\t}\n\tif body.FeeRecipientAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"feeRecipientAddress\", \"body\"))\n\t}\n\tif body.SenderAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"senderAddress\", \"body\"))\n\t}\n\tif body.MakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetAmount\", \"body\"))\n\t}\n\tif body.TakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetAmount\", \"body\"))\n\t}\n\tif body.MakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFee\", \"body\"))\n\t}\n\tif body.TakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFee\", \"body\"))\n\t}\n\tif body.ExpirationTimeSeconds == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"expirationTimeSeconds\", \"body\"))\n\t}\n\tif body.Salt == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"salt\", \"body\"))\n\t}\n\tif body.MakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetData\", \"body\"))\n\t}\n\tif body.TakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetData\", \"body\"))\n\t}\n\tif body.MakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFeeAssetData\", \"body\"))\n\t}\n\tif body.TakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFeeAssetData\", \"body\"))\n\t}\n\tif body.Signature == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"signature\", \"body\"))\n\t}\n\tif body.ChainID != nil {\n\t\tif !(*body.ChainID == 1 || *body.ChainID == 3 || *body.ChainID == 4 || *body.ChainID == 42 || *body.ChainID == 1337 || *body.ChainID == 15001) {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidEnumValueError(\"body.chainId\", *body.ChainID, []interface{}{1, 3, 4, 42, 1337, 15001}))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.exchangeAddress\", *body.ExchangeAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, true))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAddress\", *body.MakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAddress\", *body.TakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, true))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, false))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.senderAddress\", *body.SenderAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, true))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetAmount\", *body.MakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetAmount\", *body.MakerAssetAmount, utf8.RuneCountInString(*body.MakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetAmount\", *body.TakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetAmount\", *body.TakerAssetAmount, utf8.RuneCountInString(*body.TakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.MakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFee\", *body.MakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFee\", *body.MakerFee, utf8.RuneCountInString(*body.MakerFee), 100, false))\n\t\t}\n\t}\n\tif body.TakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFee\", *body.TakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFee\", *body.TakerFee, utf8.RuneCountInString(*body.TakerFee), 100, false))\n\t\t}\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\tif utf8.RuneCountInString(*body.ExpirationTimeSeconds) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, utf8.RuneCountInString(*body.ExpirationTimeSeconds), 100, false))\n\t\t}\n\t}\n\tif body.Salt != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.salt\", *body.Salt, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.Salt != nil {\n\t\tif utf8.RuneCountInString(*body.Salt) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.salt\", *body.Salt, utf8.RuneCountInString(*body.Salt), 100, false))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetData\", *body.MakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetData\", *body.TakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.Signature != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.signature\", *body.Signature, \"^0x(([0-9a-fA-F][0-9a-fA-F])+)?$\"))\n\t}\n\treturn\n}",
"func parseCommonParams(ctx *cli.Context, blockDuration uint32) (*poolrpc.Order, error) {\n\tvar (\n\t\targs = ctx.Args()\n\t\tparams = &poolrpc.Order{}\n\t)\n\n\tswitch {\n\tcase ctx.IsSet(\"amt\"):\n\t\tparams.Amt = ctx.Uint64(\"amt\")\n\tcase args.Present():\n\t\tamt, err := parseAmt(args.First())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"unable to decode amount: %v\", err)\n\t\t}\n\t\tparams.Amt = uint64(amt)\n\t\targs = args.Tail()\n\t}\n\n\t// If the minimum channel amount flag wasn't provided, use a default of\n\t// 10% and round to the nearest unit.\n\tminChanAmt := btcutil.Amount(ctx.Uint64(\"min_chan_amt\"))\n\tif minChanAmt == 0 {\n\t\tminChanAmt = order.RoundToNextSupplyUnit(\n\t\t\tbtcutil.Amount(params.Amt) / 10,\n\t\t).ToSatoshis()\n\t}\n\n\t// Verify the minimum channel amount flag has been properly set.\n\tswitch {\n\tcase minChanAmt%order.BaseSupplyUnit != 0:\n\t\treturn nil, fmt.Errorf(\"minimum channel amount %v must be \"+\n\t\t\t\"a multiple of %v\", minChanAmt, order.BaseSupplyUnit)\n\n\tcase minChanAmt < order.BaseSupplyUnit:\n\t\treturn nil, fmt.Errorf(\"minimum channel amount %v is below \"+\n\t\t\t\"required value of %v\", minChanAmt, order.BaseSupplyUnit)\n\n\tcase minChanAmt > btcutil.Amount(params.Amt):\n\t\treturn nil, fmt.Errorf(\"minimum channel amount %v is above \"+\n\t\t\t\"order amount %v\", minChanAmt, btcutil.Amount(params.Amt))\n\t}\n\tparams.MinUnitsMatch = uint32(minChanAmt / order.BaseSupplyUnit)\n\n\tvar err error\n\tparams.TraderKey, err = parseAccountKey(ctx, args)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to parse acct_key: %v\", err)\n\t}\n\n\t// Convert the cmd line flag from sat/vByte to sat/kw which is used\n\t// internally.\n\tsatPerByte := ctx.Uint64(\"max_batch_fee_rate\")\n\tif satPerByte == 0 {\n\t\treturn nil, fmt.Errorf(\"max batch fee rate must be at \" +\n\t\t\t\"least 1 sat/vByte\")\n\t}\n\n\tsatPerKw := chainfee.SatPerKVByte(satPerByte * 1000).FeePerKWeight()\n\n\t// Because of rounding, we ensure the set rate is at least our fee\n\t// floor.\n\tif satPerKw < chainfee.FeePerKwFloor {\n\t\tsatPerKw = chainfee.FeePerKwFloor\n\t}\n\n\tparams.MaxBatchFeeRateSatPerKw = uint64(satPerKw)\n\n\t// We'll map the interest rate specified on the command line to our\n\t// internal \"rate_fixed\" unit.\n\t//\n\t// rate = % / 100\n\t// rate = rateFixed / totalParts\n\t// rateFixed = rate * totalParts\n\tinterestPercent := ctx.Float64(\"interest_rate_percent\")\n\tinterestRate := interestPercent / 100\n\trateFixedFloat := interestRate * order.FeeRateTotalParts\n\n\t// We then take this rate fixed, and divide it by the number of blocks\n\t// as the user wants this rate to be the final lump sum they pay.\n\trateFixed := uint32(rateFixedFloat / float64(blockDuration))\n\n\t// At this point, if this value is less than 1, then we aren't able to\n\t// express it given the current precision allowed by our fixed point.\n\tif rateFixed < 1 {\n\t\treturn nil, fmt.Errorf(\"fixed rate of %v is too small \"+\n\t\t\t\"(%v%% over %v blocks), min is 1 (%v%%)\", rateFixed,\n\t\t\tinterestPercent, blockDuration,\n\t\t\tfloat64(1)/order.FeeRateTotalParts)\n\t}\n\n\tparams.RateFixed = rateFixed\n\n\treturn params, nil\n}",
"func Validate(params Params) (err error) {\n\tif params.Length <= 0 {\n\t\treturn errors.New(\"Length must be more than 0\")\n\t}\n\tif params.Square <= 0 {\n\t\treturn errors.New(\"Square must be more than 0\")\n\t}\n\treturn nil\n}",
"func bindOrderValidationUtils(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := abi.JSON(strings.NewReader(OrderValidationUtilsABI))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil\n}",
"func validateParams() {\n\tif domain == \"\" {\n\t\tprintAndExit(\"-domain is required!\", true)\n\t}\n\n\tif passLength < 1 {\n\t\tprintAndExit(\"-password-length must be a positive number!\", true)\n\t}\n\n\tif passLength < 8 {\n\t\tfmt.Println(\"WARN: -password-length is too short. We will grant your wish, but this might be a security risk. Consider using longer password.\", false)\n\t}\n}",
"func (_obj *Apipayments) Payments_validateRequestedInfo(params *TLpayments_validateRequestedInfo, _opt ...map[string]string) (ret Payments_ValidatedRequestedInfo, err error) {\n\n\tvar length int32\n\tvar have bool\n\tvar ty byte\n\t_os := codec.NewBuffer()\n\terr = params.WriteBlock(_os, 1)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\n\tvar _status map[string]string\n\tvar _context map[string]string\n\tif len(_opt) == 1 {\n\t\t_context = _opt[0]\n\t} else if len(_opt) == 2 {\n\t\t_context = _opt[0]\n\t\t_status = _opt[1]\n\t}\n\t_resp := new(requestf.ResponsePacket)\n\ttarsCtx := context.Background()\n\n\terr = _obj.s.Tars_invoke(tarsCtx, 0, \"payments_validateRequestedInfo\", _os.ToBytes(), _status, _context, _resp)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\n\t_is := codec.NewReader(tools.Int8ToByte(_resp.SBuffer))\n\terr = ret.ReadBlock(_is, 0, true)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\n\tif len(_opt) == 1 {\n\t\tfor k := range _context {\n\t\t\tdelete(_context, k)\n\t\t}\n\t\tfor k, v := range _resp.Context {\n\t\t\t_context[k] = v\n\t\t}\n\t} else if len(_opt) == 2 {\n\t\tfor k := range _context {\n\t\t\tdelete(_context, k)\n\t\t}\n\t\tfor k, v := range _resp.Context {\n\t\t\t_context[k] = v\n\t\t}\n\t\tfor k := range _status {\n\t\t\tdelete(_status, k)\n\t\t}\n\t\tfor k, v := range _resp.Status {\n\t\t\t_status[k] = v\n\t\t}\n\n\t}\n\t_ = length\n\t_ = have\n\t_ = ty\n\treturn ret, nil\n}",
"func (o *GetPostListParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.EnumCase(\"order\", \"query\", *o.Order, []interface{}{\"asc\", \"desc\"}, true); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (s Sort) Valid() error {\n\t_, ok := sortOptions[s]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: sort\")\n\t\tlog.Printf(\"value: %s\", string(s))\n\t\treturn errors.New(\"invalid query param: sort\")\n\t}\n\treturn nil\n}",
"func parseAndCheckParameters(params ...Parameter) (*parameters, error) {\n\tparameters := parameters{\n\t\tlogLevel: zerolog.GlobalLevel(),\n\t}\n\tfor _, p := range params {\n\t\tif params != nil {\n\t\t\tp.apply(¶meters)\n\t\t}\n\t}\n\n\tif parameters.monitor == nil {\n\t\t// Use no-op monitor.\n\t\tparameters.monitor = &noopMonitor{}\n\t}\n\tif parameters.signer == nil {\n\t\treturn nil, errors.New(\"no signer specified\")\n\t}\n\tif parameters.lister == nil {\n\t\treturn nil, errors.New(\"no lister specified\")\n\t}\n\tif parameters.process == nil {\n\t\treturn nil, errors.New(\"no process specified\")\n\t}\n\tif parameters.walletManager == nil {\n\t\treturn nil, errors.New(\"no wallet manager specified\")\n\t}\n\tif parameters.accountManager == nil {\n\t\treturn nil, errors.New(\"no account manager specified\")\n\t}\n\tif parameters.peers == nil {\n\t\treturn nil, errors.New(\"no peers specified\")\n\t}\n\tif parameters.name == \"\" {\n\t\treturn nil, errors.New(\"no name specified\")\n\t}\n\tif parameters.id == 0 {\n\t\treturn nil, errors.New(\"no ID specified\")\n\t}\n\tif parameters.listenAddress == \"\" {\n\t\treturn nil, errors.New(\"no listen address specified\")\n\t}\n\tif len(parameters.serverCert) == 0 {\n\t\treturn nil, errors.New(\"no server certificate specified\")\n\t}\n\tif len(parameters.serverKey) == 0 {\n\t\treturn nil, errors.New(\"no server key specified\")\n\t}\n\n\treturn ¶meters, nil\n}",
"func isValidParamRates(data RatesData) (result bool, err error) {\n\t// check length of param From\n\tif len(data.From) > 3 || len(data.From) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamFrom\n\t\treturn\n\t}\n\n\t// check length of param To\n\tif len(data.To) > 3 || len(data.To) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamTo\n\t\treturn\n\t}\n\n\t// check date related\n\tresult, err = isValidDate(data.Date)\n\tif err != nil {\n\t\treturn\n\t}\n\n\t// check rates\n\t_, err = strconv.ParseFloat(data.Rates, 64)\n\tif err != nil {\n\t\tlog.Error(err)\n\t\tresult = false\n\t\terr = ErrRatesInvalid\n\t\treturn\n\t}\n\n\tresult = true\n\treturn\n}",
"func (m *ModifyOrder) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func isValidParam(data Data) (result bool, err error) {\n\t// check length of param From\n\tif len(data.From) > 3 || len(data.From) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamFrom\n\t\treturn\n\t}\n\n\t// check length of param To\n\tif len(data.To) > 3 || len(data.To) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamTo\n\t\treturn\n\t}\n\n\tresult = true\n\treturn\n}",
"func (params Params) Validate() error {\n\tif params.BasePool.IsNegative() {\n\t\treturn fmt.Errorf(\"base pool should be positive or zero, is %s\", params.BasePool)\n\t}\n\tif params.PoolRecoveryPeriod <= 0 {\n\t\treturn fmt.Errorf(\"pool recovery period should be positive, is %d\", params.PoolRecoveryPeriod)\n\t}\n\tif params.MinStabilitySpread.IsNegative() || params.MinStabilitySpread.GT(sdk.OneDec()) {\n\t\treturn fmt.Errorf(\"market minimum stability spead should be a value between [0,1], is %s\", params.MinStabilitySpread)\n\t}\n\n\treturn nil\n}",
"func (o RequestValidatorOutput) ValidateRequestParameters() pulumi.BoolPtrOutput {\n\treturn o.ApplyT(func(v *RequestValidator) pulumi.BoolPtrOutput { return v.ValidateRequestParameters }).(pulumi.BoolPtrOutput)\n}",
"func (order *Order) Valid() bool {\n\tif order.ID == 0 {\n\t\treturn false\n\t}\n\tswitch order.EventType {\n\tcase CommandType_NewOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitch order.Type {\n\t\t\tcase OrderType_Limit:\n\t\t\t\treturn order.Price != 0 && order.Amount != 0\n\t\t\tcase OrderType_Market:\n\t\t\t\treturn order.Funds != 0 && order.Amount != 0\n\t\t\t}\n\t\t}\n\tcase CommandType_CancelOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tif order.Type == OrderType_Limit {\n\t\t\t\treturn order.Price != 0\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (m FreeAddressesRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tfor i := 0; i < len(m); i++ {\n\n\t\tif err := validate.Pattern(strconv.Itoa(i), \"body\", m[i], `^([0-9]{1,3}\\.){3}[0-9]{1,3}\\/[0-9]|[1-2][0-9]|3[0-2]?$`); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (params Params) Validate() error {\n\tif err := ValidateNicknameParams(params.Nickname); err != nil {\n\t\treturn err\n\t}\n\n\tif err := ValidateDTagParams(params.DTag); err != nil {\n\t\treturn err\n\t}\n\n\tif err := ValidateBioParams(params.Bio); err != nil {\n\t\treturn err\n\t}\n\n\treturn ValidateOracleParams(params.Oracle)\n}",
"func (o *GetOrderShipmentOKBodyShippingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func ValidateParameters(r *Request) {\n\tif r.ParamsFilled() {\n\t\tv := validator{errors: []string{}}\n\t\tv.validateAny(reflect.ValueOf(r.Params), \"\")\n\n\t\tif count := len(v.errors); count > 0 {\n\t\t\tformat := \"%d validation errors:\\n- %s\"\n\t\t\tmsg := fmt.Sprintf(format, count, strings.Join(v.errors, \"\\n- \"))\n\t\t\tr.Error = apierr.New(\"InvalidParameter\", msg, nil)\n\t\t}\n\t}\n}",
"func (m *SearchOrdersFulfillmentFilter) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func checkArguments(hash string, privateKey string) bool {\n\t// easy check\n\t// if len(hash) != 46 || len(privateKey) != 64 {\n\t// \treturn false\n\t// }\n\n\treturn true\n}",
"func validateParameters(task Task, parameters map[string]string) error {\n\tvalidParams := make(map[string]bool)\n\tvar missingParams []string\n\tfor _, reqParam := range task.RequiredParameters() {\n\t\tif _, ok := parameters[reqParam]; ok {\n\t\t\tvalidParams[reqParam] = true\n\t\t} else {\n\t\t\tmissingParams = append(missingParams, reqParam)\n\t\t}\n\t}\n\tif len(missingParams) > 0 {\n\t\treturn fmt.Errorf(\"required parameters are missing: %v\", missingParams)\n\t}\n\tfor _, optParam := range task.OptionalParameters() {\n\t\tvalidParams[optParam] = true\n\t}\n\tfor param := range parameters {\n\t\tif !validParams[param] {\n\t\t\treturn fmt.Errorf(\"parameter %v is not allowed. Allowed required parameters: %v optional parameters: %v\",\n\t\t\t\tparam, task.RequiredParameters(), task.OptionalParameters())\n\t\t}\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (m *Order) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (m *SalesDataOrderExtensionInterface) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCompanyOrderAttributes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftCards(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftMessage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateItemAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateShippingAssignments(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (eo *AddEnvParameters) Validate() error {\n\treturn nil\n}",
"func (p *ParamClient) Valid() string {\n\tp.Init = utl.ReturnIf(p.Init <= 0, 0, p.Init).(int)\n\tp.Limit = utl.ReturnIf(p.Limit <= 10, 10, p.Limit).(int)\n\tp.Sort = utl.ReturnIf(!utl.IsNilStr(p.Sort), ASC, p.Sort).(string)\n\tp.SortField = utl.ReturnIf(!utl.IsNilStr(p.SortField), \"name\", p.SortField).(string)\n\tif !utl.InStr(strings.ToLower(p.Sort), ASC, DESC) {\n\t\treturn \"PET08\"\n\t}\n\tif !utl.InStr(strings.ToLower(p.SortField), Colums...) {\n\t\treturn \"PET08\"\n\t}\n\treturn \"\"\n}",
"func (m *OrderEntry) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func TestInvalidParams(t *testing.T) {\n\tvalidator, err := openrtb_ext.NewBidderParamsValidator(\"../../static/bidder-params\")\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to fetch the json-schemas. %v\", err)\n\t}\n\n\tfor _, invalidParam := range invalidParams {\n\t\tif err := validator.Validate(openrtb_ext.BidderSmartAdserver, json.RawMessage(invalidParam)); err == nil {\n\t\t\tt.Errorf(\"Schema allowed unexpected params: %s\", invalidParam)\n\t\t}\n\t}\n}",
"func (m EveroutePackageOrderByInput) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateEveroutePackageOrderByInputEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (w *Watcher) ValidateAndStoreValidOrdersV4(ctx context.Context, orders []*zeroex.SignedOrderV4, chainID int, pinned bool, opts *types.AddOrdersOpts) (*ordervalidator.ValidationResults, error) {\n\tif len(orders) == 0 {\n\t\treturn &ordervalidator.ValidationResults{}, nil\n\t}\n\tresults, validMeshOrders, err := w.meshSpecificOrderValidationV4(orders, chainID, pinned)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvalidationBlock, zeroexResults, err := w.onchainOrderValidationV4(ctx, validMeshOrders)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresults.Accepted = append(results.Accepted, zeroexResults.Accepted...)\n\tresults.Rejected = append(results.Rejected, zeroexResults.Rejected...)\n\n\t// Filter out only the new orders.\n\tnewOrderInfos := []*ordervalidator.AcceptedOrderInfo{}\n\tfor _, acceptedOrderInfo := range results.Accepted {\n\t\t// If the order isn't new, we don't add to OrderWatcher.\n\t\tif acceptedOrderInfo.IsNew {\n\t\t\tnewOrderInfos = append(newOrderInfos, acceptedOrderInfo)\n\t\t}\n\t}\n\n\tif opts.KeepCancelled || opts.KeepExpired || opts.KeepFullyFilled || opts.KeepUnfunded {\n\t\tfor _, rejectedOrderInfo := range zeroexResults.Rejected {\n\t\t\t// NOTE(jalextowle): We can use the rejectedOrderInfo.Status\n\t\t\t// field to see whether or not the order is new or not. If\n\t\t\t// the order has already been stored, the rejectedOrderInfo.Status\n\t\t\t// field will be ordervalidator.ROOrderAlreadyStoredAndUnfillable.\n\t\t\t// If the rejection reason involves on-chain validation, then the\n\t\t\t// order is new.\n\t\t\tif (opts.KeepCancelled && rejectedOrderInfo.Status.Code == ordervalidator.ROCancelled.Code) ||\n\t\t\t\t(opts.KeepExpired && rejectedOrderInfo.Status.Code == ordervalidator.ROExpired.Code) ||\n\t\t\t\t(opts.KeepFullyFilled && rejectedOrderInfo.Status.Code == ordervalidator.ROFullyFilled.Code) ||\n\t\t\t\t(opts.KeepUnfunded && rejectedOrderInfo.Status.Code == ordervalidator.ROUnfunded.Code) {\n\t\t\t\tnewOrderInfos = append(newOrderInfos, &ordervalidator.AcceptedOrderInfo{\n\t\t\t\t\tOrderHash: rejectedOrderInfo.OrderHash,\n\t\t\t\t\tSignedOrder: rejectedOrderInfo.SignedOrder,\n\t\t\t\t\tSignedOrderV4: rejectedOrderInfo.SignedOrderV4,\n\t\t\t\t\t// TODO(jalextowle): Verify that this is consistent with the OrderWatcher\n\t\t\t\t\tFillableTakerAssetAmount: big.NewInt(0),\n\t\t\t\t\tIsNew: true,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n\n\t// Add the order to the OrderWatcher. This also saves the order in the\n\t// database.\n\tallOrderEvents := []*zeroex.OrderEvent{}\n\torderEvents, err := w.add(newOrderInfos, validationBlock, pinned, opts)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tallOrderEvents = append(allOrderEvents, orderEvents...)\n\n\tif len(allOrderEvents) > 0 {\n\t\t// NOTE(albrow): Send can block if the subscriber(s) are slow. Blocking here can cause problems when Mesh is\n\t\t// shutting down, so to prevent that, we call Send in a goroutine and return immediately if the context\n\t\t// is done.\n\t\tdone := make(chan interface{})\n\t\tgo func() {\n\t\t\tw.orderFeed.Send(allOrderEvents)\n\t\t\tdone <- struct{}{}\n\t\t}()\n\t\tselect {\n\t\tcase <-done:\n\t\t\treturn results, nil\n\t\tcase <-ctx.Done():\n\t\t\treturn results, nil\n\t\t}\n\t}\n\n\treturn results, nil\n}",
"func (m *WasmParams) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (s *OpencxAuctionServer) validateEncryptedOrder(order *match.EncryptedAuctionOrder) (err error) {\n\n\tvar rswPuzzle *rsw.PuzzleRSW\n\tvar ok bool\n\tif rswPuzzle, ok = order.OrderPuzzle.(*rsw.PuzzleRSW); !ok {\n\t\terr = fmt.Errorf(\"Puzzle could not be converted to RSW puzzle, invalid encrypted order\")\n\t\treturn\n\t}\n\n\tif uint64(rswPuzzle.T.Int64()) != s.t {\n\t\terr = fmt.Errorf(\"The time to solve the puzzle is not correct, invalid encrypted order\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (tx *Hello) Validate(p types.Process, loader types.LoaderWrapper, signers []common.PublicHash) error {\n\tsp := p.(*HelloWorld)\n\n\tif has, err := loader.HasAccount(tx.From()); err != nil {\n\t\treturn err\n\t} else if !has {\n\t\treturn types.ErrNotExistAccount\n\t}\n\n\tfromAcc, err := loader.Account(tx.From())\n\tif err != nil {\n\t\treturn err\n\t}\n\tif err := fromAcc.Validate(loader, signers); err != nil {\n\t\treturn err\n\t}\n\n\tif err := sp.vault.CheckFeePayableWith(p, loader, tx, nil); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func VerifyParameters(key string, qs map[string]interface{}) bool {\n\tparams := url.Values{}\n\n\tfor k, v := range qs {\n\t\ts, ok := v.(string)\n\t\tif ok {\n\t\t\tparams.Set(k, s)\n\t\t\tcontinue\n\t\t}\n\n\t\tl, ok := v.([]string)\n\t\tif ok {\n\t\t\tfor i := range l {\n\t\t\t\tparams.Add(k, l[i])\n\t\t\t}\n\t\t}\n\t}\n\n\treturn VerifySign(key, params.Encode())\n}",
"func (s *OpencxAuctionServer) validateOrderResult(claimedAuction [32]byte, result *match.OrderPuzzleResult) (err error) {\n\n\tif result == nil {\n\t\terr = fmt.Errorf(\"Result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Auction == nil {\n\t\terr = fmt.Errorf(\"Auction in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Encrypted == nil {\n\t\terr = fmt.Errorf(\"Encrypted order in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\tlogging.Infof(\"Validating order by pubkey %x\", result.Auction.Pubkey)\n\n\tif result.Err != nil {\n\t\terr = fmt.Errorf(\"Validation detected error early: %s\", result.Err)\n\t\treturn\n\t}\n\n\tif _, err = result.Auction.Price(); err != nil {\n\t\terr = fmt.Errorf(\"Orders with an indeterminable price are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !result.Auction.IsBuySide() && !result.Auction.IsSellSide() {\n\t\terr = fmt.Errorf(\"Orders that aren't buy or sell side are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// We could use pub key hashes here but there might not be any reason for it\n\tvar orderPublicKey *koblitz.PublicKey\n\tif orderPublicKey, err = koblitz.ParsePubKey(result.Auction.Pubkey[:], koblitz.S256()); err != nil {\n\t\terr = fmt.Errorf(\"Orders with a public key that cannot be parsed are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// e = h(asset)\n\tsha3 := sha3.New256()\n\tsha3.Write(result.Auction.SerializeSignable())\n\te := sha3.Sum(nil)\n\n\tvar recoveredPublickey *koblitz.PublicKey\n\tif recoveredPublickey, _, err = koblitz.RecoverCompact(koblitz.S256(), result.Auction.Signature, e); err != nil {\n\t\terr = fmt.Errorf(\"Orders whose signature cannot be verified with pubkey recovery are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !recoveredPublickey.IsEqual(orderPublicKey) {\n\t\terr = fmt.Errorf(\"Recovered public key %x does not equal to pubkey %x in order\", recoveredPublickey.SerializeCompressed(), orderPublicKey.SerializeCompressed())\n\t\treturn\n\t}\n\n\tif !bytes.Equal(result.Encrypted.IntendedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID for decrypted and encrypted order must be equal\")\n\t\treturn\n\t}\n\n\tif !bytes.Equal(claimedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID must equal current auction\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (r *Client) validateTemplateParams(t *Template, params []*Parameter) error {\n\tmissing := map[string]interface{}{}\n\t// copy all wanted params into missing\n\tfor k, v := range t.Parameters {\n\t\tmissing[k] = v\n\t}\n\t// remove items from missing list as found\n\tfor wantedKey := range t.Parameters {\n\t\tfor _, param := range params {\n\t\t\tif param.ParameterKey == nil {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\t// phew found it\n\t\t\tif *param.ParameterKey == wantedKey {\n\t\t\t\tdelete(missing, wantedKey)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\t// if any left, then we have an issue\n\tif len(missing) > 0 {\n\t\tkeys := []string{}\n\t\tfor k := range missing {\n\t\t\tkeys = append(keys, k)\n\t\t}\n\t\tkeysCSV := strings.Join(keys, \",\")\n\t\treturn fmt.Errorf(\"missing required input parameters: [%s]\", keysCSV)\n\t}\n\treturn nil\n}",
"func (m *OrderReturnServiceCharge) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAmountMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCatalogObjectID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePercentage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSourceServiceChargeUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalTaxMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *PaymentRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateCreatedAt(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateMoveTaskOrder(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateMoveTaskOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateProofOfServiceDocs(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRecalculationOfPaymentRequestID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateReviewedAt(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateServiceItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (param TOParameter) Validate() error {\n\t// Test\n\t// - Secure Flag is always set to either 1/0\n\t// - Admin rights only\n\t// - Do not allow duplicate parameters by name+config_file+value\n\terrs := validation.Errors{\n\t\tNameQueryParam: validation.Validate(param.Name, validation.Required),\n\t\tConfigFileQueryParam: validation.Validate(param.ConfigFile, validation.Required),\n\t\tValueQueryParam: validation.Validate(param.Value, validation.Required),\n\t}\n\n\treturn util.JoinErrs(tovalidate.ToErrors(errs))\n}",
"func ValidateAndRegisterParams(mapName string, params []provider.QueryParameter) error {\n\tif len(params) == 0 {\n\t\treturn nil\n\t}\n\n\tusedNames := make(map[string]struct{})\n\tusedTokens := make(map[string]struct{})\n\n\tfor _, param := range params {\n\t\tif _, ok := provider.ParamTypeDecoders[param.Type]; !ok {\n\t\t\treturn ErrParamUnknownType{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif len(param.DefaultSQL) > 0 && len(param.DefaultValue) > 0 {\n\t\t\treturn ErrParamTwoDefaults{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif len(param.DefaultValue) > 0 {\n\t\t\tdecoderFn := provider.ParamTypeDecoders[param.Type]\n\t\t\tif _, err := decoderFn(param.DefaultValue); err != nil {\n\t\t\t\treturn ErrParamInvalidDefault{\n\t\t\t\t\tMapName: string(mapName),\n\t\t\t\t\tParameter: param,\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif _, ok := ReservedTokens[param.Token]; ok {\n\t\t\treturn ErrParamTokenReserved{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif !provider.ParameterTokenRegexp.MatchString(param.Token) {\n\t\t\treturn ErrParamBadTokenName{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif _, ok := usedNames[param.Name]; ok {\n\t\t\treturn ErrParamDuplicateName{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif _, ok := usedTokens[param.Token]; ok {\n\t\t\treturn ErrParamDuplicateToken{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tusedNames[param.Name] = struct{}{}\n\t\tusedTokens[param.Token] = struct{}{}\n\t}\n\n\t// Mark all used tokens as reserved\n\tfor token := range usedTokens {\n\t\tReservedTokens[token] = struct{}{}\n\t}\n\n\treturn nil\n}",
"func TestParameters(t *testing.T) {\n\tcfg, _ := newTestConfig()\n\tmanager := NewManager(cfg)\n\n\tchanID := lnwire.NewShortChanIDFromInt(1)\n\n\t// Start with the case where we have no rules set.\n\tstartParams := manager.GetParameters()\n\trequire.Equal(t, defaultParameters, startParams)\n\n\t// Mutate the parameters returned by our get function.\n\tstartParams.ChannelRules[chanID] = &SwapRule{\n\t\tThresholdRule: NewThresholdRule(1, 1),\n\t\tType: swap.TypeOut,\n\t}\n\n\t// Make sure that we have not mutated the liquidity manager's params\n\t// by making this change.\n\tparams := manager.GetParameters()\n\trequire.Equal(t, defaultParameters, params)\n\n\t// Provide a valid set of parameters and validate assert that they are\n\t// set.\n\toriginalRule := &SwapRule{\n\t\tThresholdRule: NewThresholdRule(10, 10),\n\t\tType: swap.TypeOut,\n\t}\n\n\texpected := defaultParameters\n\texpected.ChannelRules = map[lnwire.ShortChannelID]*SwapRule{\n\t\tchanID: originalRule,\n\t}\n\n\terr := manager.setParameters(context.Background(), expected)\n\trequire.NoError(t, err)\n\n\t// Check that changing the parameters we just set does not mutate\n\t// our liquidity manager's parameters.\n\texpected.ChannelRules[chanID] = &SwapRule{\n\t\tThresholdRule: NewThresholdRule(11, 11),\n\t\tType: swap.TypeOut,\n\t}\n\n\tparams = manager.GetParameters()\n\trequire.NoError(t, err)\n\trequire.Equal(t, originalRule, params.ChannelRules[chanID])\n\n\t// Set invalid parameters and assert that we fail.\n\texpected.ChannelRules = map[lnwire.ShortChannelID]*SwapRule{\n\t\tlnwire.NewShortChanIDFromInt(0): {\n\t\t\tThresholdRule: NewThresholdRule(1, 2),\n\t\t\tType: swap.TypeOut,\n\t\t},\n\t}\n\terr = manager.setParameters(context.Background(), expected)\n\trequire.Equal(t, ErrZeroChannelID, err)\n}",
"func (m OrdersType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrdersTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func validateAdditionalParameters(bucketName string, namespace string, spec nbv1.BucketClassSpec, isCLI bool) error {\n\tplacementPolicy := spec.PlacementPolicy\n\tif err := validations.ValidatePlacementPolicy(placementPolicy, namespace); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid placementPolicy %v, %v\", bucketName, placementPolicy, err),\n\t\t}\n\t}\n\n\tnamespacePolicy := spec.NamespacePolicy\n\tif err := validations.ValidateNamespacePolicy(namespacePolicy, namespace); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid namespacePolicy %v, %v\", bucketName, namespacePolicy, err),\n\t\t}\n\t}\n\n\treplicationPolicy := spec.ReplicationPolicy\n\tif err := validations.ValidateReplicationPolicy(bucketName, replicationPolicy, false, isCLI); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid replicationPolicy %v, %v\", bucketName, replicationPolicy, err),\n\t\t}\n\t}\n\n\tquota := spec.Quota\n\tif err := validations.ValidateQuotaConfig(bucketName, quota); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid quota %v, %v\", bucketName, quota, err),\n\t\t}\n\t}\n\treturn nil\n}",
"func (m *PTXServiceDTOBusSpecificationV3Operator) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateOperatorCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorEmail(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorPhone(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func validateGenerateEutranVectorInputs(key []byte, opc []byte, sqn uint64, plmn []byte) error {\n\tif err := validateGenerateSIPAuthVectorInputs(key, opc, sqn); err != nil {\n\t\treturn err\n\t}\n\tif len(plmn) != ExpectedPlmnBytes {\n\t\treturn fmt.Errorf(\"incorrect plmn size. Expected 3 bytes, but got %v bytes\", len(plmn))\n\t}\n\treturn nil\n}",
"func validatePayment(order *model.Order) bool {\n\tvar total int\n\n\t// Calculate the order total.\n\tfor _, ol := range order.Lines {\n\t\ttotal += ol.Price * ol.Quantity\n\t}\n\t// If this is a free order, it's OK if there is no payment.\n\tif total == 0 && len(order.Payments) == 0 {\n\t\treturn true\n\t}\n\t// Otherwise, there should be exactly one payment.\n\tif len(order.Payments) != 1 {\n\t\treturn false\n\t}\n\t// And it should have the correct amount.\n\tvar pmt = order.Payments[0]\n\tif pmt.Amount != total {\n\t\treturn false\n\t}\n\t// If this is a free order and has a payment, its type must be \"cash\".\n\t// We remove it; no point in storing a zero payment.\n\tif pmt.Amount == 0 {\n\t\tif pmt.Type != model.PaymentCash {\n\t\t\treturn false\n\t\t}\n\t\torder.Payments = order.Payments[:0]\n\t\treturn true\n\t}\n\tpmt.Created = order.Created\n\treturn true\n}",
"func (ts *CPUCmd) ValidateParameters(ctx xcontext.Context, params test.TestStepParameters) error {\n\tctx.Debugf(\"Params %+v\", params)\n\treturn ts.validateAndPopulate(params)\n}",
"func (m *RetrieveOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (o *IndexClientCertificatesParams) bindOrder(rawData []string, hasKey bool, formats strfmt.Registry) error {\n\tvar raw string\n\tif len(rawData) > 0 {\n\t\traw = rawData[len(rawData)-1]\n\t}\n\n\t// Required: false\n\t// AllowEmptyValue: false\n\n\tif raw == \"\" { // empty values pass all other validations\n\t\treturn nil\n\t}\n\n\tvalue, err := swag.ConvertBool(raw)\n\tif err != nil {\n\t\treturn errors.InvalidType(\"order\", \"query\", \"bool\", raw)\n\t}\n\to.Order = &value\n\n\treturn nil\n}",
"func (m *PorositySimulationParameters) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateBeamDiameter(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGeometryHeight(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGeometryLength(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGeometryWidth(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateHatchSpacingValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateHeaterTemperature(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateLaserWattageValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateLayerRotationAngle(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateLayerThicknessValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateMeshLayersPerLayer(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateScanSpeedValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSlicingStripeWidthValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartingLayerAngle(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (p *Params) Check() error {\n\t// Validate Memory\n\tif p.Memory < minMemoryValue {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate Iterations\n\tif p.Iterations < 1 {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate Parallelism\n\tif p.Parallelism < 1 {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate salt length\n\tif p.SaltLength < minSaltLength {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate key length\n\tif p.KeyLength < minKeyLength {\n\t\treturn ErrInvalidParams\n\t}\n\n\treturn nil\n}",
"func (o *GetOrderShipmentOKBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBillingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingProvider(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *DynamicOrderState) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m OrdersType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Struct0, signatures [][]byte) (struct {\n\tOrdersInfo []Struct1\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []Struct1\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _OrderValidationUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (p *Params) validateRequiredParameters() error {\n\tif p.Input == nil {\n\t\treturn errors.New(\"Input must not be nil\")\n\t}\n\tif p.Output == nil {\n\t\treturn errors.New(\"Output must not be nil\")\n\t}\n\treturn nil\n}",
"func (cc *ChannelConfig) Validate(channelCapabilities ChannelCapabilities) error {\n\tfor _, validator := range []func() error{\n\t\tcc.validateHashingAlgorithm,\n\t\tcc.validateBlockDataHashingStructure,\n\t} {\n\t\tif err := validator(); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif !channelCapabilities.OrgSpecificOrdererEndpoints() {\n\t\treturn cc.validateOrdererAddresses()\n\t}\n\n\treturn nil\n}",
"func (p EmptyParameters) Validate() error {\n\treturn nil\n}",
"func verifyArgs() (bool, string) {\n\tvar errMsg string\n\tvar webhookURL string\n\n\tif *auth == \"\" {\n\t\terrMsg = \"Invalid authentication! It must not be empty.\\n\"\n\t\treturn false, errMsg\n\t}\n\n\tif *address == \"\" {\n\t\terrMsg = \"Invalid URL! It must not be empty.\\n\"\n\t\treturn false, errMsg\n\t}\n\n\tif *port < 1025 || *port > 65535 {\n\t\terrMsg = \"Invalid port! Please, check it is between 1025 and 65535.\\n\"\n\t\treturn false, errMsg\n\t}\n\n\tif *prefix != \"\" {\n\t\t*prefix = strings.Trim(*prefix, \"/\")\n\t}\n\n\twebhookURL = fmt.Sprintf(\"%s:%d\", *address, *port)\n\n\treturn true, webhookURL\n}",
"func (m *OrderPaymentInstrument) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorizationStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateBankRoutingNumber(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentBankAccount(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentCard(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentMethodID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *MACCommandADRParamSetupReq) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAdrAckDelayExponent(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAdrAckLimitExponent(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func ValidateArgs(args []string) error {\n\targsSorted := make([]string, len(args))\n\tcopy(argsSorted, args)\n\tsort.Strings(argsSorted)\n\tif i := sort.SearchStrings(argsSorted, separatorArg); i == len(argsSorted) || argsSorted[i] != separatorArg {\n\t\treturn fmt.Errorf(\"missing the argument %s\", separatorArg)\n\t}\n\n\treturn nil\n}",
"func TestValidatePending(t *testing.T) {\n\tsender, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\tencodedSenderPublicKey, _ := publickey.Encode(&sender.PublicKey)\n\tsenderPKH := hashing.New(encodedSenderPublicKey)\n\trecipient, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\tencodedRecipientPublicKey, _ := publickey.Encode(&recipient.PublicKey)\n\trecipientPKH := hashing.New(encodedRecipientPublicKey)\n\n\tzeroValueContract, _ := contracts.New(1, sender, recipientPKH, 0, 1)\n\tzeroValueContract.Sign(sender)\n\n\tnilSenderContract, _ := contracts.New(1, nil, senderPKH, 500, 1)\n\n\tsenderRecipContract, _ := contracts.New(1, sender, senderPKH, 500, 1)\n\tsenderRecipContract.Sign(sender)\n\n\tinvalidSignatureContract, _ := contracts.New(1, sender, recipientPKH, 500, 1)\n\tinvalidSignatureContract.Sign(recipient)\n\n\tinsufficentFundsContract, _ := contracts.New(1, sender, recipientPKH, 2000000, 1)\n\tinsufficentFundsContract.Sign(sender)\n\n\tinvalidNonceContract, _ := contracts.New(1, sender, recipientPKH, 20, 0)\n\tinvalidNonceContract.Sign(sender)\n\n\tinvalidNonceContract2, _ := contracts.New(1, sender, recipientPKH, 20, 2)\n\tinvalidNonceContract2.Sign(sender)\n\n\t// Start: pBalance = 100, pNonce = 0\n\tvalidFirstContract, _ := contracts.New(1, sender, recipientPKH, 50, 1)\n\tvalidFirstContract.Sign(sender)\n\n\t// pBalance = 50, pNonce = 1\n\tkeyNotInTable, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\tencodedSenderPublicKey, err := publickey.Encode(&keyNotInTable.PublicKey)\n\tif err != nil {\n\t\tt.Errorf(\"failure to encode Sender Public Key: %v\", err)\n\t}\n\tkeyNotInTablePKH := hashing.New(encodedSenderPublicKey)\n\n\tInvalidBalanceContract, _ := contracts.New(1, sender, keyNotInTablePKH, 51, 2)\n\tInvalidBalanceContract.Sign(sender)\n\n\tInvalidNonceContract, _ := contracts.New(1, sender, keyNotInTablePKH, 20, 3)\n\tInvalidNonceContract.Sign(sender)\n\n\tValidSecondContract, _ := contracts.New(1, sender, keyNotInTablePKH, 50, 2)\n\tValidSecondContract.Sign(sender)\n\n\ttests := []struct {\n\t\tname string\n\t\tc *contracts.Contract\n\t\tpBalance uint64\n\t\tpNonce uint64\n\t\twantErr bool\n\t}{\n\t\t{\n\t\t\tname: \"Zero value\",\n\t\t\tc: zeroValueContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Nil sender\",\n\t\t\tc: nilSenderContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Sender == Recipient\",\n\t\t\tc: senderRecipContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid signature\",\n\t\t\tc: invalidSignatureContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Insufficient funds\",\n\t\t\tc: insufficentFundsContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid nonce\",\n\t\t\tc: invalidNonceContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid nonce 2\",\n\t\t\tc: invalidNonceContract2,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Totally valid\",\n\t\t\tc: validFirstContract,\n\t\t\tpBalance: 100,\n\t\t\tpNonce: 0,\n\t\t\twantErr: false,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid balance\",\n\t\t\tc: InvalidBalanceContract,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid state nonce\",\n\t\t\tc: InvalidNonceContract,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Totally valid 2\",\n\t\t\tc: ValidSecondContract,\n\t\t\twantErr: false,\n\t\t},\n\t}\n\n\tvar updatedBal uint64\n\tvar updatedNonce uint64\n\tfor i, tt := range tests {\n\t\tt.Run(tt.name, func(t *testing.T) {\n\t\t\tif i > 7 {\n\t\t\t\ttt.pBalance = updatedBal\n\t\t\t\ttt.pNonce = updatedNonce\n\t\t\t}\n\n\t\t\tvar err error\n\t\t\terr = ValidatePending(tt.c, &tt.pBalance, &tt.pNonce)\n\t\t\tif (err != nil) != tt.wantErr {\n\t\t\t\tt.Errorf(\"ValidatePending() error = %v, wantErr %v\", err, tt.wantErr)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tupdatedBal = tt.pBalance\n\t\t\tupdatedNonce = tt.pNonce\n\t\t})\n\t}\n}"
] | [
"0.8658141",
"0.85974246",
"0.6865822",
"0.6856563",
"0.6773179",
"0.576631",
"0.5514535",
"0.5369404",
"0.5312139",
"0.52399844",
"0.5212431",
"0.5203551",
"0.5201482",
"0.5194064",
"0.51401204",
"0.51354504",
"0.5132683",
"0.5119001",
"0.5108688",
"0.50952375",
"0.50910574",
"0.5075811",
"0.5062954",
"0.5045588",
"0.50281274",
"0.5009419",
"0.50087804",
"0.4992084",
"0.49705276",
"0.49502957",
"0.49489847",
"0.49484357",
"0.4943149",
"0.4912168",
"0.49032208",
"0.48988476",
"0.4885846",
"0.48723975",
"0.48495647",
"0.48488906",
"0.48474872",
"0.48463437",
"0.48407608",
"0.48396093",
"0.48286477",
"0.48188952",
"0.48141816",
"0.48047334",
"0.48044962",
"0.47801468",
"0.47769836",
"0.4775939",
"0.47650328",
"0.4753089",
"0.47465003",
"0.47419187",
"0.47306734",
"0.47240743",
"0.47232273",
"0.4716808",
"0.47090116",
"0.47084457",
"0.4691218",
"0.4681906",
"0.46735588",
"0.46659526",
"0.46634692",
"0.4659647",
"0.46548426",
"0.46514308",
"0.4631328",
"0.46302953",
"0.46297154",
"0.46183807",
"0.46169576",
"0.4615822",
"0.4603203",
"0.46003935",
"0.4600338",
"0.4589249",
"0.45890385",
"0.45888424",
"0.45837578",
"0.45828646",
"0.45688272",
"0.45664766",
"0.45579606",
"0.45466536",
"0.45385516",
"0.4538286",
"0.4532124",
"0.45301193",
"0.4526546",
"0.45224652",
"0.45195025",
"0.45164332",
"0.45140284",
"0.45088032",
"0.45035246",
"0.45026895"
] | 0.85252494 | 2 |
ValidateOrderParameters is a free data retrieval call binding the contract method 0xca595b9a. Solidity: function validateOrderParameters_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata) constant returns(bool) | func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {
return _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrderParameters(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrderParameters_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (o Order) Valid() error {\n\t_, ok := orderOptions[o]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: order\")\n\t\tlog.Printf(\"value: %s\", string(o))\n\t\treturn errors.New(\"invalid query param: order\")\n\t}\n\treturn nil\n}",
"func (p Params) Validate() error {\n\tif err := validateSpotMarketInstantListingFee(p.SpotMarketInstantListingFee); err != nil {\n\t\treturn err\n\t}\n\tif err := validateDerivativeMarketInstantListingFee(p.DerivativeMarketInstantListingFee); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateMakerFee(p.DefaultSpotMakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultSpotTakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultDerivativeMakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultDerivativeTakerFeeRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateMarginRatio(p.DefaultInitialMarginRatio); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateMarginRatio(p.DefaultMaintenanceMarginRatio); err != nil {\n\t\treturn err\n\t}\n\tif err := validateFundingInterval(p.DefaultFundingInterval); err != nil {\n\t\treturn err\n\t}\n\tif err := validateFundingMultiple(p.FundingMultiple); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.RelayerFeeShareRate); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultHourlyFundingRateCap); err != nil {\n\t\treturn err\n\t}\n\tif err := ValidateFee(p.DefaultHourlyInterestRate); err != nil {\n\t\treturn err\n\t}\n\tif err := validateDerivativeOrderSideCount(p.MaxDerivativeOrderSideCount); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func validateParams(method model.Method, params map[string]interface{}) (bool, error) {\n\tvar notSpecified []model.Parameter\n\tfor _, param := range method.Parameters {\n\t\tvalue := params[param.Name]\n\t\tif param.Required {\n\t\t\tif value != \"\" && value != nil{\n\t\t\t\tactualType := getTypeName(value)\n\t\t\t\tif actualType != param.Type {\n\t\t\t\t\tmsg := fmt.Sprintf(\"Wrong argument '%s' for method '%s'. Expected type '%s', but found '%s'\", param.Name, method.Name, param.Type, actualType)\n\t\t\t\t\tlog.Printf(\"[ERROR] \" + msg)\n\t\t\t\t\treturn false, errors.New(msg)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnotSpecified = append(notSpecified, param)\n\t\t\t}\n\t\t} else {\n\t\t\tif value != \"\" && value != nil {\n\t\t\t\t// optional parameters check\n\t\t\t\tactualType := getTypeName(value)\n\t\t\t\tif actualType != param.Type {\n\t\t\t\t\tmsg := fmt.Sprintf(\"Wrong argument '%s' for method '%s'. Expected type '%s', but found '%s'\", param.Name, method.Name, param.Type, actualType)\n\t\t\t\t\tlog.Printf(\"[ERROR] \" + msg)\n\t\t\t\t\treturn false, errors.New(msg)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(notSpecified) != 0 {\n\t\tvar paramStr string = \"\"\n\t\tfor _, param := range notSpecified {\n\t\t\tparamStr += fmt.Sprintf(\"'%s', \", param.Name)\n\t\t}\n\t\tmsg := fmt.Sprintf(\"Required parameters are not provided for '%s' method. Please specify: %s\", method.Name, paramStr[:len(paramStr) - 2])\n\t\tlog.Printf(\"[ERROR] \" + msg)\n\t\treturn false, errors.New(msg)\n\t}\n\treturn true, nil\n}",
"func (p Params) Validate() error {\n\tif err := validateCreateWhoisPrice(p.CreateWhoisPrice); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateUpdateWhoisPrice(p.UpdateWhoisPrice); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateDeleteWhoisPrice(p.DeleteWhoisPrice); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (p Params) Validate() error {\n\tif err := validateTokenCourse(p.TokenCourse); err != nil {\n\t\treturn err\n\t}\n\tif err := validateSubscriptionPrice(p.SubscriptionPrice); err != nil {\n\t\treturn err\n\t}\n\tif err := validateVPNGBPrice(p.VPNGBPrice); err != nil {\n\t\treturn err\n\t}\n\tif err := validateStorageGBPrice(p.StorageGBPrice); err != nil {\n\t\treturn err\n\t}\n\tif err := validateBaseVPNGb(p.BaseVPNGb); err != nil {\n\t\treturn err\n\t}\n\tif err := validateBaseStorageGb(p.BaseStorageGb); err != nil {\n\t\treturn err\n\t}\n\tif err := validateCourseChangeSigners(p.CourseChangeSigners); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (o *ListPaymentsParams) validateOrderBy(formats strfmt.Registry) error {\n\n\tif err := validate.Pattern(\"orderBy\", \"query\", (*o.OrderBy), `^[A-Za-z0-9_]+$`); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (o *GetV1LoansParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.Enum(\"order\", \"query\", *o.Order, []interface{}{\"amount\", \"end_at\", \"score\"}); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func ValidateOracleParams(i interface{}) error {\n\tparams, isOracleParams := i.(OracleParams)\n\tif !isOracleParams {\n\t\treturn fmt.Errorf(\"invalid parameters type: %s\", i)\n\t}\n\n\tif params.AskCount < params.MinCount {\n\t\treturn fmt.Errorf(\"invalid ask count: %d, min count: %d\", params.AskCount, params.MinCount)\n\t}\n\n\tif params.MinCount <= 0 {\n\t\treturn fmt.Errorf(\"invalid min count: %d\", params.MinCount)\n\t}\n\n\tif params.PrepareGas <= 0 {\n\t\treturn fmt.Errorf(\"invalid prepare gas: %d\", params.PrepareGas)\n\t}\n\n\tif params.ExecuteGas <= 0 {\n\t\treturn fmt.Errorf(\"invalid execute gas: %d\", params.ExecuteGas)\n\t}\n\n\terr := params.FeeAmount.Validate()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (m *MarketIfTouchedOrderRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePositionFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTimeInForce(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTradeClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTriggerCondition(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func validateServiceParameters(parameters []*Service_Parameter, data *types.Struct) error {\n\tvar errs xerrors.Errors\n\n\tfor _, p := range parameters {\n\t\tvar value *types.Value\n\t\tif data != nil && data.Fields != nil {\n\t\t\tvalue = data.Fields[p.Key]\n\t\t}\n\t\tif err := p.Validate(value); err != nil {\n\t\t\terrs = append(errs, err)\n\t\t}\n\t}\n\treturn errs.ErrorOrNil()\n}",
"func (p Params) Validate() error {\n\tif err := validateActiveParam(p.Active); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateDelegatorParams(p.DelegatorDistributionSchedules); err != nil {\n\t\treturn err\n\t}\n\n\treturn validateLPParams(p.LiquidityProviderSchedules)\n}",
"func (p Params) Validate() error {\n\tif err := validateActiveParam(p.Active); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateDelegatorParams(p.DelegatorDistributionSchedules); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateLPParams(p.LiquidityProviderSchedules); err != nil {\n\t\treturn err\n\t}\n\n\tif err := validateMoneyMarketParams(p.MoneyMarkets); err != nil {\n\t\treturn err\n\t}\n\n\treturn validateCheckLtvIndexCount(p.CheckLtvIndexCount)\n}",
"func assertOrderValid(t *testing.T, actual *Order, expected *Order) {\n\tassert.Equal(t, actual.Location.Lon, expected.Location.Lon)\n\tassert.Equal(t, actual.Location.Lat, expected.Location.Lat)\n\tassert.NotEmpty(t, expected.Id)\n\tassert.Equal(t, actual.Desc, expected.Desc)\n\tassert.NotEmpty(t, expected.TimeRequested)\n\tassert.Equal(t, actual.ConsumerId, expected.ConsumerId)\n\tassert.Equal(t, actual.BidPrice, expected.BidPrice)\n}",
"func ValidateParams(paramSpec []GeneratorParam, params map[string]interface{}) error {\n\tallErrs := []error{}\n\tfor ix := range paramSpec {\n\t\tif paramSpec[ix].Required {\n\t\t\tvalue, found := params[paramSpec[ix].Name]\n\t\t\tif !found || IsZero(value) {\n\t\t\t\tallErrs = append(allErrs, fmt.Errorf(\"Parameter: %s is required\", paramSpec[ix].Name))\n\t\t\t}\n\t\t}\n\t}\n\treturn utilerrors.NewAggregate(allErrs)\n}",
"func TestValidParams(t *testing.T) {\n\tvalidator, err := openrtb_ext.NewBidderParamsValidator(\"../../static/bidder-params\")\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to fetch the json-schemas. %v\", err)\n\t}\n\n\tfor _, validParam := range validParams {\n\t\tif err := validator.Validate(openrtb_ext.BidderSmartAdserver, json.RawMessage(validParam)); err != nil {\n\t\t\tt.Errorf(\"Schema rejected smartadserver params: %s \\n Error: %s\", validParam, err)\n\t\t}\n\t}\n}",
"func (o *GetOrderShipmentOKBodyBillingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (m *PTXServiceDTOShipSpecificationV3ShipRoute) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorityCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperators(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteDistance(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSrcUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTicketPriceDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateVessels(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateWeatherURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (p Params) Validate() error {\n\tif len(p.SendEnabled) > 0 {\n\t\treturn errors.New(\"use of send_enabled in params is no longer supported\")\n\t}\n\treturn validateIsBool(p.DefaultSendEnabled)\n}",
"func (cro CreateOrderRequest) Validate() (int, *Error) {\n\tif (cro.Origin == routes.Location{}) ||\n\t\t(cro.Destination == routes.Location{}) {\n\t\treturn ErrBadRequestParametersMissing(\"origin and destination are mandatory\")\n\t}\n\n\tif !cro.Origin.IsValid() || !cro.Destination.IsValid() {\n\t\treturn ErrBadRequestInvalidBody(\"Origin or destination not in proper format\")\n\t}\n\treturn 0, nil\n}",
"func (c customerio) verifyParams() {\n\tif c.from.Email == \"\" {\n\t\tpanic(\"gomailer: you must provide from\")\n\t}\n\tif len(c.toList) <= 0 {\n\t\tpanic(\"gomailer: you must provide at least one receipent\")\n\t}\n\tif len(c.toList)+len(c.ccList)+len(c.bccList) > customerioMaxReceipents {\n\t\tpanic(fmt.Sprintf(\"mailer: total number of receipents including to/cc/bcc can not be greater than %d for customerio\", customerioMaxReceipents))\n\t}\n\tif c.bodyText == \"\" && c.bodyHTML == \"\" {\n\t\tpanic(\"gomailer: you must provide a Text or HTML body\")\n\t}\n}",
"func (m *PaymentServiceItemParam) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateKey(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOrigin(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentServiceItemID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (p *Order) Validate(act coract.Action) (err error) {\n\n\tswitch act {\n\tcase coract.Save:\n\n\t\t// if len(p.Name) > 255 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"name\",\n\t\t// \t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t// \t\tdict.R(corterm.Name), 255)\n\t\t// }\n\n\t\t// if p.Price == 0 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"price\",\n\t\t// \t\tcorerr.VisRequired, dict.R(\"price\"))\n\t\t// }\n\n\t\tif len(p.Description) > 255 {\n\t\t\terr = limberr.AddInvalidParam(err, \"description\",\n\t\t\t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t\t\tdict.R(corterm.Description), 255)\n\t\t}\n\t}\n\n\treturn err\n}",
"func RPCParameterValidator(ctx context.Context,\n\treq interface{},\n\tinfo *grpc.UnaryServerInfo,\n\thandler grpc.UnaryHandler) (interface{}, error) {\n\tstart := time.Now()\n\tvar status interface{}\n\tvar err error = errors.New(\"Parameter validation failed\")\n\n\tlog.Println(\"ServerInterceptor:Parameter Validation - Preprocessing step(s) before calling the handler\", info.FullMethod, req)\n\n\tvalid, status := validateParameters(info.FullMethod, req) // TODO Check if the status can be used eliminating the boolean ? Faced problem with status == nil\n\n\tif valid {\n\t\tlog.Printf(\"ServerInerceptor:Parameter Validation - Invoking handler / Next interceptor - Method:%s\\n\", info.FullMethod)\n\t\tstatus, err = handler(ctx, req)\n\t\tlog.Printf(\"ServerInterceptor:Parameter Validation - Response from handler - Method:%s\\tDuration:%s\\tError:%v\\n\",\n\t\t\tinfo.FullMethod,\n\t\t\ttime.Since(start),\n\t\t\terr)\n\n\t\tlog.Println(\"ServerInterceptor:Parameter Validation - Postprocessing step(s) after calling the handler\")\n\t} else {\n\t\tlog.Print(\"ServerInterceptor:Parameter Validation failed with \", status)\n\t\terr = errors.New(\"Parameter validation failed\")\n\t}\n\n\treturn status, err\n}",
"func CheckParams(params Setting, passwordType string) bool {\n\n\tminLen := params.MinLength\n\tminSpecials := params.MinSpecialCharacters\n\tminDigits := params.MinDigits\n\tminLowers := params.MinLowercase\n\tminUppers := params.MinUppercase\n\n\tif minLen < AbsoluteMinLen ||\n\t\tminDigits < config[passwordType].MinDigits ||\n\t\tminLowers < config[passwordType].MinLowercase ||\n\t\tminUppers < config[passwordType].MinUppercase ||\n\t\tminSpecials < config[passwordType].MinSpecialCharacters {\n\t\treturn false\n\t}\n\n\treturn true\n}",
"func validateOrderDetails(tx db.Tx, order *model.Order, privs model.Privilege) bool {\n\n\torder.Created = time.Now()\n\n\t// Office notes are allowed only by office staff.\n\tif order.ONote != \"\" && privs&model.PrivManageOrders == 0 {\n\t\treturn false\n\t}\n\n\t// Remove any lines with zero quantity. Make sure there's at least one\n\t// line left.\n\tvar j = 0\n\tfor i := range order.Lines {\n\t\tif order.Lines[i].Quantity < 0 {\n\t\t\treturn false\n\t\t}\n\t\tif order.Lines[i].Quantity != 0 {\n\t\t\torder.Lines[j] = order.Lines[i]\n\t\t\tj++\n\t\t}\n\t}\n\torder.Lines = order.Lines[:j]\n\tif len(order.Lines) == 0 {\n\t\treturn false\n\t}\n\n\t// Check the validity of each order line.\n\tfor _, line := range order.Lines {\n\n\t\t// Additional constraints by product type:\n\t\tswitch line.Product.Type {\n\t\tcase model.ProdDonation, model.ProdRecording, model.ProdSheetMusic, model.ProdRegistration, model.ProdAuctionItem:\n\t\t\t// Donations, concert recordings, sheet music, auction\n\t\t\t// items, and event registrations must have a quantity\n\t\t\t// of 1.\n\t\t\tif line.Quantity != 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdWardrobe:\n\t\t\tif line.Quantity < 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdTicket:\n\t\t\tif line.Used < 0 || line.Used > line.Quantity*line.Product.TicketCount {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif line.Used != 0 {\n\t\t\t\tvar found bool\n\t\t\t\tfor _, e := range line.Product.Events {\n\t\t\t\t\tif e.Event.ID == line.UsedAt {\n\t\t\t\t\t\tfound = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif !found {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (m *EventChannelParameters) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateBatch(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSMTPSecurity(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (us UsersSVCClient) ValidateOrder(orderId int) (usersvc.Order, usersvc.Plan, error) {\n\tconn, err := common.OpenGRPCConnection(us.host)\n\tif err != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, err\n\t}\n\tdefer conn.Close()\n\n\tclient := grpcusr.NewUserSVCClient(conn)\n\tresp, validateError := client.ValidateOrder(context.Background(), &grpcusr.ValidateOrderRequest{\n\t\tOrderId: int32(orderId),\n\t})\n\n\tif validateError != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, validateError\n\t}\n\n\torder, decodeOrderError := usersvc.DecodeOrder(resp.Order)\n\tif decodeOrderError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, usersvc.Plan{}, decodeOrderError\n\t}\n\n\tplan, decodePlanError := usersvc.DecodePlan(resp.Plan)\n\tif decodePlanError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, *plan, decodePlanError\n\t}\n\n\tif resp.Err != common.ErrorNilString {\n\t\treturn *order, *plan, errors.New(resp.Err)\n\t}\n\n\n\treturn *order, *plan, nil\n}",
"func CheckParameters(r *rest.Request, needed_fields []string) (bool, map[string]string) {\n\tvar result map[string]string\n\tresult = make(map[string]string)\n\tfor _, field := range needed_fields {\n\t\tvalues, _ := r.URL.Query()[field]\n\t\tif len(values) < 1 {\n\t\t\treturn false, result\n\t\t}\n\t\tresult[field] = values[0]\n\t}\n\treturn true, result\n}",
"func ValidateOrderResponseBody(body *OrderResponseBody) (err error) {\n\tif body.ChainID == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"chainId\", \"body\"))\n\t}\n\tif body.ExchangeAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"exchangeAddress\", \"body\"))\n\t}\n\tif body.MakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAddress\", \"body\"))\n\t}\n\tif body.TakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAddress\", \"body\"))\n\t}\n\tif body.FeeRecipientAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"feeRecipientAddress\", \"body\"))\n\t}\n\tif body.SenderAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"senderAddress\", \"body\"))\n\t}\n\tif body.MakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetAmount\", \"body\"))\n\t}\n\tif body.TakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetAmount\", \"body\"))\n\t}\n\tif body.MakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFee\", \"body\"))\n\t}\n\tif body.TakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFee\", \"body\"))\n\t}\n\tif body.ExpirationTimeSeconds == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"expirationTimeSeconds\", \"body\"))\n\t}\n\tif body.Salt == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"salt\", \"body\"))\n\t}\n\tif body.MakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetData\", \"body\"))\n\t}\n\tif body.TakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetData\", \"body\"))\n\t}\n\tif body.MakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFeeAssetData\", \"body\"))\n\t}\n\tif body.TakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFeeAssetData\", \"body\"))\n\t}\n\tif body.Signature == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"signature\", \"body\"))\n\t}\n\tif body.ChainID != nil {\n\t\tif !(*body.ChainID == 1 || *body.ChainID == 3 || *body.ChainID == 4 || *body.ChainID == 42 || *body.ChainID == 1337 || *body.ChainID == 15001) {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidEnumValueError(\"body.chainId\", *body.ChainID, []interface{}{1, 3, 4, 42, 1337, 15001}))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.exchangeAddress\", *body.ExchangeAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, true))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAddress\", *body.MakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAddress\", *body.TakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, true))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, false))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.senderAddress\", *body.SenderAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, true))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetAmount\", *body.MakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetAmount\", *body.MakerAssetAmount, utf8.RuneCountInString(*body.MakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetAmount\", *body.TakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetAmount\", *body.TakerAssetAmount, utf8.RuneCountInString(*body.TakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.MakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFee\", *body.MakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFee\", *body.MakerFee, utf8.RuneCountInString(*body.MakerFee), 100, false))\n\t\t}\n\t}\n\tif body.TakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFee\", *body.TakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFee\", *body.TakerFee, utf8.RuneCountInString(*body.TakerFee), 100, false))\n\t\t}\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\tif utf8.RuneCountInString(*body.ExpirationTimeSeconds) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, utf8.RuneCountInString(*body.ExpirationTimeSeconds), 100, false))\n\t\t}\n\t}\n\tif body.Salt != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.salt\", *body.Salt, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.Salt != nil {\n\t\tif utf8.RuneCountInString(*body.Salt) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.salt\", *body.Salt, utf8.RuneCountInString(*body.Salt), 100, false))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetData\", *body.MakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetData\", *body.TakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.Signature != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.signature\", *body.Signature, \"^0x(([0-9a-fA-F][0-9a-fA-F])+)?$\"))\n\t}\n\treturn\n}",
"func parseCommonParams(ctx *cli.Context, blockDuration uint32) (*poolrpc.Order, error) {\n\tvar (\n\t\targs = ctx.Args()\n\t\tparams = &poolrpc.Order{}\n\t)\n\n\tswitch {\n\tcase ctx.IsSet(\"amt\"):\n\t\tparams.Amt = ctx.Uint64(\"amt\")\n\tcase args.Present():\n\t\tamt, err := parseAmt(args.First())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"unable to decode amount: %v\", err)\n\t\t}\n\t\tparams.Amt = uint64(amt)\n\t\targs = args.Tail()\n\t}\n\n\t// If the minimum channel amount flag wasn't provided, use a default of\n\t// 10% and round to the nearest unit.\n\tminChanAmt := btcutil.Amount(ctx.Uint64(\"min_chan_amt\"))\n\tif minChanAmt == 0 {\n\t\tminChanAmt = order.RoundToNextSupplyUnit(\n\t\t\tbtcutil.Amount(params.Amt) / 10,\n\t\t).ToSatoshis()\n\t}\n\n\t// Verify the minimum channel amount flag has been properly set.\n\tswitch {\n\tcase minChanAmt%order.BaseSupplyUnit != 0:\n\t\treturn nil, fmt.Errorf(\"minimum channel amount %v must be \"+\n\t\t\t\"a multiple of %v\", minChanAmt, order.BaseSupplyUnit)\n\n\tcase minChanAmt < order.BaseSupplyUnit:\n\t\treturn nil, fmt.Errorf(\"minimum channel amount %v is below \"+\n\t\t\t\"required value of %v\", minChanAmt, order.BaseSupplyUnit)\n\n\tcase minChanAmt > btcutil.Amount(params.Amt):\n\t\treturn nil, fmt.Errorf(\"minimum channel amount %v is above \"+\n\t\t\t\"order amount %v\", minChanAmt, btcutil.Amount(params.Amt))\n\t}\n\tparams.MinUnitsMatch = uint32(minChanAmt / order.BaseSupplyUnit)\n\n\tvar err error\n\tparams.TraderKey, err = parseAccountKey(ctx, args)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to parse acct_key: %v\", err)\n\t}\n\n\t// Convert the cmd line flag from sat/vByte to sat/kw which is used\n\t// internally.\n\tsatPerByte := ctx.Uint64(\"max_batch_fee_rate\")\n\tif satPerByte == 0 {\n\t\treturn nil, fmt.Errorf(\"max batch fee rate must be at \" +\n\t\t\t\"least 1 sat/vByte\")\n\t}\n\n\tsatPerKw := chainfee.SatPerKVByte(satPerByte * 1000).FeePerKWeight()\n\n\t// Because of rounding, we ensure the set rate is at least our fee\n\t// floor.\n\tif satPerKw < chainfee.FeePerKwFloor {\n\t\tsatPerKw = chainfee.FeePerKwFloor\n\t}\n\n\tparams.MaxBatchFeeRateSatPerKw = uint64(satPerKw)\n\n\t// We'll map the interest rate specified on the command line to our\n\t// internal \"rate_fixed\" unit.\n\t//\n\t// rate = % / 100\n\t// rate = rateFixed / totalParts\n\t// rateFixed = rate * totalParts\n\tinterestPercent := ctx.Float64(\"interest_rate_percent\")\n\tinterestRate := interestPercent / 100\n\trateFixedFloat := interestRate * order.FeeRateTotalParts\n\n\t// We then take this rate fixed, and divide it by the number of blocks\n\t// as the user wants this rate to be the final lump sum they pay.\n\trateFixed := uint32(rateFixedFloat / float64(blockDuration))\n\n\t// At this point, if this value is less than 1, then we aren't able to\n\t// express it given the current precision allowed by our fixed point.\n\tif rateFixed < 1 {\n\t\treturn nil, fmt.Errorf(\"fixed rate of %v is too small \"+\n\t\t\t\"(%v%% over %v blocks), min is 1 (%v%%)\", rateFixed,\n\t\t\tinterestPercent, blockDuration,\n\t\t\tfloat64(1)/order.FeeRateTotalParts)\n\t}\n\n\tparams.RateFixed = rateFixed\n\n\treturn params, nil\n}",
"func Validate(params Params) (err error) {\n\tif params.Length <= 0 {\n\t\treturn errors.New(\"Length must be more than 0\")\n\t}\n\tif params.Square <= 0 {\n\t\treturn errors.New(\"Square must be more than 0\")\n\t}\n\treturn nil\n}",
"func bindOrderValidationUtils(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := abi.JSON(strings.NewReader(OrderValidationUtilsABI))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil\n}",
"func validateParams() {\n\tif domain == \"\" {\n\t\tprintAndExit(\"-domain is required!\", true)\n\t}\n\n\tif passLength < 1 {\n\t\tprintAndExit(\"-password-length must be a positive number!\", true)\n\t}\n\n\tif passLength < 8 {\n\t\tfmt.Println(\"WARN: -password-length is too short. We will grant your wish, but this might be a security risk. Consider using longer password.\", false)\n\t}\n}",
"func (_obj *Apipayments) Payments_validateRequestedInfo(params *TLpayments_validateRequestedInfo, _opt ...map[string]string) (ret Payments_ValidatedRequestedInfo, err error) {\n\n\tvar length int32\n\tvar have bool\n\tvar ty byte\n\t_os := codec.NewBuffer()\n\terr = params.WriteBlock(_os, 1)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\n\tvar _status map[string]string\n\tvar _context map[string]string\n\tif len(_opt) == 1 {\n\t\t_context = _opt[0]\n\t} else if len(_opt) == 2 {\n\t\t_context = _opt[0]\n\t\t_status = _opt[1]\n\t}\n\t_resp := new(requestf.ResponsePacket)\n\ttarsCtx := context.Background()\n\n\terr = _obj.s.Tars_invoke(tarsCtx, 0, \"payments_validateRequestedInfo\", _os.ToBytes(), _status, _context, _resp)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\n\t_is := codec.NewReader(tools.Int8ToByte(_resp.SBuffer))\n\terr = ret.ReadBlock(_is, 0, true)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\n\tif len(_opt) == 1 {\n\t\tfor k := range _context {\n\t\t\tdelete(_context, k)\n\t\t}\n\t\tfor k, v := range _resp.Context {\n\t\t\t_context[k] = v\n\t\t}\n\t} else if len(_opt) == 2 {\n\t\tfor k := range _context {\n\t\t\tdelete(_context, k)\n\t\t}\n\t\tfor k, v := range _resp.Context {\n\t\t\t_context[k] = v\n\t\t}\n\t\tfor k := range _status {\n\t\t\tdelete(_status, k)\n\t\t}\n\t\tfor k, v := range _resp.Status {\n\t\t\t_status[k] = v\n\t\t}\n\n\t}\n\t_ = length\n\t_ = have\n\t_ = ty\n\treturn ret, nil\n}",
"func (o *GetPostListParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.EnumCase(\"order\", \"query\", *o.Order, []interface{}{\"asc\", \"desc\"}, true); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (s Sort) Valid() error {\n\t_, ok := sortOptions[s]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: sort\")\n\t\tlog.Printf(\"value: %s\", string(s))\n\t\treturn errors.New(\"invalid query param: sort\")\n\t}\n\treturn nil\n}",
"func parseAndCheckParameters(params ...Parameter) (*parameters, error) {\n\tparameters := parameters{\n\t\tlogLevel: zerolog.GlobalLevel(),\n\t}\n\tfor _, p := range params {\n\t\tif params != nil {\n\t\t\tp.apply(¶meters)\n\t\t}\n\t}\n\n\tif parameters.monitor == nil {\n\t\t// Use no-op monitor.\n\t\tparameters.monitor = &noopMonitor{}\n\t}\n\tif parameters.signer == nil {\n\t\treturn nil, errors.New(\"no signer specified\")\n\t}\n\tif parameters.lister == nil {\n\t\treturn nil, errors.New(\"no lister specified\")\n\t}\n\tif parameters.process == nil {\n\t\treturn nil, errors.New(\"no process specified\")\n\t}\n\tif parameters.walletManager == nil {\n\t\treturn nil, errors.New(\"no wallet manager specified\")\n\t}\n\tif parameters.accountManager == nil {\n\t\treturn nil, errors.New(\"no account manager specified\")\n\t}\n\tif parameters.peers == nil {\n\t\treturn nil, errors.New(\"no peers specified\")\n\t}\n\tif parameters.name == \"\" {\n\t\treturn nil, errors.New(\"no name specified\")\n\t}\n\tif parameters.id == 0 {\n\t\treturn nil, errors.New(\"no ID specified\")\n\t}\n\tif parameters.listenAddress == \"\" {\n\t\treturn nil, errors.New(\"no listen address specified\")\n\t}\n\tif len(parameters.serverCert) == 0 {\n\t\treturn nil, errors.New(\"no server certificate specified\")\n\t}\n\tif len(parameters.serverKey) == 0 {\n\t\treturn nil, errors.New(\"no server key specified\")\n\t}\n\n\treturn ¶meters, nil\n}",
"func (m *ModifyOrder) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func isValidParamRates(data RatesData) (result bool, err error) {\n\t// check length of param From\n\tif len(data.From) > 3 || len(data.From) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamFrom\n\t\treturn\n\t}\n\n\t// check length of param To\n\tif len(data.To) > 3 || len(data.To) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamTo\n\t\treturn\n\t}\n\n\t// check date related\n\tresult, err = isValidDate(data.Date)\n\tif err != nil {\n\t\treturn\n\t}\n\n\t// check rates\n\t_, err = strconv.ParseFloat(data.Rates, 64)\n\tif err != nil {\n\t\tlog.Error(err)\n\t\tresult = false\n\t\terr = ErrRatesInvalid\n\t\treturn\n\t}\n\n\tresult = true\n\treturn\n}",
"func isValidParam(data Data) (result bool, err error) {\n\t// check length of param From\n\tif len(data.From) > 3 || len(data.From) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamFrom\n\t\treturn\n\t}\n\n\t// check length of param To\n\tif len(data.To) > 3 || len(data.To) < 3 {\n\t\tresult = false\n\t\terr = ErrInvalidParamTo\n\t\treturn\n\t}\n\n\tresult = true\n\treturn\n}",
"func (params Params) Validate() error {\n\tif params.BasePool.IsNegative() {\n\t\treturn fmt.Errorf(\"base pool should be positive or zero, is %s\", params.BasePool)\n\t}\n\tif params.PoolRecoveryPeriod <= 0 {\n\t\treturn fmt.Errorf(\"pool recovery period should be positive, is %d\", params.PoolRecoveryPeriod)\n\t}\n\tif params.MinStabilitySpread.IsNegative() || params.MinStabilitySpread.GT(sdk.OneDec()) {\n\t\treturn fmt.Errorf(\"market minimum stability spead should be a value between [0,1], is %s\", params.MinStabilitySpread)\n\t}\n\n\treturn nil\n}",
"func (o RequestValidatorOutput) ValidateRequestParameters() pulumi.BoolPtrOutput {\n\treturn o.ApplyT(func(v *RequestValidator) pulumi.BoolPtrOutput { return v.ValidateRequestParameters }).(pulumi.BoolPtrOutput)\n}",
"func (m FreeAddressesRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tfor i := 0; i < len(m); i++ {\n\n\t\tif err := validate.Pattern(strconv.Itoa(i), \"body\", m[i], `^([0-9]{1,3}\\.){3}[0-9]{1,3}\\/[0-9]|[1-2][0-9]|3[0-2]?$`); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (order *Order) Valid() bool {\n\tif order.ID == 0 {\n\t\treturn false\n\t}\n\tswitch order.EventType {\n\tcase CommandType_NewOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitch order.Type {\n\t\t\tcase OrderType_Limit:\n\t\t\t\treturn order.Price != 0 && order.Amount != 0\n\t\t\tcase OrderType_Market:\n\t\t\t\treturn order.Funds != 0 && order.Amount != 0\n\t\t\t}\n\t\t}\n\tcase CommandType_CancelOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tif order.Type == OrderType_Limit {\n\t\t\t\treturn order.Price != 0\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (params Params) Validate() error {\n\tif err := ValidateNicknameParams(params.Nickname); err != nil {\n\t\treturn err\n\t}\n\n\tif err := ValidateDTagParams(params.DTag); err != nil {\n\t\treturn err\n\t}\n\n\tif err := ValidateBioParams(params.Bio); err != nil {\n\t\treturn err\n\t}\n\n\treturn ValidateOracleParams(params.Oracle)\n}",
"func (o *GetOrderShipmentOKBodyShippingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func ValidateParameters(r *Request) {\n\tif r.ParamsFilled() {\n\t\tv := validator{errors: []string{}}\n\t\tv.validateAny(reflect.ValueOf(r.Params), \"\")\n\n\t\tif count := len(v.errors); count > 0 {\n\t\t\tformat := \"%d validation errors:\\n- %s\"\n\t\t\tmsg := fmt.Sprintf(format, count, strings.Join(v.errors, \"\\n- \"))\n\t\t\tr.Error = apierr.New(\"InvalidParameter\", msg, nil)\n\t\t}\n\t}\n}",
"func (m *SearchOrdersFulfillmentFilter) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func checkArguments(hash string, privateKey string) bool {\n\t// easy check\n\t// if len(hash) != 46 || len(privateKey) != 64 {\n\t// \treturn false\n\t// }\n\n\treturn true\n}",
"func validateParameters(task Task, parameters map[string]string) error {\n\tvalidParams := make(map[string]bool)\n\tvar missingParams []string\n\tfor _, reqParam := range task.RequiredParameters() {\n\t\tif _, ok := parameters[reqParam]; ok {\n\t\t\tvalidParams[reqParam] = true\n\t\t} else {\n\t\t\tmissingParams = append(missingParams, reqParam)\n\t\t}\n\t}\n\tif len(missingParams) > 0 {\n\t\treturn fmt.Errorf(\"required parameters are missing: %v\", missingParams)\n\t}\n\tfor _, optParam := range task.OptionalParameters() {\n\t\tvalidParams[optParam] = true\n\t}\n\tfor param := range parameters {\n\t\tif !validParams[param] {\n\t\t\treturn fmt.Errorf(\"parameter %v is not allowed. Allowed required parameters: %v optional parameters: %v\",\n\t\t\t\tparam, task.RequiredParameters(), task.OptionalParameters())\n\t\t}\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (m *Order) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SalesDataOrderExtensionInterface) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCompanyOrderAttributes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftCards(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftMessage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateItemAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateShippingAssignments(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (eo *AddEnvParameters) Validate() error {\n\treturn nil\n}",
"func (m *OrderEntry) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (p *ParamClient) Valid() string {\n\tp.Init = utl.ReturnIf(p.Init <= 0, 0, p.Init).(int)\n\tp.Limit = utl.ReturnIf(p.Limit <= 10, 10, p.Limit).(int)\n\tp.Sort = utl.ReturnIf(!utl.IsNilStr(p.Sort), ASC, p.Sort).(string)\n\tp.SortField = utl.ReturnIf(!utl.IsNilStr(p.SortField), \"name\", p.SortField).(string)\n\tif !utl.InStr(strings.ToLower(p.Sort), ASC, DESC) {\n\t\treturn \"PET08\"\n\t}\n\tif !utl.InStr(strings.ToLower(p.SortField), Colums...) {\n\t\treturn \"PET08\"\n\t}\n\treturn \"\"\n}",
"func TestInvalidParams(t *testing.T) {\n\tvalidator, err := openrtb_ext.NewBidderParamsValidator(\"../../static/bidder-params\")\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to fetch the json-schemas. %v\", err)\n\t}\n\n\tfor _, invalidParam := range invalidParams {\n\t\tif err := validator.Validate(openrtb_ext.BidderSmartAdserver, json.RawMessage(invalidParam)); err == nil {\n\t\t\tt.Errorf(\"Schema allowed unexpected params: %s\", invalidParam)\n\t\t}\n\t}\n}",
"func (m EveroutePackageOrderByInput) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateEveroutePackageOrderByInputEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (w *Watcher) ValidateAndStoreValidOrdersV4(ctx context.Context, orders []*zeroex.SignedOrderV4, chainID int, pinned bool, opts *types.AddOrdersOpts) (*ordervalidator.ValidationResults, error) {\n\tif len(orders) == 0 {\n\t\treturn &ordervalidator.ValidationResults{}, nil\n\t}\n\tresults, validMeshOrders, err := w.meshSpecificOrderValidationV4(orders, chainID, pinned)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvalidationBlock, zeroexResults, err := w.onchainOrderValidationV4(ctx, validMeshOrders)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresults.Accepted = append(results.Accepted, zeroexResults.Accepted...)\n\tresults.Rejected = append(results.Rejected, zeroexResults.Rejected...)\n\n\t// Filter out only the new orders.\n\tnewOrderInfos := []*ordervalidator.AcceptedOrderInfo{}\n\tfor _, acceptedOrderInfo := range results.Accepted {\n\t\t// If the order isn't new, we don't add to OrderWatcher.\n\t\tif acceptedOrderInfo.IsNew {\n\t\t\tnewOrderInfos = append(newOrderInfos, acceptedOrderInfo)\n\t\t}\n\t}\n\n\tif opts.KeepCancelled || opts.KeepExpired || opts.KeepFullyFilled || opts.KeepUnfunded {\n\t\tfor _, rejectedOrderInfo := range zeroexResults.Rejected {\n\t\t\t// NOTE(jalextowle): We can use the rejectedOrderInfo.Status\n\t\t\t// field to see whether or not the order is new or not. If\n\t\t\t// the order has already been stored, the rejectedOrderInfo.Status\n\t\t\t// field will be ordervalidator.ROOrderAlreadyStoredAndUnfillable.\n\t\t\t// If the rejection reason involves on-chain validation, then the\n\t\t\t// order is new.\n\t\t\tif (opts.KeepCancelled && rejectedOrderInfo.Status.Code == ordervalidator.ROCancelled.Code) ||\n\t\t\t\t(opts.KeepExpired && rejectedOrderInfo.Status.Code == ordervalidator.ROExpired.Code) ||\n\t\t\t\t(opts.KeepFullyFilled && rejectedOrderInfo.Status.Code == ordervalidator.ROFullyFilled.Code) ||\n\t\t\t\t(opts.KeepUnfunded && rejectedOrderInfo.Status.Code == ordervalidator.ROUnfunded.Code) {\n\t\t\t\tnewOrderInfos = append(newOrderInfos, &ordervalidator.AcceptedOrderInfo{\n\t\t\t\t\tOrderHash: rejectedOrderInfo.OrderHash,\n\t\t\t\t\tSignedOrder: rejectedOrderInfo.SignedOrder,\n\t\t\t\t\tSignedOrderV4: rejectedOrderInfo.SignedOrderV4,\n\t\t\t\t\t// TODO(jalextowle): Verify that this is consistent with the OrderWatcher\n\t\t\t\t\tFillableTakerAssetAmount: big.NewInt(0),\n\t\t\t\t\tIsNew: true,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n\n\t// Add the order to the OrderWatcher. This also saves the order in the\n\t// database.\n\tallOrderEvents := []*zeroex.OrderEvent{}\n\torderEvents, err := w.add(newOrderInfos, validationBlock, pinned, opts)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tallOrderEvents = append(allOrderEvents, orderEvents...)\n\n\tif len(allOrderEvents) > 0 {\n\t\t// NOTE(albrow): Send can block if the subscriber(s) are slow. Blocking here can cause problems when Mesh is\n\t\t// shutting down, so to prevent that, we call Send in a goroutine and return immediately if the context\n\t\t// is done.\n\t\tdone := make(chan interface{})\n\t\tgo func() {\n\t\t\tw.orderFeed.Send(allOrderEvents)\n\t\t\tdone <- struct{}{}\n\t\t}()\n\t\tselect {\n\t\tcase <-done:\n\t\t\treturn results, nil\n\t\tcase <-ctx.Done():\n\t\t\treturn results, nil\n\t\t}\n\t}\n\n\treturn results, nil\n}",
"func (m *WasmParams) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (s *OpencxAuctionServer) validateEncryptedOrder(order *match.EncryptedAuctionOrder) (err error) {\n\n\tvar rswPuzzle *rsw.PuzzleRSW\n\tvar ok bool\n\tif rswPuzzle, ok = order.OrderPuzzle.(*rsw.PuzzleRSW); !ok {\n\t\terr = fmt.Errorf(\"Puzzle could not be converted to RSW puzzle, invalid encrypted order\")\n\t\treturn\n\t}\n\n\tif uint64(rswPuzzle.T.Int64()) != s.t {\n\t\terr = fmt.Errorf(\"The time to solve the puzzle is not correct, invalid encrypted order\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (tx *Hello) Validate(p types.Process, loader types.LoaderWrapper, signers []common.PublicHash) error {\n\tsp := p.(*HelloWorld)\n\n\tif has, err := loader.HasAccount(tx.From()); err != nil {\n\t\treturn err\n\t} else if !has {\n\t\treturn types.ErrNotExistAccount\n\t}\n\n\tfromAcc, err := loader.Account(tx.From())\n\tif err != nil {\n\t\treturn err\n\t}\n\tif err := fromAcc.Validate(loader, signers); err != nil {\n\t\treturn err\n\t}\n\n\tif err := sp.vault.CheckFeePayableWith(p, loader, tx, nil); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func VerifyParameters(key string, qs map[string]interface{}) bool {\n\tparams := url.Values{}\n\n\tfor k, v := range qs {\n\t\ts, ok := v.(string)\n\t\tif ok {\n\t\t\tparams.Set(k, s)\n\t\t\tcontinue\n\t\t}\n\n\t\tl, ok := v.([]string)\n\t\tif ok {\n\t\t\tfor i := range l {\n\t\t\t\tparams.Add(k, l[i])\n\t\t\t}\n\t\t}\n\t}\n\n\treturn VerifySign(key, params.Encode())\n}",
"func (s *OpencxAuctionServer) validateOrderResult(claimedAuction [32]byte, result *match.OrderPuzzleResult) (err error) {\n\n\tif result == nil {\n\t\terr = fmt.Errorf(\"Result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Auction == nil {\n\t\terr = fmt.Errorf(\"Auction in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Encrypted == nil {\n\t\terr = fmt.Errorf(\"Encrypted order in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\tlogging.Infof(\"Validating order by pubkey %x\", result.Auction.Pubkey)\n\n\tif result.Err != nil {\n\t\terr = fmt.Errorf(\"Validation detected error early: %s\", result.Err)\n\t\treturn\n\t}\n\n\tif _, err = result.Auction.Price(); err != nil {\n\t\terr = fmt.Errorf(\"Orders with an indeterminable price are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !result.Auction.IsBuySide() && !result.Auction.IsSellSide() {\n\t\terr = fmt.Errorf(\"Orders that aren't buy or sell side are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// We could use pub key hashes here but there might not be any reason for it\n\tvar orderPublicKey *koblitz.PublicKey\n\tif orderPublicKey, err = koblitz.ParsePubKey(result.Auction.Pubkey[:], koblitz.S256()); err != nil {\n\t\terr = fmt.Errorf(\"Orders with a public key that cannot be parsed are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// e = h(asset)\n\tsha3 := sha3.New256()\n\tsha3.Write(result.Auction.SerializeSignable())\n\te := sha3.Sum(nil)\n\n\tvar recoveredPublickey *koblitz.PublicKey\n\tif recoveredPublickey, _, err = koblitz.RecoverCompact(koblitz.S256(), result.Auction.Signature, e); err != nil {\n\t\terr = fmt.Errorf(\"Orders whose signature cannot be verified with pubkey recovery are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !recoveredPublickey.IsEqual(orderPublicKey) {\n\t\terr = fmt.Errorf(\"Recovered public key %x does not equal to pubkey %x in order\", recoveredPublickey.SerializeCompressed(), orderPublicKey.SerializeCompressed())\n\t\treturn\n\t}\n\n\tif !bytes.Equal(result.Encrypted.IntendedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID for decrypted and encrypted order must be equal\")\n\t\treturn\n\t}\n\n\tif !bytes.Equal(claimedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID must equal current auction\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (m *OrderReturnServiceCharge) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAmountMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCatalogObjectID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePercentage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSourceServiceChargeUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalTaxMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (r *Client) validateTemplateParams(t *Template, params []*Parameter) error {\n\tmissing := map[string]interface{}{}\n\t// copy all wanted params into missing\n\tfor k, v := range t.Parameters {\n\t\tmissing[k] = v\n\t}\n\t// remove items from missing list as found\n\tfor wantedKey := range t.Parameters {\n\t\tfor _, param := range params {\n\t\t\tif param.ParameterKey == nil {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\t// phew found it\n\t\t\tif *param.ParameterKey == wantedKey {\n\t\t\t\tdelete(missing, wantedKey)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\t// if any left, then we have an issue\n\tif len(missing) > 0 {\n\t\tkeys := []string{}\n\t\tfor k := range missing {\n\t\t\tkeys = append(keys, k)\n\t\t}\n\t\tkeysCSV := strings.Join(keys, \",\")\n\t\treturn fmt.Errorf(\"missing required input parameters: [%s]\", keysCSV)\n\t}\n\treturn nil\n}",
"func (m *PaymentRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateCreatedAt(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateMoveTaskOrder(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateMoveTaskOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateProofOfServiceDocs(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRecalculationOfPaymentRequestID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateReviewedAt(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateServiceItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (param TOParameter) Validate() error {\n\t// Test\n\t// - Secure Flag is always set to either 1/0\n\t// - Admin rights only\n\t// - Do not allow duplicate parameters by name+config_file+value\n\terrs := validation.Errors{\n\t\tNameQueryParam: validation.Validate(param.Name, validation.Required),\n\t\tConfigFileQueryParam: validation.Validate(param.ConfigFile, validation.Required),\n\t\tValueQueryParam: validation.Validate(param.Value, validation.Required),\n\t}\n\n\treturn util.JoinErrs(tovalidate.ToErrors(errs))\n}",
"func ValidateAndRegisterParams(mapName string, params []provider.QueryParameter) error {\n\tif len(params) == 0 {\n\t\treturn nil\n\t}\n\n\tusedNames := make(map[string]struct{})\n\tusedTokens := make(map[string]struct{})\n\n\tfor _, param := range params {\n\t\tif _, ok := provider.ParamTypeDecoders[param.Type]; !ok {\n\t\t\treturn ErrParamUnknownType{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif len(param.DefaultSQL) > 0 && len(param.DefaultValue) > 0 {\n\t\t\treturn ErrParamTwoDefaults{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif len(param.DefaultValue) > 0 {\n\t\t\tdecoderFn := provider.ParamTypeDecoders[param.Type]\n\t\t\tif _, err := decoderFn(param.DefaultValue); err != nil {\n\t\t\t\treturn ErrParamInvalidDefault{\n\t\t\t\t\tMapName: string(mapName),\n\t\t\t\t\tParameter: param,\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif _, ok := ReservedTokens[param.Token]; ok {\n\t\t\treturn ErrParamTokenReserved{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif !provider.ParameterTokenRegexp.MatchString(param.Token) {\n\t\t\treturn ErrParamBadTokenName{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif _, ok := usedNames[param.Name]; ok {\n\t\t\treturn ErrParamDuplicateName{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tif _, ok := usedTokens[param.Token]; ok {\n\t\t\treturn ErrParamDuplicateToken{\n\t\t\t\tMapName: string(mapName),\n\t\t\t\tParameter: param,\n\t\t\t}\n\t\t}\n\n\t\tusedNames[param.Name] = struct{}{}\n\t\tusedTokens[param.Token] = struct{}{}\n\t}\n\n\t// Mark all used tokens as reserved\n\tfor token := range usedTokens {\n\t\tReservedTokens[token] = struct{}{}\n\t}\n\n\treturn nil\n}",
"func TestParameters(t *testing.T) {\n\tcfg, _ := newTestConfig()\n\tmanager := NewManager(cfg)\n\n\tchanID := lnwire.NewShortChanIDFromInt(1)\n\n\t// Start with the case where we have no rules set.\n\tstartParams := manager.GetParameters()\n\trequire.Equal(t, defaultParameters, startParams)\n\n\t// Mutate the parameters returned by our get function.\n\tstartParams.ChannelRules[chanID] = &SwapRule{\n\t\tThresholdRule: NewThresholdRule(1, 1),\n\t\tType: swap.TypeOut,\n\t}\n\n\t// Make sure that we have not mutated the liquidity manager's params\n\t// by making this change.\n\tparams := manager.GetParameters()\n\trequire.Equal(t, defaultParameters, params)\n\n\t// Provide a valid set of parameters and validate assert that they are\n\t// set.\n\toriginalRule := &SwapRule{\n\t\tThresholdRule: NewThresholdRule(10, 10),\n\t\tType: swap.TypeOut,\n\t}\n\n\texpected := defaultParameters\n\texpected.ChannelRules = map[lnwire.ShortChannelID]*SwapRule{\n\t\tchanID: originalRule,\n\t}\n\n\terr := manager.setParameters(context.Background(), expected)\n\trequire.NoError(t, err)\n\n\t// Check that changing the parameters we just set does not mutate\n\t// our liquidity manager's parameters.\n\texpected.ChannelRules[chanID] = &SwapRule{\n\t\tThresholdRule: NewThresholdRule(11, 11),\n\t\tType: swap.TypeOut,\n\t}\n\n\tparams = manager.GetParameters()\n\trequire.NoError(t, err)\n\trequire.Equal(t, originalRule, params.ChannelRules[chanID])\n\n\t// Set invalid parameters and assert that we fail.\n\texpected.ChannelRules = map[lnwire.ShortChannelID]*SwapRule{\n\t\tlnwire.NewShortChanIDFromInt(0): {\n\t\t\tThresholdRule: NewThresholdRule(1, 2),\n\t\t\tType: swap.TypeOut,\n\t\t},\n\t}\n\terr = manager.setParameters(context.Background(), expected)\n\trequire.Equal(t, ErrZeroChannelID, err)\n}",
"func validateAdditionalParameters(bucketName string, namespace string, spec nbv1.BucketClassSpec, isCLI bool) error {\n\tplacementPolicy := spec.PlacementPolicy\n\tif err := validations.ValidatePlacementPolicy(placementPolicy, namespace); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid placementPolicy %v, %v\", bucketName, placementPolicy, err),\n\t\t}\n\t}\n\n\tnamespacePolicy := spec.NamespacePolicy\n\tif err := validations.ValidateNamespacePolicy(namespacePolicy, namespace); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid namespacePolicy %v, %v\", bucketName, namespacePolicy, err),\n\t\t}\n\t}\n\n\treplicationPolicy := spec.ReplicationPolicy\n\tif err := validations.ValidateReplicationPolicy(bucketName, replicationPolicy, false, isCLI); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid replicationPolicy %v, %v\", bucketName, replicationPolicy, err),\n\t\t}\n\t}\n\n\tquota := spec.Quota\n\tif err := validations.ValidateQuotaConfig(bucketName, quota); err != nil {\n\t\treturn util.ValidationError{\n\t\t\tMsg: fmt.Sprintf(\"cosi bucket claim %q validation error: invalid quota %v, %v\", bucketName, quota, err),\n\t\t}\n\t}\n\treturn nil\n}",
"func (m OrdersType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrdersTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *PTXServiceDTOBusSpecificationV3Operator) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateOperatorCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorEmail(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorPhone(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperatorURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func validatePayment(order *model.Order) bool {\n\tvar total int\n\n\t// Calculate the order total.\n\tfor _, ol := range order.Lines {\n\t\ttotal += ol.Price * ol.Quantity\n\t}\n\t// If this is a free order, it's OK if there is no payment.\n\tif total == 0 && len(order.Payments) == 0 {\n\t\treturn true\n\t}\n\t// Otherwise, there should be exactly one payment.\n\tif len(order.Payments) != 1 {\n\t\treturn false\n\t}\n\t// And it should have the correct amount.\n\tvar pmt = order.Payments[0]\n\tif pmt.Amount != total {\n\t\treturn false\n\t}\n\t// If this is a free order and has a payment, its type must be \"cash\".\n\t// We remove it; no point in storing a zero payment.\n\tif pmt.Amount == 0 {\n\t\tif pmt.Type != model.PaymentCash {\n\t\t\treturn false\n\t\t}\n\t\torder.Payments = order.Payments[:0]\n\t\treturn true\n\t}\n\tpmt.Created = order.Created\n\treturn true\n}",
"func validateGenerateEutranVectorInputs(key []byte, opc []byte, sqn uint64, plmn []byte) error {\n\tif err := validateGenerateSIPAuthVectorInputs(key, opc, sqn); err != nil {\n\t\treturn err\n\t}\n\tif len(plmn) != ExpectedPlmnBytes {\n\t\treturn fmt.Errorf(\"incorrect plmn size. Expected 3 bytes, but got %v bytes\", len(plmn))\n\t}\n\treturn nil\n}",
"func (m *RetrieveOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (ts *CPUCmd) ValidateParameters(ctx xcontext.Context, params test.TestStepParameters) error {\n\tctx.Debugf(\"Params %+v\", params)\n\treturn ts.validateAndPopulate(params)\n}",
"func (o *IndexClientCertificatesParams) bindOrder(rawData []string, hasKey bool, formats strfmt.Registry) error {\n\tvar raw string\n\tif len(rawData) > 0 {\n\t\traw = rawData[len(rawData)-1]\n\t}\n\n\t// Required: false\n\t// AllowEmptyValue: false\n\n\tif raw == \"\" { // empty values pass all other validations\n\t\treturn nil\n\t}\n\n\tvalue, err := swag.ConvertBool(raw)\n\tif err != nil {\n\t\treturn errors.InvalidType(\"order\", \"query\", \"bool\", raw)\n\t}\n\to.Order = &value\n\n\treturn nil\n}",
"func (m *PorositySimulationParameters) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateBeamDiameter(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGeometryHeight(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGeometryLength(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGeometryWidth(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateHatchSpacingValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateHeaterTemperature(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateLaserWattageValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateLayerRotationAngle(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateLayerThicknessValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateMeshLayersPerLayer(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateScanSpeedValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSlicingStripeWidthValues(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartingLayerAngle(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (p *Params) Check() error {\n\t// Validate Memory\n\tif p.Memory < minMemoryValue {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate Iterations\n\tif p.Iterations < 1 {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate Parallelism\n\tif p.Parallelism < 1 {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate salt length\n\tif p.SaltLength < minSaltLength {\n\t\treturn ErrInvalidParams\n\t}\n\n\t// Validate key length\n\tif p.KeyLength < minKeyLength {\n\t\treturn ErrInvalidParams\n\t}\n\n\treturn nil\n}",
"func (o *GetOrderShipmentOKBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBillingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingProvider(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *DynamicOrderState) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m OrdersType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Struct0, signatures [][]byte) (struct {\n\tOrdersInfo []Struct1\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []Struct1\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _OrderValidationUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (cc *ChannelConfig) Validate(channelCapabilities ChannelCapabilities) error {\n\tfor _, validator := range []func() error{\n\t\tcc.validateHashingAlgorithm,\n\t\tcc.validateBlockDataHashingStructure,\n\t} {\n\t\tif err := validator(); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tif !channelCapabilities.OrgSpecificOrdererEndpoints() {\n\t\treturn cc.validateOrdererAddresses()\n\t}\n\n\treturn nil\n}",
"func (p *Params) validateRequiredParameters() error {\n\tif p.Input == nil {\n\t\treturn errors.New(\"Input must not be nil\")\n\t}\n\tif p.Output == nil {\n\t\treturn errors.New(\"Output must not be nil\")\n\t}\n\treturn nil\n}",
"func (p EmptyParameters) Validate() error {\n\treturn nil\n}",
"func verifyArgs() (bool, string) {\n\tvar errMsg string\n\tvar webhookURL string\n\n\tif *auth == \"\" {\n\t\terrMsg = \"Invalid authentication! It must not be empty.\\n\"\n\t\treturn false, errMsg\n\t}\n\n\tif *address == \"\" {\n\t\terrMsg = \"Invalid URL! It must not be empty.\\n\"\n\t\treturn false, errMsg\n\t}\n\n\tif *port < 1025 || *port > 65535 {\n\t\terrMsg = \"Invalid port! Please, check it is between 1025 and 65535.\\n\"\n\t\treturn false, errMsg\n\t}\n\n\tif *prefix != \"\" {\n\t\t*prefix = strings.Trim(*prefix, \"/\")\n\t}\n\n\twebhookURL = fmt.Sprintf(\"%s:%d\", *address, *port)\n\n\treturn true, webhookURL\n}",
"func (m *OrderPaymentInstrument) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorizationStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateBankRoutingNumber(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentBankAccount(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentCard(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentMethodID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *MACCommandADRParamSetupReq) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAdrAckDelayExponent(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAdrAckLimitExponent(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func TestValidatePending(t *testing.T) {\n\tsender, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\tencodedSenderPublicKey, _ := publickey.Encode(&sender.PublicKey)\n\tsenderPKH := hashing.New(encodedSenderPublicKey)\n\trecipient, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\tencodedRecipientPublicKey, _ := publickey.Encode(&recipient.PublicKey)\n\trecipientPKH := hashing.New(encodedRecipientPublicKey)\n\n\tzeroValueContract, _ := contracts.New(1, sender, recipientPKH, 0, 1)\n\tzeroValueContract.Sign(sender)\n\n\tnilSenderContract, _ := contracts.New(1, nil, senderPKH, 500, 1)\n\n\tsenderRecipContract, _ := contracts.New(1, sender, senderPKH, 500, 1)\n\tsenderRecipContract.Sign(sender)\n\n\tinvalidSignatureContract, _ := contracts.New(1, sender, recipientPKH, 500, 1)\n\tinvalidSignatureContract.Sign(recipient)\n\n\tinsufficentFundsContract, _ := contracts.New(1, sender, recipientPKH, 2000000, 1)\n\tinsufficentFundsContract.Sign(sender)\n\n\tinvalidNonceContract, _ := contracts.New(1, sender, recipientPKH, 20, 0)\n\tinvalidNonceContract.Sign(sender)\n\n\tinvalidNonceContract2, _ := contracts.New(1, sender, recipientPKH, 20, 2)\n\tinvalidNonceContract2.Sign(sender)\n\n\t// Start: pBalance = 100, pNonce = 0\n\tvalidFirstContract, _ := contracts.New(1, sender, recipientPKH, 50, 1)\n\tvalidFirstContract.Sign(sender)\n\n\t// pBalance = 50, pNonce = 1\n\tkeyNotInTable, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\tencodedSenderPublicKey, err := publickey.Encode(&keyNotInTable.PublicKey)\n\tif err != nil {\n\t\tt.Errorf(\"failure to encode Sender Public Key: %v\", err)\n\t}\n\tkeyNotInTablePKH := hashing.New(encodedSenderPublicKey)\n\n\tInvalidBalanceContract, _ := contracts.New(1, sender, keyNotInTablePKH, 51, 2)\n\tInvalidBalanceContract.Sign(sender)\n\n\tInvalidNonceContract, _ := contracts.New(1, sender, keyNotInTablePKH, 20, 3)\n\tInvalidNonceContract.Sign(sender)\n\n\tValidSecondContract, _ := contracts.New(1, sender, keyNotInTablePKH, 50, 2)\n\tValidSecondContract.Sign(sender)\n\n\ttests := []struct {\n\t\tname string\n\t\tc *contracts.Contract\n\t\tpBalance uint64\n\t\tpNonce uint64\n\t\twantErr bool\n\t}{\n\t\t{\n\t\t\tname: \"Zero value\",\n\t\t\tc: zeroValueContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Nil sender\",\n\t\t\tc: nilSenderContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Sender == Recipient\",\n\t\t\tc: senderRecipContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid signature\",\n\t\t\tc: invalidSignatureContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Insufficient funds\",\n\t\t\tc: insufficentFundsContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid nonce\",\n\t\t\tc: invalidNonceContract,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid nonce 2\",\n\t\t\tc: invalidNonceContract2,\n\t\t\tpBalance: 1000,\n\t\t\tpNonce: 0,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Totally valid\",\n\t\t\tc: validFirstContract,\n\t\t\tpBalance: 100,\n\t\t\tpNonce: 0,\n\t\t\twantErr: false,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid balance\",\n\t\t\tc: InvalidBalanceContract,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid state nonce\",\n\t\t\tc: InvalidNonceContract,\n\t\t\twantErr: true,\n\t\t},\n\t\t{\n\t\t\tname: \"Totally valid 2\",\n\t\t\tc: ValidSecondContract,\n\t\t\twantErr: false,\n\t\t},\n\t}\n\n\tvar updatedBal uint64\n\tvar updatedNonce uint64\n\tfor i, tt := range tests {\n\t\tt.Run(tt.name, func(t *testing.T) {\n\t\t\tif i > 7 {\n\t\t\t\ttt.pBalance = updatedBal\n\t\t\t\ttt.pNonce = updatedNonce\n\t\t\t}\n\n\t\t\tvar err error\n\t\t\terr = ValidatePending(tt.c, &tt.pBalance, &tt.pNonce)\n\t\t\tif (err != nil) != tt.wantErr {\n\t\t\t\tt.Errorf(\"ValidatePending() error = %v, wantErr %v\", err, tt.wantErr)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tupdatedBal = tt.pBalance\n\t\t\tupdatedNonce = tt.pNonce\n\t\t})\n\t}\n}",
"func ValidateGetActiveOrderInternalResponseBody(body *GetActiveOrderInternalResponseBody) (err error) {\n\tif body.Name == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"name\", \"body\"))\n\t}\n\tif body.ID == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"id\", \"body\"))\n\t}\n\tif body.Message == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"message\", \"body\"))\n\t}\n\tif body.Temporary == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"temporary\", \"body\"))\n\t}\n\tif body.Timeout == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"timeout\", \"body\"))\n\t}\n\tif body.Fault == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"fault\", \"body\"))\n\t}\n\treturn\n}"
] | [
"0.8657237",
"0.8524161",
"0.68663687",
"0.6856945",
"0.67735016",
"0.57662535",
"0.55162394",
"0.53679186",
"0.5312891",
"0.5240513",
"0.5211847",
"0.5203238",
"0.5200975",
"0.5195123",
"0.51407987",
"0.51358485",
"0.51330745",
"0.51204675",
"0.5108479",
"0.50965375",
"0.5093494",
"0.50768566",
"0.5062332",
"0.504703",
"0.5028423",
"0.50102407",
"0.5009916",
"0.49911237",
"0.4968428",
"0.49506316",
"0.49497423",
"0.494902",
"0.49422815",
"0.49128968",
"0.4903232",
"0.48992285",
"0.48871946",
"0.48712534",
"0.4849251",
"0.48482507",
"0.48473388",
"0.48462683",
"0.48412052",
"0.48401883",
"0.482757",
"0.4820035",
"0.48140094",
"0.48077995",
"0.48054302",
"0.47804028",
"0.4778833",
"0.47757703",
"0.4767379",
"0.47517893",
"0.47459918",
"0.47423467",
"0.47315314",
"0.47244862",
"0.4724309",
"0.47173023",
"0.47109222",
"0.47094712",
"0.46915057",
"0.4682238",
"0.4675111",
"0.46664578",
"0.4663651",
"0.4659164",
"0.46566972",
"0.4651149",
"0.46326503",
"0.46313912",
"0.46294892",
"0.46193057",
"0.46166238",
"0.46155745",
"0.46036878",
"0.46010387",
"0.46003264",
"0.45897",
"0.45896772",
"0.45895216",
"0.45840377",
"0.45831665",
"0.45683378",
"0.4565416",
"0.45569837",
"0.45472485",
"0.45400402",
"0.45387843",
"0.4531709",
"0.45292342",
"0.45289478",
"0.45228446",
"0.45186105",
"0.45174477",
"0.4515073",
"0.45085505",
"0.45054635",
"0.450339"
] | 0.85963976 | 1 |
ValidateOrder is a free data retrieval call binding the contract method 0x60bef33a. Solidity: function validateOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, uint8 v, bytes32 r, bytes32 s) constant returns(bool) | func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _WyvernExchange.contract.Call(opts, out, "validateOrder_", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)
return *ret0, err
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrderParameters(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrderParameters_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (us UsersSVCClient) ValidateOrder(orderId int) (usersvc.Order, usersvc.Plan, error) {\n\tconn, err := common.OpenGRPCConnection(us.host)\n\tif err != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, err\n\t}\n\tdefer conn.Close()\n\n\tclient := grpcusr.NewUserSVCClient(conn)\n\tresp, validateError := client.ValidateOrder(context.Background(), &grpcusr.ValidateOrderRequest{\n\t\tOrderId: int32(orderId),\n\t})\n\n\tif validateError != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, validateError\n\t}\n\n\torder, decodeOrderError := usersvc.DecodeOrder(resp.Order)\n\tif decodeOrderError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, usersvc.Plan{}, decodeOrderError\n\t}\n\n\tplan, decodePlanError := usersvc.DecodePlan(resp.Plan)\n\tif decodePlanError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, *plan, decodePlanError\n\t}\n\n\tif resp.Err != common.ErrorNilString {\n\t\treturn *order, *plan, errors.New(resp.Err)\n\t}\n\n\n\treturn *order, *plan, nil\n}",
"func (m *Order) Validate() error {\n\treturn m.validate(false)\n}",
"func (p *Order) Validate(act coract.Action) (err error) {\n\n\tswitch act {\n\tcase coract.Save:\n\n\t\t// if len(p.Name) > 255 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"name\",\n\t\t// \t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t// \t\tdict.R(corterm.Name), 255)\n\t\t// }\n\n\t\t// if p.Price == 0 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"price\",\n\t\t// \t\tcorerr.VisRequired, dict.R(\"price\"))\n\t\t// }\n\n\t\tif len(p.Description) > 255 {\n\t\t\terr = limberr.AddInvalidParam(err, \"description\",\n\t\t\t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t\t\tdict.R(corterm.Description), 255)\n\t\t}\n\t}\n\n\treturn err\n}",
"func (m *Order) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (w *Watcher) ValidateAndStoreValidOrdersV4(ctx context.Context, orders []*zeroex.SignedOrderV4, chainID int, pinned bool, opts *types.AddOrdersOpts) (*ordervalidator.ValidationResults, error) {\n\tif len(orders) == 0 {\n\t\treturn &ordervalidator.ValidationResults{}, nil\n\t}\n\tresults, validMeshOrders, err := w.meshSpecificOrderValidationV4(orders, chainID, pinned)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvalidationBlock, zeroexResults, err := w.onchainOrderValidationV4(ctx, validMeshOrders)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresults.Accepted = append(results.Accepted, zeroexResults.Accepted...)\n\tresults.Rejected = append(results.Rejected, zeroexResults.Rejected...)\n\n\t// Filter out only the new orders.\n\tnewOrderInfos := []*ordervalidator.AcceptedOrderInfo{}\n\tfor _, acceptedOrderInfo := range results.Accepted {\n\t\t// If the order isn't new, we don't add to OrderWatcher.\n\t\tif acceptedOrderInfo.IsNew {\n\t\t\tnewOrderInfos = append(newOrderInfos, acceptedOrderInfo)\n\t\t}\n\t}\n\n\tif opts.KeepCancelled || opts.KeepExpired || opts.KeepFullyFilled || opts.KeepUnfunded {\n\t\tfor _, rejectedOrderInfo := range zeroexResults.Rejected {\n\t\t\t// NOTE(jalextowle): We can use the rejectedOrderInfo.Status\n\t\t\t// field to see whether or not the order is new or not. If\n\t\t\t// the order has already been stored, the rejectedOrderInfo.Status\n\t\t\t// field will be ordervalidator.ROOrderAlreadyStoredAndUnfillable.\n\t\t\t// If the rejection reason involves on-chain validation, then the\n\t\t\t// order is new.\n\t\t\tif (opts.KeepCancelled && rejectedOrderInfo.Status.Code == ordervalidator.ROCancelled.Code) ||\n\t\t\t\t(opts.KeepExpired && rejectedOrderInfo.Status.Code == ordervalidator.ROExpired.Code) ||\n\t\t\t\t(opts.KeepFullyFilled && rejectedOrderInfo.Status.Code == ordervalidator.ROFullyFilled.Code) ||\n\t\t\t\t(opts.KeepUnfunded && rejectedOrderInfo.Status.Code == ordervalidator.ROUnfunded.Code) {\n\t\t\t\tnewOrderInfos = append(newOrderInfos, &ordervalidator.AcceptedOrderInfo{\n\t\t\t\t\tOrderHash: rejectedOrderInfo.OrderHash,\n\t\t\t\t\tSignedOrder: rejectedOrderInfo.SignedOrder,\n\t\t\t\t\tSignedOrderV4: rejectedOrderInfo.SignedOrderV4,\n\t\t\t\t\t// TODO(jalextowle): Verify that this is consistent with the OrderWatcher\n\t\t\t\t\tFillableTakerAssetAmount: big.NewInt(0),\n\t\t\t\t\tIsNew: true,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n\n\t// Add the order to the OrderWatcher. This also saves the order in the\n\t// database.\n\tallOrderEvents := []*zeroex.OrderEvent{}\n\torderEvents, err := w.add(newOrderInfos, validationBlock, pinned, opts)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tallOrderEvents = append(allOrderEvents, orderEvents...)\n\n\tif len(allOrderEvents) > 0 {\n\t\t// NOTE(albrow): Send can block if the subscriber(s) are slow. Blocking here can cause problems when Mesh is\n\t\t// shutting down, so to prevent that, we call Send in a goroutine and return immediately if the context\n\t\t// is done.\n\t\tdone := make(chan interface{})\n\t\tgo func() {\n\t\t\tw.orderFeed.Send(allOrderEvents)\n\t\t\tdone <- struct{}{}\n\t\t}()\n\t\tselect {\n\t\tcase <-done:\n\t\t\treturn results, nil\n\t\tcase <-ctx.Done():\n\t\t\treturn results, nil\n\t\t}\n\t}\n\n\treturn results, nil\n}",
"func (order *Order) Valid() bool {\n\tif order.ID == 0 {\n\t\treturn false\n\t}\n\tswitch order.EventType {\n\tcase CommandType_NewOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitch order.Type {\n\t\t\tcase OrderType_Limit:\n\t\t\t\treturn order.Price != 0 && order.Amount != 0\n\t\t\tcase OrderType_Market:\n\t\t\t\treturn order.Funds != 0 && order.Amount != 0\n\t\t\t}\n\t\t}\n\tcase CommandType_CancelOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tif order.Type == OrderType_Limit {\n\t\t\t\treturn order.Price != 0\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (m *MarketIfTouchedOrderRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePositionFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTimeInForce(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTradeClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTriggerCondition(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (o *GetV1LoansParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.Enum(\"order\", \"query\", *o.Order, []interface{}{\"amount\", \"end_at\", \"score\"}); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (m *ModifyOrder) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (app *App) AddOrders(signedOrdersRaw []*json.RawMessage) (*zeroex.ValidationResults, error) {\n\tallValidationResults := &zeroex.ValidationResults{\n\t\tAccepted: []*zeroex.AcceptedOrderInfo{},\n\t\tRejected: []*zeroex.RejectedOrderInfo{},\n\t}\n\tschemaValidOrders := []*zeroex.SignedOrder{}\n\tfor _, signedOrderRaw := range signedOrdersRaw {\n\t\tsignedOrderBytes := []byte(*signedOrderRaw)\n\t\tresult, err := app.schemaValidateOrder(signedOrderBytes)\n\t\tif err != nil {\n\t\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t\tsignedOrder = nil\n\t\t\t}\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Info(\"Unexpected error while attempting to validate signedOrderJSON against schema\")\n\t\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, &zeroex.RejectedOrderInfo{\n\t\t\t\tSignedOrder: signedOrder,\n\t\t\t\tKind: MeshValidation,\n\t\t\t\tStatus: zeroex.RejectedOrderStatus{\n\t\t\t\t\tCode: ROInvalidSchemaCode,\n\t\t\t\t\tMessage: \"order did not pass JSON-schema validation: Malformed JSON or empty payload\",\n\t\t\t\t},\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\t\tif !result.Valid() {\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Info(\"Order failed schema validation\")\n\t\t\tstatus := zeroex.RejectedOrderStatus{\n\t\t\t\tCode: ROInvalidSchemaCode,\n\t\t\t\tMessage: fmt.Sprintf(\"order did not pass JSON-schema validation: %s\", result.Errors()),\n\t\t\t}\n\t\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t\tsignedOrder = nil\n\t\t\t}\n\t\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, &zeroex.RejectedOrderInfo{\n\t\t\t\tSignedOrder: signedOrder,\n\t\t\t\tKind: MeshValidation,\n\t\t\t\tStatus: status,\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\n\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t// This error should never happen since the signedOrder already passed the JSON schema validation above\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Panic(\"Failed to unmarshal SignedOrder\")\n\t\t}\n\t\tschemaValidOrders = append(schemaValidOrders, signedOrder)\n\t}\n\n\tvalidationResults, err := app.validateOrders(schemaValidOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor _, orderInfo := range validationResults.Accepted {\n\t\tallValidationResults.Accepted = append(allValidationResults.Accepted, orderInfo)\n\t}\n\tfor _, orderInfo := range validationResults.Rejected {\n\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, orderInfo)\n\t}\n\n\tfor _, acceptedOrderInfo := range allValidationResults.Accepted {\n\t\terr = app.orderWatcher.Watch(acceptedOrderInfo)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\treturn allValidationResults, nil\n}",
"func (m *OrderEntry) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (s *OpencxAuctionServer) validateOrderResult(claimedAuction [32]byte, result *match.OrderPuzzleResult) (err error) {\n\n\tif result == nil {\n\t\terr = fmt.Errorf(\"Result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Auction == nil {\n\t\terr = fmt.Errorf(\"Auction in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Encrypted == nil {\n\t\terr = fmt.Errorf(\"Encrypted order in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\tlogging.Infof(\"Validating order by pubkey %x\", result.Auction.Pubkey)\n\n\tif result.Err != nil {\n\t\terr = fmt.Errorf(\"Validation detected error early: %s\", result.Err)\n\t\treturn\n\t}\n\n\tif _, err = result.Auction.Price(); err != nil {\n\t\terr = fmt.Errorf(\"Orders with an indeterminable price are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !result.Auction.IsBuySide() && !result.Auction.IsSellSide() {\n\t\terr = fmt.Errorf(\"Orders that aren't buy or sell side are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// We could use pub key hashes here but there might not be any reason for it\n\tvar orderPublicKey *koblitz.PublicKey\n\tif orderPublicKey, err = koblitz.ParsePubKey(result.Auction.Pubkey[:], koblitz.S256()); err != nil {\n\t\terr = fmt.Errorf(\"Orders with a public key that cannot be parsed are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// e = h(asset)\n\tsha3 := sha3.New256()\n\tsha3.Write(result.Auction.SerializeSignable())\n\te := sha3.Sum(nil)\n\n\tvar recoveredPublickey *koblitz.PublicKey\n\tif recoveredPublickey, _, err = koblitz.RecoverCompact(koblitz.S256(), result.Auction.Signature, e); err != nil {\n\t\terr = fmt.Errorf(\"Orders whose signature cannot be verified with pubkey recovery are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !recoveredPublickey.IsEqual(orderPublicKey) {\n\t\terr = fmt.Errorf(\"Recovered public key %x does not equal to pubkey %x in order\", recoveredPublickey.SerializeCompressed(), orderPublicKey.SerializeCompressed())\n\t\treturn\n\t}\n\n\tif !bytes.Equal(result.Encrypted.IntendedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID for decrypted and encrypted order must be equal\")\n\t\treturn\n\t}\n\n\tif !bytes.Equal(claimedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID must equal current auction\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (o Order) Valid() error {\n\t_, ok := orderOptions[o]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: order\")\n\t\tlog.Printf(\"value: %s\", string(o))\n\t\treturn errors.New(\"invalid query param: order\")\n\t}\n\treturn nil\n}",
"func (_EtherDelta *EtherDeltaCaller) Orders(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"orders\", arg0, arg1)\n\treturn *ret0, err\n}",
"func validateOrderDetails(tx db.Tx, order *model.Order, privs model.Privilege) bool {\n\n\torder.Created = time.Now()\n\n\t// Office notes are allowed only by office staff.\n\tif order.ONote != \"\" && privs&model.PrivManageOrders == 0 {\n\t\treturn false\n\t}\n\n\t// Remove any lines with zero quantity. Make sure there's at least one\n\t// line left.\n\tvar j = 0\n\tfor i := range order.Lines {\n\t\tif order.Lines[i].Quantity < 0 {\n\t\t\treturn false\n\t\t}\n\t\tif order.Lines[i].Quantity != 0 {\n\t\t\torder.Lines[j] = order.Lines[i]\n\t\t\tj++\n\t\t}\n\t}\n\torder.Lines = order.Lines[:j]\n\tif len(order.Lines) == 0 {\n\t\treturn false\n\t}\n\n\t// Check the validity of each order line.\n\tfor _, line := range order.Lines {\n\n\t\t// Additional constraints by product type:\n\t\tswitch line.Product.Type {\n\t\tcase model.ProdDonation, model.ProdRecording, model.ProdSheetMusic, model.ProdRegistration, model.ProdAuctionItem:\n\t\t\t// Donations, concert recordings, sheet music, auction\n\t\t\t// items, and event registrations must have a quantity\n\t\t\t// of 1.\n\t\t\tif line.Quantity != 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdWardrobe:\n\t\t\tif line.Quantity < 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdTicket:\n\t\t\tif line.Used < 0 || line.Used > line.Quantity*line.Product.TicketCount {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif line.Used != 0 {\n\t\t\t\tvar found bool\n\t\t\t\tfor _, e := range line.Product.Events {\n\t\t\t\t\tif e.Event.ID == line.UsedAt {\n\t\t\t\t\t\tfound = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif !found {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (o *GetOrderShipmentOKBodyBillingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {\n\treturn _OrderValidationUtils.Contract.contract.Call(opts, result, method, params...)\n}",
"func (_OrderValidationUtils *OrderValidationUtilsRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {\n\treturn _OrderValidationUtils.Contract.OrderValidationUtilsCaller.contract.Call(opts, result, method, params...)\n}",
"func verifyOrder(uname string) []byte {\n\turl := \"http://96.30.245.134:3000/orders/verify\"\n\tpayload := strings.NewReader(\"{\\n\\t\\\"order\\\": {\\n\\t\\t\\\"username\\\": \\\"\" + uname + \"\\\"\\n\\t}\\n}\")\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\treq.Header.Add(\"Accept\", \"*/*\")\n\treq.Header.Add(\"Cache-Control\", \"no-cache\")\n\treq.Header.Add(\"Host\", \"96.30.245.134:3000\")\n\treq.Header.Add(\"Accept-Encoding\", \"gzip, deflate\")\n\treq.Header.Add(\"Content-Length\", \"39\")\n\treq.Header.Add(\"Connection\", \"keep-alive\")\n\treq.Header.Add(\"cache-control\", \"no-cache\")\n\tres, _ := http.DefaultClient.Do(req)\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\t//fmt.Println(res)\n\t//fmt.Println(string(body))\n\treturn body\n\n\t/*\n\t Order does exist response:\n\t {\n\t \"id\": 591,\n\t \"username\": \"test\",\n\t \"created_at\": \"2019-11-15T16:31:21.321Z\",\n\t \"updated_at\": \"2019-11-15T16:31:21.321Z\",\n\t \"url\": \"http://96.30.245.134:3000/orders/591.json\"\n\t }\n\n\t Order does not exist response:\n\t {\n\t \t\"id\": null,\n\t \t\"username\": null,\n\t \t\"created_at\": null,\n\t \t\"updated_at\": null,\n\t \t\"url\": null\n\t }\n\t*/\n}",
"func ValidateOrderResponseBody(body *OrderResponseBody) (err error) {\n\tif body.ChainID == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"chainId\", \"body\"))\n\t}\n\tif body.ExchangeAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"exchangeAddress\", \"body\"))\n\t}\n\tif body.MakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAddress\", \"body\"))\n\t}\n\tif body.TakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAddress\", \"body\"))\n\t}\n\tif body.FeeRecipientAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"feeRecipientAddress\", \"body\"))\n\t}\n\tif body.SenderAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"senderAddress\", \"body\"))\n\t}\n\tif body.MakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetAmount\", \"body\"))\n\t}\n\tif body.TakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetAmount\", \"body\"))\n\t}\n\tif body.MakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFee\", \"body\"))\n\t}\n\tif body.TakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFee\", \"body\"))\n\t}\n\tif body.ExpirationTimeSeconds == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"expirationTimeSeconds\", \"body\"))\n\t}\n\tif body.Salt == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"salt\", \"body\"))\n\t}\n\tif body.MakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetData\", \"body\"))\n\t}\n\tif body.TakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetData\", \"body\"))\n\t}\n\tif body.MakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFeeAssetData\", \"body\"))\n\t}\n\tif body.TakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFeeAssetData\", \"body\"))\n\t}\n\tif body.Signature == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"signature\", \"body\"))\n\t}\n\tif body.ChainID != nil {\n\t\tif !(*body.ChainID == 1 || *body.ChainID == 3 || *body.ChainID == 4 || *body.ChainID == 42 || *body.ChainID == 1337 || *body.ChainID == 15001) {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidEnumValueError(\"body.chainId\", *body.ChainID, []interface{}{1, 3, 4, 42, 1337, 15001}))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.exchangeAddress\", *body.ExchangeAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, true))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAddress\", *body.MakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAddress\", *body.TakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, true))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, false))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.senderAddress\", *body.SenderAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, true))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetAmount\", *body.MakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetAmount\", *body.MakerAssetAmount, utf8.RuneCountInString(*body.MakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetAmount\", *body.TakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetAmount\", *body.TakerAssetAmount, utf8.RuneCountInString(*body.TakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.MakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFee\", *body.MakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFee\", *body.MakerFee, utf8.RuneCountInString(*body.MakerFee), 100, false))\n\t\t}\n\t}\n\tif body.TakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFee\", *body.TakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFee\", *body.TakerFee, utf8.RuneCountInString(*body.TakerFee), 100, false))\n\t\t}\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\tif utf8.RuneCountInString(*body.ExpirationTimeSeconds) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, utf8.RuneCountInString(*body.ExpirationTimeSeconds), 100, false))\n\t\t}\n\t}\n\tif body.Salt != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.salt\", *body.Salt, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.Salt != nil {\n\t\tif utf8.RuneCountInString(*body.Salt) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.salt\", *body.Salt, utf8.RuneCountInString(*body.Salt), 100, false))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetData\", *body.MakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetData\", *body.TakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.Signature != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.signature\", *body.Signature, \"^0x(([0-9a-fA-F][0-9a-fA-F])+)?$\"))\n\t}\n\treturn\n}",
"func assertOrderValid(t *testing.T, actual *Order, expected *Order) {\n\tassert.Equal(t, actual.Location.Lon, expected.Location.Lon)\n\tassert.Equal(t, actual.Location.Lat, expected.Location.Lat)\n\tassert.NotEmpty(t, expected.Id)\n\tassert.Equal(t, actual.Desc, expected.Desc)\n\tassert.NotEmpty(t, expected.TimeRequested)\n\tassert.Equal(t, actual.ConsumerId, expected.ConsumerId)\n\tassert.Equal(t, actual.BidPrice, expected.BidPrice)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (cro CreateOrderRequest) Validate() (int, *Error) {\n\tif (cro.Origin == routes.Location{}) ||\n\t\t(cro.Destination == routes.Location{}) {\n\t\treturn ErrBadRequestParametersMissing(\"origin and destination are mandatory\")\n\t}\n\n\tif !cro.Origin.IsValid() || !cro.Destination.IsValid() {\n\t\treturn ErrBadRequestInvalidBody(\"Origin or destination not in proper format\")\n\t}\n\treturn 0, nil\n}",
"func bindOrderValidationUtils(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := abi.JSON(strings.NewReader(OrderValidationUtilsABI))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil\n}",
"func (o *GetOrderShipmentOKBodyShippingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (o *OrderItem) Validate(tx *pop.Connection) (*validate.Errors, error) {\n\treturn validate.NewErrors(), nil\n}",
"func validatePayment(order *model.Order) bool {\n\tvar total int\n\n\t// Calculate the order total.\n\tfor _, ol := range order.Lines {\n\t\ttotal += ol.Price * ol.Quantity\n\t}\n\t// If this is a free order, it's OK if there is no payment.\n\tif total == 0 && len(order.Payments) == 0 {\n\t\treturn true\n\t}\n\t// Otherwise, there should be exactly one payment.\n\tif len(order.Payments) != 1 {\n\t\treturn false\n\t}\n\t// And it should have the correct amount.\n\tvar pmt = order.Payments[0]\n\tif pmt.Amount != total {\n\t\treturn false\n\t}\n\t// If this is a free order and has a payment, its type must be \"cash\".\n\t// We remove it; no point in storing a zero payment.\n\tif pmt.Amount == 0 {\n\t\tif pmt.Type != model.PaymentCash {\n\t\t\treturn false\n\t\t}\n\t\torder.Payments = order.Payments[:0]\n\t\treturn true\n\t}\n\tpmt.Created = order.Created\n\treturn true\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (m *RetrieveOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (m *DynamicOrderState) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ApprovedOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"approvedOrders\", arg0)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) HashOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"hashOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (s *OpencxAuctionServer) validateEncryptedOrder(order *match.EncryptedAuctionOrder) (err error) {\n\n\tvar rswPuzzle *rsw.PuzzleRSW\n\tvar ok bool\n\tif rswPuzzle, ok = order.OrderPuzzle.(*rsw.PuzzleRSW); !ok {\n\t\terr = fmt.Errorf(\"Puzzle could not be converted to RSW puzzle, invalid encrypted order\")\n\t\treturn\n\t}\n\n\tif uint64(rswPuzzle.T.Int64()) != s.t {\n\t\terr = fmt.Errorf(\"The time to solve the puzzle is not correct, invalid encrypted order\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (o *GetOrderShipmentOKBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBillingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingProvider(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *OrderReturnServiceCharge) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAmountMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCatalogObjectID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePercentage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSourceServiceChargeUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalTaxMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func GetOrderFromRequest(w http.ResponseWriter, r *http.Request) (o *model.Order) {\n\tvar err error\n\n\to = new(model.Order)\n\to.Source = model.OrderSource(r.FormValue(\"source\"))\n\to.SaveForReuse = r.FormValue(\"saveForReuse\") != \"\"\n\tswitch o.Source {\n\tcase \"\":\n\t\to.Source = model.OrderFromPublic\n\tcase model.OrderFromPublic, model.OrderFromMembers, model.OrderFromGala, model.OrderFromOffice, model.OrderInPerson:\n\t\t// no-op\n\tdefault:\n\t\tlog.Printf(\"ERROR: invalid source %q\", o.Source)\n\t\thttp.Error(w, `400 Bad Request: invalid \"source\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Name = strings.TrimSpace(r.FormValue(\"name\"))\n\to.Email = strings.TrimSpace(r.FormValue(\"email\"))\n\tif o.Email != \"\" && !emailRE.MatchString(o.Email) {\n\t\tlog.Printf(\"ERROR: invalid email %q\", o.Email)\n\t\thttp.Error(w, `400 Bad Request: invalid \"email\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Address = strings.TrimSpace(r.FormValue(\"address\"))\n\to.City = strings.TrimSpace(r.FormValue(\"city\"))\n\to.State = strings.ToUpper(strings.TrimSpace(r.FormValue(\"state\")))\n\tif o.State != \"\" && !stateRE.MatchString(o.State) {\n\t\tlog.Printf(\"ERROR: invalid state %q\", o.State)\n\t\thttp.Error(w, `400 Bad Request: invalid \"state\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Zip = strings.TrimSpace(r.FormValue(\"zip\"))\n\tif o.Zip != \"\" && !zipRE.MatchString(o.Zip) {\n\t\tlog.Printf(\"ERROR: invalid zip %q\", o.Zip)\n\t\thttp.Error(w, `400 Bad Request: invalid \"zip\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\tif (o.Address != \"\" || o.City != \"\" || o.State != \"\" || o.Zip != \"\") &&\n\t\t(o.Address == \"\" || o.City == \"\" || o.State == \"\" || o.Zip == \"\") {\n\t\tlog.Printf(\"ERROR: have address %v city %v state %v zip %v\",\n\t\t\to.Address != \"\", o.City != \"\", o.State != \"\", o.Zip != \"\")\n\t\thttp.Error(w, `400 Bad Request: specify all or none of \"address\"+\"city\"+\"state\"+\"zip\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Phone = strings.TrimSpace(r.FormValue(\"phone\"))\n\to.Customer = strings.TrimSpace(r.FormValue(\"customer\"))\n\tif o.Customer != \"\" && !customerRE.MatchString(o.Customer) {\n\t\tlog.Printf(\"ERROR: invalid customer %q\", o.Customer)\n\t\thttp.Error(w, `400 Bad Request: invalid \"customer\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\tif mstr := r.FormValue(\"member\"); mstr != \"\" {\n\t\tif o.Member, err = strconv.Atoi(mstr); err != nil || o.Member < 1 {\n\t\t\tlog.Printf(\"ERROR: invalid member %q\", mstr)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"member\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t}\n\to.CNote = strings.TrimSpace(r.FormValue(\"cNote\"))\n\to.ONote = strings.TrimSpace(r.FormValue(\"oNote\"))\n\tif iastr := r.FormValue(\"inAccess\"); iastr != \"\" {\n\t\tif o.InAccess, err = strconv.ParseBool(iastr); err != nil {\n\t\t\tlog.Printf(\"ERROR: invalid inAccess %q\", iastr)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"inAccess\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t}\n\to.Coupon = strings.ToUpper(strings.TrimSpace(r.FormValue(\"coupon\")))\n\tfor idx := 1; true; idx++ {\n\t\tvar (\n\t\t\tol model.OrderLine\n\t\t\tprefix = fmt.Sprintf(\"line%d.\", idx)\n\t\t)\n\t\tif pname := r.FormValue(prefix + \"product\"); pname != \"\" {\n\t\t\tol.Product = &model.Product{ID: model.ProductID(pname)}\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t\tif ol.Quantity, err = strconv.Atoi(r.FormValue(prefix + \"quantity\")); err != nil || ol.Quantity < 1 {\n\t\t\tlog.Printf(\"ERROR: invalid quantity %q\", r.FormValue(prefix+\"quantity\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"quantity\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tif ol.Price, err = strconv.Atoi(r.FormValue(prefix + \"price\")); err != nil || ol.Quantity < 0 {\n\t\t\tlog.Printf(\"ERROR: invalid price %q\", r.FormValue(prefix+\"price\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"price\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tol.GuestName = r.FormValue(prefix + \"guestName\")\n\t\tol.GuestEmail = r.FormValue(prefix + \"guestEmail\")\n\t\tol.Option = r.FormValue(prefix + \"option\")\n\t\tif uval := r.FormValue(prefix + \"used\"); uval != \"\" {\n\t\t\tif ol.Used, err = strconv.Atoi(uval); err != nil || ol.Used < 0 {\n\t\t\t\tlog.Printf(\"ERROR: invalid used amount %q\", uval)\n\t\t\t\thttp.Error(w, `400 Bad Request: invalid \"used\"`, http.StatusBadRequest)\n\t\t\t\tgoto ERROR\n\t\t\t}\n\t\t\tif ol.UsedAt = model.EventID(r.FormValue(prefix + \"usedAt\")); ol.Used > 0 && ol.UsedAt == \"\" {\n\t\t\t\tlog.Printf(\"ERROR: missing usedAt\")\n\t\t\t\thttp.Error(w, `400 Bad Request: \"usedAt\" is required when \"used\" is nonzero`, http.StatusBadRequest)\n\t\t\t\tgoto ERROR\n\t\t\t}\n\t\t}\n\t\to.Lines = append(o.Lines, &ol)\n\t}\n\tfor idx := 1; true; idx++ {\n\t\tvar (\n\t\t\tp model.Payment\n\t\t\tprefix = fmt.Sprintf(\"payment%d.\", idx)\n\t\t)\n\t\tif p.Type = model.PaymentType(r.FormValue(prefix + \"type\")); p.Type == \"\" {\n\t\t\tbreak\n\t\t}\n\t\tswitch p.Type {\n\t\tcase model.PaymentCard, model.PaymentCardPresent, model.PaymentCash, model.PaymentCheck, model.PaymentOther:\n\t\t\t// no-op\n\t\tdefault:\n\t\t\tlog.Printf(\"ERROR: invalid payment type %q\", p.Type)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"type\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tp.Subtype = strings.TrimSpace(r.FormValue(prefix + \"subtype\"))\n\t\tp.Method = strings.TrimSpace(r.FormValue(prefix + \"method\"))\n\t\tif p.Amount, err = strconv.Atoi(r.FormValue(prefix + \"amount\")); err != nil {\n\t\t\tlog.Printf(\"ERROR: invalid payment amount %q\", r.FormValue(prefix+\"amount\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"amount\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\to.Payments = append(o.Payments, &p)\n\t}\n\treturn o\n\nERROR:\n\tlog.Printf(\" in %s %s %+v\", r.Method, r.RequestURI, r.Form)\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *PTXServiceDTOShipSpecificationV3ShipRoute) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorityCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperators(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteDistance(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSrcUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTicketPriceDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateVessels(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateWeatherURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SearchOrdersFulfillmentFilter) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (m *SalesDataOrderExtensionInterface) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCompanyOrderAttributes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftCards(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftMessage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateItemAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateShippingAssignments(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (m OrdersType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrdersTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (b Binance) PlaceOrder(ctx context.Context, order types.Order, symbolInfo *types.SymbolInfo) (info types.OrderInfo, err error) {\n\tvar cos *bin.CreateOrderService\n\tvar binanceSymbol string\n\tvar response *bin.CreateOrderResponse\n\tvar numFills, index int\n\tvar fill *bin.Fill\n\tvar orderFills []types.OrderFill\n\tvar strPrice string\n\n\tif binanceSymbol, err = b.symbolToBinance(order.Symbol); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tcos = b.client.NewCreateOrderService()\n\tcos.NewClientOrderID(order.UserReference.String())\n\tcos.Symbol(binanceSymbol)\n\tcos.Side(b.sideToBinance(order.Side))\n\tcos.Type(b.orderTypeToBinance(order.Type))\n\n\tswitch order.Type {\n\tcase types.Limit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.Market:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\tcase types.StopLoss:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\tcase types.StopLossLimit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.TakeProfit:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\tcase types.TakeProfitLimit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.LimitMaker:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\t}\n\n\tif response, err = cos.Do(ctx); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tif info.UserReference, err = uuid.Parse(response.ClientOrderID); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tinfo.ExchangeOrderID = response.OrderID\n\tif info.Symbol, err = b.toSymbol(response.Symbol); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\tinfo.TransactionTime = b.toTime(response.TransactTime)\n\tinfo.OriginalQuantity = b.toFloat(response.OrigQuantity)\n\tinfo.ExecutedQuantity = b.toFloat(response.ExecutedQuantity)\n\tinfo.Status = b.toStatus(response.Status)\n\tinfo.TimeInForce = b.toTimeInForce(response.TimeInForce)\n\tinfo.OrderType = b.toOrderType(response.Type)\n\tinfo.Side = b.toSide(response.Side)\n\n\tnumFills = len(response.Fills)\n\tif numFills > 0 {\n\t\torderFills = make([]types.OrderFill, numFills, numFills)\n\t\tfor index, fill = range response.Fills {\n\t\t\torderFills[index] = types.NewOrderFill(\n\t\t\t\tb.toFloat(fill.Price),\n\t\t\t\tb.toFloat(fill.Quantity),\n\t\t\t\tb.toFloat(fill.Commission),\n\t\t\t\tfill.CommissionAsset,\n\t\t\t)\n\t\t}\n\t\tinfo.Fills = orderFills\n\t}\n\n\treturn\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (fm *FieldModelOrder) Verify() bool { return fm.VerifyType(true) }",
"func (tx *Hello) Validate(p types.Process, loader types.LoaderWrapper, signers []common.PublicHash) error {\n\tsp := p.(*HelloWorld)\n\n\tif has, err := loader.HasAccount(tx.From()); err != nil {\n\t\treturn err\n\t} else if !has {\n\t\treturn types.ErrNotExistAccount\n\t}\n\n\tfromAcc, err := loader.Account(tx.From())\n\tif err != nil {\n\t\treturn err\n\t}\n\tif err := fromAcc.Validate(loader, signers); err != nil {\n\t\treturn err\n\t}\n\n\tif err := sp.vault.CheckFeePayableWith(p, loader, tx, nil); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (s *OrderService) ProcessOrder(order spec.Order) error {\n\terr := spec.Validate(order)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// Check we have a new order\n\tif order.Status != spec.OrderNew {\n\t\treturn OrderStatusError()\n\t}\n\n\tif err := s.AddOrder(order); err != nil {\n\t\treturn err\n\t}\n\n\terr = s.SetStatus(&order, spec.OrderReceived)\n\tif err != nil {\n\t\tlog.Printf(\"### Failed to update state for order %s\\n\", err)\n\t}\n\n\tlog.Printf(\"### Order %s was saved to state store\\n\", order.ID)\n\n\t// Save order to blob storage as a text file \"report\"\n\t// Also email to the user via SendGrid\n\t// For these to work configure the components in cmd/orders/components\n\t// If un-configured then nothing happens (maybe some errors are logged)\n\n\t// Currently the SendGrid integration in Dapr is fubar\n\t// To be fixed by this PR https://github.com/dapr/components-contrib/pull/1867\n\terr = s.EmailNotify(order)\n\tif err != nil {\n\t\tlog.Printf(\"### Email notification failed %s\\n\", err)\n\t}\n\n\terr = s.SaveReport(order)\n\tif err != nil {\n\t\tlog.Printf(\"### Saving order report failed %s\\n\", err)\n\t}\n\n\t// Fake background order processing, move to processing after 30 seconds\n\ttime.AfterFunc(30*time.Second, func() {\n\t\tlog.Printf(\"### Order %s is now processing\\n\", order.ID)\n\t\t_ = s.SetStatus(&order, spec.OrderProcessing)\n\t})\n\n\t// Fake background order completion, move to complete after 2 minutes\n\ttime.AfterFunc(120*time.Second, func() {\n\t\tlog.Printf(\"### Order %s completed\\n\", order.ID)\n\t\t_ = s.SetStatus(&order, spec.OrderComplete)\n\t})\n\n\treturn nil\n}",
"func (o *GetPostListParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.EnumCase(\"order\", \"query\", *o.Order, []interface{}{\"asc\", \"desc\"}, true); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (cl *ocxClient) OrderCommand(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\n\tside := args[0]\n\tpair := args[1]\n\n\tamountHave, err := strconv.ParseUint(args[2], 10, 64)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error parsing amountHave, please enter something valid:\\n%s\", err)\n\t}\n\n\tprice, err := strconv.ParseFloat(args[3], 64)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error parsing price: \\n%s\", err)\n\t}\n\n\tvar pubkey *koblitz.PublicKey\n\tif pubkey, err = cl.RetrievePublicKey(); err != nil {\n\t\treturn\n\t}\n\n\tvar orderSide *match.Side = new(match.Side)\n\tif err = orderSide.FromString(side); err != nil {\n\t\terr = fmt.Errorf(\"Error getting side from string for OrderCommand: %s\", err)\n\t\treturn\n\t}\n\n\tvar reply *cxrpc.SubmitOrderReply\n\tif reply, err = cl.RPCClient.OrderCommand(pubkey, *orderSide, pair, amountHave, price); err != nil {\n\t\treturn\n\t}\n\n\tvar text []byte\n\tif text, err = reply.OrderID.MarshalText(); err != nil {\n\t\terr = fmt.Errorf(\"Could not marshal to text for some reason: %s\", err)\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Submitted order successfully, orderID: %s\", text)\n\treturn nil\n}",
"func (handler *rpcHandler) AddOrders(orders []*zeroex.SignedOrder) (*zeroex.ValidationResults, error) {\n\tlog.Debug(\"received AddOrders request via RPC\")\n\tvalidationResults, err := handler.app.AddOrders(orders)\n\tif err != nil {\n\t\t// We don't want to leak internal error details to the RPC client.\n\t\tlog.WithField(\"error\", err.Error()).Error(\"internal error in AddOrders RPC call\")\n\t\treturn nil, errInternal\n\t}\n\treturn validationResults, nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Struct0, signatures [][]byte) (struct {\n\tOrdersInfo []Struct1\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []Struct1\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _OrderValidationUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (r *createRequest) Validate() *validation.Output {\n\to := &validation.Output{Valid: true}\n\tvar err error\n\tvar PartnerID int64\n\tvar partner *model.Partnership\n\tvar sorder *model.SalesOrder\n\tvar code string\n\n\t// cek partner id ada atau tidak\n\tPartnerID, err = common.Decrypt(r.CustomerID)\n\tif err != nil {\n\t\to.Failure(\"customer_id.invalid\", \"Partnership id is invalid\")\n\t}\n\n\t// cek partner ecist or not\n\tpartner, err = partnership.GetPartnershipByField(\"id\", PartnerID)\n\n\tif err != nil || partner == nil || partner.IsDeleted == 1 || partner.IsArchived == 1 {\n\t\to.Failure(\"customer_id.invalid\", \"Partnership id is not found\")\n\t} else {\n\t\tcode, _ = CodeGen(partner.IsDefault == 1)\n\n\t\tif partner.PartnershipType != \"customer\" {\n\t\t\to.Failure(\"customer_id\", \"Customer needed to have partner type customer not supplier\")\n\t\t}\n\n\t\tif partner.IsDefault == int8(1) {\n\t\t\tif r.AutoFullfilment == int8(0) {\n\t\t\t\to.Failure(\"auto_fullfilment\", \"auto fullfilment need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t\tif r.AutoInvoice == int8(0) {\n\t\t\t\to.Failure(\"auto_invoice\", \"auto invoice need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t\tif r.EtaDate.IsZero() {\n\t\t\t\to.Failure(\"eta_date\", \"ETA Date need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t} else {\n\t\t\tif r.ShipmentAddress == \"\" {\n\t\t\t\to.Failure(\"shipment_address\", \"Shipment address is required\")\n\t\t\t}\n\t\t}\n\n\t\tif partner.OrderRule == \"one_bill\" {\n\t\t\tvar soContainer *model.SalesOrder\n\t\t\torm.NewOrm().Raw(\"SELECT * FROM sales_order WHERE customer_id = ? AND document_status = 'new' OR document_status = 'active' AND invoice_status = 'active';\", PartnerID).QueryRow(&soContainer)\n\t\t\tif soContainer != nil {\n\t\t\t\to.Failure(\"customer_id\", \"Partner still have unfinished invoice\")\n\t\t\t}\n\t\t} else if partner.OrderRule == \"plafon\" {\n\t\t\tcurrent := partner.TotalDebt + r.TotalCharge\n\t\t\tif current >= partner.MaxPlafon {\n\t\t\t\to.Failure(\"customer_id\", \"Partnership has already reached given max plafon\")\n\t\t\t}\n\t\t}\n\t}\n\n\tif r.IsPaid == 1 {\n\t\tif r.AutoInvoice != 1 {\n\t\t\to.Failure(\"auto_invoice\", \"Auto invoice must be checked if Auto Paid is checked\")\n\t\t}\n\t}\n\n\tso := &model.SalesOrder{Code: code}\n\n\tif err := so.Read(\"Code\"); err == nil {\n\t\to.Failure(\"code\", \"Code sales order is already being used\")\n\t} else {\n\t\tr.Code = code\n\t}\n\n\ttz := time.Time{}\n\tif r.EtaDate == tz {\n\t\to.Failure(\"eta_date\", \"Field is required.\")\n\t}\n\n\t// cek status reference id\n\tif r.ReferencesID != \"\" {\n\t\trefID, err := common.Decrypt(r.ReferencesID)\n\t\tif err != nil {\n\t\t\to.Failure(\"references_id\", \"References id is not valid\")\n\t\t}\n\t\tvar emptyLoad []string\n\t\tsorder, err = GetDetailSalesOrder(refID, emptyLoad)\n\t\tif err != nil {\n\t\t\to.Failure(\"references_id\", \"References is not found\")\n\t\t} else {\n\t\t\tif sorder.DocumentStatus != \"approved_cancel\" {\n\t\t\t\to.Failure(\"references_id\", \"References document status is not cancel\")\n\t\t\t}\n\t\t}\n\t}\n\n\tcheckDuplicate := make(map[string]bool)\n\tvar checkVariant = make(map[int64]*model.ItemVariant)\n\n\tfor _, row := range r.SalesOrderItem {\n\t\tIVariantID, _ := common.Decrypt(row.ItemVariantID)\n\t\tivar := &model.ItemVariant{ID: IVariantID}\n\t\tivar.Read(\"ID\")\n\t\t////////////////////////////////\n\t\tif checkVariant[ivar.ID] == nil {\n\t\t\tivar.CommitedStock -= row.Quantity\n\t\t\tcheckVariant[ivar.ID] = ivar\n\t\t} else {\n\t\t\tvariant := checkVariant[ivar.ID]\n\t\t\tvariant.CommitedStock -= row.Quantity\n\t\t\tcheckVariant[ivar.ID] = variant\n\t\t}\n\t\t////////////////////////////////\n\t}\n\n\t// cek setiap sales order item\n\tfor i, row := range r.SalesOrderItem {\n\t\tvar UnitA float64\n\t\tvar PricingID, IVariantID int64\n\t\tvar ItemVariant *model.ItemVariant\n\t\tvar IVPrice *model.ItemVariantPrice\n\t\t// cek item variant,pricing type dan item variant price\n\t\tPricingID, err = common.Decrypt(row.PricingType)\n\n\t\tif err != nil {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.pricing_type.invalid\", i), \"Pricing type id is invalid\")\n\t\t}\n\n\t\tIVariantID, err = common.Decrypt(row.ItemVariantID)\n\t\tif err != nil {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant.invalid\", i), \"Item Variant id is invalid\")\n\t\t}\n\n\t\tvar pt = &model.PricingType{ID: PricingID}\n\t\tpt.Read(\"ID\")\n\t\tvar iv = &model.ItemVariant{ID: IVariantID}\n\t\tiv.Read(\"ID\")\n\n\t\tIVPrice, err = getItemVariantPricing(pt, iv)\n\t\tif err == nil {\n\t\t\tif pt.ParentType != nil {\n\t\t\t\tif pt.RuleType == \"increment\" {\n\t\t\t\t\tif pt.IsPercentage == int8(1) {\n\t\t\t\t\t\ttemp := (pt.Nominal * IVPrice.UnitPrice) / float64(100)\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice + temp\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice + pt.Nominal\n\t\t\t\t\t}\n\n\t\t\t\t\tif row.UnitPrice < UnitA {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif pt.IsPercentage == int8(1) {\n\n\t\t\t\t\t\ttemp := (pt.Nominal * IVPrice.UnitPrice) / float64(100)\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice - temp\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice - pt.Nominal\n\t\t\t\t\t}\n\n\t\t\t\t\tif UnitA < 0 {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.pricing_type.invalid\", i), \"Pricing type can make price become zero\")\n\t\t\t\t\t}\n\t\t\t\t\tif row.UnitPrice < UnitA {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif row.UnitPrice < IVPrice.UnitPrice {\n\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"item variant price doesn't exist\")\n\t\t}\n\n\t\tItemVariant, err = inventory.GetDetailItemVariant(\"id\", IVariantID)\n\t\tif err != nil || ItemVariant == nil || ItemVariant.IsDeleted == int8(1) || ItemVariant.IsArchived == int8(1) {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant_id.invalid\", i), \"Item variant id not found\")\n\t\t} else {\n\n\t\t\t// cek stock dari item variant sama quantity soi\n\t\t\tif (checkVariant[ItemVariant.ID].AvailableStock - ItemVariant.CommitedStock) < row.Quantity {\n\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.quantity.invalid\", i), \"Stock item is not enough to be sold\")\n\t\t\t}\n\n\t\t\t//check duplicate item variant id\n\t\t\tif checkDuplicate[row.ItemVariantID] == true {\n\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant_id.invalid\", i), \" item variant id duplicate\")\n\t\t\t} else {\n\t\t\t\tcheckDuplicate[row.ItemVariantID] = true\n\t\t\t}\n\t\t}\n\n\t\tdiscamount := (row.UnitPrice * float64(row.Discount)) / float64(100)\n\t\tcuramount := row.UnitPrice * float64(row.Quantity)\n\t\tsubtotal := common.FloatPrecision(curamount-discamount, 0)\n\n\t\tr.TotalPrice += subtotal\n\t}\n\n\tif r.IsPercentageDiscount == int8(1) {\n\t\tif r.Discount < 0 || r.Discount > float32(100) {\n\t\t\to.Failure(\"discount\", \"discount is less than and equal 0 or greater than 100\")\n\t\t}\n\t}\n\n\treturn o\n}",
"func (m OrdersType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {\n\treturn nil\n}",
"func BuyerExecuteOrderCmd(cdc *wire.Codec) *cobra.Command {\n\tcmd := &cobra.Command{\n\t\tUse: \"buyerExecuteOrder\",\n\t\tShort: \"executes the exchange escrow transaction from the buyers side\",\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\n\t\t\ttxCtx := context2.NewTxContextFromCLI().WithCodec(cdc)\n\t\t\tcliCtx := context.NewCLIContext().WithCodec(cdc).WithLogger(os.Stdout).WithAccountDecoder(authcmd.GetAccountDecoder(cdc))\n\n\t\t\tif err := cliCtx.EnsureAccountExists(); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfrom, err := cliCtx.GetFromAddress()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbuyerAddressString := viper.GetString(FlagBuyerAddress)\n\t\t\tbuyerAddress, err := sdk.AccAddressFromBech32(buyerAddressString)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tsellerAddressString := viper.GetString(FlagSellerAddress)\n\t\t\tsellerAddress, err := sdk.AccAddressFromBech32(sellerAddressString)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tpegHashStr := viper.GetString(FlagPegHash)\n\t\t\tpegHashHex, err := sdk.GetAssetPegHashHex(pegHashStr)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tfiatProofHashStr := viper.GetString(FlagFiatProofHash)\n\n\t\t\tmsg := client.BuildBuyerExecuteOrderMsg(from, buyerAddress, sellerAddress, pegHashHex, fiatProofHashStr)\n\n\t\t\treturn utils.SendTx(txCtx, cliCtx, []sdk.Msg{msg})\n\t\t},\n\t}\n\tcmd.Flags().AddFlagSet(fsBuyerAddress)\n\tcmd.Flags().AddFlagSet(fsSellerAddress)\n\tcmd.Flags().AddFlagSet(fsPegHash)\n\tcmd.Flags().AddFlagSet(fsFiatProofHash)\n\treturn cmd\n}",
"func (mr *MockExecClientMockRecorder) ProcessOrder(or interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"ProcessOrder\", reflect.TypeOf((*MockExecClient)(nil).ProcessOrder), or)\n}",
"func (s *Server) QueryOrder(ctx context.Context, in *orderPb.QueryOrderRequest) (*orderPb.QueryOrderResponse, error) {\n\tt := time.Now()\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderTotal\"}).Inc()\n\n\t// Check input params.\n\taddress := in.GetAddress()\n\trequestId := in.GetRequestId()\n\tif address == \"\" || requestId == \"\" {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderFailed\"}).Inc()\n\t\treturn nil, errorm.RequestParamEmpty\n\t}\n\n\tdefer func(t time.Time) {\n\t\trpcRequestDuration.With(prometheus.Labels{\"method\": \"QueryOrder\"}).Observe(float64(time.Since(t).Microseconds()) / 1000)\n\t}(t)\n\n\t// Query order info by request id and address.\n\torder, err := s.QueryOrderController(requestId, address)\n\tif err != nil {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderError\"}).Inc()\n\t\treturn nil, err\n\t}\n\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderSuccess\"}).Inc()\n\treturn &orderPb.QueryOrderResponse{\n\t\tType: order.OrderType,\n\t\tFileName: order.FileName,\n\t\tFileSize: order.FileSize,\n\t\tFileHash: order.FileHash,\n\t\tFee: order.Amount,\n\t\tStatus: order.Status,\n\t\tDescription: \"\",\n\t}, nil\n}",
"func (m *AgreeFinishOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for AgreeementToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (_AuthContract *AuthContractTransactor) Validate(opts *bind.TransactOpts, _tx [32]byte, _target common.Address, _sender common.Address, _receiver common.Address, _amt *big.Int) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"validate\", _tx, _target, _sender, _receiver, _amt)\n}",
"func (o *TelemetryDruidScanRequestAllOf) HasOrder() bool {\n\tif o != nil && o.Order != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (a *App) PlaceOrderHandler() http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tctx := r.Context()\n\t\tcontextLogger := log.WithContext(ctx)\n\t\tcontextLogger.Info(\"app: PlaceOrderHandler started\")\n\n\t\treq := orderRequestBody{}\n\t\tdec := json.NewDecoder(r.Body)\n\t\tdec.DisallowUnknownFields()\n\t\terr := dec.Decode(&req)\n\t\tif err != nil {\n\t\t\tcontextLogger.Warnf(\"app: 400 Bad Request - decode error %v\",\n\t\t\t\terr.Error())\n\t\t\tclientError(w, http.StatusBadRequest, ErrCodeBadRequest,\n\t\t\t\terr.Error()) // 400\n\t\t\treturn\n\t\t}\n\t\tdefer r.Body.Close()\n\n\t\tmessage, ok := validateOrderRequestBody(&req)\n\t\tif !ok {\n\t\t\tcontextLogger.Warnf(\"app: 400 Bad Request - validation %v\",\n\t\t\t\tmessage)\n\t\t\tclientError(w, http.StatusConflict,\n\t\t\t\tErrCodeBadRequest, message) // 400\n\t\t\treturn\n\t\t}\n\n\t\tvar order *service.Order\n\t\tif req.UserID == nil {\n\t\t\torder, err = a.Service.PlaceGuestOrder(ctx, *req.CartID, *req.ContactName, *req.Email,\n\t\t\t\treq.Billing, req.Shipping)\n\t\t} else {\n\t\t\torder, err = a.Service.PlaceOrder(ctx, *req.CartID,\n\t\t\t\t*req.UserID, *req.BillingID, *req.ShippingID)\n\t\t}\n\n\t\tif err == service.ErrCartNotFound {\n\t\t\tcontextLogger.Warn(\"app: 404 Not Found - cart not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeCartNotFound,\n\t\t\t\t\"cart not found\") // 404\n\t\t}\n\t\tif err == service.ErrCartEmpty {\n\t\t\tcontextLogger.Warn(\"app: 409 Conflict - cart is empty\")\n\t\t\tclientError(w, http.StatusConflict, ErrCodeOrderCartEmpty,\n\t\t\t\t\"The cart id you passed contains no items\") // 404\n\t\t\treturn\n\t\t}\n\t\tif err == service.ErrUserNotFound {\n\t\t\tcontextLogger.Warn(\"app: 404 Not Found - user not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeOrderUserNotFound,\n\t\t\t\t\"The user with the given user_id could not be found\") // 404\n\t\t\treturn\n\t\t}\n\t\tif err == service.ErrAddressNotFound {\n\t\t\tcontextLogger.Warnf(\"app: 404 Not Found - address not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeAddressNotFound,\n\t\t\t\t\"billing or shipping address not found\")\n\t\t\treturn\n\t\t}\n\t\tif err != nil {\n\t\t\tcontextLogger.Panicf(\"app: PlaceOrder(ctx, ...) failed with error: %v\", err)\n\t\t\tw.WriteHeader(http.StatusInternalServerError) // 500\n\t\t\treturn\n\t\t}\n\t\tw.WriteHeader(http.StatusCreated) // 201 Created\n\t\tjson.NewEncoder(w).Encode(&order)\n\t}\n}",
"func (c *BFTChain) Order(env *cb.Envelope, configSeq uint64) error {\n\tseq := c.support.Sequence()\n\tif configSeq < seq {\n\t\tc.Logger.Warnf(\"Normal message was validated against %d, although current config seq has advanced (%d)\", configSeq, seq)\n\t\tif _, err := c.support.ProcessNormalMsg(env); err != nil {\n\t\t\treturn errors.Errorf(\"bad normal message: %s\", err)\n\t\t}\n\t}\n\n\treturn c.submit(env, configSeq)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) HashOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\treturn _WyvernExchange.Contract.HashOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (o *TelemetryDruidScanRequestAllOf) GetOrderOk() (*string, bool) {\n\tif o == nil || o.Order == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Order, true\n}",
"func (m *OrderPaymentInstrument) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorizationStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateBankRoutingNumber(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentBankAccount(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentCard(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentMethodID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SetTradeDependentOrdersBadRequestBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateRelatedTransactionIds(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_Transactable *TransactableCaller) ValidateTransaction(opts *bind.CallOpts, _v uint8, _r [32]byte, _s [32]byte, _dest common.Address, _value *big.Int, _ts *big.Int) (bool, error) {\n\tvar out []interface{}\n\terr := _Transactable.contract.Call(opts, &out, \"validateTransaction\", _v, _r, _s, _dest, _value, _ts)\n\n\tif err != nil {\n\t\treturn *new(bool), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(bool)).(*bool)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaCallerSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {\n\treturn _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)\n}",
"func (_m *ValidatorService) ValidateOperatorAddress(o *types.Order) error {\n\tret := _m.Called(o)\n\n\tvar r0 error\n\tif rf, ok := ret.Get(0).(func(*types.Order) error); ok {\n\t\tr0 = rf(o)\n\t} else {\n\t\tr0 = ret.Error(0)\n\t}\n\n\treturn r0\n}",
"func orderEnough(val, lots, feeRate uint64, nfo *dex.Asset) func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\treturn func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\t\treqFunds := calc.RequiredOrderFundsAlt(val, uint64(size+unspent.input.Size()), lots, nfo.SwapSizeBase, nfo.SwapSize, feeRate)\n\t\t// needed fees are reqFunds - value\n\t\treturn sum+toAtoms(unspent.rpc.Amount) >= reqFunds\n\t}\n}",
"func (me *SALESORDER_IMPL) GetOrderStatus (\n clientCode string,\n detailView models_pkg.DetailView1Enum,\n startTime *time.Time,\n endTime *time.Time,\n orderNo []string,\n limit *int64,\n offset *int64) (*models_pkg.OrderStatusResponse1, error) {\n //the endpoint path uri\n _pathUrl := \"/v2/order\"\n\n //variable to hold errors\n var err error = nil\n //the base uri for api requests\n _queryBuilder := configuration_pkg.GetBaseURI(configuration_pkg.ENUM_DEFAULT,me.config);\n\n //prepare query string for API call\n _queryBuilder = _queryBuilder + _pathUrl\n\n //process optional query parameters\n _queryBuilder, err = apihelper_pkg.AppendUrlWithQueryParameters(_queryBuilder, map[string]interface{} {\n \"clientCode\" : clientCode,\n \"detailView\" : models_pkg.DetailView1EnumToValue(detailView),\n \"startTime\" : startTime,\n \"endTime\" : endTime,\n \"orderNo\" : orderNo,\n \"limit\" : limit,\n \"offset\" : offset,\n })\n if err != nil {\n //error in query param handling\n return nil, err\n }\n\n //validate and preprocess url\n _queryBuilder, err = apihelper_pkg.CleanUrl(_queryBuilder)\n if err != nil {\n //error in url validation or cleaning\n return nil, err\n }\n //prepare headers for the outgoing request\n headers := map[string]interface{} {\n \"user-agent\" : \"APIMATIC 2.0\",\n \"accept\" : \"application/json\",\n }\n\n //prepare API request\n _request := unirest.Get(_queryBuilder, headers)\n //and invoke the API call request to fetch the response\n _response, err := unirest.AsString(_request,false);\n if err != nil {\n //error in API invocation\n return nil, err\n }\n\n //error handling using HTTP status codes\n if (_response.Code == 400) {\n err = apihelper_pkg.NewAPIError(\"Response on Failure\", _response.Code, _response.RawBody)\n } else if (_response.Code == 0) {\n err = apihelper_pkg.NewAPIError(\"Unexpected error\", _response.Code, _response.RawBody)\n } else if (_response.Code < 200) || (_response.Code > 206) { //[200,206] = HTTP OK\n err = apihelper_pkg.NewAPIError(\"HTTP Response Not OK\", _response.Code, _response.RawBody)\n }\n if(err != nil) {\n //error detected in status code validation\n return nil, err\n }\n\n //returning the response\n var retVal *models_pkg.OrderStatusResponse1 = &models_pkg.OrderStatusResponse1{}\n err = json.Unmarshal(_response.RawBody, &retVal)\n\n if err != nil {\n //error in parsing\n return nil, err\n }\n return retVal, nil\n\n}",
"func (_DevUtils *DevUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []LibOrderOrder, signatures [][]byte) (struct {\n\tOrdersInfo []LibOrderOrderInfo\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []LibOrderOrderInfo\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _DevUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) HashOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\treturn _WyvernExchange.Contract.HashOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (o *V3SetErrorOrderInput) GetOrdersOk() (*[]V3OrderIntegrationError, bool) {\n\tif o == nil || o.Orders == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Orders, true\n}",
"func (_BaseAccessWallet *BaseAccessWalletCaller) ValidateTransaction(opts *bind.CallOpts, _v uint8, _r [32]byte, _s [32]byte, _dest common.Address, _value *big.Int, _ts *big.Int) (bool, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWallet.contract.Call(opts, &out, \"validateTransaction\", _v, _r, _s, _dest, _value, _ts)\n\n\tif err != nil {\n\t\treturn *new(bool), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(bool)).(*bool)\n\n\treturn out0, err\n\n}",
"func OrderVerifyPaymentAndUpdate(c buffalo.Context) error {\n\torderVerificationRequest := models.OrderVerificationRequest{}\n\n\ttx, ok := c.Value(\"tx\").(*pop.Connection)\n\tif !ok {\n\t\treturn errors.WithStack(errors.New(\"transaction not found\"))\n\t}\n\n\tif err := c.Bind(&orderVerificationRequest); err != nil {\n\t\treturn c.Error(http.StatusBadRequest, err)\n\t}\n\n\t_, err := paystack.VerifyPayment(orderVerificationRequest.Reference)\n\tif err != nil {\n\t\treturn c.Error(http.StatusBadRequest, err)\n\t}\n\t// mdata := data[\"data\"].(map[string]interface{})[\"metadata\"].(map[string]interface{})\n\t// customFields := mdata[\"custom_fields\"].([]interface{})\n\t// orderID := customFields[0].(map[string]interface{})[\"order_id\"]\n\t// orderIDString := customFields[0].(map[string]interface{})[\"order_id\"].(string)\n\n\t// orderID, err := uuid.FromString(orderIDString)\n\t// if err != nil {\n\t// \tlog.Printf(\"failed to parse UUID %q: %v\", orderIDString, err)\n\t// }\n\torderID := orderVerificationRequest.Order.ID\n\torder := models.Order{}\n\tif err := tx.Find(&order, orderID); err != nil {\n\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"order not found!\"))\n\t}\n\torder.PaymentRef = orderVerificationRequest.Reference\n\torder.Status = Paid\n\n\tif err := tx.Save(&order); err != nil {\n\t\tlog.Println(err)\n\t\treturn c.Error(http.StatusInternalServerError, err)\n\t}\n\n\torderItems := models.OrderItems{}\n\tif err := tx.Where(\"order_id = ? AND status = ?\", orderID, Pending).All(&orderItems); err != nil {\n\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"order items not found!\"))\n\t}\n\n\t// update cart DB\n\tcart := models.Cart{}\n\n\tfor _, orderItem := range orderItems {\n\t\torderItem.DeliveryState = Processing\n\t\torderItem.Status = Paid\n\n\t\tif err = tx.Save(&orderItem); err != nil {\n\t\t\tlog.Println(err)\n\t\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"an error occured while saving the order item: %v\", err))\n\t\t}\n\n\t\tif err := tx.Where(\"user_id = ? AND product_id = ? AND status = ?\", orderItem.UserID,\n\t\t\torderItem.ProductID, Pending).First(&cart); err != nil {\n\n\t\t\tif errors.Cause(err) == sql.ErrNoRows {\n\t\t\t\tlog.Println(\"product is not in cart\")\n\t\t\t} else {\n\t\t\t\treturn errors.WithStack(err)\n\t\t\t}\n\t\t} else {\n\t\t\tcart.Status = Paid\n\t\t\tif err := tx.Update(&cart, \"user_id\", \"product_id\", \"cart_id\"); err != nil {\n\t\t\t\tlog.Println(err)\n\t\t\t\treturn errors.Errorf(\"Error: failed to update cart: %v\", err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn c.Render(200, r.JSON(map[string]interface{}{\n\t\t\"message\": \"order verified successfully\",\n\t}))\n}",
"func (t *TradePool) orderCheck(order *comm.Order) (target int, res bool) {\n\tif order == nil {\n\t\treturn -1, false\n\t}\n\n\t/// find Order by ID\n\tvar (\n\t\ttargetID int = -1\n\t\tsuc bool = false\n\t\telem *list.Element = nil\n\t)\n\tif order.AorB == comm.TradeType_BID {\n\t\ttargetID, suc = binarySearchOrderID(t.bidPoolIDSlice, order.ID)\n\t\tif suc {\n\t\t\telem = t.bidPoolIDSlice[targetID]\n\t\t}\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\ttargetID, suc = binarySearchOrderID(t.askPoolIDSlice, order.ID)\n\t\tif suc {\n\t\t\telem = t.askPoolIDSlice[targetID]\n\t\t}\n\t} else {\n\t\tfmt.Println(\"Illegal order type!\\n\")\n\t\treturn -1, false\n\t}\n\n\tif suc {\n\t\tif elem.Value.(comm.Order).Who == order.Who &&\n\t\t\telem.Value.(comm.Order).Price == order.Price &&\n\t\t\t///elem.Value.(comm.Order).Timestamp == order.Timestamp {\n\t\t\telem.Value.(comm.Order).EnOrderPrice == order.EnOrderPrice &&\n\t\t\telem.Value.(comm.Order).TotalVolume == order.TotalVolume {\n\t\t\treturn targetID, true\n\t\t} else {\n\t\t\treturn targetID, false\n\t\t}\n\t} else {\n\t\tcomm.DebugPrintln(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"OrderCheck in ME trade pool fail! Not a trading order.\\n\")\n\t\treturn -1, false\n\t}\n}",
"func ValidateGetActiveOrderResponseBody(body *GetActiveOrderResponseBody) (err error) {\n\tif body.Order != nil {\n\t\tif err2 := ValidateOrderResponseBody(body.Order); err2 != nil {\n\t\t\terr = goa.MergeErrors(err, err2)\n\t\t}\n\t}\n\treturn\n}",
"func verifyParseOrder(parseOrder []string) (validToken string, validPath bool, err error) {\n\t// Do a substring search for the parseOrder sent in on each of the valid grammars.\n\tfor _, validPath := range artifactV3ParseGrammar {\n\t\tif len(parseOrder) > len(validPath) {\n\t\t\tcontinue\n\t\t}\n\t\t// Check for a submatch in the current validPath.\n\t\tfor i := range parseOrder {\n\t\t\tif validPath[i] != parseOrder[i] {\n\t\t\t\tbreak // Check the next validPath against the parseOrder.\n\t\t\t}\n\t\t\t// We have a submatch. Check if the entire length matches.\n\t\t\tif i == len(parseOrder)-1 {\n\t\t\t\tif len(parseOrder) == len(validPath) {\n\t\t\t\t\treturn parseOrder[i], true, nil // Full match.\n\t\t\t\t}\n\t\t\t\treturn parseOrder[i], false, nil\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\", false, errParseOrder\n}",
"func (a API) ValidateAddress(cmd *btcjson.ValidateAddressCmd) (e error) {\n\tRPCHandlers[\"validateaddress\"].Call <-API{a.Ch, cmd, nil}\n\treturn\n}",
"func (c *Client) VerifyOrder(ctx context.Context, purchaseToken, productID string, accountFlag int64) (InAppPurchaseData, error) {\n\tvar iap InAppPurchaseData\n\n\tdataString, _, err := c.GetOrderDataString(ctx, purchaseToken, productID, accountFlag)\n\tif err != nil {\n\t\treturn iap, err\n\t}\n\n\tif err := json.Unmarshal([]byte(dataString), &iap); err != nil {\n\t\treturn iap, err\n\t}\n\n\treturn iap, nil\n}",
"func (o *IndexClientCertificatesParams) bindOrder(rawData []string, hasKey bool, formats strfmt.Registry) error {\n\tvar raw string\n\tif len(rawData) > 0 {\n\t\traw = rawData[len(rawData)-1]\n\t}\n\n\t// Required: false\n\t// AllowEmptyValue: false\n\n\tif raw == \"\" { // empty values pass all other validations\n\t\treturn nil\n\t}\n\n\tvalue, err := swag.ConvertBool(raw)\n\tif err != nil {\n\t\treturn errors.InvalidType(\"order\", \"query\", \"bool\", raw)\n\t}\n\to.Order = &value\n\n\treturn nil\n}",
"func (m OrderType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrderTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (a *Client) CalculateOrder(params *CalculateOrderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateOrderOK, error) {\n\t// TODO: Validate the params before sending\n\tif params == nil {\n\t\tparams = NewCalculateOrderParams()\n\t}\n\top := &runtime.ClientOperation{\n\t\tID: \"CalculateOrder\",\n\t\tMethod: \"POST\",\n\t\tPathPattern: \"/v2/orders/calculate\",\n\t\tProducesMediaTypes: []string{\"application/json\"},\n\t\tConsumesMediaTypes: []string{\"application/json\"},\n\t\tSchemes: []string{\"https\"},\n\t\tParams: params,\n\t\tReader: &CalculateOrderReader{formats: a.formats},\n\t\tAuthInfo: authInfo,\n\t\tContext: params.Context,\n\t\tClient: params.HTTPClient,\n\t}\n\tfor _, opt := range opts {\n\t\topt(op)\n\t}\n\n\tresult, err := a.transport.Submit(op)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tsuccess, ok := result.(*CalculateOrderOK)\n\tif ok {\n\t\treturn success, nil\n\t}\n\t// unexpected success response\n\t// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue\n\tmsg := fmt.Sprintf(\"unexpected success response for CalculateOrder: API contract not enforced by server. Client expected to get an error, but got: %T\", result)\n\tpanic(msg)\n}",
"func checkRsReturnOrderNumber(value interface{}) error {\n\ts, _ := value.(string)\n\tisValid, _ := regexp.MatchString(`^RS[[:digit:]]{10}|[[:digit:]]{11}$`, s)\n\tif isValid {\n\t\treturn nil\n\t}\n\treturn errors.New(\"format incorrect\")\n}",
"func (o *GetOrderShipmentOKBodyItemsItems0) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (v ValidatePayment) Run(ctx context.Context, p *process.Process) process.RunResult {\n\tctx, span := trace.StartSpan(ctx, \"placeorder/state/ValidatePayment/Run\")\n\tdefer span.End()\n\n\treturn v.validator(ctx, p, v.paymentService)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (o *V3SetErrorOrderInput) HasOrders() bool {\n\tif o != nil && o.Orders != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (m EveroutePackageOrderByInput) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateEveroutePackageOrderByInputEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (a API) ValidateAddressChk() (isNew bool) {\n\tselect {\n\tcase o := <-a.Ch.(chan ValidateAddressRes):\n\t\tif o.Err != nil {\n\t\t\ta.Result = o.Err\n\t\t} else {\n\t\t\ta.Result = o.Res\n\t\t}\n\t\tisNew = true\n\tdefault:\n\t}\n\treturn\n}",
"func (e OrderValidationError) Cause() error { return e.cause }",
"func (client *Client) SendOrder(action, otype string, amount, price float64) (int64, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tSymbol string `json:\"symbol\"`\n\t\tAmount float64 `json:\"amount,string\"`\n\t\tPrice float64 `json:\"price,string\"`\n\t\tExchange string `json:\"exchange\"`\n\t\tSide string `json:\"side\"`\n\t\tType string `json:\"type\"`\n\t}{\n\t\t\"/v1/order/new\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tclient.symbol + client.currency,\n\t\tamount,\n\t\tprice,\n\t\t\"bitfinex\",\n\t\taction,\n\t\totype,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tID int64 `json:\"order_id\"`\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, response.Message)\n\t}\n\n\treturn response.ID, nil\n}",
"func orderEnough(val, lots uint64, nfo *dex.Asset) func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\treturn func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\t\treqFunds := calc.RequiredOrderFunds(val, uint64(size+unspent.input.Size()), lots, nfo)\n\t\t// needed fees are reqFunds - value\n\t\treturn sum+toAtoms(unspent.rpc.Amount) >= reqFunds\n\t}\n}"
] | [
"0.8355632",
"0.8246369",
"0.7282591",
"0.7085611",
"0.6913013",
"0.62508607",
"0.60905653",
"0.59814256",
"0.596831",
"0.58897436",
"0.5824818",
"0.58239764",
"0.58062154",
"0.57981294",
"0.5752148",
"0.5725232",
"0.5720959",
"0.566071",
"0.5624382",
"0.560288",
"0.55898976",
"0.5589419",
"0.5551014",
"0.5466534",
"0.54655445",
"0.54212254",
"0.54026407",
"0.5402552",
"0.53722966",
"0.5364324",
"0.5360867",
"0.5343314",
"0.53025",
"0.5302436",
"0.5282646",
"0.52666605",
"0.5259112",
"0.5250888",
"0.5224671",
"0.5222219",
"0.520004",
"0.51801294",
"0.5175013",
"0.51605177",
"0.51512325",
"0.5150573",
"0.5141902",
"0.5117269",
"0.50732714",
"0.50642896",
"0.50598276",
"0.50466734",
"0.50283456",
"0.50182307",
"0.5017066",
"0.50128937",
"0.5009173",
"0.5008708",
"0.5006465",
"0.49985605",
"0.49977896",
"0.49899527",
"0.49847052",
"0.4984227",
"0.4979065",
"0.49775785",
"0.49656418",
"0.4964269",
"0.49586427",
"0.49581674",
"0.49129072",
"0.48902443",
"0.48805374",
"0.48529583",
"0.48445496",
"0.48378697",
"0.4833456",
"0.48268712",
"0.48180053",
"0.47987267",
"0.4791488",
"0.4784743",
"0.4782677",
"0.4780284",
"0.47797644",
"0.47795418",
"0.47755057",
"0.4762357",
"0.47568795",
"0.47527763",
"0.4750328",
"0.47464114",
"0.47441554",
"0.4742828",
"0.47395247",
"0.4737155",
"0.47344092",
"0.47322264",
"0.47306436",
"0.4726812"
] | 0.8490041 | 0 |
ValidateOrder is a free data retrieval call binding the contract method 0x60bef33a. Solidity: function validateOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, uint8 v, bytes32 r, bytes32 s) constant returns(bool) | func (_WyvernExchange *WyvernExchangeSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {
return _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrderParameters(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrderParameters_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (us UsersSVCClient) ValidateOrder(orderId int) (usersvc.Order, usersvc.Plan, error) {\n\tconn, err := common.OpenGRPCConnection(us.host)\n\tif err != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, err\n\t}\n\tdefer conn.Close()\n\n\tclient := grpcusr.NewUserSVCClient(conn)\n\tresp, validateError := client.ValidateOrder(context.Background(), &grpcusr.ValidateOrderRequest{\n\t\tOrderId: int32(orderId),\n\t})\n\n\tif validateError != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, validateError\n\t}\n\n\torder, decodeOrderError := usersvc.DecodeOrder(resp.Order)\n\tif decodeOrderError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, usersvc.Plan{}, decodeOrderError\n\t}\n\n\tplan, decodePlanError := usersvc.DecodePlan(resp.Plan)\n\tif decodePlanError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, *plan, decodePlanError\n\t}\n\n\tif resp.Err != common.ErrorNilString {\n\t\treturn *order, *plan, errors.New(resp.Err)\n\t}\n\n\n\treturn *order, *plan, nil\n}",
"func (m *Order) Validate() error {\n\treturn m.validate(false)\n}",
"func (p *Order) Validate(act coract.Action) (err error) {\n\n\tswitch act {\n\tcase coract.Save:\n\n\t\t// if len(p.Name) > 255 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"name\",\n\t\t// \t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t// \t\tdict.R(corterm.Name), 255)\n\t\t// }\n\n\t\t// if p.Price == 0 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"price\",\n\t\t// \t\tcorerr.VisRequired, dict.R(\"price\"))\n\t\t// }\n\n\t\tif len(p.Description) > 255 {\n\t\t\terr = limberr.AddInvalidParam(err, \"description\",\n\t\t\t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t\t\tdict.R(corterm.Description), 255)\n\t\t}\n\t}\n\n\treturn err\n}",
"func (m *Order) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (w *Watcher) ValidateAndStoreValidOrdersV4(ctx context.Context, orders []*zeroex.SignedOrderV4, chainID int, pinned bool, opts *types.AddOrdersOpts) (*ordervalidator.ValidationResults, error) {\n\tif len(orders) == 0 {\n\t\treturn &ordervalidator.ValidationResults{}, nil\n\t}\n\tresults, validMeshOrders, err := w.meshSpecificOrderValidationV4(orders, chainID, pinned)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvalidationBlock, zeroexResults, err := w.onchainOrderValidationV4(ctx, validMeshOrders)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresults.Accepted = append(results.Accepted, zeroexResults.Accepted...)\n\tresults.Rejected = append(results.Rejected, zeroexResults.Rejected...)\n\n\t// Filter out only the new orders.\n\tnewOrderInfos := []*ordervalidator.AcceptedOrderInfo{}\n\tfor _, acceptedOrderInfo := range results.Accepted {\n\t\t// If the order isn't new, we don't add to OrderWatcher.\n\t\tif acceptedOrderInfo.IsNew {\n\t\t\tnewOrderInfos = append(newOrderInfos, acceptedOrderInfo)\n\t\t}\n\t}\n\n\tif opts.KeepCancelled || opts.KeepExpired || opts.KeepFullyFilled || opts.KeepUnfunded {\n\t\tfor _, rejectedOrderInfo := range zeroexResults.Rejected {\n\t\t\t// NOTE(jalextowle): We can use the rejectedOrderInfo.Status\n\t\t\t// field to see whether or not the order is new or not. If\n\t\t\t// the order has already been stored, the rejectedOrderInfo.Status\n\t\t\t// field will be ordervalidator.ROOrderAlreadyStoredAndUnfillable.\n\t\t\t// If the rejection reason involves on-chain validation, then the\n\t\t\t// order is new.\n\t\t\tif (opts.KeepCancelled && rejectedOrderInfo.Status.Code == ordervalidator.ROCancelled.Code) ||\n\t\t\t\t(opts.KeepExpired && rejectedOrderInfo.Status.Code == ordervalidator.ROExpired.Code) ||\n\t\t\t\t(opts.KeepFullyFilled && rejectedOrderInfo.Status.Code == ordervalidator.ROFullyFilled.Code) ||\n\t\t\t\t(opts.KeepUnfunded && rejectedOrderInfo.Status.Code == ordervalidator.ROUnfunded.Code) {\n\t\t\t\tnewOrderInfos = append(newOrderInfos, &ordervalidator.AcceptedOrderInfo{\n\t\t\t\t\tOrderHash: rejectedOrderInfo.OrderHash,\n\t\t\t\t\tSignedOrder: rejectedOrderInfo.SignedOrder,\n\t\t\t\t\tSignedOrderV4: rejectedOrderInfo.SignedOrderV4,\n\t\t\t\t\t// TODO(jalextowle): Verify that this is consistent with the OrderWatcher\n\t\t\t\t\tFillableTakerAssetAmount: big.NewInt(0),\n\t\t\t\t\tIsNew: true,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n\n\t// Add the order to the OrderWatcher. This also saves the order in the\n\t// database.\n\tallOrderEvents := []*zeroex.OrderEvent{}\n\torderEvents, err := w.add(newOrderInfos, validationBlock, pinned, opts)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tallOrderEvents = append(allOrderEvents, orderEvents...)\n\n\tif len(allOrderEvents) > 0 {\n\t\t// NOTE(albrow): Send can block if the subscriber(s) are slow. Blocking here can cause problems when Mesh is\n\t\t// shutting down, so to prevent that, we call Send in a goroutine and return immediately if the context\n\t\t// is done.\n\t\tdone := make(chan interface{})\n\t\tgo func() {\n\t\t\tw.orderFeed.Send(allOrderEvents)\n\t\t\tdone <- struct{}{}\n\t\t}()\n\t\tselect {\n\t\tcase <-done:\n\t\t\treturn results, nil\n\t\tcase <-ctx.Done():\n\t\t\treturn results, nil\n\t\t}\n\t}\n\n\treturn results, nil\n}",
"func (order *Order) Valid() bool {\n\tif order.ID == 0 {\n\t\treturn false\n\t}\n\tswitch order.EventType {\n\tcase CommandType_NewOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitch order.Type {\n\t\t\tcase OrderType_Limit:\n\t\t\t\treturn order.Price != 0 && order.Amount != 0\n\t\t\tcase OrderType_Market:\n\t\t\t\treturn order.Funds != 0 && order.Amount != 0\n\t\t\t}\n\t\t}\n\tcase CommandType_CancelOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tif order.Type == OrderType_Limit {\n\t\t\t\treturn order.Price != 0\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (m *MarketIfTouchedOrderRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePositionFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTimeInForce(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTradeClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTriggerCondition(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (o *GetV1LoansParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.Enum(\"order\", \"query\", *o.Order, []interface{}{\"amount\", \"end_at\", \"score\"}); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (m *ModifyOrder) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (app *App) AddOrders(signedOrdersRaw []*json.RawMessage) (*zeroex.ValidationResults, error) {\n\tallValidationResults := &zeroex.ValidationResults{\n\t\tAccepted: []*zeroex.AcceptedOrderInfo{},\n\t\tRejected: []*zeroex.RejectedOrderInfo{},\n\t}\n\tschemaValidOrders := []*zeroex.SignedOrder{}\n\tfor _, signedOrderRaw := range signedOrdersRaw {\n\t\tsignedOrderBytes := []byte(*signedOrderRaw)\n\t\tresult, err := app.schemaValidateOrder(signedOrderBytes)\n\t\tif err != nil {\n\t\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t\tsignedOrder = nil\n\t\t\t}\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Info(\"Unexpected error while attempting to validate signedOrderJSON against schema\")\n\t\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, &zeroex.RejectedOrderInfo{\n\t\t\t\tSignedOrder: signedOrder,\n\t\t\t\tKind: MeshValidation,\n\t\t\t\tStatus: zeroex.RejectedOrderStatus{\n\t\t\t\t\tCode: ROInvalidSchemaCode,\n\t\t\t\t\tMessage: \"order did not pass JSON-schema validation: Malformed JSON or empty payload\",\n\t\t\t\t},\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\t\tif !result.Valid() {\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Info(\"Order failed schema validation\")\n\t\t\tstatus := zeroex.RejectedOrderStatus{\n\t\t\t\tCode: ROInvalidSchemaCode,\n\t\t\t\tMessage: fmt.Sprintf(\"order did not pass JSON-schema validation: %s\", result.Errors()),\n\t\t\t}\n\t\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t\tsignedOrder = nil\n\t\t\t}\n\t\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, &zeroex.RejectedOrderInfo{\n\t\t\t\tSignedOrder: signedOrder,\n\t\t\t\tKind: MeshValidation,\n\t\t\t\tStatus: status,\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\n\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t// This error should never happen since the signedOrder already passed the JSON schema validation above\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Panic(\"Failed to unmarshal SignedOrder\")\n\t\t}\n\t\tschemaValidOrders = append(schemaValidOrders, signedOrder)\n\t}\n\n\tvalidationResults, err := app.validateOrders(schemaValidOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor _, orderInfo := range validationResults.Accepted {\n\t\tallValidationResults.Accepted = append(allValidationResults.Accepted, orderInfo)\n\t}\n\tfor _, orderInfo := range validationResults.Rejected {\n\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, orderInfo)\n\t}\n\n\tfor _, acceptedOrderInfo := range allValidationResults.Accepted {\n\t\terr = app.orderWatcher.Watch(acceptedOrderInfo)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\treturn allValidationResults, nil\n}",
"func (m *OrderEntry) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (s *OpencxAuctionServer) validateOrderResult(claimedAuction [32]byte, result *match.OrderPuzzleResult) (err error) {\n\n\tif result == nil {\n\t\terr = fmt.Errorf(\"Result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Auction == nil {\n\t\terr = fmt.Errorf(\"Auction in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Encrypted == nil {\n\t\terr = fmt.Errorf(\"Encrypted order in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\tlogging.Infof(\"Validating order by pubkey %x\", result.Auction.Pubkey)\n\n\tif result.Err != nil {\n\t\terr = fmt.Errorf(\"Validation detected error early: %s\", result.Err)\n\t\treturn\n\t}\n\n\tif _, err = result.Auction.Price(); err != nil {\n\t\terr = fmt.Errorf(\"Orders with an indeterminable price are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !result.Auction.IsBuySide() && !result.Auction.IsSellSide() {\n\t\terr = fmt.Errorf(\"Orders that aren't buy or sell side are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// We could use pub key hashes here but there might not be any reason for it\n\tvar orderPublicKey *koblitz.PublicKey\n\tif orderPublicKey, err = koblitz.ParsePubKey(result.Auction.Pubkey[:], koblitz.S256()); err != nil {\n\t\terr = fmt.Errorf(\"Orders with a public key that cannot be parsed are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// e = h(asset)\n\tsha3 := sha3.New256()\n\tsha3.Write(result.Auction.SerializeSignable())\n\te := sha3.Sum(nil)\n\n\tvar recoveredPublickey *koblitz.PublicKey\n\tif recoveredPublickey, _, err = koblitz.RecoverCompact(koblitz.S256(), result.Auction.Signature, e); err != nil {\n\t\terr = fmt.Errorf(\"Orders whose signature cannot be verified with pubkey recovery are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !recoveredPublickey.IsEqual(orderPublicKey) {\n\t\terr = fmt.Errorf(\"Recovered public key %x does not equal to pubkey %x in order\", recoveredPublickey.SerializeCompressed(), orderPublicKey.SerializeCompressed())\n\t\treturn\n\t}\n\n\tif !bytes.Equal(result.Encrypted.IntendedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID for decrypted and encrypted order must be equal\")\n\t\treturn\n\t}\n\n\tif !bytes.Equal(claimedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID must equal current auction\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (o Order) Valid() error {\n\t_, ok := orderOptions[o]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: order\")\n\t\tlog.Printf(\"value: %s\", string(o))\n\t\treturn errors.New(\"invalid query param: order\")\n\t}\n\treturn nil\n}",
"func (_EtherDelta *EtherDeltaCaller) Orders(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"orders\", arg0, arg1)\n\treturn *ret0, err\n}",
"func validateOrderDetails(tx db.Tx, order *model.Order, privs model.Privilege) bool {\n\n\torder.Created = time.Now()\n\n\t// Office notes are allowed only by office staff.\n\tif order.ONote != \"\" && privs&model.PrivManageOrders == 0 {\n\t\treturn false\n\t}\n\n\t// Remove any lines with zero quantity. Make sure there's at least one\n\t// line left.\n\tvar j = 0\n\tfor i := range order.Lines {\n\t\tif order.Lines[i].Quantity < 0 {\n\t\t\treturn false\n\t\t}\n\t\tif order.Lines[i].Quantity != 0 {\n\t\t\torder.Lines[j] = order.Lines[i]\n\t\t\tj++\n\t\t}\n\t}\n\torder.Lines = order.Lines[:j]\n\tif len(order.Lines) == 0 {\n\t\treturn false\n\t}\n\n\t// Check the validity of each order line.\n\tfor _, line := range order.Lines {\n\n\t\t// Additional constraints by product type:\n\t\tswitch line.Product.Type {\n\t\tcase model.ProdDonation, model.ProdRecording, model.ProdSheetMusic, model.ProdRegistration, model.ProdAuctionItem:\n\t\t\t// Donations, concert recordings, sheet music, auction\n\t\t\t// items, and event registrations must have a quantity\n\t\t\t// of 1.\n\t\t\tif line.Quantity != 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdWardrobe:\n\t\t\tif line.Quantity < 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdTicket:\n\t\t\tif line.Used < 0 || line.Used > line.Quantity*line.Product.TicketCount {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif line.Used != 0 {\n\t\t\t\tvar found bool\n\t\t\t\tfor _, e := range line.Product.Events {\n\t\t\t\t\tif e.Event.ID == line.UsedAt {\n\t\t\t\t\t\tfound = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif !found {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (o *GetOrderShipmentOKBodyBillingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {\n\treturn _OrderValidationUtils.Contract.contract.Call(opts, result, method, params...)\n}",
"func (_OrderValidationUtils *OrderValidationUtilsRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {\n\treturn _OrderValidationUtils.Contract.OrderValidationUtilsCaller.contract.Call(opts, result, method, params...)\n}",
"func verifyOrder(uname string) []byte {\n\turl := \"http://96.30.245.134:3000/orders/verify\"\n\tpayload := strings.NewReader(\"{\\n\\t\\\"order\\\": {\\n\\t\\t\\\"username\\\": \\\"\" + uname + \"\\\"\\n\\t}\\n}\")\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\treq.Header.Add(\"Accept\", \"*/*\")\n\treq.Header.Add(\"Cache-Control\", \"no-cache\")\n\treq.Header.Add(\"Host\", \"96.30.245.134:3000\")\n\treq.Header.Add(\"Accept-Encoding\", \"gzip, deflate\")\n\treq.Header.Add(\"Content-Length\", \"39\")\n\treq.Header.Add(\"Connection\", \"keep-alive\")\n\treq.Header.Add(\"cache-control\", \"no-cache\")\n\tres, _ := http.DefaultClient.Do(req)\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\t//fmt.Println(res)\n\t//fmt.Println(string(body))\n\treturn body\n\n\t/*\n\t Order does exist response:\n\t {\n\t \"id\": 591,\n\t \"username\": \"test\",\n\t \"created_at\": \"2019-11-15T16:31:21.321Z\",\n\t \"updated_at\": \"2019-11-15T16:31:21.321Z\",\n\t \"url\": \"http://96.30.245.134:3000/orders/591.json\"\n\t }\n\n\t Order does not exist response:\n\t {\n\t \t\"id\": null,\n\t \t\"username\": null,\n\t \t\"created_at\": null,\n\t \t\"updated_at\": null,\n\t \t\"url\": null\n\t }\n\t*/\n}",
"func ValidateOrderResponseBody(body *OrderResponseBody) (err error) {\n\tif body.ChainID == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"chainId\", \"body\"))\n\t}\n\tif body.ExchangeAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"exchangeAddress\", \"body\"))\n\t}\n\tif body.MakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAddress\", \"body\"))\n\t}\n\tif body.TakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAddress\", \"body\"))\n\t}\n\tif body.FeeRecipientAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"feeRecipientAddress\", \"body\"))\n\t}\n\tif body.SenderAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"senderAddress\", \"body\"))\n\t}\n\tif body.MakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetAmount\", \"body\"))\n\t}\n\tif body.TakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetAmount\", \"body\"))\n\t}\n\tif body.MakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFee\", \"body\"))\n\t}\n\tif body.TakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFee\", \"body\"))\n\t}\n\tif body.ExpirationTimeSeconds == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"expirationTimeSeconds\", \"body\"))\n\t}\n\tif body.Salt == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"salt\", \"body\"))\n\t}\n\tif body.MakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetData\", \"body\"))\n\t}\n\tif body.TakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetData\", \"body\"))\n\t}\n\tif body.MakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFeeAssetData\", \"body\"))\n\t}\n\tif body.TakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFeeAssetData\", \"body\"))\n\t}\n\tif body.Signature == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"signature\", \"body\"))\n\t}\n\tif body.ChainID != nil {\n\t\tif !(*body.ChainID == 1 || *body.ChainID == 3 || *body.ChainID == 4 || *body.ChainID == 42 || *body.ChainID == 1337 || *body.ChainID == 15001) {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidEnumValueError(\"body.chainId\", *body.ChainID, []interface{}{1, 3, 4, 42, 1337, 15001}))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.exchangeAddress\", *body.ExchangeAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, true))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAddress\", *body.MakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAddress\", *body.TakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, true))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, false))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.senderAddress\", *body.SenderAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, true))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetAmount\", *body.MakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetAmount\", *body.MakerAssetAmount, utf8.RuneCountInString(*body.MakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetAmount\", *body.TakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetAmount\", *body.TakerAssetAmount, utf8.RuneCountInString(*body.TakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.MakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFee\", *body.MakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFee\", *body.MakerFee, utf8.RuneCountInString(*body.MakerFee), 100, false))\n\t\t}\n\t}\n\tif body.TakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFee\", *body.TakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFee\", *body.TakerFee, utf8.RuneCountInString(*body.TakerFee), 100, false))\n\t\t}\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\tif utf8.RuneCountInString(*body.ExpirationTimeSeconds) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, utf8.RuneCountInString(*body.ExpirationTimeSeconds), 100, false))\n\t\t}\n\t}\n\tif body.Salt != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.salt\", *body.Salt, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.Salt != nil {\n\t\tif utf8.RuneCountInString(*body.Salt) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.salt\", *body.Salt, utf8.RuneCountInString(*body.Salt), 100, false))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetData\", *body.MakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetData\", *body.TakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.Signature != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.signature\", *body.Signature, \"^0x(([0-9a-fA-F][0-9a-fA-F])+)?$\"))\n\t}\n\treturn\n}",
"func assertOrderValid(t *testing.T, actual *Order, expected *Order) {\n\tassert.Equal(t, actual.Location.Lon, expected.Location.Lon)\n\tassert.Equal(t, actual.Location.Lat, expected.Location.Lat)\n\tassert.NotEmpty(t, expected.Id)\n\tassert.Equal(t, actual.Desc, expected.Desc)\n\tassert.NotEmpty(t, expected.TimeRequested)\n\tassert.Equal(t, actual.ConsumerId, expected.ConsumerId)\n\tassert.Equal(t, actual.BidPrice, expected.BidPrice)\n}",
"func (cro CreateOrderRequest) Validate() (int, *Error) {\n\tif (cro.Origin == routes.Location{}) ||\n\t\t(cro.Destination == routes.Location{}) {\n\t\treturn ErrBadRequestParametersMissing(\"origin and destination are mandatory\")\n\t}\n\n\tif !cro.Origin.IsValid() || !cro.Destination.IsValid() {\n\t\treturn ErrBadRequestInvalidBody(\"Origin or destination not in proper format\")\n\t}\n\treturn 0, nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func bindOrderValidationUtils(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := abi.JSON(strings.NewReader(OrderValidationUtilsABI))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil\n}",
"func (o *GetOrderShipmentOKBodyShippingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (o *OrderItem) Validate(tx *pop.Connection) (*validate.Errors, error) {\n\treturn validate.NewErrors(), nil\n}",
"func validatePayment(order *model.Order) bool {\n\tvar total int\n\n\t// Calculate the order total.\n\tfor _, ol := range order.Lines {\n\t\ttotal += ol.Price * ol.Quantity\n\t}\n\t// If this is a free order, it's OK if there is no payment.\n\tif total == 0 && len(order.Payments) == 0 {\n\t\treturn true\n\t}\n\t// Otherwise, there should be exactly one payment.\n\tif len(order.Payments) != 1 {\n\t\treturn false\n\t}\n\t// And it should have the correct amount.\n\tvar pmt = order.Payments[0]\n\tif pmt.Amount != total {\n\t\treturn false\n\t}\n\t// If this is a free order and has a payment, its type must be \"cash\".\n\t// We remove it; no point in storing a zero payment.\n\tif pmt.Amount == 0 {\n\t\tif pmt.Type != model.PaymentCash {\n\t\t\treturn false\n\t\t}\n\t\torder.Payments = order.Payments[:0]\n\t\treturn true\n\t}\n\tpmt.Created = order.Created\n\treturn true\n}",
"func (m *RetrieveOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (m *DynamicOrderState) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ApprovedOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"approvedOrders\", arg0)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) HashOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"hashOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (s *OpencxAuctionServer) validateEncryptedOrder(order *match.EncryptedAuctionOrder) (err error) {\n\n\tvar rswPuzzle *rsw.PuzzleRSW\n\tvar ok bool\n\tif rswPuzzle, ok = order.OrderPuzzle.(*rsw.PuzzleRSW); !ok {\n\t\terr = fmt.Errorf(\"Puzzle could not be converted to RSW puzzle, invalid encrypted order\")\n\t\treturn\n\t}\n\n\tif uint64(rswPuzzle.T.Int64()) != s.t {\n\t\terr = fmt.Errorf(\"The time to solve the puzzle is not correct, invalid encrypted order\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (o *GetOrderShipmentOKBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBillingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingProvider(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *OrderReturnServiceCharge) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAmountMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCatalogObjectID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePercentage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSourceServiceChargeUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalTaxMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func GetOrderFromRequest(w http.ResponseWriter, r *http.Request) (o *model.Order) {\n\tvar err error\n\n\to = new(model.Order)\n\to.Source = model.OrderSource(r.FormValue(\"source\"))\n\to.SaveForReuse = r.FormValue(\"saveForReuse\") != \"\"\n\tswitch o.Source {\n\tcase \"\":\n\t\to.Source = model.OrderFromPublic\n\tcase model.OrderFromPublic, model.OrderFromMembers, model.OrderFromGala, model.OrderFromOffice, model.OrderInPerson:\n\t\t// no-op\n\tdefault:\n\t\tlog.Printf(\"ERROR: invalid source %q\", o.Source)\n\t\thttp.Error(w, `400 Bad Request: invalid \"source\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Name = strings.TrimSpace(r.FormValue(\"name\"))\n\to.Email = strings.TrimSpace(r.FormValue(\"email\"))\n\tif o.Email != \"\" && !emailRE.MatchString(o.Email) {\n\t\tlog.Printf(\"ERROR: invalid email %q\", o.Email)\n\t\thttp.Error(w, `400 Bad Request: invalid \"email\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Address = strings.TrimSpace(r.FormValue(\"address\"))\n\to.City = strings.TrimSpace(r.FormValue(\"city\"))\n\to.State = strings.ToUpper(strings.TrimSpace(r.FormValue(\"state\")))\n\tif o.State != \"\" && !stateRE.MatchString(o.State) {\n\t\tlog.Printf(\"ERROR: invalid state %q\", o.State)\n\t\thttp.Error(w, `400 Bad Request: invalid \"state\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Zip = strings.TrimSpace(r.FormValue(\"zip\"))\n\tif o.Zip != \"\" && !zipRE.MatchString(o.Zip) {\n\t\tlog.Printf(\"ERROR: invalid zip %q\", o.Zip)\n\t\thttp.Error(w, `400 Bad Request: invalid \"zip\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\tif (o.Address != \"\" || o.City != \"\" || o.State != \"\" || o.Zip != \"\") &&\n\t\t(o.Address == \"\" || o.City == \"\" || o.State == \"\" || o.Zip == \"\") {\n\t\tlog.Printf(\"ERROR: have address %v city %v state %v zip %v\",\n\t\t\to.Address != \"\", o.City != \"\", o.State != \"\", o.Zip != \"\")\n\t\thttp.Error(w, `400 Bad Request: specify all or none of \"address\"+\"city\"+\"state\"+\"zip\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Phone = strings.TrimSpace(r.FormValue(\"phone\"))\n\to.Customer = strings.TrimSpace(r.FormValue(\"customer\"))\n\tif o.Customer != \"\" && !customerRE.MatchString(o.Customer) {\n\t\tlog.Printf(\"ERROR: invalid customer %q\", o.Customer)\n\t\thttp.Error(w, `400 Bad Request: invalid \"customer\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\tif mstr := r.FormValue(\"member\"); mstr != \"\" {\n\t\tif o.Member, err = strconv.Atoi(mstr); err != nil || o.Member < 1 {\n\t\t\tlog.Printf(\"ERROR: invalid member %q\", mstr)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"member\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t}\n\to.CNote = strings.TrimSpace(r.FormValue(\"cNote\"))\n\to.ONote = strings.TrimSpace(r.FormValue(\"oNote\"))\n\tif iastr := r.FormValue(\"inAccess\"); iastr != \"\" {\n\t\tif o.InAccess, err = strconv.ParseBool(iastr); err != nil {\n\t\t\tlog.Printf(\"ERROR: invalid inAccess %q\", iastr)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"inAccess\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t}\n\to.Coupon = strings.ToUpper(strings.TrimSpace(r.FormValue(\"coupon\")))\n\tfor idx := 1; true; idx++ {\n\t\tvar (\n\t\t\tol model.OrderLine\n\t\t\tprefix = fmt.Sprintf(\"line%d.\", idx)\n\t\t)\n\t\tif pname := r.FormValue(prefix + \"product\"); pname != \"\" {\n\t\t\tol.Product = &model.Product{ID: model.ProductID(pname)}\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t\tif ol.Quantity, err = strconv.Atoi(r.FormValue(prefix + \"quantity\")); err != nil || ol.Quantity < 1 {\n\t\t\tlog.Printf(\"ERROR: invalid quantity %q\", r.FormValue(prefix+\"quantity\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"quantity\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tif ol.Price, err = strconv.Atoi(r.FormValue(prefix + \"price\")); err != nil || ol.Quantity < 0 {\n\t\t\tlog.Printf(\"ERROR: invalid price %q\", r.FormValue(prefix+\"price\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"price\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tol.GuestName = r.FormValue(prefix + \"guestName\")\n\t\tol.GuestEmail = r.FormValue(prefix + \"guestEmail\")\n\t\tol.Option = r.FormValue(prefix + \"option\")\n\t\tif uval := r.FormValue(prefix + \"used\"); uval != \"\" {\n\t\t\tif ol.Used, err = strconv.Atoi(uval); err != nil || ol.Used < 0 {\n\t\t\t\tlog.Printf(\"ERROR: invalid used amount %q\", uval)\n\t\t\t\thttp.Error(w, `400 Bad Request: invalid \"used\"`, http.StatusBadRequest)\n\t\t\t\tgoto ERROR\n\t\t\t}\n\t\t\tif ol.UsedAt = model.EventID(r.FormValue(prefix + \"usedAt\")); ol.Used > 0 && ol.UsedAt == \"\" {\n\t\t\t\tlog.Printf(\"ERROR: missing usedAt\")\n\t\t\t\thttp.Error(w, `400 Bad Request: \"usedAt\" is required when \"used\" is nonzero`, http.StatusBadRequest)\n\t\t\t\tgoto ERROR\n\t\t\t}\n\t\t}\n\t\to.Lines = append(o.Lines, &ol)\n\t}\n\tfor idx := 1; true; idx++ {\n\t\tvar (\n\t\t\tp model.Payment\n\t\t\tprefix = fmt.Sprintf(\"payment%d.\", idx)\n\t\t)\n\t\tif p.Type = model.PaymentType(r.FormValue(prefix + \"type\")); p.Type == \"\" {\n\t\t\tbreak\n\t\t}\n\t\tswitch p.Type {\n\t\tcase model.PaymentCard, model.PaymentCardPresent, model.PaymentCash, model.PaymentCheck, model.PaymentOther:\n\t\t\t// no-op\n\t\tdefault:\n\t\t\tlog.Printf(\"ERROR: invalid payment type %q\", p.Type)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"type\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tp.Subtype = strings.TrimSpace(r.FormValue(prefix + \"subtype\"))\n\t\tp.Method = strings.TrimSpace(r.FormValue(prefix + \"method\"))\n\t\tif p.Amount, err = strconv.Atoi(r.FormValue(prefix + \"amount\")); err != nil {\n\t\t\tlog.Printf(\"ERROR: invalid payment amount %q\", r.FormValue(prefix+\"amount\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"amount\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\to.Payments = append(o.Payments, &p)\n\t}\n\treturn o\n\nERROR:\n\tlog.Printf(\" in %s %s %+v\", r.Method, r.RequestURI, r.Form)\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SearchOrdersFulfillmentFilter) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (m *PTXServiceDTOShipSpecificationV3ShipRoute) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorityCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperators(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteDistance(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSrcUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTicketPriceDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateVessels(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateWeatherURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SalesDataOrderExtensionInterface) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCompanyOrderAttributes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftCards(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftMessage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateItemAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateShippingAssignments(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (m OrdersType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrdersTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (b Binance) PlaceOrder(ctx context.Context, order types.Order, symbolInfo *types.SymbolInfo) (info types.OrderInfo, err error) {\n\tvar cos *bin.CreateOrderService\n\tvar binanceSymbol string\n\tvar response *bin.CreateOrderResponse\n\tvar numFills, index int\n\tvar fill *bin.Fill\n\tvar orderFills []types.OrderFill\n\tvar strPrice string\n\n\tif binanceSymbol, err = b.symbolToBinance(order.Symbol); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tcos = b.client.NewCreateOrderService()\n\tcos.NewClientOrderID(order.UserReference.String())\n\tcos.Symbol(binanceSymbol)\n\tcos.Side(b.sideToBinance(order.Side))\n\tcos.Type(b.orderTypeToBinance(order.Type))\n\n\tswitch order.Type {\n\tcase types.Limit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.Market:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\tcase types.StopLoss:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\tcase types.StopLossLimit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.TakeProfit:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\tcase types.TakeProfitLimit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.LimitMaker:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\t}\n\n\tif response, err = cos.Do(ctx); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tif info.UserReference, err = uuid.Parse(response.ClientOrderID); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tinfo.ExchangeOrderID = response.OrderID\n\tif info.Symbol, err = b.toSymbol(response.Symbol); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\tinfo.TransactionTime = b.toTime(response.TransactTime)\n\tinfo.OriginalQuantity = b.toFloat(response.OrigQuantity)\n\tinfo.ExecutedQuantity = b.toFloat(response.ExecutedQuantity)\n\tinfo.Status = b.toStatus(response.Status)\n\tinfo.TimeInForce = b.toTimeInForce(response.TimeInForce)\n\tinfo.OrderType = b.toOrderType(response.Type)\n\tinfo.Side = b.toSide(response.Side)\n\n\tnumFills = len(response.Fills)\n\tif numFills > 0 {\n\t\torderFills = make([]types.OrderFill, numFills, numFills)\n\t\tfor index, fill = range response.Fills {\n\t\t\torderFills[index] = types.NewOrderFill(\n\t\t\t\tb.toFloat(fill.Price),\n\t\t\t\tb.toFloat(fill.Quantity),\n\t\t\t\tb.toFloat(fill.Commission),\n\t\t\t\tfill.CommissionAsset,\n\t\t\t)\n\t\t}\n\t\tinfo.Fills = orderFills\n\t}\n\n\treturn\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (fm *FieldModelOrder) Verify() bool { return fm.VerifyType(true) }",
"func (tx *Hello) Validate(p types.Process, loader types.LoaderWrapper, signers []common.PublicHash) error {\n\tsp := p.(*HelloWorld)\n\n\tif has, err := loader.HasAccount(tx.From()); err != nil {\n\t\treturn err\n\t} else if !has {\n\t\treturn types.ErrNotExistAccount\n\t}\n\n\tfromAcc, err := loader.Account(tx.From())\n\tif err != nil {\n\t\treturn err\n\t}\n\tif err := fromAcc.Validate(loader, signers); err != nil {\n\t\treturn err\n\t}\n\n\tif err := sp.vault.CheckFeePayableWith(p, loader, tx, nil); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (s *OrderService) ProcessOrder(order spec.Order) error {\n\terr := spec.Validate(order)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// Check we have a new order\n\tif order.Status != spec.OrderNew {\n\t\treturn OrderStatusError()\n\t}\n\n\tif err := s.AddOrder(order); err != nil {\n\t\treturn err\n\t}\n\n\terr = s.SetStatus(&order, spec.OrderReceived)\n\tif err != nil {\n\t\tlog.Printf(\"### Failed to update state for order %s\\n\", err)\n\t}\n\n\tlog.Printf(\"### Order %s was saved to state store\\n\", order.ID)\n\n\t// Save order to blob storage as a text file \"report\"\n\t// Also email to the user via SendGrid\n\t// For these to work configure the components in cmd/orders/components\n\t// If un-configured then nothing happens (maybe some errors are logged)\n\n\t// Currently the SendGrid integration in Dapr is fubar\n\t// To be fixed by this PR https://github.com/dapr/components-contrib/pull/1867\n\terr = s.EmailNotify(order)\n\tif err != nil {\n\t\tlog.Printf(\"### Email notification failed %s\\n\", err)\n\t}\n\n\terr = s.SaveReport(order)\n\tif err != nil {\n\t\tlog.Printf(\"### Saving order report failed %s\\n\", err)\n\t}\n\n\t// Fake background order processing, move to processing after 30 seconds\n\ttime.AfterFunc(30*time.Second, func() {\n\t\tlog.Printf(\"### Order %s is now processing\\n\", order.ID)\n\t\t_ = s.SetStatus(&order, spec.OrderProcessing)\n\t})\n\n\t// Fake background order completion, move to complete after 2 minutes\n\ttime.AfterFunc(120*time.Second, func() {\n\t\tlog.Printf(\"### Order %s completed\\n\", order.ID)\n\t\t_ = s.SetStatus(&order, spec.OrderComplete)\n\t})\n\n\treturn nil\n}",
"func (o *GetPostListParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.EnumCase(\"order\", \"query\", *o.Order, []interface{}{\"asc\", \"desc\"}, true); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (cl *ocxClient) OrderCommand(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\n\tside := args[0]\n\tpair := args[1]\n\n\tamountHave, err := strconv.ParseUint(args[2], 10, 64)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error parsing amountHave, please enter something valid:\\n%s\", err)\n\t}\n\n\tprice, err := strconv.ParseFloat(args[3], 64)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error parsing price: \\n%s\", err)\n\t}\n\n\tvar pubkey *koblitz.PublicKey\n\tif pubkey, err = cl.RetrievePublicKey(); err != nil {\n\t\treturn\n\t}\n\n\tvar orderSide *match.Side = new(match.Side)\n\tif err = orderSide.FromString(side); err != nil {\n\t\terr = fmt.Errorf(\"Error getting side from string for OrderCommand: %s\", err)\n\t\treturn\n\t}\n\n\tvar reply *cxrpc.SubmitOrderReply\n\tif reply, err = cl.RPCClient.OrderCommand(pubkey, *orderSide, pair, amountHave, price); err != nil {\n\t\treturn\n\t}\n\n\tvar text []byte\n\tif text, err = reply.OrderID.MarshalText(); err != nil {\n\t\terr = fmt.Errorf(\"Could not marshal to text for some reason: %s\", err)\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Submitted order successfully, orderID: %s\", text)\n\treturn nil\n}",
"func (handler *rpcHandler) AddOrders(orders []*zeroex.SignedOrder) (*zeroex.ValidationResults, error) {\n\tlog.Debug(\"received AddOrders request via RPC\")\n\tvalidationResults, err := handler.app.AddOrders(orders)\n\tif err != nil {\n\t\t// We don't want to leak internal error details to the RPC client.\n\t\tlog.WithField(\"error\", err.Error()).Error(\"internal error in AddOrders RPC call\")\n\t\treturn nil, errInternal\n\t}\n\treturn validationResults, nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Struct0, signatures [][]byte) (struct {\n\tOrdersInfo []Struct1\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []Struct1\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _OrderValidationUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (r *createRequest) Validate() *validation.Output {\n\to := &validation.Output{Valid: true}\n\tvar err error\n\tvar PartnerID int64\n\tvar partner *model.Partnership\n\tvar sorder *model.SalesOrder\n\tvar code string\n\n\t// cek partner id ada atau tidak\n\tPartnerID, err = common.Decrypt(r.CustomerID)\n\tif err != nil {\n\t\to.Failure(\"customer_id.invalid\", \"Partnership id is invalid\")\n\t}\n\n\t// cek partner ecist or not\n\tpartner, err = partnership.GetPartnershipByField(\"id\", PartnerID)\n\n\tif err != nil || partner == nil || partner.IsDeleted == 1 || partner.IsArchived == 1 {\n\t\to.Failure(\"customer_id.invalid\", \"Partnership id is not found\")\n\t} else {\n\t\tcode, _ = CodeGen(partner.IsDefault == 1)\n\n\t\tif partner.PartnershipType != \"customer\" {\n\t\t\to.Failure(\"customer_id\", \"Customer needed to have partner type customer not supplier\")\n\t\t}\n\n\t\tif partner.IsDefault == int8(1) {\n\t\t\tif r.AutoFullfilment == int8(0) {\n\t\t\t\to.Failure(\"auto_fullfilment\", \"auto fullfilment need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t\tif r.AutoInvoice == int8(0) {\n\t\t\t\to.Failure(\"auto_invoice\", \"auto invoice need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t\tif r.EtaDate.IsZero() {\n\t\t\t\to.Failure(\"eta_date\", \"ETA Date need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t} else {\n\t\t\tif r.ShipmentAddress == \"\" {\n\t\t\t\to.Failure(\"shipment_address\", \"Shipment address is required\")\n\t\t\t}\n\t\t}\n\n\t\tif partner.OrderRule == \"one_bill\" {\n\t\t\tvar soContainer *model.SalesOrder\n\t\t\torm.NewOrm().Raw(\"SELECT * FROM sales_order WHERE customer_id = ? AND document_status = 'new' OR document_status = 'active' AND invoice_status = 'active';\", PartnerID).QueryRow(&soContainer)\n\t\t\tif soContainer != nil {\n\t\t\t\to.Failure(\"customer_id\", \"Partner still have unfinished invoice\")\n\t\t\t}\n\t\t} else if partner.OrderRule == \"plafon\" {\n\t\t\tcurrent := partner.TotalDebt + r.TotalCharge\n\t\t\tif current >= partner.MaxPlafon {\n\t\t\t\to.Failure(\"customer_id\", \"Partnership has already reached given max plafon\")\n\t\t\t}\n\t\t}\n\t}\n\n\tif r.IsPaid == 1 {\n\t\tif r.AutoInvoice != 1 {\n\t\t\to.Failure(\"auto_invoice\", \"Auto invoice must be checked if Auto Paid is checked\")\n\t\t}\n\t}\n\n\tso := &model.SalesOrder{Code: code}\n\n\tif err := so.Read(\"Code\"); err == nil {\n\t\to.Failure(\"code\", \"Code sales order is already being used\")\n\t} else {\n\t\tr.Code = code\n\t}\n\n\ttz := time.Time{}\n\tif r.EtaDate == tz {\n\t\to.Failure(\"eta_date\", \"Field is required.\")\n\t}\n\n\t// cek status reference id\n\tif r.ReferencesID != \"\" {\n\t\trefID, err := common.Decrypt(r.ReferencesID)\n\t\tif err != nil {\n\t\t\to.Failure(\"references_id\", \"References id is not valid\")\n\t\t}\n\t\tvar emptyLoad []string\n\t\tsorder, err = GetDetailSalesOrder(refID, emptyLoad)\n\t\tif err != nil {\n\t\t\to.Failure(\"references_id\", \"References is not found\")\n\t\t} else {\n\t\t\tif sorder.DocumentStatus != \"approved_cancel\" {\n\t\t\t\to.Failure(\"references_id\", \"References document status is not cancel\")\n\t\t\t}\n\t\t}\n\t}\n\n\tcheckDuplicate := make(map[string]bool)\n\tvar checkVariant = make(map[int64]*model.ItemVariant)\n\n\tfor _, row := range r.SalesOrderItem {\n\t\tIVariantID, _ := common.Decrypt(row.ItemVariantID)\n\t\tivar := &model.ItemVariant{ID: IVariantID}\n\t\tivar.Read(\"ID\")\n\t\t////////////////////////////////\n\t\tif checkVariant[ivar.ID] == nil {\n\t\t\tivar.CommitedStock -= row.Quantity\n\t\t\tcheckVariant[ivar.ID] = ivar\n\t\t} else {\n\t\t\tvariant := checkVariant[ivar.ID]\n\t\t\tvariant.CommitedStock -= row.Quantity\n\t\t\tcheckVariant[ivar.ID] = variant\n\t\t}\n\t\t////////////////////////////////\n\t}\n\n\t// cek setiap sales order item\n\tfor i, row := range r.SalesOrderItem {\n\t\tvar UnitA float64\n\t\tvar PricingID, IVariantID int64\n\t\tvar ItemVariant *model.ItemVariant\n\t\tvar IVPrice *model.ItemVariantPrice\n\t\t// cek item variant,pricing type dan item variant price\n\t\tPricingID, err = common.Decrypt(row.PricingType)\n\n\t\tif err != nil {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.pricing_type.invalid\", i), \"Pricing type id is invalid\")\n\t\t}\n\n\t\tIVariantID, err = common.Decrypt(row.ItemVariantID)\n\t\tif err != nil {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant.invalid\", i), \"Item Variant id is invalid\")\n\t\t}\n\n\t\tvar pt = &model.PricingType{ID: PricingID}\n\t\tpt.Read(\"ID\")\n\t\tvar iv = &model.ItemVariant{ID: IVariantID}\n\t\tiv.Read(\"ID\")\n\n\t\tIVPrice, err = getItemVariantPricing(pt, iv)\n\t\tif err == nil {\n\t\t\tif pt.ParentType != nil {\n\t\t\t\tif pt.RuleType == \"increment\" {\n\t\t\t\t\tif pt.IsPercentage == int8(1) {\n\t\t\t\t\t\ttemp := (pt.Nominal * IVPrice.UnitPrice) / float64(100)\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice + temp\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice + pt.Nominal\n\t\t\t\t\t}\n\n\t\t\t\t\tif row.UnitPrice < UnitA {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif pt.IsPercentage == int8(1) {\n\n\t\t\t\t\t\ttemp := (pt.Nominal * IVPrice.UnitPrice) / float64(100)\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice - temp\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice - pt.Nominal\n\t\t\t\t\t}\n\n\t\t\t\t\tif UnitA < 0 {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.pricing_type.invalid\", i), \"Pricing type can make price become zero\")\n\t\t\t\t\t}\n\t\t\t\t\tif row.UnitPrice < UnitA {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif row.UnitPrice < IVPrice.UnitPrice {\n\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"item variant price doesn't exist\")\n\t\t}\n\n\t\tItemVariant, err = inventory.GetDetailItemVariant(\"id\", IVariantID)\n\t\tif err != nil || ItemVariant == nil || ItemVariant.IsDeleted == int8(1) || ItemVariant.IsArchived == int8(1) {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant_id.invalid\", i), \"Item variant id not found\")\n\t\t} else {\n\n\t\t\t// cek stock dari item variant sama quantity soi\n\t\t\tif (checkVariant[ItemVariant.ID].AvailableStock - ItemVariant.CommitedStock) < row.Quantity {\n\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.quantity.invalid\", i), \"Stock item is not enough to be sold\")\n\t\t\t}\n\n\t\t\t//check duplicate item variant id\n\t\t\tif checkDuplicate[row.ItemVariantID] == true {\n\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant_id.invalid\", i), \" item variant id duplicate\")\n\t\t\t} else {\n\t\t\t\tcheckDuplicate[row.ItemVariantID] = true\n\t\t\t}\n\t\t}\n\n\t\tdiscamount := (row.UnitPrice * float64(row.Discount)) / float64(100)\n\t\tcuramount := row.UnitPrice * float64(row.Quantity)\n\t\tsubtotal := common.FloatPrecision(curamount-discamount, 0)\n\n\t\tr.TotalPrice += subtotal\n\t}\n\n\tif r.IsPercentageDiscount == int8(1) {\n\t\tif r.Discount < 0 || r.Discount > float32(100) {\n\t\t\to.Failure(\"discount\", \"discount is less than and equal 0 or greater than 100\")\n\t\t}\n\t}\n\n\treturn o\n}",
"func (m OrdersType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {\n\treturn nil\n}",
"func BuyerExecuteOrderCmd(cdc *wire.Codec) *cobra.Command {\n\tcmd := &cobra.Command{\n\t\tUse: \"buyerExecuteOrder\",\n\t\tShort: \"executes the exchange escrow transaction from the buyers side\",\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\n\t\t\ttxCtx := context2.NewTxContextFromCLI().WithCodec(cdc)\n\t\t\tcliCtx := context.NewCLIContext().WithCodec(cdc).WithLogger(os.Stdout).WithAccountDecoder(authcmd.GetAccountDecoder(cdc))\n\n\t\t\tif err := cliCtx.EnsureAccountExists(); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfrom, err := cliCtx.GetFromAddress()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbuyerAddressString := viper.GetString(FlagBuyerAddress)\n\t\t\tbuyerAddress, err := sdk.AccAddressFromBech32(buyerAddressString)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tsellerAddressString := viper.GetString(FlagSellerAddress)\n\t\t\tsellerAddress, err := sdk.AccAddressFromBech32(sellerAddressString)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tpegHashStr := viper.GetString(FlagPegHash)\n\t\t\tpegHashHex, err := sdk.GetAssetPegHashHex(pegHashStr)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tfiatProofHashStr := viper.GetString(FlagFiatProofHash)\n\n\t\t\tmsg := client.BuildBuyerExecuteOrderMsg(from, buyerAddress, sellerAddress, pegHashHex, fiatProofHashStr)\n\n\t\t\treturn utils.SendTx(txCtx, cliCtx, []sdk.Msg{msg})\n\t\t},\n\t}\n\tcmd.Flags().AddFlagSet(fsBuyerAddress)\n\tcmd.Flags().AddFlagSet(fsSellerAddress)\n\tcmd.Flags().AddFlagSet(fsPegHash)\n\tcmd.Flags().AddFlagSet(fsFiatProofHash)\n\treturn cmd\n}",
"func (mr *MockExecClientMockRecorder) ProcessOrder(or interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"ProcessOrder\", reflect.TypeOf((*MockExecClient)(nil).ProcessOrder), or)\n}",
"func (s *Server) QueryOrder(ctx context.Context, in *orderPb.QueryOrderRequest) (*orderPb.QueryOrderResponse, error) {\n\tt := time.Now()\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderTotal\"}).Inc()\n\n\t// Check input params.\n\taddress := in.GetAddress()\n\trequestId := in.GetRequestId()\n\tif address == \"\" || requestId == \"\" {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderFailed\"}).Inc()\n\t\treturn nil, errorm.RequestParamEmpty\n\t}\n\n\tdefer func(t time.Time) {\n\t\trpcRequestDuration.With(prometheus.Labels{\"method\": \"QueryOrder\"}).Observe(float64(time.Since(t).Microseconds()) / 1000)\n\t}(t)\n\n\t// Query order info by request id and address.\n\torder, err := s.QueryOrderController(requestId, address)\n\tif err != nil {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderError\"}).Inc()\n\t\treturn nil, err\n\t}\n\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderSuccess\"}).Inc()\n\treturn &orderPb.QueryOrderResponse{\n\t\tType: order.OrderType,\n\t\tFileName: order.FileName,\n\t\tFileSize: order.FileSize,\n\t\tFileHash: order.FileHash,\n\t\tFee: order.Amount,\n\t\tStatus: order.Status,\n\t\tDescription: \"\",\n\t}, nil\n}",
"func (m *AgreeFinishOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for AgreeementToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (_AuthContract *AuthContractTransactor) Validate(opts *bind.TransactOpts, _tx [32]byte, _target common.Address, _sender common.Address, _receiver common.Address, _amt *big.Int) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"validate\", _tx, _target, _sender, _receiver, _amt)\n}",
"func (o *TelemetryDruidScanRequestAllOf) HasOrder() bool {\n\tif o != nil && o.Order != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (a *App) PlaceOrderHandler() http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tctx := r.Context()\n\t\tcontextLogger := log.WithContext(ctx)\n\t\tcontextLogger.Info(\"app: PlaceOrderHandler started\")\n\n\t\treq := orderRequestBody{}\n\t\tdec := json.NewDecoder(r.Body)\n\t\tdec.DisallowUnknownFields()\n\t\terr := dec.Decode(&req)\n\t\tif err != nil {\n\t\t\tcontextLogger.Warnf(\"app: 400 Bad Request - decode error %v\",\n\t\t\t\terr.Error())\n\t\t\tclientError(w, http.StatusBadRequest, ErrCodeBadRequest,\n\t\t\t\terr.Error()) // 400\n\t\t\treturn\n\t\t}\n\t\tdefer r.Body.Close()\n\n\t\tmessage, ok := validateOrderRequestBody(&req)\n\t\tif !ok {\n\t\t\tcontextLogger.Warnf(\"app: 400 Bad Request - validation %v\",\n\t\t\t\tmessage)\n\t\t\tclientError(w, http.StatusConflict,\n\t\t\t\tErrCodeBadRequest, message) // 400\n\t\t\treturn\n\t\t}\n\n\t\tvar order *service.Order\n\t\tif req.UserID == nil {\n\t\t\torder, err = a.Service.PlaceGuestOrder(ctx, *req.CartID, *req.ContactName, *req.Email,\n\t\t\t\treq.Billing, req.Shipping)\n\t\t} else {\n\t\t\torder, err = a.Service.PlaceOrder(ctx, *req.CartID,\n\t\t\t\t*req.UserID, *req.BillingID, *req.ShippingID)\n\t\t}\n\n\t\tif err == service.ErrCartNotFound {\n\t\t\tcontextLogger.Warn(\"app: 404 Not Found - cart not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeCartNotFound,\n\t\t\t\t\"cart not found\") // 404\n\t\t}\n\t\tif err == service.ErrCartEmpty {\n\t\t\tcontextLogger.Warn(\"app: 409 Conflict - cart is empty\")\n\t\t\tclientError(w, http.StatusConflict, ErrCodeOrderCartEmpty,\n\t\t\t\t\"The cart id you passed contains no items\") // 404\n\t\t\treturn\n\t\t}\n\t\tif err == service.ErrUserNotFound {\n\t\t\tcontextLogger.Warn(\"app: 404 Not Found - user not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeOrderUserNotFound,\n\t\t\t\t\"The user with the given user_id could not be found\") // 404\n\t\t\treturn\n\t\t}\n\t\tif err == service.ErrAddressNotFound {\n\t\t\tcontextLogger.Warnf(\"app: 404 Not Found - address not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeAddressNotFound,\n\t\t\t\t\"billing or shipping address not found\")\n\t\t\treturn\n\t\t}\n\t\tif err != nil {\n\t\t\tcontextLogger.Panicf(\"app: PlaceOrder(ctx, ...) failed with error: %v\", err)\n\t\t\tw.WriteHeader(http.StatusInternalServerError) // 500\n\t\t\treturn\n\t\t}\n\t\tw.WriteHeader(http.StatusCreated) // 201 Created\n\t\tjson.NewEncoder(w).Encode(&order)\n\t}\n}",
"func (c *BFTChain) Order(env *cb.Envelope, configSeq uint64) error {\n\tseq := c.support.Sequence()\n\tif configSeq < seq {\n\t\tc.Logger.Warnf(\"Normal message was validated against %d, although current config seq has advanced (%d)\", configSeq, seq)\n\t\tif _, err := c.support.ProcessNormalMsg(env); err != nil {\n\t\t\treturn errors.Errorf(\"bad normal message: %s\", err)\n\t\t}\n\t}\n\n\treturn c.submit(env, configSeq)\n}",
"func (o *TelemetryDruidScanRequestAllOf) GetOrderOk() (*string, bool) {\n\tif o == nil || o.Order == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Order, true\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) HashOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\treturn _WyvernExchange.Contract.HashOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (m *OrderPaymentInstrument) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorizationStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateBankRoutingNumber(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentBankAccount(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentCard(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentMethodID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SetTradeDependentOrdersBadRequestBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateRelatedTransactionIds(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_Transactable *TransactableCaller) ValidateTransaction(opts *bind.CallOpts, _v uint8, _r [32]byte, _s [32]byte, _dest common.Address, _value *big.Int, _ts *big.Int) (bool, error) {\n\tvar out []interface{}\n\terr := _Transactable.contract.Call(opts, &out, \"validateTransaction\", _v, _r, _s, _dest, _value, _ts)\n\n\tif err != nil {\n\t\treturn *new(bool), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(bool)).(*bool)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaCallerSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {\n\treturn _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)\n}",
"func (_m *ValidatorService) ValidateOperatorAddress(o *types.Order) error {\n\tret := _m.Called(o)\n\n\tvar r0 error\n\tif rf, ok := ret.Get(0).(func(*types.Order) error); ok {\n\t\tr0 = rf(o)\n\t} else {\n\t\tr0 = ret.Error(0)\n\t}\n\n\treturn r0\n}",
"func orderEnough(val, lots, feeRate uint64, nfo *dex.Asset) func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\treturn func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\t\treqFunds := calc.RequiredOrderFundsAlt(val, uint64(size+unspent.input.Size()), lots, nfo.SwapSizeBase, nfo.SwapSize, feeRate)\n\t\t// needed fees are reqFunds - value\n\t\treturn sum+toAtoms(unspent.rpc.Amount) >= reqFunds\n\t}\n}",
"func (me *SALESORDER_IMPL) GetOrderStatus (\n clientCode string,\n detailView models_pkg.DetailView1Enum,\n startTime *time.Time,\n endTime *time.Time,\n orderNo []string,\n limit *int64,\n offset *int64) (*models_pkg.OrderStatusResponse1, error) {\n //the endpoint path uri\n _pathUrl := \"/v2/order\"\n\n //variable to hold errors\n var err error = nil\n //the base uri for api requests\n _queryBuilder := configuration_pkg.GetBaseURI(configuration_pkg.ENUM_DEFAULT,me.config);\n\n //prepare query string for API call\n _queryBuilder = _queryBuilder + _pathUrl\n\n //process optional query parameters\n _queryBuilder, err = apihelper_pkg.AppendUrlWithQueryParameters(_queryBuilder, map[string]interface{} {\n \"clientCode\" : clientCode,\n \"detailView\" : models_pkg.DetailView1EnumToValue(detailView),\n \"startTime\" : startTime,\n \"endTime\" : endTime,\n \"orderNo\" : orderNo,\n \"limit\" : limit,\n \"offset\" : offset,\n })\n if err != nil {\n //error in query param handling\n return nil, err\n }\n\n //validate and preprocess url\n _queryBuilder, err = apihelper_pkg.CleanUrl(_queryBuilder)\n if err != nil {\n //error in url validation or cleaning\n return nil, err\n }\n //prepare headers for the outgoing request\n headers := map[string]interface{} {\n \"user-agent\" : \"APIMATIC 2.0\",\n \"accept\" : \"application/json\",\n }\n\n //prepare API request\n _request := unirest.Get(_queryBuilder, headers)\n //and invoke the API call request to fetch the response\n _response, err := unirest.AsString(_request,false);\n if err != nil {\n //error in API invocation\n return nil, err\n }\n\n //error handling using HTTP status codes\n if (_response.Code == 400) {\n err = apihelper_pkg.NewAPIError(\"Response on Failure\", _response.Code, _response.RawBody)\n } else if (_response.Code == 0) {\n err = apihelper_pkg.NewAPIError(\"Unexpected error\", _response.Code, _response.RawBody)\n } else if (_response.Code < 200) || (_response.Code > 206) { //[200,206] = HTTP OK\n err = apihelper_pkg.NewAPIError(\"HTTP Response Not OK\", _response.Code, _response.RawBody)\n }\n if(err != nil) {\n //error detected in status code validation\n return nil, err\n }\n\n //returning the response\n var retVal *models_pkg.OrderStatusResponse1 = &models_pkg.OrderStatusResponse1{}\n err = json.Unmarshal(_response.RawBody, &retVal)\n\n if err != nil {\n //error in parsing\n return nil, err\n }\n return retVal, nil\n\n}",
"func (_DevUtils *DevUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []LibOrderOrder, signatures [][]byte) (struct {\n\tOrdersInfo []LibOrderOrderInfo\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []LibOrderOrderInfo\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _DevUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) HashOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\treturn _WyvernExchange.Contract.HashOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (o *V3SetErrorOrderInput) GetOrdersOk() (*[]V3OrderIntegrationError, bool) {\n\tif o == nil || o.Orders == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Orders, true\n}",
"func (_BaseAccessWallet *BaseAccessWalletCaller) ValidateTransaction(opts *bind.CallOpts, _v uint8, _r [32]byte, _s [32]byte, _dest common.Address, _value *big.Int, _ts *big.Int) (bool, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWallet.contract.Call(opts, &out, \"validateTransaction\", _v, _r, _s, _dest, _value, _ts)\n\n\tif err != nil {\n\t\treturn *new(bool), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(bool)).(*bool)\n\n\treturn out0, err\n\n}",
"func OrderVerifyPaymentAndUpdate(c buffalo.Context) error {\n\torderVerificationRequest := models.OrderVerificationRequest{}\n\n\ttx, ok := c.Value(\"tx\").(*pop.Connection)\n\tif !ok {\n\t\treturn errors.WithStack(errors.New(\"transaction not found\"))\n\t}\n\n\tif err := c.Bind(&orderVerificationRequest); err != nil {\n\t\treturn c.Error(http.StatusBadRequest, err)\n\t}\n\n\t_, err := paystack.VerifyPayment(orderVerificationRequest.Reference)\n\tif err != nil {\n\t\treturn c.Error(http.StatusBadRequest, err)\n\t}\n\t// mdata := data[\"data\"].(map[string]interface{})[\"metadata\"].(map[string]interface{})\n\t// customFields := mdata[\"custom_fields\"].([]interface{})\n\t// orderID := customFields[0].(map[string]interface{})[\"order_id\"]\n\t// orderIDString := customFields[0].(map[string]interface{})[\"order_id\"].(string)\n\n\t// orderID, err := uuid.FromString(orderIDString)\n\t// if err != nil {\n\t// \tlog.Printf(\"failed to parse UUID %q: %v\", orderIDString, err)\n\t// }\n\torderID := orderVerificationRequest.Order.ID\n\torder := models.Order{}\n\tif err := tx.Find(&order, orderID); err != nil {\n\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"order not found!\"))\n\t}\n\torder.PaymentRef = orderVerificationRequest.Reference\n\torder.Status = Paid\n\n\tif err := tx.Save(&order); err != nil {\n\t\tlog.Println(err)\n\t\treturn c.Error(http.StatusInternalServerError, err)\n\t}\n\n\torderItems := models.OrderItems{}\n\tif err := tx.Where(\"order_id = ? AND status = ?\", orderID, Pending).All(&orderItems); err != nil {\n\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"order items not found!\"))\n\t}\n\n\t// update cart DB\n\tcart := models.Cart{}\n\n\tfor _, orderItem := range orderItems {\n\t\torderItem.DeliveryState = Processing\n\t\torderItem.Status = Paid\n\n\t\tif err = tx.Save(&orderItem); err != nil {\n\t\t\tlog.Println(err)\n\t\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"an error occured while saving the order item: %v\", err))\n\t\t}\n\n\t\tif err := tx.Where(\"user_id = ? AND product_id = ? AND status = ?\", orderItem.UserID,\n\t\t\torderItem.ProductID, Pending).First(&cart); err != nil {\n\n\t\t\tif errors.Cause(err) == sql.ErrNoRows {\n\t\t\t\tlog.Println(\"product is not in cart\")\n\t\t\t} else {\n\t\t\t\treturn errors.WithStack(err)\n\t\t\t}\n\t\t} else {\n\t\t\tcart.Status = Paid\n\t\t\tif err := tx.Update(&cart, \"user_id\", \"product_id\", \"cart_id\"); err != nil {\n\t\t\t\tlog.Println(err)\n\t\t\t\treturn errors.Errorf(\"Error: failed to update cart: %v\", err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn c.Render(200, r.JSON(map[string]interface{}{\n\t\t\"message\": \"order verified successfully\",\n\t}))\n}",
"func (t *TradePool) orderCheck(order *comm.Order) (target int, res bool) {\n\tif order == nil {\n\t\treturn -1, false\n\t}\n\n\t/// find Order by ID\n\tvar (\n\t\ttargetID int = -1\n\t\tsuc bool = false\n\t\telem *list.Element = nil\n\t)\n\tif order.AorB == comm.TradeType_BID {\n\t\ttargetID, suc = binarySearchOrderID(t.bidPoolIDSlice, order.ID)\n\t\tif suc {\n\t\t\telem = t.bidPoolIDSlice[targetID]\n\t\t}\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\ttargetID, suc = binarySearchOrderID(t.askPoolIDSlice, order.ID)\n\t\tif suc {\n\t\t\telem = t.askPoolIDSlice[targetID]\n\t\t}\n\t} else {\n\t\tfmt.Println(\"Illegal order type!\\n\")\n\t\treturn -1, false\n\t}\n\n\tif suc {\n\t\tif elem.Value.(comm.Order).Who == order.Who &&\n\t\t\telem.Value.(comm.Order).Price == order.Price &&\n\t\t\t///elem.Value.(comm.Order).Timestamp == order.Timestamp {\n\t\t\telem.Value.(comm.Order).EnOrderPrice == order.EnOrderPrice &&\n\t\t\telem.Value.(comm.Order).TotalVolume == order.TotalVolume {\n\t\t\treturn targetID, true\n\t\t} else {\n\t\t\treturn targetID, false\n\t\t}\n\t} else {\n\t\tcomm.DebugPrintln(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"OrderCheck in ME trade pool fail! Not a trading order.\\n\")\n\t\treturn -1, false\n\t}\n}",
"func ValidateGetActiveOrderResponseBody(body *GetActiveOrderResponseBody) (err error) {\n\tif body.Order != nil {\n\t\tif err2 := ValidateOrderResponseBody(body.Order); err2 != nil {\n\t\t\terr = goa.MergeErrors(err, err2)\n\t\t}\n\t}\n\treturn\n}",
"func (a API) ValidateAddress(cmd *btcjson.ValidateAddressCmd) (e error) {\n\tRPCHandlers[\"validateaddress\"].Call <-API{a.Ch, cmd, nil}\n\treturn\n}",
"func verifyParseOrder(parseOrder []string) (validToken string, validPath bool, err error) {\n\t// Do a substring search for the parseOrder sent in on each of the valid grammars.\n\tfor _, validPath := range artifactV3ParseGrammar {\n\t\tif len(parseOrder) > len(validPath) {\n\t\t\tcontinue\n\t\t}\n\t\t// Check for a submatch in the current validPath.\n\t\tfor i := range parseOrder {\n\t\t\tif validPath[i] != parseOrder[i] {\n\t\t\t\tbreak // Check the next validPath against the parseOrder.\n\t\t\t}\n\t\t\t// We have a submatch. Check if the entire length matches.\n\t\t\tif i == len(parseOrder)-1 {\n\t\t\t\tif len(parseOrder) == len(validPath) {\n\t\t\t\t\treturn parseOrder[i], true, nil // Full match.\n\t\t\t\t}\n\t\t\t\treturn parseOrder[i], false, nil\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\", false, errParseOrder\n}",
"func (c *Client) VerifyOrder(ctx context.Context, purchaseToken, productID string, accountFlag int64) (InAppPurchaseData, error) {\n\tvar iap InAppPurchaseData\n\n\tdataString, _, err := c.GetOrderDataString(ctx, purchaseToken, productID, accountFlag)\n\tif err != nil {\n\t\treturn iap, err\n\t}\n\n\tif err := json.Unmarshal([]byte(dataString), &iap); err != nil {\n\t\treturn iap, err\n\t}\n\n\treturn iap, nil\n}",
"func (o *IndexClientCertificatesParams) bindOrder(rawData []string, hasKey bool, formats strfmt.Registry) error {\n\tvar raw string\n\tif len(rawData) > 0 {\n\t\traw = rawData[len(rawData)-1]\n\t}\n\n\t// Required: false\n\t// AllowEmptyValue: false\n\n\tif raw == \"\" { // empty values pass all other validations\n\t\treturn nil\n\t}\n\n\tvalue, err := swag.ConvertBool(raw)\n\tif err != nil {\n\t\treturn errors.InvalidType(\"order\", \"query\", \"bool\", raw)\n\t}\n\to.Order = &value\n\n\treturn nil\n}",
"func (m OrderType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrderTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func checkRsReturnOrderNumber(value interface{}) error {\n\ts, _ := value.(string)\n\tisValid, _ := regexp.MatchString(`^RS[[:digit:]]{10}|[[:digit:]]{11}$`, s)\n\tif isValid {\n\t\treturn nil\n\t}\n\treturn errors.New(\"format incorrect\")\n}",
"func (a *Client) CalculateOrder(params *CalculateOrderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateOrderOK, error) {\n\t// TODO: Validate the params before sending\n\tif params == nil {\n\t\tparams = NewCalculateOrderParams()\n\t}\n\top := &runtime.ClientOperation{\n\t\tID: \"CalculateOrder\",\n\t\tMethod: \"POST\",\n\t\tPathPattern: \"/v2/orders/calculate\",\n\t\tProducesMediaTypes: []string{\"application/json\"},\n\t\tConsumesMediaTypes: []string{\"application/json\"},\n\t\tSchemes: []string{\"https\"},\n\t\tParams: params,\n\t\tReader: &CalculateOrderReader{formats: a.formats},\n\t\tAuthInfo: authInfo,\n\t\tContext: params.Context,\n\t\tClient: params.HTTPClient,\n\t}\n\tfor _, opt := range opts {\n\t\topt(op)\n\t}\n\n\tresult, err := a.transport.Submit(op)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tsuccess, ok := result.(*CalculateOrderOK)\n\tif ok {\n\t\treturn success, nil\n\t}\n\t// unexpected success response\n\t// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue\n\tmsg := fmt.Sprintf(\"unexpected success response for CalculateOrder: API contract not enforced by server. Client expected to get an error, but got: %T\", result)\n\tpanic(msg)\n}",
"func (o *GetOrderShipmentOKBodyItemsItems0) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (v ValidatePayment) Run(ctx context.Context, p *process.Process) process.RunResult {\n\tctx, span := trace.StartSpan(ctx, \"placeorder/state/ValidatePayment/Run\")\n\tdefer span.End()\n\n\treturn v.validator(ctx, p, v.paymentService)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (o *V3SetErrorOrderInput) HasOrders() bool {\n\tif o != nil && o.Orders != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (m EveroutePackageOrderByInput) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateEveroutePackageOrderByInputEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (a API) ValidateAddressChk() (isNew bool) {\n\tselect {\n\tcase o := <-a.Ch.(chan ValidateAddressRes):\n\t\tif o.Err != nil {\n\t\t\ta.Result = o.Err\n\t\t} else {\n\t\t\ta.Result = o.Res\n\t\t}\n\t\tisNew = true\n\tdefault:\n\t}\n\treturn\n}",
"func (e OrderValidationError) Cause() error { return e.cause }",
"func (client *Client) SendOrder(action, otype string, amount, price float64) (int64, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tSymbol string `json:\"symbol\"`\n\t\tAmount float64 `json:\"amount,string\"`\n\t\tPrice float64 `json:\"price,string\"`\n\t\tExchange string `json:\"exchange\"`\n\t\tSide string `json:\"side\"`\n\t\tType string `json:\"type\"`\n\t}{\n\t\t\"/v1/order/new\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tclient.symbol + client.currency,\n\t\tamount,\n\t\tprice,\n\t\t\"bitfinex\",\n\t\taction,\n\t\totype,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tID int64 `json:\"order_id\"`\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, response.Message)\n\t}\n\n\treturn response.ID, nil\n}",
"func orderEnough(val, lots uint64, nfo *dex.Asset) func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\treturn func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\t\treqFunds := calc.RequiredOrderFunds(val, uint64(size+unspent.input.Size()), lots, nfo)\n\t\t// needed fees are reqFunds - value\n\t\treturn sum+toAtoms(unspent.rpc.Amount) >= reqFunds\n\t}\n}"
] | [
"0.8490594",
"0.8355656",
"0.72828186",
"0.70851344",
"0.69125086",
"0.6251773",
"0.6090719",
"0.59816253",
"0.5968006",
"0.58886576",
"0.58246255",
"0.5824586",
"0.58060944",
"0.5798341",
"0.5750852",
"0.5725584",
"0.5722019",
"0.56614596",
"0.5622927",
"0.56027985",
"0.5590803",
"0.55907154",
"0.555228",
"0.54675895",
"0.5465692",
"0.5420463",
"0.54024196",
"0.5402098",
"0.5372327",
"0.53647494",
"0.5361424",
"0.53435916",
"0.5302891",
"0.5302094",
"0.5281889",
"0.5266688",
"0.5258336",
"0.5251219",
"0.52245945",
"0.5222966",
"0.51997155",
"0.51788104",
"0.5174678",
"0.51594186",
"0.51510245",
"0.5150342",
"0.51434284",
"0.5116561",
"0.50725824",
"0.5062963",
"0.50590456",
"0.5047731",
"0.50308347",
"0.5017573",
"0.5016519",
"0.50109476",
"0.50090265",
"0.5007794",
"0.5007183",
"0.4998233",
"0.49979207",
"0.49904662",
"0.4984072",
"0.49839076",
"0.4979735",
"0.49771863",
"0.49642873",
"0.49624577",
"0.49587902",
"0.49574274",
"0.4913267",
"0.4889479",
"0.48817408",
"0.48512557",
"0.4844862",
"0.48376253",
"0.4832837",
"0.48257706",
"0.4816655",
"0.47984833",
"0.479314",
"0.47840425",
"0.478291",
"0.4781086",
"0.47807196",
"0.47804865",
"0.47775924",
"0.4760637",
"0.47569853",
"0.4752168",
"0.47520143",
"0.47470722",
"0.47461718",
"0.47439077",
"0.47386637",
"0.47363266",
"0.4736049",
"0.47315273",
"0.47299188",
"0.47266707"
] | 0.82463324 | 2 |
ValidateOrder is a free data retrieval call binding the contract method 0x60bef33a. Solidity: function validateOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, uint8 v, bytes32 r, bytes32 s) constant returns(bool) | func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {
return _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrderParameters(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrderParameters_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ValidateOrderParameters(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrderParameters(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (us UsersSVCClient) ValidateOrder(orderId int) (usersvc.Order, usersvc.Plan, error) {\n\tconn, err := common.OpenGRPCConnection(us.host)\n\tif err != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, err\n\t}\n\tdefer conn.Close()\n\n\tclient := grpcusr.NewUserSVCClient(conn)\n\tresp, validateError := client.ValidateOrder(context.Background(), &grpcusr.ValidateOrderRequest{\n\t\tOrderId: int32(orderId),\n\t})\n\n\tif validateError != nil {\n\t\treturn usersvc.Order{}, usersvc.Plan{}, validateError\n\t}\n\n\torder, decodeOrderError := usersvc.DecodeOrder(resp.Order)\n\tif decodeOrderError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, usersvc.Plan{}, decodeOrderError\n\t}\n\n\tplan, decodePlanError := usersvc.DecodePlan(resp.Plan)\n\tif decodePlanError != nil {\n\t\tlevel.Error(us.logger).Log(\"msg\", \"Failed to validate key\", \"err\", err)\n\t\treturn *order, *plan, decodePlanError\n\t}\n\n\tif resp.Err != common.ErrorNilString {\n\t\treturn *order, *plan, errors.New(resp.Err)\n\t}\n\n\n\treturn *order, *plan, nil\n}",
"func (m *Order) Validate() error {\n\treturn m.validate(false)\n}",
"func (p *Order) Validate(act coract.Action) (err error) {\n\n\tswitch act {\n\tcase coract.Save:\n\n\t\t// if len(p.Name) > 255 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"name\",\n\t\t// \t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t// \t\tdict.R(corterm.Name), 255)\n\t\t// }\n\n\t\t// if p.Price == 0 {\n\t\t// \terr = limberr.AddInvalidParam(err, \"price\",\n\t\t// \t\tcorerr.VisRequired, dict.R(\"price\"))\n\t\t// }\n\n\t\tif len(p.Description) > 255 {\n\t\t\terr = limberr.AddInvalidParam(err, \"description\",\n\t\t\t\tcorerr.MaximumAcceptedCharacterForVisV,\n\t\t\t\tdict.R(corterm.Description), 255)\n\t\t}\n\t}\n\n\treturn err\n}",
"func (m *Order) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (w *Watcher) ValidateAndStoreValidOrdersV4(ctx context.Context, orders []*zeroex.SignedOrderV4, chainID int, pinned bool, opts *types.AddOrdersOpts) (*ordervalidator.ValidationResults, error) {\n\tif len(orders) == 0 {\n\t\treturn &ordervalidator.ValidationResults{}, nil\n\t}\n\tresults, validMeshOrders, err := w.meshSpecificOrderValidationV4(orders, chainID, pinned)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvalidationBlock, zeroexResults, err := w.onchainOrderValidationV4(ctx, validMeshOrders)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tresults.Accepted = append(results.Accepted, zeroexResults.Accepted...)\n\tresults.Rejected = append(results.Rejected, zeroexResults.Rejected...)\n\n\t// Filter out only the new orders.\n\tnewOrderInfos := []*ordervalidator.AcceptedOrderInfo{}\n\tfor _, acceptedOrderInfo := range results.Accepted {\n\t\t// If the order isn't new, we don't add to OrderWatcher.\n\t\tif acceptedOrderInfo.IsNew {\n\t\t\tnewOrderInfos = append(newOrderInfos, acceptedOrderInfo)\n\t\t}\n\t}\n\n\tif opts.KeepCancelled || opts.KeepExpired || opts.KeepFullyFilled || opts.KeepUnfunded {\n\t\tfor _, rejectedOrderInfo := range zeroexResults.Rejected {\n\t\t\t// NOTE(jalextowle): We can use the rejectedOrderInfo.Status\n\t\t\t// field to see whether or not the order is new or not. If\n\t\t\t// the order has already been stored, the rejectedOrderInfo.Status\n\t\t\t// field will be ordervalidator.ROOrderAlreadyStoredAndUnfillable.\n\t\t\t// If the rejection reason involves on-chain validation, then the\n\t\t\t// order is new.\n\t\t\tif (opts.KeepCancelled && rejectedOrderInfo.Status.Code == ordervalidator.ROCancelled.Code) ||\n\t\t\t\t(opts.KeepExpired && rejectedOrderInfo.Status.Code == ordervalidator.ROExpired.Code) ||\n\t\t\t\t(opts.KeepFullyFilled && rejectedOrderInfo.Status.Code == ordervalidator.ROFullyFilled.Code) ||\n\t\t\t\t(opts.KeepUnfunded && rejectedOrderInfo.Status.Code == ordervalidator.ROUnfunded.Code) {\n\t\t\t\tnewOrderInfos = append(newOrderInfos, &ordervalidator.AcceptedOrderInfo{\n\t\t\t\t\tOrderHash: rejectedOrderInfo.OrderHash,\n\t\t\t\t\tSignedOrder: rejectedOrderInfo.SignedOrder,\n\t\t\t\t\tSignedOrderV4: rejectedOrderInfo.SignedOrderV4,\n\t\t\t\t\t// TODO(jalextowle): Verify that this is consistent with the OrderWatcher\n\t\t\t\t\tFillableTakerAssetAmount: big.NewInt(0),\n\t\t\t\t\tIsNew: true,\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n\n\t// Add the order to the OrderWatcher. This also saves the order in the\n\t// database.\n\tallOrderEvents := []*zeroex.OrderEvent{}\n\torderEvents, err := w.add(newOrderInfos, validationBlock, pinned, opts)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tallOrderEvents = append(allOrderEvents, orderEvents...)\n\n\tif len(allOrderEvents) > 0 {\n\t\t// NOTE(albrow): Send can block if the subscriber(s) are slow. Blocking here can cause problems when Mesh is\n\t\t// shutting down, so to prevent that, we call Send in a goroutine and return immediately if the context\n\t\t// is done.\n\t\tdone := make(chan interface{})\n\t\tgo func() {\n\t\t\tw.orderFeed.Send(allOrderEvents)\n\t\t\tdone <- struct{}{}\n\t\t}()\n\t\tselect {\n\t\tcase <-done:\n\t\t\treturn results, nil\n\t\tcase <-ctx.Done():\n\t\t\treturn results, nil\n\t\t}\n\t}\n\n\treturn results, nil\n}",
"func (m *MarketIfTouchedOrderRequest) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePositionFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTimeInForce(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTradeClientExtensions(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOnFill(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTriggerCondition(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateType(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (order *Order) Valid() bool {\n\tif order.ID == 0 {\n\t\treturn false\n\t}\n\tswitch order.EventType {\n\tcase CommandType_NewOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitch order.Type {\n\t\t\tcase OrderType_Limit:\n\t\t\t\treturn order.Price != 0 && order.Amount != 0\n\t\t\tcase OrderType_Market:\n\t\t\t\treturn order.Funds != 0 && order.Amount != 0\n\t\t\t}\n\t\t}\n\tcase CommandType_CancelOrder:\n\t\t{\n\t\t\tif order.Stop != StopLoss_None {\n\t\t\t\tif order.StopPrice == 0 {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tif order.Type == OrderType_Limit {\n\t\t\t\treturn order.Price != 0\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (o *GetV1LoansParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.Enum(\"order\", \"query\", *o.Order, []interface{}{\"amount\", \"end_at\", \"score\"}); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (m *ModifyOrder) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (app *App) AddOrders(signedOrdersRaw []*json.RawMessage) (*zeroex.ValidationResults, error) {\n\tallValidationResults := &zeroex.ValidationResults{\n\t\tAccepted: []*zeroex.AcceptedOrderInfo{},\n\t\tRejected: []*zeroex.RejectedOrderInfo{},\n\t}\n\tschemaValidOrders := []*zeroex.SignedOrder{}\n\tfor _, signedOrderRaw := range signedOrdersRaw {\n\t\tsignedOrderBytes := []byte(*signedOrderRaw)\n\t\tresult, err := app.schemaValidateOrder(signedOrderBytes)\n\t\tif err != nil {\n\t\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t\tsignedOrder = nil\n\t\t\t}\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Info(\"Unexpected error while attempting to validate signedOrderJSON against schema\")\n\t\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, &zeroex.RejectedOrderInfo{\n\t\t\t\tSignedOrder: signedOrder,\n\t\t\t\tKind: MeshValidation,\n\t\t\t\tStatus: zeroex.RejectedOrderStatus{\n\t\t\t\t\tCode: ROInvalidSchemaCode,\n\t\t\t\t\tMessage: \"order did not pass JSON-schema validation: Malformed JSON or empty payload\",\n\t\t\t\t},\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\t\tif !result.Valid() {\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Info(\"Order failed schema validation\")\n\t\t\tstatus := zeroex.RejectedOrderStatus{\n\t\t\t\tCode: ROInvalidSchemaCode,\n\t\t\t\tMessage: fmt.Sprintf(\"order did not pass JSON-schema validation: %s\", result.Errors()),\n\t\t\t}\n\t\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t\tsignedOrder = nil\n\t\t\t}\n\t\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, &zeroex.RejectedOrderInfo{\n\t\t\t\tSignedOrder: signedOrder,\n\t\t\t\tKind: MeshValidation,\n\t\t\t\tStatus: status,\n\t\t\t})\n\t\t\tcontinue\n\t\t}\n\n\t\tsignedOrder := &zeroex.SignedOrder{}\n\t\tif err := signedOrder.UnmarshalJSON(signedOrderBytes); err != nil {\n\t\t\t// This error should never happen since the signedOrder already passed the JSON schema validation above\n\t\t\tlog.WithField(\"signedOrderRaw\", string(signedOrderBytes)).Panic(\"Failed to unmarshal SignedOrder\")\n\t\t}\n\t\tschemaValidOrders = append(schemaValidOrders, signedOrder)\n\t}\n\n\tvalidationResults, err := app.validateOrders(schemaValidOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor _, orderInfo := range validationResults.Accepted {\n\t\tallValidationResults.Accepted = append(allValidationResults.Accepted, orderInfo)\n\t}\n\tfor _, orderInfo := range validationResults.Rejected {\n\t\tallValidationResults.Rejected = append(allValidationResults.Rejected, orderInfo)\n\t}\n\n\tfor _, acceptedOrderInfo := range allValidationResults.Accepted {\n\t\terr = app.orderWatcher.Watch(acceptedOrderInfo)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\treturn allValidationResults, nil\n}",
"func (m *OrderEntry) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (s *OpencxAuctionServer) validateOrderResult(claimedAuction [32]byte, result *match.OrderPuzzleResult) (err error) {\n\n\tif result == nil {\n\t\terr = fmt.Errorf(\"Result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Auction == nil {\n\t\terr = fmt.Errorf(\"Auction in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\n\tif result.Encrypted == nil {\n\t\terr = fmt.Errorf(\"Encrypted order in result cannot be nil, please enter valid input\")\n\t\treturn\n\t}\n\tlogging.Infof(\"Validating order by pubkey %x\", result.Auction.Pubkey)\n\n\tif result.Err != nil {\n\t\terr = fmt.Errorf(\"Validation detected error early: %s\", result.Err)\n\t\treturn\n\t}\n\n\tif _, err = result.Auction.Price(); err != nil {\n\t\terr = fmt.Errorf(\"Orders with an indeterminable price are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !result.Auction.IsBuySide() && !result.Auction.IsSellSide() {\n\t\terr = fmt.Errorf(\"Orders that aren't buy or sell side are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// We could use pub key hashes here but there might not be any reason for it\n\tvar orderPublicKey *koblitz.PublicKey\n\tif orderPublicKey, err = koblitz.ParsePubKey(result.Auction.Pubkey[:], koblitz.S256()); err != nil {\n\t\terr = fmt.Errorf(\"Orders with a public key that cannot be parsed are invalid: %s\", err)\n\t\treturn\n\t}\n\n\t// e = h(asset)\n\tsha3 := sha3.New256()\n\tsha3.Write(result.Auction.SerializeSignable())\n\te := sha3.Sum(nil)\n\n\tvar recoveredPublickey *koblitz.PublicKey\n\tif recoveredPublickey, _, err = koblitz.RecoverCompact(koblitz.S256(), result.Auction.Signature, e); err != nil {\n\t\terr = fmt.Errorf(\"Orders whose signature cannot be verified with pubkey recovery are invalid: %s\", err)\n\t\treturn\n\t}\n\n\tif !recoveredPublickey.IsEqual(orderPublicKey) {\n\t\terr = fmt.Errorf(\"Recovered public key %x does not equal to pubkey %x in order\", recoveredPublickey.SerializeCompressed(), orderPublicKey.SerializeCompressed())\n\t\treturn\n\t}\n\n\tif !bytes.Equal(result.Encrypted.IntendedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID for decrypted and encrypted order must be equal\")\n\t\treturn\n\t}\n\n\tif !bytes.Equal(claimedAuction[:], result.Auction.AuctionID[:]) {\n\t\terr = fmt.Errorf(\"Auction ID must equal current auction\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (o Order) Valid() error {\n\t_, ok := orderOptions[o]\n\tif !ok {\n\t\tlog.Println(\"error while validating query param: order\")\n\t\tlog.Printf(\"value: %s\", string(o))\n\t\treturn errors.New(\"invalid query param: order\")\n\t}\n\treturn nil\n}",
"func (_EtherDelta *EtherDeltaCaller) Orders(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"orders\", arg0, arg1)\n\treturn *ret0, err\n}",
"func validateOrderDetails(tx db.Tx, order *model.Order, privs model.Privilege) bool {\n\n\torder.Created = time.Now()\n\n\t// Office notes are allowed only by office staff.\n\tif order.ONote != \"\" && privs&model.PrivManageOrders == 0 {\n\t\treturn false\n\t}\n\n\t// Remove any lines with zero quantity. Make sure there's at least one\n\t// line left.\n\tvar j = 0\n\tfor i := range order.Lines {\n\t\tif order.Lines[i].Quantity < 0 {\n\t\t\treturn false\n\t\t}\n\t\tif order.Lines[i].Quantity != 0 {\n\t\t\torder.Lines[j] = order.Lines[i]\n\t\t\tj++\n\t\t}\n\t}\n\torder.Lines = order.Lines[:j]\n\tif len(order.Lines) == 0 {\n\t\treturn false\n\t}\n\n\t// Check the validity of each order line.\n\tfor _, line := range order.Lines {\n\n\t\t// Additional constraints by product type:\n\t\tswitch line.Product.Type {\n\t\tcase model.ProdDonation, model.ProdRecording, model.ProdSheetMusic, model.ProdRegistration, model.ProdAuctionItem:\n\t\t\t// Donations, concert recordings, sheet music, auction\n\t\t\t// items, and event registrations must have a quantity\n\t\t\t// of 1.\n\t\t\tif line.Quantity != 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdWardrobe:\n\t\t\tif line.Quantity < 1 || line.Used != 0 || line.UsedAt != \"\" {\n\t\t\t\treturn false\n\t\t\t}\n\t\tcase model.ProdTicket:\n\t\t\tif line.Used < 0 || line.Used > line.Quantity*line.Product.TicketCount {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif line.Used != 0 {\n\t\t\t\tvar found bool\n\t\t\t\tfor _, e := range line.Product.Events {\n\t\t\t\t\tif e.Event.ID == line.UsedAt {\n\t\t\t\t\t\tfound = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif !found {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn true\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {\n\treturn _OrderValidationUtils.Contract.contract.Call(opts, result, method, params...)\n}",
"func (o *GetOrderShipmentOKBodyBillingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {\n\treturn _OrderValidationUtils.Contract.OrderValidationUtilsCaller.contract.Call(opts, result, method, params...)\n}",
"func verifyOrder(uname string) []byte {\n\turl := \"http://96.30.245.134:3000/orders/verify\"\n\tpayload := strings.NewReader(\"{\\n\\t\\\"order\\\": {\\n\\t\\t\\\"username\\\": \\\"\" + uname + \"\\\"\\n\\t}\\n}\")\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\treq.Header.Add(\"Content-Type\", \"application/json\")\n\treq.Header.Add(\"Accept\", \"*/*\")\n\treq.Header.Add(\"Cache-Control\", \"no-cache\")\n\treq.Header.Add(\"Host\", \"96.30.245.134:3000\")\n\treq.Header.Add(\"Accept-Encoding\", \"gzip, deflate\")\n\treq.Header.Add(\"Content-Length\", \"39\")\n\treq.Header.Add(\"Connection\", \"keep-alive\")\n\treq.Header.Add(\"cache-control\", \"no-cache\")\n\tres, _ := http.DefaultClient.Do(req)\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\t//fmt.Println(res)\n\t//fmt.Println(string(body))\n\treturn body\n\n\t/*\n\t Order does exist response:\n\t {\n\t \"id\": 591,\n\t \"username\": \"test\",\n\t \"created_at\": \"2019-11-15T16:31:21.321Z\",\n\t \"updated_at\": \"2019-11-15T16:31:21.321Z\",\n\t \"url\": \"http://96.30.245.134:3000/orders/591.json\"\n\t }\n\n\t Order does not exist response:\n\t {\n\t \t\"id\": null,\n\t \t\"username\": null,\n\t \t\"created_at\": null,\n\t \t\"updated_at\": null,\n\t \t\"url\": null\n\t }\n\t*/\n}",
"func ValidateOrderResponseBody(body *OrderResponseBody) (err error) {\n\tif body.ChainID == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"chainId\", \"body\"))\n\t}\n\tif body.ExchangeAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"exchangeAddress\", \"body\"))\n\t}\n\tif body.MakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAddress\", \"body\"))\n\t}\n\tif body.TakerAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAddress\", \"body\"))\n\t}\n\tif body.FeeRecipientAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"feeRecipientAddress\", \"body\"))\n\t}\n\tif body.SenderAddress == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"senderAddress\", \"body\"))\n\t}\n\tif body.MakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetAmount\", \"body\"))\n\t}\n\tif body.TakerAssetAmount == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetAmount\", \"body\"))\n\t}\n\tif body.MakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFee\", \"body\"))\n\t}\n\tif body.TakerFee == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFee\", \"body\"))\n\t}\n\tif body.ExpirationTimeSeconds == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"expirationTimeSeconds\", \"body\"))\n\t}\n\tif body.Salt == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"salt\", \"body\"))\n\t}\n\tif body.MakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerAssetData\", \"body\"))\n\t}\n\tif body.TakerAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerAssetData\", \"body\"))\n\t}\n\tif body.MakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"makerFeeAssetData\", \"body\"))\n\t}\n\tif body.TakerFeeAssetData == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"takerFeeAssetData\", \"body\"))\n\t}\n\tif body.Signature == nil {\n\t\terr = goa.MergeErrors(err, goa.MissingFieldError(\"signature\", \"body\"))\n\t}\n\tif body.ChainID != nil {\n\t\tif !(*body.ChainID == 1 || *body.ChainID == 3 || *body.ChainID == 4 || *body.ChainID == 42 || *body.ChainID == 1337 || *body.ChainID == 15001) {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidEnumValueError(\"body.chainId\", *body.ChainID, []interface{}{1, 3, 4, 42, 1337, 15001}))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.exchangeAddress\", *body.ExchangeAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, true))\n\t\t}\n\t}\n\tif body.ExchangeAddress != nil {\n\t\tif utf8.RuneCountInString(*body.ExchangeAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.exchangeAddress\", *body.ExchangeAddress, utf8.RuneCountInString(*body.ExchangeAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAddress\", *body.MakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.MakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAddress\", *body.MakerAddress, utf8.RuneCountInString(*body.MakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAddress\", *body.TakerAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, true))\n\t\t}\n\t}\n\tif body.TakerAddress != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAddress\", *body.TakerAddress, utf8.RuneCountInString(*body.TakerAddress), 42, false))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, true))\n\t\t}\n\t}\n\tif body.FeeRecipientAddress != nil {\n\t\tif utf8.RuneCountInString(*body.FeeRecipientAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.feeRecipientAddress\", *body.FeeRecipientAddress, utf8.RuneCountInString(*body.FeeRecipientAddress), 42, false))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.senderAddress\", *body.SenderAddress, \"^0x[0-9a-fA-F]{40}$\"))\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) < 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, true))\n\t\t}\n\t}\n\tif body.SenderAddress != nil {\n\t\tif utf8.RuneCountInString(*body.SenderAddress) > 42 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.senderAddress\", *body.SenderAddress, utf8.RuneCountInString(*body.SenderAddress), 42, false))\n\t\t}\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetAmount\", *body.MakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetAmount\", *body.MakerAssetAmount, utf8.RuneCountInString(*body.MakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetAmount\", *body.TakerAssetAmount, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerAssetAmount != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetAmount) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetAmount\", *body.TakerAssetAmount, utf8.RuneCountInString(*body.TakerAssetAmount), 100, false))\n\t\t}\n\t}\n\tif body.MakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFee\", *body.MakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.MakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFee\", *body.MakerFee, utf8.RuneCountInString(*body.MakerFee), 100, false))\n\t\t}\n\t}\n\tif body.TakerFee != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFee\", *body.TakerFee, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.TakerFee != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFee) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFee\", *body.TakerFee, utf8.RuneCountInString(*body.TakerFee), 100, false))\n\t\t}\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.ExpirationTimeSeconds != nil {\n\t\tif utf8.RuneCountInString(*body.ExpirationTimeSeconds) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.expirationTimeSeconds\", *body.ExpirationTimeSeconds, utf8.RuneCountInString(*body.ExpirationTimeSeconds), 100, false))\n\t\t}\n\t}\n\tif body.Salt != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.salt\", *body.Salt, \"^\\\\d+(\\\\.\\\\d+)?$\"))\n\t}\n\tif body.Salt != nil {\n\t\tif utf8.RuneCountInString(*body.Salt) > 100 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.salt\", *body.Salt, utf8.RuneCountInString(*body.Salt), 100, false))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerAssetData\", *body.MakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerAssetData\", *body.MakerAssetData, utf8.RuneCountInString(*body.MakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerAssetData\", *body.TakerAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerAssetData\", *body.TakerAssetData, utf8.RuneCountInString(*body.TakerAssetData), 74, false))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.MakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.MakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.makerFeeAssetData\", *body.MakerFeeAssetData, utf8.RuneCountInString(*body.MakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, \"^0x[0-9a-fA-F]{72}$\"))\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) < 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, true))\n\t\t}\n\t}\n\tif body.TakerFeeAssetData != nil {\n\t\tif utf8.RuneCountInString(*body.TakerFeeAssetData) > 74 {\n\t\t\terr = goa.MergeErrors(err, goa.InvalidLengthError(\"body.takerFeeAssetData\", *body.TakerFeeAssetData, utf8.RuneCountInString(*body.TakerFeeAssetData), 74, false))\n\t\t}\n\t}\n\tif body.Signature != nil {\n\t\terr = goa.MergeErrors(err, goa.ValidatePattern(\"body.signature\", *body.Signature, \"^0x(([0-9a-fA-F][0-9a-fA-F])+)?$\"))\n\t}\n\treturn\n}",
"func assertOrderValid(t *testing.T, actual *Order, expected *Order) {\n\tassert.Equal(t, actual.Location.Lon, expected.Location.Lon)\n\tassert.Equal(t, actual.Location.Lat, expected.Location.Lat)\n\tassert.NotEmpty(t, expected.Id)\n\tassert.Equal(t, actual.Desc, expected.Desc)\n\tassert.NotEmpty(t, expected.TimeRequested)\n\tassert.Equal(t, actual.ConsumerId, expected.ConsumerId)\n\tassert.Equal(t, actual.BidPrice, expected.BidPrice)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (cro CreateOrderRequest) Validate() (int, *Error) {\n\tif (cro.Origin == routes.Location{}) ||\n\t\t(cro.Destination == routes.Location{}) {\n\t\treturn ErrBadRequestParametersMissing(\"origin and destination are mandatory\")\n\t}\n\n\tif !cro.Origin.IsValid() || !cro.Destination.IsValid() {\n\t\treturn ErrBadRequestInvalidBody(\"Origin or destination not in proper format\")\n\t}\n\treturn 0, nil\n}",
"func bindOrderValidationUtils(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := abi.JSON(strings.NewReader(OrderValidationUtilsABI))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil\n}",
"func (o *GetOrderShipmentOKBodyShippingAddress) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (o *OrderItem) Validate(tx *pop.Connection) (*validate.Errors, error) {\n\treturn validate.NewErrors(), nil\n}",
"func validatePayment(order *model.Order) bool {\n\tvar total int\n\n\t// Calculate the order total.\n\tfor _, ol := range order.Lines {\n\t\ttotal += ol.Price * ol.Quantity\n\t}\n\t// If this is a free order, it's OK if there is no payment.\n\tif total == 0 && len(order.Payments) == 0 {\n\t\treturn true\n\t}\n\t// Otherwise, there should be exactly one payment.\n\tif len(order.Payments) != 1 {\n\t\treturn false\n\t}\n\t// And it should have the correct amount.\n\tvar pmt = order.Payments[0]\n\tif pmt.Amount != total {\n\t\treturn false\n\t}\n\t// If this is a free order and has a payment, its type must be \"cash\".\n\t// We remove it; no point in storing a zero payment.\n\tif pmt.Amount == 0 {\n\t\tif pmt.Type != model.PaymentCash {\n\t\t\treturn false\n\t\t}\n\t\torder.Payments = order.Payments[:0]\n\t\treturn true\n\t}\n\tpmt.Created = order.Created\n\treturn true\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (m *RetrieveOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (m *DynamicOrderState) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ApprovedOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"approvedOrders\", arg0)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) HashOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"hashOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n\treturn *ret0, err\n}",
"func (s *OpencxAuctionServer) validateEncryptedOrder(order *match.EncryptedAuctionOrder) (err error) {\n\n\tvar rswPuzzle *rsw.PuzzleRSW\n\tvar ok bool\n\tif rswPuzzle, ok = order.OrderPuzzle.(*rsw.PuzzleRSW); !ok {\n\t\terr = fmt.Errorf(\"Puzzle could not be converted to RSW puzzle, invalid encrypted order\")\n\t\treturn\n\t}\n\n\tif uint64(rswPuzzle.T.Int64()) != s.t {\n\t\terr = fmt.Errorf(\"The time to solve the puzzle is not correct, invalid encrypted order\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (o *GetOrderShipmentOKBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBillingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateItems(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingAddress(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateShippingProvider(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *OrderReturnServiceCharge) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAmountMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCatalogObjectID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePercentage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSourceServiceChargeUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTotalTaxMoney(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func GetOrderFromRequest(w http.ResponseWriter, r *http.Request) (o *model.Order) {\n\tvar err error\n\n\to = new(model.Order)\n\to.Source = model.OrderSource(r.FormValue(\"source\"))\n\to.SaveForReuse = r.FormValue(\"saveForReuse\") != \"\"\n\tswitch o.Source {\n\tcase \"\":\n\t\to.Source = model.OrderFromPublic\n\tcase model.OrderFromPublic, model.OrderFromMembers, model.OrderFromGala, model.OrderFromOffice, model.OrderInPerson:\n\t\t// no-op\n\tdefault:\n\t\tlog.Printf(\"ERROR: invalid source %q\", o.Source)\n\t\thttp.Error(w, `400 Bad Request: invalid \"source\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Name = strings.TrimSpace(r.FormValue(\"name\"))\n\to.Email = strings.TrimSpace(r.FormValue(\"email\"))\n\tif o.Email != \"\" && !emailRE.MatchString(o.Email) {\n\t\tlog.Printf(\"ERROR: invalid email %q\", o.Email)\n\t\thttp.Error(w, `400 Bad Request: invalid \"email\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Address = strings.TrimSpace(r.FormValue(\"address\"))\n\to.City = strings.TrimSpace(r.FormValue(\"city\"))\n\to.State = strings.ToUpper(strings.TrimSpace(r.FormValue(\"state\")))\n\tif o.State != \"\" && !stateRE.MatchString(o.State) {\n\t\tlog.Printf(\"ERROR: invalid state %q\", o.State)\n\t\thttp.Error(w, `400 Bad Request: invalid \"state\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Zip = strings.TrimSpace(r.FormValue(\"zip\"))\n\tif o.Zip != \"\" && !zipRE.MatchString(o.Zip) {\n\t\tlog.Printf(\"ERROR: invalid zip %q\", o.Zip)\n\t\thttp.Error(w, `400 Bad Request: invalid \"zip\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\tif (o.Address != \"\" || o.City != \"\" || o.State != \"\" || o.Zip != \"\") &&\n\t\t(o.Address == \"\" || o.City == \"\" || o.State == \"\" || o.Zip == \"\") {\n\t\tlog.Printf(\"ERROR: have address %v city %v state %v zip %v\",\n\t\t\to.Address != \"\", o.City != \"\", o.State != \"\", o.Zip != \"\")\n\t\thttp.Error(w, `400 Bad Request: specify all or none of \"address\"+\"city\"+\"state\"+\"zip\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\to.Phone = strings.TrimSpace(r.FormValue(\"phone\"))\n\to.Customer = strings.TrimSpace(r.FormValue(\"customer\"))\n\tif o.Customer != \"\" && !customerRE.MatchString(o.Customer) {\n\t\tlog.Printf(\"ERROR: invalid customer %q\", o.Customer)\n\t\thttp.Error(w, `400 Bad Request: invalid \"customer\"`, http.StatusBadRequest)\n\t\tgoto ERROR\n\t}\n\tif mstr := r.FormValue(\"member\"); mstr != \"\" {\n\t\tif o.Member, err = strconv.Atoi(mstr); err != nil || o.Member < 1 {\n\t\t\tlog.Printf(\"ERROR: invalid member %q\", mstr)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"member\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t}\n\to.CNote = strings.TrimSpace(r.FormValue(\"cNote\"))\n\to.ONote = strings.TrimSpace(r.FormValue(\"oNote\"))\n\tif iastr := r.FormValue(\"inAccess\"); iastr != \"\" {\n\t\tif o.InAccess, err = strconv.ParseBool(iastr); err != nil {\n\t\t\tlog.Printf(\"ERROR: invalid inAccess %q\", iastr)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"inAccess\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t}\n\to.Coupon = strings.ToUpper(strings.TrimSpace(r.FormValue(\"coupon\")))\n\tfor idx := 1; true; idx++ {\n\t\tvar (\n\t\t\tol model.OrderLine\n\t\t\tprefix = fmt.Sprintf(\"line%d.\", idx)\n\t\t)\n\t\tif pname := r.FormValue(prefix + \"product\"); pname != \"\" {\n\t\t\tol.Product = &model.Product{ID: model.ProductID(pname)}\n\t\t} else {\n\t\t\tbreak\n\t\t}\n\t\tif ol.Quantity, err = strconv.Atoi(r.FormValue(prefix + \"quantity\")); err != nil || ol.Quantity < 1 {\n\t\t\tlog.Printf(\"ERROR: invalid quantity %q\", r.FormValue(prefix+\"quantity\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"quantity\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tif ol.Price, err = strconv.Atoi(r.FormValue(prefix + \"price\")); err != nil || ol.Quantity < 0 {\n\t\t\tlog.Printf(\"ERROR: invalid price %q\", r.FormValue(prefix+\"price\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"price\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tol.GuestName = r.FormValue(prefix + \"guestName\")\n\t\tol.GuestEmail = r.FormValue(prefix + \"guestEmail\")\n\t\tol.Option = r.FormValue(prefix + \"option\")\n\t\tif uval := r.FormValue(prefix + \"used\"); uval != \"\" {\n\t\t\tif ol.Used, err = strconv.Atoi(uval); err != nil || ol.Used < 0 {\n\t\t\t\tlog.Printf(\"ERROR: invalid used amount %q\", uval)\n\t\t\t\thttp.Error(w, `400 Bad Request: invalid \"used\"`, http.StatusBadRequest)\n\t\t\t\tgoto ERROR\n\t\t\t}\n\t\t\tif ol.UsedAt = model.EventID(r.FormValue(prefix + \"usedAt\")); ol.Used > 0 && ol.UsedAt == \"\" {\n\t\t\t\tlog.Printf(\"ERROR: missing usedAt\")\n\t\t\t\thttp.Error(w, `400 Bad Request: \"usedAt\" is required when \"used\" is nonzero`, http.StatusBadRequest)\n\t\t\t\tgoto ERROR\n\t\t\t}\n\t\t}\n\t\to.Lines = append(o.Lines, &ol)\n\t}\n\tfor idx := 1; true; idx++ {\n\t\tvar (\n\t\t\tp model.Payment\n\t\t\tprefix = fmt.Sprintf(\"payment%d.\", idx)\n\t\t)\n\t\tif p.Type = model.PaymentType(r.FormValue(prefix + \"type\")); p.Type == \"\" {\n\t\t\tbreak\n\t\t}\n\t\tswitch p.Type {\n\t\tcase model.PaymentCard, model.PaymentCardPresent, model.PaymentCash, model.PaymentCheck, model.PaymentOther:\n\t\t\t// no-op\n\t\tdefault:\n\t\t\tlog.Printf(\"ERROR: invalid payment type %q\", p.Type)\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"type\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\tp.Subtype = strings.TrimSpace(r.FormValue(prefix + \"subtype\"))\n\t\tp.Method = strings.TrimSpace(r.FormValue(prefix + \"method\"))\n\t\tif p.Amount, err = strconv.Atoi(r.FormValue(prefix + \"amount\")); err != nil {\n\t\t\tlog.Printf(\"ERROR: invalid payment amount %q\", r.FormValue(prefix+\"amount\"))\n\t\t\thttp.Error(w, `400 Bad Request: invalid \"amount\"`, http.StatusBadRequest)\n\t\t\tgoto ERROR\n\t\t}\n\t\to.Payments = append(o.Payments, &p)\n\t}\n\treturn o\n\nERROR:\n\tlog.Printf(\" in %s %s %+v\", r.Method, r.RequestURI, r.Form)\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *PTXServiceDTOShipSpecificationV3ShipRoute) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorityCode(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateEndPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateOperators(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteDistance(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateRouteType(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateSrcUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStartPortName(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTicketPriceDescription(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateUpdateTime(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateVessels(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateWeatherURL(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SearchOrdersFulfillmentFilter) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (m *SalesDataOrderExtensionInterface) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateCompanyOrderAttributes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftCards(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateGiftMessage(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateItemAppliedTaxes(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateShippingAssignments(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (m OrdersType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrdersTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (b Binance) PlaceOrder(ctx context.Context, order types.Order, symbolInfo *types.SymbolInfo) (info types.OrderInfo, err error) {\n\tvar cos *bin.CreateOrderService\n\tvar binanceSymbol string\n\tvar response *bin.CreateOrderResponse\n\tvar numFills, index int\n\tvar fill *bin.Fill\n\tvar orderFills []types.OrderFill\n\tvar strPrice string\n\n\tif binanceSymbol, err = b.symbolToBinance(order.Symbol); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tcos = b.client.NewCreateOrderService()\n\tcos.NewClientOrderID(order.UserReference.String())\n\tcos.Symbol(binanceSymbol)\n\tcos.Side(b.sideToBinance(order.Side))\n\tcos.Type(b.orderTypeToBinance(order.Type))\n\n\tswitch order.Type {\n\tcase types.Limit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.Market:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\tcase types.StopLoss:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\tcase types.StopLossLimit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.TakeProfit:\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\tcase types.TakeProfitLimit:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.StopPrice); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.StopPrice(strPrice)\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\tcase types.LimitMaker:\n\t\tcos.TimeInForce(b.timeInForceToBinance(order.TimeInForce))\n\t\tcos.Quantity(fmt.Sprintf(\"%f\", order.Quantity))\n\t\tif strPrice, err = symbolInfo.ClampPrice(order.Price); err != nil {\n\t\t\treturn\n\t\t}\n\t\tcos.Price(strPrice)\n\t}\n\n\tif response, err = cos.Do(ctx); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tif info.UserReference, err = uuid.Parse(response.ClientOrderID); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\n\tinfo.ExchangeOrderID = response.OrderID\n\tif info.Symbol, err = b.toSymbol(response.Symbol); err != nil {\n\t\tlogger.Errorf(\"Binance::PlaceOrder Error %v\\n\", err)\n\t\treturn\n\t}\n\tinfo.TransactionTime = b.toTime(response.TransactTime)\n\tinfo.OriginalQuantity = b.toFloat(response.OrigQuantity)\n\tinfo.ExecutedQuantity = b.toFloat(response.ExecutedQuantity)\n\tinfo.Status = b.toStatus(response.Status)\n\tinfo.TimeInForce = b.toTimeInForce(response.TimeInForce)\n\tinfo.OrderType = b.toOrderType(response.Type)\n\tinfo.Side = b.toSide(response.Side)\n\n\tnumFills = len(response.Fills)\n\tif numFills > 0 {\n\t\torderFills = make([]types.OrderFill, numFills, numFills)\n\t\tfor index, fill = range response.Fills {\n\t\t\torderFills[index] = types.NewOrderFill(\n\t\t\t\tb.toFloat(fill.Price),\n\t\t\t\tb.toFloat(fill.Quantity),\n\t\t\t\tb.toFloat(fill.Commission),\n\t\t\t\tfill.CommissionAsset,\n\t\t\t)\n\t\t}\n\t\tinfo.Fills = orderFills\n\t}\n\n\treturn\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (fm *FieldModelOrder) Verify() bool { return fm.VerifyType(true) }",
"func (tx *Hello) Validate(p types.Process, loader types.LoaderWrapper, signers []common.PublicHash) error {\n\tsp := p.(*HelloWorld)\n\n\tif has, err := loader.HasAccount(tx.From()); err != nil {\n\t\treturn err\n\t} else if !has {\n\t\treturn types.ErrNotExistAccount\n\t}\n\n\tfromAcc, err := loader.Account(tx.From())\n\tif err != nil {\n\t\treturn err\n\t}\n\tif err := fromAcc.Validate(loader, signers); err != nil {\n\t\treturn err\n\t}\n\n\tif err := sp.vault.CheckFeePayableWith(p, loader, tx, nil); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (s *OrderService) ProcessOrder(order spec.Order) error {\n\terr := spec.Validate(order)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// Check we have a new order\n\tif order.Status != spec.OrderNew {\n\t\treturn OrderStatusError()\n\t}\n\n\tif err := s.AddOrder(order); err != nil {\n\t\treturn err\n\t}\n\n\terr = s.SetStatus(&order, spec.OrderReceived)\n\tif err != nil {\n\t\tlog.Printf(\"### Failed to update state for order %s\\n\", err)\n\t}\n\n\tlog.Printf(\"### Order %s was saved to state store\\n\", order.ID)\n\n\t// Save order to blob storage as a text file \"report\"\n\t// Also email to the user via SendGrid\n\t// For these to work configure the components in cmd/orders/components\n\t// If un-configured then nothing happens (maybe some errors are logged)\n\n\t// Currently the SendGrid integration in Dapr is fubar\n\t// To be fixed by this PR https://github.com/dapr/components-contrib/pull/1867\n\terr = s.EmailNotify(order)\n\tif err != nil {\n\t\tlog.Printf(\"### Email notification failed %s\\n\", err)\n\t}\n\n\terr = s.SaveReport(order)\n\tif err != nil {\n\t\tlog.Printf(\"### Saving order report failed %s\\n\", err)\n\t}\n\n\t// Fake background order processing, move to processing after 30 seconds\n\ttime.AfterFunc(30*time.Second, func() {\n\t\tlog.Printf(\"### Order %s is now processing\\n\", order.ID)\n\t\t_ = s.SetStatus(&order, spec.OrderProcessing)\n\t})\n\n\t// Fake background order completion, move to complete after 2 minutes\n\ttime.AfterFunc(120*time.Second, func() {\n\t\tlog.Printf(\"### Order %s completed\\n\", order.ID)\n\t\t_ = s.SetStatus(&order, spec.OrderComplete)\n\t})\n\n\treturn nil\n}",
"func (o *GetPostListParams) validateOrder(formats strfmt.Registry) error {\n\n\tif err := validate.EnumCase(\"order\", \"query\", *o.Order, []interface{}{\"asc\", \"desc\"}, true); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (cl *ocxClient) OrderCommand(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\n\tside := args[0]\n\tpair := args[1]\n\n\tamountHave, err := strconv.ParseUint(args[2], 10, 64)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error parsing amountHave, please enter something valid:\\n%s\", err)\n\t}\n\n\tprice, err := strconv.ParseFloat(args[3], 64)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error parsing price: \\n%s\", err)\n\t}\n\n\tvar pubkey *koblitz.PublicKey\n\tif pubkey, err = cl.RetrievePublicKey(); err != nil {\n\t\treturn\n\t}\n\n\tvar orderSide *match.Side = new(match.Side)\n\tif err = orderSide.FromString(side); err != nil {\n\t\terr = fmt.Errorf(\"Error getting side from string for OrderCommand: %s\", err)\n\t\treturn\n\t}\n\n\tvar reply *cxrpc.SubmitOrderReply\n\tif reply, err = cl.RPCClient.OrderCommand(pubkey, *orderSide, pair, amountHave, price); err != nil {\n\t\treturn\n\t}\n\n\tvar text []byte\n\tif text, err = reply.OrderID.MarshalText(); err != nil {\n\t\terr = fmt.Errorf(\"Could not marshal to text for some reason: %s\", err)\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Submitted order successfully, orderID: %s\", text)\n\treturn nil\n}",
"func (handler *rpcHandler) AddOrders(orders []*zeroex.SignedOrder) (*zeroex.ValidationResults, error) {\n\tlog.Debug(\"received AddOrders request via RPC\")\n\tvalidationResults, err := handler.app.AddOrders(orders)\n\tif err != nil {\n\t\t// We don't want to leak internal error details to the RPC client.\n\t\tlog.WithField(\"error\", err.Error()).Error(\"internal error in AddOrders RPC call\")\n\t\treturn nil, errInternal\n\t}\n\treturn validationResults, nil\n}",
"func (_OrderValidationUtils *OrderValidationUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Struct0, signatures [][]byte) (struct {\n\tOrdersInfo []Struct1\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []Struct1\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _OrderValidationUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (r *createRequest) Validate() *validation.Output {\n\to := &validation.Output{Valid: true}\n\tvar err error\n\tvar PartnerID int64\n\tvar partner *model.Partnership\n\tvar sorder *model.SalesOrder\n\tvar code string\n\n\t// cek partner id ada atau tidak\n\tPartnerID, err = common.Decrypt(r.CustomerID)\n\tif err != nil {\n\t\to.Failure(\"customer_id.invalid\", \"Partnership id is invalid\")\n\t}\n\n\t// cek partner ecist or not\n\tpartner, err = partnership.GetPartnershipByField(\"id\", PartnerID)\n\n\tif err != nil || partner == nil || partner.IsDeleted == 1 || partner.IsArchived == 1 {\n\t\to.Failure(\"customer_id.invalid\", \"Partnership id is not found\")\n\t} else {\n\t\tcode, _ = CodeGen(partner.IsDefault == 1)\n\n\t\tif partner.PartnershipType != \"customer\" {\n\t\t\to.Failure(\"customer_id\", \"Customer needed to have partner type customer not supplier\")\n\t\t}\n\n\t\tif partner.IsDefault == int8(1) {\n\t\t\tif r.AutoFullfilment == int8(0) {\n\t\t\t\to.Failure(\"auto_fullfilment\", \"auto fullfilment need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t\tif r.AutoInvoice == int8(0) {\n\t\t\t\to.Failure(\"auto_invoice\", \"auto invoice need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t\tif r.EtaDate.IsZero() {\n\t\t\t\to.Failure(\"eta_date\", \"ETA Date need to be filled if Customer is walk in\")\n\t\t\t}\n\t\t} else {\n\t\t\tif r.ShipmentAddress == \"\" {\n\t\t\t\to.Failure(\"shipment_address\", \"Shipment address is required\")\n\t\t\t}\n\t\t}\n\n\t\tif partner.OrderRule == \"one_bill\" {\n\t\t\tvar soContainer *model.SalesOrder\n\t\t\torm.NewOrm().Raw(\"SELECT * FROM sales_order WHERE customer_id = ? AND document_status = 'new' OR document_status = 'active' AND invoice_status = 'active';\", PartnerID).QueryRow(&soContainer)\n\t\t\tif soContainer != nil {\n\t\t\t\to.Failure(\"customer_id\", \"Partner still have unfinished invoice\")\n\t\t\t}\n\t\t} else if partner.OrderRule == \"plafon\" {\n\t\t\tcurrent := partner.TotalDebt + r.TotalCharge\n\t\t\tif current >= partner.MaxPlafon {\n\t\t\t\to.Failure(\"customer_id\", \"Partnership has already reached given max plafon\")\n\t\t\t}\n\t\t}\n\t}\n\n\tif r.IsPaid == 1 {\n\t\tif r.AutoInvoice != 1 {\n\t\t\to.Failure(\"auto_invoice\", \"Auto invoice must be checked if Auto Paid is checked\")\n\t\t}\n\t}\n\n\tso := &model.SalesOrder{Code: code}\n\n\tif err := so.Read(\"Code\"); err == nil {\n\t\to.Failure(\"code\", \"Code sales order is already being used\")\n\t} else {\n\t\tr.Code = code\n\t}\n\n\ttz := time.Time{}\n\tif r.EtaDate == tz {\n\t\to.Failure(\"eta_date\", \"Field is required.\")\n\t}\n\n\t// cek status reference id\n\tif r.ReferencesID != \"\" {\n\t\trefID, err := common.Decrypt(r.ReferencesID)\n\t\tif err != nil {\n\t\t\to.Failure(\"references_id\", \"References id is not valid\")\n\t\t}\n\t\tvar emptyLoad []string\n\t\tsorder, err = GetDetailSalesOrder(refID, emptyLoad)\n\t\tif err != nil {\n\t\t\to.Failure(\"references_id\", \"References is not found\")\n\t\t} else {\n\t\t\tif sorder.DocumentStatus != \"approved_cancel\" {\n\t\t\t\to.Failure(\"references_id\", \"References document status is not cancel\")\n\t\t\t}\n\t\t}\n\t}\n\n\tcheckDuplicate := make(map[string]bool)\n\tvar checkVariant = make(map[int64]*model.ItemVariant)\n\n\tfor _, row := range r.SalesOrderItem {\n\t\tIVariantID, _ := common.Decrypt(row.ItemVariantID)\n\t\tivar := &model.ItemVariant{ID: IVariantID}\n\t\tivar.Read(\"ID\")\n\t\t////////////////////////////////\n\t\tif checkVariant[ivar.ID] == nil {\n\t\t\tivar.CommitedStock -= row.Quantity\n\t\t\tcheckVariant[ivar.ID] = ivar\n\t\t} else {\n\t\t\tvariant := checkVariant[ivar.ID]\n\t\t\tvariant.CommitedStock -= row.Quantity\n\t\t\tcheckVariant[ivar.ID] = variant\n\t\t}\n\t\t////////////////////////////////\n\t}\n\n\t// cek setiap sales order item\n\tfor i, row := range r.SalesOrderItem {\n\t\tvar UnitA float64\n\t\tvar PricingID, IVariantID int64\n\t\tvar ItemVariant *model.ItemVariant\n\t\tvar IVPrice *model.ItemVariantPrice\n\t\t// cek item variant,pricing type dan item variant price\n\t\tPricingID, err = common.Decrypt(row.PricingType)\n\n\t\tif err != nil {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.pricing_type.invalid\", i), \"Pricing type id is invalid\")\n\t\t}\n\n\t\tIVariantID, err = common.Decrypt(row.ItemVariantID)\n\t\tif err != nil {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant.invalid\", i), \"Item Variant id is invalid\")\n\t\t}\n\n\t\tvar pt = &model.PricingType{ID: PricingID}\n\t\tpt.Read(\"ID\")\n\t\tvar iv = &model.ItemVariant{ID: IVariantID}\n\t\tiv.Read(\"ID\")\n\n\t\tIVPrice, err = getItemVariantPricing(pt, iv)\n\t\tif err == nil {\n\t\t\tif pt.ParentType != nil {\n\t\t\t\tif pt.RuleType == \"increment\" {\n\t\t\t\t\tif pt.IsPercentage == int8(1) {\n\t\t\t\t\t\ttemp := (pt.Nominal * IVPrice.UnitPrice) / float64(100)\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice + temp\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice + pt.Nominal\n\t\t\t\t\t}\n\n\t\t\t\t\tif row.UnitPrice < UnitA {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif pt.IsPercentage == int8(1) {\n\n\t\t\t\t\t\ttemp := (pt.Nominal * IVPrice.UnitPrice) / float64(100)\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice - temp\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUnitA = IVPrice.UnitPrice - pt.Nominal\n\t\t\t\t\t}\n\n\t\t\t\t\tif UnitA < 0 {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.pricing_type.invalid\", i), \"Pricing type can make price become zero\")\n\t\t\t\t\t}\n\t\t\t\t\tif row.UnitPrice < UnitA {\n\t\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif row.UnitPrice < IVPrice.UnitPrice {\n\t\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"Unit price is too small\")\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.unit_price.invalid\", i), \"item variant price doesn't exist\")\n\t\t}\n\n\t\tItemVariant, err = inventory.GetDetailItemVariant(\"id\", IVariantID)\n\t\tif err != nil || ItemVariant == nil || ItemVariant.IsDeleted == int8(1) || ItemVariant.IsArchived == int8(1) {\n\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant_id.invalid\", i), \"Item variant id not found\")\n\t\t} else {\n\n\t\t\t// cek stock dari item variant sama quantity soi\n\t\t\tif (checkVariant[ItemVariant.ID].AvailableStock - ItemVariant.CommitedStock) < row.Quantity {\n\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.quantity.invalid\", i), \"Stock item is not enough to be sold\")\n\t\t\t}\n\n\t\t\t//check duplicate item variant id\n\t\t\tif checkDuplicate[row.ItemVariantID] == true {\n\t\t\t\to.Failure(fmt.Sprintf(\"sales_order_item.%d.item_variant_id.invalid\", i), \" item variant id duplicate\")\n\t\t\t} else {\n\t\t\t\tcheckDuplicate[row.ItemVariantID] = true\n\t\t\t}\n\t\t}\n\n\t\tdiscamount := (row.UnitPrice * float64(row.Discount)) / float64(100)\n\t\tcuramount := row.UnitPrice * float64(row.Quantity)\n\t\tsubtotal := common.FloatPrecision(curamount-discamount, 0)\n\n\t\tr.TotalPrice += subtotal\n\t}\n\n\tif r.IsPercentageDiscount == int8(1) {\n\t\tif r.Discount < 0 || r.Discount > float32(100) {\n\t\t\to.Failure(\"discount\", \"discount is less than and equal 0 or greater than 100\")\n\t\t}\n\t}\n\n\treturn o\n}",
"func BuyerExecuteOrderCmd(cdc *wire.Codec) *cobra.Command {\n\tcmd := &cobra.Command{\n\t\tUse: \"buyerExecuteOrder\",\n\t\tShort: \"executes the exchange escrow transaction from the buyers side\",\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\n\t\t\ttxCtx := context2.NewTxContextFromCLI().WithCodec(cdc)\n\t\t\tcliCtx := context.NewCLIContext().WithCodec(cdc).WithLogger(os.Stdout).WithAccountDecoder(authcmd.GetAccountDecoder(cdc))\n\n\t\t\tif err := cliCtx.EnsureAccountExists(); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfrom, err := cliCtx.GetFromAddress()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbuyerAddressString := viper.GetString(FlagBuyerAddress)\n\t\t\tbuyerAddress, err := sdk.AccAddressFromBech32(buyerAddressString)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tsellerAddressString := viper.GetString(FlagSellerAddress)\n\t\t\tsellerAddress, err := sdk.AccAddressFromBech32(sellerAddressString)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tpegHashStr := viper.GetString(FlagPegHash)\n\t\t\tpegHashHex, err := sdk.GetAssetPegHashHex(pegHashStr)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tfiatProofHashStr := viper.GetString(FlagFiatProofHash)\n\n\t\t\tmsg := client.BuildBuyerExecuteOrderMsg(from, buyerAddress, sellerAddress, pegHashHex, fiatProofHashStr)\n\n\t\t\treturn utils.SendTx(txCtx, cliCtx, []sdk.Msg{msg})\n\t\t},\n\t}\n\tcmd.Flags().AddFlagSet(fsBuyerAddress)\n\tcmd.Flags().AddFlagSet(fsSellerAddress)\n\tcmd.Flags().AddFlagSet(fsPegHash)\n\tcmd.Flags().AddFlagSet(fsFiatProofHash)\n\treturn cmd\n}",
"func (m OrdersType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {\n\treturn nil\n}",
"func (mr *MockExecClientMockRecorder) ProcessOrder(or interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"ProcessOrder\", reflect.TypeOf((*MockExecClient)(nil).ProcessOrder), or)\n}",
"func (s *Server) QueryOrder(ctx context.Context, in *orderPb.QueryOrderRequest) (*orderPb.QueryOrderResponse, error) {\n\tt := time.Now()\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderTotal\"}).Inc()\n\n\t// Check input params.\n\taddress := in.GetAddress()\n\trequestId := in.GetRequestId()\n\tif address == \"\" || requestId == \"\" {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderFailed\"}).Inc()\n\t\treturn nil, errorm.RequestParamEmpty\n\t}\n\n\tdefer func(t time.Time) {\n\t\trpcRequestDuration.With(prometheus.Labels{\"method\": \"QueryOrder\"}).Observe(float64(time.Since(t).Microseconds()) / 1000)\n\t}(t)\n\n\t// Query order info by request id and address.\n\torder, err := s.QueryOrderController(requestId, address)\n\tif err != nil {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderError\"}).Inc()\n\t\treturn nil, err\n\t}\n\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"QueryOrderSuccess\"}).Inc()\n\treturn &orderPb.QueryOrderResponse{\n\t\tType: order.OrderType,\n\t\tFileName: order.FileName,\n\t\tFileSize: order.FileSize,\n\t\tFileHash: order.FileHash,\n\t\tFee: order.Amount,\n\t\tStatus: order.Status,\n\t\tDescription: \"\",\n\t}, nil\n}",
"func (m *AgreeFinishOrderRequest) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for AccessToken\n\n\t// no validation rules for AgreeementToken\n\n\t// no validation rules for OrderId\n\n\treturn nil\n}",
"func (_AuthContract *AuthContractTransactor) Validate(opts *bind.TransactOpts, _tx [32]byte, _target common.Address, _sender common.Address, _receiver common.Address, _amt *big.Int) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"validate\", _tx, _target, _sender, _receiver, _amt)\n}",
"func (o *TelemetryDruidScanRequestAllOf) HasOrder() bool {\n\tif o != nil && o.Order != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (a *App) PlaceOrderHandler() http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tctx := r.Context()\n\t\tcontextLogger := log.WithContext(ctx)\n\t\tcontextLogger.Info(\"app: PlaceOrderHandler started\")\n\n\t\treq := orderRequestBody{}\n\t\tdec := json.NewDecoder(r.Body)\n\t\tdec.DisallowUnknownFields()\n\t\terr := dec.Decode(&req)\n\t\tif err != nil {\n\t\t\tcontextLogger.Warnf(\"app: 400 Bad Request - decode error %v\",\n\t\t\t\terr.Error())\n\t\t\tclientError(w, http.StatusBadRequest, ErrCodeBadRequest,\n\t\t\t\terr.Error()) // 400\n\t\t\treturn\n\t\t}\n\t\tdefer r.Body.Close()\n\n\t\tmessage, ok := validateOrderRequestBody(&req)\n\t\tif !ok {\n\t\t\tcontextLogger.Warnf(\"app: 400 Bad Request - validation %v\",\n\t\t\t\tmessage)\n\t\t\tclientError(w, http.StatusConflict,\n\t\t\t\tErrCodeBadRequest, message) // 400\n\t\t\treturn\n\t\t}\n\n\t\tvar order *service.Order\n\t\tif req.UserID == nil {\n\t\t\torder, err = a.Service.PlaceGuestOrder(ctx, *req.CartID, *req.ContactName, *req.Email,\n\t\t\t\treq.Billing, req.Shipping)\n\t\t} else {\n\t\t\torder, err = a.Service.PlaceOrder(ctx, *req.CartID,\n\t\t\t\t*req.UserID, *req.BillingID, *req.ShippingID)\n\t\t}\n\n\t\tif err == service.ErrCartNotFound {\n\t\t\tcontextLogger.Warn(\"app: 404 Not Found - cart not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeCartNotFound,\n\t\t\t\t\"cart not found\") // 404\n\t\t}\n\t\tif err == service.ErrCartEmpty {\n\t\t\tcontextLogger.Warn(\"app: 409 Conflict - cart is empty\")\n\t\t\tclientError(w, http.StatusConflict, ErrCodeOrderCartEmpty,\n\t\t\t\t\"The cart id you passed contains no items\") // 404\n\t\t\treturn\n\t\t}\n\t\tif err == service.ErrUserNotFound {\n\t\t\tcontextLogger.Warn(\"app: 404 Not Found - user not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeOrderUserNotFound,\n\t\t\t\t\"The user with the given user_id could not be found\") // 404\n\t\t\treturn\n\t\t}\n\t\tif err == service.ErrAddressNotFound {\n\t\t\tcontextLogger.Warnf(\"app: 404 Not Found - address not found\")\n\t\t\tclientError(w, http.StatusNotFound, ErrCodeAddressNotFound,\n\t\t\t\t\"billing or shipping address not found\")\n\t\t\treturn\n\t\t}\n\t\tif err != nil {\n\t\t\tcontextLogger.Panicf(\"app: PlaceOrder(ctx, ...) failed with error: %v\", err)\n\t\t\tw.WriteHeader(http.StatusInternalServerError) // 500\n\t\t\treturn\n\t\t}\n\t\tw.WriteHeader(http.StatusCreated) // 201 Created\n\t\tjson.NewEncoder(w).Encode(&order)\n\t}\n}",
"func (c *BFTChain) Order(env *cb.Envelope, configSeq uint64) error {\n\tseq := c.support.Sequence()\n\tif configSeq < seq {\n\t\tc.Logger.Warnf(\"Normal message was validated against %d, although current config seq has advanced (%d)\", configSeq, seq)\n\t\tif _, err := c.support.ProcessNormalMsg(env); err != nil {\n\t\t\treturn errors.Errorf(\"bad normal message: %s\", err)\n\t\t}\n\t}\n\n\treturn c.submit(env, configSeq)\n}",
"func (o *TelemetryDruidScanRequestAllOf) GetOrderOk() (*string, bool) {\n\tif o == nil || o.Order == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Order, true\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) HashOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\treturn _WyvernExchange.Contract.HashOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (m *OrderPaymentInstrument) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateAuthorizationStatus(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateBankRoutingNumber(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentBankAccount(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentCard(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validatePaymentMethodID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (m *SetTradeDependentOrdersBadRequestBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateRelatedTransactionIds(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateStopLossOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTakeProfitOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOrderCancelRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateTrailingStopLossOrderRejectTransaction(formats); err != nil {\n\t\t// prop\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (_Transactable *TransactableCaller) ValidateTransaction(opts *bind.CallOpts, _v uint8, _r [32]byte, _s [32]byte, _dest common.Address, _value *big.Int, _ts *big.Int) (bool, error) {\n\tvar out []interface{}\n\terr := _Transactable.contract.Call(opts, &out, \"validateTransaction\", _v, _r, _s, _dest, _value, _ts)\n\n\tif err != nil {\n\t\treturn *new(bool), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(bool)).(*bool)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaCallerSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {\n\treturn _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)\n}",
"func (_m *ValidatorService) ValidateOperatorAddress(o *types.Order) error {\n\tret := _m.Called(o)\n\n\tvar r0 error\n\tif rf, ok := ret.Get(0).(func(*types.Order) error); ok {\n\t\tr0 = rf(o)\n\t} else {\n\t\tr0 = ret.Error(0)\n\t}\n\n\treturn r0\n}",
"func orderEnough(val, lots, feeRate uint64, nfo *dex.Asset) func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\treturn func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\t\treqFunds := calc.RequiredOrderFundsAlt(val, uint64(size+unspent.input.Size()), lots, nfo.SwapSizeBase, nfo.SwapSize, feeRate)\n\t\t// needed fees are reqFunds - value\n\t\treturn sum+toAtoms(unspent.rpc.Amount) >= reqFunds\n\t}\n}",
"func (me *SALESORDER_IMPL) GetOrderStatus (\n clientCode string,\n detailView models_pkg.DetailView1Enum,\n startTime *time.Time,\n endTime *time.Time,\n orderNo []string,\n limit *int64,\n offset *int64) (*models_pkg.OrderStatusResponse1, error) {\n //the endpoint path uri\n _pathUrl := \"/v2/order\"\n\n //variable to hold errors\n var err error = nil\n //the base uri for api requests\n _queryBuilder := configuration_pkg.GetBaseURI(configuration_pkg.ENUM_DEFAULT,me.config);\n\n //prepare query string for API call\n _queryBuilder = _queryBuilder + _pathUrl\n\n //process optional query parameters\n _queryBuilder, err = apihelper_pkg.AppendUrlWithQueryParameters(_queryBuilder, map[string]interface{} {\n \"clientCode\" : clientCode,\n \"detailView\" : models_pkg.DetailView1EnumToValue(detailView),\n \"startTime\" : startTime,\n \"endTime\" : endTime,\n \"orderNo\" : orderNo,\n \"limit\" : limit,\n \"offset\" : offset,\n })\n if err != nil {\n //error in query param handling\n return nil, err\n }\n\n //validate and preprocess url\n _queryBuilder, err = apihelper_pkg.CleanUrl(_queryBuilder)\n if err != nil {\n //error in url validation or cleaning\n return nil, err\n }\n //prepare headers for the outgoing request\n headers := map[string]interface{} {\n \"user-agent\" : \"APIMATIC 2.0\",\n \"accept\" : \"application/json\",\n }\n\n //prepare API request\n _request := unirest.Get(_queryBuilder, headers)\n //and invoke the API call request to fetch the response\n _response, err := unirest.AsString(_request,false);\n if err != nil {\n //error in API invocation\n return nil, err\n }\n\n //error handling using HTTP status codes\n if (_response.Code == 400) {\n err = apihelper_pkg.NewAPIError(\"Response on Failure\", _response.Code, _response.RawBody)\n } else if (_response.Code == 0) {\n err = apihelper_pkg.NewAPIError(\"Unexpected error\", _response.Code, _response.RawBody)\n } else if (_response.Code < 200) || (_response.Code > 206) { //[200,206] = HTTP OK\n err = apihelper_pkg.NewAPIError(\"HTTP Response Not OK\", _response.Code, _response.RawBody)\n }\n if(err != nil) {\n //error detected in status code validation\n return nil, err\n }\n\n //returning the response\n var retVal *models_pkg.OrderStatusResponse1 = &models_pkg.OrderStatusResponse1{}\n err = json.Unmarshal(_response.RawBody, &retVal)\n\n if err != nil {\n //error in parsing\n return nil, err\n }\n return retVal, nil\n\n}",
"func (_DevUtils *DevUtilsCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []LibOrderOrder, signatures [][]byte) (struct {\n\tOrdersInfo []LibOrderOrderInfo\n\tFillableTakerAssetAmounts []*big.Int\n\tIsValidSignature []bool\n}, error) {\n\tret := new(struct {\n\t\tOrdersInfo []LibOrderOrderInfo\n\t\tFillableTakerAssetAmounts []*big.Int\n\t\tIsValidSignature []bool\n\t})\n\tout := ret\n\terr := _DevUtils.contract.Call(opts, out, \"getOrderRelevantStates\", orders, signatures)\n\treturn *ret, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) HashOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte) ([32]byte, error) {\n\treturn _WyvernExchange.Contract.HashOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata)\n}",
"func (o *V3SetErrorOrderInput) GetOrdersOk() (*[]V3OrderIntegrationError, bool) {\n\tif o == nil || o.Orders == nil {\n\t\treturn nil, false\n\t}\n\treturn o.Orders, true\n}",
"func (_BaseAccessWallet *BaseAccessWalletCaller) ValidateTransaction(opts *bind.CallOpts, _v uint8, _r [32]byte, _s [32]byte, _dest common.Address, _value *big.Int, _ts *big.Int) (bool, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWallet.contract.Call(opts, &out, \"validateTransaction\", _v, _r, _s, _dest, _value, _ts)\n\n\tif err != nil {\n\t\treturn *new(bool), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(bool)).(*bool)\n\n\treturn out0, err\n\n}",
"func OrderVerifyPaymentAndUpdate(c buffalo.Context) error {\n\torderVerificationRequest := models.OrderVerificationRequest{}\n\n\ttx, ok := c.Value(\"tx\").(*pop.Connection)\n\tif !ok {\n\t\treturn errors.WithStack(errors.New(\"transaction not found\"))\n\t}\n\n\tif err := c.Bind(&orderVerificationRequest); err != nil {\n\t\treturn c.Error(http.StatusBadRequest, err)\n\t}\n\n\t_, err := paystack.VerifyPayment(orderVerificationRequest.Reference)\n\tif err != nil {\n\t\treturn c.Error(http.StatusBadRequest, err)\n\t}\n\t// mdata := data[\"data\"].(map[string]interface{})[\"metadata\"].(map[string]interface{})\n\t// customFields := mdata[\"custom_fields\"].([]interface{})\n\t// orderID := customFields[0].(map[string]interface{})[\"order_id\"]\n\t// orderIDString := customFields[0].(map[string]interface{})[\"order_id\"].(string)\n\n\t// orderID, err := uuid.FromString(orderIDString)\n\t// if err != nil {\n\t// \tlog.Printf(\"failed to parse UUID %q: %v\", orderIDString, err)\n\t// }\n\torderID := orderVerificationRequest.Order.ID\n\torder := models.Order{}\n\tif err := tx.Find(&order, orderID); err != nil {\n\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"order not found!\"))\n\t}\n\torder.PaymentRef = orderVerificationRequest.Reference\n\torder.Status = Paid\n\n\tif err := tx.Save(&order); err != nil {\n\t\tlog.Println(err)\n\t\treturn c.Error(http.StatusInternalServerError, err)\n\t}\n\n\torderItems := models.OrderItems{}\n\tif err := tx.Where(\"order_id = ? AND status = ?\", orderID, Pending).All(&orderItems); err != nil {\n\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"order items not found!\"))\n\t}\n\n\t// update cart DB\n\tcart := models.Cart{}\n\n\tfor _, orderItem := range orderItems {\n\t\torderItem.DeliveryState = Processing\n\t\torderItem.Status = Paid\n\n\t\tif err = tx.Save(&orderItem); err != nil {\n\t\t\tlog.Println(err)\n\t\t\treturn c.Error(http.StatusInternalServerError, errors.Errorf(\"an error occured while saving the order item: %v\", err))\n\t\t}\n\n\t\tif err := tx.Where(\"user_id = ? AND product_id = ? AND status = ?\", orderItem.UserID,\n\t\t\torderItem.ProductID, Pending).First(&cart); err != nil {\n\n\t\t\tif errors.Cause(err) == sql.ErrNoRows {\n\t\t\t\tlog.Println(\"product is not in cart\")\n\t\t\t} else {\n\t\t\t\treturn errors.WithStack(err)\n\t\t\t}\n\t\t} else {\n\t\t\tcart.Status = Paid\n\t\t\tif err := tx.Update(&cart, \"user_id\", \"product_id\", \"cart_id\"); err != nil {\n\t\t\t\tlog.Println(err)\n\t\t\t\treturn errors.Errorf(\"Error: failed to update cart: %v\", err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn c.Render(200, r.JSON(map[string]interface{}{\n\t\t\"message\": \"order verified successfully\",\n\t}))\n}",
"func (t *TradePool) orderCheck(order *comm.Order) (target int, res bool) {\n\tif order == nil {\n\t\treturn -1, false\n\t}\n\n\t/// find Order by ID\n\tvar (\n\t\ttargetID int = -1\n\t\tsuc bool = false\n\t\telem *list.Element = nil\n\t)\n\tif order.AorB == comm.TradeType_BID {\n\t\ttargetID, suc = binarySearchOrderID(t.bidPoolIDSlice, order.ID)\n\t\tif suc {\n\t\t\telem = t.bidPoolIDSlice[targetID]\n\t\t}\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\ttargetID, suc = binarySearchOrderID(t.askPoolIDSlice, order.ID)\n\t\tif suc {\n\t\t\telem = t.askPoolIDSlice[targetID]\n\t\t}\n\t} else {\n\t\tfmt.Println(\"Illegal order type!\\n\")\n\t\treturn -1, false\n\t}\n\n\tif suc {\n\t\tif elem.Value.(comm.Order).Who == order.Who &&\n\t\t\telem.Value.(comm.Order).Price == order.Price &&\n\t\t\t///elem.Value.(comm.Order).Timestamp == order.Timestamp {\n\t\t\telem.Value.(comm.Order).EnOrderPrice == order.EnOrderPrice &&\n\t\t\telem.Value.(comm.Order).TotalVolume == order.TotalVolume {\n\t\t\treturn targetID, true\n\t\t} else {\n\t\t\treturn targetID, false\n\t\t}\n\t} else {\n\t\tcomm.DebugPrintln(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"OrderCheck in ME trade pool fail! Not a trading order.\\n\")\n\t\treturn -1, false\n\t}\n}",
"func verifyParseOrder(parseOrder []string) (validToken string, validPath bool, err error) {\n\t// Do a substring search for the parseOrder sent in on each of the valid grammars.\n\tfor _, validPath := range artifactV3ParseGrammar {\n\t\tif len(parseOrder) > len(validPath) {\n\t\t\tcontinue\n\t\t}\n\t\t// Check for a submatch in the current validPath.\n\t\tfor i := range parseOrder {\n\t\t\tif validPath[i] != parseOrder[i] {\n\t\t\t\tbreak // Check the next validPath against the parseOrder.\n\t\t\t}\n\t\t\t// We have a submatch. Check if the entire length matches.\n\t\t\tif i == len(parseOrder)-1 {\n\t\t\t\tif len(parseOrder) == len(validPath) {\n\t\t\t\t\treturn parseOrder[i], true, nil // Full match.\n\t\t\t\t}\n\t\t\t\treturn parseOrder[i], false, nil\n\t\t\t}\n\t\t}\n\t}\n\treturn \"\", false, errParseOrder\n}",
"func (a API) ValidateAddress(cmd *btcjson.ValidateAddressCmd) (e error) {\n\tRPCHandlers[\"validateaddress\"].Call <-API{a.Ch, cmd, nil}\n\treturn\n}",
"func ValidateGetActiveOrderResponseBody(body *GetActiveOrderResponseBody) (err error) {\n\tif body.Order != nil {\n\t\tif err2 := ValidateOrderResponseBody(body.Order); err2 != nil {\n\t\t\terr = goa.MergeErrors(err, err2)\n\t\t}\n\t}\n\treturn\n}",
"func (c *Client) VerifyOrder(ctx context.Context, purchaseToken, productID string, accountFlag int64) (InAppPurchaseData, error) {\n\tvar iap InAppPurchaseData\n\n\tdataString, _, err := c.GetOrderDataString(ctx, purchaseToken, productID, accountFlag)\n\tif err != nil {\n\t\treturn iap, err\n\t}\n\n\tif err := json.Unmarshal([]byte(dataString), &iap); err != nil {\n\t\treturn iap, err\n\t}\n\n\treturn iap, nil\n}",
"func (o *IndexClientCertificatesParams) bindOrder(rawData []string, hasKey bool, formats strfmt.Registry) error {\n\tvar raw string\n\tif len(rawData) > 0 {\n\t\traw = rawData[len(rawData)-1]\n\t}\n\n\t// Required: false\n\t// AllowEmptyValue: false\n\n\tif raw == \"\" { // empty values pass all other validations\n\t\treturn nil\n\t}\n\n\tvalue, err := swag.ConvertBool(raw)\n\tif err != nil {\n\t\treturn errors.InvalidType(\"order\", \"query\", \"bool\", raw)\n\t}\n\to.Order = &value\n\n\treturn nil\n}",
"func (m OrderType) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateOrderTypeEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (a *Client) CalculateOrder(params *CalculateOrderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateOrderOK, error) {\n\t// TODO: Validate the params before sending\n\tif params == nil {\n\t\tparams = NewCalculateOrderParams()\n\t}\n\top := &runtime.ClientOperation{\n\t\tID: \"CalculateOrder\",\n\t\tMethod: \"POST\",\n\t\tPathPattern: \"/v2/orders/calculate\",\n\t\tProducesMediaTypes: []string{\"application/json\"},\n\t\tConsumesMediaTypes: []string{\"application/json\"},\n\t\tSchemes: []string{\"https\"},\n\t\tParams: params,\n\t\tReader: &CalculateOrderReader{formats: a.formats},\n\t\tAuthInfo: authInfo,\n\t\tContext: params.Context,\n\t\tClient: params.HTTPClient,\n\t}\n\tfor _, opt := range opts {\n\t\topt(op)\n\t}\n\n\tresult, err := a.transport.Submit(op)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tsuccess, ok := result.(*CalculateOrderOK)\n\tif ok {\n\t\treturn success, nil\n\t}\n\t// unexpected success response\n\t// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue\n\tmsg := fmt.Sprintf(\"unexpected success response for CalculateOrder: API contract not enforced by server. Client expected to get an error, but got: %T\", result)\n\tpanic(msg)\n}",
"func checkRsReturnOrderNumber(value interface{}) error {\n\ts, _ := value.(string)\n\tisValid, _ := regexp.MatchString(`^RS[[:digit:]]{10}|[[:digit:]]{11}$`, s)\n\tif isValid {\n\t\treturn nil\n\t}\n\treturn errors.New(\"format incorrect\")\n}",
"func (o *GetOrderShipmentOKBodyItemsItems0) Validate(formats strfmt.Registry) error {\n\treturn nil\n}",
"func (v ValidatePayment) Run(ctx context.Context, p *process.Process) process.RunResult {\n\tctx, span := trace.StartSpan(ctx, \"placeorder/state/ValidatePayment/Run\")\n\tdefer span.End()\n\n\treturn v.validator(ctx, p, v.paymentService)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (o *V3SetErrorOrderInput) HasOrders() bool {\n\tif o != nil && o.Orders != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (m EveroutePackageOrderByInput) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\t// value enum\n\tif err := m.validateEveroutePackageOrderByInputEnum(\"\", \"body\", m); err != nil {\n\t\treturn err\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (a API) ValidateAddressChk() (isNew bool) {\n\tselect {\n\tcase o := <-a.Ch.(chan ValidateAddressRes):\n\t\tif o.Err != nil {\n\t\t\ta.Result = o.Err\n\t\t} else {\n\t\t\ta.Result = o.Res\n\t\t}\n\t\tisNew = true\n\tdefault:\n\t}\n\treturn\n}",
"func (e OrderValidationError) Cause() error { return e.cause }",
"func (client *Client) SendOrder(action, otype string, amount, price float64) (int64, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tSymbol string `json:\"symbol\"`\n\t\tAmount float64 `json:\"amount,string\"`\n\t\tPrice float64 `json:\"price,string\"`\n\t\tExchange string `json:\"exchange\"`\n\t\tSide string `json:\"side\"`\n\t\tType string `json:\"type\"`\n\t}{\n\t\t\"/v1/order/new\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tclient.symbol + client.currency,\n\t\tamount,\n\t\tprice,\n\t\t\"bitfinex\",\n\t\taction,\n\t\totype,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tID int64 `json:\"order_id\"`\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn 0, fmt.Errorf(\"%s SendOrder error: %s\", client, response.Message)\n\t}\n\n\treturn response.ID, nil\n}",
"func orderEnough(val, lots uint64, nfo *dex.Asset) func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\treturn func(sum uint64, size uint32, unspent *compositeUTXO) bool {\n\t\treqFunds := calc.RequiredOrderFunds(val, uint64(size+unspent.input.Size()), lots, nfo)\n\t\t// needed fees are reqFunds - value\n\t\treturn sum+toAtoms(unspent.rpc.Amount) >= reqFunds\n\t}\n}"
] | [
"0.8490019",
"0.82460785",
"0.72818404",
"0.7084524",
"0.69119066",
"0.62504125",
"0.6090899",
"0.59817076",
"0.596856",
"0.5890717",
"0.5824929",
"0.5824871",
"0.5805885",
"0.5797982",
"0.57520086",
"0.5724951",
"0.57213604",
"0.5660278",
"0.5626455",
"0.5603173",
"0.558983",
"0.5589637",
"0.5551427",
"0.54665726",
"0.5464128",
"0.54204905",
"0.5403445",
"0.5401824",
"0.5372206",
"0.5363524",
"0.5361927",
"0.5343336",
"0.5303954",
"0.5302443",
"0.5282505",
"0.52686685",
"0.5258837",
"0.525024",
"0.5224268",
"0.52230525",
"0.5200751",
"0.5180515",
"0.5175678",
"0.51592004",
"0.51510465",
"0.51497823",
"0.5142077",
"0.5118732",
"0.50726587",
"0.5063954",
"0.5061242",
"0.5046663",
"0.5027045",
"0.5017794",
"0.5016863",
"0.5013428",
"0.50103974",
"0.5008991",
"0.5006775",
"0.4998726",
"0.49975598",
"0.4990414",
"0.49848634",
"0.4984036",
"0.49782482",
"0.4977798",
"0.4965398",
"0.49633962",
"0.49595594",
"0.49583066",
"0.49137074",
"0.48892075",
"0.4879774",
"0.48548898",
"0.48443997",
"0.48377421",
"0.48343584",
"0.4827369",
"0.48176107",
"0.48006558",
"0.47912675",
"0.4785297",
"0.47835794",
"0.47793144",
"0.4778933",
"0.47788844",
"0.47745278",
"0.47622183",
"0.47562763",
"0.4753894",
"0.47501186",
"0.4746901",
"0.47442633",
"0.4743314",
"0.47405303",
"0.47362298",
"0.47350094",
"0.4731679",
"0.4730962",
"0.47266647"
] | 0.8355384 | 1 |
Version is a free data retrieval call binding the contract method 0x54fd4d50. Solidity: function version() constant returns(string) | func (_WyvernExchange *WyvernExchangeCaller) Version(opts *bind.CallOpts) (string, error) {
var (
ret0 = new(string)
)
out := ret0
err := _WyvernExchange.contract.Call(opts, out, "version")
return *ret0, err
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_TTFT20 *TTFT20Caller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _TTFT20.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Upgradeable *UpgradeableCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _Upgradeable.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func Version() string {\n\treturn getData().Version\n}",
"func (_Contract *ContractCaller) Version(opts *bind.CallOpts) ([4]byte, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([4]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([4]byte)).(*[4]byte)\n\n\treturn out0, err\n\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _OwnedUpgradeableTokenStorage.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_L1Block *L1BlockCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _L1Block.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}",
"func (_PlasmaFramework *PlasmaFrameworkCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _PlasmaFramework.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Contract *ContractSession) Version() ([4]byte, error) {\n\treturn _Contract.Contract.Version(&_Contract.CallOpts)\n}",
"func (_BaseAccessWallet *BaseAccessWalletCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWallet.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Contract *ContractCallerSession) Version() ([4]byte, error) {\n\treturn _Contract.Contract.Version(&_Contract.CallOpts)\n}",
"func (_BaseAccessWalletFactory *BaseAccessWalletFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWalletFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (c *Client) Version() (v Version, err error) {\n\t// Log\n\tvar m = \"Retrieve Open Data RATP version\"\n\tc.Logger.Debugf(\"[Start] %s\", m)\n\tdefer func(now time.Time) {\n\t\tc.Logger.Debugf(\"[End] %s in %s\", m, time.Since(now))\n\t}(time.Now())\n\n\t// Build request\n\tvar req = Envelope{Body: &EnvelopeBody{GetVersionRequest: &GetVersionRequest{}}}\n\n\t// Send request\n\tvar resp Envelope\n\tif resp, err = c.SendWithMaxRetries(\"getVersion\", req); err != nil {\n\t\treturn\n\t}\n\tv = resp.Body.GetVersionResponse.Version\n\treturn\n}",
"func (_Editable *EditableCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Editable.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_HelloWorld *HelloWorldCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _HelloWorld.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Accessible *AccessibleCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Accessible.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_L2CrossDomainMessenger *L2CrossDomainMessengerCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _L2CrossDomainMessenger.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}",
"func (_MetaObject *MetaObjectCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _MetaObject.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Ownable *OwnableCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Ownable.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_NodeSpace *NodeSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _NodeSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseLibrary *BaseLibraryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseLibrary.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Node *NodeCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Node.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseFactory *BaseFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version(node client.ABCIClient) (\n\tstring, *rpctypes.ResultABCIQuery, error,\n) {\n\t// perform the query\n\tres, err := node.ABCIQuery(query.VersionEndpoint, []byte{})\n\tif err != nil {\n\t\treturn \"\", res, err\n\t}\n\treturn string(res.Response.GetValue()), res, err\n}",
"func (_UserSpace *UserSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _UserSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseContentFactory *BaseContentFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_TTFT20 *TTFT20CallerSession) Version() (string, error) {\n\treturn _TTFT20.Contract.Version(&_TTFT20.CallOpts)\n}",
"func (_BaseContent *BaseContentCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContent.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\tapi := C.Create()\n\tdefer C.Free(api)\n\tversion := C.Version(api)\n\treturn C.GoString(version)\n}",
"func (_LvRecording *LvRecordingCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvRecording.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseContentSpace *BaseContentSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseLibraryFactory *BaseLibraryFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseLibraryFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (h *Hub) Version() (result string, err error) {\n\treturn h.client.sendXPathRequest(mySagemcomBoxDeviceInfoProductClass)\n}",
"func (d Dispatcher) Version() (string, error) {\n\theight, err := d.GetBC().GetLatestHeight()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\thashes, err := d.GetBC().GetBlockHashesHex()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tversionBytes, err := helpers.Serialize(NewVersion(GizoVersion, height, hashes))\n\treturn string(versionBytes), nil\n}",
"func (_Content *ContentCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Content.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Upgradeable *UpgradeableCallerSession) Version() (string, error) {\n\treturn _Upgradeable.Contract.Version(&_Upgradeable.CallOpts)\n}",
"func (_Container *ContainerCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Container.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_L1Block *L1BlockCallerSession) Version() (string, error) {\n\treturn _L1Block.Contract.Version(&_L1Block.CallOpts)\n}",
"func Version() string {\n\treturn versionNumber\n}",
"func (_BaseContentFactoryExt *BaseContentFactoryExtCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentFactoryExt.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() (string, error) {\n\treturn makeRequest(\"version\")\n}",
"func (_PlasmaFramework *PlasmaFrameworkCallerSession) Version() (string, error) {\n\treturn _PlasmaFramework.Contract.Version(&_PlasmaFramework.CallOpts)\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func (_HelloWorld *HelloWorldCallerSession) Version() (string, error) {\n\treturn _HelloWorld.Contract.Version(&_HelloWorld.CallOpts)\n}",
"func (_L1Block *L1BlockSession) Version() (string, error) {\n\treturn _L1Block.Contract.Version(&_L1Block.CallOpts)\n}",
"func Version() string {\n\t// TODO: Implement version tracking\n\treturn \"0.0.1\"\n}",
"func (_AccessIndexor *AccessIndexorCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _AccessIndexor.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (net *NetAPI) Version() (string, error) {\n\treq := net.requestManager.newRequest(\"net_version\")\n\tresp, err := net.requestManager.send(req)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Get(\"result\").(string), nil\n}",
"func (client *Client) Version() string {\n\tversion := C.Version(client.api)\n\treturn C.GoString(version)\n}",
"func (c *Connection) Version(ctx context.Context) (string, error) {\n\tresp, err := c.Request(ctx).\n\t\tSetResult(&api.VersionResponse{}).\n\t\tGet(\"/version\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Result().(*api.VersionResponse).Version, nil\n}",
"func (_BaseGroupFactory *BaseGroupFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseGroupFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_TTFT20 *TTFT20Session) Version() (string, error) {\n\treturn _TTFT20.Contract.Version(&_TTFT20.CallOpts)\n}",
"func Version() (version string) {\n\treturn GetVersion()\n}",
"func (_LvRecordableStream *LvRecordableStreamCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvRecordableStream.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) Version() (string, error) {\n\treturn _WyvernExchange.Contract.Version(&_WyvernExchange.CallOpts)\n}",
"func (v *V0) Version() string {\n\tif v == nil {\n\t\treturn VersionUnknown.String()\n\t}\n\treturn v.version.String()\n}",
"func (_Upgradeable *UpgradeableSession) Version() (string, error) {\n\treturn _Upgradeable.Contract.Version(&_Upgradeable.CallOpts)\n}",
"func (_PlasmaFramework *PlasmaFrameworkSession) Version() (string, error) {\n\treturn _PlasmaFramework.Contract.Version(&_PlasmaFramework.CallOpts)\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceCallerSession) Version() (*big.Int, error) {\n\treturn _AggregatorV2V3Interface.Contract.Version(&_AggregatorV2V3Interface.CallOpts)\n}",
"func getVersion() string {\n\tif metadata == \"\" {\n\t\treturn version\n\t}\n\treturn version + \"-\" + metadata\n}",
"func (_HelloWorld *HelloWorldSession) Version() (string, error) {\n\treturn _HelloWorld.Contract.Version(&_HelloWorld.CallOpts)\n}",
"func Version() string {\n\treturn \"0.0.0\"\n}",
"func Version() string {\n\treturn \"0.0.0\"\n}",
"func (api *API) Version(ctx context.Context) (string, error) {\n\taddr := api.host + \":\" + api.port\n\treturn version(addr)\n}",
"func (_SimpleMultiSig *SimpleMultiSigCaller) GetVersion(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _SimpleMultiSig.contract.Call(opts, out, \"getVersion\")\n\treturn *ret0, err\n}",
"func Version() string {\n\tif len(version) == 0 {\n\t\treturn \"UNKNOWN_VERSION\"\n\t}\n\treturn version\n}",
"func Version() string {\n\treturn \"0.1.0\"\n}",
"func (u *Uname) Version() string {\n\treturn toString(u.Utsname.Version[:])\n}",
"func String() string {\n\treturn Version\n}",
"func (_LvStreamRightsHolder *LvStreamRightsHolderCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvStreamRightsHolder.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_L2CrossDomainMessenger *L2CrossDomainMessengerCallerSession) Version() (string, error) {\n\treturn _L2CrossDomainMessenger.Contract.Version(&_L2CrossDomainMessenger.CallOpts)\n}",
"func (o ApiOutput) Version() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Api) *string { return v.Version }).(pulumi.StringPtrOutput)\n}",
"func (d *Diag) Version() string {\n\treturn bufToString(d.SzVersionString[:])\n}",
"func (v *VCard) Version() string {\n\treturn v.getFirstPropertySingleString(\"version\")\n}",
"func (d *DV4Mini) Version() ([]byte, error) {\n\t// []byte{0x18}\n\td.sendCmd([]byte{ADFVERSION})\n\n\tbHead := make([]byte, 6)\n\t_, err := d.Port.Read(bHead)\n\tif err != nil {\n\t\treturn bHead, err\n\t}\n\n\tif debug {\n\t\tlog.Printf(\"\\t[*] serial.read: %#v (len: %d)\\n\", bHead, len(bHead))\n\t}\n\n\tbParams := make([]byte, int(bHead[5]))\n\t_, err = d.Port.Read(bParams)\n\tif err != nil {\n\t\treturn bParams, err\n\t}\n\n\tif debug {\n\t\tlog.Printf(\"\\t[*] serial.read: %#v (len: %d)\\n\", bParams, len(bParams))\n\t}\n\n\tb := bHead\n\tb = append(b, bParams...)\n\n\t// Flush serial buffer before receiving more data\n\td.Port.Flush()\n\n\treturn b, nil\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageCallerSession) Version() (string, error) {\n\treturn _OwnedUpgradeableTokenStorage.Contract.Version(&_OwnedUpgradeableTokenStorage.CallOpts)\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceSession) Version() (*big.Int, error) {\n\treturn _AggregatorV2V3Interface.Contract.Version(&_AggregatorV2V3Interface.CallOpts)\n}",
"func Version() string {\r\n\tonce.Do(func() {\r\n\t\tsemver := fmt.Sprintf(\"%d.%d.%d\", major, minor, patch)\r\n\t\tverBuilder := bytes.NewBufferString(semver)\r\n\t\tif tag != \"\" && tag != \"-\" {\r\n\t\t\tupdated := strings.TrimPrefix(tag, \"-\")\r\n\t\t\t_, err := verBuilder.WriteString(\"-\" + updated)\r\n\t\t\tif err == nil {\r\n\t\t\t\tverBuilder = bytes.NewBufferString(semver)\r\n\t\t\t}\r\n\t\t}\r\n\t\tversion = verBuilder.String()\r\n\t})\r\n\treturn version\r\n}",
"func (b *Bot) Version() string { return b.version }",
"func (_BaseContentType *BaseContentTypeCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentType.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\treturn \"0.1.1\"\n}",
"func Version() string {\n\treturn \"0.1.1\"\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceCaller) Version(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _AggregatorV2V3Interface.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\treturn \"0.4.0\"\n}",
"func (i DbInfo) Version() (string, error) {\n\tversion, _, _, err := i.Parse()\n\n\treturn version, err\n}",
"func (_BaseAccessControlGroup *BaseAccessControlGroupCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessControlGroup.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\tvar hashStr string\n\tif CommitHash != \"\" {\n\t\thashStr = \"+\" + CommitHash\n\t}\n\n\tif currentVersion.label == \"\" {\n\t\treturn fmt.Sprintf(\"%d.%d.%d%s\", currentVersion.major, currentVersion.minor, currentVersion.patch, hashStr)\n\t}\n\n\treturn fmt.Sprintf(\"%d.%d.%d-%s%s\", currentVersion.major, currentVersion.minor, currentVersion.patch, currentVersion.label, hashStr)\n}",
"func (s *server) Version(args interface{}, resp *string) error {\n\t*resp = s.impl.Version()\n\treturn nil\n}",
"func (m Memo) Version() byte {\n\treturn (m[0] & 0x1c) >> 2\n}",
"func (_SimpleMultiSig *SimpleMultiSigCallerSession) GetVersion() (string, error) {\n\treturn _SimpleMultiSig.Contract.GetVersion(&_SimpleMultiSig.CallOpts)\n}",
"func (db *DB) Version() (string, error) {\n\tvar v string\n\tif _, err := db.QueryOne(pg.Scan(&v), \"select version()\"); err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn v, nil\n}",
"func Version() string {\n\treturn \"0.3.0\"\n}",
"func Version() string {\n\tvv := version{\n\t\tGitCommit: GitCommit,\n\t\tReleaseVersion: ReleaseVersion,\n\t\tBuildTime: BuildTime,\n\t}\n\tb, err := json.Marshal(vv)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn string(b)\n}",
"func (r *ReleaseModuleServiceServer) Version(ctx context.Context, in *rudderAPI.VersionReleaseRequest) (*rudderAPI.VersionReleaseResponse, error) {\n\tgrpclog.Print(\"version\")\n\treturn &rudderAPI.VersionReleaseResponse{\n\t\tName: \"helm-rudder-native\",\n\t\tVersion: version.Version,\n\t}, nil\n}"
] | [
"0.799074",
"0.79628927",
"0.79569584",
"0.79398847",
"0.7887774",
"0.77786976",
"0.7773214",
"0.77402085",
"0.7738159",
"0.7712119",
"0.7699625",
"0.76710886",
"0.7665376",
"0.7649665",
"0.76481867",
"0.76186067",
"0.7616618",
"0.76058567",
"0.75987506",
"0.7596046",
"0.7590137",
"0.7583878",
"0.75466627",
"0.7534749",
"0.7494996",
"0.7473997",
"0.7462702",
"0.74619114",
"0.7450939",
"0.74490005",
"0.7447463",
"0.74450886",
"0.7442963",
"0.7437981",
"0.743353",
"0.74046105",
"0.7404024",
"0.73989224",
"0.73917204",
"0.7310465",
"0.7307591",
"0.73073846",
"0.73073846",
"0.73073846",
"0.73073846",
"0.73073846",
"0.73073846",
"0.73073846",
"0.73073846",
"0.7293025",
"0.7280154",
"0.7276989",
"0.72743034",
"0.7242889",
"0.7241567",
"0.72316545",
"0.72211474",
"0.7203776",
"0.7202787",
"0.71956694",
"0.7194409",
"0.71891767",
"0.7179385",
"0.7171608",
"0.7166335",
"0.7160216",
"0.71596134",
"0.71545595",
"0.71545595",
"0.7128899",
"0.7097036",
"0.7094721",
"0.7078256",
"0.70740247",
"0.70685506",
"0.70589405",
"0.7058748",
"0.70551026",
"0.70538086",
"0.7049193",
"0.7048393",
"0.7040671",
"0.70316905",
"0.70316064",
"0.70233047",
"0.7014725",
"0.7009768",
"0.7009768",
"0.70086604",
"0.7007845",
"0.6995893",
"0.69863003",
"0.6977476",
"0.6972445",
"0.69704044",
"0.69692165",
"0.6954208",
"0.69540215",
"0.6949838",
"0.6947473"
] | 0.76378167 | 15 |
Version is a free data retrieval call binding the contract method 0x54fd4d50. Solidity: function version() constant returns(string) | func (_WyvernExchange *WyvernExchangeSession) Version() (string, error) {
return _WyvernExchange.Contract.Version(&_WyvernExchange.CallOpts)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_TTFT20 *TTFT20Caller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _TTFT20.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Upgradeable *UpgradeableCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _Upgradeable.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func Version() string {\n\treturn getData().Version\n}",
"func (_Contract *ContractCaller) Version(opts *bind.CallOpts) ([4]byte, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([4]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([4]byte)).(*[4]byte)\n\n\treturn out0, err\n\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _OwnedUpgradeableTokenStorage.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_L1Block *L1BlockCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _L1Block.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}",
"func (_PlasmaFramework *PlasmaFrameworkCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _PlasmaFramework.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Contract *ContractSession) Version() ([4]byte, error) {\n\treturn _Contract.Contract.Version(&_Contract.CallOpts)\n}",
"func (_BaseAccessWallet *BaseAccessWalletCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWallet.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Contract *ContractCallerSession) Version() ([4]byte, error) {\n\treturn _Contract.Contract.Version(&_Contract.CallOpts)\n}",
"func (_BaseAccessWalletFactory *BaseAccessWalletFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWalletFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (c *Client) Version() (v Version, err error) {\n\t// Log\n\tvar m = \"Retrieve Open Data RATP version\"\n\tc.Logger.Debugf(\"[Start] %s\", m)\n\tdefer func(now time.Time) {\n\t\tc.Logger.Debugf(\"[End] %s in %s\", m, time.Since(now))\n\t}(time.Now())\n\n\t// Build request\n\tvar req = Envelope{Body: &EnvelopeBody{GetVersionRequest: &GetVersionRequest{}}}\n\n\t// Send request\n\tvar resp Envelope\n\tif resp, err = c.SendWithMaxRetries(\"getVersion\", req); err != nil {\n\t\treturn\n\t}\n\tv = resp.Body.GetVersionResponse.Version\n\treturn\n}",
"func (_Editable *EditableCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Editable.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_HelloWorld *HelloWorldCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _HelloWorld.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Accessible *AccessibleCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Accessible.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_WyvernExchange *WyvernExchangeCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_L2CrossDomainMessenger *L2CrossDomainMessengerCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _L2CrossDomainMessenger.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}",
"func (_MetaObject *MetaObjectCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _MetaObject.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Ownable *OwnableCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Ownable.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_NodeSpace *NodeSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _NodeSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseLibrary *BaseLibraryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseLibrary.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Node *NodeCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Node.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseFactory *BaseFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version(node client.ABCIClient) (\n\tstring, *rpctypes.ResultABCIQuery, error,\n) {\n\t// perform the query\n\tres, err := node.ABCIQuery(query.VersionEndpoint, []byte{})\n\tif err != nil {\n\t\treturn \"\", res, err\n\t}\n\treturn string(res.Response.GetValue()), res, err\n}",
"func (_UserSpace *UserSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _UserSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseContentFactory *BaseContentFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_TTFT20 *TTFT20CallerSession) Version() (string, error) {\n\treturn _TTFT20.Contract.Version(&_TTFT20.CallOpts)\n}",
"func Version() string {\n\tapi := C.Create()\n\tdefer C.Free(api)\n\tversion := C.Version(api)\n\treturn C.GoString(version)\n}",
"func (_BaseContent *BaseContentCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContent.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_LvRecording *LvRecordingCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvRecording.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseContentSpace *BaseContentSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseLibraryFactory *BaseLibraryFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseLibraryFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (h *Hub) Version() (result string, err error) {\n\treturn h.client.sendXPathRequest(mySagemcomBoxDeviceInfoProductClass)\n}",
"func (d Dispatcher) Version() (string, error) {\n\theight, err := d.GetBC().GetLatestHeight()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\thashes, err := d.GetBC().GetBlockHashesHex()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tversionBytes, err := helpers.Serialize(NewVersion(GizoVersion, height, hashes))\n\treturn string(versionBytes), nil\n}",
"func (_Content *ContentCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Content.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Upgradeable *UpgradeableCallerSession) Version() (string, error) {\n\treturn _Upgradeable.Contract.Version(&_Upgradeable.CallOpts)\n}",
"func (_L1Block *L1BlockCallerSession) Version() (string, error) {\n\treturn _L1Block.Contract.Version(&_L1Block.CallOpts)\n}",
"func (_Container *ContainerCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Container.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\treturn versionNumber\n}",
"func (_BaseContentFactoryExt *BaseContentFactoryExtCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentFactoryExt.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() (string, error) {\n\treturn makeRequest(\"version\")\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func (_PlasmaFramework *PlasmaFrameworkCallerSession) Version() (string, error) {\n\treturn _PlasmaFramework.Contract.Version(&_PlasmaFramework.CallOpts)\n}",
"func (_HelloWorld *HelloWorldCallerSession) Version() (string, error) {\n\treturn _HelloWorld.Contract.Version(&_HelloWorld.CallOpts)\n}",
"func (_L1Block *L1BlockSession) Version() (string, error) {\n\treturn _L1Block.Contract.Version(&_L1Block.CallOpts)\n}",
"func Version() string {\n\t// TODO: Implement version tracking\n\treturn \"0.0.1\"\n}",
"func (_AccessIndexor *AccessIndexorCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _AccessIndexor.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (net *NetAPI) Version() (string, error) {\n\treq := net.requestManager.newRequest(\"net_version\")\n\tresp, err := net.requestManager.send(req)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Get(\"result\").(string), nil\n}",
"func (client *Client) Version() string {\n\tversion := C.Version(client.api)\n\treturn C.GoString(version)\n}",
"func (c *Connection) Version(ctx context.Context) (string, error) {\n\tresp, err := c.Request(ctx).\n\t\tSetResult(&api.VersionResponse{}).\n\t\tGet(\"/version\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Result().(*api.VersionResponse).Version, nil\n}",
"func (_BaseGroupFactory *BaseGroupFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseGroupFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_TTFT20 *TTFT20Session) Version() (string, error) {\n\treturn _TTFT20.Contract.Version(&_TTFT20.CallOpts)\n}",
"func Version() (version string) {\n\treturn GetVersion()\n}",
"func (_LvRecordableStream *LvRecordableStreamCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvRecordableStream.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) Version() (string, error) {\n\treturn _WyvernExchange.Contract.Version(&_WyvernExchange.CallOpts)\n}",
"func (v *V0) Version() string {\n\tif v == nil {\n\t\treturn VersionUnknown.String()\n\t}\n\treturn v.version.String()\n}",
"func (_Upgradeable *UpgradeableSession) Version() (string, error) {\n\treturn _Upgradeable.Contract.Version(&_Upgradeable.CallOpts)\n}",
"func (_PlasmaFramework *PlasmaFrameworkSession) Version() (string, error) {\n\treturn _PlasmaFramework.Contract.Version(&_PlasmaFramework.CallOpts)\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceCallerSession) Version() (*big.Int, error) {\n\treturn _AggregatorV2V3Interface.Contract.Version(&_AggregatorV2V3Interface.CallOpts)\n}",
"func getVersion() string {\n\tif metadata == \"\" {\n\t\treturn version\n\t}\n\treturn version + \"-\" + metadata\n}",
"func (_HelloWorld *HelloWorldSession) Version() (string, error) {\n\treturn _HelloWorld.Contract.Version(&_HelloWorld.CallOpts)\n}",
"func Version() string {\n\treturn \"0.0.0\"\n}",
"func Version() string {\n\treturn \"0.0.0\"\n}",
"func (api *API) Version(ctx context.Context) (string, error) {\n\taddr := api.host + \":\" + api.port\n\treturn version(addr)\n}",
"func (_SimpleMultiSig *SimpleMultiSigCaller) GetVersion(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _SimpleMultiSig.contract.Call(opts, out, \"getVersion\")\n\treturn *ret0, err\n}",
"func Version() string {\n\tif len(version) == 0 {\n\t\treturn \"UNKNOWN_VERSION\"\n\t}\n\treturn version\n}",
"func Version() string {\n\treturn \"0.1.0\"\n}",
"func (u *Uname) Version() string {\n\treturn toString(u.Utsname.Version[:])\n}",
"func String() string {\n\treturn Version\n}",
"func (_L2CrossDomainMessenger *L2CrossDomainMessengerCallerSession) Version() (string, error) {\n\treturn _L2CrossDomainMessenger.Contract.Version(&_L2CrossDomainMessenger.CallOpts)\n}",
"func (_LvStreamRightsHolder *LvStreamRightsHolderCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvStreamRightsHolder.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (o ApiOutput) Version() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Api) *string { return v.Version }).(pulumi.StringPtrOutput)\n}",
"func (d *Diag) Version() string {\n\treturn bufToString(d.SzVersionString[:])\n}",
"func (v *VCard) Version() string {\n\treturn v.getFirstPropertySingleString(\"version\")\n}",
"func (d *DV4Mini) Version() ([]byte, error) {\n\t// []byte{0x18}\n\td.sendCmd([]byte{ADFVERSION})\n\n\tbHead := make([]byte, 6)\n\t_, err := d.Port.Read(bHead)\n\tif err != nil {\n\t\treturn bHead, err\n\t}\n\n\tif debug {\n\t\tlog.Printf(\"\\t[*] serial.read: %#v (len: %d)\\n\", bHead, len(bHead))\n\t}\n\n\tbParams := make([]byte, int(bHead[5]))\n\t_, err = d.Port.Read(bParams)\n\tif err != nil {\n\t\treturn bParams, err\n\t}\n\n\tif debug {\n\t\tlog.Printf(\"\\t[*] serial.read: %#v (len: %d)\\n\", bParams, len(bParams))\n\t}\n\n\tb := bHead\n\tb = append(b, bParams...)\n\n\t// Flush serial buffer before receiving more data\n\td.Port.Flush()\n\n\treturn b, nil\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageCallerSession) Version() (string, error) {\n\treturn _OwnedUpgradeableTokenStorage.Contract.Version(&_OwnedUpgradeableTokenStorage.CallOpts)\n}",
"func Version() string {\r\n\tonce.Do(func() {\r\n\t\tsemver := fmt.Sprintf(\"%d.%d.%d\", major, minor, patch)\r\n\t\tverBuilder := bytes.NewBufferString(semver)\r\n\t\tif tag != \"\" && tag != \"-\" {\r\n\t\t\tupdated := strings.TrimPrefix(tag, \"-\")\r\n\t\t\t_, err := verBuilder.WriteString(\"-\" + updated)\r\n\t\t\tif err == nil {\r\n\t\t\t\tverBuilder = bytes.NewBufferString(semver)\r\n\t\t\t}\r\n\t\t}\r\n\t\tversion = verBuilder.String()\r\n\t})\r\n\treturn version\r\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceSession) Version() (*big.Int, error) {\n\treturn _AggregatorV2V3Interface.Contract.Version(&_AggregatorV2V3Interface.CallOpts)\n}",
"func (b *Bot) Version() string { return b.version }",
"func (_BaseContentType *BaseContentTypeCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentType.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\treturn \"0.1.1\"\n}",
"func Version() string {\n\treturn \"0.1.1\"\n}",
"func Version() string {\n\treturn \"0.4.0\"\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceCaller) Version(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _AggregatorV2V3Interface.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (i DbInfo) Version() (string, error) {\n\tversion, _, _, err := i.Parse()\n\n\treturn version, err\n}",
"func (_BaseAccessControlGroup *BaseAccessControlGroupCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessControlGroup.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\tvar hashStr string\n\tif CommitHash != \"\" {\n\t\thashStr = \"+\" + CommitHash\n\t}\n\n\tif currentVersion.label == \"\" {\n\t\treturn fmt.Sprintf(\"%d.%d.%d%s\", currentVersion.major, currentVersion.minor, currentVersion.patch, hashStr)\n\t}\n\n\treturn fmt.Sprintf(\"%d.%d.%d-%s%s\", currentVersion.major, currentVersion.minor, currentVersion.patch, currentVersion.label, hashStr)\n}",
"func (s *server) Version(args interface{}, resp *string) error {\n\t*resp = s.impl.Version()\n\treturn nil\n}",
"func (m Memo) Version() byte {\n\treturn (m[0] & 0x1c) >> 2\n}",
"func (_SimpleMultiSig *SimpleMultiSigCallerSession) GetVersion() (string, error) {\n\treturn _SimpleMultiSig.Contract.GetVersion(&_SimpleMultiSig.CallOpts)\n}",
"func Version() string {\n\treturn \"0.3.0\"\n}",
"func (db *DB) Version() (string, error) {\n\tvar v string\n\tif _, err := db.QueryOne(pg.Scan(&v), \"select version()\"); err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn v, nil\n}",
"func Version() string {\n\tvv := version{\n\t\tGitCommit: GitCommit,\n\t\tReleaseVersion: ReleaseVersion,\n\t\tBuildTime: BuildTime,\n\t}\n\tb, err := json.Marshal(vv)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn string(b)\n}",
"func (r *ReleaseModuleServiceServer) Version(ctx context.Context, in *rudderAPI.VersionReleaseRequest) (*rudderAPI.VersionReleaseResponse, error) {\n\tgrpclog.Print(\"version\")\n\treturn &rudderAPI.VersionReleaseResponse{\n\t\tName: \"helm-rudder-native\",\n\t\tVersion: version.Version,\n\t}, nil\n}"
] | [
"0.7990323",
"0.7962431",
"0.79578143",
"0.7939317",
"0.7887952",
"0.77783865",
"0.77731395",
"0.7740253",
"0.7737986",
"0.7712321",
"0.76998276",
"0.7670858",
"0.76649",
"0.76493126",
"0.7647974",
"0.763738",
"0.76188433",
"0.761624",
"0.76057154",
"0.7598594",
"0.7595909",
"0.75897336",
"0.7584087",
"0.75461996",
"0.75345105",
"0.7495099",
"0.74745315",
"0.74624544",
"0.7462189",
"0.74512035",
"0.7448687",
"0.74478906",
"0.74458045",
"0.74443513",
"0.7437427",
"0.74338603",
"0.74047285",
"0.7404437",
"0.7400237",
"0.7391866",
"0.73109275",
"0.7308744",
"0.7308744",
"0.7308744",
"0.7308744",
"0.7308744",
"0.7308744",
"0.7308744",
"0.7308744",
"0.73083705",
"0.72935164",
"0.72807723",
"0.7278151",
"0.72744805",
"0.72429246",
"0.72420377",
"0.7231697",
"0.722184",
"0.7204245",
"0.7203998",
"0.71953696",
"0.7194838",
"0.7189485",
"0.7179631",
"0.7172391",
"0.7167306",
"0.7160625",
"0.71600163",
"0.7155436",
"0.7155436",
"0.7129245",
"0.70968467",
"0.70958173",
"0.70792",
"0.707469",
"0.7068895",
"0.7059908",
"0.70588905",
"0.70553005",
"0.70548064",
"0.70494264",
"0.70488435",
"0.704157",
"0.7032818",
"0.7032675",
"0.7024307",
"0.70143193",
"0.7010703",
"0.7010703",
"0.7009457",
"0.70086896",
"0.6996764",
"0.69867486",
"0.69780964",
"0.6972577",
"0.6971206",
"0.6969493",
"0.69551677",
"0.69547397",
"0.6950178",
"0.6948265"
] | 0.0 | -1 |
Version is a free data retrieval call binding the contract method 0x54fd4d50. Solidity: function version() constant returns(string) | func (_WyvernExchange *WyvernExchangeCallerSession) Version() (string, error) {
return _WyvernExchange.Contract.Version(&_WyvernExchange.CallOpts)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_TTFT20 *TTFT20Caller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _TTFT20.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Upgradeable *UpgradeableCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _Upgradeable.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func Version() string {\n\treturn getData().Version\n}",
"func (_Contract *ContractCaller) Version(opts *bind.CallOpts) ([4]byte, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([4]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([4]byte)).(*[4]byte)\n\n\treturn out0, err\n\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _OwnedUpgradeableTokenStorage.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_L1Block *L1BlockCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _L1Block.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}",
"func (_PlasmaFramework *PlasmaFrameworkCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _PlasmaFramework.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Contract *ContractSession) Version() ([4]byte, error) {\n\treturn _Contract.Contract.Version(&_Contract.CallOpts)\n}",
"func (_BaseAccessWallet *BaseAccessWalletCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWallet.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Contract *ContractCallerSession) Version() ([4]byte, error) {\n\treturn _Contract.Contract.Version(&_Contract.CallOpts)\n}",
"func (_BaseAccessWalletFactory *BaseAccessWalletFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessWalletFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (c *Client) Version() (v Version, err error) {\n\t// Log\n\tvar m = \"Retrieve Open Data RATP version\"\n\tc.Logger.Debugf(\"[Start] %s\", m)\n\tdefer func(now time.Time) {\n\t\tc.Logger.Debugf(\"[End] %s in %s\", m, time.Since(now))\n\t}(time.Now())\n\n\t// Build request\n\tvar req = Envelope{Body: &EnvelopeBody{GetVersionRequest: &GetVersionRequest{}}}\n\n\t// Send request\n\tvar resp Envelope\n\tif resp, err = c.SendWithMaxRetries(\"getVersion\", req); err != nil {\n\t\treturn\n\t}\n\tv = resp.Body.GetVersionResponse.Version\n\treturn\n}",
"func (_Editable *EditableCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Editable.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_HelloWorld *HelloWorldCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _HelloWorld.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_Accessible *AccessibleCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Accessible.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_WyvernExchange *WyvernExchangeCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"version\")\n\treturn *ret0, err\n}",
"func (_L2CrossDomainMessenger *L2CrossDomainMessengerCaller) Version(opts *bind.CallOpts) (string, error) {\n\tvar out []interface{}\n\terr := _L2CrossDomainMessenger.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(string), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(string)).(*string)\n\n\treturn out0, err\n\n}",
"func (_MetaObject *MetaObjectCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _MetaObject.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Ownable *OwnableCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Ownable.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_NodeSpace *NodeSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _NodeSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseLibrary *BaseLibraryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseLibrary.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Node *NodeCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Node.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseFactory *BaseFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version(node client.ABCIClient) (\n\tstring, *rpctypes.ResultABCIQuery, error,\n) {\n\t// perform the query\n\tres, err := node.ABCIQuery(query.VersionEndpoint, []byte{})\n\tif err != nil {\n\t\treturn \"\", res, err\n\t}\n\treturn string(res.Response.GetValue()), res, err\n}",
"func (_UserSpace *UserSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _UserSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseContentFactory *BaseContentFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_TTFT20 *TTFT20CallerSession) Version() (string, error) {\n\treturn _TTFT20.Contract.Version(&_TTFT20.CallOpts)\n}",
"func Version() string {\n\tapi := C.Create()\n\tdefer C.Free(api)\n\tversion := C.Version(api)\n\treturn C.GoString(version)\n}",
"func (_BaseContent *BaseContentCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContent.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_LvRecording *LvRecordingCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvRecording.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseContentSpace *BaseContentSpaceCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentSpace.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_BaseLibraryFactory *BaseLibraryFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseLibraryFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (h *Hub) Version() (result string, err error) {\n\treturn h.client.sendXPathRequest(mySagemcomBoxDeviceInfoProductClass)\n}",
"func (d Dispatcher) Version() (string, error) {\n\theight, err := d.GetBC().GetLatestHeight()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\thashes, err := d.GetBC().GetBlockHashesHex()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tversionBytes, err := helpers.Serialize(NewVersion(GizoVersion, height, hashes))\n\treturn string(versionBytes), nil\n}",
"func (_Content *ContentCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Content.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_Upgradeable *UpgradeableCallerSession) Version() (string, error) {\n\treturn _Upgradeable.Contract.Version(&_Upgradeable.CallOpts)\n}",
"func (_Container *ContainerCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _Container.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_L1Block *L1BlockCallerSession) Version() (string, error) {\n\treturn _L1Block.Contract.Version(&_L1Block.CallOpts)\n}",
"func Version() string {\n\treturn versionNumber\n}",
"func (_BaseContentFactoryExt *BaseContentFactoryExtCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentFactoryExt.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() (string, error) {\n\treturn makeRequest(\"version\")\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func Version() string {\n\treturn version\n}",
"func (_PlasmaFramework *PlasmaFrameworkCallerSession) Version() (string, error) {\n\treturn _PlasmaFramework.Contract.Version(&_PlasmaFramework.CallOpts)\n}",
"func (_HelloWorld *HelloWorldCallerSession) Version() (string, error) {\n\treturn _HelloWorld.Contract.Version(&_HelloWorld.CallOpts)\n}",
"func (_L1Block *L1BlockSession) Version() (string, error) {\n\treturn _L1Block.Contract.Version(&_L1Block.CallOpts)\n}",
"func Version() string {\n\t// TODO: Implement version tracking\n\treturn \"0.0.1\"\n}",
"func (_AccessIndexor *AccessIndexorCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _AccessIndexor.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (net *NetAPI) Version() (string, error) {\n\treq := net.requestManager.newRequest(\"net_version\")\n\tresp, err := net.requestManager.send(req)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Get(\"result\").(string), nil\n}",
"func (client *Client) Version() string {\n\tversion := C.Version(client.api)\n\treturn C.GoString(version)\n}",
"func (c *Connection) Version(ctx context.Context) (string, error) {\n\tresp, err := c.Request(ctx).\n\t\tSetResult(&api.VersionResponse{}).\n\t\tGet(\"/version\")\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Result().(*api.VersionResponse).Version, nil\n}",
"func (_BaseGroupFactory *BaseGroupFactoryCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseGroupFactory.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (_TTFT20 *TTFT20Session) Version() (string, error) {\n\treturn _TTFT20.Contract.Version(&_TTFT20.CallOpts)\n}",
"func Version() (version string) {\n\treturn GetVersion()\n}",
"func (_LvRecordableStream *LvRecordableStreamCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvRecordableStream.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (v *V0) Version() string {\n\tif v == nil {\n\t\treturn VersionUnknown.String()\n\t}\n\treturn v.version.String()\n}",
"func (_Upgradeable *UpgradeableSession) Version() (string, error) {\n\treturn _Upgradeable.Contract.Version(&_Upgradeable.CallOpts)\n}",
"func (_PlasmaFramework *PlasmaFrameworkSession) Version() (string, error) {\n\treturn _PlasmaFramework.Contract.Version(&_PlasmaFramework.CallOpts)\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceCallerSession) Version() (*big.Int, error) {\n\treturn _AggregatorV2V3Interface.Contract.Version(&_AggregatorV2V3Interface.CallOpts)\n}",
"func getVersion() string {\n\tif metadata == \"\" {\n\t\treturn version\n\t}\n\treturn version + \"-\" + metadata\n}",
"func (_HelloWorld *HelloWorldSession) Version() (string, error) {\n\treturn _HelloWorld.Contract.Version(&_HelloWorld.CallOpts)\n}",
"func Version() string {\n\treturn \"0.0.0\"\n}",
"func Version() string {\n\treturn \"0.0.0\"\n}",
"func (api *API) Version(ctx context.Context) (string, error) {\n\taddr := api.host + \":\" + api.port\n\treturn version(addr)\n}",
"func (_SimpleMultiSig *SimpleMultiSigCaller) GetVersion(opts *bind.CallOpts) (string, error) {\n\tvar (\n\t\tret0 = new(string)\n\t)\n\tout := ret0\n\terr := _SimpleMultiSig.contract.Call(opts, out, \"getVersion\")\n\treturn *ret0, err\n}",
"func Version() string {\n\tif len(version) == 0 {\n\t\treturn \"UNKNOWN_VERSION\"\n\t}\n\treturn version\n}",
"func Version() string {\n\treturn \"0.1.0\"\n}",
"func (u *Uname) Version() string {\n\treturn toString(u.Utsname.Version[:])\n}",
"func String() string {\n\treturn Version\n}",
"func (_L2CrossDomainMessenger *L2CrossDomainMessengerCallerSession) Version() (string, error) {\n\treturn _L2CrossDomainMessenger.Contract.Version(&_L2CrossDomainMessenger.CallOpts)\n}",
"func (_LvStreamRightsHolder *LvStreamRightsHolderCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _LvStreamRightsHolder.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func (d *Diag) Version() string {\n\treturn bufToString(d.SzVersionString[:])\n}",
"func (o ApiOutput) Version() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v Api) *string { return v.Version }).(pulumi.StringPtrOutput)\n}",
"func (v *VCard) Version() string {\n\treturn v.getFirstPropertySingleString(\"version\")\n}",
"func (d *DV4Mini) Version() ([]byte, error) {\n\t// []byte{0x18}\n\td.sendCmd([]byte{ADFVERSION})\n\n\tbHead := make([]byte, 6)\n\t_, err := d.Port.Read(bHead)\n\tif err != nil {\n\t\treturn bHead, err\n\t}\n\n\tif debug {\n\t\tlog.Printf(\"\\t[*] serial.read: %#v (len: %d)\\n\", bHead, len(bHead))\n\t}\n\n\tbParams := make([]byte, int(bHead[5]))\n\t_, err = d.Port.Read(bParams)\n\tif err != nil {\n\t\treturn bParams, err\n\t}\n\n\tif debug {\n\t\tlog.Printf(\"\\t[*] serial.read: %#v (len: %d)\\n\", bParams, len(bParams))\n\t}\n\n\tb := bHead\n\tb = append(b, bParams...)\n\n\t// Flush serial buffer before receiving more data\n\td.Port.Flush()\n\n\treturn b, nil\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageCallerSession) Version() (string, error) {\n\treturn _OwnedUpgradeableTokenStorage.Contract.Version(&_OwnedUpgradeableTokenStorage.CallOpts)\n}",
"func Version() string {\r\n\tonce.Do(func() {\r\n\t\tsemver := fmt.Sprintf(\"%d.%d.%d\", major, minor, patch)\r\n\t\tverBuilder := bytes.NewBufferString(semver)\r\n\t\tif tag != \"\" && tag != \"-\" {\r\n\t\t\tupdated := strings.TrimPrefix(tag, \"-\")\r\n\t\t\t_, err := verBuilder.WriteString(\"-\" + updated)\r\n\t\t\tif err == nil {\r\n\t\t\t\tverBuilder = bytes.NewBufferString(semver)\r\n\t\t\t}\r\n\t\t}\r\n\t\tversion = verBuilder.String()\r\n\t})\r\n\treturn version\r\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceSession) Version() (*big.Int, error) {\n\treturn _AggregatorV2V3Interface.Contract.Version(&_AggregatorV2V3Interface.CallOpts)\n}",
"func (b *Bot) Version() string { return b.version }",
"func (_BaseContentType *BaseContentTypeCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseContentType.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\treturn \"0.1.1\"\n}",
"func Version() string {\n\treturn \"0.1.1\"\n}",
"func Version() string {\n\treturn \"0.4.0\"\n}",
"func (_AggregatorV2V3Interface *AggregatorV2V3InterfaceCaller) Version(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _AggregatorV2V3Interface.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (i DbInfo) Version() (string, error) {\n\tversion, _, _, err := i.Parse()\n\n\treturn version, err\n}",
"func (_BaseAccessControlGroup *BaseAccessControlGroupCaller) Version(opts *bind.CallOpts) ([32]byte, error) {\n\tvar out []interface{}\n\terr := _BaseAccessControlGroup.contract.Call(opts, &out, \"version\")\n\n\tif err != nil {\n\t\treturn *new([32]byte), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)\n\n\treturn out0, err\n\n}",
"func Version() string {\n\tvar hashStr string\n\tif CommitHash != \"\" {\n\t\thashStr = \"+\" + CommitHash\n\t}\n\n\tif currentVersion.label == \"\" {\n\t\treturn fmt.Sprintf(\"%d.%d.%d%s\", currentVersion.major, currentVersion.minor, currentVersion.patch, hashStr)\n\t}\n\n\treturn fmt.Sprintf(\"%d.%d.%d-%s%s\", currentVersion.major, currentVersion.minor, currentVersion.patch, currentVersion.label, hashStr)\n}",
"func (s *server) Version(args interface{}, resp *string) error {\n\t*resp = s.impl.Version()\n\treturn nil\n}",
"func (m Memo) Version() byte {\n\treturn (m[0] & 0x1c) >> 2\n}",
"func (_SimpleMultiSig *SimpleMultiSigCallerSession) GetVersion() (string, error) {\n\treturn _SimpleMultiSig.Contract.GetVersion(&_SimpleMultiSig.CallOpts)\n}",
"func (db *DB) Version() (string, error) {\n\tvar v string\n\tif _, err := db.QueryOne(pg.Scan(&v), \"select version()\"); err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn v, nil\n}",
"func Version() string {\n\treturn \"0.3.0\"\n}",
"func Version() string {\n\tvv := version{\n\t\tGitCommit: GitCommit,\n\t\tReleaseVersion: ReleaseVersion,\n\t\tBuildTime: BuildTime,\n\t}\n\tb, err := json.Marshal(vv)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn string(b)\n}",
"func (r *ReleaseModuleServiceServer) Version(ctx context.Context, in *rudderAPI.VersionReleaseRequest) (*rudderAPI.VersionReleaseResponse, error) {\n\tgrpclog.Print(\"version\")\n\treturn &rudderAPI.VersionReleaseResponse{\n\t\tName: \"helm-rudder-native\",\n\t\tVersion: version.Version,\n\t}, nil\n}"
] | [
"0.7990103",
"0.79622024",
"0.79573286",
"0.7939191",
"0.7886992",
"0.7777636",
"0.7773323",
"0.77400357",
"0.7737217",
"0.7711827",
"0.7698975",
"0.7670197",
"0.7664538",
"0.7649252",
"0.7647793",
"0.763681",
"0.7617947",
"0.7616075",
"0.76051086",
"0.75983775",
"0.7595569",
"0.7589561",
"0.7583555",
"0.754561",
"0.7534252",
"0.74946856",
"0.7474061",
"0.74625355",
"0.7461978",
"0.7450757",
"0.74485815",
"0.7447341",
"0.7444809",
"0.74431986",
"0.7437427",
"0.7433412",
"0.7404232",
"0.7403693",
"0.73999107",
"0.739148",
"0.7310667",
"0.7308552",
"0.7308552",
"0.7308552",
"0.7308552",
"0.7308552",
"0.7308552",
"0.7308552",
"0.7308552",
"0.7308345",
"0.7293129",
"0.7279884",
"0.7277712",
"0.72737515",
"0.72422224",
"0.7241631",
"0.723036",
"0.7221152",
"0.7204004",
"0.720388",
"0.7194927",
"0.7189551",
"0.71794003",
"0.7172611",
"0.71655977",
"0.71603066",
"0.71597487",
"0.7155093",
"0.7155093",
"0.7128699",
"0.7096886",
"0.709595",
"0.707865",
"0.70743144",
"0.7069108",
"0.70586044",
"0.7058194",
"0.70547205",
"0.70545477",
"0.70496017",
"0.7049404",
"0.70403343",
"0.70325524",
"0.7030954",
"0.7023677",
"0.7014216",
"0.70100886",
"0.70100886",
"0.700925",
"0.70071733",
"0.69961905",
"0.69861794",
"0.6977468",
"0.6971704",
"0.6970965",
"0.69695795",
"0.69543386",
"0.6954243",
"0.6949896",
"0.6947278"
] | 0.7193895 | 61 |
ApproveOrder is a paid mutator transaction binding the contract method 0x79666868. Solidity: function approveOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, bool orderbookInclusionDesired) returns() | func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "approveOrder_", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_WELV9 *WELV9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _WELV9.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_Bindings *BindingsTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Bep20 *Bep20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC20Pausable *ERC20PausableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Pausable.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Wmatic *WmaticTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ERC20Capped *ERC20CappedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Capped.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC721Metadata *ERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Weth *WethTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC721Contract *ERC721ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_TTFT20 *TTFT20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _TTFT20.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ApprovedOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"approvedOrders\", arg0)\n\treturn *ret0, err\n}",
"func (_Contract *ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_ERC20Interface *ERC20InterfaceTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_Erc20Mock *Erc20MockTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721Enumerable *ERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_ERC20Mintable *ERC20MintableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Mintable.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Erc777 *Erc777Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc777.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_FCToken *FCTokenTransactor) Approve(opts *bind.TransactOpts, _delegatee common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _FCToken.contract.Transact(opts, \"approve\", _delegatee, _value)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Enumerable *IERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC20Detailed *ERC20DetailedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Detailed.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_CraftingI *CraftingITransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _CraftingI.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\r\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, value)\r\n}",
"func (_CrToken *CrTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _CrToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DemoERC20 *DemoERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_ERC721Token *ERC721TokenTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Token.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_Lelecoin *LelecoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Lelecoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Bindings *BindingsTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.Contract.Approve(&_Bindings.TransactOpts, spender, amount)\n}",
"func (_PausableToken *PausableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _PausableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Bindings *BindingsSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.Contract.Approve(&_Bindings.TransactOpts, spender, amount)\n}",
"func (_DelegatableDai *DelegatableDaiTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DelegatableDai.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_ZKOnacci *ZKOnacciTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ZKOnacci.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Erc20Mock *Erc20MockTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.Approve(&_Erc20Mock.TransactOpts, spender, value)\n}",
"func (_ElvTradable *ElvTradableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Erc20Mock *Erc20MockSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.Approve(&_Erc20Mock.TransactOpts, spender, value)\n}",
"func (_ElvToken *ElvTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ElvToken.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_BREMToken *BREMTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _BREMToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_IUniswapV2Pair *IUniswapV2PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Pair.contract.Transact(opts, \"approve\", spender, value)\r\n}",
"func (_BtlCoin *BtlCoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _BtlCoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_StakingToken *StakingTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _StakingToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Approve(opts *bind.TransactOpts, name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"approve\", name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_Univ2 *Univ2Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Univ2.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_StandardToken *StandardTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _StandardToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_StandardToken *StandardTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _StandardToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MainnetCryptoCardsContract.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.Approve(&_FixedSupplyToken.TransactOpts, spender, tokens)\n}",
"func (_MintableToken *MintableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _MintableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Wmatic *WmaticTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.Contract.Approve(&_Wmatic.TransactOpts, guy, wad)\n}",
"func (_Weth *WethTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_BurnableToken *BurnableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _BurnableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Bep20 *Bep20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.Contract.Approve(&_Bep20.TransactOpts, spender, amount)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount)\n}",
"func (_MonsterOwnership *MonsterOwnershipTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MonsterOwnership.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_SweetToken *SweetTokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _SweetToken.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ConsortiumManagement *ConsortiumManagementTransactor) Approve(opts *bind.TransactOpts, id *big.Int) (*types.Transaction, error) {\n\treturn _ConsortiumManagement.contract.Transact(opts, \"approve\", id)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactorSession) Approve(name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Approve(&_UpkeepRegistrationRequests.TransactOpts, name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_ERC20Interface *ERC20InterfaceTransactorSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.Contract.Approve(&_ERC20Interface.TransactOpts, spender, tokens)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.Approve(&_FixedSupplyToken.TransactOpts, spender, tokens)\n}",
"func (_ERC20 *ERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)\n}",
"func (_ERC20Interface *ERC20InterfaceSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.Contract.Approve(&_ERC20Interface.TransactOpts, spender, tokens)\n}",
"func (_ERC721Contract *ERC721ContractTransactorSession) Approve(_to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.Contract.Approve(&_ERC721Contract.TransactOpts, _to, _tokenId)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.Contract.Approve(&_IERC721Metadata.TransactOpts, to, tokenId)\n}",
"func (_DemoERC20 *DemoERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (s *SmartContract) Approve(ctx contractapi.TransactionContextInterface, spender string, value int) error {\n\n\t// Get ID of submitting client identity\n\towner, err := ctx.GetClientIdentity().GetID()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get client id: %v\", err)\n\t}\n\n\t// Create allowanceKey\n\tallowanceKey, err := ctx.GetStub().CreateCompositeKey(allowancePrefix, []string{owner, spender})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to create the composite key for prefix %s: %v\", allowancePrefix, err)\n\t}\n\n\t// Update the state of the smart contract by adding the allowanceKey and value\n\terr = ctx.GetStub().PutState(allowanceKey, []byte(strconv.Itoa(value)))\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to update state of smart contract for key %s: %v\", allowanceKey, err)\n\t}\n\n\t// Emit the Approval event\n\tapprovalEvent := event{owner, spender, value}\n\tapprovalEventJSON, err := json.Marshal(approvalEvent)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to obtain JSON encoding: %v\", err)\n\t}\n\terr = ctx.GetStub().SetEvent(\"Approval\", approvalEventJSON)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to set event: %v\", err)\n\t}\n\n\tlog.Printf(\"client %s approved a withdrawal allowance of %d for spender %s\", owner, value, spender)\n\n\treturn nil\n}",
"func (e *EthHanlder) Approve(ticketId string) error {\n\tticketInfo, err := provider.QueryCrossTxInfoByCID(ticketId)\n\tif err != nil {\n\t\treturn err\n\t}\n\terr = provider.ValidateEnableBoundTransferToTx(ticketInfo.EthTx.FromTxID, nil)\n\tif err != nil {\n\t\tEthLogPrintf(\"validate failed: %v\", err)\n\t\treturn err\n\t}\n\trawTx := e.BuildTx(NotaryAddress, ticketInfo.EthTo, ticketInfo.EthAmount)\n\terr = e.SignAndSendTx(ticketId, rawTx)\n\t//todo:err\n\treturn err\n}",
"func (_Weth *WethSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_Wmatic *WmaticSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.Contract.Approve(&_Wmatic.TransactOpts, guy, wad)\n}",
"func (_ERC721 *ERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.Contract.Approve(&_ERC721.TransactOpts, to, tokenId)\n}",
"func (_ERC721 *ERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.Contract.Approve(&_ERC721.TransactOpts, to, tokenId)\n}",
"func (_DemoERC20 *DemoERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}"
] | [
"0.80444396",
"0.79301465",
"0.71629715",
"0.7122645",
"0.709061",
"0.70665973",
"0.70498824",
"0.7043376",
"0.70341176",
"0.7018123",
"0.700943",
"0.70067686",
"0.70026785",
"0.6993773",
"0.69925004",
"0.6966902",
"0.6965018",
"0.69646746",
"0.69646746",
"0.69646746",
"0.69534236",
"0.69534236",
"0.69534236",
"0.6945303",
"0.6945303",
"0.6943053",
"0.693938",
"0.693938",
"0.693938",
"0.69189054",
"0.6897737",
"0.68832135",
"0.68753934",
"0.6871362",
"0.6871362",
"0.6871362",
"0.68679655",
"0.6864659",
"0.6860393",
"0.68530273",
"0.6837614",
"0.68289757",
"0.68212706",
"0.68212706",
"0.68001693",
"0.68001693",
"0.679684",
"0.6789868",
"0.67832375",
"0.6778754",
"0.67692226",
"0.6764036",
"0.6748063",
"0.6737275",
"0.6727412",
"0.6697159",
"0.66947186",
"0.6684584",
"0.6684584",
"0.6676829",
"0.66708547",
"0.667045",
"0.66645926",
"0.66627175",
"0.6662528",
"0.6662464",
"0.6657833",
"0.6653441",
"0.6653441",
"0.6645699",
"0.6629287",
"0.6613086",
"0.6582646",
"0.6577898",
"0.65729713",
"0.6568049",
"0.6562647",
"0.6540967",
"0.6512207",
"0.6491803",
"0.6485102",
"0.64826167",
"0.6479316",
"0.6471973",
"0.6466979",
"0.6466979",
"0.64598995",
"0.64556843",
"0.6454072",
"0.64500105",
"0.6446616",
"0.6446616",
"0.64457506",
"0.6442424",
"0.6441904",
"0.6440421",
"0.64320046",
"0.64320046",
"0.6429449",
"0.6429449"
] | 0.82249033 | 0 |
ApproveOrder is a paid mutator transaction binding the contract method 0x79666868. Solidity: function approveOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, bool orderbookInclusionDesired) returns() | func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {
return _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_WELV9 *WELV9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _WELV9.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_Bindings *BindingsTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Bep20 *Bep20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC20Pausable *ERC20PausableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Pausable.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Wmatic *WmaticTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ERC20Capped *ERC20CappedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Capped.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC721Metadata *ERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Weth *WethTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC721Contract *ERC721ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_TTFT20 *TTFT20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _TTFT20.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ApprovedOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"approvedOrders\", arg0)\n\treturn *ret0, err\n}",
"func (_Contract *ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_ERC20Interface *ERC20InterfaceTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_Erc20Mock *Erc20MockTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721Enumerable *ERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_ERC20Mintable *ERC20MintableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Mintable.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Erc777 *Erc777Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc777.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_FCToken *FCTokenTransactor) Approve(opts *bind.TransactOpts, _delegatee common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _FCToken.contract.Transact(opts, \"approve\", _delegatee, _value)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Enumerable *IERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC20Detailed *ERC20DetailedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Detailed.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_CraftingI *CraftingITransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _CraftingI.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\r\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, value)\r\n}",
"func (_CrToken *CrTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _CrToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DemoERC20 *DemoERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_ERC721Token *ERC721TokenTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Token.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_Lelecoin *LelecoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Lelecoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Bindings *BindingsTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.Contract.Approve(&_Bindings.TransactOpts, spender, amount)\n}",
"func (_PausableToken *PausableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _PausableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Bindings *BindingsSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.Contract.Approve(&_Bindings.TransactOpts, spender, amount)\n}",
"func (_DelegatableDai *DelegatableDaiTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DelegatableDai.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_ZKOnacci *ZKOnacciTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ZKOnacci.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Erc20Mock *Erc20MockTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.Approve(&_Erc20Mock.TransactOpts, spender, value)\n}",
"func (_ElvTradable *ElvTradableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Erc20Mock *Erc20MockSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.Approve(&_Erc20Mock.TransactOpts, spender, value)\n}",
"func (_ElvToken *ElvTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ElvToken.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_BREMToken *BREMTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _BREMToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_BtlCoin *BtlCoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _BtlCoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_IUniswapV2Pair *IUniswapV2PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Pair.contract.Transact(opts, \"approve\", spender, value)\r\n}",
"func (_StakingToken *StakingTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _StakingToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Approve(opts *bind.TransactOpts, name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"approve\", name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_Univ2 *Univ2Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Univ2.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_StandardToken *StandardTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _StandardToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_StandardToken *StandardTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _StandardToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MainnetCryptoCardsContract.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.Approve(&_FixedSupplyToken.TransactOpts, spender, tokens)\n}",
"func (_MintableToken *MintableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _MintableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Wmatic *WmaticTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.Contract.Approve(&_Wmatic.TransactOpts, guy, wad)\n}",
"func (_Weth *WethTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_BurnableToken *BurnableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _BurnableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Bep20 *Bep20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.Contract.Approve(&_Bep20.TransactOpts, spender, amount)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount)\n}",
"func (_MonsterOwnership *MonsterOwnershipTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MonsterOwnership.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_SweetToken *SweetTokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _SweetToken.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ConsortiumManagement *ConsortiumManagementTransactor) Approve(opts *bind.TransactOpts, id *big.Int) (*types.Transaction, error) {\n\treturn _ConsortiumManagement.contract.Transact(opts, \"approve\", id)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactorSession) Approve(name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Approve(&_UpkeepRegistrationRequests.TransactOpts, name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_ERC20Interface *ERC20InterfaceTransactorSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.Contract.Approve(&_ERC20Interface.TransactOpts, spender, tokens)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.Approve(&_FixedSupplyToken.TransactOpts, spender, tokens)\n}",
"func (_ERC20 *ERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)\n}",
"func (_ERC20Interface *ERC20InterfaceSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.Contract.Approve(&_ERC20Interface.TransactOpts, spender, tokens)\n}",
"func (_ERC721Contract *ERC721ContractTransactorSession) Approve(_to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.Contract.Approve(&_ERC721Contract.TransactOpts, _to, _tokenId)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.Contract.Approve(&_IERC721Metadata.TransactOpts, to, tokenId)\n}",
"func (_DemoERC20 *DemoERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (s *SmartContract) Approve(ctx contractapi.TransactionContextInterface, spender string, value int) error {\n\n\t// Get ID of submitting client identity\n\towner, err := ctx.GetClientIdentity().GetID()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get client id: %v\", err)\n\t}\n\n\t// Create allowanceKey\n\tallowanceKey, err := ctx.GetStub().CreateCompositeKey(allowancePrefix, []string{owner, spender})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to create the composite key for prefix %s: %v\", allowancePrefix, err)\n\t}\n\n\t// Update the state of the smart contract by adding the allowanceKey and value\n\terr = ctx.GetStub().PutState(allowanceKey, []byte(strconv.Itoa(value)))\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to update state of smart contract for key %s: %v\", allowanceKey, err)\n\t}\n\n\t// Emit the Approval event\n\tapprovalEvent := event{owner, spender, value}\n\tapprovalEventJSON, err := json.Marshal(approvalEvent)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to obtain JSON encoding: %v\", err)\n\t}\n\terr = ctx.GetStub().SetEvent(\"Approval\", approvalEventJSON)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to set event: %v\", err)\n\t}\n\n\tlog.Printf(\"client %s approved a withdrawal allowance of %d for spender %s\", owner, value, spender)\n\n\treturn nil\n}",
"func (e *EthHanlder) Approve(ticketId string) error {\n\tticketInfo, err := provider.QueryCrossTxInfoByCID(ticketId)\n\tif err != nil {\n\t\treturn err\n\t}\n\terr = provider.ValidateEnableBoundTransferToTx(ticketInfo.EthTx.FromTxID, nil)\n\tif err != nil {\n\t\tEthLogPrintf(\"validate failed: %v\", err)\n\t\treturn err\n\t}\n\trawTx := e.BuildTx(NotaryAddress, ticketInfo.EthTo, ticketInfo.EthAmount)\n\terr = e.SignAndSendTx(ticketId, rawTx)\n\t//todo:err\n\treturn err\n}",
"func (_Weth *WethSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_Wmatic *WmaticSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.Contract.Approve(&_Wmatic.TransactOpts, guy, wad)\n}",
"func (_ERC721 *ERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.Contract.Approve(&_ERC721.TransactOpts, to, tokenId)\n}",
"func (_ERC721 *ERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.Contract.Approve(&_ERC721.TransactOpts, to, tokenId)\n}",
"func (_DemoERC20 *DemoERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}"
] | [
"0.8226018",
"0.80455774",
"0.7164143",
"0.71238995",
"0.709179",
"0.70677865",
"0.7051163",
"0.7044266",
"0.70351607",
"0.7018901",
"0.7010514",
"0.7007757",
"0.7003727",
"0.6994194",
"0.6993865",
"0.69681275",
"0.6966174",
"0.6965907",
"0.6965907",
"0.6965907",
"0.69543487",
"0.69543487",
"0.69543487",
"0.6946217",
"0.6946217",
"0.6944067",
"0.6940559",
"0.6940559",
"0.6940559",
"0.6919482",
"0.68987525",
"0.6883806",
"0.68768156",
"0.68724036",
"0.68724036",
"0.68724036",
"0.686913",
"0.6865366",
"0.68616503",
"0.685426",
"0.6838806",
"0.6830199",
"0.68220747",
"0.68220747",
"0.6801397",
"0.6801397",
"0.67978305",
"0.6790432",
"0.67841554",
"0.6780173",
"0.677005",
"0.6765235",
"0.6749261",
"0.6738114",
"0.6728489",
"0.66979",
"0.6696146",
"0.6685945",
"0.6685945",
"0.66779685",
"0.66711843",
"0.66708463",
"0.6665779",
"0.6664074",
"0.6663615",
"0.6663577",
"0.6658856",
"0.66548496",
"0.66548496",
"0.6646792",
"0.6629485",
"0.6614197",
"0.65831316",
"0.6578542",
"0.6573907",
"0.65688413",
"0.6563471",
"0.6541976",
"0.6513159",
"0.64929044",
"0.64861137",
"0.6483439",
"0.6479411",
"0.6472729",
"0.6467798",
"0.6467798",
"0.64606476",
"0.64562005",
"0.6454779",
"0.6450392",
"0.64475775",
"0.64475775",
"0.6447091",
"0.64428735",
"0.6442362",
"0.6440712",
"0.6432523",
"0.6432523",
"0.643038",
"0.643038"
] | 0.7931225 | 2 |
ApproveOrder is a paid mutator transaction binding the contract method 0x79666868. Solidity: function approveOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, bool orderbookInclusionDesired) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {
return _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_WELV9 *WELV9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _WELV9.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_Bindings *BindingsTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Bep20 *Bep20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC20Pausable *ERC20PausableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Pausable.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Wmatic *WmaticTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ERC20Capped *ERC20CappedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Capped.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC721Metadata *ERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Weth *WethTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ERC721Contract *ERC721ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_TTFT20 *TTFT20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _TTFT20.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ApprovedOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"approvedOrders\", arg0)\n\treturn *ret0, err\n}",
"func (_Contract *ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_ERC20Interface *ERC20InterfaceTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Erc20Mock *Erc20MockTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721Enumerable *ERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_ERC20Mintable *ERC20MintableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Mintable.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Erc777 *Erc777Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc777.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_FCToken *FCTokenTransactor) Approve(opts *bind.TransactOpts, _delegatee common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _FCToken.contract.Transact(opts, \"approve\", _delegatee, _value)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Enumerable *IERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC20Detailed *ERC20DetailedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Detailed.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_CraftingI *CraftingITransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _CraftingI.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\r\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, value)\r\n}",
"func (_CrToken *CrTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _CrToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _IERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DemoERC20 *DemoERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_ERC721Token *ERC721TokenTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Token.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_Lelecoin *LelecoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Lelecoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Bindings *BindingsTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.Contract.Approve(&_Bindings.TransactOpts, spender, amount)\n}",
"func (_PausableToken *PausableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _PausableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Bindings *BindingsSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.Contract.Approve(&_Bindings.TransactOpts, spender, amount)\n}",
"func (_DelegatableDai *DelegatableDaiTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DelegatableDai.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_ZKOnacci *ZKOnacciTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ZKOnacci.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Erc20Mock *Erc20MockTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.Approve(&_Erc20Mock.TransactOpts, spender, value)\n}",
"func (_ElvTradable *ElvTradableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Erc20Mock *Erc20MockSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.Approve(&_Erc20Mock.TransactOpts, spender, value)\n}",
"func (_ElvToken *ElvTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ElvToken.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_BREMToken *BREMTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _BREMToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_IUniswapV2Pair *IUniswapV2PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Pair.contract.Transact(opts, \"approve\", spender, value)\r\n}",
"func (_BtlCoin *BtlCoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _BtlCoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_StakingToken *StakingTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _StakingToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Approve(opts *bind.TransactOpts, name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"approve\", name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Univ2 *Univ2Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Univ2.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_StandardToken *StandardTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _StandardToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_StandardToken *StandardTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _StandardToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MainnetCryptoCardsContract.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.Approve(&_FixedSupplyToken.TransactOpts, spender, tokens)\n}",
"func (_MintableToken *MintableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _MintableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Wmatic *WmaticTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.Contract.Approve(&_Wmatic.TransactOpts, guy, wad)\n}",
"func (_Weth *WethTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_BurnableToken *BurnableTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _BurnableToken.contract.Transact(opts, \"approve\", _spender, _value)\n}",
"func (_Bep20 *Bep20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.Contract.Approve(&_Bep20.TransactOpts, spender, amount)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount)\n}",
"func (_MonsterOwnership *MonsterOwnershipTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MonsterOwnership.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_SweetToken *SweetTokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _SweetToken.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ConsortiumManagement *ConsortiumManagementTransactor) Approve(opts *bind.TransactOpts, id *big.Int) (*types.Transaction, error) {\n\treturn _ConsortiumManagement.contract.Transact(opts, \"approve\", id)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactorSession) Approve(name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Approve(&_UpkeepRegistrationRequests.TransactOpts, name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_ERC20Interface *ERC20InterfaceTransactorSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.Contract.Approve(&_ERC20Interface.TransactOpts, spender, tokens)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.Approve(&_FixedSupplyToken.TransactOpts, spender, tokens)\n}",
"func (_ERC20 *ERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)\n}",
"func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)\n}",
"func (_ERC20Interface *ERC20InterfaceSession) Approve(spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Interface.Contract.Approve(&_ERC20Interface.TransactOpts, spender, tokens)\n}",
"func (_ERC721Contract *ERC721ContractTransactorSession) Approve(_to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.Contract.Approve(&_ERC721Contract.TransactOpts, _to, _tokenId)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.Contract.Approve(&_IERC721Metadata.TransactOpts, to, tokenId)\n}",
"func (_DemoERC20 *DemoERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (_DemoERC20 *DemoERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}",
"func (s *SmartContract) Approve(ctx contractapi.TransactionContextInterface, spender string, value int) error {\n\n\t// Get ID of submitting client identity\n\towner, err := ctx.GetClientIdentity().GetID()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get client id: %v\", err)\n\t}\n\n\t// Create allowanceKey\n\tallowanceKey, err := ctx.GetStub().CreateCompositeKey(allowancePrefix, []string{owner, spender})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to create the composite key for prefix %s: %v\", allowancePrefix, err)\n\t}\n\n\t// Update the state of the smart contract by adding the allowanceKey and value\n\terr = ctx.GetStub().PutState(allowanceKey, []byte(strconv.Itoa(value)))\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to update state of smart contract for key %s: %v\", allowanceKey, err)\n\t}\n\n\t// Emit the Approval event\n\tapprovalEvent := event{owner, spender, value}\n\tapprovalEventJSON, err := json.Marshal(approvalEvent)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to obtain JSON encoding: %v\", err)\n\t}\n\terr = ctx.GetStub().SetEvent(\"Approval\", approvalEventJSON)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to set event: %v\", err)\n\t}\n\n\tlog.Printf(\"client %s approved a withdrawal allowance of %d for spender %s\", owner, value, spender)\n\n\treturn nil\n}",
"func (_Weth *WethSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (e *EthHanlder) Approve(ticketId string) error {\n\tticketInfo, err := provider.QueryCrossTxInfoByCID(ticketId)\n\tif err != nil {\n\t\treturn err\n\t}\n\terr = provider.ValidateEnableBoundTransferToTx(ticketInfo.EthTx.FromTxID, nil)\n\tif err != nil {\n\t\tEthLogPrintf(\"validate failed: %v\", err)\n\t\treturn err\n\t}\n\trawTx := e.BuildTx(NotaryAddress, ticketInfo.EthTo, ticketInfo.EthAmount)\n\terr = e.SignAndSendTx(ticketId, rawTx)\n\t//todo:err\n\treturn err\n}",
"func (_Wmatic *WmaticSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.Contract.Approve(&_Wmatic.TransactOpts, guy, wad)\n}",
"func (_ERC721 *ERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.Contract.Approve(&_ERC721.TransactOpts, to, tokenId)\n}",
"func (_ERC721 *ERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.Contract.Approve(&_ERC721.TransactOpts, to, tokenId)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsSession) Approve(name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Approve(&_UpkeepRegistrationRequests.TransactOpts, name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_DemoERC20 *DemoERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _DemoERC20.Contract.Approve(&_DemoERC20.TransactOpts, _spender, _value)\n}"
] | [
"0.82242703",
"0.7929377",
"0.7162407",
"0.7121824",
"0.70901215",
"0.70661235",
"0.7049414",
"0.7042769",
"0.70336854",
"0.7017027",
"0.70087564",
"0.70056456",
"0.7002256",
"0.6993427",
"0.699131",
"0.696682",
"0.6964406",
"0.6964406",
"0.6964406",
"0.69643295",
"0.6952325",
"0.6952325",
"0.6952325",
"0.6944298",
"0.6944298",
"0.6941973",
"0.6938804",
"0.6938804",
"0.6938804",
"0.69188464",
"0.68971664",
"0.68821",
"0.68746024",
"0.6870376",
"0.6870376",
"0.6870376",
"0.68669677",
"0.6863979",
"0.6859455",
"0.6852755",
"0.68366975",
"0.6828592",
"0.6820796",
"0.6820796",
"0.6799889",
"0.6799889",
"0.67957073",
"0.6788695",
"0.6782149",
"0.6777931",
"0.67681193",
"0.6763225",
"0.67469937",
"0.67362136",
"0.67259264",
"0.669609",
"0.6693751",
"0.66835994",
"0.66835994",
"0.66761786",
"0.66713697",
"0.6669565",
"0.66638726",
"0.66628563",
"0.66620016",
"0.6661742",
"0.66574",
"0.66526043",
"0.66526043",
"0.66452664",
"0.6629255",
"0.66119796",
"0.65818936",
"0.65768903",
"0.6571801",
"0.65672904",
"0.65618336",
"0.6540141",
"0.6511282",
"0.6490258",
"0.64855844",
"0.64822435",
"0.6479236",
"0.6471087",
"0.6466091",
"0.6466091",
"0.6459485",
"0.6454307",
"0.6452312",
"0.64485556",
"0.6446112",
"0.6446112",
"0.64447194",
"0.644081",
"0.64401335",
"0.6439756",
"0.6430577",
"0.6430577",
"0.6428926",
"0.6428899"
] | 0.8043753 | 1 |
AtomicMatch is a paid mutator transaction binding the contract method 0xab834bab. Solidity: function atomicMatch_(address[14] addrs, uint256[18] uints, uint8[8] feeMethodsSidesKindsHowToCalls, bytes calldataBuy, bytes calldataSell, bytes replacementPatternBuy, bytes replacementPatternSell, bytes staticExtradataBuy, bytes staticExtradataSell, uint8[2] vs, bytes32[5] rssMetadata) returns() | func (_WyvernExchange *WyvernExchangeTransactor) AtomicMatch(opts *bind.TransactOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "atomicMatch_", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WyvernExchange *WyvernExchangeSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (kc *Keychain) Match(owners *secp256k1fx.OutputOwners, time uint64) bool {\n\tif time < owners.Locktime || owners.Threshold != 1 || len(owners.Addrs) != 1 || !kc.Addrs.Contains(owners.Addrs[0]) {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) CalculateMatchPrice(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\treturn _WyvernExchange.Contract.CalculateMatchPrice(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func NewMatcher(\n\tlogger *zap.Logger,\n\tbc *bclient.BClient,\n\tabistr string,\n\tmethods,\n\tcontracts []string,\n) (*Matcher, error) {\n\tparsedABI, err := abi.JSON(strings.NewReader(abistr))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar (\n\t\twantMethods = make(map[string]bool)\n\t\twantContracts = make(map[common.Address]bool)\n\t)\n\tfor _, method := range methods {\n\t\twantMethods[method] = true\n\t}\n\tfor _, contract := range contracts {\n\t\twantContracts[common.HexToAddress(contract)] = true\n\t}\n\treturn &Matcher{\n\t\tl: logger.Named(\"txmatch\"),\n\t\tabi: parsedABI,\n\t\tbc: bc,\n\t\twantMethods: wantMethods,\n\t\twantContracts: wantContracts,\n\t}, nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) CalculateMatchPrice(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\treturn _WyvernExchange.Contract.CalculateMatchPrice(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (match RxMatch) Match(pkt *pktmbuf.Packet) bool {\n\treturn bool(C.EthRxMatch_Match((*C.EthRxMatch)(&match), (*C.struct_rte_mbuf)(pkt.Ptr())))\n}",
"func (a *CompositeMatcher) Match(info iresolver.RPCInfo) bool {\n\tif a.pm != nil && !a.pm.match(info.Method) {\n\t\treturn false\n\t}\n\n\t// Call headerMatchers even if md is nil, because routes may match\n\t// non-presence of some headers.\n\tvar md metadata.MD\n\tif info.Context != nil {\n\t\tmd, _ = metadata.FromOutgoingContext(info.Context)\n\t\tif extraMD, ok := grpcutil.ExtraMetadata(info.Context); ok {\n\t\t\tmd = metadata.Join(md, extraMD)\n\t\t\t// Remove all binary headers. They are hard to match with. May need\n\t\t\t// to add back if asked by users.\n\t\t\tfor k := range md {\n\t\t\t\tif strings.HasSuffix(k, \"-bin\") {\n\t\t\t\t\tdelete(md, k)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor _, m := range a.hms {\n\t\tif !m.Match(md) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tif a.fm != nil && !a.fm.match() {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (VirtualChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*VirtualChannelProposalAccMsg)\n\treturn ok\n}",
"func (_WyvernExchange *WyvernExchangeCaller) CalculateMatchPrice(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"calculateMatchPrice_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func make_agreement(ag *contract_api.SolidityContract, agID []byte, sig_hash string, sig string, counterparty string, shouldWork bool) {\n tx_delay_toleration := 120\n err := error(nil)\n\n log.Printf(\"Make an agreement with ID:%v\\n\", agID)\n p := make([]interface{},0,10)\n p = append(p, agID)\n p = append(p, sig_hash[2:])\n p = append(p, sig[2:])\n p = append(p, counterparty)\n if _, err = ag.Invoke_method(\"create_agreement\", p); err != nil {\n log.Printf(\"...terminating, could not invoke create_agreement: %v\\n\", err)\n os.Exit(1)\n }\n log.Printf(\"Create agreement %v invoked.\\n\", agID)\n\n var res interface{}\n p = make([]interface{},0,10)\n p = append(p, counterparty)\n p = append(p, agID)\n byte_hash, _ := hex.DecodeString(sig_hash[2:])\n log.Printf(\"Binary Hash is: %v\\n\", byte_hash)\n start_timer := time.Now()\n for {\n if shouldWork {\n fmt.Printf(\"There should be a recorded contract hash, but it might be in a block we can't read yet.\\n\")\n } else {\n fmt.Printf(\"There should NOT be a recorded contract hash.\\n\")\n }\n if res, err = ag.Invoke_method(\"get_contract_hash\", p); err == nil {\n fmt.Printf(\"Received contract hash:%v.\\n\",res)\n if bytes.Compare([]byte(res.(string)), byte_hash) != 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n if shouldWork {\n fmt.Printf(\"Timeout waiting for the Update.\\n\")\n os.Exit(1)\n } else {\n fmt.Printf(\"Timeout waiting for the Update. This is expected.\\n\")\n break\n }\n }\n } else {\n if shouldWork {\n log.Printf(\"Created agreement %v.\\n\", agID)\n break\n } else {\n fmt.Printf(\"Received contract hash. This is NOT expected: %v\\n\", res.(string))\n os.Exit(2)\n }\n }\n } else {\n fmt.Printf(\"Error on get_contract_hash: %v\\n\",err)\n os.Exit(1)\n }\n }\n}",
"func (s *PublicMatchService) Matches(params *PublicMatchParam) ([]PublicMatch, *http.Response, error) {\n\tpublicmatches := new([]PublicMatch)\n\tapiError := new(APIError)\n\tresp, err := s.sling.New().QueryStruct(params).Receive(publicmatches, apiError)\n\treturn *publicmatches, resp, relevantError(err, *apiError)\n}",
"func (qi *QueryItem) Matches(a Address, ts []Tag) bool {\n\treturn (qi.Address != 0 && qi.Address == a) || (qi.Tag != \"\" && containsTag(ts, qi.Tag))\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) ApproveAndCall(opts *bind.TransactOpts, spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approveAndCall\", spender, tokens, data)\n}",
"func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n \n fn, args := stub.GetFunctionAndParameters()\n\n if fn == \"AddComponent\" {\n return s.AddComponent(stub, args)\n } else if fn == \"InitLedger\" {\n return s.InitLedger(stub)\n } else if fn == \"QueryCar\" {\n return s.QueryCar(stub, args)\n } else if fn == \"QueryComponent\" {\n return s.QueryComponent(stub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name.\")\n \n}",
"func TestMatchAccountless(t *testing.T) {\n\tConvey(\"Given a state with an idle worker\", t, func() {\n\t\tctx := context.Background()\n\t\ttm := time.Unix(0, 0)\n\t\ts := scheduler.New(tm)\n\t\twid := scheduler.WorkerID(\"worker\")\n\t\ts.MarkIdle(ctx, wid, nil, tm, scheduler.NullEventSink)\n\n\t\tConvey(\"and a request with no account\", func() {\n\t\t\trid := scheduler.RequestID(\"req\")\n\t\t\ts.AddRequest(ctx, scheduler.NewTaskRequest(rid, \"\", nil, nil, tm), tm, nil, scheduler.NullEventSink)\n\t\t\tConvey(\"when scheduling is run\", func() {\n\t\t\t\tmuts := s.RunOnce(ctx, scheduler.NullEventSink)\n\t\t\t\tConvey(\"then the request is matched at lowest priority.\", func() {\n\t\t\t\t\tSo(muts, ShouldHaveLength, 1)\n\t\t\t\t\tSo(muts[0].Priority, ShouldEqual, scheduler.FreeBucket)\n\t\t\t\t\tSo(muts[0].RequestID, ShouldEqual, rid)\n\t\t\t\t\tSo(muts[0].WorkerID, ShouldEqual, wid)\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t})\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrderCalldataCanMatch(buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrderCalldataCanMatch(&_WyvernExchange.CallOpts, buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrderCalldataCanMatch(buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrderCalldataCanMatch(&_WyvernExchange.CallOpts, buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n}",
"func (IsAccountActor) IsMatch(ctx runtime.PatternContext) bool {\n\treturn types.AccountActorCodeCid.Equals(ctx.Code())\n}",
"func (m *fetchMetadataReqMatcher) matchesV1(x interface{}) bool {\n\treq, ok := x.(*rpc.FetchBlocksMetadataRawRequest)\n\tif !ok {\n\t\treturn false\n\t}\n\n\tif m.shard != req.Shard {\n\t\treturn false\n\t}\n\n\tif m.limit != req.Limit {\n\t\treturn false\n\t}\n\n\tif m.pageToken == nil {\n\t\tif req.PageToken != nil {\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\tif req.PageToken == nil {\n\t\t\treturn false\n\t\t}\n\t\tif *req.PageToken != *m.pageToken {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tif m.includeSizes == nil {\n\t\tif req.IncludeSizes != nil {\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\tif req.IncludeSizes == nil {\n\t\t\treturn false\n\t\t}\n\t\tif *req.IncludeSizes != *m.includeSizes {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func (s *Plugin) Match(ctx context.Context, request *interact.Request, condition *v1alpha1.MockAPI_Condition) (match bool, err error) {\n\tsimple := condition.GetSimple()\n\tif simple == nil {\n\t\treturn false, nil\n\t}\n\tc := core.NewContext(request)\n\tfor _, item := range simple.Items {\n\t\toperandX := core.Render(c, item.OperandX)\n\t\toperandY := core.Render(c, item.OperandY)\n\t\tmatched, err := core.Match(operandX, item.Operator, operandY)\n\t\tif err != nil {\n\t\t\treturn false, err\n\t\t}\n\t\tif item.Opposite {\n\t\t\tmatched = !matched\n\t\t}\n\t\tif matched {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t} else {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn false, nil\n\t\t}\n\t}\n\treturn true, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) ApproveAndCall(spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.ApproveAndCall(&_FixedSupplyToken.TransactOpts, spender, tokens, data)\n}",
"func atomicSwapContract(pkhMe, pkhThem *[ripemd160.Size]byte, locktime int64, secretHash []byte) ([]byte, error) {\n\tbuilder := txscript.NewScriptBuilder()\n\n\tbuilder.AddOp(txscript.OP_IF) // if top of stack value is not False, execute. The top stack value is removed.\n\t{\n\t\t// require initiator's secret to be a known length that the redeeming party can audit.\n\t\t// this is used to prevent fraud attacks between 2 currencies that have different maximum data sizes\n\t\tbuilder.AddOp(txscript.OP_SIZE) // pushes the string length of the top element of the stack (without popping it)\n\t\tbuilder.AddInt64(secretSize) // pushes initiator secret length\n\t\tbuilder.AddOp(txscript.OP_EQUALVERIFY) // if inputs are equal, mark tx as valid\n\n\t\t// require initiator's secret to be known to redeem the output\n\t\tbuilder.AddOp(txscript.OP_SHA256) // pushes the length of a SHA25 size\n\t\tbuilder.AddData(secretHash) // push the data to the end of the script\n\t\tbuilder.AddOp(txscript.OP_EQUALVERIFY) // if inputs are equal, mark tx as valid\n\n\t\t// verify their signature is used to redeem the ouput\n\t\t// normally it ends with OP_EQUALVERIFY OP_CHECKSIG but\n\t\t// this has been moved outside of the branch to save a couple bytes\n\t\tbuilder.AddOp(txscript.OP_DUP) // duplicates the stack of the top item\n\t\tbuilder.AddOp(txscript.OP_HASH160) // input has been hashed with SHA-256 and then with RIPEMD160 after\n\t\tbuilder.AddData(pkhThem[:]) // push the data to the end of the script\n\t}\n\n\tbuilder.AddOp(txscript.OP_ELSE) // refund path\n\t{\n\t\t// verify the locktime & drop if off the stack\n\t\tbuilder.AddInt64(locktime) // pushes locktime\n\t\tbuilder.AddOp(txscript.OP_CHECKLOCKTIMEVERIFY) // verify locktime\n\t\tbuilder.AddOp(txscript.OP_DROP) // remove the top stack item (locktime)\n\n\t\t// verify our signature is being used to redeem the output\n\t\t// normally it ends with OP_EQUALVERIFY OP_CHECKSIG but\n\t\t// this has been moved outside of the branch to save a couple bytes\n\t\tbuilder.AddOp(txscript.OP_DUP) // duplicates the stack of the top item\n\t\tbuilder.AddOp(txscript.OP_HASH160) // input has been hashed with SHA-256 and then with RIPEMD160 after\n\t\tbuilder.AddData(pkhMe[:]) // push the data to the end of the script\n\n\t}\n\tbuilder.AddOp(txscript.OP_ENDIF) // all blocks must end, or the transaction is invalid\n\n\t// returns 1 if the inputs are exactly equal, 0 otherwise.\n\t// mark transaction as invalid if top of stack is not true. The top stack value is removed.\n\tbuilder.AddOp(txscript.OP_EQUALVERIFY)\n\n\t// The entire transaction's outputs, inputs, and script are hashed.\n\t// The signature used by OP_CHECKSIG must be a valid signature for this hash\n\t// and public key. If it is, 1 is returned, 0 otherwise.\n\tbuilder.AddOp(txscript.OP_CHECKSIG)\n\treturn builder.Script()\n}",
"func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approveAndCall\", _spender, _amount, _extraData)\n}",
"func (t Term) Match(args ...interface{}) Term {\n\treturn constructMethodTerm(t, \"Match\", p.Term_MATCH, args, map[string]interface{}{})\n}",
"func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approveAndCall\", _spender, _value, _extraData)\n}",
"func (LedgerChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*LedgerChannelProposalAccMsg)\n\treturn ok\n}",
"func containCall(name string, args ...interface{}) types.GomegaMatcher {\n\treturn &containsCallMatcher{mock.Call{\n\t\tMethod: name,\n\t\tArguments: args,\n\t}}\n}",
"func (t *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n // Extract the function and args from the transaction proposal\n fn, args := stub.GetFunctionAndParameters()\n\n var result string\n var err error\n if fn == \"set\" {\n result, err = set(stub, args)\n\n } else if fn == \"get\"{ // assume 'get' even if fn is nil\n result, err = get(stub, args)\n } else if fn == \"getHistory\"{\n \treturn getHistory(stub, args)\n } else if fn == \"getall\"{\n \treturn getall(stub)\n }\n if err != nil {\n return shim.Error(err.Error())\n }\n return shim.Success([]byte(result))\n\n}",
"func (r *Attestor) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalAttestor(b, c, r)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (m *matcher) Matches(x interface{}) bool {\n\td1 := m.StoredData\n\td2, ok := x.(*repo.StoredData)\n\tif !ok {\n\t\treturn false\n\t}\n\n\treturn d1.Data == d2.Data && d1.ID == d2.ID\n}",
"func (m AllKeysMatcher) Match(key string, attributes map[string]interface{}, bucketingKey *string) bool {\n\treturn true\n}",
"func TestHandler_FetchAtxReferences(t *testing.T) {\n\tgoldenATXID := types.ATXID{2, 3, 4}\n\n\tsig, err := signing.NewEdSigner()\n\trequire.NoError(t, err)\n\n\tposATX := types.ATXID{1, 2, 3}\n\tprevATX := types.ATXID{4, 5, 6}\n\tcommitATX := types.ATXID{7, 8, 9}\n\n\tt.Run(\"valid prev and pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), gomock.InAnyOrder([]types.ATXID{atx.PositioningATX, atx.PrevATXID})).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"valid prev ATX and golden pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, goldenATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"valid prev ATX and empty pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, types.EmptyATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, valid pos ATX and valid commitment ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\t\tatx.CommitmentATX = &commitATX\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), gomock.InAnyOrder([]types.ATXID{atx.PositioningATX, *atx.CommitmentATX})).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, valid pos ATX and golden commitment ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\t\tatx.CommitmentATX = &goldenATXID\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PositioningATX}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, empty pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, types.EmptyATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"same prev and pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, prevATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n}",
"func TestPackShareSwapSharesDoNotMatch(t *testing.T) {\n\n\townerOneAccount := makeAccount(ownerOne.publicKey)\n\townerTwoAccount := makeAccount(ownerTwo.publicKey)\n\n\tvar shareIdOne merkle.Digest\n\terr := merkleDigestFromLE(\"630c041cd1f586bcb9097e816189185c1e0379f67bbfc2f0626724f542047873\", &shareIdOne)\n\tif nil != err {\n\t\tt.Fatalf(\"hex to shareIdOne error: %s\", err)\n\t}\n\n\tvar shareIdTwo merkle.Digest\n\terr = merkleDigestFromLE(\"630c041cd1f586bcb9097e816189185c1e0379f67bbfc2f0626724f542047873\", &shareIdTwo)\n\tif nil != err {\n\t\tt.Fatalf(\"hex to shareIdTwo error: %s\", err)\n\t}\n\n\tr := transactionrecord.ShareSwap{\n\t\tShareIdOne: shareIdOne,\n\t\tQuantityOne: 129,\n\t\tOwnerOne: ownerOneAccount,\n\t\tShareIdTwo: shareIdTwo,\n\t\tQuantityTwo: 215,\n\t\tOwnerTwo: ownerTwoAccount,\n\t}\n\n\texpected := []byte{\n\t\t0x0a, 0x20, 0x63, 0x0c, 0x04, 0x1c, 0xd1, 0xf5,\n\t\t0x86, 0xbc, 0xb9, 0x09, 0x7e, 0x81, 0x61, 0x89,\n\t\t0x18, 0x5c, 0x1e, 0x03, 0x79, 0xf6, 0x7b, 0xbf,\n\t\t0xc2, 0xf0, 0x62, 0x67, 0x24, 0xf5, 0x42, 0x04,\n\t\t0x78, 0x73, 0x81, 0x01, 0x21, 0x13, 0x27, 0x64,\n\t\t0x0e, 0x4a, 0xab, 0x92, 0xd8, 0x7b, 0x4a, 0x6a,\n\t\t0x2f, 0x30, 0xb8, 0x81, 0xf4, 0x49, 0x29, 0xf8,\n\t\t0x66, 0x04, 0x3a, 0x84, 0x1c, 0x38, 0x14, 0xb1,\n\t\t0x66, 0xb8, 0x89, 0x44, 0xb0, 0x92, 0x20, 0x63,\n\t\t0x0c, 0x04, 0x1c, 0xd1, 0xf5, 0x86, 0xbc, 0xb9,\n\t\t0x09, 0x7e, 0x81, 0x61, 0x89, 0x18, 0x5c, 0x1e,\n\t\t0x03, 0x79, 0xf6, 0x7b, 0xbf, 0xc2, 0xf0, 0x62,\n\t\t0x67, 0x24, 0xf5, 0x42, 0x04, 0x78, 0x73, 0xd7,\n\t\t0x01, 0x21, 0x13, 0xa1, 0x36, 0x32, 0xd5, 0x42,\n\t\t0x5a, 0xed, 0x3a, 0x6b, 0x62, 0xe2, 0xbb, 0x6d,\n\t\t0xe4, 0xc9, 0x59, 0x48, 0x41, 0xc1, 0x5b, 0x70,\n\t\t0x15, 0x69, 0xec, 0x99, 0x99, 0xdc, 0x20, 0x1c,\n\t\t0x35, 0xf7, 0xb3, 0x00,\n\t}\n\n\t// manually sign the record and attach signature to \"expected\"\n\tsignature := ed25519.Sign(ownerOne.privateKey, expected)\n\tr.Signature = signature\n\tl := util.ToVarint64(uint64(len(signature)))\n\texpected = append(expected, l...)\n\texpected = append(expected, signature...)\n\n\t// manually countersign the record and attach countersignature to \"expected\"\n\tsignature = ed25519.Sign(ownerTwo.privateKey, expected)\n\tr.Countersignature = signature\n\n\t// test the packer\n\t_, err = r.Pack(ownerOneAccount)\n\tif fault.ShareIdsCannotBeIdentical != err {\n\t\tt.Fatalf(\"unexpected pack error: %s\", err)\n\t}\n}",
"func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _amount, _extraData)\n}",
"func (r *Attestor) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalAttestor(b, c)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (IsAccountActor) IsMatch(ctx runtime.PatternContext) bool {\n\treturn builtin.IsAccountActor(ctx.CallerCode())\n}",
"func (state *ComputePeerState) Eqz (action *sproto.Action) (*sproto.Response) {\n //fmt.Println(\"Comparing values\")\n result := *action.Result\n share0 := *action.Share0\n share0val, hasShare0Val := state.SharesGet(share0)\n rcode := *action.RequestCode\n if !hasShare0Val {\n return state.failResponse (action.GetRequestCode())\n }\n res := state.neqz(share0val, rcode)\n one := int64(1) \n res = core.Sub(one, res)\n state.SharesSet(result, res)\n //fmt.Printf(\"Done testing value for zero\\n\")\n return state.okResponse (action.GetRequestCode())\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryPatent\" {\n\t\treturn s.queryPatent(APIstub, args)\n\t} else if function == \"initLedger\" {\n\t\treturn s.initLedger(APIstub)\n\t} else if function == \"recordPatent\" {\n\t\treturn s.recordPatent(APIstub, args)\n\t} else if function == \"queryAllPatents\" {\n\t\treturn s.queryAllPatents(APIstub)\n\t} else if function == \"validatePatent\" {\n\t\treturn s.validatePatent(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (o *MakeStdUpdateArgsObjMatcher) Matches(arg interface{}) bool {\n\tassert := assert.New(o.t)\n\tswitch x := arg.(type) {\n\tcase *int32: // version\n\t\treturn assert.Equal(o.ver, *x, \"MSUA version match\")\n\tcase string: // id\n\t\treturn assert.Equal(o.id, x, \"MSUA id match\")\n\tcase [centrald.NumActionTypes][]string:\n\t\treturn assert.Equal(o.fields, x, \"MSUA fields match\")\n\tdefault: // object - only match type\n\t\treturn assert.IsType(o.obj, x, \"MSUA object type match\")\n\t}\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) ApproveAndCall(spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.ApproveAndCall(&_FixedSupplyToken.TransactOpts, spender, tokens, data)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n fmt.Println(\"Calling Invoke method.\")\n\n // Retrieve the requested Smart Contract function and arguments\n function, args := APIstub.GetFunctionAndParameters()\n fmt.Println(\"Function name: \" + function)\n\n // Route to the appropriate handler function to interact with the ledger appropriately\n if function == \"queryAsset\" {\n return s.queryAsset(APIstub, args)\n } else if function == \"makeAsset\" {\n return s.makeAsset(APIstub, args)\n } else if function == \"changeAsset\" {\n return s.changeAsset(APIstub, args)\n } else if function == \"deleteAsset\" {\n return s.deleteAsset(APIstub, args)\n } else if function == \"listHistory\" {\n return s.listHistory(APIstub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _value, _extraData)\n}",
"func MatchOrdersInternally(buy *Order, sell *Order) *Trade {\n\tbuyState := buy.GetState()\n\tsellState := sell.GetState()\n\n\t// Sanity checks\n\tif buyState.State == OrderStateCreated {\n\t\tpanic(\"buy order incorect state: created\")\n\t} else if buyState.State == OrderStateFilled {\n\t\tpanic(\"buy order incorect state: filled\")\n\t} else if buyState.State == OrderStateCancelled {\n\t\tpanic(\"buy order incorect state: cancelled\")\n\t} else if sellState.State == OrderStateCreated {\n\t\tpanic(\"sell order incorect state: created\")\n\t} else if sellState.State == OrderStateFilled {\n\t\tpanic(\"sell order incorect state: filled\")\n\t} else if sellState.State == OrderStateCancelled {\n\t\tpanic(\"sell order incorect state: cancelled\")\n\t}\n\tif buy.Ticker != sell.Ticker {\n\t\tpanic(\"cant match orders with different tickers\")\n\t}\n\n\t// Main procedure\n\tvar extTime time.Time\n\tvar buyInit bool\n\tvar matchVolume float64\n\tvar price float64\n\n\t// Get match time\n\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\textTime = buyState.TimeExt\n\t} else {\n\t\textTime = sellState.TimeExt\n\t}\n\n\t// Get init order\n\tif buyState.TimeExt != sellState.TimeExt {\n\t\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t} else {\n\t\tif buyState.Time.After(sellState.Time) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t}\n\n\t// Price\n\tif buyInit {\n\t\tprice = sell.Price\n\t} else {\n\t\tprice = buy.Price\n\t}\n\n\t// Volume matched\n\tif sellState.Balance > buyState.Balance {\n\t\tmatchVolume = buyState.Balance\n\t} else {\n\t\tmatchVolume = sellState.Balance\n\t}\n\n\ttrade := &Trade{\n\t\tTicker: buy.Ticker,\n\t\tTime: time.Now(),\n\t\tTimeExt: extTime,\n\t\tBuyInitiated: buyInit,\n\t\tVolume: matchVolume,\n\t\tPrice: price,\n\t}\n\tsell.RecordTrade(trade)\n\tbuy.RecordTrade(trade)\n\n\treturn trade\n}",
"func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\r\n\tfunction, args := stub.GetFunctionAndParameters()\r\n\r\n\t// Handle invoke functions\r\n\tif function == \"init\" { // initialise the chaincode state\r\n\t\treturn s.Init(stub)\r\n\t} else if function == \"recordAttendance\" { // create an attendance record\r\n\t\treturn recordAttendance(stub, args)\r\n\t} else if function == \"verifyAttendance\" { // verify if attendance exists\r\n\t\treturn verifyAttendance(stub, args)\r\n\t} else if function == \"readAttendance\" { // get a particular attendance record by its transaction key\r\n\t\treturn readAttendance(stub, args)\r\n\t}\r\n\r\n\treturn shim.Error(\"Invalid Smart Contract function name\")\r\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n //args := APIstub.GetFunctionAndParameters()\n args := APIstub.GetStringArgs()\n function := args[0]\n if function == \"addRecord\" {\n return s.addRecord(APIstub, args)\n } else if function == \"getRecord\" {\n return s.getRecord(APIstub, args)\n } else if function == \"encRecord\" {\n return s.encRecord(APIstub, args)\n } else if function == \"decRecord\" {\n return s.decRecord(APIstub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name \"+function)\n}",
"func (a AnyArgument) Match(v driver.Value) bool {\n\treturn true\n}",
"func (a AnyArgument) Match(v driver.Value) bool {\n\treturn true\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryID\" {\n\t\treturn s.queryID(APIstub,args)\n\t}else if function == \"createBirth\" {\n\t\treturn s.createBirth(APIstub, args)\n\t}else if function == \"createHuman\" {\n\t\treturn s.createHuman(APIstub, args)\n\t}else if function == \"marry\" {\n\t\treturn s.marry(APIstub, args)\n\t}else if function == \"marryCheck\" {\n\t\treturn s.marryCheck(APIstub, args)\n\t}else if function == \"divorceCheck\" {\n\t\treturn s.divorceCheck(APIstub, args)\n\t}else if function == \"divorce\" {\n\t\treturn s.divorce(APIstub, args)\n\t}else if function == \"createCheck\" {\n\t\treturn s.createCheck(APIstub, args)\n\t}else if function == \"queryMarryCheck\" {\n\t\treturn s.queryMarryCheck(APIstub,args)\n\t}else if function == \"queryCreatCheck\" {\n\t\treturn s.queryCreatCheck(APIstub,args)\n\t}\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n\t\n}",
"func (_EthCrossChain *EthCrossChainTransactor) SyncAndVerify(opts *bind.TransactOpts, rawHeader []byte, sigList []byte, proof [][32]byte, position []uint8, toMerkleValueBs []byte, blockHeight uint64) (*types.Transaction, error) {\n\treturn _EthCrossChain.contract.Transact(opts, \"SyncAndVerify\", rawHeader, sigList, proof, position, toMerkleValueBs, blockHeight)\n}",
"func (s Signals) MatchesAll(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !s.Enabled() {\n\t\treturn false, fmt.Sprintf(\"no %s signals provided to match against\", tag), nil\n\t}\n\n\tsignals := []Signal{\n\t\t&s.Labels,\n\t\t&s.CommentSubstrings,\n\t\t&s.Comments,\n\t\t&s.PRBodySubstrings,\n\t\t&s.Branches,\n\t\t&s.BranchPatterns,\n\t\t&s.MaxCommits,\n\t\t&s.AutoMerge,\n\t}\n\n\tfor _, signal := range signals {\n\t\tif signal.Enabled() {\n\t\t\tmatches, _, err := signal.Matches(ctx, pullCtx, tag)\n\t\t\tif err != nil {\n\t\t\t\treturn false, \"\", err\n\t\t\t}\n\n\t\t\tif !matches {\n\t\t\t\treturn false, fmt.Sprintf(\"pull request does not match all %s signals\", tag), nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn true, fmt.Sprintf(\"pull request matches all %s signals\", tag), nil\n}",
"func (cc PipConstraints) Match(ver Version) bool {\n\tfor _, and := range cc.constraints {\n\t\tif !and.match(ver) {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"func (m StructMatcher) Match(got reflect.Value, d data.Data, r Region) (data.Data, bool) {\n\tif m.Type != got.Type() {\n\t\treturn d, false\n\t}\n\tfor i, f := range m.Fields {\n\t\tvar ok bool\n\t\td, ok = f.Match(got.Field(i), d, r)\n\t\tif !ok {\n\t\t\treturn d, false\n\t\t}\n\t}\n\treturn d, true\n}",
"func (signal BranchesSignal) Matches(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !signal.Enabled() {\n\t\treturn false, \"\", nil\n\t}\n\n\ttargetBranch, _ := pullCtx.Branches()\n\n\tfor _, signalBranch := range signal {\n\t\tif targetBranch == signalBranch {\n\t\t\treturn true, fmt.Sprintf(\"pull request target is a %s branch: %q\", tag, signalBranch), nil\n\t\t}\n\t}\n\n\treturn false, \"\", nil\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\r\n \r\n // Retrieve the requested Smart Contract function and arguments\r\n function, args := APIstub.GetFunctionAndParameters()\r\n // Route to the appropriate handler function to interact with the ledger appropriately\r\n if function == \"registerCar\" {\r\n return s.registerCar(APIstub, args)\r\n } else if function == \"createCar\" {\r\n return s.createCar(APIstub, args)\r\n } else if function == \"getCarHistory\" {\r\n return s.getCarHistory(APIstub,args)\r\n } else if function == \"changeCarOwner\" {\r\n return s.changeCarOwner(APIstub, args)\r\n } else if function == \"getCar\" {\r\n return s.getCar(APIstub, args)\r\n } else if function == \"scrapCar\" {\r\n return s.scrapCar(APIstub, args)\r\n }\r\n \r\n return shim.Error(\"Invalid Smart Contract function name.\")\r\n }",
"func (signal BranchPatternsSignal) Matches(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !signal.Enabled() {\n\t\treturn false, \"\", nil\n\t}\n\n\ttargetBranch, _ := pullCtx.Branches()\n\n\tfor _, signalBranch := range signal {\n\t\tif matched, _ := regexp.MatchString(fmt.Sprintf(\"^%s$\", signalBranch), targetBranch); matched {\n\t\t\treturn true, fmt.Sprintf(\"pull request target branch (%q) matches pattern: %q\", targetBranch, signalBranch), nil\n\t\t}\n\t}\n\n\treturn false, \"\", nil\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MainnetCryptoCardsContract.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func bitcoinCall(method string, params []interface{}, reply interface{}) error {\n\tif !globalData.initialised {\n\t\tfault.Panic(\"bitcoin not initialised\")\n\t}\n\n\tglobalData.id += 1\n\n\targuments := bitcoinArguments{\n\t\tId: globalData.id,\n\t\tMethod: method,\n\t\tParams: params,\n\t}\n\tresponse := bitcoinReply{\n\t\tResult: reply,\n\t}\n\tglobalData.log.Debugf(\"rpc call with: %v\", arguments)\n\terr := bitcoinRPC(&arguments, &response)\n\tif nil != err {\n\t\tglobalData.log.Tracef(\"rpc returned error: %v\", err)\n\t\treturn err\n\t}\n\n\tif nil != response.Error {\n\t\ts := response.Error.Message\n\t\treturn fault.ProcessError(\"Bitcoin RPC error: \" + s)\n\t}\n\treturn nil\n}",
"func (o *UpdateArgsMatcher) Matches(x interface{}) bool {\n\tassert := assert.New(o.t)\n\tua, ok := x.(*centrald.UpdateArgs)\n\tif !ok {\n\t\tassert.True(ok, \"argument ISA *centrald.UpdateArgs\")\n\t\treturn false\n\t}\n\tif o.ua.ID != ua.ID {\n\t\tassert.Equal(o.ua.ID, ua.ID, \"UAMatcher: ID same\")\n\t\treturn false\n\t}\n\tif o.versionAdded != 0 {\n\t\tassert.Zero(o.ua.Version, \"UAMatcher: Version should not be specified in params\")\n\t\tassert.NotZero(ua.Version, \"UAMatcher: Version should be added\")\n\t} else if o.ua.Version != ua.Version {\n\t\tassert.Equal(o.ua.Version, ua.Version, \"UAMatcher: Version same\")\n\t\treturn false\n\t}\n\tif o.ua.HasChanges != ua.HasChanges {\n\t\tassert.Equal(o.ua.HasChanges, ua.HasChanges, \"UAMatcher: HasChanges same\")\n\t\treturn false\n\t}\n\tif len(o.ua.Attributes) != len(ua.Attributes) {\n\t\tassert.Len(ua.Attributes, len(o.ua.Attributes), \"UAMatcher: Attributes length the same\")\n\t\treturn false\n\t}\n\t// the array elements are in arbitrary Name order\n\tfor _, oAttr := range o.ua.Attributes {\n\t\tvar attr *centrald.UpdateAttr\n\t\tfor _, a := range ua.Attributes {\n\t\t\tif a.Name == oAttr.Name {\n\t\t\t\tattr = &a\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\tif attr != nil {\n\t\t\tif !reflect.DeepEqual(oAttr, *attr) {\n\t\t\t\tassert.Equal(oAttr, *attr)\n\t\t\t\treturn false\n\t\t\t}\n\t\t} else {\n\t\t\tassert.NotNil(attr, \"UAMatcher: attribute \"+oAttr.Name+\" present\")\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"func (g *exprGuard) matches(pt models.Point) bool {\n\tswitch {\n\tcase g == nil:\n\t\treturn true\n\n\tcase g.and != nil:\n\t\treturn g.and[0].matches(pt) && g.and[1].matches(pt)\n\n\tcase g.or != nil:\n\t\treturn g.or[0].matches(pt) || g.or[1].matches(pt)\n\n\tcase g.tagMatches != nil:\n\t\tif g.tagMatches.meas {\n\t\t\treturn g.tagMatches.op(pt.Name())\n\t\t}\n\t\tfor _, tag := range pt.Tags() {\n\t\t\tif bytes.Equal(tag.Key, g.tagMatches.key) && g.tagMatches.op(tag.Value) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\n\tcase g.tagExists != nil:\n\t\tfor _, tag := range pt.Tags() {\n\t\t\tif _, ok := g.tagExists[string(tag.Key)]; ok {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\n\tdefault:\n\t\treturn false\n\t}\n}",
"func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _amount, _extraData)\n}",
"func GetDelegatedContractsForCycle(cycle int, delegateAddr string) ([]string, error){\n var rtnString []string\n snapShot, err := GetSnapShot(cycle)\n // fmt.Println(snapShot)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": GetSnapShot(cycle int) failed: \" + err.Error())\n }\n hash, err:= GetBlockLevelHash(snapShot.AssociatedBlock)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": GetBlockLevelHash(level int) failed: \" + err.Error())\n }\n // fmt.Println(hash)\n getDelegatedContracts := \"/chains/main/blocks/\" + hash + \"/context/delegates/\" + delegateAddr + \"/delegated_contracts\"\n\n s, err := TezosRPCGet(getDelegatedContracts)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": TezosRPCGet(arg string) failed: \" + err.Error())\n }\n\n DelegatedContracts := reDelegatedContracts.FindAllStringSubmatch(s, -1)\n if (DelegatedContracts == nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": You have no contracts.\")\n }\n rtnString = addressesToArray(DelegatedContracts)\n return rtnString, nil\n}",
"func (t *Transaction) MatchWith(other *Transaction) error {\n\tif t.tp == other.tp {\n\t\treturn errors.New(\"trans: Non-complementary transaction types\")\n\t}\n\n\tif t.tp == Offer {\n\t\tt.Req = other.Req\n\t\tother.Sup = t.Sup\n\t} else {\n\t\tt.Sup = other.Sup\n\t\tother.Req = t.Req\n\t}\n\treturn nil\n}",
"func (cs CredentialsStatus) Match(secret corev1.Secret) bool {\n\tswitch {\n\tcase cs.Reference == nil:\n\t\treturn false\n\tcase cs.Reference.Name != secret.ObjectMeta.Name:\n\t\treturn false\n\tcase cs.Reference.Namespace != secret.ObjectMeta.Namespace:\n\t\treturn false\n\tcase cs.Version != secret.ObjectMeta.ResourceVersion:\n\t\treturn false\n\t}\n\treturn true\n}",
"func Matches(pattern string, operand string) (bool, error) {\n\treturn regexp.MatchString(pattern, operand)\n}",
"func terminate_agreement(ag *contract_api.SolidityContract, agID []byte, counterParty string, shouldWork bool) {\n log.Printf(\"Terminating agreement %v.\\n\", agID)\n tx_delay_toleration := 120\n err := error(nil)\n\n p := make([]interface{},0,10)\n p = append(p, counterParty)\n p = append(p, agID)\n p = append(p, 1)\n if _, err = ag.Invoke_method(\"terminate_agreement\", p); err != nil {\n log.Printf(\"...terminating, could not invoke terminate_agreement: %v\\n\", err)\n os.Exit(1)\n }\n log.Printf(\"Terminate agreement %v invoked.\\n\", agID)\n\n p = make([]interface{},0,10)\n p = append(p, counterParty)\n p = append(p, agID)\n empty_bytes := make([]byte, 32)\n var res interface{}\n start_timer := time.Now()\n for {\n fmt.Printf(\"There should NOT be a recorded contract hash, but it might still be visible for a few blocks.\\n\")\n if res, err = ag.Invoke_method(\"get_contract_hash\", p); err == nil {\n fmt.Printf(\"Received contract hash:%v.\\n\",res)\n if shouldWork {\n if bytes.Compare([]byte(res.(string)), empty_bytes) != 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n fmt.Printf(\"Timeout waiting for the Update.\\n\")\n os.Exit(1)\n }\n } else {\n log.Printf(\"Terminated agreement %v.\\n\", agID)\n break\n }\n } else {\n if bytes.Compare([]byte(res.(string)), empty_bytes) == 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n fmt.Printf(\"Timeout waiting for the Update. This is expected\\n\")\n break\n }\n } else {\n fmt.Printf(\"Received contract hash. This is NOT expected: %v\\n\", res.(string))\n os.Exit(2)\n }\n }\n } else {\n fmt.Printf(\"Error on get_contract_hash: %v\\n\",err)\n os.Exit(1)\n }\n }\n}",
"func (a *Asserter) BalanceEq(addr address.Address, expected abi.TokenAmount) {\n\tst := a.suppliers.stateTracker()\n\tactor, err := st.StateTree.GetActor(addr)\n\ta.NoError(err, \"failed to fetch actor %s from state\", addr)\n\ta.Equal(expected, actor.Balance, \"balances mismatch for address %s\", addr)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tswitch function {\n\tcase \"initToken\":\n\t\treturn s.initLedger(APIstub, args)\n\tcase \"queryTotalAmount\":\n\t\treturn s.queryTotalAmount(APIstub)\n\tcase \"queryTokenName\":\n\t\treturn s.queryTokenName(APIstub)\n\tcase \"queryTokenSymbol\":\n\t\treturn s.queryTokenSymbol(APIstub)\n\tcase \"queryReserve\":\n\t\treturn s.queryReserve(APIstub)\n\tcase \"createAccount\":\n\t\treturn s.createAccount(APIstub, args)\n\tcase \"balanceOf\":\n\t\treturn s.queryValue(APIstub, args)\n\tcase \"transfer\":\n\t\treturn s.transfer(APIstub, args)\n\tcase \"buyToken\":\n\t\tnewArgs := []string{\"admin\",args[1],args[0],args[2]}\n\t\treturn s.transfer(APIstub, newArgs)\n\tcase \"sellToken\":\n\t\tnewArgs := []string{args[0],args[1],\"admin\",args[2]}\n\t\treturn s.transfer(APIstub, newArgs)\n\tcase \"mintToken\":\n\t\treturn s.mintTokens(APIstub, args)\n\tcase \"burnToken\":\n\t\treturn s.burnTokens(APIstub, args)\n\tcase \"approve\":\n\t\treturn s.approve(APIstub, args)\n\tcase \"allowance\":\n\t\treturn s.queryAllowance(APIstub, args)\n\tcase \"increaseAllowance\":\n\t\treturn s.increaseAllowance(APIstub, args)\n\tcase \"decreaseAllowance\":\n\t\treturn s.decreaseAllowance(APIstub, args)\n\tcase \"transferFrom\":\n\t\treturn s.transferFrom(APIstub, args)\n\t}\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (m MatcherFunc) Matches(endpoint Endpoint) (bool, error) {\n\treturn m(endpoint)\n}",
"func (t *myChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error) {\n switch function {\n\n case \"create\":\n if len(args) < 4{\n return nil, errors.New(\"create operation must include at last four arguments, a uuid , a from , a to and timestamp\")\n }\n // get the args\n uuid := args[0]\n fromid := args[1]\n toid := args[2]\n timestamp := args[3]\n metadata := args[4]\n history := fromid\n owner := fromid\n status := \"0\"\n createtm := timestamp\n submittm := \"0\"\n confirmtm := \"0\"\n\n //TODO: need some check for fromid and data\n //check fromid and toid\n if fromid == toid {\n return nil, errors.New(\"create operation failed, fromid is same with toid\")\n }\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n \n //check for existence of the bill\n oldvalue, err := stub.GetState(uuid)\n if err != nil {\n return nil, fmt.Errorf(\"create operation failed. Error accessing state(check the existence of bill): %s\", err)\n }\n if oldvalue != nil {\n return nil, fmt.Errorf(\"existed bill!\")\n } \n\n key := uuid\n value := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"value is %s\", value)\n\n err = stub.PutState(key, []byte(value))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"create operation failed. Error updating state: %s\", err)\n }\n //store the metadata\n key = uuid + sp + \"md\"\n value = metadata\n fmt.Printf(\"value is %s\", value)\n\n err = stub.PutState(key, []byte(value))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"store the metadat operation failed. Error updating state: %s\", err)\n }\n\n //store the from and to \n key = fromid + sp + timestamp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for fromid : %s\", err)\n }\n key = toid + sp + timestamp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for toid : %s\", err)\n }\n return nil,nil\n\n case \"transfer\":\n if len(args) < 4{\n return nil, errors.New(\"transfer operation must include at last there arguments, a uuid , a owner , a toid and timestamp\")\n }\n //get the args\n key := args[0]\n uuid := key\n _owner := args[1]\n _toid := args[2]\n timestamp := args[3]\n\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n confirmtm := listValue[7]\n \n //ToDo: some check for the owner?\n // if the person don't own it, he can transfer this bill\n if _owner != owner {\n return []byte(\"don't have the right to transfer the bill\"), errors.New(\"don't have the right to transfer\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n //if the owner is toid, it cann't be transfer any more\n if owner == toid {\n return []byte(\"cann't transfer bill now\"), errors.New(\"cann't transfer this bill now\") \n }\n if status == \"2\" {\n return []byte(\"this bill has been submited adn you can't transfer it any more!\"), errors.New(\"this bill has been submited adn you can't transfer it any more!\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"0\"{\n status = \"1\"\n }\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n history = history + \",\" + _toid\n owner = _toid\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"transfer operation failed. Error updating state: %s\", err)\n }\n //ToDo: some check for the state of puting \n // add two sp have no reasons:)\n key = owner + sp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for owner : %s\", err)\n }\n return nil, nil\n\n case \"submit\":\n if len(args) < 4{\n return nil, errors.New(\"submit operation must include at last three arguments, a uuid, a owner , timestamp and data for reimbursement\")\n }\n //get the args\n key := args[0]\n uuid := key \n _owner := args[1]\n timestamp := args[2]\n data := args[3]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n //update the submittm\n submittm := timestamp\n confirmtm := listValue[7]\n\n // if the person don't own it, he can transfer this bill\n if _owner != owner {\n return []byte(\"don't have the right to submit the bill\"), errors.New(\"don't have the right to submit\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"2\" {\n return []byte(\"this bill has been submited adn you can't transfer it any more!\"), errors.New(\"this bill has been submited adn you can't transfer it any more!\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"1\" || status == \"0\" {\n status = \"2\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"submit operation failed. Error updating state: %s\", err)\n }\n\n //store the info of reimbursement\n key = uuid + sp + \"bx\"\n fmt.Printf(\"the info of reimbursement is %s\", data)\n err = stub.PutState(key, []byte(data))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"submit operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n case \"confirm\":\n if len(args) < 3 {\n return nil, errors.New(\"confirm operation must include at last there arguments, a uuid , a toid and timestamp\")\n }\n //get the args\n key := args[0]\n _toid := args[1]\n timestamp := args[2]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n //update the history\n history := listValue[2] + \",\" + toid\n //update the owner\n owner := toid\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n //update the confirmtm\n confirmtm := timestamp\n\n // if the person is not the toid\n if _toid != toid {\n return []byte(\"don't have the right to confirm the bill\"), errors.New(\"don't have the right to confirm\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"1\" || status == \"0\" {\n return []byte(\"this bill has not been submited \"), errors.New(\"this bill has not been submited\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"2\" {\n status = \"3\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"confirm operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n case \"reject\":\n if len(args) < 4 {\n return nil, errors.New(\"reject operation must include at last four arguments, a uuid , a toid , a reason and timestamp\")\n }\n //get the args\n key := args[0]\n uuid := key \n _toid := args[1]\n reason := args[2]\n timestamp := args[3]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n confirmtm := timestamp\n\n // if the person is not the toid\n if _toid != toid {\n return []byte(\"don't have the right to reject the bill\"), errors.New(\"don't have the right to reject\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"1\" || status == \"0\" {\n return []byte(\"this bill has not been submited \"), errors.New(\"this bill has not been submited \")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"2\" {\n status = \"1\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"reject operation failed. Error updating state: %s\", err)\n }\n\n //update the reason for unconfirmtion\n key = uuid + sp + \"bx\"\n err = stub.PutState(key, []byte(reason))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"reject operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n default:\n return nil, errors.New(\"Unsupported operation\")\n }\n}",
"func (i *Intent) Matches(_ context.Context, command string) bool {\n\t// TODO Add placeholder support and return the found pairings as well\n\tif command == i.Command {\n\t\treturn true\n\t}\n\n\tfor _, cmd := range i.Alternatives {\n\t\tif cmd == command {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}",
"func (b *Builder) Match(msg *insightV1.LogMessage) bool {\n\tfor _, m := range b.chain {\n\t\tif !m.Match(msg) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func fnMatch(ctx Context, doc *JDoc, params []string) interface{} {\n\tstats := ctx.Value(EelTotalStats).(*ServiceStats)\n\tif params == nil || len(params) != 2 {\n\t\tctx.Log().Error(\"error_type\", \"func_match\", \"op\", \"match\", \"cause\", \"wrong_number_of_parameters\", \"params\", params)\n\t\tstats.IncErrors()\n\t\tAddError(ctx, SyntaxError{fmt.Sprintf(\"wrong number of parameters in call to match function\"), \"match\", params})\n\t\treturn nil\n\t}\n\treg, err := regexp.Compile(extractStringParam(params[1]))\n\tif err != nil {\n\t\tctx.Log().Error(\"error_type\", \"func_match\", \"op\", \"match\", \"cause\", \"invalid_regex\", \"params\", params, \"error\", err.Error())\n\t\tstats.IncErrors()\n\t\tAddError(ctx, RuntimeError{fmt.Sprintf(\"invalid regex in call to match function: %s\", err.Error()), \"match\", params})\n\t\treturn nil\n\t}\n\treturn reg.MatchString(extractStringParam(params[0]))\n}",
"func (cct pipConstraint) match(v Version) bool {\n\treturn cct.compare(v, cct)\n}",
"func (s *Transaction) MatchList() (IDs []string, err error) {\n\tdefer func() {\n\t\tif err != nil {\n\t\t\ts.errors = append(s.errors, err)\n\t\t}\n\t}()\n\n\tfor _, m := range s.inMemoryCopy.Matchs {\n\t\tIDs = append(IDs, m.ID)\n\t}\n\n\treturn IDs, nil\n}",
"func (chaincode *Chaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n\t// Extract the function and args from the transaction proposal\n\tfn, args := stub.GetFunctionAndParameters()\n\n\tswitch fn {\n\tcase \"exchange\": // echange addr currency coins\n\t\tif len(args) != 3 {\n\t\t\treturn shim.Error(fmt.Sprintf(\"expected 3 args (addr currency quantity), got %d\", len(args)))\n\t\t}\n\n\t\tvar addr, currencyName, quatityStr = args[0], args[1], args[2]\n\t\tvar quantity, errParseQuantity = strconv.ParseUint(quatityStr, 10, 64)\n\n\t\tif errParseQuantity == nil {\n\t\t\treturn shim.Error(errParseQuantity.Error())\n\t\t}\n\n\t\tvar price, errGetPrice = chaincode.GetPrice()\n\t\tif errGetPrice != nil {\n\t\t\treturn shim.Error(errGetPrice.Error())\n\t\t}\n\n\t\tvar marshalledWallet, errGetWallet = stub.GetState(addr)\n\t\tif errGetWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar wallet, errParseWallet = strconv.ParseUint(string(marshalledWallet), 10, 64)\n\t\tif errParseWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar currency, exists = price.Bpi[currencyName]\n\t\tif !exists {\n\t\t\treturn shim.Error(fmt.Sprintf(\"currency %q not found\", currencyName))\n\t\t}\n\n\t\twallet = uint64(currency.RateFloat) * quantity\n\n\t\tvar errPutState = stub.PutState(addr, []byte(strconv.FormatUint(wallet, 10)))\n\t\tif errPutState != nil {\n\t\t\treturn shim.Error(errPutState.Error())\n\t\t}\n\t\treturn shim.Success([]byte(fmt.Sprintf(\"wallet: %d\", wallet)))\n\tcase \"get\":\n\n\t\tif len(args) != 1 {\n\t\t\treturn shim.Error(fmt.Sprintf(\"expected 1 args (addr), got %d\", len(args)))\n\t\t}\n\n\t\tvar addr = args[0]\n\n\t\tvar marshalledWallet, errGetWallet = stub.GetState(addr)\n\t\tif errGetWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar wallet, errParseWallet = strconv.ParseUint(string(marshalledWallet), 10, 64)\n\t\tif errParseWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\treturn shim.Success([]byte(fmt.Sprintf(\"wallet: %d\", wallet)))\n\tdefault:\n\t\treturn shim.Error(fmt.Sprintf(\"unknown command %q\", fn))\n\t}\n\t// Return the result as success payload\n\n}",
"func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _value, _extraData)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tswitch function {\n\tcase \"initVote\":\n\t\treturn s.initVote(APIstub)\n\tcase \"beginSignUp\":\n\t\treturn s.beginSignUp(APIstub, args)\n\tcase \"finishRegistrationPhase\":\n\t\treturn s.finishRegistrationPhase(APIstub)\n\tcase \"submitVote\":\n\t\treturn s.submitVote(APIstub, args)\n\tcase \"setEligible\":\n\t\treturn s.setEligible(APIstub, args)\n\tcase \"register\":\n\t\treturn s.register(APIstub, args)\n\tcase \"computeTally\":\n\t\treturn s.computeTally(APIstub)\n\tcase \"question\":\n\t\treturn s.question(APIstub)\n\tdefault:\n\t\treturn shim.Error(\"Invalid Smart Contract function name: \" + function)\n\t}\n}",
"func TestAcceptReorg(t *testing.T) {\n\tissuer1, vm1, _, sharedMemory1 := GenesisVM(t, true, genesisJSONApricotPhase0, \"\", \"\")\n\tissuer2, vm2, _, sharedMemory2 := GenesisVM(t, true, genesisJSONApricotPhase0, \"\", \"\")\n\n\tdefer func() {\n\t\tif err := vm1.Shutdown(); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\n\t\tif err := vm2.Shutdown(); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}()\n\n\tkey, err := accountKeystore.NewKey(rand.Reader)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Import 1 AVAX\n\timportAmount := uint64(1000000000)\n\tutxoID := avax.UTXOID{\n\t\tTxID: ids.ID{\n\t\t\t0x0f, 0x2f, 0x4f, 0x6f, 0x8e, 0xae, 0xce, 0xee,\n\t\t\t0x0d, 0x2d, 0x4d, 0x6d, 0x8c, 0xac, 0xcc, 0xec,\n\t\t\t0x0b, 0x2b, 0x4b, 0x6b, 0x8a, 0xaa, 0xca, 0xea,\n\t\t\t0x09, 0x29, 0x49, 0x69, 0x88, 0xa8, 0xc8, 0xe8,\n\t\t},\n\t}\n\n\tutxo := &avax.UTXO{\n\t\tUTXOID: utxoID,\n\t\tAsset: avax.Asset{ID: vm1.ctx.LUVAssetID},\n\t\tOut: &secp256k1fx.TransferOutput{\n\t\t\tAmt: importAmount,\n\t\t\tOutputOwners: secp256k1fx.OutputOwners{\n\t\t\t\tThreshold: 1,\n\t\t\t\tAddrs: []ids.ShortID{testKeys[0].PublicKey().Address()},\n\t\t\t},\n\t\t},\n\t}\n\tutxoBytes, err := vm1.codec.Marshal(codecVersion, utxo)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\txChainSharedMemory1 := sharedMemory1.NewSharedMemory(vm1.ctx.XChainID)\n\txChainSharedMemory2 := sharedMemory2.NewSharedMemory(vm2.ctx.XChainID)\n\tinputID := utxo.InputID()\n\tif err := xChainSharedMemory1.Put(vm1.ctx.ChainID, []*atomic.Element{{\n\t\tKey: inputID[:],\n\t\tValue: utxoBytes,\n\t\tTraits: [][]byte{\n\t\t\ttestKeys[0].PublicKey().Address().Bytes(),\n\t\t},\n\t}}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif err := xChainSharedMemory2.Put(vm2.ctx.ChainID, []*atomic.Element{{\n\t\tKey: inputID[:],\n\t\tValue: utxoBytes,\n\t\tTraits: [][]byte{\n\t\t\ttestKeys[0].PublicKey().Address().Bytes(),\n\t\t},\n\t}}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\timportTx, err := vm1.newImportTx(vm1.ctx.XChainID, key.Address, []*crypto.PrivateKeySECP256K1R{testKeys[0]})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1.issueTx(importTx); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t<-issuer1\n\n\tvm1BlkA, err := vm1.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build block with import transaction: %s\", err)\n\t}\n\n\tif err := vm1BlkA.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\n\tif status := vm1BlkA.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of built block to be %s, but found %s\", choices.Processing, status)\n\t}\n\n\tif err := vm1.SetPreference(vm1BlkA.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tvm2BlkA, err := vm2.ParseBlock(vm1BlkA.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\tif err := vm2BlkA.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM2: %s\", err)\n\t}\n\tif status := vm2BlkA.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of block on VM2 to be %s, but found %s\", choices.Processing, status)\n\t}\n\tif err := vm2.SetPreference(vm2BlkA.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1BlkA.Accept(); err != nil {\n\t\tt.Fatalf(\"VM1 failed to accept block: %s\", err)\n\t}\n\tif err := vm2BlkA.Accept(); err != nil {\n\t\tt.Fatalf(\"VM2 failed to accept block: %s\", err)\n\t}\n\n\t// Create list of 10 successive transactions to build block A on vm1\n\t// and to be split into two separate blocks on VM2\n\ttxs := make([]*types.Transaction, 10)\n\tfor i := 0; i < 10; i++ {\n\t\ttx := types.NewTransaction(uint64(i), key.Address, big.NewInt(10), 21000, params.LaunchMinGasPrice, nil)\n\t\tsignedTx, err := types.SignTx(tx, types.NewEIP155Signer(vm1.chainID), key.PrivateKey)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\ttxs[i] = signedTx\n\t}\n\n\t// Add the remote transactions, build the block, and set VM1's preference\n\t// for block B\n\terrs := vm1.chain.AddRemoteTxs(txs)\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM1 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer1\n\n\tvm1BlkB, err := vm1.BuildBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1BlkB.Verify(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif status := vm1BlkB.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of built block to be %s, but found %s\", choices.Processing, status)\n\t}\n\n\tif err := vm1.SetPreference(vm1BlkB.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terrs = vm2.chain.AddRemoteTxs(txs[0:5])\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM2 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer2\n\n\tvm2BlkC, err := vm2.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build BlkC on VM2: %s\", err)\n\t}\n\n\tif err := vm2BlkC.Verify(); err != nil {\n\t\tt.Fatalf(\"BlkC failed verification on VM2: %s\", err)\n\t}\n\n\tif err := vm2.SetPreference(vm2BlkC.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terrs = vm2.chain.AddRemoteTxs(txs[5:])\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM2 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer2\n\n\tvm2BlkD, err := vm2.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build BlkD on VM2: %s\", err)\n\t}\n\n\t// Parse blocks produced in vm2\n\tvm1BlkC, err := vm1.ParseBlock(vm2BlkC.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\n\tvm1BlkD, err := vm1.ParseBlock(vm2BlkD.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\n\tif err := vm1BlkC.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\tif err := vm1BlkD.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\n\tblkBHash := vm1BlkB.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkBHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkBHash.Hex(), b.Hash().Hex())\n\t}\n\n\tif err := vm1BlkC.Accept(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tblkCHash := vm1BlkC.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkCHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkCHash.Hex(), b.Hash().Hex())\n\t}\n\n\tif err := vm1BlkD.Accept(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tblkDHash := vm1BlkD.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkDHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkDHash.Hex(), b.Hash().Hex())\n\t}\n}",
"func (c Provider) Match(query string) (params []string) {\n\tif sm := MirrorsRegex.FindStringSubmatch(query); len(sm) > 1 {\n\t\tparams = sm[1:]\n\t}\n\treturn\n}",
"func (SubChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*SubChannelProposalAccMsg)\n\treturn ok\n}",
"func (r *Service) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalService(b, c, r)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryHash\" {\n\t\treturn s.queryHash(APIstub, args)\n\t } else if function == \"initLedger\" {\n\t \treturn s.initLedger(APIstub)\n\t } else if function == \"addHash\" {\n\t\treturn s.addHash(APIstub, args)\n\t} else if function == \"queryAllHashes\" {\n\t\treturn s.queryAllHashes(APIstub)\n\t} else if function == \"changeHash\" {\n\t\treturn s.changeHash(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (atc *AtomicTransactionComposer) AddMethodCall(params AddMethodCallParams) error {\n\tif atc.status != BUILDING {\n\t\treturn errors.New(\"status must be BUILDING in order to add transactions\")\n\t}\n\n\tif len(params.MethodArgs) != len(params.Method.Args) {\n\t\treturn fmt.Errorf(\"the incorrect number of arguments were provided: %d != %d\", len(params.MethodArgs), len(params.Method.Args))\n\t}\n\n\tif atc.Count()+params.Method.GetTxCount() > MaxAtomicGroupSize {\n\t\treturn fmt.Errorf(\"reached max group size: %d\", MaxAtomicGroupSize)\n\t}\n\n\tif params.AppID == 0 {\n\t\tif len(params.ApprovalProgram) == 0 || len(params.ClearProgram) == 0 {\n\t\t\treturn fmt.Errorf(\"ApprovalProgram and ClearProgram must be provided for an application creation call\")\n\t\t}\n\t} else if params.OnComplete == types.UpdateApplicationOC {\n\t\tif len(params.ApprovalProgram) == 0 || len(params.ClearProgram) == 0 {\n\t\t\treturn fmt.Errorf(\"ApprovalProgram and ClearProgram must be provided for an application update call\")\n\t\t}\n\t\tif (params.GlobalSchema != types.StateSchema{}) || (params.LocalSchema != types.StateSchema{}) {\n\t\t\treturn fmt.Errorf(\"GlobalSchema and LocalSchema must not be provided for an application update call\")\n\t\t}\n\t} else if len(params.ApprovalProgram) != 0 || len(params.ClearProgram) != 0 || (params.GlobalSchema != types.StateSchema{}) || (params.LocalSchema != types.StateSchema{}) {\n\t\treturn fmt.Errorf(\"ApprovalProgram, ClearProgram, GlobalSchema, and LocalSchema must not be provided for a non-creation call\")\n\t}\n\n\tvar txsToAdd []TransactionWithSigner\n\tvar basicArgValues []interface{}\n\tvar basicArgTypes []abi.Type\n\tvar refArgValues []interface{}\n\tvar refArgTypes []string\n\trefArgIndexToBasicArgIndex := make(map[int]int)\n\tfor i, arg := range params.Method.Args {\n\t\targValue := params.MethodArgs[i]\n\n\t\tif arg.IsTransactionArg() {\n\t\t\ttxnAndSigner, ok := argValue.(TransactionWithSigner)\n\t\t\tif !ok {\n\t\t\t\treturn fmt.Errorf(\"invalid arg type, expected transaction\")\n\t\t\t}\n\n\t\t\terr := atc.validateTransaction(txnAndSigner.Txn, arg.Type)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\ttxsToAdd = append(txsToAdd, txnAndSigner)\n\t\t} else {\n\t\t\tvar abiType abi.Type\n\t\t\tvar err error\n\n\t\t\tif arg.IsReferenceArg() {\n\t\t\t\trefArgIndexToBasicArgIndex[len(refArgTypes)] = len(basicArgTypes)\n\t\t\t\trefArgValues = append(refArgValues, argValue)\n\t\t\t\trefArgTypes = append(refArgTypes, arg.Type)\n\n\t\t\t\t// treat the reference as a uint8 for encoding purposes\n\t\t\t\tabiType, err = abi.TypeOf(\"uint8\")\n\t\t\t} else {\n\t\t\t\tabiType, err = arg.GetTypeObject()\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbasicArgValues = append(basicArgValues, argValue)\n\t\t\tbasicArgTypes = append(basicArgTypes, abiType)\n\t\t}\n\t}\n\n\t// copy foreign arrays before modifying in populateMethodCallReferenceArgs\n\tforeignAccounts := make([]string, len(params.ForeignAccounts))\n\tcopy(foreignAccounts, params.ForeignAccounts)\n\tforeignApps := make([]uint64, len(params.ForeignApps))\n\tcopy(foreignApps, params.ForeignApps)\n\tforeignAssets := make([]uint64, len(params.ForeignAssets))\n\tcopy(foreignAssets, params.ForeignAssets)\n\n\trefArgsResolved, err := populateMethodCallReferenceArgs(\n\t\tparams.Sender.String(),\n\t\tparams.AppID,\n\t\trefArgTypes,\n\t\trefArgValues,\n\t\t&foreignAccounts,\n\t\t&foreignApps,\n\t\t&foreignAssets,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\tfor i, resolved := range refArgsResolved {\n\t\tbasicArgIndex := refArgIndexToBasicArgIndex[i]\n\t\t// use the foreign array index as the encoded argument value\n\t\tbasicArgValues[basicArgIndex] = resolved\n\t}\n\n\t// Up to 16 app arguments can be passed to app call. First is reserved for method selector,\n\t// and the rest are for method call arguments. But if more than 15 method call arguments\n\t// are present, then the method arguments after the 14th are placed in a tuple in the last app\n\t// argument slot\n\tif len(basicArgValues) > maxAppArgs-1 {\n\t\ttypesForTuple := make([]abi.Type, len(basicArgTypes)-methodArgsTupleThreshold)\n\t\tcopy(typesForTuple, basicArgTypes[methodArgsTupleThreshold:])\n\n\t\tvalueForTuple := make([]interface{}, len(basicArgValues)-methodArgsTupleThreshold)\n\t\tcopy(valueForTuple, basicArgValues[methodArgsTupleThreshold:])\n\n\t\ttupleType, err := abi.MakeTupleType(typesForTuple)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tbasicArgValues = append(basicArgValues[:methodArgsTupleThreshold], valueForTuple)\n\t\tbasicArgTypes = append(basicArgTypes[:methodArgsTupleThreshold], tupleType)\n\t}\n\n\tencodedAbiArgs := [][]byte{params.Method.GetSelector()}\n\n\tfor i, abiArg := range basicArgValues {\n\t\tencodedArg, err := basicArgTypes[i].Encode(abiArg)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tencodedAbiArgs = append(encodedAbiArgs, encodedArg)\n\t}\n\n\ttx, err := MakeApplicationCallTxWithBoxes(\n\t\tparams.AppID,\n\t\tencodedAbiArgs,\n\t\tforeignAccounts,\n\t\tforeignApps,\n\t\tforeignAssets,\n\t\tparams.BoxReferences,\n\t\tparams.OnComplete,\n\t\tparams.ApprovalProgram,\n\t\tparams.ClearProgram,\n\t\tparams.GlobalSchema,\n\t\tparams.LocalSchema,\n\t\tparams.ExtraPages,\n\t\tparams.SuggestedParams,\n\t\tparams.Sender,\n\t\tparams.Note,\n\t\ttypes.Digest{},\n\t\tparams.Lease,\n\t\tparams.RekeyTo)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ttxAndSigner := TransactionWithSigner{\n\t\tTxn: tx,\n\t\tSigner: params.Signer,\n\t}\n\n\tfor _, txAndSigner := range txsToAdd {\n\t\ttxContext := transactionContext{\n\t\t\ttxn: txAndSigner.Txn,\n\t\t\tsigner: txAndSigner.Signer,\n\t\t}\n\t\tatc.txContexts = append(atc.txContexts, txContext)\n\t}\n\n\tmethodCallTxContext := transactionContext{\n\t\ttxn: txAndSigner.Txn,\n\t\tsigner: txAndSigner.Signer,\n\t\tmethod: ¶ms.Method,\n\t}\n\tatc.txContexts = append(atc.txContexts, methodCallTxContext)\n\treturn nil\n}",
"func Match(regx string, arg string) bool {\n\tmatched, err := regexp.MatchString(\"^(\"+regx+\")$\", arg)\n\tif err != nil {\n\t\treturn false\n\t}\n\treturn matched\n}",
"func (cc *InteropCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response {\n fmt.Println(\"Invoking Mock Fabric Interop CC\")\n function, args := stub.GetFunctionAndParameters()\n if function == \"GetTotalFungibleLockedAssets\" {\n return shim.Success([]byte(strconv.Itoa(cc.fungibleAssetLockedCount[args[0]])))\n }\n caller, _ := stub.GetCreator()\n if function == \"LockAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n key := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(key)\n val := key + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] != \"\" {\n return shim.Error(fmt.Sprintf(\"Asset of type %s and ID %s is already locked\", assetAgreement.AssetType, assetAgreement.Id))\n }\n cc.assetLockMap[contractId] = val\n return shim.Success([]byte(contractId))\n }\n if function == \"LockFungibleAsset\" { // We are only going to lock once or twice in each unit test function, so bookkeeping doesn't need to be thorough\n assetAgreement := &common.FungibleAssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n val := assetAgreement.AssetType + \":\" + strconv.Itoa(int(assetAgreement.NumUnits)) + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n contractId := generateSHA256HashInBase64Form(val)\n cc.fungibleAssetLockMap[contractId] = val\n\tif cc.fungibleAssetLockedCount[assetAgreement.AssetType] == 0 {\n\t\tcc.fungibleAssetLockedCount[assetAgreement.AssetType] = int(assetAgreement.NumUnits)\n\t} else {\n\t\tcc.fungibleAssetLockedCount[assetAgreement.AssetType] += int(assetAgreement.NumUnits)\n\t}\n return shim.Success([]byte(contractId))\n }\n if function == \"IsAssetLocked\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + assetAgreement.Locker + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] == expectedVal {\n return shim.Success([]byte(\"true\"))\n } else {\n return shim.Success([]byte(\"false\"))\n }\n }\n if function == \"IsFungibleAssetLocked\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be either the locker or the recipient\n\t\tif assetLockValSplit[2] != string(caller) && assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Success([]byte(\"false\"))\n\t\t}\n\t\treturn shim.Success([]byte(\"true\"))\n\t} else {\n return shim.Success([]byte(\"false\"))\n\t}\n }\n if function == \"IsAssetLockedQueryUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\t// caller not necessarily need to be one of either locker or recipient\n\t\treturn shim.Success([]byte(\"true\"))\n\t} else {\n return shim.Success([]byte(\"false\"))\n\t}\n }\n if function == \"UnlockAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] == \"\" {\n return shim.Error(fmt.Sprintf(\"No asset of type %s and ID %s is locked\", assetAgreement.AssetType, assetAgreement.Id))\n } else if cc.assetLockMap[contractId] != expectedVal {\n return shim.Error(fmt.Sprintf(\"Cannot unlock asset of type %s and ID %s as it is locked by %s for %s\", assetAgreement.AssetType, assetAgreement.Id, string(caller), assetAgreement.Recipient))\n } else {\n delete(cc.assetLockMap, contractId)\n return shim.Success(nil)\n }\n }\n if function == \"UnlockFungibleAsset\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be the locker\n\t\tif assetLockValSplit[2] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot unlock fungible asset using contractId %s as caller is different from locker\", contractId))\n\t\t}\n\t\tdelete(cc.fungibleAssetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No fungible asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"UnlockAssetUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.assetLockMap[contractId], \":\")\n\t\t// caller need to be the locker\n\t\tif assetLockValSplit[2] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot unlock asset using contractId %s as caller is different from locker\", contractId))\n\t\t}\n\t\tdelete(cc.assetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"ClaimAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + assetAgreement.Locker + \":\" + string(caller)\n if cc.assetLockMap[contractId] == \"\" {\n return shim.Error(fmt.Sprintf(\"No asset of type %s and ID %s is locked\", assetAgreement.AssetType, assetAgreement.Id))\n } else if cc.assetLockMap[contractId] != expectedVal {\n return shim.Error(fmt.Sprintf(\"Cannot unlock asset of type %s and ID %s as it is locked by %s for %s\", assetAgreement.AssetType, assetAgreement.Id, assetAgreement.Locker, string(caller)))\n } else {\n delete(cc.assetLockMap, contractId)\n return shim.Success(nil)\n }\n }\n if function == \"ClaimFungibleAsset\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be the recipient\n\t\tif assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot claim fungible asset using contractId %s as caller is different from recipient\", contractId))\n\t\t}\n\t\tdelete(cc.fungibleAssetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No fungible asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"ClaimAssetUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.assetLockMap[contractId], \":\")\n\t\t// caller need to be the recipient\n\t\tif assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot claim asset using contractId %s as caller is different from recipient\", contractId))\n\t\t}\n\t\tdelete(cc.assetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"GetAllLockedAssets\" || function == \"GetAllAssetsLockedUntil\" {\n assets := []string{}\n for key, val := range cc.assetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n for key, val := range cc.fungibleAssetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAllNonFungibleLockedAssets\" {\n assets := []string{}\n for key, val := range cc.assetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAllFungibleLockedAssets\" {\n assets := []string{}\n for key, val := range cc.fungibleAssetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAssetTimeToRelease\" {\n return shim.Success([]byte(strconv.Itoa(len(cc.assetLockMap))))\n }\n if function == \"GetFungibleAssetTimeToRelease\" {\n return shim.Success([]byte(strconv.Itoa(len(cc.fungibleAssetLockMap))))\n }\n if function == \"GetHTLCHash\" {\n return shim.Success([]byte(defaultHash))\n }\n if function == \"GetHTLCHashByContractId\" {\n return shim.Success([]byte(defaultHash))\n }\n if function == \"GetHTLCHashPreImage\" {\n return shim.Success([]byte(defaultPreimage))\n }\n if function == \"GetHTLCHashPreImageByContractId\" {\n return shim.Success([]byte(defaultPreimage))\n }\n return shim.Error(fmt.Sprintf(\"Invalid invoke function name: %s\", function))\n}",
"func (vc *VehicleContainer) MatchAll(brigadeMap map[string][]*brigadeEntry, prevVehicles map[string]*Vehicle) error {\n\tfor vID, v := range vc.Vehicles {\n\t\t// Don't match if the vehicle position is not realtime -\n\t\t// older then 3 minutes\n\t\tif vc.SyncTime.Sub(v.TimeObj).Minutes() > 3 {\n\t\t\tdelete(vc.Vehicles, vID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Try to find matching brigade fields\n\t\tbe := brigadeMap[vID]\n\n\t\t// Try to find previous Vehicle for this ID\n\t\tpv := prevVehicles[vID]\n\n\t\t// Match this vehicle to a particular trip\n\t\terr := v.MatchTrip(pv, vc.CompareSyncTime, be)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\t// Remove this vehicle if no trip was matched\n\t\tif v.Trip == \"\" {\n\t\t\tdelete(vc.Vehicles, vID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Caulcate the bearing\n\t\tv.CalculateBearing(pv)\n\t}\n\n\treturn nil\n}",
"func (m scanOpMatcher) Matches(x interface{}) bool {\n\top, ok := x.(*ScanOp)\n\tif !ok {\n\t\treturn false\n\t}\n\n\tfor _, field := range op.fieldsToRead {\n\t\tif !m.fields[field] {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn op.limit == m.limit && op.token == m.token && reflect.TypeOf(op.object).Elem() == m.typ\n}",
"func (_Coordinatorproxy *CoordinatorproxyCaller) ProcessTx(opts *bind.CallOpts, _balanceRoot [32]byte, _accountsRoot [32]byte, _tx TypesTransaction, _from_pda_proof TypesPDAMerkleProof, _from_merkle_proof TypesAccountMerkleProof, _to_merkle_proof TypesAccountMerkleProof) ([32]byte, *big.Int, *big.Int, bool, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t\tret1 = new(*big.Int)\n\t\tret2 = new(*big.Int)\n\t\tret3 = new(bool)\n\t)\n\tout := &[]interface{}{\n\t\tret0,\n\t\tret1,\n\t\tret2,\n\t\tret3,\n\t}\n\terr := _Coordinatorproxy.contract.Call(opts, out, \"processTx\", _balanceRoot, _accountsRoot, _tx, _from_pda_proof, _from_merkle_proof, _to_merkle_proof)\n\treturn *ret0, *ret1, *ret2, *ret3, err\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"ping\" {\n\t\treturn s.ping(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func bitcoinCall(method string, params []interface{}, reply interface{}) error {\n\tif !globalBitcoinData.initialised {\n\t\tfault.Panic(\"bitcoin not initialised\")\n\t}\n\n\tglobalBitcoinData.id += 1\n\n\targuments := bitcoinArguments{\n\t\tId: globalBitcoinData.id,\n\t\tMethod: method,\n\t\tParams: params,\n\t}\n\tresponse := bitcoinReply{\n\t\tResult: reply,\n\t}\n\terr := bitcoinRPC(&arguments, &response)\n\tif nil != err {\n\t\treturn err\n\t}\n\n\tif nil != response.Error {\n\t\ts := response.Error.Message\n\t\treturn fault.ProcessError(\"Bitcoin RPC error: \" + s)\n\t}\n\treturn nil\n}",
"func (oe objectExpectation) matches(obj interface{}) bool {\n\tif oe.val == nil || obj == nil {\n\t\treturn oe.val == nil && obj == nil\n\t}\n\n\tparamBuf1 := new(bytes.Buffer)\n\toe.val.MarshalCBOR(paramBuf1) // nolint: errcheck\n\tmarshaller, ok := obj.(cbor.Marshaler)\n\tif !ok {\n\t\treturn false\n\t}\n\tparamBuf2 := new(bytes.Buffer)\n\tif marshaller != nil {\n\t\tmarshaller.MarshalCBOR(paramBuf2) // nolint: errcheck\n\t}\n\treturn bytes.Equal(paramBuf1.Bytes(), paramBuf2.Bytes())\n}",
"func (atc *AtomicTransactionComposer) Execute(client *algod.Client, ctx context.Context, waitRounds uint64) (ExecuteResult, error) { //nolint:revive // Ignore Context order for backwards compatibility\n\tif atc.status == COMMITTED {\n\t\treturn ExecuteResult{}, errors.New(\"status is already committed\")\n\t}\n\n\t_, err := atc.Submit(client, ctx)\n\tif err != nil {\n\t\treturn ExecuteResult{}, err\n\t}\n\tatc.status = SUBMITTED\n\n\tindexToWaitFor := 0\n\tnumMethodCalls := 0\n\tfor i, txContext := range atc.txContexts {\n\t\tif txContext.isMethodCallTx() {\n\t\t\t// if there is a method call in the group, we need to query the\n\t\t\t// pending tranaction endpoint for it anyway, so as an optimization\n\t\t\t// we should wait for its TxID\n\t\t\tif numMethodCalls == 0 {\n\t\t\t\tindexToWaitFor = i\n\t\t\t}\n\t\t\tnumMethodCalls++\n\t\t}\n\t}\n\n\tgroupInfo, err := WaitForConfirmation(client, atc.txContexts[indexToWaitFor].txID(), waitRounds, ctx)\n\tif err != nil {\n\t\treturn ExecuteResult{}, err\n\t}\n\tatc.status = COMMITTED\n\n\texecuteResponse := ExecuteResult{\n\t\tConfirmedRound: groupInfo.ConfirmedRound,\n\t\tTxIDs: atc.getTxIDs(),\n\t\tMethodResults: make([]ABIMethodResult, 0, numMethodCalls),\n\t}\n\n\tfor i, txContext := range atc.txContexts {\n\t\t// Verify method call is available. This may not be the case if the App Call Tx wasn't created\n\t\t// by AddMethodCall().\n\t\tif !txContext.isMethodCallTx() {\n\t\t\tcontinue\n\t\t}\n\n\t\tresult := ABIMethodResult{TxID: txContext.txID(), Method: *txContext.method}\n\n\t\tif i == indexToWaitFor {\n\t\t\tresult.TransactionInfo = groupInfo\n\t\t} else {\n\t\t\tmethodCallInfo, _, err := client.PendingTransactionInformation(result.TxID).Do(ctx)\n\t\t\tif err != nil {\n\t\t\t\tresult.DecodeError = err\n\t\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tresult.TransactionInfo = methodCallInfo\n\t\t}\n\n\t\tif txContext.method.Returns.IsVoid() {\n\t\t\tresult.RawReturnValue = []byte{}\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tif len(result.TransactionInfo.Logs) == 0 {\n\t\t\tresult.DecodeError = errors.New(\"method call did not log a return value\")\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tlastLog := result.TransactionInfo.Logs[len(result.TransactionInfo.Logs)-1]\n\t\tif !bytes.HasPrefix(lastLog, abiReturnHash) {\n\t\t\tresult.DecodeError = errors.New(\"method call did not log a return value\")\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tresult.RawReturnValue = lastLog[len(abiReturnHash):]\n\n\t\tabiType, err := txContext.method.Returns.GetTypeObject()\n\t\tif err != nil {\n\t\t\tresult.DecodeError = err\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tbreak\n\t\t}\n\n\t\tresult.ReturnValue, result.DecodeError = abiType.Decode(result.RawReturnValue)\n\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t}\n\n\treturn executeResponse, nil\n}",
"func (r *Interconnect) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalInterconnect(b, c)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func Match(provider Provider, query *Query, results chan<- *Result) {\n\t// Perform the search against the specified provider.\n\tsearchResults, err := provider.Search(query)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\n\t// Write the results to the channel.\n\tfor _, result := range searchResults {\n\t\tresults <- result\n\t}\n}",
"func (t *Colorado) getMatchableTrades(stub shim.ChaincodeStubInterface, args []string) peer.Response {\n\t if len(args) != 1 {\n\t\t return shim.Error(\"Incorrect number of arguments. Expecting 1.\")\n\t }\n \n\t if len(args[0]) == 0 {\n\t\t return shim.Error(\"1st argument (Request JSON) must be a non-empty string, i.e. {\\\"investmentManager\\\":\\\"IMi\\\",\\\"executingBroker\\\":\\\"EBj\\\",\\\"tradeIdToBeMatched\\\":\\\"IDn\\\",\\\"matchableTradeIds\\\":[\\\"IDx\\\",\\\"IDy\\\",\\\"IDz\\\"]}\")\n\t }\n \n\t requestJSON := args[0]\n\t fmt.Println(\"- start getting matchable trades with request: \" + requestJSON)\n \n\t type requstType struct {\n\t\t InvestmentManager string `json:\"investmentManager\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t ExecutingBroker string `json:\"executingBroker\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t TradeIdToBeMatched string `json:\"tradeIdToBeMatched\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t MatchableTradeIds []string `json:\"matchableTradeIds\"` // the json fieldtags are needed to keep case from bouncing around\n\t }\n\t var request requstType\n\t err := json.Unmarshal([]byte(requestJSON), &request)\n\t if err != nil {\n\t\t return shim.Error(\"Unable to parse request: \" + err.Error())\n\t }\n \n\t if len(request.TradeIdToBeMatched) == 0 {\n\t\t return shim.Success([]byte(\"There is no trade to be matched.\"))\n\t }\n \n\t // get trade to be matched\n\t privateCollection := \"privateTradeFor\" + request.InvestmentManager + request.ExecutingBroker\n\t tradeToBeMatchedAsBytes, err := stub.GetPrivateData(privateCollection, request.TradeIdToBeMatched)\n\t if err != nil {\n\t\t // e.g. no defined private collection for the combination of IM, EB\n\t\t return shim.Error(\"Unable to get trade: \" + err.Error())\n\t } else if tradeToBeMatchedAsBytes == nil {\n\t\t fmt.Println(\"This trade does not exist: \" + request.TradeIdToBeMatched)\n\t\t return shim.Error(\"This trade does not exist: \" + request.TradeIdToBeMatched)\n\t }\n\t tradeToBeMatched := trade{}\n\t err = json.Unmarshal(tradeToBeMatchedAsBytes, &tradeToBeMatched) // unmarshal it aka JSON.parse()\n\t if err != nil {\n\t\t return shim.Error(\"Unable to parse Trade To Be Matched: \" + err.Error())\n\t }\n \n\t // Query the tradeMatchingCompositeKey index by all fields in the composite key,\n\t // e.g. return all trades of a Source, a Buy Side, a Sell Side, a Product, a Sub-Product,\n\t // a Trade Date, a Quantity, a Price, a Security ID, and a Status\n\t var buffer bytes.Buffer\n\t delimiter := \",\"\n\t sourceToBeMatched := tradeToBeMatched.BuySide\n\t if tradeToBeMatched.Source == tradeToBeMatched.BuySide {\n\t\t sourceToBeMatched = tradeToBeMatched.SellSide\n\t }\n\t quantityToBeMatchedAsString := strconv.Itoa(tradeToBeMatched.Quantity)\n\t priceToBeMatchedAsString := strconv.FormatFloat(tradeToBeMatched.Price, 'f', -1, 64)\n\t tradeResultsIterator, err := stub.GetPrivateDataByPartialCompositeKey(privateCollection, \"tradeMatchingCompositeKey\", []string{sourceToBeMatched, tradeToBeMatched.BuySide, tradeToBeMatched.SellSide, tradeToBeMatched.Product, tradeToBeMatched.SubProduct, tradeToBeMatched.TradeDate, quantityToBeMatchedAsString, priceToBeMatchedAsString, tradeToBeMatched.SecurityId, \"CREATED\"})\n\t if err != nil {\n\t\t return shim.Error(\"Unable to call GetPrivateDataByPartialCompositeKey: \" + err.Error())\n\t }\n \n\t defer tradeResultsIterator.Close()\n\t for tradeResultsIterator.HasNext() {\n\t\t tradeResult, err := tradeResultsIterator.Next()\n\t\t if err != nil {\n\t\t\t return shim.Error(\"Unable to iterate through StateQueryIteratorInterface: \" + err.Error())\n\t\t }\n\t\t if buffer.Len() > 0 {\n\t\t\t buffer.WriteString(delimiter)\n\t\t }\n\t\t buffer.WriteString(\"\\\"\" + string(tradeResult.Value) + \"\\\"\")\n\t }\n \n\t responseJSON := fmt.Sprintf(\"{\\\"investmentManager\\\":\\\"%s\\\",\\\"executingBroker\\\":\\\"%s\\\",\\\"tradeIdToBeMatched\\\":\\\"%s\\\",\\\"matchableTradeIds\\\":[%s]}\", request.InvestmentManager, request.ExecutingBroker, request.TradeIdToBeMatched, buffer.String())\n\t fmt.Println(\"- end getting matchable trades with response: \" + responseJSON)\n \n\t return shim.Success([]byte(responseJSON))\n }"
] | [
"0.827824",
"0.82535267",
"0.54954815",
"0.5388551",
"0.53281265",
"0.52395064",
"0.506616",
"0.5046137",
"0.49894622",
"0.49579608",
"0.49005952",
"0.4851036",
"0.48377824",
"0.4772629",
"0.47367898",
"0.4693454",
"0.46865013",
"0.465702",
"0.46510303",
"0.4622991",
"0.46227825",
"0.4611364",
"0.46080032",
"0.45901322",
"0.45816845",
"0.4581111",
"0.45784464",
"0.45661694",
"0.45636198",
"0.45496383",
"0.45100117",
"0.45098636",
"0.44992676",
"0.44900796",
"0.44788086",
"0.44727993",
"0.4471777",
"0.44679698",
"0.4464422",
"0.446282",
"0.44579953",
"0.44560516",
"0.44478595",
"0.44464874",
"0.44453073",
"0.44192326",
"0.44089603",
"0.44018862",
"0.43795103",
"0.4367582",
"0.43615967",
"0.43615967",
"0.4344471",
"0.4342346",
"0.433559",
"0.43338835",
"0.43290442",
"0.43200985",
"0.43184435",
"0.4314838",
"0.43117544",
"0.43067035",
"0.42885068",
"0.428573",
"0.42786705",
"0.42738336",
"0.42716497",
"0.4269937",
"0.42662197",
"0.42652345",
"0.4265082",
"0.4258703",
"0.42536598",
"0.42512646",
"0.42456496",
"0.4242493",
"0.42339623",
"0.42283502",
"0.42260927",
"0.42240644",
"0.42209685",
"0.42194852",
"0.42147014",
"0.42136908",
"0.42124584",
"0.42078832",
"0.42022106",
"0.42016682",
"0.41996413",
"0.41941038",
"0.418702",
"0.418381",
"0.4179519",
"0.4177909",
"0.4176139",
"0.41723925",
"0.4169342",
"0.416917",
"0.41683537",
"0.41680324"
] | 0.834277 | 0 |
AtomicMatch is a paid mutator transaction binding the contract method 0xab834bab. Solidity: function atomicMatch_(address[14] addrs, uint256[18] uints, uint8[8] feeMethodsSidesKindsHowToCalls, bytes calldataBuy, bytes calldataSell, bytes replacementPatternBuy, bytes replacementPatternSell, bytes staticExtradataBuy, bytes staticExtradataSell, uint8[2] vs, bytes32[5] rssMetadata) returns() | func (_WyvernExchange *WyvernExchangeSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {
return _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) AtomicMatch(opts *bind.TransactOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"atomicMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (kc *Keychain) Match(owners *secp256k1fx.OutputOwners, time uint64) bool {\n\tif time < owners.Locktime || owners.Threshold != 1 || len(owners.Addrs) != 1 || !kc.Addrs.Contains(owners.Addrs[0]) {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) CalculateMatchPrice(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\treturn _WyvernExchange.Contract.CalculateMatchPrice(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func NewMatcher(\n\tlogger *zap.Logger,\n\tbc *bclient.BClient,\n\tabistr string,\n\tmethods,\n\tcontracts []string,\n) (*Matcher, error) {\n\tparsedABI, err := abi.JSON(strings.NewReader(abistr))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar (\n\t\twantMethods = make(map[string]bool)\n\t\twantContracts = make(map[common.Address]bool)\n\t)\n\tfor _, method := range methods {\n\t\twantMethods[method] = true\n\t}\n\tfor _, contract := range contracts {\n\t\twantContracts[common.HexToAddress(contract)] = true\n\t}\n\treturn &Matcher{\n\t\tl: logger.Named(\"txmatch\"),\n\t\tabi: parsedABI,\n\t\tbc: bc,\n\t\twantMethods: wantMethods,\n\t\twantContracts: wantContracts,\n\t}, nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) CalculateMatchPrice(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\treturn _WyvernExchange.Contract.CalculateMatchPrice(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (match RxMatch) Match(pkt *pktmbuf.Packet) bool {\n\treturn bool(C.EthRxMatch_Match((*C.EthRxMatch)(&match), (*C.struct_rte_mbuf)(pkt.Ptr())))\n}",
"func (a *CompositeMatcher) Match(info iresolver.RPCInfo) bool {\n\tif a.pm != nil && !a.pm.match(info.Method) {\n\t\treturn false\n\t}\n\n\t// Call headerMatchers even if md is nil, because routes may match\n\t// non-presence of some headers.\n\tvar md metadata.MD\n\tif info.Context != nil {\n\t\tmd, _ = metadata.FromOutgoingContext(info.Context)\n\t\tif extraMD, ok := grpcutil.ExtraMetadata(info.Context); ok {\n\t\t\tmd = metadata.Join(md, extraMD)\n\t\t\t// Remove all binary headers. They are hard to match with. May need\n\t\t\t// to add back if asked by users.\n\t\t\tfor k := range md {\n\t\t\t\tif strings.HasSuffix(k, \"-bin\") {\n\t\t\t\t\tdelete(md, k)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor _, m := range a.hms {\n\t\tif !m.Match(md) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tif a.fm != nil && !a.fm.match() {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (VirtualChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*VirtualChannelProposalAccMsg)\n\treturn ok\n}",
"func (_WyvernExchange *WyvernExchangeCaller) CalculateMatchPrice(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"calculateMatchPrice_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func make_agreement(ag *contract_api.SolidityContract, agID []byte, sig_hash string, sig string, counterparty string, shouldWork bool) {\n tx_delay_toleration := 120\n err := error(nil)\n\n log.Printf(\"Make an agreement with ID:%v\\n\", agID)\n p := make([]interface{},0,10)\n p = append(p, agID)\n p = append(p, sig_hash[2:])\n p = append(p, sig[2:])\n p = append(p, counterparty)\n if _, err = ag.Invoke_method(\"create_agreement\", p); err != nil {\n log.Printf(\"...terminating, could not invoke create_agreement: %v\\n\", err)\n os.Exit(1)\n }\n log.Printf(\"Create agreement %v invoked.\\n\", agID)\n\n var res interface{}\n p = make([]interface{},0,10)\n p = append(p, counterparty)\n p = append(p, agID)\n byte_hash, _ := hex.DecodeString(sig_hash[2:])\n log.Printf(\"Binary Hash is: %v\\n\", byte_hash)\n start_timer := time.Now()\n for {\n if shouldWork {\n fmt.Printf(\"There should be a recorded contract hash, but it might be in a block we can't read yet.\\n\")\n } else {\n fmt.Printf(\"There should NOT be a recorded contract hash.\\n\")\n }\n if res, err = ag.Invoke_method(\"get_contract_hash\", p); err == nil {\n fmt.Printf(\"Received contract hash:%v.\\n\",res)\n if bytes.Compare([]byte(res.(string)), byte_hash) != 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n if shouldWork {\n fmt.Printf(\"Timeout waiting for the Update.\\n\")\n os.Exit(1)\n } else {\n fmt.Printf(\"Timeout waiting for the Update. This is expected.\\n\")\n break\n }\n }\n } else {\n if shouldWork {\n log.Printf(\"Created agreement %v.\\n\", agID)\n break\n } else {\n fmt.Printf(\"Received contract hash. This is NOT expected: %v\\n\", res.(string))\n os.Exit(2)\n }\n }\n } else {\n fmt.Printf(\"Error on get_contract_hash: %v\\n\",err)\n os.Exit(1)\n }\n }\n}",
"func (s *PublicMatchService) Matches(params *PublicMatchParam) ([]PublicMatch, *http.Response, error) {\n\tpublicmatches := new([]PublicMatch)\n\tapiError := new(APIError)\n\tresp, err := s.sling.New().QueryStruct(params).Receive(publicmatches, apiError)\n\treturn *publicmatches, resp, relevantError(err, *apiError)\n}",
"func (qi *QueryItem) Matches(a Address, ts []Tag) bool {\n\treturn (qi.Address != 0 && qi.Address == a) || (qi.Tag != \"\" && containsTag(ts, qi.Tag))\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) ApproveAndCall(opts *bind.TransactOpts, spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approveAndCall\", spender, tokens, data)\n}",
"func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n \n fn, args := stub.GetFunctionAndParameters()\n\n if fn == \"AddComponent\" {\n return s.AddComponent(stub, args)\n } else if fn == \"InitLedger\" {\n return s.InitLedger(stub)\n } else if fn == \"QueryCar\" {\n return s.QueryCar(stub, args)\n } else if fn == \"QueryComponent\" {\n return s.QueryComponent(stub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name.\")\n \n}",
"func TestMatchAccountless(t *testing.T) {\n\tConvey(\"Given a state with an idle worker\", t, func() {\n\t\tctx := context.Background()\n\t\ttm := time.Unix(0, 0)\n\t\ts := scheduler.New(tm)\n\t\twid := scheduler.WorkerID(\"worker\")\n\t\ts.MarkIdle(ctx, wid, nil, tm, scheduler.NullEventSink)\n\n\t\tConvey(\"and a request with no account\", func() {\n\t\t\trid := scheduler.RequestID(\"req\")\n\t\t\ts.AddRequest(ctx, scheduler.NewTaskRequest(rid, \"\", nil, nil, tm), tm, nil, scheduler.NullEventSink)\n\t\t\tConvey(\"when scheduling is run\", func() {\n\t\t\t\tmuts := s.RunOnce(ctx, scheduler.NullEventSink)\n\t\t\t\tConvey(\"then the request is matched at lowest priority.\", func() {\n\t\t\t\t\tSo(muts, ShouldHaveLength, 1)\n\t\t\t\t\tSo(muts[0].Priority, ShouldEqual, scheduler.FreeBucket)\n\t\t\t\t\tSo(muts[0].RequestID, ShouldEqual, rid)\n\t\t\t\t\tSo(muts[0].WorkerID, ShouldEqual, wid)\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t})\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrderCalldataCanMatch(buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrderCalldataCanMatch(&_WyvernExchange.CallOpts, buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrderCalldataCanMatch(buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrderCalldataCanMatch(&_WyvernExchange.CallOpts, buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n}",
"func (IsAccountActor) IsMatch(ctx runtime.PatternContext) bool {\n\treturn types.AccountActorCodeCid.Equals(ctx.Code())\n}",
"func (m *fetchMetadataReqMatcher) matchesV1(x interface{}) bool {\n\treq, ok := x.(*rpc.FetchBlocksMetadataRawRequest)\n\tif !ok {\n\t\treturn false\n\t}\n\n\tif m.shard != req.Shard {\n\t\treturn false\n\t}\n\n\tif m.limit != req.Limit {\n\t\treturn false\n\t}\n\n\tif m.pageToken == nil {\n\t\tif req.PageToken != nil {\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\tif req.PageToken == nil {\n\t\t\treturn false\n\t\t}\n\t\tif *req.PageToken != *m.pageToken {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tif m.includeSizes == nil {\n\t\tif req.IncludeSizes != nil {\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\tif req.IncludeSizes == nil {\n\t\t\treturn false\n\t\t}\n\t\tif *req.IncludeSizes != *m.includeSizes {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func (s *Plugin) Match(ctx context.Context, request *interact.Request, condition *v1alpha1.MockAPI_Condition) (match bool, err error) {\n\tsimple := condition.GetSimple()\n\tif simple == nil {\n\t\treturn false, nil\n\t}\n\tc := core.NewContext(request)\n\tfor _, item := range simple.Items {\n\t\toperandX := core.Render(c, item.OperandX)\n\t\toperandY := core.Render(c, item.OperandY)\n\t\tmatched, err := core.Match(operandX, item.Operator, operandY)\n\t\tif err != nil {\n\t\t\treturn false, err\n\t\t}\n\t\tif item.Opposite {\n\t\t\tmatched = !matched\n\t\t}\n\t\tif matched {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t} else {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn false, nil\n\t\t}\n\t}\n\treturn true, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) ApproveAndCall(spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.ApproveAndCall(&_FixedSupplyToken.TransactOpts, spender, tokens, data)\n}",
"func atomicSwapContract(pkhMe, pkhThem *[ripemd160.Size]byte, locktime int64, secretHash []byte) ([]byte, error) {\n\tbuilder := txscript.NewScriptBuilder()\n\n\tbuilder.AddOp(txscript.OP_IF) // if top of stack value is not False, execute. The top stack value is removed.\n\t{\n\t\t// require initiator's secret to be a known length that the redeeming party can audit.\n\t\t// this is used to prevent fraud attacks between 2 currencies that have different maximum data sizes\n\t\tbuilder.AddOp(txscript.OP_SIZE) // pushes the string length of the top element of the stack (without popping it)\n\t\tbuilder.AddInt64(secretSize) // pushes initiator secret length\n\t\tbuilder.AddOp(txscript.OP_EQUALVERIFY) // if inputs are equal, mark tx as valid\n\n\t\t// require initiator's secret to be known to redeem the output\n\t\tbuilder.AddOp(txscript.OP_SHA256) // pushes the length of a SHA25 size\n\t\tbuilder.AddData(secretHash) // push the data to the end of the script\n\t\tbuilder.AddOp(txscript.OP_EQUALVERIFY) // if inputs are equal, mark tx as valid\n\n\t\t// verify their signature is used to redeem the ouput\n\t\t// normally it ends with OP_EQUALVERIFY OP_CHECKSIG but\n\t\t// this has been moved outside of the branch to save a couple bytes\n\t\tbuilder.AddOp(txscript.OP_DUP) // duplicates the stack of the top item\n\t\tbuilder.AddOp(txscript.OP_HASH160) // input has been hashed with SHA-256 and then with RIPEMD160 after\n\t\tbuilder.AddData(pkhThem[:]) // push the data to the end of the script\n\t}\n\n\tbuilder.AddOp(txscript.OP_ELSE) // refund path\n\t{\n\t\t// verify the locktime & drop if off the stack\n\t\tbuilder.AddInt64(locktime) // pushes locktime\n\t\tbuilder.AddOp(txscript.OP_CHECKLOCKTIMEVERIFY) // verify locktime\n\t\tbuilder.AddOp(txscript.OP_DROP) // remove the top stack item (locktime)\n\n\t\t// verify our signature is being used to redeem the output\n\t\t// normally it ends with OP_EQUALVERIFY OP_CHECKSIG but\n\t\t// this has been moved outside of the branch to save a couple bytes\n\t\tbuilder.AddOp(txscript.OP_DUP) // duplicates the stack of the top item\n\t\tbuilder.AddOp(txscript.OP_HASH160) // input has been hashed with SHA-256 and then with RIPEMD160 after\n\t\tbuilder.AddData(pkhMe[:]) // push the data to the end of the script\n\n\t}\n\tbuilder.AddOp(txscript.OP_ENDIF) // all blocks must end, or the transaction is invalid\n\n\t// returns 1 if the inputs are exactly equal, 0 otherwise.\n\t// mark transaction as invalid if top of stack is not true. The top stack value is removed.\n\tbuilder.AddOp(txscript.OP_EQUALVERIFY)\n\n\t// The entire transaction's outputs, inputs, and script are hashed.\n\t// The signature used by OP_CHECKSIG must be a valid signature for this hash\n\t// and public key. If it is, 1 is returned, 0 otherwise.\n\tbuilder.AddOp(txscript.OP_CHECKSIG)\n\treturn builder.Script()\n}",
"func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approveAndCall\", _spender, _amount, _extraData)\n}",
"func (t Term) Match(args ...interface{}) Term {\n\treturn constructMethodTerm(t, \"Match\", p.Term_MATCH, args, map[string]interface{}{})\n}",
"func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approveAndCall\", _spender, _value, _extraData)\n}",
"func (LedgerChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*LedgerChannelProposalAccMsg)\n\treturn ok\n}",
"func containCall(name string, args ...interface{}) types.GomegaMatcher {\n\treturn &containsCallMatcher{mock.Call{\n\t\tMethod: name,\n\t\tArguments: args,\n\t}}\n}",
"func (t *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n // Extract the function and args from the transaction proposal\n fn, args := stub.GetFunctionAndParameters()\n\n var result string\n var err error\n if fn == \"set\" {\n result, err = set(stub, args)\n\n } else if fn == \"get\"{ // assume 'get' even if fn is nil\n result, err = get(stub, args)\n } else if fn == \"getHistory\"{\n \treturn getHistory(stub, args)\n } else if fn == \"getall\"{\n \treturn getall(stub)\n }\n if err != nil {\n return shim.Error(err.Error())\n }\n return shim.Success([]byte(result))\n\n}",
"func (r *Attestor) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalAttestor(b, c, r)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (m *matcher) Matches(x interface{}) bool {\n\td1 := m.StoredData\n\td2, ok := x.(*repo.StoredData)\n\tif !ok {\n\t\treturn false\n\t}\n\n\treturn d1.Data == d2.Data && d1.ID == d2.ID\n}",
"func (m AllKeysMatcher) Match(key string, attributes map[string]interface{}, bucketingKey *string) bool {\n\treturn true\n}",
"func TestHandler_FetchAtxReferences(t *testing.T) {\n\tgoldenATXID := types.ATXID{2, 3, 4}\n\n\tsig, err := signing.NewEdSigner()\n\trequire.NoError(t, err)\n\n\tposATX := types.ATXID{1, 2, 3}\n\tprevATX := types.ATXID{4, 5, 6}\n\tcommitATX := types.ATXID{7, 8, 9}\n\n\tt.Run(\"valid prev and pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), gomock.InAnyOrder([]types.ATXID{atx.PositioningATX, atx.PrevATXID})).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"valid prev ATX and golden pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, goldenATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"valid prev ATX and empty pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, types.EmptyATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, valid pos ATX and valid commitment ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\t\tatx.CommitmentATX = &commitATX\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), gomock.InAnyOrder([]types.ATXID{atx.PositioningATX, *atx.CommitmentATX})).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, valid pos ATX and golden commitment ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\t\tatx.CommitmentATX = &goldenATXID\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PositioningATX}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, empty pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, types.EmptyATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"same prev and pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, prevATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n}",
"func TestPackShareSwapSharesDoNotMatch(t *testing.T) {\n\n\townerOneAccount := makeAccount(ownerOne.publicKey)\n\townerTwoAccount := makeAccount(ownerTwo.publicKey)\n\n\tvar shareIdOne merkle.Digest\n\terr := merkleDigestFromLE(\"630c041cd1f586bcb9097e816189185c1e0379f67bbfc2f0626724f542047873\", &shareIdOne)\n\tif nil != err {\n\t\tt.Fatalf(\"hex to shareIdOne error: %s\", err)\n\t}\n\n\tvar shareIdTwo merkle.Digest\n\terr = merkleDigestFromLE(\"630c041cd1f586bcb9097e816189185c1e0379f67bbfc2f0626724f542047873\", &shareIdTwo)\n\tif nil != err {\n\t\tt.Fatalf(\"hex to shareIdTwo error: %s\", err)\n\t}\n\n\tr := transactionrecord.ShareSwap{\n\t\tShareIdOne: shareIdOne,\n\t\tQuantityOne: 129,\n\t\tOwnerOne: ownerOneAccount,\n\t\tShareIdTwo: shareIdTwo,\n\t\tQuantityTwo: 215,\n\t\tOwnerTwo: ownerTwoAccount,\n\t}\n\n\texpected := []byte{\n\t\t0x0a, 0x20, 0x63, 0x0c, 0x04, 0x1c, 0xd1, 0xf5,\n\t\t0x86, 0xbc, 0xb9, 0x09, 0x7e, 0x81, 0x61, 0x89,\n\t\t0x18, 0x5c, 0x1e, 0x03, 0x79, 0xf6, 0x7b, 0xbf,\n\t\t0xc2, 0xf0, 0x62, 0x67, 0x24, 0xf5, 0x42, 0x04,\n\t\t0x78, 0x73, 0x81, 0x01, 0x21, 0x13, 0x27, 0x64,\n\t\t0x0e, 0x4a, 0xab, 0x92, 0xd8, 0x7b, 0x4a, 0x6a,\n\t\t0x2f, 0x30, 0xb8, 0x81, 0xf4, 0x49, 0x29, 0xf8,\n\t\t0x66, 0x04, 0x3a, 0x84, 0x1c, 0x38, 0x14, 0xb1,\n\t\t0x66, 0xb8, 0x89, 0x44, 0xb0, 0x92, 0x20, 0x63,\n\t\t0x0c, 0x04, 0x1c, 0xd1, 0xf5, 0x86, 0xbc, 0xb9,\n\t\t0x09, 0x7e, 0x81, 0x61, 0x89, 0x18, 0x5c, 0x1e,\n\t\t0x03, 0x79, 0xf6, 0x7b, 0xbf, 0xc2, 0xf0, 0x62,\n\t\t0x67, 0x24, 0xf5, 0x42, 0x04, 0x78, 0x73, 0xd7,\n\t\t0x01, 0x21, 0x13, 0xa1, 0x36, 0x32, 0xd5, 0x42,\n\t\t0x5a, 0xed, 0x3a, 0x6b, 0x62, 0xe2, 0xbb, 0x6d,\n\t\t0xe4, 0xc9, 0x59, 0x48, 0x41, 0xc1, 0x5b, 0x70,\n\t\t0x15, 0x69, 0xec, 0x99, 0x99, 0xdc, 0x20, 0x1c,\n\t\t0x35, 0xf7, 0xb3, 0x00,\n\t}\n\n\t// manually sign the record and attach signature to \"expected\"\n\tsignature := ed25519.Sign(ownerOne.privateKey, expected)\n\tr.Signature = signature\n\tl := util.ToVarint64(uint64(len(signature)))\n\texpected = append(expected, l...)\n\texpected = append(expected, signature...)\n\n\t// manually countersign the record and attach countersignature to \"expected\"\n\tsignature = ed25519.Sign(ownerTwo.privateKey, expected)\n\tr.Countersignature = signature\n\n\t// test the packer\n\t_, err = r.Pack(ownerOneAccount)\n\tif fault.ShareIdsCannotBeIdentical != err {\n\t\tt.Fatalf(\"unexpected pack error: %s\", err)\n\t}\n}",
"func (r *Attestor) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalAttestor(b, c)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _amount, _extraData)\n}",
"func (IsAccountActor) IsMatch(ctx runtime.PatternContext) bool {\n\treturn builtin.IsAccountActor(ctx.CallerCode())\n}",
"func (state *ComputePeerState) Eqz (action *sproto.Action) (*sproto.Response) {\n //fmt.Println(\"Comparing values\")\n result := *action.Result\n share0 := *action.Share0\n share0val, hasShare0Val := state.SharesGet(share0)\n rcode := *action.RequestCode\n if !hasShare0Val {\n return state.failResponse (action.GetRequestCode())\n }\n res := state.neqz(share0val, rcode)\n one := int64(1) \n res = core.Sub(one, res)\n state.SharesSet(result, res)\n //fmt.Printf(\"Done testing value for zero\\n\")\n return state.okResponse (action.GetRequestCode())\n}",
"func (o *MakeStdUpdateArgsObjMatcher) Matches(arg interface{}) bool {\n\tassert := assert.New(o.t)\n\tswitch x := arg.(type) {\n\tcase *int32: // version\n\t\treturn assert.Equal(o.ver, *x, \"MSUA version match\")\n\tcase string: // id\n\t\treturn assert.Equal(o.id, x, \"MSUA id match\")\n\tcase [centrald.NumActionTypes][]string:\n\t\treturn assert.Equal(o.fields, x, \"MSUA fields match\")\n\tdefault: // object - only match type\n\t\treturn assert.IsType(o.obj, x, \"MSUA object type match\")\n\t}\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryPatent\" {\n\t\treturn s.queryPatent(APIstub, args)\n\t} else if function == \"initLedger\" {\n\t\treturn s.initLedger(APIstub)\n\t} else if function == \"recordPatent\" {\n\t\treturn s.recordPatent(APIstub, args)\n\t} else if function == \"queryAllPatents\" {\n\t\treturn s.queryAllPatents(APIstub)\n\t} else if function == \"validatePatent\" {\n\t\treturn s.validatePatent(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) ApproveAndCall(spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.ApproveAndCall(&_FixedSupplyToken.TransactOpts, spender, tokens, data)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n fmt.Println(\"Calling Invoke method.\")\n\n // Retrieve the requested Smart Contract function and arguments\n function, args := APIstub.GetFunctionAndParameters()\n fmt.Println(\"Function name: \" + function)\n\n // Route to the appropriate handler function to interact with the ledger appropriately\n if function == \"queryAsset\" {\n return s.queryAsset(APIstub, args)\n } else if function == \"makeAsset\" {\n return s.makeAsset(APIstub, args)\n } else if function == \"changeAsset\" {\n return s.changeAsset(APIstub, args)\n } else if function == \"deleteAsset\" {\n return s.deleteAsset(APIstub, args)\n } else if function == \"listHistory\" {\n return s.listHistory(APIstub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _value, _extraData)\n}",
"func MatchOrdersInternally(buy *Order, sell *Order) *Trade {\n\tbuyState := buy.GetState()\n\tsellState := sell.GetState()\n\n\t// Sanity checks\n\tif buyState.State == OrderStateCreated {\n\t\tpanic(\"buy order incorect state: created\")\n\t} else if buyState.State == OrderStateFilled {\n\t\tpanic(\"buy order incorect state: filled\")\n\t} else if buyState.State == OrderStateCancelled {\n\t\tpanic(\"buy order incorect state: cancelled\")\n\t} else if sellState.State == OrderStateCreated {\n\t\tpanic(\"sell order incorect state: created\")\n\t} else if sellState.State == OrderStateFilled {\n\t\tpanic(\"sell order incorect state: filled\")\n\t} else if sellState.State == OrderStateCancelled {\n\t\tpanic(\"sell order incorect state: cancelled\")\n\t}\n\tif buy.Ticker != sell.Ticker {\n\t\tpanic(\"cant match orders with different tickers\")\n\t}\n\n\t// Main procedure\n\tvar extTime time.Time\n\tvar buyInit bool\n\tvar matchVolume float64\n\tvar price float64\n\n\t// Get match time\n\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\textTime = buyState.TimeExt\n\t} else {\n\t\textTime = sellState.TimeExt\n\t}\n\n\t// Get init order\n\tif buyState.TimeExt != sellState.TimeExt {\n\t\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t} else {\n\t\tif buyState.Time.After(sellState.Time) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t}\n\n\t// Price\n\tif buyInit {\n\t\tprice = sell.Price\n\t} else {\n\t\tprice = buy.Price\n\t}\n\n\t// Volume matched\n\tif sellState.Balance > buyState.Balance {\n\t\tmatchVolume = buyState.Balance\n\t} else {\n\t\tmatchVolume = sellState.Balance\n\t}\n\n\ttrade := &Trade{\n\t\tTicker: buy.Ticker,\n\t\tTime: time.Now(),\n\t\tTimeExt: extTime,\n\t\tBuyInitiated: buyInit,\n\t\tVolume: matchVolume,\n\t\tPrice: price,\n\t}\n\tsell.RecordTrade(trade)\n\tbuy.RecordTrade(trade)\n\n\treturn trade\n}",
"func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\r\n\tfunction, args := stub.GetFunctionAndParameters()\r\n\r\n\t// Handle invoke functions\r\n\tif function == \"init\" { // initialise the chaincode state\r\n\t\treturn s.Init(stub)\r\n\t} else if function == \"recordAttendance\" { // create an attendance record\r\n\t\treturn recordAttendance(stub, args)\r\n\t} else if function == \"verifyAttendance\" { // verify if attendance exists\r\n\t\treturn verifyAttendance(stub, args)\r\n\t} else if function == \"readAttendance\" { // get a particular attendance record by its transaction key\r\n\t\treturn readAttendance(stub, args)\r\n\t}\r\n\r\n\treturn shim.Error(\"Invalid Smart Contract function name\")\r\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n //args := APIstub.GetFunctionAndParameters()\n args := APIstub.GetStringArgs()\n function := args[0]\n if function == \"addRecord\" {\n return s.addRecord(APIstub, args)\n } else if function == \"getRecord\" {\n return s.getRecord(APIstub, args)\n } else if function == \"encRecord\" {\n return s.encRecord(APIstub, args)\n } else if function == \"decRecord\" {\n return s.decRecord(APIstub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name \"+function)\n}",
"func (a AnyArgument) Match(v driver.Value) bool {\n\treturn true\n}",
"func (a AnyArgument) Match(v driver.Value) bool {\n\treturn true\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryID\" {\n\t\treturn s.queryID(APIstub,args)\n\t}else if function == \"createBirth\" {\n\t\treturn s.createBirth(APIstub, args)\n\t}else if function == \"createHuman\" {\n\t\treturn s.createHuman(APIstub, args)\n\t}else if function == \"marry\" {\n\t\treturn s.marry(APIstub, args)\n\t}else if function == \"marryCheck\" {\n\t\treturn s.marryCheck(APIstub, args)\n\t}else if function == \"divorceCheck\" {\n\t\treturn s.divorceCheck(APIstub, args)\n\t}else if function == \"divorce\" {\n\t\treturn s.divorce(APIstub, args)\n\t}else if function == \"createCheck\" {\n\t\treturn s.createCheck(APIstub, args)\n\t}else if function == \"queryMarryCheck\" {\n\t\treturn s.queryMarryCheck(APIstub,args)\n\t}else if function == \"queryCreatCheck\" {\n\t\treturn s.queryCreatCheck(APIstub,args)\n\t}\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n\t\n}",
"func (_EthCrossChain *EthCrossChainTransactor) SyncAndVerify(opts *bind.TransactOpts, rawHeader []byte, sigList []byte, proof [][32]byte, position []uint8, toMerkleValueBs []byte, blockHeight uint64) (*types.Transaction, error) {\n\treturn _EthCrossChain.contract.Transact(opts, \"SyncAndVerify\", rawHeader, sigList, proof, position, toMerkleValueBs, blockHeight)\n}",
"func (s Signals) MatchesAll(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !s.Enabled() {\n\t\treturn false, fmt.Sprintf(\"no %s signals provided to match against\", tag), nil\n\t}\n\n\tsignals := []Signal{\n\t\t&s.Labels,\n\t\t&s.CommentSubstrings,\n\t\t&s.Comments,\n\t\t&s.PRBodySubstrings,\n\t\t&s.Branches,\n\t\t&s.BranchPatterns,\n\t\t&s.MaxCommits,\n\t\t&s.AutoMerge,\n\t}\n\n\tfor _, signal := range signals {\n\t\tif signal.Enabled() {\n\t\t\tmatches, _, err := signal.Matches(ctx, pullCtx, tag)\n\t\t\tif err != nil {\n\t\t\t\treturn false, \"\", err\n\t\t\t}\n\n\t\t\tif !matches {\n\t\t\t\treturn false, fmt.Sprintf(\"pull request does not match all %s signals\", tag), nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn true, fmt.Sprintf(\"pull request matches all %s signals\", tag), nil\n}",
"func (cc PipConstraints) Match(ver Version) bool {\n\tfor _, and := range cc.constraints {\n\t\tif !and.match(ver) {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"func (m StructMatcher) Match(got reflect.Value, d data.Data, r Region) (data.Data, bool) {\n\tif m.Type != got.Type() {\n\t\treturn d, false\n\t}\n\tfor i, f := range m.Fields {\n\t\tvar ok bool\n\t\td, ok = f.Match(got.Field(i), d, r)\n\t\tif !ok {\n\t\t\treturn d, false\n\t\t}\n\t}\n\treturn d, true\n}",
"func (signal BranchesSignal) Matches(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !signal.Enabled() {\n\t\treturn false, \"\", nil\n\t}\n\n\ttargetBranch, _ := pullCtx.Branches()\n\n\tfor _, signalBranch := range signal {\n\t\tif targetBranch == signalBranch {\n\t\t\treturn true, fmt.Sprintf(\"pull request target is a %s branch: %q\", tag, signalBranch), nil\n\t\t}\n\t}\n\n\treturn false, \"\", nil\n}",
"func (signal BranchPatternsSignal) Matches(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !signal.Enabled() {\n\t\treturn false, \"\", nil\n\t}\n\n\ttargetBranch, _ := pullCtx.Branches()\n\n\tfor _, signalBranch := range signal {\n\t\tif matched, _ := regexp.MatchString(fmt.Sprintf(\"^%s$\", signalBranch), targetBranch); matched {\n\t\t\treturn true, fmt.Sprintf(\"pull request target branch (%q) matches pattern: %q\", targetBranch, signalBranch), nil\n\t\t}\n\t}\n\n\treturn false, \"\", nil\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\r\n \r\n // Retrieve the requested Smart Contract function and arguments\r\n function, args := APIstub.GetFunctionAndParameters()\r\n // Route to the appropriate handler function to interact with the ledger appropriately\r\n if function == \"registerCar\" {\r\n return s.registerCar(APIstub, args)\r\n } else if function == \"createCar\" {\r\n return s.createCar(APIstub, args)\r\n } else if function == \"getCarHistory\" {\r\n return s.getCarHistory(APIstub,args)\r\n } else if function == \"changeCarOwner\" {\r\n return s.changeCarOwner(APIstub, args)\r\n } else if function == \"getCar\" {\r\n return s.getCar(APIstub, args)\r\n } else if function == \"scrapCar\" {\r\n return s.scrapCar(APIstub, args)\r\n }\r\n \r\n return shim.Error(\"Invalid Smart Contract function name.\")\r\n }",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MainnetCryptoCardsContract.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func bitcoinCall(method string, params []interface{}, reply interface{}) error {\n\tif !globalData.initialised {\n\t\tfault.Panic(\"bitcoin not initialised\")\n\t}\n\n\tglobalData.id += 1\n\n\targuments := bitcoinArguments{\n\t\tId: globalData.id,\n\t\tMethod: method,\n\t\tParams: params,\n\t}\n\tresponse := bitcoinReply{\n\t\tResult: reply,\n\t}\n\tglobalData.log.Debugf(\"rpc call with: %v\", arguments)\n\terr := bitcoinRPC(&arguments, &response)\n\tif nil != err {\n\t\tglobalData.log.Tracef(\"rpc returned error: %v\", err)\n\t\treturn err\n\t}\n\n\tif nil != response.Error {\n\t\ts := response.Error.Message\n\t\treturn fault.ProcessError(\"Bitcoin RPC error: \" + s)\n\t}\n\treturn nil\n}",
"func (o *UpdateArgsMatcher) Matches(x interface{}) bool {\n\tassert := assert.New(o.t)\n\tua, ok := x.(*centrald.UpdateArgs)\n\tif !ok {\n\t\tassert.True(ok, \"argument ISA *centrald.UpdateArgs\")\n\t\treturn false\n\t}\n\tif o.ua.ID != ua.ID {\n\t\tassert.Equal(o.ua.ID, ua.ID, \"UAMatcher: ID same\")\n\t\treturn false\n\t}\n\tif o.versionAdded != 0 {\n\t\tassert.Zero(o.ua.Version, \"UAMatcher: Version should not be specified in params\")\n\t\tassert.NotZero(ua.Version, \"UAMatcher: Version should be added\")\n\t} else if o.ua.Version != ua.Version {\n\t\tassert.Equal(o.ua.Version, ua.Version, \"UAMatcher: Version same\")\n\t\treturn false\n\t}\n\tif o.ua.HasChanges != ua.HasChanges {\n\t\tassert.Equal(o.ua.HasChanges, ua.HasChanges, \"UAMatcher: HasChanges same\")\n\t\treturn false\n\t}\n\tif len(o.ua.Attributes) != len(ua.Attributes) {\n\t\tassert.Len(ua.Attributes, len(o.ua.Attributes), \"UAMatcher: Attributes length the same\")\n\t\treturn false\n\t}\n\t// the array elements are in arbitrary Name order\n\tfor _, oAttr := range o.ua.Attributes {\n\t\tvar attr *centrald.UpdateAttr\n\t\tfor _, a := range ua.Attributes {\n\t\t\tif a.Name == oAttr.Name {\n\t\t\t\tattr = &a\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\tif attr != nil {\n\t\t\tif !reflect.DeepEqual(oAttr, *attr) {\n\t\t\t\tassert.Equal(oAttr, *attr)\n\t\t\t\treturn false\n\t\t\t}\n\t\t} else {\n\t\t\tassert.NotNil(attr, \"UAMatcher: attribute \"+oAttr.Name+\" present\")\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"func (g *exprGuard) matches(pt models.Point) bool {\n\tswitch {\n\tcase g == nil:\n\t\treturn true\n\n\tcase g.and != nil:\n\t\treturn g.and[0].matches(pt) && g.and[1].matches(pt)\n\n\tcase g.or != nil:\n\t\treturn g.or[0].matches(pt) || g.or[1].matches(pt)\n\n\tcase g.tagMatches != nil:\n\t\tif g.tagMatches.meas {\n\t\t\treturn g.tagMatches.op(pt.Name())\n\t\t}\n\t\tfor _, tag := range pt.Tags() {\n\t\t\tif bytes.Equal(tag.Key, g.tagMatches.key) && g.tagMatches.op(tag.Value) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\n\tcase g.tagExists != nil:\n\t\tfor _, tag := range pt.Tags() {\n\t\t\tif _, ok := g.tagExists[string(tag.Key)]; ok {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\n\tdefault:\n\t\treturn false\n\t}\n}",
"func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _amount, _extraData)\n}",
"func (t *Transaction) MatchWith(other *Transaction) error {\n\tif t.tp == other.tp {\n\t\treturn errors.New(\"trans: Non-complementary transaction types\")\n\t}\n\n\tif t.tp == Offer {\n\t\tt.Req = other.Req\n\t\tother.Sup = t.Sup\n\t} else {\n\t\tt.Sup = other.Sup\n\t\tother.Req = t.Req\n\t}\n\treturn nil\n}",
"func GetDelegatedContractsForCycle(cycle int, delegateAddr string) ([]string, error){\n var rtnString []string\n snapShot, err := GetSnapShot(cycle)\n // fmt.Println(snapShot)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": GetSnapShot(cycle int) failed: \" + err.Error())\n }\n hash, err:= GetBlockLevelHash(snapShot.AssociatedBlock)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": GetBlockLevelHash(level int) failed: \" + err.Error())\n }\n // fmt.Println(hash)\n getDelegatedContracts := \"/chains/main/blocks/\" + hash + \"/context/delegates/\" + delegateAddr + \"/delegated_contracts\"\n\n s, err := TezosRPCGet(getDelegatedContracts)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": TezosRPCGet(arg string) failed: \" + err.Error())\n }\n\n DelegatedContracts := reDelegatedContracts.FindAllStringSubmatch(s, -1)\n if (DelegatedContracts == nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": You have no contracts.\")\n }\n rtnString = addressesToArray(DelegatedContracts)\n return rtnString, nil\n}",
"func (cs CredentialsStatus) Match(secret corev1.Secret) bool {\n\tswitch {\n\tcase cs.Reference == nil:\n\t\treturn false\n\tcase cs.Reference.Name != secret.ObjectMeta.Name:\n\t\treturn false\n\tcase cs.Reference.Namespace != secret.ObjectMeta.Namespace:\n\t\treturn false\n\tcase cs.Version != secret.ObjectMeta.ResourceVersion:\n\t\treturn false\n\t}\n\treturn true\n}",
"func Matches(pattern string, operand string) (bool, error) {\n\treturn regexp.MatchString(pattern, operand)\n}",
"func (a *Asserter) BalanceEq(addr address.Address, expected abi.TokenAmount) {\n\tst := a.suppliers.stateTracker()\n\tactor, err := st.StateTree.GetActor(addr)\n\ta.NoError(err, \"failed to fetch actor %s from state\", addr)\n\ta.Equal(expected, actor.Balance, \"balances mismatch for address %s\", addr)\n}",
"func terminate_agreement(ag *contract_api.SolidityContract, agID []byte, counterParty string, shouldWork bool) {\n log.Printf(\"Terminating agreement %v.\\n\", agID)\n tx_delay_toleration := 120\n err := error(nil)\n\n p := make([]interface{},0,10)\n p = append(p, counterParty)\n p = append(p, agID)\n p = append(p, 1)\n if _, err = ag.Invoke_method(\"terminate_agreement\", p); err != nil {\n log.Printf(\"...terminating, could not invoke terminate_agreement: %v\\n\", err)\n os.Exit(1)\n }\n log.Printf(\"Terminate agreement %v invoked.\\n\", agID)\n\n p = make([]interface{},0,10)\n p = append(p, counterParty)\n p = append(p, agID)\n empty_bytes := make([]byte, 32)\n var res interface{}\n start_timer := time.Now()\n for {\n fmt.Printf(\"There should NOT be a recorded contract hash, but it might still be visible for a few blocks.\\n\")\n if res, err = ag.Invoke_method(\"get_contract_hash\", p); err == nil {\n fmt.Printf(\"Received contract hash:%v.\\n\",res)\n if shouldWork {\n if bytes.Compare([]byte(res.(string)), empty_bytes) != 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n fmt.Printf(\"Timeout waiting for the Update.\\n\")\n os.Exit(1)\n }\n } else {\n log.Printf(\"Terminated agreement %v.\\n\", agID)\n break\n }\n } else {\n if bytes.Compare([]byte(res.(string)), empty_bytes) == 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n fmt.Printf(\"Timeout waiting for the Update. This is expected\\n\")\n break\n }\n } else {\n fmt.Printf(\"Received contract hash. This is NOT expected: %v\\n\", res.(string))\n os.Exit(2)\n }\n }\n } else {\n fmt.Printf(\"Error on get_contract_hash: %v\\n\",err)\n os.Exit(1)\n }\n }\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tswitch function {\n\tcase \"initToken\":\n\t\treturn s.initLedger(APIstub, args)\n\tcase \"queryTotalAmount\":\n\t\treturn s.queryTotalAmount(APIstub)\n\tcase \"queryTokenName\":\n\t\treturn s.queryTokenName(APIstub)\n\tcase \"queryTokenSymbol\":\n\t\treturn s.queryTokenSymbol(APIstub)\n\tcase \"queryReserve\":\n\t\treturn s.queryReserve(APIstub)\n\tcase \"createAccount\":\n\t\treturn s.createAccount(APIstub, args)\n\tcase \"balanceOf\":\n\t\treturn s.queryValue(APIstub, args)\n\tcase \"transfer\":\n\t\treturn s.transfer(APIstub, args)\n\tcase \"buyToken\":\n\t\tnewArgs := []string{\"admin\",args[1],args[0],args[2]}\n\t\treturn s.transfer(APIstub, newArgs)\n\tcase \"sellToken\":\n\t\tnewArgs := []string{args[0],args[1],\"admin\",args[2]}\n\t\treturn s.transfer(APIstub, newArgs)\n\tcase \"mintToken\":\n\t\treturn s.mintTokens(APIstub, args)\n\tcase \"burnToken\":\n\t\treturn s.burnTokens(APIstub, args)\n\tcase \"approve\":\n\t\treturn s.approve(APIstub, args)\n\tcase \"allowance\":\n\t\treturn s.queryAllowance(APIstub, args)\n\tcase \"increaseAllowance\":\n\t\treturn s.increaseAllowance(APIstub, args)\n\tcase \"decreaseAllowance\":\n\t\treturn s.decreaseAllowance(APIstub, args)\n\tcase \"transferFrom\":\n\t\treturn s.transferFrom(APIstub, args)\n\t}\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (m MatcherFunc) Matches(endpoint Endpoint) (bool, error) {\n\treturn m(endpoint)\n}",
"func (t *myChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error) {\n switch function {\n\n case \"create\":\n if len(args) < 4{\n return nil, errors.New(\"create operation must include at last four arguments, a uuid , a from , a to and timestamp\")\n }\n // get the args\n uuid := args[0]\n fromid := args[1]\n toid := args[2]\n timestamp := args[3]\n metadata := args[4]\n history := fromid\n owner := fromid\n status := \"0\"\n createtm := timestamp\n submittm := \"0\"\n confirmtm := \"0\"\n\n //TODO: need some check for fromid and data\n //check fromid and toid\n if fromid == toid {\n return nil, errors.New(\"create operation failed, fromid is same with toid\")\n }\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n \n //check for existence of the bill\n oldvalue, err := stub.GetState(uuid)\n if err != nil {\n return nil, fmt.Errorf(\"create operation failed. Error accessing state(check the existence of bill): %s\", err)\n }\n if oldvalue != nil {\n return nil, fmt.Errorf(\"existed bill!\")\n } \n\n key := uuid\n value := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"value is %s\", value)\n\n err = stub.PutState(key, []byte(value))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"create operation failed. Error updating state: %s\", err)\n }\n //store the metadata\n key = uuid + sp + \"md\"\n value = metadata\n fmt.Printf(\"value is %s\", value)\n\n err = stub.PutState(key, []byte(value))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"store the metadat operation failed. Error updating state: %s\", err)\n }\n\n //store the from and to \n key = fromid + sp + timestamp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for fromid : %s\", err)\n }\n key = toid + sp + timestamp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for toid : %s\", err)\n }\n return nil,nil\n\n case \"transfer\":\n if len(args) < 4{\n return nil, errors.New(\"transfer operation must include at last there arguments, a uuid , a owner , a toid and timestamp\")\n }\n //get the args\n key := args[0]\n uuid := key\n _owner := args[1]\n _toid := args[2]\n timestamp := args[3]\n\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n confirmtm := listValue[7]\n \n //ToDo: some check for the owner?\n // if the person don't own it, he can transfer this bill\n if _owner != owner {\n return []byte(\"don't have the right to transfer the bill\"), errors.New(\"don't have the right to transfer\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n //if the owner is toid, it cann't be transfer any more\n if owner == toid {\n return []byte(\"cann't transfer bill now\"), errors.New(\"cann't transfer this bill now\") \n }\n if status == \"2\" {\n return []byte(\"this bill has been submited adn you can't transfer it any more!\"), errors.New(\"this bill has been submited adn you can't transfer it any more!\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"0\"{\n status = \"1\"\n }\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n history = history + \",\" + _toid\n owner = _toid\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"transfer operation failed. Error updating state: %s\", err)\n }\n //ToDo: some check for the state of puting \n // add two sp have no reasons:)\n key = owner + sp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for owner : %s\", err)\n }\n return nil, nil\n\n case \"submit\":\n if len(args) < 4{\n return nil, errors.New(\"submit operation must include at last three arguments, a uuid, a owner , timestamp and data for reimbursement\")\n }\n //get the args\n key := args[0]\n uuid := key \n _owner := args[1]\n timestamp := args[2]\n data := args[3]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n //update the submittm\n submittm := timestamp\n confirmtm := listValue[7]\n\n // if the person don't own it, he can transfer this bill\n if _owner != owner {\n return []byte(\"don't have the right to submit the bill\"), errors.New(\"don't have the right to submit\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"2\" {\n return []byte(\"this bill has been submited adn you can't transfer it any more!\"), errors.New(\"this bill has been submited adn you can't transfer it any more!\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"1\" || status == \"0\" {\n status = \"2\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"submit operation failed. Error updating state: %s\", err)\n }\n\n //store the info of reimbursement\n key = uuid + sp + \"bx\"\n fmt.Printf(\"the info of reimbursement is %s\", data)\n err = stub.PutState(key, []byte(data))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"submit operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n case \"confirm\":\n if len(args) < 3 {\n return nil, errors.New(\"confirm operation must include at last there arguments, a uuid , a toid and timestamp\")\n }\n //get the args\n key := args[0]\n _toid := args[1]\n timestamp := args[2]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n //update the history\n history := listValue[2] + \",\" + toid\n //update the owner\n owner := toid\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n //update the confirmtm\n confirmtm := timestamp\n\n // if the person is not the toid\n if _toid != toid {\n return []byte(\"don't have the right to confirm the bill\"), errors.New(\"don't have the right to confirm\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"1\" || status == \"0\" {\n return []byte(\"this bill has not been submited \"), errors.New(\"this bill has not been submited\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"2\" {\n status = \"3\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"confirm operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n case \"reject\":\n if len(args) < 4 {\n return nil, errors.New(\"reject operation must include at last four arguments, a uuid , a toid , a reason and timestamp\")\n }\n //get the args\n key := args[0]\n uuid := key \n _toid := args[1]\n reason := args[2]\n timestamp := args[3]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n confirmtm := timestamp\n\n // if the person is not the toid\n if _toid != toid {\n return []byte(\"don't have the right to reject the bill\"), errors.New(\"don't have the right to reject\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"1\" || status == \"0\" {\n return []byte(\"this bill has not been submited \"), errors.New(\"this bill has not been submited \")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"2\" {\n status = \"1\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"reject operation failed. Error updating state: %s\", err)\n }\n\n //update the reason for unconfirmtion\n key = uuid + sp + \"bx\"\n err = stub.PutState(key, []byte(reason))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"reject operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n default:\n return nil, errors.New(\"Unsupported operation\")\n }\n}",
"func (i *Intent) Matches(_ context.Context, command string) bool {\n\t// TODO Add placeholder support and return the found pairings as well\n\tif command == i.Command {\n\t\treturn true\n\t}\n\n\tfor _, cmd := range i.Alternatives {\n\t\tif cmd == command {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}",
"func (b *Builder) Match(msg *insightV1.LogMessage) bool {\n\tfor _, m := range b.chain {\n\t\tif !m.Match(msg) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func fnMatch(ctx Context, doc *JDoc, params []string) interface{} {\n\tstats := ctx.Value(EelTotalStats).(*ServiceStats)\n\tif params == nil || len(params) != 2 {\n\t\tctx.Log().Error(\"error_type\", \"func_match\", \"op\", \"match\", \"cause\", \"wrong_number_of_parameters\", \"params\", params)\n\t\tstats.IncErrors()\n\t\tAddError(ctx, SyntaxError{fmt.Sprintf(\"wrong number of parameters in call to match function\"), \"match\", params})\n\t\treturn nil\n\t}\n\treg, err := regexp.Compile(extractStringParam(params[1]))\n\tif err != nil {\n\t\tctx.Log().Error(\"error_type\", \"func_match\", \"op\", \"match\", \"cause\", \"invalid_regex\", \"params\", params, \"error\", err.Error())\n\t\tstats.IncErrors()\n\t\tAddError(ctx, RuntimeError{fmt.Sprintf(\"invalid regex in call to match function: %s\", err.Error()), \"match\", params})\n\t\treturn nil\n\t}\n\treturn reg.MatchString(extractStringParam(params[0]))\n}",
"func (cct pipConstraint) match(v Version) bool {\n\treturn cct.compare(v, cct)\n}",
"func (s *Transaction) MatchList() (IDs []string, err error) {\n\tdefer func() {\n\t\tif err != nil {\n\t\t\ts.errors = append(s.errors, err)\n\t\t}\n\t}()\n\n\tfor _, m := range s.inMemoryCopy.Matchs {\n\t\tIDs = append(IDs, m.ID)\n\t}\n\n\treturn IDs, nil\n}",
"func (chaincode *Chaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n\t// Extract the function and args from the transaction proposal\n\tfn, args := stub.GetFunctionAndParameters()\n\n\tswitch fn {\n\tcase \"exchange\": // echange addr currency coins\n\t\tif len(args) != 3 {\n\t\t\treturn shim.Error(fmt.Sprintf(\"expected 3 args (addr currency quantity), got %d\", len(args)))\n\t\t}\n\n\t\tvar addr, currencyName, quatityStr = args[0], args[1], args[2]\n\t\tvar quantity, errParseQuantity = strconv.ParseUint(quatityStr, 10, 64)\n\n\t\tif errParseQuantity == nil {\n\t\t\treturn shim.Error(errParseQuantity.Error())\n\t\t}\n\n\t\tvar price, errGetPrice = chaincode.GetPrice()\n\t\tif errGetPrice != nil {\n\t\t\treturn shim.Error(errGetPrice.Error())\n\t\t}\n\n\t\tvar marshalledWallet, errGetWallet = stub.GetState(addr)\n\t\tif errGetWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar wallet, errParseWallet = strconv.ParseUint(string(marshalledWallet), 10, 64)\n\t\tif errParseWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar currency, exists = price.Bpi[currencyName]\n\t\tif !exists {\n\t\t\treturn shim.Error(fmt.Sprintf(\"currency %q not found\", currencyName))\n\t\t}\n\n\t\twallet = uint64(currency.RateFloat) * quantity\n\n\t\tvar errPutState = stub.PutState(addr, []byte(strconv.FormatUint(wallet, 10)))\n\t\tif errPutState != nil {\n\t\t\treturn shim.Error(errPutState.Error())\n\t\t}\n\t\treturn shim.Success([]byte(fmt.Sprintf(\"wallet: %d\", wallet)))\n\tcase \"get\":\n\n\t\tif len(args) != 1 {\n\t\t\treturn shim.Error(fmt.Sprintf(\"expected 1 args (addr), got %d\", len(args)))\n\t\t}\n\n\t\tvar addr = args[0]\n\n\t\tvar marshalledWallet, errGetWallet = stub.GetState(addr)\n\t\tif errGetWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar wallet, errParseWallet = strconv.ParseUint(string(marshalledWallet), 10, 64)\n\t\tif errParseWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\treturn shim.Success([]byte(fmt.Sprintf(\"wallet: %d\", wallet)))\n\tdefault:\n\t\treturn shim.Error(fmt.Sprintf(\"unknown command %q\", fn))\n\t}\n\t// Return the result as success payload\n\n}",
"func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _value, _extraData)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tswitch function {\n\tcase \"initVote\":\n\t\treturn s.initVote(APIstub)\n\tcase \"beginSignUp\":\n\t\treturn s.beginSignUp(APIstub, args)\n\tcase \"finishRegistrationPhase\":\n\t\treturn s.finishRegistrationPhase(APIstub)\n\tcase \"submitVote\":\n\t\treturn s.submitVote(APIstub, args)\n\tcase \"setEligible\":\n\t\treturn s.setEligible(APIstub, args)\n\tcase \"register\":\n\t\treturn s.register(APIstub, args)\n\tcase \"computeTally\":\n\t\treturn s.computeTally(APIstub)\n\tcase \"question\":\n\t\treturn s.question(APIstub)\n\tdefault:\n\t\treturn shim.Error(\"Invalid Smart Contract function name: \" + function)\n\t}\n}",
"func TestAcceptReorg(t *testing.T) {\n\tissuer1, vm1, _, sharedMemory1 := GenesisVM(t, true, genesisJSONApricotPhase0, \"\", \"\")\n\tissuer2, vm2, _, sharedMemory2 := GenesisVM(t, true, genesisJSONApricotPhase0, \"\", \"\")\n\n\tdefer func() {\n\t\tif err := vm1.Shutdown(); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\n\t\tif err := vm2.Shutdown(); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}()\n\n\tkey, err := accountKeystore.NewKey(rand.Reader)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Import 1 AVAX\n\timportAmount := uint64(1000000000)\n\tutxoID := avax.UTXOID{\n\t\tTxID: ids.ID{\n\t\t\t0x0f, 0x2f, 0x4f, 0x6f, 0x8e, 0xae, 0xce, 0xee,\n\t\t\t0x0d, 0x2d, 0x4d, 0x6d, 0x8c, 0xac, 0xcc, 0xec,\n\t\t\t0x0b, 0x2b, 0x4b, 0x6b, 0x8a, 0xaa, 0xca, 0xea,\n\t\t\t0x09, 0x29, 0x49, 0x69, 0x88, 0xa8, 0xc8, 0xe8,\n\t\t},\n\t}\n\n\tutxo := &avax.UTXO{\n\t\tUTXOID: utxoID,\n\t\tAsset: avax.Asset{ID: vm1.ctx.LUVAssetID},\n\t\tOut: &secp256k1fx.TransferOutput{\n\t\t\tAmt: importAmount,\n\t\t\tOutputOwners: secp256k1fx.OutputOwners{\n\t\t\t\tThreshold: 1,\n\t\t\t\tAddrs: []ids.ShortID{testKeys[0].PublicKey().Address()},\n\t\t\t},\n\t\t},\n\t}\n\tutxoBytes, err := vm1.codec.Marshal(codecVersion, utxo)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\txChainSharedMemory1 := sharedMemory1.NewSharedMemory(vm1.ctx.XChainID)\n\txChainSharedMemory2 := sharedMemory2.NewSharedMemory(vm2.ctx.XChainID)\n\tinputID := utxo.InputID()\n\tif err := xChainSharedMemory1.Put(vm1.ctx.ChainID, []*atomic.Element{{\n\t\tKey: inputID[:],\n\t\tValue: utxoBytes,\n\t\tTraits: [][]byte{\n\t\t\ttestKeys[0].PublicKey().Address().Bytes(),\n\t\t},\n\t}}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif err := xChainSharedMemory2.Put(vm2.ctx.ChainID, []*atomic.Element{{\n\t\tKey: inputID[:],\n\t\tValue: utxoBytes,\n\t\tTraits: [][]byte{\n\t\t\ttestKeys[0].PublicKey().Address().Bytes(),\n\t\t},\n\t}}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\timportTx, err := vm1.newImportTx(vm1.ctx.XChainID, key.Address, []*crypto.PrivateKeySECP256K1R{testKeys[0]})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1.issueTx(importTx); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t<-issuer1\n\n\tvm1BlkA, err := vm1.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build block with import transaction: %s\", err)\n\t}\n\n\tif err := vm1BlkA.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\n\tif status := vm1BlkA.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of built block to be %s, but found %s\", choices.Processing, status)\n\t}\n\n\tif err := vm1.SetPreference(vm1BlkA.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tvm2BlkA, err := vm2.ParseBlock(vm1BlkA.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\tif err := vm2BlkA.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM2: %s\", err)\n\t}\n\tif status := vm2BlkA.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of block on VM2 to be %s, but found %s\", choices.Processing, status)\n\t}\n\tif err := vm2.SetPreference(vm2BlkA.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1BlkA.Accept(); err != nil {\n\t\tt.Fatalf(\"VM1 failed to accept block: %s\", err)\n\t}\n\tif err := vm2BlkA.Accept(); err != nil {\n\t\tt.Fatalf(\"VM2 failed to accept block: %s\", err)\n\t}\n\n\t// Create list of 10 successive transactions to build block A on vm1\n\t// and to be split into two separate blocks on VM2\n\ttxs := make([]*types.Transaction, 10)\n\tfor i := 0; i < 10; i++ {\n\t\ttx := types.NewTransaction(uint64(i), key.Address, big.NewInt(10), 21000, params.LaunchMinGasPrice, nil)\n\t\tsignedTx, err := types.SignTx(tx, types.NewEIP155Signer(vm1.chainID), key.PrivateKey)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\ttxs[i] = signedTx\n\t}\n\n\t// Add the remote transactions, build the block, and set VM1's preference\n\t// for block B\n\terrs := vm1.chain.AddRemoteTxs(txs)\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM1 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer1\n\n\tvm1BlkB, err := vm1.BuildBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1BlkB.Verify(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif status := vm1BlkB.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of built block to be %s, but found %s\", choices.Processing, status)\n\t}\n\n\tif err := vm1.SetPreference(vm1BlkB.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terrs = vm2.chain.AddRemoteTxs(txs[0:5])\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM2 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer2\n\n\tvm2BlkC, err := vm2.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build BlkC on VM2: %s\", err)\n\t}\n\n\tif err := vm2BlkC.Verify(); err != nil {\n\t\tt.Fatalf(\"BlkC failed verification on VM2: %s\", err)\n\t}\n\n\tif err := vm2.SetPreference(vm2BlkC.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terrs = vm2.chain.AddRemoteTxs(txs[5:])\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM2 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer2\n\n\tvm2BlkD, err := vm2.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build BlkD on VM2: %s\", err)\n\t}\n\n\t// Parse blocks produced in vm2\n\tvm1BlkC, err := vm1.ParseBlock(vm2BlkC.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\n\tvm1BlkD, err := vm1.ParseBlock(vm2BlkD.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\n\tif err := vm1BlkC.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\tif err := vm1BlkD.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\n\tblkBHash := vm1BlkB.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkBHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkBHash.Hex(), b.Hash().Hex())\n\t}\n\n\tif err := vm1BlkC.Accept(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tblkCHash := vm1BlkC.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkCHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkCHash.Hex(), b.Hash().Hex())\n\t}\n\n\tif err := vm1BlkD.Accept(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tblkDHash := vm1BlkD.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkDHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkDHash.Hex(), b.Hash().Hex())\n\t}\n}",
"func (c Provider) Match(query string) (params []string) {\n\tif sm := MirrorsRegex.FindStringSubmatch(query); len(sm) > 1 {\n\t\tparams = sm[1:]\n\t}\n\treturn\n}",
"func (SubChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*SubChannelProposalAccMsg)\n\treturn ok\n}",
"func (r *Service) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalService(b, c, r)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func Match(regx string, arg string) bool {\n\tmatched, err := regexp.MatchString(\"^(\"+regx+\")$\", arg)\n\tif err != nil {\n\t\treturn false\n\t}\n\treturn matched\n}",
"func (atc *AtomicTransactionComposer) AddMethodCall(params AddMethodCallParams) error {\n\tif atc.status != BUILDING {\n\t\treturn errors.New(\"status must be BUILDING in order to add transactions\")\n\t}\n\n\tif len(params.MethodArgs) != len(params.Method.Args) {\n\t\treturn fmt.Errorf(\"the incorrect number of arguments were provided: %d != %d\", len(params.MethodArgs), len(params.Method.Args))\n\t}\n\n\tif atc.Count()+params.Method.GetTxCount() > MaxAtomicGroupSize {\n\t\treturn fmt.Errorf(\"reached max group size: %d\", MaxAtomicGroupSize)\n\t}\n\n\tif params.AppID == 0 {\n\t\tif len(params.ApprovalProgram) == 0 || len(params.ClearProgram) == 0 {\n\t\t\treturn fmt.Errorf(\"ApprovalProgram and ClearProgram must be provided for an application creation call\")\n\t\t}\n\t} else if params.OnComplete == types.UpdateApplicationOC {\n\t\tif len(params.ApprovalProgram) == 0 || len(params.ClearProgram) == 0 {\n\t\t\treturn fmt.Errorf(\"ApprovalProgram and ClearProgram must be provided for an application update call\")\n\t\t}\n\t\tif (params.GlobalSchema != types.StateSchema{}) || (params.LocalSchema != types.StateSchema{}) {\n\t\t\treturn fmt.Errorf(\"GlobalSchema and LocalSchema must not be provided for an application update call\")\n\t\t}\n\t} else if len(params.ApprovalProgram) != 0 || len(params.ClearProgram) != 0 || (params.GlobalSchema != types.StateSchema{}) || (params.LocalSchema != types.StateSchema{}) {\n\t\treturn fmt.Errorf(\"ApprovalProgram, ClearProgram, GlobalSchema, and LocalSchema must not be provided for a non-creation call\")\n\t}\n\n\tvar txsToAdd []TransactionWithSigner\n\tvar basicArgValues []interface{}\n\tvar basicArgTypes []abi.Type\n\tvar refArgValues []interface{}\n\tvar refArgTypes []string\n\trefArgIndexToBasicArgIndex := make(map[int]int)\n\tfor i, arg := range params.Method.Args {\n\t\targValue := params.MethodArgs[i]\n\n\t\tif arg.IsTransactionArg() {\n\t\t\ttxnAndSigner, ok := argValue.(TransactionWithSigner)\n\t\t\tif !ok {\n\t\t\t\treturn fmt.Errorf(\"invalid arg type, expected transaction\")\n\t\t\t}\n\n\t\t\terr := atc.validateTransaction(txnAndSigner.Txn, arg.Type)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\ttxsToAdd = append(txsToAdd, txnAndSigner)\n\t\t} else {\n\t\t\tvar abiType abi.Type\n\t\t\tvar err error\n\n\t\t\tif arg.IsReferenceArg() {\n\t\t\t\trefArgIndexToBasicArgIndex[len(refArgTypes)] = len(basicArgTypes)\n\t\t\t\trefArgValues = append(refArgValues, argValue)\n\t\t\t\trefArgTypes = append(refArgTypes, arg.Type)\n\n\t\t\t\t// treat the reference as a uint8 for encoding purposes\n\t\t\t\tabiType, err = abi.TypeOf(\"uint8\")\n\t\t\t} else {\n\t\t\t\tabiType, err = arg.GetTypeObject()\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbasicArgValues = append(basicArgValues, argValue)\n\t\t\tbasicArgTypes = append(basicArgTypes, abiType)\n\t\t}\n\t}\n\n\t// copy foreign arrays before modifying in populateMethodCallReferenceArgs\n\tforeignAccounts := make([]string, len(params.ForeignAccounts))\n\tcopy(foreignAccounts, params.ForeignAccounts)\n\tforeignApps := make([]uint64, len(params.ForeignApps))\n\tcopy(foreignApps, params.ForeignApps)\n\tforeignAssets := make([]uint64, len(params.ForeignAssets))\n\tcopy(foreignAssets, params.ForeignAssets)\n\n\trefArgsResolved, err := populateMethodCallReferenceArgs(\n\t\tparams.Sender.String(),\n\t\tparams.AppID,\n\t\trefArgTypes,\n\t\trefArgValues,\n\t\t&foreignAccounts,\n\t\t&foreignApps,\n\t\t&foreignAssets,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\tfor i, resolved := range refArgsResolved {\n\t\tbasicArgIndex := refArgIndexToBasicArgIndex[i]\n\t\t// use the foreign array index as the encoded argument value\n\t\tbasicArgValues[basicArgIndex] = resolved\n\t}\n\n\t// Up to 16 app arguments can be passed to app call. First is reserved for method selector,\n\t// and the rest are for method call arguments. But if more than 15 method call arguments\n\t// are present, then the method arguments after the 14th are placed in a tuple in the last app\n\t// argument slot\n\tif len(basicArgValues) > maxAppArgs-1 {\n\t\ttypesForTuple := make([]abi.Type, len(basicArgTypes)-methodArgsTupleThreshold)\n\t\tcopy(typesForTuple, basicArgTypes[methodArgsTupleThreshold:])\n\n\t\tvalueForTuple := make([]interface{}, len(basicArgValues)-methodArgsTupleThreshold)\n\t\tcopy(valueForTuple, basicArgValues[methodArgsTupleThreshold:])\n\n\t\ttupleType, err := abi.MakeTupleType(typesForTuple)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tbasicArgValues = append(basicArgValues[:methodArgsTupleThreshold], valueForTuple)\n\t\tbasicArgTypes = append(basicArgTypes[:methodArgsTupleThreshold], tupleType)\n\t}\n\n\tencodedAbiArgs := [][]byte{params.Method.GetSelector()}\n\n\tfor i, abiArg := range basicArgValues {\n\t\tencodedArg, err := basicArgTypes[i].Encode(abiArg)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tencodedAbiArgs = append(encodedAbiArgs, encodedArg)\n\t}\n\n\ttx, err := MakeApplicationCallTxWithBoxes(\n\t\tparams.AppID,\n\t\tencodedAbiArgs,\n\t\tforeignAccounts,\n\t\tforeignApps,\n\t\tforeignAssets,\n\t\tparams.BoxReferences,\n\t\tparams.OnComplete,\n\t\tparams.ApprovalProgram,\n\t\tparams.ClearProgram,\n\t\tparams.GlobalSchema,\n\t\tparams.LocalSchema,\n\t\tparams.ExtraPages,\n\t\tparams.SuggestedParams,\n\t\tparams.Sender,\n\t\tparams.Note,\n\t\ttypes.Digest{},\n\t\tparams.Lease,\n\t\tparams.RekeyTo)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ttxAndSigner := TransactionWithSigner{\n\t\tTxn: tx,\n\t\tSigner: params.Signer,\n\t}\n\n\tfor _, txAndSigner := range txsToAdd {\n\t\ttxContext := transactionContext{\n\t\t\ttxn: txAndSigner.Txn,\n\t\t\tsigner: txAndSigner.Signer,\n\t\t}\n\t\tatc.txContexts = append(atc.txContexts, txContext)\n\t}\n\n\tmethodCallTxContext := transactionContext{\n\t\ttxn: txAndSigner.Txn,\n\t\tsigner: txAndSigner.Signer,\n\t\tmethod: ¶ms.Method,\n\t}\n\tatc.txContexts = append(atc.txContexts, methodCallTxContext)\n\treturn nil\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryHash\" {\n\t\treturn s.queryHash(APIstub, args)\n\t } else if function == \"initLedger\" {\n\t \treturn s.initLedger(APIstub)\n\t } else if function == \"addHash\" {\n\t\treturn s.addHash(APIstub, args)\n\t} else if function == \"queryAllHashes\" {\n\t\treturn s.queryAllHashes(APIstub)\n\t} else if function == \"changeHash\" {\n\t\treturn s.changeHash(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (cc *InteropCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response {\n fmt.Println(\"Invoking Mock Fabric Interop CC\")\n function, args := stub.GetFunctionAndParameters()\n if function == \"GetTotalFungibleLockedAssets\" {\n return shim.Success([]byte(strconv.Itoa(cc.fungibleAssetLockedCount[args[0]])))\n }\n caller, _ := stub.GetCreator()\n if function == \"LockAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n key := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(key)\n val := key + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] != \"\" {\n return shim.Error(fmt.Sprintf(\"Asset of type %s and ID %s is already locked\", assetAgreement.AssetType, assetAgreement.Id))\n }\n cc.assetLockMap[contractId] = val\n return shim.Success([]byte(contractId))\n }\n if function == \"LockFungibleAsset\" { // We are only going to lock once or twice in each unit test function, so bookkeeping doesn't need to be thorough\n assetAgreement := &common.FungibleAssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n val := assetAgreement.AssetType + \":\" + strconv.Itoa(int(assetAgreement.NumUnits)) + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n contractId := generateSHA256HashInBase64Form(val)\n cc.fungibleAssetLockMap[contractId] = val\n\tif cc.fungibleAssetLockedCount[assetAgreement.AssetType] == 0 {\n\t\tcc.fungibleAssetLockedCount[assetAgreement.AssetType] = int(assetAgreement.NumUnits)\n\t} else {\n\t\tcc.fungibleAssetLockedCount[assetAgreement.AssetType] += int(assetAgreement.NumUnits)\n\t}\n return shim.Success([]byte(contractId))\n }\n if function == \"IsAssetLocked\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + assetAgreement.Locker + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] == expectedVal {\n return shim.Success([]byte(\"true\"))\n } else {\n return shim.Success([]byte(\"false\"))\n }\n }\n if function == \"IsFungibleAssetLocked\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be either the locker or the recipient\n\t\tif assetLockValSplit[2] != string(caller) && assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Success([]byte(\"false\"))\n\t\t}\n\t\treturn shim.Success([]byte(\"true\"))\n\t} else {\n return shim.Success([]byte(\"false\"))\n\t}\n }\n if function == \"IsAssetLockedQueryUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\t// caller not necessarily need to be one of either locker or recipient\n\t\treturn shim.Success([]byte(\"true\"))\n\t} else {\n return shim.Success([]byte(\"false\"))\n\t}\n }\n if function == \"UnlockAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] == \"\" {\n return shim.Error(fmt.Sprintf(\"No asset of type %s and ID %s is locked\", assetAgreement.AssetType, assetAgreement.Id))\n } else if cc.assetLockMap[contractId] != expectedVal {\n return shim.Error(fmt.Sprintf(\"Cannot unlock asset of type %s and ID %s as it is locked by %s for %s\", assetAgreement.AssetType, assetAgreement.Id, string(caller), assetAgreement.Recipient))\n } else {\n delete(cc.assetLockMap, contractId)\n return shim.Success(nil)\n }\n }\n if function == \"UnlockFungibleAsset\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be the locker\n\t\tif assetLockValSplit[2] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot unlock fungible asset using contractId %s as caller is different from locker\", contractId))\n\t\t}\n\t\tdelete(cc.fungibleAssetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No fungible asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"UnlockAssetUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.assetLockMap[contractId], \":\")\n\t\t// caller need to be the locker\n\t\tif assetLockValSplit[2] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot unlock asset using contractId %s as caller is different from locker\", contractId))\n\t\t}\n\t\tdelete(cc.assetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"ClaimAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + assetAgreement.Locker + \":\" + string(caller)\n if cc.assetLockMap[contractId] == \"\" {\n return shim.Error(fmt.Sprintf(\"No asset of type %s and ID %s is locked\", assetAgreement.AssetType, assetAgreement.Id))\n } else if cc.assetLockMap[contractId] != expectedVal {\n return shim.Error(fmt.Sprintf(\"Cannot unlock asset of type %s and ID %s as it is locked by %s for %s\", assetAgreement.AssetType, assetAgreement.Id, assetAgreement.Locker, string(caller)))\n } else {\n delete(cc.assetLockMap, contractId)\n return shim.Success(nil)\n }\n }\n if function == \"ClaimFungibleAsset\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be the recipient\n\t\tif assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot claim fungible asset using contractId %s as caller is different from recipient\", contractId))\n\t\t}\n\t\tdelete(cc.fungibleAssetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No fungible asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"ClaimAssetUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.assetLockMap[contractId], \":\")\n\t\t// caller need to be the recipient\n\t\tif assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot claim asset using contractId %s as caller is different from recipient\", contractId))\n\t\t}\n\t\tdelete(cc.assetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"GetAllLockedAssets\" || function == \"GetAllAssetsLockedUntil\" {\n assets := []string{}\n for key, val := range cc.assetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n for key, val := range cc.fungibleAssetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAllNonFungibleLockedAssets\" {\n assets := []string{}\n for key, val := range cc.assetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAllFungibleLockedAssets\" {\n assets := []string{}\n for key, val := range cc.fungibleAssetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAssetTimeToRelease\" {\n return shim.Success([]byte(strconv.Itoa(len(cc.assetLockMap))))\n }\n if function == \"GetFungibleAssetTimeToRelease\" {\n return shim.Success([]byte(strconv.Itoa(len(cc.fungibleAssetLockMap))))\n }\n if function == \"GetHTLCHash\" {\n return shim.Success([]byte(defaultHash))\n }\n if function == \"GetHTLCHashByContractId\" {\n return shim.Success([]byte(defaultHash))\n }\n if function == \"GetHTLCHashPreImage\" {\n return shim.Success([]byte(defaultPreimage))\n }\n if function == \"GetHTLCHashPreImageByContractId\" {\n return shim.Success([]byte(defaultPreimage))\n }\n return shim.Error(fmt.Sprintf(\"Invalid invoke function name: %s\", function))\n}",
"func (vc *VehicleContainer) MatchAll(brigadeMap map[string][]*brigadeEntry, prevVehicles map[string]*Vehicle) error {\n\tfor vID, v := range vc.Vehicles {\n\t\t// Don't match if the vehicle position is not realtime -\n\t\t// older then 3 minutes\n\t\tif vc.SyncTime.Sub(v.TimeObj).Minutes() > 3 {\n\t\t\tdelete(vc.Vehicles, vID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Try to find matching brigade fields\n\t\tbe := brigadeMap[vID]\n\n\t\t// Try to find previous Vehicle for this ID\n\t\tpv := prevVehicles[vID]\n\n\t\t// Match this vehicle to a particular trip\n\t\terr := v.MatchTrip(pv, vc.CompareSyncTime, be)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\t// Remove this vehicle if no trip was matched\n\t\tif v.Trip == \"\" {\n\t\t\tdelete(vc.Vehicles, vID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Caulcate the bearing\n\t\tv.CalculateBearing(pv)\n\t}\n\n\treturn nil\n}",
"func (m scanOpMatcher) Matches(x interface{}) bool {\n\top, ok := x.(*ScanOp)\n\tif !ok {\n\t\treturn false\n\t}\n\n\tfor _, field := range op.fieldsToRead {\n\t\tif !m.fields[field] {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn op.limit == m.limit && op.token == m.token && reflect.TypeOf(op.object).Elem() == m.typ\n}",
"func (_Coordinatorproxy *CoordinatorproxyCaller) ProcessTx(opts *bind.CallOpts, _balanceRoot [32]byte, _accountsRoot [32]byte, _tx TypesTransaction, _from_pda_proof TypesPDAMerkleProof, _from_merkle_proof TypesAccountMerkleProof, _to_merkle_proof TypesAccountMerkleProof) ([32]byte, *big.Int, *big.Int, bool, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t\tret1 = new(*big.Int)\n\t\tret2 = new(*big.Int)\n\t\tret3 = new(bool)\n\t)\n\tout := &[]interface{}{\n\t\tret0,\n\t\tret1,\n\t\tret2,\n\t\tret3,\n\t}\n\terr := _Coordinatorproxy.contract.Call(opts, out, \"processTx\", _balanceRoot, _accountsRoot, _tx, _from_pda_proof, _from_merkle_proof, _to_merkle_proof)\n\treturn *ret0, *ret1, *ret2, *ret3, err\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"ping\" {\n\t\treturn s.ping(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (oe objectExpectation) matches(obj interface{}) bool {\n\tif oe.val == nil || obj == nil {\n\t\treturn oe.val == nil && obj == nil\n\t}\n\n\tparamBuf1 := new(bytes.Buffer)\n\toe.val.MarshalCBOR(paramBuf1) // nolint: errcheck\n\tmarshaller, ok := obj.(cbor.Marshaler)\n\tif !ok {\n\t\treturn false\n\t}\n\tparamBuf2 := new(bytes.Buffer)\n\tif marshaller != nil {\n\t\tmarshaller.MarshalCBOR(paramBuf2) // nolint: errcheck\n\t}\n\treturn bytes.Equal(paramBuf1.Bytes(), paramBuf2.Bytes())\n}",
"func bitcoinCall(method string, params []interface{}, reply interface{}) error {\n\tif !globalBitcoinData.initialised {\n\t\tfault.Panic(\"bitcoin not initialised\")\n\t}\n\n\tglobalBitcoinData.id += 1\n\n\targuments := bitcoinArguments{\n\t\tId: globalBitcoinData.id,\n\t\tMethod: method,\n\t\tParams: params,\n\t}\n\tresponse := bitcoinReply{\n\t\tResult: reply,\n\t}\n\terr := bitcoinRPC(&arguments, &response)\n\tif nil != err {\n\t\treturn err\n\t}\n\n\tif nil != response.Error {\n\t\ts := response.Error.Message\n\t\treturn fault.ProcessError(\"Bitcoin RPC error: \" + s)\n\t}\n\treturn nil\n}",
"func Match(provider Provider, query *Query, results chan<- *Result) {\n\t// Perform the search against the specified provider.\n\tsearchResults, err := provider.Search(query)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\n\t// Write the results to the channel.\n\tfor _, result := range searchResults {\n\t\tresults <- result\n\t}\n}",
"func (r *Interconnect) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalInterconnect(b, c)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (atc *AtomicTransactionComposer) Execute(client *algod.Client, ctx context.Context, waitRounds uint64) (ExecuteResult, error) { //nolint:revive // Ignore Context order for backwards compatibility\n\tif atc.status == COMMITTED {\n\t\treturn ExecuteResult{}, errors.New(\"status is already committed\")\n\t}\n\n\t_, err := atc.Submit(client, ctx)\n\tif err != nil {\n\t\treturn ExecuteResult{}, err\n\t}\n\tatc.status = SUBMITTED\n\n\tindexToWaitFor := 0\n\tnumMethodCalls := 0\n\tfor i, txContext := range atc.txContexts {\n\t\tif txContext.isMethodCallTx() {\n\t\t\t// if there is a method call in the group, we need to query the\n\t\t\t// pending tranaction endpoint for it anyway, so as an optimization\n\t\t\t// we should wait for its TxID\n\t\t\tif numMethodCalls == 0 {\n\t\t\t\tindexToWaitFor = i\n\t\t\t}\n\t\t\tnumMethodCalls++\n\t\t}\n\t}\n\n\tgroupInfo, err := WaitForConfirmation(client, atc.txContexts[indexToWaitFor].txID(), waitRounds, ctx)\n\tif err != nil {\n\t\treturn ExecuteResult{}, err\n\t}\n\tatc.status = COMMITTED\n\n\texecuteResponse := ExecuteResult{\n\t\tConfirmedRound: groupInfo.ConfirmedRound,\n\t\tTxIDs: atc.getTxIDs(),\n\t\tMethodResults: make([]ABIMethodResult, 0, numMethodCalls),\n\t}\n\n\tfor i, txContext := range atc.txContexts {\n\t\t// Verify method call is available. This may not be the case if the App Call Tx wasn't created\n\t\t// by AddMethodCall().\n\t\tif !txContext.isMethodCallTx() {\n\t\t\tcontinue\n\t\t}\n\n\t\tresult := ABIMethodResult{TxID: txContext.txID(), Method: *txContext.method}\n\n\t\tif i == indexToWaitFor {\n\t\t\tresult.TransactionInfo = groupInfo\n\t\t} else {\n\t\t\tmethodCallInfo, _, err := client.PendingTransactionInformation(result.TxID).Do(ctx)\n\t\t\tif err != nil {\n\t\t\t\tresult.DecodeError = err\n\t\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tresult.TransactionInfo = methodCallInfo\n\t\t}\n\n\t\tif txContext.method.Returns.IsVoid() {\n\t\t\tresult.RawReturnValue = []byte{}\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tif len(result.TransactionInfo.Logs) == 0 {\n\t\t\tresult.DecodeError = errors.New(\"method call did not log a return value\")\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tlastLog := result.TransactionInfo.Logs[len(result.TransactionInfo.Logs)-1]\n\t\tif !bytes.HasPrefix(lastLog, abiReturnHash) {\n\t\t\tresult.DecodeError = errors.New(\"method call did not log a return value\")\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tresult.RawReturnValue = lastLog[len(abiReturnHash):]\n\n\t\tabiType, err := txContext.method.Returns.GetTypeObject()\n\t\tif err != nil {\n\t\t\tresult.DecodeError = err\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tbreak\n\t\t}\n\n\t\tresult.ReturnValue, result.DecodeError = abiType.Decode(result.RawReturnValue)\n\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t}\n\n\treturn executeResponse, nil\n}",
"func (t *Colorado) getMatchableTrades(stub shim.ChaincodeStubInterface, args []string) peer.Response {\n\t if len(args) != 1 {\n\t\t return shim.Error(\"Incorrect number of arguments. Expecting 1.\")\n\t }\n \n\t if len(args[0]) == 0 {\n\t\t return shim.Error(\"1st argument (Request JSON) must be a non-empty string, i.e. {\\\"investmentManager\\\":\\\"IMi\\\",\\\"executingBroker\\\":\\\"EBj\\\",\\\"tradeIdToBeMatched\\\":\\\"IDn\\\",\\\"matchableTradeIds\\\":[\\\"IDx\\\",\\\"IDy\\\",\\\"IDz\\\"]}\")\n\t }\n \n\t requestJSON := args[0]\n\t fmt.Println(\"- start getting matchable trades with request: \" + requestJSON)\n \n\t type requstType struct {\n\t\t InvestmentManager string `json:\"investmentManager\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t ExecutingBroker string `json:\"executingBroker\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t TradeIdToBeMatched string `json:\"tradeIdToBeMatched\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t MatchableTradeIds []string `json:\"matchableTradeIds\"` // the json fieldtags are needed to keep case from bouncing around\n\t }\n\t var request requstType\n\t err := json.Unmarshal([]byte(requestJSON), &request)\n\t if err != nil {\n\t\t return shim.Error(\"Unable to parse request: \" + err.Error())\n\t }\n \n\t if len(request.TradeIdToBeMatched) == 0 {\n\t\t return shim.Success([]byte(\"There is no trade to be matched.\"))\n\t }\n \n\t // get trade to be matched\n\t privateCollection := \"privateTradeFor\" + request.InvestmentManager + request.ExecutingBroker\n\t tradeToBeMatchedAsBytes, err := stub.GetPrivateData(privateCollection, request.TradeIdToBeMatched)\n\t if err != nil {\n\t\t // e.g. no defined private collection for the combination of IM, EB\n\t\t return shim.Error(\"Unable to get trade: \" + err.Error())\n\t } else if tradeToBeMatchedAsBytes == nil {\n\t\t fmt.Println(\"This trade does not exist: \" + request.TradeIdToBeMatched)\n\t\t return shim.Error(\"This trade does not exist: \" + request.TradeIdToBeMatched)\n\t }\n\t tradeToBeMatched := trade{}\n\t err = json.Unmarshal(tradeToBeMatchedAsBytes, &tradeToBeMatched) // unmarshal it aka JSON.parse()\n\t if err != nil {\n\t\t return shim.Error(\"Unable to parse Trade To Be Matched: \" + err.Error())\n\t }\n \n\t // Query the tradeMatchingCompositeKey index by all fields in the composite key,\n\t // e.g. return all trades of a Source, a Buy Side, a Sell Side, a Product, a Sub-Product,\n\t // a Trade Date, a Quantity, a Price, a Security ID, and a Status\n\t var buffer bytes.Buffer\n\t delimiter := \",\"\n\t sourceToBeMatched := tradeToBeMatched.BuySide\n\t if tradeToBeMatched.Source == tradeToBeMatched.BuySide {\n\t\t sourceToBeMatched = tradeToBeMatched.SellSide\n\t }\n\t quantityToBeMatchedAsString := strconv.Itoa(tradeToBeMatched.Quantity)\n\t priceToBeMatchedAsString := strconv.FormatFloat(tradeToBeMatched.Price, 'f', -1, 64)\n\t tradeResultsIterator, err := stub.GetPrivateDataByPartialCompositeKey(privateCollection, \"tradeMatchingCompositeKey\", []string{sourceToBeMatched, tradeToBeMatched.BuySide, tradeToBeMatched.SellSide, tradeToBeMatched.Product, tradeToBeMatched.SubProduct, tradeToBeMatched.TradeDate, quantityToBeMatchedAsString, priceToBeMatchedAsString, tradeToBeMatched.SecurityId, \"CREATED\"})\n\t if err != nil {\n\t\t return shim.Error(\"Unable to call GetPrivateDataByPartialCompositeKey: \" + err.Error())\n\t }\n \n\t defer tradeResultsIterator.Close()\n\t for tradeResultsIterator.HasNext() {\n\t\t tradeResult, err := tradeResultsIterator.Next()\n\t\t if err != nil {\n\t\t\t return shim.Error(\"Unable to iterate through StateQueryIteratorInterface: \" + err.Error())\n\t\t }\n\t\t if buffer.Len() > 0 {\n\t\t\t buffer.WriteString(delimiter)\n\t\t }\n\t\t buffer.WriteString(\"\\\"\" + string(tradeResult.Value) + \"\\\"\")\n\t }\n \n\t responseJSON := fmt.Sprintf(\"{\\\"investmentManager\\\":\\\"%s\\\",\\\"executingBroker\\\":\\\"%s\\\",\\\"tradeIdToBeMatched\\\":\\\"%s\\\",\\\"matchableTradeIds\\\":[%s]}\", request.InvestmentManager, request.ExecutingBroker, request.TradeIdToBeMatched, buffer.String())\n\t fmt.Println(\"- end getting matchable trades with response: \" + responseJSON)\n \n\t return shim.Success([]byte(responseJSON))\n }"
] | [
"0.8344377",
"0.8279326",
"0.5495064",
"0.53899884",
"0.53274",
"0.5239259",
"0.5064177",
"0.50472426",
"0.49867246",
"0.49566874",
"0.49014625",
"0.48501724",
"0.48379886",
"0.4771124",
"0.47345164",
"0.4694884",
"0.46890578",
"0.465519",
"0.46474192",
"0.4625228",
"0.46200213",
"0.46086037",
"0.46085584",
"0.4588712",
"0.45824996",
"0.45787287",
"0.4577148",
"0.45646617",
"0.45619455",
"0.45479745",
"0.45107085",
"0.45077327",
"0.44956776",
"0.4491527",
"0.44794294",
"0.4474137",
"0.44717497",
"0.44682792",
"0.44643316",
"0.44625765",
"0.44585472",
"0.44544172",
"0.44470435",
"0.44442013",
"0.44428036",
"0.44154853",
"0.44068554",
"0.44017476",
"0.43755105",
"0.43634823",
"0.43623787",
"0.43623787",
"0.43407434",
"0.43405202",
"0.43355677",
"0.43341285",
"0.43286207",
"0.43204144",
"0.43149287",
"0.4314636",
"0.43119684",
"0.4300996",
"0.42894152",
"0.42887405",
"0.42765653",
"0.42732626",
"0.4272147",
"0.42707083",
"0.42683786",
"0.42676336",
"0.4262351",
"0.4255286",
"0.42534646",
"0.42475042",
"0.42463246",
"0.42420912",
"0.42341617",
"0.42275372",
"0.42272982",
"0.42213726",
"0.4218587",
"0.42157254",
"0.42147198",
"0.42138028",
"0.4212105",
"0.42083648",
"0.42010495",
"0.41987967",
"0.41985664",
"0.4190274",
"0.41873354",
"0.41840982",
"0.41773018",
"0.41744056",
"0.41726467",
"0.4170377",
"0.41693813",
"0.4168861",
"0.41673297",
"0.41660053"
] | 0.8254458 | 2 |
AtomicMatch is a paid mutator transaction binding the contract method 0xab834bab. Solidity: function atomicMatch_(address[14] addrs, uint256[18] uints, uint8[8] feeMethodsSidesKindsHowToCalls, bytes calldataBuy, bytes calldataSell, bytes replacementPatternBuy, bytes replacementPatternSell, bytes staticExtradataBuy, bytes staticExtradataSell, uint8[2] vs, bytes32[5] rssMetadata) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {
return _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) AtomicMatch(opts *bind.TransactOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"atomicMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WyvernExchange *WyvernExchangeSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (kc *Keychain) Match(owners *secp256k1fx.OutputOwners, time uint64) bool {\n\tif time < owners.Locktime || owners.Threshold != 1 || len(owners.Addrs) != 1 || !kc.Addrs.Contains(owners.Addrs[0]) {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) CalculateMatchPrice(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\treturn _WyvernExchange.Contract.CalculateMatchPrice(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func NewMatcher(\n\tlogger *zap.Logger,\n\tbc *bclient.BClient,\n\tabistr string,\n\tmethods,\n\tcontracts []string,\n) (*Matcher, error) {\n\tparsedABI, err := abi.JSON(strings.NewReader(abistr))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar (\n\t\twantMethods = make(map[string]bool)\n\t\twantContracts = make(map[common.Address]bool)\n\t)\n\tfor _, method := range methods {\n\t\twantMethods[method] = true\n\t}\n\tfor _, contract := range contracts {\n\t\twantContracts[common.HexToAddress(contract)] = true\n\t}\n\treturn &Matcher{\n\t\tl: logger.Named(\"txmatch\"),\n\t\tabi: parsedABI,\n\t\tbc: bc,\n\t\twantMethods: wantMethods,\n\t\twantContracts: wantContracts,\n\t}, nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) CalculateMatchPrice(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\treturn _WyvernExchange.Contract.CalculateMatchPrice(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (match RxMatch) Match(pkt *pktmbuf.Packet) bool {\n\treturn bool(C.EthRxMatch_Match((*C.EthRxMatch)(&match), (*C.struct_rte_mbuf)(pkt.Ptr())))\n}",
"func (a *CompositeMatcher) Match(info iresolver.RPCInfo) bool {\n\tif a.pm != nil && !a.pm.match(info.Method) {\n\t\treturn false\n\t}\n\n\t// Call headerMatchers even if md is nil, because routes may match\n\t// non-presence of some headers.\n\tvar md metadata.MD\n\tif info.Context != nil {\n\t\tmd, _ = metadata.FromOutgoingContext(info.Context)\n\t\tif extraMD, ok := grpcutil.ExtraMetadata(info.Context); ok {\n\t\t\tmd = metadata.Join(md, extraMD)\n\t\t\t// Remove all binary headers. They are hard to match with. May need\n\t\t\t// to add back if asked by users.\n\t\t\tfor k := range md {\n\t\t\t\tif strings.HasSuffix(k, \"-bin\") {\n\t\t\t\t\tdelete(md, k)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor _, m := range a.hms {\n\t\tif !m.Match(md) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tif a.fm != nil && !a.fm.match() {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (VirtualChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*VirtualChannelProposalAccMsg)\n\treturn ok\n}",
"func (_WyvernExchange *WyvernExchangeCaller) CalculateMatchPrice(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"calculateMatchPrice_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func make_agreement(ag *contract_api.SolidityContract, agID []byte, sig_hash string, sig string, counterparty string, shouldWork bool) {\n tx_delay_toleration := 120\n err := error(nil)\n\n log.Printf(\"Make an agreement with ID:%v\\n\", agID)\n p := make([]interface{},0,10)\n p = append(p, agID)\n p = append(p, sig_hash[2:])\n p = append(p, sig[2:])\n p = append(p, counterparty)\n if _, err = ag.Invoke_method(\"create_agreement\", p); err != nil {\n log.Printf(\"...terminating, could not invoke create_agreement: %v\\n\", err)\n os.Exit(1)\n }\n log.Printf(\"Create agreement %v invoked.\\n\", agID)\n\n var res interface{}\n p = make([]interface{},0,10)\n p = append(p, counterparty)\n p = append(p, agID)\n byte_hash, _ := hex.DecodeString(sig_hash[2:])\n log.Printf(\"Binary Hash is: %v\\n\", byte_hash)\n start_timer := time.Now()\n for {\n if shouldWork {\n fmt.Printf(\"There should be a recorded contract hash, but it might be in a block we can't read yet.\\n\")\n } else {\n fmt.Printf(\"There should NOT be a recorded contract hash.\\n\")\n }\n if res, err = ag.Invoke_method(\"get_contract_hash\", p); err == nil {\n fmt.Printf(\"Received contract hash:%v.\\n\",res)\n if bytes.Compare([]byte(res.(string)), byte_hash) != 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n if shouldWork {\n fmt.Printf(\"Timeout waiting for the Update.\\n\")\n os.Exit(1)\n } else {\n fmt.Printf(\"Timeout waiting for the Update. This is expected.\\n\")\n break\n }\n }\n } else {\n if shouldWork {\n log.Printf(\"Created agreement %v.\\n\", agID)\n break\n } else {\n fmt.Printf(\"Received contract hash. This is NOT expected: %v\\n\", res.(string))\n os.Exit(2)\n }\n }\n } else {\n fmt.Printf(\"Error on get_contract_hash: %v\\n\",err)\n os.Exit(1)\n }\n }\n}",
"func (s *PublicMatchService) Matches(params *PublicMatchParam) ([]PublicMatch, *http.Response, error) {\n\tpublicmatches := new([]PublicMatch)\n\tapiError := new(APIError)\n\tresp, err := s.sling.New().QueryStruct(params).Receive(publicmatches, apiError)\n\treturn *publicmatches, resp, relevantError(err, *apiError)\n}",
"func (qi *QueryItem) Matches(a Address, ts []Tag) bool {\n\treturn (qi.Address != 0 && qi.Address == a) || (qi.Tag != \"\" && containsTag(ts, qi.Tag))\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) ApproveAndCall(opts *bind.TransactOpts, spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approveAndCall\", spender, tokens, data)\n}",
"func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n \n fn, args := stub.GetFunctionAndParameters()\n\n if fn == \"AddComponent\" {\n return s.AddComponent(stub, args)\n } else if fn == \"InitLedger\" {\n return s.InitLedger(stub)\n } else if fn == \"QueryCar\" {\n return s.QueryCar(stub, args)\n } else if fn == \"QueryComponent\" {\n return s.QueryComponent(stub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name.\")\n \n}",
"func TestMatchAccountless(t *testing.T) {\n\tConvey(\"Given a state with an idle worker\", t, func() {\n\t\tctx := context.Background()\n\t\ttm := time.Unix(0, 0)\n\t\ts := scheduler.New(tm)\n\t\twid := scheduler.WorkerID(\"worker\")\n\t\ts.MarkIdle(ctx, wid, nil, tm, scheduler.NullEventSink)\n\n\t\tConvey(\"and a request with no account\", func() {\n\t\t\trid := scheduler.RequestID(\"req\")\n\t\t\ts.AddRequest(ctx, scheduler.NewTaskRequest(rid, \"\", nil, nil, tm), tm, nil, scheduler.NullEventSink)\n\t\t\tConvey(\"when scheduling is run\", func() {\n\t\t\t\tmuts := s.RunOnce(ctx, scheduler.NullEventSink)\n\t\t\t\tConvey(\"then the request is matched at lowest priority.\", func() {\n\t\t\t\t\tSo(muts, ShouldHaveLength, 1)\n\t\t\t\t\tSo(muts[0].Priority, ShouldEqual, scheduler.FreeBucket)\n\t\t\t\t\tSo(muts[0].RequestID, ShouldEqual, rid)\n\t\t\t\t\tSo(muts[0].WorkerID, ShouldEqual, wid)\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t})\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrderCalldataCanMatch(buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrderCalldataCanMatch(&_WyvernExchange.CallOpts, buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrderCalldataCanMatch(buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrderCalldataCanMatch(&_WyvernExchange.CallOpts, buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n}",
"func (IsAccountActor) IsMatch(ctx runtime.PatternContext) bool {\n\treturn types.AccountActorCodeCid.Equals(ctx.Code())\n}",
"func (m *fetchMetadataReqMatcher) matchesV1(x interface{}) bool {\n\treq, ok := x.(*rpc.FetchBlocksMetadataRawRequest)\n\tif !ok {\n\t\treturn false\n\t}\n\n\tif m.shard != req.Shard {\n\t\treturn false\n\t}\n\n\tif m.limit != req.Limit {\n\t\treturn false\n\t}\n\n\tif m.pageToken == nil {\n\t\tif req.PageToken != nil {\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\tif req.PageToken == nil {\n\t\t\treturn false\n\t\t}\n\t\tif *req.PageToken != *m.pageToken {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tif m.includeSizes == nil {\n\t\tif req.IncludeSizes != nil {\n\t\t\treturn false\n\t\t}\n\t} else {\n\t\tif req.IncludeSizes == nil {\n\t\t\treturn false\n\t\t}\n\t\tif *req.IncludeSizes != *m.includeSizes {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func (s *Plugin) Match(ctx context.Context, request *interact.Request, condition *v1alpha1.MockAPI_Condition) (match bool, err error) {\n\tsimple := condition.GetSimple()\n\tif simple == nil {\n\t\treturn false, nil\n\t}\n\tc := core.NewContext(request)\n\tfor _, item := range simple.Items {\n\t\toperandX := core.Render(c, item.OperandX)\n\t\toperandY := core.Render(c, item.OperandY)\n\t\tmatched, err := core.Match(operandX, item.Operator, operandY)\n\t\tif err != nil {\n\t\t\treturn false, err\n\t\t}\n\t\tif item.Opposite {\n\t\t\tmatched = !matched\n\t\t}\n\t\tif matched {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t} else {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn false, nil\n\t\t}\n\t}\n\treturn true, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) ApproveAndCall(spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.ApproveAndCall(&_FixedSupplyToken.TransactOpts, spender, tokens, data)\n}",
"func atomicSwapContract(pkhMe, pkhThem *[ripemd160.Size]byte, locktime int64, secretHash []byte) ([]byte, error) {\n\tbuilder := txscript.NewScriptBuilder()\n\n\tbuilder.AddOp(txscript.OP_IF) // if top of stack value is not False, execute. The top stack value is removed.\n\t{\n\t\t// require initiator's secret to be a known length that the redeeming party can audit.\n\t\t// this is used to prevent fraud attacks between 2 currencies that have different maximum data sizes\n\t\tbuilder.AddOp(txscript.OP_SIZE) // pushes the string length of the top element of the stack (without popping it)\n\t\tbuilder.AddInt64(secretSize) // pushes initiator secret length\n\t\tbuilder.AddOp(txscript.OP_EQUALVERIFY) // if inputs are equal, mark tx as valid\n\n\t\t// require initiator's secret to be known to redeem the output\n\t\tbuilder.AddOp(txscript.OP_SHA256) // pushes the length of a SHA25 size\n\t\tbuilder.AddData(secretHash) // push the data to the end of the script\n\t\tbuilder.AddOp(txscript.OP_EQUALVERIFY) // if inputs are equal, mark tx as valid\n\n\t\t// verify their signature is used to redeem the ouput\n\t\t// normally it ends with OP_EQUALVERIFY OP_CHECKSIG but\n\t\t// this has been moved outside of the branch to save a couple bytes\n\t\tbuilder.AddOp(txscript.OP_DUP) // duplicates the stack of the top item\n\t\tbuilder.AddOp(txscript.OP_HASH160) // input has been hashed with SHA-256 and then with RIPEMD160 after\n\t\tbuilder.AddData(pkhThem[:]) // push the data to the end of the script\n\t}\n\n\tbuilder.AddOp(txscript.OP_ELSE) // refund path\n\t{\n\t\t// verify the locktime & drop if off the stack\n\t\tbuilder.AddInt64(locktime) // pushes locktime\n\t\tbuilder.AddOp(txscript.OP_CHECKLOCKTIMEVERIFY) // verify locktime\n\t\tbuilder.AddOp(txscript.OP_DROP) // remove the top stack item (locktime)\n\n\t\t// verify our signature is being used to redeem the output\n\t\t// normally it ends with OP_EQUALVERIFY OP_CHECKSIG but\n\t\t// this has been moved outside of the branch to save a couple bytes\n\t\tbuilder.AddOp(txscript.OP_DUP) // duplicates the stack of the top item\n\t\tbuilder.AddOp(txscript.OP_HASH160) // input has been hashed with SHA-256 and then with RIPEMD160 after\n\t\tbuilder.AddData(pkhMe[:]) // push the data to the end of the script\n\n\t}\n\tbuilder.AddOp(txscript.OP_ENDIF) // all blocks must end, or the transaction is invalid\n\n\t// returns 1 if the inputs are exactly equal, 0 otherwise.\n\t// mark transaction as invalid if top of stack is not true. The top stack value is removed.\n\tbuilder.AddOp(txscript.OP_EQUALVERIFY)\n\n\t// The entire transaction's outputs, inputs, and script are hashed.\n\t// The signature used by OP_CHECKSIG must be a valid signature for this hash\n\t// and public key. If it is, 1 is returned, 0 otherwise.\n\tbuilder.AddOp(txscript.OP_CHECKSIG)\n\treturn builder.Script()\n}",
"func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approveAndCall\", _spender, _amount, _extraData)\n}",
"func (t Term) Match(args ...interface{}) Term {\n\treturn constructMethodTerm(t, \"Match\", p.Term_MATCH, args, map[string]interface{}{})\n}",
"func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"approveAndCall\", _spender, _value, _extraData)\n}",
"func (LedgerChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*LedgerChannelProposalAccMsg)\n\treturn ok\n}",
"func containCall(name string, args ...interface{}) types.GomegaMatcher {\n\treturn &containsCallMatcher{mock.Call{\n\t\tMethod: name,\n\t\tArguments: args,\n\t}}\n}",
"func (t *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n // Extract the function and args from the transaction proposal\n fn, args := stub.GetFunctionAndParameters()\n\n var result string\n var err error\n if fn == \"set\" {\n result, err = set(stub, args)\n\n } else if fn == \"get\"{ // assume 'get' even if fn is nil\n result, err = get(stub, args)\n } else if fn == \"getHistory\"{\n \treturn getHistory(stub, args)\n } else if fn == \"getall\"{\n \treturn getall(stub)\n }\n if err != nil {\n return shim.Error(err.Error())\n }\n return shim.Success([]byte(result))\n\n}",
"func (r *Attestor) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalAttestor(b, c, r)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (m *matcher) Matches(x interface{}) bool {\n\td1 := m.StoredData\n\td2, ok := x.(*repo.StoredData)\n\tif !ok {\n\t\treturn false\n\t}\n\n\treturn d1.Data == d2.Data && d1.ID == d2.ID\n}",
"func (m AllKeysMatcher) Match(key string, attributes map[string]interface{}, bucketingKey *string) bool {\n\treturn true\n}",
"func TestHandler_FetchAtxReferences(t *testing.T) {\n\tgoldenATXID := types.ATXID{2, 3, 4}\n\n\tsig, err := signing.NewEdSigner()\n\trequire.NoError(t, err)\n\n\tposATX := types.ATXID{1, 2, 3}\n\tprevATX := types.ATXID{4, 5, 6}\n\tcommitATX := types.ATXID{7, 8, 9}\n\n\tt.Run(\"valid prev and pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), gomock.InAnyOrder([]types.ATXID{atx.PositioningATX, atx.PrevATXID})).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"valid prev ATX and golden pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, goldenATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"valid prev ATX and empty pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, types.EmptyATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, valid pos ATX and valid commitment ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\t\tatx.CommitmentATX = &commitATX\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), gomock.InAnyOrder([]types.ATXID{atx.PositioningATX, *atx.CommitmentATX})).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, valid pos ATX and golden commitment ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, posATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\t\tatx.CommitmentATX = &goldenATXID\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PositioningATX}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"empty prev ATX, empty pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, types.EmptyATXID, types.EmptyATXID, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n\n\tt.Run(\"same prev and pos ATX\", func(t *testing.T) {\n\t\tt.Parallel()\n\t\tatxHdlr := newTestHandler(t, goldenATXID)\n\n\t\tcoinbase := types.Address{2, 4, 5}\n\t\tchallenge := newChallenge(1, prevATX, prevATX, types.LayerID(22).GetEpoch(), nil)\n\t\tnipost := newNIPostWithChallenge(t, types.HexToHash32(\"55555\"), []byte(\"66666\"))\n\t\tatx := newAtx(t, sig, challenge, nipost, 2, coinbase)\n\n\t\tatxHdlr.mockFetch.EXPECT().GetAtxs(gomock.Any(), []types.ATXID{atx.PrevATXID}).Return(nil)\n\t\trequire.NoError(t, atxHdlr.FetchAtxReferences(context.Background(), atx))\n\t})\n}",
"func TestPackShareSwapSharesDoNotMatch(t *testing.T) {\n\n\townerOneAccount := makeAccount(ownerOne.publicKey)\n\townerTwoAccount := makeAccount(ownerTwo.publicKey)\n\n\tvar shareIdOne merkle.Digest\n\terr := merkleDigestFromLE(\"630c041cd1f586bcb9097e816189185c1e0379f67bbfc2f0626724f542047873\", &shareIdOne)\n\tif nil != err {\n\t\tt.Fatalf(\"hex to shareIdOne error: %s\", err)\n\t}\n\n\tvar shareIdTwo merkle.Digest\n\terr = merkleDigestFromLE(\"630c041cd1f586bcb9097e816189185c1e0379f67bbfc2f0626724f542047873\", &shareIdTwo)\n\tif nil != err {\n\t\tt.Fatalf(\"hex to shareIdTwo error: %s\", err)\n\t}\n\n\tr := transactionrecord.ShareSwap{\n\t\tShareIdOne: shareIdOne,\n\t\tQuantityOne: 129,\n\t\tOwnerOne: ownerOneAccount,\n\t\tShareIdTwo: shareIdTwo,\n\t\tQuantityTwo: 215,\n\t\tOwnerTwo: ownerTwoAccount,\n\t}\n\n\texpected := []byte{\n\t\t0x0a, 0x20, 0x63, 0x0c, 0x04, 0x1c, 0xd1, 0xf5,\n\t\t0x86, 0xbc, 0xb9, 0x09, 0x7e, 0x81, 0x61, 0x89,\n\t\t0x18, 0x5c, 0x1e, 0x03, 0x79, 0xf6, 0x7b, 0xbf,\n\t\t0xc2, 0xf0, 0x62, 0x67, 0x24, 0xf5, 0x42, 0x04,\n\t\t0x78, 0x73, 0x81, 0x01, 0x21, 0x13, 0x27, 0x64,\n\t\t0x0e, 0x4a, 0xab, 0x92, 0xd8, 0x7b, 0x4a, 0x6a,\n\t\t0x2f, 0x30, 0xb8, 0x81, 0xf4, 0x49, 0x29, 0xf8,\n\t\t0x66, 0x04, 0x3a, 0x84, 0x1c, 0x38, 0x14, 0xb1,\n\t\t0x66, 0xb8, 0x89, 0x44, 0xb0, 0x92, 0x20, 0x63,\n\t\t0x0c, 0x04, 0x1c, 0xd1, 0xf5, 0x86, 0xbc, 0xb9,\n\t\t0x09, 0x7e, 0x81, 0x61, 0x89, 0x18, 0x5c, 0x1e,\n\t\t0x03, 0x79, 0xf6, 0x7b, 0xbf, 0xc2, 0xf0, 0x62,\n\t\t0x67, 0x24, 0xf5, 0x42, 0x04, 0x78, 0x73, 0xd7,\n\t\t0x01, 0x21, 0x13, 0xa1, 0x36, 0x32, 0xd5, 0x42,\n\t\t0x5a, 0xed, 0x3a, 0x6b, 0x62, 0xe2, 0xbb, 0x6d,\n\t\t0xe4, 0xc9, 0x59, 0x48, 0x41, 0xc1, 0x5b, 0x70,\n\t\t0x15, 0x69, 0xec, 0x99, 0x99, 0xdc, 0x20, 0x1c,\n\t\t0x35, 0xf7, 0xb3, 0x00,\n\t}\n\n\t// manually sign the record and attach signature to \"expected\"\n\tsignature := ed25519.Sign(ownerOne.privateKey, expected)\n\tr.Signature = signature\n\tl := util.ToVarint64(uint64(len(signature)))\n\texpected = append(expected, l...)\n\texpected = append(expected, signature...)\n\n\t// manually countersign the record and attach countersignature to \"expected\"\n\tsignature = ed25519.Sign(ownerTwo.privateKey, expected)\n\tr.Countersignature = signature\n\n\t// test the packer\n\t_, err = r.Pack(ownerOneAccount)\n\tif fault.ShareIdsCannotBeIdentical != err {\n\t\tt.Fatalf(\"unexpected pack error: %s\", err)\n\t}\n}",
"func (r *Attestor) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalAttestor(b, c)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _amount, _extraData)\n}",
"func (IsAccountActor) IsMatch(ctx runtime.PatternContext) bool {\n\treturn builtin.IsAccountActor(ctx.CallerCode())\n}",
"func (state *ComputePeerState) Eqz (action *sproto.Action) (*sproto.Response) {\n //fmt.Println(\"Comparing values\")\n result := *action.Result\n share0 := *action.Share0\n share0val, hasShare0Val := state.SharesGet(share0)\n rcode := *action.RequestCode\n if !hasShare0Val {\n return state.failResponse (action.GetRequestCode())\n }\n res := state.neqz(share0val, rcode)\n one := int64(1) \n res = core.Sub(one, res)\n state.SharesSet(result, res)\n //fmt.Printf(\"Done testing value for zero\\n\")\n return state.okResponse (action.GetRequestCode())\n}",
"func (o *MakeStdUpdateArgsObjMatcher) Matches(arg interface{}) bool {\n\tassert := assert.New(o.t)\n\tswitch x := arg.(type) {\n\tcase *int32: // version\n\t\treturn assert.Equal(o.ver, *x, \"MSUA version match\")\n\tcase string: // id\n\t\treturn assert.Equal(o.id, x, \"MSUA id match\")\n\tcase [centrald.NumActionTypes][]string:\n\t\treturn assert.Equal(o.fields, x, \"MSUA fields match\")\n\tdefault: // object - only match type\n\t\treturn assert.IsType(o.obj, x, \"MSUA object type match\")\n\t}\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryPatent\" {\n\t\treturn s.queryPatent(APIstub, args)\n\t} else if function == \"initLedger\" {\n\t\treturn s.initLedger(APIstub)\n\t} else if function == \"recordPatent\" {\n\t\treturn s.recordPatent(APIstub, args)\n\t} else if function == \"queryAllPatents\" {\n\t\treturn s.queryAllPatents(APIstub)\n\t} else if function == \"validatePatent\" {\n\t\treturn s.validatePatent(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) ApproveAndCall(spender common.Address, tokens *big.Int, data []byte) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.ApproveAndCall(&_FixedSupplyToken.TransactOpts, spender, tokens, data)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n fmt.Println(\"Calling Invoke method.\")\n\n // Retrieve the requested Smart Contract function and arguments\n function, args := APIstub.GetFunctionAndParameters()\n fmt.Println(\"Function name: \" + function)\n\n // Route to the appropriate handler function to interact with the ledger appropriately\n if function == \"queryAsset\" {\n return s.queryAsset(APIstub, args)\n } else if function == \"makeAsset\" {\n return s.makeAsset(APIstub, args)\n } else if function == \"changeAsset\" {\n return s.changeAsset(APIstub, args)\n } else if function == \"deleteAsset\" {\n return s.deleteAsset(APIstub, args)\n } else if function == \"listHistory\" {\n return s.listHistory(APIstub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _value, _extraData)\n}",
"func MatchOrdersInternally(buy *Order, sell *Order) *Trade {\n\tbuyState := buy.GetState()\n\tsellState := sell.GetState()\n\n\t// Sanity checks\n\tif buyState.State == OrderStateCreated {\n\t\tpanic(\"buy order incorect state: created\")\n\t} else if buyState.State == OrderStateFilled {\n\t\tpanic(\"buy order incorect state: filled\")\n\t} else if buyState.State == OrderStateCancelled {\n\t\tpanic(\"buy order incorect state: cancelled\")\n\t} else if sellState.State == OrderStateCreated {\n\t\tpanic(\"sell order incorect state: created\")\n\t} else if sellState.State == OrderStateFilled {\n\t\tpanic(\"sell order incorect state: filled\")\n\t} else if sellState.State == OrderStateCancelled {\n\t\tpanic(\"sell order incorect state: cancelled\")\n\t}\n\tif buy.Ticker != sell.Ticker {\n\t\tpanic(\"cant match orders with different tickers\")\n\t}\n\n\t// Main procedure\n\tvar extTime time.Time\n\tvar buyInit bool\n\tvar matchVolume float64\n\tvar price float64\n\n\t// Get match time\n\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\textTime = buyState.TimeExt\n\t} else {\n\t\textTime = sellState.TimeExt\n\t}\n\n\t// Get init order\n\tif buyState.TimeExt != sellState.TimeExt {\n\t\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t} else {\n\t\tif buyState.Time.After(sellState.Time) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t}\n\n\t// Price\n\tif buyInit {\n\t\tprice = sell.Price\n\t} else {\n\t\tprice = buy.Price\n\t}\n\n\t// Volume matched\n\tif sellState.Balance > buyState.Balance {\n\t\tmatchVolume = buyState.Balance\n\t} else {\n\t\tmatchVolume = sellState.Balance\n\t}\n\n\ttrade := &Trade{\n\t\tTicker: buy.Ticker,\n\t\tTime: time.Now(),\n\t\tTimeExt: extTime,\n\t\tBuyInitiated: buyInit,\n\t\tVolume: matchVolume,\n\t\tPrice: price,\n\t}\n\tsell.RecordTrade(trade)\n\tbuy.RecordTrade(trade)\n\n\treturn trade\n}",
"func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\r\n\tfunction, args := stub.GetFunctionAndParameters()\r\n\r\n\t// Handle invoke functions\r\n\tif function == \"init\" { // initialise the chaincode state\r\n\t\treturn s.Init(stub)\r\n\t} else if function == \"recordAttendance\" { // create an attendance record\r\n\t\treturn recordAttendance(stub, args)\r\n\t} else if function == \"verifyAttendance\" { // verify if attendance exists\r\n\t\treturn verifyAttendance(stub, args)\r\n\t} else if function == \"readAttendance\" { // get a particular attendance record by its transaction key\r\n\t\treturn readAttendance(stub, args)\r\n\t}\r\n\r\n\treturn shim.Error(\"Invalid Smart Contract function name\")\r\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n //args := APIstub.GetFunctionAndParameters()\n args := APIstub.GetStringArgs()\n function := args[0]\n if function == \"addRecord\" {\n return s.addRecord(APIstub, args)\n } else if function == \"getRecord\" {\n return s.getRecord(APIstub, args)\n } else if function == \"encRecord\" {\n return s.encRecord(APIstub, args)\n } else if function == \"decRecord\" {\n return s.decRecord(APIstub, args)\n }\n\n return shim.Error(\"Invalid Smart Contract function name \"+function)\n}",
"func (a AnyArgument) Match(v driver.Value) bool {\n\treturn true\n}",
"func (a AnyArgument) Match(v driver.Value) bool {\n\treturn true\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryID\" {\n\t\treturn s.queryID(APIstub,args)\n\t}else if function == \"createBirth\" {\n\t\treturn s.createBirth(APIstub, args)\n\t}else if function == \"createHuman\" {\n\t\treturn s.createHuman(APIstub, args)\n\t}else if function == \"marry\" {\n\t\treturn s.marry(APIstub, args)\n\t}else if function == \"marryCheck\" {\n\t\treturn s.marryCheck(APIstub, args)\n\t}else if function == \"divorceCheck\" {\n\t\treturn s.divorceCheck(APIstub, args)\n\t}else if function == \"divorce\" {\n\t\treturn s.divorce(APIstub, args)\n\t}else if function == \"createCheck\" {\n\t\treturn s.createCheck(APIstub, args)\n\t}else if function == \"queryMarryCheck\" {\n\t\treturn s.queryMarryCheck(APIstub,args)\n\t}else if function == \"queryCreatCheck\" {\n\t\treturn s.queryCreatCheck(APIstub,args)\n\t}\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n\t\n}",
"func (_EthCrossChain *EthCrossChainTransactor) SyncAndVerify(opts *bind.TransactOpts, rawHeader []byte, sigList []byte, proof [][32]byte, position []uint8, toMerkleValueBs []byte, blockHeight uint64) (*types.Transaction, error) {\n\treturn _EthCrossChain.contract.Transact(opts, \"SyncAndVerify\", rawHeader, sigList, proof, position, toMerkleValueBs, blockHeight)\n}",
"func (s Signals) MatchesAll(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !s.Enabled() {\n\t\treturn false, fmt.Sprintf(\"no %s signals provided to match against\", tag), nil\n\t}\n\n\tsignals := []Signal{\n\t\t&s.Labels,\n\t\t&s.CommentSubstrings,\n\t\t&s.Comments,\n\t\t&s.PRBodySubstrings,\n\t\t&s.Branches,\n\t\t&s.BranchPatterns,\n\t\t&s.MaxCommits,\n\t\t&s.AutoMerge,\n\t}\n\n\tfor _, signal := range signals {\n\t\tif signal.Enabled() {\n\t\t\tmatches, _, err := signal.Matches(ctx, pullCtx, tag)\n\t\t\tif err != nil {\n\t\t\t\treturn false, \"\", err\n\t\t\t}\n\n\t\t\tif !matches {\n\t\t\t\treturn false, fmt.Sprintf(\"pull request does not match all %s signals\", tag), nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn true, fmt.Sprintf(\"pull request matches all %s signals\", tag), nil\n}",
"func (cc PipConstraints) Match(ver Version) bool {\n\tfor _, and := range cc.constraints {\n\t\tif !and.match(ver) {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"func (m StructMatcher) Match(got reflect.Value, d data.Data, r Region) (data.Data, bool) {\n\tif m.Type != got.Type() {\n\t\treturn d, false\n\t}\n\tfor i, f := range m.Fields {\n\t\tvar ok bool\n\t\td, ok = f.Match(got.Field(i), d, r)\n\t\tif !ok {\n\t\t\treturn d, false\n\t\t}\n\t}\n\treturn d, true\n}",
"func (signal BranchesSignal) Matches(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !signal.Enabled() {\n\t\treturn false, \"\", nil\n\t}\n\n\ttargetBranch, _ := pullCtx.Branches()\n\n\tfor _, signalBranch := range signal {\n\t\tif targetBranch == signalBranch {\n\t\t\treturn true, fmt.Sprintf(\"pull request target is a %s branch: %q\", tag, signalBranch), nil\n\t\t}\n\t}\n\n\treturn false, \"\", nil\n}",
"func (signal BranchPatternsSignal) Matches(ctx context.Context, pullCtx pull.Context, tag string) (bool, string, error) {\n\tif !signal.Enabled() {\n\t\treturn false, \"\", nil\n\t}\n\n\ttargetBranch, _ := pullCtx.Branches()\n\n\tfor _, signalBranch := range signal {\n\t\tif matched, _ := regexp.MatchString(fmt.Sprintf(\"^%s$\", signalBranch), targetBranch); matched {\n\t\t\treturn true, fmt.Sprintf(\"pull request target branch (%q) matches pattern: %q\", targetBranch, signalBranch), nil\n\t\t}\n\t}\n\n\treturn false, \"\", nil\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\r\n \r\n // Retrieve the requested Smart Contract function and arguments\r\n function, args := APIstub.GetFunctionAndParameters()\r\n // Route to the appropriate handler function to interact with the ledger appropriately\r\n if function == \"registerCar\" {\r\n return s.registerCar(APIstub, args)\r\n } else if function == \"createCar\" {\r\n return s.createCar(APIstub, args)\r\n } else if function == \"getCarHistory\" {\r\n return s.getCarHistory(APIstub,args)\r\n } else if function == \"changeCarOwner\" {\r\n return s.changeCarOwner(APIstub, args)\r\n } else if function == \"getCar\" {\r\n return s.getCar(APIstub, args)\r\n } else if function == \"scrapCar\" {\r\n return s.scrapCar(APIstub, args)\r\n }\r\n \r\n return shim.Error(\"Invalid Smart Contract function name.\")\r\n }",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _MainnetCryptoCardsContract.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func bitcoinCall(method string, params []interface{}, reply interface{}) error {\n\tif !globalData.initialised {\n\t\tfault.Panic(\"bitcoin not initialised\")\n\t}\n\n\tglobalData.id += 1\n\n\targuments := bitcoinArguments{\n\t\tId: globalData.id,\n\t\tMethod: method,\n\t\tParams: params,\n\t}\n\tresponse := bitcoinReply{\n\t\tResult: reply,\n\t}\n\tglobalData.log.Debugf(\"rpc call with: %v\", arguments)\n\terr := bitcoinRPC(&arguments, &response)\n\tif nil != err {\n\t\tglobalData.log.Tracef(\"rpc returned error: %v\", err)\n\t\treturn err\n\t}\n\n\tif nil != response.Error {\n\t\ts := response.Error.Message\n\t\treturn fault.ProcessError(\"Bitcoin RPC error: \" + s)\n\t}\n\treturn nil\n}",
"func (o *UpdateArgsMatcher) Matches(x interface{}) bool {\n\tassert := assert.New(o.t)\n\tua, ok := x.(*centrald.UpdateArgs)\n\tif !ok {\n\t\tassert.True(ok, \"argument ISA *centrald.UpdateArgs\")\n\t\treturn false\n\t}\n\tif o.ua.ID != ua.ID {\n\t\tassert.Equal(o.ua.ID, ua.ID, \"UAMatcher: ID same\")\n\t\treturn false\n\t}\n\tif o.versionAdded != 0 {\n\t\tassert.Zero(o.ua.Version, \"UAMatcher: Version should not be specified in params\")\n\t\tassert.NotZero(ua.Version, \"UAMatcher: Version should be added\")\n\t} else if o.ua.Version != ua.Version {\n\t\tassert.Equal(o.ua.Version, ua.Version, \"UAMatcher: Version same\")\n\t\treturn false\n\t}\n\tif o.ua.HasChanges != ua.HasChanges {\n\t\tassert.Equal(o.ua.HasChanges, ua.HasChanges, \"UAMatcher: HasChanges same\")\n\t\treturn false\n\t}\n\tif len(o.ua.Attributes) != len(ua.Attributes) {\n\t\tassert.Len(ua.Attributes, len(o.ua.Attributes), \"UAMatcher: Attributes length the same\")\n\t\treturn false\n\t}\n\t// the array elements are in arbitrary Name order\n\tfor _, oAttr := range o.ua.Attributes {\n\t\tvar attr *centrald.UpdateAttr\n\t\tfor _, a := range ua.Attributes {\n\t\t\tif a.Name == oAttr.Name {\n\t\t\t\tattr = &a\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\tif attr != nil {\n\t\t\tif !reflect.DeepEqual(oAttr, *attr) {\n\t\t\t\tassert.Equal(oAttr, *attr)\n\t\t\t\treturn false\n\t\t\t}\n\t\t} else {\n\t\t\tassert.NotNil(attr, \"UAMatcher: attribute \"+oAttr.Name+\" present\")\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"func (g *exprGuard) matches(pt models.Point) bool {\n\tswitch {\n\tcase g == nil:\n\t\treturn true\n\n\tcase g.and != nil:\n\t\treturn g.and[0].matches(pt) && g.and[1].matches(pt)\n\n\tcase g.or != nil:\n\t\treturn g.or[0].matches(pt) || g.or[1].matches(pt)\n\n\tcase g.tagMatches != nil:\n\t\tif g.tagMatches.meas {\n\t\t\treturn g.tagMatches.op(pt.Name())\n\t\t}\n\t\tfor _, tag := range pt.Tags() {\n\t\t\tif bytes.Equal(tag.Key, g.tagMatches.key) && g.tagMatches.op(tag.Value) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\n\tcase g.tagExists != nil:\n\t\tfor _, tag := range pt.Tags() {\n\t\t\tif _, ok := g.tagExists[string(tag.Key)]; ok {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\treturn false\n\n\tdefault:\n\t\treturn false\n\t}\n}",
"func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _amount, _extraData)\n}",
"func (t *Transaction) MatchWith(other *Transaction) error {\n\tif t.tp == other.tp {\n\t\treturn errors.New(\"trans: Non-complementary transaction types\")\n\t}\n\n\tif t.tp == Offer {\n\t\tt.Req = other.Req\n\t\tother.Sup = t.Sup\n\t} else {\n\t\tt.Sup = other.Sup\n\t\tother.Req = t.Req\n\t}\n\treturn nil\n}",
"func (cs CredentialsStatus) Match(secret corev1.Secret) bool {\n\tswitch {\n\tcase cs.Reference == nil:\n\t\treturn false\n\tcase cs.Reference.Name != secret.ObjectMeta.Name:\n\t\treturn false\n\tcase cs.Reference.Namespace != secret.ObjectMeta.Namespace:\n\t\treturn false\n\tcase cs.Version != secret.ObjectMeta.ResourceVersion:\n\t\treturn false\n\t}\n\treturn true\n}",
"func GetDelegatedContractsForCycle(cycle int, delegateAddr string) ([]string, error){\n var rtnString []string\n snapShot, err := GetSnapShot(cycle)\n // fmt.Println(snapShot)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": GetSnapShot(cycle int) failed: \" + err.Error())\n }\n hash, err:= GetBlockLevelHash(snapShot.AssociatedBlock)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": GetBlockLevelHash(level int) failed: \" + err.Error())\n }\n // fmt.Println(hash)\n getDelegatedContracts := \"/chains/main/blocks/\" + hash + \"/context/delegates/\" + delegateAddr + \"/delegated_contracts\"\n\n s, err := TezosRPCGet(getDelegatedContracts)\n if (err != nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": TezosRPCGet(arg string) failed: \" + err.Error())\n }\n\n DelegatedContracts := reDelegatedContracts.FindAllStringSubmatch(s, -1)\n if (DelegatedContracts == nil){\n return rtnString, errors.New(\"Could not get delegated contracts for cycle \" + strconv.Itoa(cycle) + \": You have no contracts.\")\n }\n rtnString = addressesToArray(DelegatedContracts)\n return rtnString, nil\n}",
"func Matches(pattern string, operand string) (bool, error) {\n\treturn regexp.MatchString(pattern, operand)\n}",
"func (a *Asserter) BalanceEq(addr address.Address, expected abi.TokenAmount) {\n\tst := a.suppliers.stateTracker()\n\tactor, err := st.StateTree.GetActor(addr)\n\ta.NoError(err, \"failed to fetch actor %s from state\", addr)\n\ta.Equal(expected, actor.Balance, \"balances mismatch for address %s\", addr)\n}",
"func terminate_agreement(ag *contract_api.SolidityContract, agID []byte, counterParty string, shouldWork bool) {\n log.Printf(\"Terminating agreement %v.\\n\", agID)\n tx_delay_toleration := 120\n err := error(nil)\n\n p := make([]interface{},0,10)\n p = append(p, counterParty)\n p = append(p, agID)\n p = append(p, 1)\n if _, err = ag.Invoke_method(\"terminate_agreement\", p); err != nil {\n log.Printf(\"...terminating, could not invoke terminate_agreement: %v\\n\", err)\n os.Exit(1)\n }\n log.Printf(\"Terminate agreement %v invoked.\\n\", agID)\n\n p = make([]interface{},0,10)\n p = append(p, counterParty)\n p = append(p, agID)\n empty_bytes := make([]byte, 32)\n var res interface{}\n start_timer := time.Now()\n for {\n fmt.Printf(\"There should NOT be a recorded contract hash, but it might still be visible for a few blocks.\\n\")\n if res, err = ag.Invoke_method(\"get_contract_hash\", p); err == nil {\n fmt.Printf(\"Received contract hash:%v.\\n\",res)\n if shouldWork {\n if bytes.Compare([]byte(res.(string)), empty_bytes) != 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n fmt.Printf(\"Timeout waiting for the Update.\\n\")\n os.Exit(1)\n }\n } else {\n log.Printf(\"Terminated agreement %v.\\n\", agID)\n break\n }\n } else {\n if bytes.Compare([]byte(res.(string)), empty_bytes) == 0 {\n if int(time.Now().Sub(start_timer).Seconds()) < tx_delay_toleration {\n fmt.Printf(\"Sleeping, waiting for the block with the Update.\\n\")\n time.Sleep(15 * time.Second)\n } else {\n fmt.Printf(\"Timeout waiting for the Update. This is expected\\n\")\n break\n }\n } else {\n fmt.Printf(\"Received contract hash. This is NOT expected: %v\\n\", res.(string))\n os.Exit(2)\n }\n }\n } else {\n fmt.Printf(\"Error on get_contract_hash: %v\\n\",err)\n os.Exit(1)\n }\n }\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tswitch function {\n\tcase \"initToken\":\n\t\treturn s.initLedger(APIstub, args)\n\tcase \"queryTotalAmount\":\n\t\treturn s.queryTotalAmount(APIstub)\n\tcase \"queryTokenName\":\n\t\treturn s.queryTokenName(APIstub)\n\tcase \"queryTokenSymbol\":\n\t\treturn s.queryTokenSymbol(APIstub)\n\tcase \"queryReserve\":\n\t\treturn s.queryReserve(APIstub)\n\tcase \"createAccount\":\n\t\treturn s.createAccount(APIstub, args)\n\tcase \"balanceOf\":\n\t\treturn s.queryValue(APIstub, args)\n\tcase \"transfer\":\n\t\treturn s.transfer(APIstub, args)\n\tcase \"buyToken\":\n\t\tnewArgs := []string{\"admin\",args[1],args[0],args[2]}\n\t\treturn s.transfer(APIstub, newArgs)\n\tcase \"sellToken\":\n\t\tnewArgs := []string{args[0],args[1],\"admin\",args[2]}\n\t\treturn s.transfer(APIstub, newArgs)\n\tcase \"mintToken\":\n\t\treturn s.mintTokens(APIstub, args)\n\tcase \"burnToken\":\n\t\treturn s.burnTokens(APIstub, args)\n\tcase \"approve\":\n\t\treturn s.approve(APIstub, args)\n\tcase \"allowance\":\n\t\treturn s.queryAllowance(APIstub, args)\n\tcase \"increaseAllowance\":\n\t\treturn s.increaseAllowance(APIstub, args)\n\tcase \"decreaseAllowance\":\n\t\treturn s.decreaseAllowance(APIstub, args)\n\tcase \"transferFrom\":\n\t\treturn s.transferFrom(APIstub, args)\n\t}\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (m MatcherFunc) Matches(endpoint Endpoint) (bool, error) {\n\treturn m(endpoint)\n}",
"func (i *Intent) Matches(_ context.Context, command string) bool {\n\t// TODO Add placeholder support and return the found pairings as well\n\tif command == i.Command {\n\t\treturn true\n\t}\n\n\tfor _, cmd := range i.Alternatives {\n\t\tif cmd == command {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}",
"func (t *myChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error) {\n switch function {\n\n case \"create\":\n if len(args) < 4{\n return nil, errors.New(\"create operation must include at last four arguments, a uuid , a from , a to and timestamp\")\n }\n // get the args\n uuid := args[0]\n fromid := args[1]\n toid := args[2]\n timestamp := args[3]\n metadata := args[4]\n history := fromid\n owner := fromid\n status := \"0\"\n createtm := timestamp\n submittm := \"0\"\n confirmtm := \"0\"\n\n //TODO: need some check for fromid and data\n //check fromid and toid\n if fromid == toid {\n return nil, errors.New(\"create operation failed, fromid is same with toid\")\n }\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n \n //check for existence of the bill\n oldvalue, err := stub.GetState(uuid)\n if err != nil {\n return nil, fmt.Errorf(\"create operation failed. Error accessing state(check the existence of bill): %s\", err)\n }\n if oldvalue != nil {\n return nil, fmt.Errorf(\"existed bill!\")\n } \n\n key := uuid\n value := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"value is %s\", value)\n\n err = stub.PutState(key, []byte(value))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"create operation failed. Error updating state: %s\", err)\n }\n //store the metadata\n key = uuid + sp + \"md\"\n value = metadata\n fmt.Printf(\"value is %s\", value)\n\n err = stub.PutState(key, []byte(value))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"store the metadat operation failed. Error updating state: %s\", err)\n }\n\n //store the from and to \n key = fromid + sp + timestamp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for fromid : %s\", err)\n }\n key = toid + sp + timestamp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for toid : %s\", err)\n }\n return nil,nil\n\n case \"transfer\":\n if len(args) < 4{\n return nil, errors.New(\"transfer operation must include at last there arguments, a uuid , a owner , a toid and timestamp\")\n }\n //get the args\n key := args[0]\n uuid := key\n _owner := args[1]\n _toid := args[2]\n timestamp := args[3]\n\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n confirmtm := listValue[7]\n \n //ToDo: some check for the owner?\n // if the person don't own it, he can transfer this bill\n if _owner != owner {\n return []byte(\"don't have the right to transfer the bill\"), errors.New(\"don't have the right to transfer\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n //if the owner is toid, it cann't be transfer any more\n if owner == toid {\n return []byte(\"cann't transfer bill now\"), errors.New(\"cann't transfer this bill now\") \n }\n if status == \"2\" {\n return []byte(\"this bill has been submited adn you can't transfer it any more!\"), errors.New(\"this bill has been submited adn you can't transfer it any more!\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"0\"{\n status = \"1\"\n }\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n history = history + \",\" + _toid\n owner = _toid\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"transfer operation failed. Error updating state: %s\", err)\n }\n //ToDo: some check for the state of puting \n // add two sp have no reasons:)\n key = owner + sp + sp + uuid\n err = stub.PutState(key, []byte(timestamp))\n if err != nil {\n fmt.Printf(\"Error putting state for owner : %s\", err)\n }\n return nil, nil\n\n case \"submit\":\n if len(args) < 4{\n return nil, errors.New(\"submit operation must include at last three arguments, a uuid, a owner , timestamp and data for reimbursement\")\n }\n //get the args\n key := args[0]\n uuid := key \n _owner := args[1]\n timestamp := args[2]\n data := args[3]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n //update the submittm\n submittm := timestamp\n confirmtm := listValue[7]\n\n // if the person don't own it, he can transfer this bill\n if _owner != owner {\n return []byte(\"don't have the right to submit the bill\"), errors.New(\"don't have the right to submit\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"2\" {\n return []byte(\"this bill has been submited adn you can't transfer it any more!\"), errors.New(\"this bill has been submited adn you can't transfer it any more!\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"1\" || status == \"0\" {\n status = \"2\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"submit operation failed. Error updating state: %s\", err)\n }\n\n //store the info of reimbursement\n key = uuid + sp + \"bx\"\n fmt.Printf(\"the info of reimbursement is %s\", data)\n err = stub.PutState(key, []byte(data))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"submit operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n case \"confirm\":\n if len(args) < 3 {\n return nil, errors.New(\"confirm operation must include at last there arguments, a uuid , a toid and timestamp\")\n }\n //get the args\n key := args[0]\n _toid := args[1]\n timestamp := args[2]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n //update the history\n history := listValue[2] + \",\" + toid\n //update the owner\n owner := toid\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n //update the confirmtm\n confirmtm := timestamp\n\n // if the person is not the toid\n if _toid != toid {\n return []byte(\"don't have the right to confirm the bill\"), errors.New(\"don't have the right to confirm\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"1\" || status == \"0\" {\n return []byte(\"this bill has not been submited \"), errors.New(\"this bill has not been submited\")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"2\" {\n status = \"3\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"confirm operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n case \"reject\":\n if len(args) < 4 {\n return nil, errors.New(\"reject operation must include at last four arguments, a uuid , a toid , a reason and timestamp\")\n }\n //get the args\n key := args[0]\n uuid := key \n _toid := args[1]\n reason := args[2]\n timestamp := args[3]\n\n //do some check for the timestamp\n ts := time.Now().Unix() \n tm, err := strconv.ParseInt(timestamp, 10, 64) \n if err != nil {\n return nil, fmt.Errorf(\"bad format of the timestamp\")\n }\n if tm - ts > 3600 || ts - tm > 3600 {\n return nil, fmt.Errorf(\"the timestamp is bad one !\")\n }\n\n //get the info of uuid\n value, err := stub.GetState(key)\n if err != nil {\n return nil, fmt.Errorf(\"get operation failed. Error accessing state: %s\", err)\n }\n if value == nil {\n return nil, fmt.Errorf(\"this bill does not exist\")\n }\n listValue := strings.Split(string(value), sp)\n fromid := listValue[0]\n toid := listValue[1]\n history := listValue[2]\n owner := listValue[3]\n status := listValue[4]\n createtm := listValue[5]\n submittm := listValue[6]\n confirmtm := timestamp\n\n // if the person is not the toid\n if _toid != toid {\n return []byte(\"don't have the right to reject the bill\"), errors.New(\"don't have the right to reject\")\n //return nil, errors.New(\"don't have the right to transfer\")\n }\n if status == \"1\" || status == \"0\" {\n return []byte(\"this bill has not been submited \"), errors.New(\"this bill has not been submited \")\n }\n if status == \"3\" {\n return []byte(\"this bill has been reimbursed!\"), errors.New(\"this bill has been reimbursed!\")\n }\n if status == \"2\" {\n status = \"1\"\n }\n\n //update the uuid info\n newvalue := fromid + sp + toid + sp + history + sp + owner + sp + status + sp + createtm + sp + submittm + sp + confirmtm\n fmt.Printf(\"the old value is: %s\", value)\n fmt.Printf(\"the new value is: %s\", newvalue)\n err = stub.PutState(key, []byte(newvalue))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"reject operation failed. Error updating state: %s\", err)\n }\n\n //update the reason for unconfirmtion\n key = uuid + sp + \"bx\"\n err = stub.PutState(key, []byte(reason))\n if err != nil {\n fmt.Printf(\"Error putting state %s\", err)\n return nil, fmt.Errorf(\"reject operation failed. Error updating state: %s\", err)\n }\n return nil, nil\n\n default:\n return nil, errors.New(\"Unsupported operation\")\n }\n}",
"func (b *Builder) Match(msg *insightV1.LogMessage) bool {\n\tfor _, m := range b.chain {\n\t\tif !m.Match(msg) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func fnMatch(ctx Context, doc *JDoc, params []string) interface{} {\n\tstats := ctx.Value(EelTotalStats).(*ServiceStats)\n\tif params == nil || len(params) != 2 {\n\t\tctx.Log().Error(\"error_type\", \"func_match\", \"op\", \"match\", \"cause\", \"wrong_number_of_parameters\", \"params\", params)\n\t\tstats.IncErrors()\n\t\tAddError(ctx, SyntaxError{fmt.Sprintf(\"wrong number of parameters in call to match function\"), \"match\", params})\n\t\treturn nil\n\t}\n\treg, err := regexp.Compile(extractStringParam(params[1]))\n\tif err != nil {\n\t\tctx.Log().Error(\"error_type\", \"func_match\", \"op\", \"match\", \"cause\", \"invalid_regex\", \"params\", params, \"error\", err.Error())\n\t\tstats.IncErrors()\n\t\tAddError(ctx, RuntimeError{fmt.Sprintf(\"invalid regex in call to match function: %s\", err.Error()), \"match\", params})\n\t\treturn nil\n\t}\n\treturn reg.MatchString(extractStringParam(params[0]))\n}",
"func (cct pipConstraint) match(v Version) bool {\n\treturn cct.compare(v, cct)\n}",
"func (s *Transaction) MatchList() (IDs []string, err error) {\n\tdefer func() {\n\t\tif err != nil {\n\t\t\ts.errors = append(s.errors, err)\n\t\t}\n\t}()\n\n\tfor _, m := range s.inMemoryCopy.Matchs {\n\t\tIDs = append(IDs, m.ID)\n\t}\n\n\treturn IDs, nil\n}",
"func (chaincode *Chaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response {\n\t// Extract the function and args from the transaction proposal\n\tfn, args := stub.GetFunctionAndParameters()\n\n\tswitch fn {\n\tcase \"exchange\": // echange addr currency coins\n\t\tif len(args) != 3 {\n\t\t\treturn shim.Error(fmt.Sprintf(\"expected 3 args (addr currency quantity), got %d\", len(args)))\n\t\t}\n\n\t\tvar addr, currencyName, quatityStr = args[0], args[1], args[2]\n\t\tvar quantity, errParseQuantity = strconv.ParseUint(quatityStr, 10, 64)\n\n\t\tif errParseQuantity == nil {\n\t\t\treturn shim.Error(errParseQuantity.Error())\n\t\t}\n\n\t\tvar price, errGetPrice = chaincode.GetPrice()\n\t\tif errGetPrice != nil {\n\t\t\treturn shim.Error(errGetPrice.Error())\n\t\t}\n\n\t\tvar marshalledWallet, errGetWallet = stub.GetState(addr)\n\t\tif errGetWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar wallet, errParseWallet = strconv.ParseUint(string(marshalledWallet), 10, 64)\n\t\tif errParseWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar currency, exists = price.Bpi[currencyName]\n\t\tif !exists {\n\t\t\treturn shim.Error(fmt.Sprintf(\"currency %q not found\", currencyName))\n\t\t}\n\n\t\twallet = uint64(currency.RateFloat) * quantity\n\n\t\tvar errPutState = stub.PutState(addr, []byte(strconv.FormatUint(wallet, 10)))\n\t\tif errPutState != nil {\n\t\t\treturn shim.Error(errPutState.Error())\n\t\t}\n\t\treturn shim.Success([]byte(fmt.Sprintf(\"wallet: %d\", wallet)))\n\tcase \"get\":\n\n\t\tif len(args) != 1 {\n\t\t\treturn shim.Error(fmt.Sprintf(\"expected 1 args (addr), got %d\", len(args)))\n\t\t}\n\n\t\tvar addr = args[0]\n\n\t\tvar marshalledWallet, errGetWallet = stub.GetState(addr)\n\t\tif errGetWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\tvar wallet, errParseWallet = strconv.ParseUint(string(marshalledWallet), 10, 64)\n\t\tif errParseWallet != nil {\n\t\t\treturn shim.Error(errGetWallet.Error())\n\t\t}\n\n\t\treturn shim.Success([]byte(fmt.Sprintf(\"wallet: %d\", wallet)))\n\tdefault:\n\t\treturn shim.Error(fmt.Sprintf(\"unknown command %q\", fn))\n\t}\n\t// Return the result as success payload\n\n}",
"func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error) {\n\treturn _Token.Contract.ApproveAndCall(&_Token.TransactOpts, _spender, _value, _extraData)\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tswitch function {\n\tcase \"initVote\":\n\t\treturn s.initVote(APIstub)\n\tcase \"beginSignUp\":\n\t\treturn s.beginSignUp(APIstub, args)\n\tcase \"finishRegistrationPhase\":\n\t\treturn s.finishRegistrationPhase(APIstub)\n\tcase \"submitVote\":\n\t\treturn s.submitVote(APIstub, args)\n\tcase \"setEligible\":\n\t\treturn s.setEligible(APIstub, args)\n\tcase \"register\":\n\t\treturn s.register(APIstub, args)\n\tcase \"computeTally\":\n\t\treturn s.computeTally(APIstub)\n\tcase \"question\":\n\t\treturn s.question(APIstub)\n\tdefault:\n\t\treturn shim.Error(\"Invalid Smart Contract function name: \" + function)\n\t}\n}",
"func (c Provider) Match(query string) (params []string) {\n\tif sm := MirrorsRegex.FindStringSubmatch(query); len(sm) > 1 {\n\t\tparams = sm[1:]\n\t}\n\treturn\n}",
"func TestAcceptReorg(t *testing.T) {\n\tissuer1, vm1, _, sharedMemory1 := GenesisVM(t, true, genesisJSONApricotPhase0, \"\", \"\")\n\tissuer2, vm2, _, sharedMemory2 := GenesisVM(t, true, genesisJSONApricotPhase0, \"\", \"\")\n\n\tdefer func() {\n\t\tif err := vm1.Shutdown(); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\n\t\tif err := vm2.Shutdown(); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}()\n\n\tkey, err := accountKeystore.NewKey(rand.Reader)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Import 1 AVAX\n\timportAmount := uint64(1000000000)\n\tutxoID := avax.UTXOID{\n\t\tTxID: ids.ID{\n\t\t\t0x0f, 0x2f, 0x4f, 0x6f, 0x8e, 0xae, 0xce, 0xee,\n\t\t\t0x0d, 0x2d, 0x4d, 0x6d, 0x8c, 0xac, 0xcc, 0xec,\n\t\t\t0x0b, 0x2b, 0x4b, 0x6b, 0x8a, 0xaa, 0xca, 0xea,\n\t\t\t0x09, 0x29, 0x49, 0x69, 0x88, 0xa8, 0xc8, 0xe8,\n\t\t},\n\t}\n\n\tutxo := &avax.UTXO{\n\t\tUTXOID: utxoID,\n\t\tAsset: avax.Asset{ID: vm1.ctx.LUVAssetID},\n\t\tOut: &secp256k1fx.TransferOutput{\n\t\t\tAmt: importAmount,\n\t\t\tOutputOwners: secp256k1fx.OutputOwners{\n\t\t\t\tThreshold: 1,\n\t\t\t\tAddrs: []ids.ShortID{testKeys[0].PublicKey().Address()},\n\t\t\t},\n\t\t},\n\t}\n\tutxoBytes, err := vm1.codec.Marshal(codecVersion, utxo)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\txChainSharedMemory1 := sharedMemory1.NewSharedMemory(vm1.ctx.XChainID)\n\txChainSharedMemory2 := sharedMemory2.NewSharedMemory(vm2.ctx.XChainID)\n\tinputID := utxo.InputID()\n\tif err := xChainSharedMemory1.Put(vm1.ctx.ChainID, []*atomic.Element{{\n\t\tKey: inputID[:],\n\t\tValue: utxoBytes,\n\t\tTraits: [][]byte{\n\t\t\ttestKeys[0].PublicKey().Address().Bytes(),\n\t\t},\n\t}}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif err := xChainSharedMemory2.Put(vm2.ctx.ChainID, []*atomic.Element{{\n\t\tKey: inputID[:],\n\t\tValue: utxoBytes,\n\t\tTraits: [][]byte{\n\t\t\ttestKeys[0].PublicKey().Address().Bytes(),\n\t\t},\n\t}}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\timportTx, err := vm1.newImportTx(vm1.ctx.XChainID, key.Address, []*crypto.PrivateKeySECP256K1R{testKeys[0]})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1.issueTx(importTx); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t<-issuer1\n\n\tvm1BlkA, err := vm1.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build block with import transaction: %s\", err)\n\t}\n\n\tif err := vm1BlkA.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\n\tif status := vm1BlkA.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of built block to be %s, but found %s\", choices.Processing, status)\n\t}\n\n\tif err := vm1.SetPreference(vm1BlkA.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tvm2BlkA, err := vm2.ParseBlock(vm1BlkA.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\tif err := vm2BlkA.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM2: %s\", err)\n\t}\n\tif status := vm2BlkA.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of block on VM2 to be %s, but found %s\", choices.Processing, status)\n\t}\n\tif err := vm2.SetPreference(vm2BlkA.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1BlkA.Accept(); err != nil {\n\t\tt.Fatalf(\"VM1 failed to accept block: %s\", err)\n\t}\n\tif err := vm2BlkA.Accept(); err != nil {\n\t\tt.Fatalf(\"VM2 failed to accept block: %s\", err)\n\t}\n\n\t// Create list of 10 successive transactions to build block A on vm1\n\t// and to be split into two separate blocks on VM2\n\ttxs := make([]*types.Transaction, 10)\n\tfor i := 0; i < 10; i++ {\n\t\ttx := types.NewTransaction(uint64(i), key.Address, big.NewInt(10), 21000, params.LaunchMinGasPrice, nil)\n\t\tsignedTx, err := types.SignTx(tx, types.NewEIP155Signer(vm1.chainID), key.PrivateKey)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\ttxs[i] = signedTx\n\t}\n\n\t// Add the remote transactions, build the block, and set VM1's preference\n\t// for block B\n\terrs := vm1.chain.AddRemoteTxs(txs)\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM1 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer1\n\n\tvm1BlkB, err := vm1.BuildBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif err := vm1BlkB.Verify(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tif status := vm1BlkB.Status(); status != choices.Processing {\n\t\tt.Fatalf(\"Expected status of built block to be %s, but found %s\", choices.Processing, status)\n\t}\n\n\tif err := vm1.SetPreference(vm1BlkB.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terrs = vm2.chain.AddRemoteTxs(txs[0:5])\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM2 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer2\n\n\tvm2BlkC, err := vm2.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build BlkC on VM2: %s\", err)\n\t}\n\n\tif err := vm2BlkC.Verify(); err != nil {\n\t\tt.Fatalf(\"BlkC failed verification on VM2: %s\", err)\n\t}\n\n\tif err := vm2.SetPreference(vm2BlkC.ID()); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\terrs = vm2.chain.AddRemoteTxs(txs[5:])\n\tfor i, err := range errs {\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Failed to add transaction to VM2 at index %d: %s\", i, err)\n\t\t}\n\t}\n\n\t<-issuer2\n\n\tvm2BlkD, err := vm2.BuildBlock()\n\tif err != nil {\n\t\tt.Fatalf(\"Failed to build BlkD on VM2: %s\", err)\n\t}\n\n\t// Parse blocks produced in vm2\n\tvm1BlkC, err := vm1.ParseBlock(vm2BlkC.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\n\tvm1BlkD, err := vm1.ParseBlock(vm2BlkD.Bytes())\n\tif err != nil {\n\t\tt.Fatalf(\"Unexpected error parsing block from vm2: %s\", err)\n\t}\n\n\tif err := vm1BlkC.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\tif err := vm1BlkD.Verify(); err != nil {\n\t\tt.Fatalf(\"Block failed verification on VM1: %s\", err)\n\t}\n\n\tblkBHash := vm1BlkB.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkBHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkBHash.Hex(), b.Hash().Hex())\n\t}\n\n\tif err := vm1BlkC.Accept(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tblkCHash := vm1BlkC.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkCHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkCHash.Hex(), b.Hash().Hex())\n\t}\n\n\tif err := vm1BlkD.Accept(); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tblkDHash := vm1BlkD.(*chain.BlockWrapper).Block.(*Block).ethBlock.Hash()\n\tif b := vm1.chain.BlockChain().CurrentBlock(); b.Hash() != blkDHash {\n\t\tt.Fatalf(\"expected current block to have hash %s but got %s\", blkDHash.Hex(), b.Hash().Hex())\n\t}\n}",
"func (SubChannelProposalMsg) Matches(acc ChannelProposalAccept) bool {\n\t_, ok := acc.(*SubChannelProposalAccMsg)\n\treturn ok\n}",
"func (r *Service) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalService(b, c, r)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func Match(regx string, arg string) bool {\n\tmatched, err := regexp.MatchString(\"^(\"+regx+\")$\", arg)\n\tif err != nil {\n\t\treturn false\n\t}\n\treturn matched\n}",
"func (atc *AtomicTransactionComposer) AddMethodCall(params AddMethodCallParams) error {\n\tif atc.status != BUILDING {\n\t\treturn errors.New(\"status must be BUILDING in order to add transactions\")\n\t}\n\n\tif len(params.MethodArgs) != len(params.Method.Args) {\n\t\treturn fmt.Errorf(\"the incorrect number of arguments were provided: %d != %d\", len(params.MethodArgs), len(params.Method.Args))\n\t}\n\n\tif atc.Count()+params.Method.GetTxCount() > MaxAtomicGroupSize {\n\t\treturn fmt.Errorf(\"reached max group size: %d\", MaxAtomicGroupSize)\n\t}\n\n\tif params.AppID == 0 {\n\t\tif len(params.ApprovalProgram) == 0 || len(params.ClearProgram) == 0 {\n\t\t\treturn fmt.Errorf(\"ApprovalProgram and ClearProgram must be provided for an application creation call\")\n\t\t}\n\t} else if params.OnComplete == types.UpdateApplicationOC {\n\t\tif len(params.ApprovalProgram) == 0 || len(params.ClearProgram) == 0 {\n\t\t\treturn fmt.Errorf(\"ApprovalProgram and ClearProgram must be provided for an application update call\")\n\t\t}\n\t\tif (params.GlobalSchema != types.StateSchema{}) || (params.LocalSchema != types.StateSchema{}) {\n\t\t\treturn fmt.Errorf(\"GlobalSchema and LocalSchema must not be provided for an application update call\")\n\t\t}\n\t} else if len(params.ApprovalProgram) != 0 || len(params.ClearProgram) != 0 || (params.GlobalSchema != types.StateSchema{}) || (params.LocalSchema != types.StateSchema{}) {\n\t\treturn fmt.Errorf(\"ApprovalProgram, ClearProgram, GlobalSchema, and LocalSchema must not be provided for a non-creation call\")\n\t}\n\n\tvar txsToAdd []TransactionWithSigner\n\tvar basicArgValues []interface{}\n\tvar basicArgTypes []abi.Type\n\tvar refArgValues []interface{}\n\tvar refArgTypes []string\n\trefArgIndexToBasicArgIndex := make(map[int]int)\n\tfor i, arg := range params.Method.Args {\n\t\targValue := params.MethodArgs[i]\n\n\t\tif arg.IsTransactionArg() {\n\t\t\ttxnAndSigner, ok := argValue.(TransactionWithSigner)\n\t\t\tif !ok {\n\t\t\t\treturn fmt.Errorf(\"invalid arg type, expected transaction\")\n\t\t\t}\n\n\t\t\terr := atc.validateTransaction(txnAndSigner.Txn, arg.Type)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\ttxsToAdd = append(txsToAdd, txnAndSigner)\n\t\t} else {\n\t\t\tvar abiType abi.Type\n\t\t\tvar err error\n\n\t\t\tif arg.IsReferenceArg() {\n\t\t\t\trefArgIndexToBasicArgIndex[len(refArgTypes)] = len(basicArgTypes)\n\t\t\t\trefArgValues = append(refArgValues, argValue)\n\t\t\t\trefArgTypes = append(refArgTypes, arg.Type)\n\n\t\t\t\t// treat the reference as a uint8 for encoding purposes\n\t\t\t\tabiType, err = abi.TypeOf(\"uint8\")\n\t\t\t} else {\n\t\t\t\tabiType, err = arg.GetTypeObject()\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tbasicArgValues = append(basicArgValues, argValue)\n\t\t\tbasicArgTypes = append(basicArgTypes, abiType)\n\t\t}\n\t}\n\n\t// copy foreign arrays before modifying in populateMethodCallReferenceArgs\n\tforeignAccounts := make([]string, len(params.ForeignAccounts))\n\tcopy(foreignAccounts, params.ForeignAccounts)\n\tforeignApps := make([]uint64, len(params.ForeignApps))\n\tcopy(foreignApps, params.ForeignApps)\n\tforeignAssets := make([]uint64, len(params.ForeignAssets))\n\tcopy(foreignAssets, params.ForeignAssets)\n\n\trefArgsResolved, err := populateMethodCallReferenceArgs(\n\t\tparams.Sender.String(),\n\t\tparams.AppID,\n\t\trefArgTypes,\n\t\trefArgValues,\n\t\t&foreignAccounts,\n\t\t&foreignApps,\n\t\t&foreignAssets,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\tfor i, resolved := range refArgsResolved {\n\t\tbasicArgIndex := refArgIndexToBasicArgIndex[i]\n\t\t// use the foreign array index as the encoded argument value\n\t\tbasicArgValues[basicArgIndex] = resolved\n\t}\n\n\t// Up to 16 app arguments can be passed to app call. First is reserved for method selector,\n\t// and the rest are for method call arguments. But if more than 15 method call arguments\n\t// are present, then the method arguments after the 14th are placed in a tuple in the last app\n\t// argument slot\n\tif len(basicArgValues) > maxAppArgs-1 {\n\t\ttypesForTuple := make([]abi.Type, len(basicArgTypes)-methodArgsTupleThreshold)\n\t\tcopy(typesForTuple, basicArgTypes[methodArgsTupleThreshold:])\n\n\t\tvalueForTuple := make([]interface{}, len(basicArgValues)-methodArgsTupleThreshold)\n\t\tcopy(valueForTuple, basicArgValues[methodArgsTupleThreshold:])\n\n\t\ttupleType, err := abi.MakeTupleType(typesForTuple)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tbasicArgValues = append(basicArgValues[:methodArgsTupleThreshold], valueForTuple)\n\t\tbasicArgTypes = append(basicArgTypes[:methodArgsTupleThreshold], tupleType)\n\t}\n\n\tencodedAbiArgs := [][]byte{params.Method.GetSelector()}\n\n\tfor i, abiArg := range basicArgValues {\n\t\tencodedArg, err := basicArgTypes[i].Encode(abiArg)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tencodedAbiArgs = append(encodedAbiArgs, encodedArg)\n\t}\n\n\ttx, err := MakeApplicationCallTxWithBoxes(\n\t\tparams.AppID,\n\t\tencodedAbiArgs,\n\t\tforeignAccounts,\n\t\tforeignApps,\n\t\tforeignAssets,\n\t\tparams.BoxReferences,\n\t\tparams.OnComplete,\n\t\tparams.ApprovalProgram,\n\t\tparams.ClearProgram,\n\t\tparams.GlobalSchema,\n\t\tparams.LocalSchema,\n\t\tparams.ExtraPages,\n\t\tparams.SuggestedParams,\n\t\tparams.Sender,\n\t\tparams.Note,\n\t\ttypes.Digest{},\n\t\tparams.Lease,\n\t\tparams.RekeyTo)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ttxAndSigner := TransactionWithSigner{\n\t\tTxn: tx,\n\t\tSigner: params.Signer,\n\t}\n\n\tfor _, txAndSigner := range txsToAdd {\n\t\ttxContext := transactionContext{\n\t\t\ttxn: txAndSigner.Txn,\n\t\t\tsigner: txAndSigner.Signer,\n\t\t}\n\t\tatc.txContexts = append(atc.txContexts, txContext)\n\t}\n\n\tmethodCallTxContext := transactionContext{\n\t\ttxn: txAndSigner.Txn,\n\t\tsigner: txAndSigner.Signer,\n\t\tmethod: ¶ms.Method,\n\t}\n\tatc.txContexts = append(atc.txContexts, methodCallTxContext)\n\treturn nil\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"queryHash\" {\n\t\treturn s.queryHash(APIstub, args)\n\t } else if function == \"initLedger\" {\n\t \treturn s.initLedger(APIstub)\n\t } else if function == \"addHash\" {\n\t\treturn s.addHash(APIstub, args)\n\t} else if function == \"queryAllHashes\" {\n\t\treturn s.queryAllHashes(APIstub)\n\t} else if function == \"changeHash\" {\n\t\treturn s.changeHash(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (cc *InteropCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response {\n fmt.Println(\"Invoking Mock Fabric Interop CC\")\n function, args := stub.GetFunctionAndParameters()\n if function == \"GetTotalFungibleLockedAssets\" {\n return shim.Success([]byte(strconv.Itoa(cc.fungibleAssetLockedCount[args[0]])))\n }\n caller, _ := stub.GetCreator()\n if function == \"LockAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n key := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(key)\n val := key + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] != \"\" {\n return shim.Error(fmt.Sprintf(\"Asset of type %s and ID %s is already locked\", assetAgreement.AssetType, assetAgreement.Id))\n }\n cc.assetLockMap[contractId] = val\n return shim.Success([]byte(contractId))\n }\n if function == \"LockFungibleAsset\" { // We are only going to lock once or twice in each unit test function, so bookkeeping doesn't need to be thorough\n assetAgreement := &common.FungibleAssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n val := assetAgreement.AssetType + \":\" + strconv.Itoa(int(assetAgreement.NumUnits)) + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n contractId := generateSHA256HashInBase64Form(val)\n cc.fungibleAssetLockMap[contractId] = val\n\tif cc.fungibleAssetLockedCount[assetAgreement.AssetType] == 0 {\n\t\tcc.fungibleAssetLockedCount[assetAgreement.AssetType] = int(assetAgreement.NumUnits)\n\t} else {\n\t\tcc.fungibleAssetLockedCount[assetAgreement.AssetType] += int(assetAgreement.NumUnits)\n\t}\n return shim.Success([]byte(contractId))\n }\n if function == \"IsAssetLocked\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + assetAgreement.Locker + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] == expectedVal {\n return shim.Success([]byte(\"true\"))\n } else {\n return shim.Success([]byte(\"false\"))\n }\n }\n if function == \"IsFungibleAssetLocked\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be either the locker or the recipient\n\t\tif assetLockValSplit[2] != string(caller) && assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Success([]byte(\"false\"))\n\t\t}\n\t\treturn shim.Success([]byte(\"true\"))\n\t} else {\n return shim.Success([]byte(\"false\"))\n\t}\n }\n if function == \"IsAssetLockedQueryUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\t// caller not necessarily need to be one of either locker or recipient\n\t\treturn shim.Success([]byte(\"true\"))\n\t} else {\n return shim.Success([]byte(\"false\"))\n\t}\n }\n if function == \"UnlockAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + string(caller) + \":\" + assetAgreement.Recipient\n if cc.assetLockMap[contractId] == \"\" {\n return shim.Error(fmt.Sprintf(\"No asset of type %s and ID %s is locked\", assetAgreement.AssetType, assetAgreement.Id))\n } else if cc.assetLockMap[contractId] != expectedVal {\n return shim.Error(fmt.Sprintf(\"Cannot unlock asset of type %s and ID %s as it is locked by %s for %s\", assetAgreement.AssetType, assetAgreement.Id, string(caller), assetAgreement.Recipient))\n } else {\n delete(cc.assetLockMap, contractId)\n return shim.Success(nil)\n }\n }\n if function == \"UnlockFungibleAsset\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be the locker\n\t\tif assetLockValSplit[2] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot unlock fungible asset using contractId %s as caller is different from locker\", contractId))\n\t\t}\n\t\tdelete(cc.fungibleAssetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No fungible asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"UnlockAssetUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.assetLockMap[contractId], \":\")\n\t\t// caller need to be the locker\n\t\tif assetLockValSplit[2] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot unlock asset using contractId %s as caller is different from locker\", contractId))\n\t\t}\n\t\tdelete(cc.assetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"ClaimAsset\" {\n assetAgreement := &common.AssetExchangeAgreement{}\n arg0, _ := base64.StdEncoding.DecodeString(args[0])\n _ = proto.Unmarshal([]byte(arg0), assetAgreement)\n expectedKey := assetAgreement.AssetType + \":\" + assetAgreement.Id\n contractId := generateSHA256HashInBase64Form(expectedKey)\n expectedVal := expectedKey + \":\" + assetAgreement.Locker + \":\" + string(caller)\n if cc.assetLockMap[contractId] == \"\" {\n return shim.Error(fmt.Sprintf(\"No asset of type %s and ID %s is locked\", assetAgreement.AssetType, assetAgreement.Id))\n } else if cc.assetLockMap[contractId] != expectedVal {\n return shim.Error(fmt.Sprintf(\"Cannot unlock asset of type %s and ID %s as it is locked by %s for %s\", assetAgreement.AssetType, assetAgreement.Id, assetAgreement.Locker, string(caller)))\n } else {\n delete(cc.assetLockMap, contractId)\n return shim.Success(nil)\n }\n }\n if function == \"ClaimFungibleAsset\" {\n contractId := args[0]\n\tif _, contractExists := cc.fungibleAssetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.fungibleAssetLockMap[contractId], \":\")\n\t\t// caller need to be the recipient\n\t\tif assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot claim fungible asset using contractId %s as caller is different from recipient\", contractId))\n\t\t}\n\t\tdelete(cc.fungibleAssetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No fungible asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"ClaimAssetUsingContractId\" {\n contractId := args[0]\n\tif _, contractExists := cc.assetLockMap[contractId]; contractExists {\n\t\tassetLockValSplit := strings.Split(cc.assetLockMap[contractId], \":\")\n\t\t// caller need to be the recipient\n\t\tif assetLockValSplit[3] != string(caller) {\n\t\t\treturn shim.Error(fmt.Sprintf(\"cannot claim asset using contractId %s as caller is different from recipient\", contractId))\n\t\t}\n\t\tdelete(cc.assetLockMap, contractId)\n\t\treturn shim.Success(nil)\n\t} else {\n return shim.Error(fmt.Sprintf(\"No asset is locked associated with contractId %s\", contractId))\n\t}\n }\n if function == \"GetAllLockedAssets\" || function == \"GetAllAssetsLockedUntil\" {\n assets := []string{}\n for key, val := range cc.assetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n for key, val := range cc.fungibleAssetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAllNonFungibleLockedAssets\" {\n assets := []string{}\n for key, val := range cc.assetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAllFungibleLockedAssets\" {\n assets := []string{}\n for key, val := range cc.fungibleAssetLockMap {\n assets = append(assets, key + \":\" + val)\n }\n assetsBytes, _ := json.Marshal(assets)\n return shim.Success(assetsBytes)\n }\n if function == \"GetAssetTimeToRelease\" {\n return shim.Success([]byte(strconv.Itoa(len(cc.assetLockMap))))\n }\n if function == \"GetFungibleAssetTimeToRelease\" {\n return shim.Success([]byte(strconv.Itoa(len(cc.fungibleAssetLockMap))))\n }\n if function == \"GetHTLCHash\" {\n return shim.Success([]byte(defaultHash))\n }\n if function == \"GetHTLCHashByContractId\" {\n return shim.Success([]byte(defaultHash))\n }\n if function == \"GetHTLCHashPreImage\" {\n return shim.Success([]byte(defaultPreimage))\n }\n if function == \"GetHTLCHashPreImageByContractId\" {\n return shim.Success([]byte(defaultPreimage))\n }\n return shim.Error(fmt.Sprintf(\"Invalid invoke function name: %s\", function))\n}",
"func (vc *VehicleContainer) MatchAll(brigadeMap map[string][]*brigadeEntry, prevVehicles map[string]*Vehicle) error {\n\tfor vID, v := range vc.Vehicles {\n\t\t// Don't match if the vehicle position is not realtime -\n\t\t// older then 3 minutes\n\t\tif vc.SyncTime.Sub(v.TimeObj).Minutes() > 3 {\n\t\t\tdelete(vc.Vehicles, vID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Try to find matching brigade fields\n\t\tbe := brigadeMap[vID]\n\n\t\t// Try to find previous Vehicle for this ID\n\t\tpv := prevVehicles[vID]\n\n\t\t// Match this vehicle to a particular trip\n\t\terr := v.MatchTrip(pv, vc.CompareSyncTime, be)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\t// Remove this vehicle if no trip was matched\n\t\tif v.Trip == \"\" {\n\t\t\tdelete(vc.Vehicles, vID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Caulcate the bearing\n\t\tv.CalculateBearing(pv)\n\t}\n\n\treturn nil\n}",
"func (m scanOpMatcher) Matches(x interface{}) bool {\n\top, ok := x.(*ScanOp)\n\tif !ok {\n\t\treturn false\n\t}\n\n\tfor _, field := range op.fieldsToRead {\n\t\tif !m.fields[field] {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn op.limit == m.limit && op.token == m.token && reflect.TypeOf(op.object).Elem() == m.typ\n}",
"func (_Coordinatorproxy *CoordinatorproxyCaller) ProcessTx(opts *bind.CallOpts, _balanceRoot [32]byte, _accountsRoot [32]byte, _tx TypesTransaction, _from_pda_proof TypesPDAMerkleProof, _from_merkle_proof TypesAccountMerkleProof, _to_merkle_proof TypesAccountMerkleProof) ([32]byte, *big.Int, *big.Int, bool, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t\tret1 = new(*big.Int)\n\t\tret2 = new(*big.Int)\n\t\tret3 = new(bool)\n\t)\n\tout := &[]interface{}{\n\t\tret0,\n\t\tret1,\n\t\tret2,\n\t\tret3,\n\t}\n\terr := _Coordinatorproxy.contract.Call(opts, out, \"processTx\", _balanceRoot, _accountsRoot, _tx, _from_pda_proof, _from_merkle_proof, _to_merkle_proof)\n\treturn *ret0, *ret1, *ret2, *ret3, err\n}",
"func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {\n\n\t// Retrieve the requested Smart Contract function and arguments\n\tfunction, args := APIstub.GetFunctionAndParameters()\n\t// Route to the appropriate handler function to interact with the ledger appropriately\n\tif function == \"ping\" {\n\t\treturn s.ping(APIstub, args)\n\t}\n\n\treturn shim.Error(\"Invalid Smart Contract function name.\")\n}",
"func (oe objectExpectation) matches(obj interface{}) bool {\n\tif oe.val == nil || obj == nil {\n\t\treturn oe.val == nil && obj == nil\n\t}\n\n\tparamBuf1 := new(bytes.Buffer)\n\toe.val.MarshalCBOR(paramBuf1) // nolint: errcheck\n\tmarshaller, ok := obj.(cbor.Marshaler)\n\tif !ok {\n\t\treturn false\n\t}\n\tparamBuf2 := new(bytes.Buffer)\n\tif marshaller != nil {\n\t\tmarshaller.MarshalCBOR(paramBuf2) // nolint: errcheck\n\t}\n\treturn bytes.Equal(paramBuf1.Bytes(), paramBuf2.Bytes())\n}",
"func bitcoinCall(method string, params []interface{}, reply interface{}) error {\n\tif !globalBitcoinData.initialised {\n\t\tfault.Panic(\"bitcoin not initialised\")\n\t}\n\n\tglobalBitcoinData.id += 1\n\n\targuments := bitcoinArguments{\n\t\tId: globalBitcoinData.id,\n\t\tMethod: method,\n\t\tParams: params,\n\t}\n\tresponse := bitcoinReply{\n\t\tResult: reply,\n\t}\n\terr := bitcoinRPC(&arguments, &response)\n\tif nil != err {\n\t\treturn err\n\t}\n\n\tif nil != response.Error {\n\t\ts := response.Error.Message\n\t\treturn fault.ProcessError(\"Bitcoin RPC error: \" + s)\n\t}\n\treturn nil\n}",
"func Match(provider Provider, query *Query, results chan<- *Result) {\n\t// Perform the search against the specified provider.\n\tsearchResults, err := provider.Search(query)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\n\t// Write the results to the channel.\n\tfor _, result := range searchResults {\n\t\tresults <- result\n\t}\n}",
"func (r *Interconnect) matcher(c *Client) func([]byte) bool {\n\treturn func(b []byte) bool {\n\t\tcr, err := unmarshalInterconnect(b, c)\n\t\tif err != nil {\n\t\t\tc.Config.Logger.Warning(\"failed to unmarshal provided resource in matcher.\")\n\t\t\treturn false\n\t\t}\n\t\tnr := r.urlNormalized()\n\t\tncr := cr.urlNormalized()\n\t\tc.Config.Logger.Infof(\"looking for %v\\nin %v\", nr, ncr)\n\n\t\tif nr.Project == nil && ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Both Project fields null - considering equal.\")\n\t\t} else if nr.Project == nil || ncr.Project == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Project field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Project != *ncr.Project {\n\t\t\treturn false\n\t\t}\n\t\tif nr.Name == nil && ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Both Name fields null - considering equal.\")\n\t\t} else if nr.Name == nil || ncr.Name == nil {\n\t\t\tc.Config.Logger.Info(\"Only one Name field is null - considering unequal.\")\n\t\t\treturn false\n\t\t} else if *nr.Name != *ncr.Name {\n\t\t\treturn false\n\t\t}\n\t\treturn true\n\t}\n}",
"func (atc *AtomicTransactionComposer) Execute(client *algod.Client, ctx context.Context, waitRounds uint64) (ExecuteResult, error) { //nolint:revive // Ignore Context order for backwards compatibility\n\tif atc.status == COMMITTED {\n\t\treturn ExecuteResult{}, errors.New(\"status is already committed\")\n\t}\n\n\t_, err := atc.Submit(client, ctx)\n\tif err != nil {\n\t\treturn ExecuteResult{}, err\n\t}\n\tatc.status = SUBMITTED\n\n\tindexToWaitFor := 0\n\tnumMethodCalls := 0\n\tfor i, txContext := range atc.txContexts {\n\t\tif txContext.isMethodCallTx() {\n\t\t\t// if there is a method call in the group, we need to query the\n\t\t\t// pending tranaction endpoint for it anyway, so as an optimization\n\t\t\t// we should wait for its TxID\n\t\t\tif numMethodCalls == 0 {\n\t\t\t\tindexToWaitFor = i\n\t\t\t}\n\t\t\tnumMethodCalls++\n\t\t}\n\t}\n\n\tgroupInfo, err := WaitForConfirmation(client, atc.txContexts[indexToWaitFor].txID(), waitRounds, ctx)\n\tif err != nil {\n\t\treturn ExecuteResult{}, err\n\t}\n\tatc.status = COMMITTED\n\n\texecuteResponse := ExecuteResult{\n\t\tConfirmedRound: groupInfo.ConfirmedRound,\n\t\tTxIDs: atc.getTxIDs(),\n\t\tMethodResults: make([]ABIMethodResult, 0, numMethodCalls),\n\t}\n\n\tfor i, txContext := range atc.txContexts {\n\t\t// Verify method call is available. This may not be the case if the App Call Tx wasn't created\n\t\t// by AddMethodCall().\n\t\tif !txContext.isMethodCallTx() {\n\t\t\tcontinue\n\t\t}\n\n\t\tresult := ABIMethodResult{TxID: txContext.txID(), Method: *txContext.method}\n\n\t\tif i == indexToWaitFor {\n\t\t\tresult.TransactionInfo = groupInfo\n\t\t} else {\n\t\t\tmethodCallInfo, _, err := client.PendingTransactionInformation(result.TxID).Do(ctx)\n\t\t\tif err != nil {\n\t\t\t\tresult.DecodeError = err\n\t\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tresult.TransactionInfo = methodCallInfo\n\t\t}\n\n\t\tif txContext.method.Returns.IsVoid() {\n\t\t\tresult.RawReturnValue = []byte{}\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tif len(result.TransactionInfo.Logs) == 0 {\n\t\t\tresult.DecodeError = errors.New(\"method call did not log a return value\")\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tlastLog := result.TransactionInfo.Logs[len(result.TransactionInfo.Logs)-1]\n\t\tif !bytes.HasPrefix(lastLog, abiReturnHash) {\n\t\t\tresult.DecodeError = errors.New(\"method call did not log a return value\")\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tcontinue\n\t\t}\n\n\t\tresult.RawReturnValue = lastLog[len(abiReturnHash):]\n\n\t\tabiType, err := txContext.method.Returns.GetTypeObject()\n\t\tif err != nil {\n\t\t\tresult.DecodeError = err\n\t\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t\t\tbreak\n\t\t}\n\n\t\tresult.ReturnValue, result.DecodeError = abiType.Decode(result.RawReturnValue)\n\t\texecuteResponse.MethodResults = append(executeResponse.MethodResults, result)\n\t}\n\n\treturn executeResponse, nil\n}",
"func (t *Colorado) getMatchableTrades(stub shim.ChaincodeStubInterface, args []string) peer.Response {\n\t if len(args) != 1 {\n\t\t return shim.Error(\"Incorrect number of arguments. Expecting 1.\")\n\t }\n \n\t if len(args[0]) == 0 {\n\t\t return shim.Error(\"1st argument (Request JSON) must be a non-empty string, i.e. {\\\"investmentManager\\\":\\\"IMi\\\",\\\"executingBroker\\\":\\\"EBj\\\",\\\"tradeIdToBeMatched\\\":\\\"IDn\\\",\\\"matchableTradeIds\\\":[\\\"IDx\\\",\\\"IDy\\\",\\\"IDz\\\"]}\")\n\t }\n \n\t requestJSON := args[0]\n\t fmt.Println(\"- start getting matchable trades with request: \" + requestJSON)\n \n\t type requstType struct {\n\t\t InvestmentManager string `json:\"investmentManager\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t ExecutingBroker string `json:\"executingBroker\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t TradeIdToBeMatched string `json:\"tradeIdToBeMatched\"` // the json fieldtags are needed to keep case from bouncing around\n\t\t MatchableTradeIds []string `json:\"matchableTradeIds\"` // the json fieldtags are needed to keep case from bouncing around\n\t }\n\t var request requstType\n\t err := json.Unmarshal([]byte(requestJSON), &request)\n\t if err != nil {\n\t\t return shim.Error(\"Unable to parse request: \" + err.Error())\n\t }\n \n\t if len(request.TradeIdToBeMatched) == 0 {\n\t\t return shim.Success([]byte(\"There is no trade to be matched.\"))\n\t }\n \n\t // get trade to be matched\n\t privateCollection := \"privateTradeFor\" + request.InvestmentManager + request.ExecutingBroker\n\t tradeToBeMatchedAsBytes, err := stub.GetPrivateData(privateCollection, request.TradeIdToBeMatched)\n\t if err != nil {\n\t\t // e.g. no defined private collection for the combination of IM, EB\n\t\t return shim.Error(\"Unable to get trade: \" + err.Error())\n\t } else if tradeToBeMatchedAsBytes == nil {\n\t\t fmt.Println(\"This trade does not exist: \" + request.TradeIdToBeMatched)\n\t\t return shim.Error(\"This trade does not exist: \" + request.TradeIdToBeMatched)\n\t }\n\t tradeToBeMatched := trade{}\n\t err = json.Unmarshal(tradeToBeMatchedAsBytes, &tradeToBeMatched) // unmarshal it aka JSON.parse()\n\t if err != nil {\n\t\t return shim.Error(\"Unable to parse Trade To Be Matched: \" + err.Error())\n\t }\n \n\t // Query the tradeMatchingCompositeKey index by all fields in the composite key,\n\t // e.g. return all trades of a Source, a Buy Side, a Sell Side, a Product, a Sub-Product,\n\t // a Trade Date, a Quantity, a Price, a Security ID, and a Status\n\t var buffer bytes.Buffer\n\t delimiter := \",\"\n\t sourceToBeMatched := tradeToBeMatched.BuySide\n\t if tradeToBeMatched.Source == tradeToBeMatched.BuySide {\n\t\t sourceToBeMatched = tradeToBeMatched.SellSide\n\t }\n\t quantityToBeMatchedAsString := strconv.Itoa(tradeToBeMatched.Quantity)\n\t priceToBeMatchedAsString := strconv.FormatFloat(tradeToBeMatched.Price, 'f', -1, 64)\n\t tradeResultsIterator, err := stub.GetPrivateDataByPartialCompositeKey(privateCollection, \"tradeMatchingCompositeKey\", []string{sourceToBeMatched, tradeToBeMatched.BuySide, tradeToBeMatched.SellSide, tradeToBeMatched.Product, tradeToBeMatched.SubProduct, tradeToBeMatched.TradeDate, quantityToBeMatchedAsString, priceToBeMatchedAsString, tradeToBeMatched.SecurityId, \"CREATED\"})\n\t if err != nil {\n\t\t return shim.Error(\"Unable to call GetPrivateDataByPartialCompositeKey: \" + err.Error())\n\t }\n \n\t defer tradeResultsIterator.Close()\n\t for tradeResultsIterator.HasNext() {\n\t\t tradeResult, err := tradeResultsIterator.Next()\n\t\t if err != nil {\n\t\t\t return shim.Error(\"Unable to iterate through StateQueryIteratorInterface: \" + err.Error())\n\t\t }\n\t\t if buffer.Len() > 0 {\n\t\t\t buffer.WriteString(delimiter)\n\t\t }\n\t\t buffer.WriteString(\"\\\"\" + string(tradeResult.Value) + \"\\\"\")\n\t }\n \n\t responseJSON := fmt.Sprintf(\"{\\\"investmentManager\\\":\\\"%s\\\",\\\"executingBroker\\\":\\\"%s\\\",\\\"tradeIdToBeMatched\\\":\\\"%s\\\",\\\"matchableTradeIds\\\":[%s]}\", request.InvestmentManager, request.ExecutingBroker, request.TradeIdToBeMatched, buffer.String())\n\t fmt.Println(\"- end getting matchable trades with response: \" + responseJSON)\n \n\t return shim.Success([]byte(responseJSON))\n }"
] | [
"0.83452946",
"0.8255223",
"0.5498317",
"0.5391047",
"0.53306973",
"0.5242474",
"0.50650823",
"0.5047321",
"0.49891055",
"0.49574664",
"0.4902926",
"0.48535657",
"0.4839193",
"0.47717696",
"0.47347164",
"0.46957937",
"0.4688575",
"0.4656343",
"0.46484336",
"0.4624956",
"0.46223024",
"0.46109307",
"0.4609455",
"0.45904908",
"0.45846134",
"0.45801002",
"0.4575099",
"0.4565333",
"0.45645058",
"0.4548548",
"0.45120677",
"0.45092747",
"0.4496139",
"0.44906735",
"0.4481657",
"0.44756705",
"0.44724274",
"0.44692013",
"0.4463437",
"0.44633642",
"0.44595858",
"0.44545388",
"0.44499445",
"0.4446019",
"0.4444213",
"0.44163787",
"0.4407557",
"0.44032067",
"0.43771708",
"0.43648463",
"0.43640655",
"0.43640655",
"0.43420857",
"0.43416083",
"0.43389434",
"0.43368512",
"0.43302172",
"0.4323028",
"0.43182823",
"0.43155226",
"0.43108553",
"0.4302878",
"0.42915103",
"0.42887202",
"0.42775208",
"0.42734492",
"0.42724934",
"0.4271588",
"0.42709216",
"0.42676342",
"0.4263812",
"0.4256745",
"0.42555815",
"0.42489913",
"0.42476386",
"0.424459",
"0.42357498",
"0.42283273",
"0.42273256",
"0.4221437",
"0.4219447",
"0.42170048",
"0.42148745",
"0.42147464",
"0.42139107",
"0.42085978",
"0.42025605",
"0.42001167",
"0.42001072",
"0.41912878",
"0.41886914",
"0.41873816",
"0.41784972",
"0.41759726",
"0.4173822",
"0.41722083",
"0.41703516",
"0.41691798",
"0.41684717",
"0.41666946"
] | 0.82800114 | 1 |
CancelOrder is a paid mutator transaction binding the contract method 0xa8a41c70. Solidity: function cancelOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, uint8 v, bytes32 r, bytes32 s) returns() | func (_WyvernExchange *WyvernExchangeTransactor) CancelOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "cancelOrder_", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaTransactor) CancelOrder(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"cancelOrder\", tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (cl *ocxClient) CancelOrder(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\torderID := args[0]\n\n\t// remove this and _ when cancel order has returns\n\t// var cancelOrderReply *cxrpc.CancelOrderReply\n\tif _, err = cl.RPCClient.CancelOrder(orderID); err != nil {\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Cancelled order successfully\")\n\treturn\n}",
"func CancelOrder(c *soso.Context) {\n\tif c.Token == nil {\n\t\tc.ErrorResponse(403, soso.LevelError, errors.New(\"User not authorized\"))\n\t\treturn\n\t}\n\treq := c.RequestMap\n\n\tpayID, _ := req[\"id\"].(float64)\n\tleadID, _ := req[\"lead_id\"].(float64)\n\n\tif leadID <= 0 || payID <= 0 {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Incorrect parameter\"))\n\t\treturn\n\t}\n\n\t_, role, err := getConversationID(c.Token.UID, uint64(leadID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\t// must have correct direction; IS creator\n\tdirection, err := paymentDirection(role, true)\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\torderData, paymentData, err := retrieveOrder(uint64(payID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\tif !canCancelPay(paymentData.Direction, direction) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"No access to cancel this pay\"))\n\t\treturn\n\t}\n\tif orderData.LeadId != uint64(leadID) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Parameters mangled\"))\n\t\treturn\n\t}\n\n\t// now -- create the order\n\tctx, cancel := rpc.DefaultContext()\n\tdefer cancel()\n\tresp, err := paymentServiceClient.CancelOrder(ctx, &payment.CancelOrderRequest{\n\t\tPayId: uint64(payID),\n\t\tUserId: c.Token.UID,\n\t})\n\n\tif err != nil { // RPC errors\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\tif resp.Error > 0 { // service errors\n\t\tc.Response.ResponseMap = map[string]interface{}{\n\t\t\t\"ErrorCode\": resp.Error,\n\t\t\t\"ErrorMessage\": resp.ErrorMessage,\n\t\t}\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(resp.ErrorMessage))\n\t\treturn\n\t}\n\n\tc.SuccessResponse(map[string]interface{}{\n\t\t\"cancelled\": resp.Cancelled,\n\t})\n\n}",
"func (trading *TradingProvider) Cancel(order schemas.Order) (err error) {\n\tvar b []byte\n\tvar resp OrderCancel\n\n\tpayload := httpclient.Params()\n\tnonce := time.Now().UnixNano()\n\tpayload.Set(\"orderNumber\", order.ID)\n\tpayload.Set(\"command\", commandCancel)\n\tpayload.Set(\"nonce\", strconv.FormatInt(nonce, 10))\n\n\tb, err = trading.httpClient.Post(tradingAPI, httpclient.Params(), payload, true)\n\tif err != nil {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error creating order: %v\", string(b))\n\t}\n\tif err = json.Unmarshal(b, &resp); err != nil {\n\t\treturn\n\t}\n\tif len(resp.Error) > 0 {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error cancelling order: %v\", resp.Error)\n\t\treturn\n\t}\n\n\treturn nil\n}",
"func (b Bittrex) CancelOrder(uuid string) {\n\terr := b.Inst.CancelOrder(uuid)\n\tutils.HandleError(err)\n}",
"func (m *Marketplace) CancelOrder(ctx context.Context, req *pb.Order) (*pb.Empty, error) {\n\n\tlogger := ctx_zap.Extract(ctx)\n\tlogger.Sugar().Infof(\"Canceling order %s\", req.GetId())\n\n\t// used by CheckPermissions bellow\n\torder, err := m.getOrderByID(req.GetId())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq.OrderType = pb.OrderType(order.OrderType)\n\treq.ByuerID = order.BuyerID\n\treq.SupplierID = order.SupplierID\n\n\tif err := CheckPermissions(ctx, req); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err := m.commandBus.Handle(command.CancelOrder{ID: req.Id}); err != nil {\n\t\treturn nil, err\n\t}\n\n\tlogger.Sugar().Infof(\"Order %s successfully canceled\", req.GetId())\n\n\treturn &pb.Empty{}, nil\n}",
"func (this *Spot) CancelOrder(order *Order) ([]byte, error) {\n\turlPath := \"/api/spot/v3/cancel_orders/\" + order.OrderId\n\tparam := struct {\n\t\tInstrumentId string `json:\"instrument_id\"`\n\t}{\n\t\torder.Pair.ToSymbol(\"-\", true),\n\t}\n\treqBody, _, _ := this.BuildRequestBody(param)\n\tvar response struct {\n\t\tClientOid string `json:\"client_oid\"`\n\t\tOrderId string `json:\"order_id\"`\n\t\tResult bool `json:\"result\"`\n\t}\n\n\tresp, err := this.DoRequest(\n\t\t\"POST\",\n\t\turlPath,\n\t\treqBody,\n\t\t&response,\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif response.Result {\n\t\treturn resp, nil\n\t}\n\treturn resp, NewError(400, \"cancel fail, unknown error\")\n}",
"func (p *Bittrex) CancelOrder(order OrderInfo) *TradeResult {\n\treturn nil\n}",
"func (s *Socket) cancelOrder(p Payload) {\n\tocp := NewOrderCancelPayload()\n\n\tif err := ocp.DecodeOrderCancelPayload(p); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n\n\toc := ocp.OrderCancel\n\n\tif err := s.server.engine.CancelOrder(oc); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n}",
"func (tsl *TrailingStopLoss) CancelOrder() {\n\tif tsl.Order == (cbp.Order{}) {\n\t\tlog.Println(\"[warn] no order to cancel\")\n\t} else {\n\t\terr := tsl.Client.CancelOrder(tsl.Order.ID)\n\t\tif err != nil {\n\t\t\tlog.Println(\"[warn] could not cancel order\")\n\t\t}\n\t\ttsl.Order = cbp.Order{}\n\t\ttsl.UpdateTime()\n\t}\n}",
"func (h *Hbdm) CanceOrder(symbol string, orderId, clientOrderId int) (resp *CancelOrderResponse, err error) {\n\tpayload := make(map[string]interface{}, 3)\n\tpayload[\"symbol\"] = symbol\n\n\tif orderId != 0 {\n\t\tpayload[\"order_id\"] = orderId\n\t}\n\n\tif clientOrderId != 0 {\n\t\tpayload[\"client_order_id\"] = clientOrderId\n\t}\n\n\tr, err := h.client.do(\"POST\", \"contract_cancel\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (g *Gemini) CancelExchangeOrder(p pair.CurrencyPair, orderID int64) (int64, error) {\n\treturn 0, errors.New(\"not yet implemented\")\n}",
"func (c *Coinbene) CancelSwapOrder(orderID string) (string, error) {\n\tparams := make(map[string]interface{})\n\tparams[\"orderId\"] = orderID\n\ttype resp struct {\n\t\tData string `json:\"data\"`\n\t}\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\ttrue,\n\t\tparams,\n\t\t&r,\n\t\tcontractCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn r.Data, nil\n}",
"func (c *Client) CancelOrder(symbol Symbol, clientOrderID string, id int) (*Order, error) {\n\tparams := []func(url.Values){\n\t\tparam(\"symbol\", symbol),\n\t}\n\n\tif clientOrderID == \"\" && id == 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID empty\")\n\t}\n\n\tif clientOrderID != \"\" && id != 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID both set\")\n\t}\n\n\tif clientOrderID != \"\" {\n\t\tparams = append(params, param(\"origClientOrderId\", clientOrderID))\n\t}\n\n\tif id != 0 {\n\t\tparams = append(params, param(\"orderId\", id))\n\t}\n\n\tvar order Order\n\terr := c.signedCall(&order, \"DELETE\", \"/api/v3/order\", params...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &order, nil\n}",
"func (b *Binance) CancelOrder(symbol string, orderID int64) {\n\t_, err := b.client.NewCancelOrderService().Symbol(symbol).\n\t\tOrderID(orderID).Do(context.Background())\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}",
"func (s serverImpl) Cancel(goCtx context.Context, req *ecocredit.MsgCancel) (*ecocredit.MsgCancelResponse, error) {\n\tctx := types.UnwrapSDKContext(goCtx)\n\tstore := ctx.KVStore(s.storeKey)\n\tholderAddr, err := sdk.AccAddressFromBech32(req.Holder)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfor _, credit := range req.Credits {\n\n\t\t// Check that the batch that were trying to cancel credits from\n\t\t// exists\n\t\tdenom := batchDenomT(credit.BatchDenom)\n\t\tif !s.batchInfoTable.Has(ctx, orm.RowID(denom)) {\n\t\t\treturn nil, sdkerrors.ErrInvalidRequest.Wrapf(\"%s is not a valid credit batch denom\", denom)\n\t\t}\n\n\t\t// Remove the credits from the total_amount in the batch and add\n\t\t// them to amount_cancelled\n\t\tvar batchInfo ecocredit.BatchInfo\n\t\terr := s.batchInfoTable.GetOne(ctx, orm.RowID(denom), &batchInfo)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tclassInfo, err := s.getClassInfo(ctx, batchInfo.ClassId)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tmaxDecimalPlaces := classInfo.CreditType.Precision\n\n\t\t// Parse the amount of credits to cancel, checking it conforms\n\t\t// to the precision\n\t\ttoCancel, err := math.NewPositiveFixedDecFromString(credit.Amount, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Remove the credits from the balance of the holder and the\n\t\t// overall supply\n\t\terr = subtractTradableBalanceAndSupply(store, holderAddr, denom, toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttotalAmount, err := math.NewPositiveFixedDecFromString(batchInfo.TotalAmount, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttotalAmount, err = math.SafeSubBalance(totalAmount, toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbatchInfo.TotalAmount = totalAmount.String()\n\n\t\tamountCancelled, err := math.NewNonNegativeFixedDecFromString(batchInfo.AmountCancelled, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tamountCancelled, err = amountCancelled.Add(toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbatchInfo.AmountCancelled = amountCancelled.String()\n\n\t\tif err = s.batchInfoTable.Update(ctx, &batchInfo); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Emit the cancellation event\n\t\terr = ctx.EventManager().EmitTypedEvent(&ecocredit.EventCancel{\n\t\t\tCanceller: req.Holder,\n\t\t\tBatchDenom: string(denom),\n\t\t\tAmount: toCancel.String(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tctx.GasMeter().ConsumeGas(gasCostPerIteration, \"cancel ecocredits\")\n\t}\n\n\treturn &ecocredit.MsgCancelResponse{}, nil\n}",
"func (book *OrderBook) Cancel(order *Order) error {\n\tif order.MarketName != book.MarketName {\n\t\treturn fmt.Errorf(\"market name for order should be %s got %s\", book.MarketName, order.MarketName)\n\t}\n\n\tif order.Side == constants.Sell {\n\t\treturn book.cancelSellOrder(order.ID)\n\t}\n\treturn book.cancelBuyOrder(order.ID)\n}",
"func (h *HUOBI) CancelSwapOrder(ctx context.Context, orderID, clientOrderID string, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\tif orderID != \"\" {\n\t\treq[\"order_id\"] = orderID\n\t}\n\tif clientOrderID != \"\" {\n\t\treq[\"client_order_id\"] = clientOrderID\n\t}\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelOrder, nil, req, &resp)\n}",
"func (o *Okcoin) WsCancelTradeOrder(arg *CancelTradeOrderRequest) (*TradeOrderResponse, error) {\n\tif arg == nil {\n\t\treturn nil, errNilArgument\n\t}\n\tif arg.InstrumentID == \"\" {\n\t\treturn nil, errMissingInstrumentID\n\t}\n\tif arg.OrderID == \"\" && arg.ClientOrderID == \"\" {\n\t\treturn nil, errOrderIDOrClientOrderIDRequired\n\t}\n\tvar resp []TradeOrderResponse\n\terr := o.SendWebsocketRequest(\"cancel-order\", &arg, &resp, true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(resp) == 0 {\n\t\treturn nil, errNoValidResponseFromServer\n\t}\n\tif resp[0].SCode != \"0\" {\n\t\treturn nil, fmt.Errorf(\"code: %s msg: %s\", resp[0].SCode, resp[0].SMsg)\n\t}\n\treturn &resp[0], nil\n}",
"func (b *Bitmex) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\t_, err := b.CancelOrders(ctx, &OrderCancelParams{\n\t\tOrderID: o.OrderID,\n\t})\n\treturn err\n}",
"func (c *Coinbene) CancelSwapOrders(orderIDs []string) ([]OrderCancellationResponse, error) {\n\tif len(orderIDs) > 10 {\n\t\treturn nil, errors.New(\"only 10 orderIDs are allowed at a time\")\n\t}\n\treq := make(map[string]interface{})\n\treq[\"orderIds\"] = orderIDs\n\ttype resp struct {\n\t\tData []OrderCancellationResponse `json:\"data\"`\n\t}\n\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneBatchCancel\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneBatchCancel,\n\t\ttrue,\n\t\treq,\n\t\t&r,\n\t\tcontractCancelMultipleOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn r.Data, nil\n}",
"func (e Exchange) CancelOrder(exch, orderID string) (bool, error) {\n\torderDetails, err := e.QueryOrder(exch, orderID)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tcancel := &order.Cancel{\n\t\tAccountID: orderDetails.AccountID,\n\t\tOrderID: orderDetails.ID,\n\t\tCurrencyPair: orderDetails.CurrencyPair,\n\t\tSide: orderDetails.OrderSide,\n\t}\n\n\terr = engine.Bot.OrderManager.Cancel(exch, cancel)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn true, nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, auth auth.Identity) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Customer Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n\n}",
"func (c *CoinbasePro) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\treturn c.CancelExistingOrder(ctx, o.OrderID)\n}",
"func (c *Client) CancelOrder(serverAssignedOrderID string) error {\n\tfullURL := fmt.Sprintf(\"%s/%s\", ordersURL, serverAssignedOrderID)\n\treq, err := http.NewRequest(\"DELETE\", fullURL, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, _, err = c.doAuthAndReq(req)\n\treturn err\n}",
"func TestCancelExistingOrder(t *testing.T) {\n\tt.Parallel()\n\t_, err := k.CancelExistingOrder(context.Background(), \"OAVY7T-MV5VK-KHDF5X\")\n\tif err == nil {\n\t\tt.Error(\"CancelExistingOrder() Expected error\")\n\t}\n}",
"func (e *CancelTransaction) Cancel(\n\tctx context.Context,\n) error {\n\tif int(e.Hop) >= len(e.Plan.Hops) {\n\t\treturn errors.Trace(errors.Newf(\n\t\t\t\"Hop (%d) is higher than the transaction plan length (%d)\",\n\t\t\te.Hop, len(e.Plan.Hops)))\n\t}\n\n\th := e.Plan.Hops[e.Hop]\n\tmint.Logf(ctx,\n\t\t\"Executing cancellation plan: transaction=%s hop=%d\", e.ID, e.Hop)\n\n\t// Cancel the OpAction (should always be defined)\n\tif h.OpAction != nil {\n\t\top, err := model.LoadCanonicalOperationByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if op == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Operation not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif op.Status == mint.TxStCanceled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\n\t\t} else {\n\t\t\ta := h.OpAction\n\n\t\t\tasset, err := model.LoadCanonicalAssetByName(ctx, *a.OperationAsset)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if asset == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Asset not found: %s\", *a.OperationAsset))\n\t\t\t}\n\n\t\t\t// Restore the source balance if applicable (that is if the op\n\t\t\t// source is not owner of the asset, in which case the asset was\n\t\t\t// issued on the fly).\n\t\t\tvar srcBalance *model.Balance\n\t\t\tif asset.Owner != op.Source {\n\t\t\t\tsrcBalance, err = model.LoadCanonicalBalanceByAssetHolder(ctx,\n\t\t\t\t\top.Asset, op.Source)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t} else if srcBalance == nil {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Source has no balance in %s: %s\", op.Asset, op.Source))\n\t\t\t\t}\n\t\t\t\t(*big.Int)(&srcBalance.Value).Add(\n\t\t\t\t\t(*big.Int)(&srcBalance.Value), (*big.Int)(&op.Amount))\n\n\t\t\t\t// Checks if the srcBalance is positive and not overflown.\n\t\t\t\tb := (*big.Int)(&srcBalance.Value)\n\t\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Invalid resulting balance for %s: %s\",\n\t\t\t\t\t\tsrcBalance.Holder, b.String()))\n\t\t\t\t}\n\n\t\t\t\terr = srcBalance.Save(ctx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\n\t\t\t\terr = async.Queue(ctx,\n\t\t\t\t\ttask.NewPropagateBalance(ctx, time.Now(), srcBalance.ID()))\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\top.Status = mint.TxStCanceled\n\t\t\terr = op.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\t\t}\n\t}\n\n\tif h.CrAction != nil {\n\t\tcr, err := model.LoadCanonicalCrossingByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if cr == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Crossing not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif cr.Status == mint.TxStSettled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t} else {\n\t\t\ta := h.CrAction\n\n\t\t\toffer, err := model.LoadCanonicalOfferByID(ctx, *a.CrossingOffer)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if offer == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Offer not found: %s\", *a.CrossingOffer))\n\t\t\t}\n\n\t\t\t(*big.Int)(&offer.Remainder).Add(\n\t\t\t\t(*big.Int)(&offer.Remainder), (*big.Int)(&cr.Amount))\n\n\t\t\t// Checks if the remainder is positive and not overflown.\n\t\t\tb := (*big.Int)(&offer.Remainder)\n\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Invalid resulting remainder: %s\", b.String()))\n\t\t\t}\n\t\t\t// Set the offer as active if the remainder is not 0 and the offer\n\t\t\t// is not closed.\n\t\t\tif offer.Status != mint.OfStClosed && b.Cmp(new(big.Int)) > 0 {\n\t\t\t\toffer.Status = mint.OfStActive\n\t\t\t}\n\n\t\t\terr = offer.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\terr = async.Queue(ctx,\n\t\t\t\ttask.NewPropagateOffer(ctx, time.Now(), offer.ID()))\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tcr.Status = mint.TxStCanceled\n\t\t\terr = cr.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (s *OrderService) CancelOrder(oc *types.OrderCancel) error {\n\tvar err error\n\tvar o *types.Order\n\n\to, err = s.orderDao.GetByHash(oc.OrderHash)\n\tif err != nil || o == nil {\n\t\treturn errors.New(\"No order with corresponding hash\")\n\t}\n\tif o.Status == types.ORDER_FILLED || o.Status == types.ERROR_STATUS || o.Status == types.ORDER_CANCELLED {\n\t\treturn fmt.Errorf(\"Cannot cancel order. Status is %v\", o.Status)\n\t}\n\n\to.Nonce = oc.Nonce\n\to.Signature = oc.Signature\n\to.OrderID = oc.OrderID\n\to.Status = oc.Status\n\to.UserAddress = oc.UserAddress\n\to.ExchangeAddress = oc.ExchangeAddress\n\n\terr = s.broker.PublishCancelOrderMessage(o)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func ExampleMarketplaceAgreementsClient_Cancel() {\n\tcred, err := azidentity.NewDefaultAzureCredential(nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to obtain a credential: %v\", err)\n\t}\n\tctx := context.Background()\n\tclient, err := armmarketplaceordering.NewMarketplaceAgreementsClient(\"subid\", cred, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to create client: %v\", err)\n\t}\n\tres, err := client.Cancel(ctx,\n\t\t\"pubid\",\n\t\t\"offid\",\n\t\t\"planid\",\n\t\tnil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to finish the request: %v\", err)\n\t}\n\t// TODO: use response item\n\t_ = res\n}",
"func (by *Bybit) CancelUSDCOrder(ctx context.Context, symbol currency.Pair, orderFilter, orderID, orderLinkID string) (string, error) {\n\tresp := struct {\n\t\tResult struct {\n\t\t\tOrderID string `json:\"orderId\"`\n\t\t} `json:\"result\"`\n\t\tUSDCError\n\t}{}\n\n\treq := make(map[string]interface{})\n\tif symbol.IsEmpty() {\n\t\treturn resp.Result.OrderID, errSymbolMissing\n\t}\n\tsymbolValue, err := by.FormatSymbol(symbol, asset.USDCMarginedFutures)\n\tif err != nil {\n\t\treturn resp.Result.OrderID, err\n\t}\n\treq[\"symbol\"] = symbolValue\n\n\tif orderFilter == \"\" {\n\t\treturn resp.Result.OrderID, errInvalidOrderFilter\n\t}\n\treq[\"orderFilter\"] = orderFilter\n\n\tif orderID == \"\" && orderLinkID == \"\" {\n\t\treturn resp.Result.OrderID, errOrderOrOrderLinkIDMissing\n\t}\n\n\tif orderID != \"\" {\n\t\treq[\"orderId\"] = orderID\n\t}\n\n\tif orderLinkID != \"\" {\n\t\treq[\"orderLinkId\"] = orderLinkID\n\t}\n\treturn resp.Result.OrderID, by.SendUSDCAuthHTTPRequest(ctx, exchange.RestUSDCMargined, http.MethodPost, usdcfuturesCancelOrder, req, &resp, usdcCancelOrderRate)\n}",
"func TestWsCancelOrder(t *testing.T) {\n\tsetupWsAuth(t)\n\tif !canManipulateRealOrders {\n\t\tt.Skip(\"canManipulateRealOrders false, skipping test\")\n\t}\n\t_, err := h.wsCancelOrder(\"ImNotARealOrderID\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n}",
"func (c *TradeClient) CancelOrder(contractCode string, orderId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif orderId <= 0 {\n\t\treturn errors.New(\"orderId must > 0\")\n\t}\n\n\tqueries := map[string]string{\n\t\t\"contractCode\": contractCode,\n\t\t\"orderId\": strconv.FormatInt(orderId, 10),\n\t}\n\n\treturn c.requester.Get(\"/api/v1/cancel_order\", queries, true, coremodel.NewBoolResponse())\n}",
"func (a *ModificationGateway) Cancel(req *Cancel) (*CancelResponse, error) {\n\tresp, err := a.execute(PaymentService, cancelType, req)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn resp.cancel()\n}",
"func (h *HUOBI) CancelSwapTriggerOrder(ctx context.Context, contractCode currency.Pair, orderID string) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treq[\"order_id\"] = orderID\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelTriggerOrder, nil, req, &resp)\n}",
"func (k *Kraken) CancelOrder(order *exchange.OrderCancellation) error {\n\t_, err := k.CancelExistingOrder(order.OrderID)\n\n\treturn err\n}",
"func (client *Client) CancelOrder(id int64) (bool, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tOrderID int64 `json:\"order_id\"`\n\t}{\n\t\t\"/v1/order/cancel\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tid,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, response.Message)\n\t}\n\n\treturn true, nil\n}",
"func (ob *OrderBook) CancelOrder(orderID string) *Order {\n\te, ok := ob.orders[orderID]\n\tif !ok {\n\t\treturn nil\n\t}\n\n\tdelete(ob.orders, orderID)\n\n\tif e.Value.(*Order).Side() == Buy {\n\t\treturn ob.bids.Remove(e)\n\t}\n\n\treturn ob.asks.Remove(e)\n}",
"func (c *CoinbasePro) CancelBatchOrders(_ context.Context, _ []order.Cancel) (*order.CancelBatchResponse, error) {\n\treturn nil, common.ErrFunctionNotSupported\n}",
"func (o *OfflineWebCartPaymentGateway) CancelOrderPayment(ctx context.Context, cartPayment *placeorder.Payment) error {\n\treturn nil\n}",
"func (t *TradePool) cancelProcess(order *comm.Order) (bool, comm.Order) {\n\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"%s-%s TradePool CancelProcess Order ID(%d), Time(%d)\\n\", t.Symbol, t.MarketType.String(), order.ID, order.Timestamp)\n\tif order == nil {\n\t\tfmt.Printf(\"%s-%s Cancel input order==nil error!\\n\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n\tif order.Symbol != t.Symbol {\n\t\tfmt.Printf(\"Market(%s-%s) cancelProcess illegal order with symbol(%s) to %s Match Engine\", t.Symbol, t.MarketType.String(), order.Symbol, t.Symbol)\n\t\treturn false, comm.Order{}\n\t}\n\n\tif order.AorB == comm.TradeType_BID {\n\t\tt.bidPoolRWMutex.Lock(\"CancelProcess BID\")\n\t\tdefer t.bidPoolRWMutex.Unlock(\"CancelProcess BID\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.bidPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmBidOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess bid order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\tt.askPoolRWMutex.Lock(\"CancelProcess ASK\")\n\t\tdefer t.askPoolRWMutex.Unlock(\"CancelProcess ASK\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.askPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmAskOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess ask order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else {\n\t\tfmt.Printf(\"%s-%s CancelProcess illegal order type!\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n}",
"func (c *Coinbene) CancelSpotOrder(orderID string) (string, error) {\n\tresp := struct {\n\t\tData string `json:\"data\"`\n\t}{}\n\treq := make(map[string]interface{})\n\treq[\"orderId\"] = orderID\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\tfalse,\n\t\treq,\n\t\t&resp,\n\t\tspotCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Data, nil\n}",
"func (c *TradeClient) CancelConditionOrder(contractCode string, taskId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif taskId <= 0 {\n\t\treturn errors.New(\"taskId must > 0\")\n\t}\n\n\tparam := &coremodel.ApiRequestModel{\n\t\tParam: &struct {\n\t\t\tContractCode string `json:\"contractCode\"`\n\t\t\tTaskId int64 `json:\"taskId\"`\n\t\t}{contractCode, taskId},\n\t}\n\tbody, err := json.Marshal(param)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn c.requester.Post(\"/api/v1/cancel_condition_order\", body, nil, true, coremodel.NewBoolResponse())\n}",
"func (h *HUOBIHADAX) CancelExistingOrder(orderID int64) (int64, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrderID int64 `json:\"data,string\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodPost, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn 0, errors.New(result.ErrorMessage)\n\t}\n\treturn result.OrderID, err\n}",
"func (owner *WalletOwnerAPI) CancelTx(txID *uint32, txSlateID *uuid.UUID) error {\n\tparams := struct {\n\t\tToken string `json:\"token\"`\n\t\tTxID *uint32 `json:\"tx_id\"`\n\t\tTxSlateID *uuid.UUID `json:\"tx_slate_id\"`\n\t}{\n\t\tToken: owner.token,\n\t\tTxID: txID,\n\t\tTxSlateID: txSlateID,\n\t}\n\tparamsBytes, err := json.Marshal(params)\n\tif err != nil {\n\t\treturn err\n\t}\n\tenvl, err := owner.client.EncryptedRequest(\"cancel_tx\", paramsBytes, owner.sharedSecret)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif envl == nil {\n\t\treturn errors.New(\"WalletOwnerAPI: Empty RPC Response from grin-wallet\")\n\t}\n\tif envl.Error != nil {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"code\": envl.Error.Code,\n\t\t\t\"message\": envl.Error.Message,\n\t\t}).Error(\"WalletOwnerAPI: RPC Error during CancelTx\")\n\t\treturn errors.New(string(envl.Error.Code) + \"\" + envl.Error.Message)\n\t}\n\tvar result Result\n\tif err = json.Unmarshal(envl.Result, &result); err != nil {\n\t\treturn err\n\t}\n\tif result.Err != nil {\n\t\treturn errors.New(string(result.Err))\n\t}\n\treturn nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Guest Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n}",
"func (h *HUOBIHADAX) CancelOrderBatch(orderIDs []int64) (CancelOrderBatch, error) {\n\ttype response struct {\n\t\tStatus string `json:\"status\"`\n\t\tData CancelOrderBatch `json:\"data\"`\n\t}\n\n\t// Used to send param formatting\n\ttype postBody struct {\n\t\tList []int64 `json:\"order-ids\"`\n\t}\n\n\t// Format to JSON\n\tbytesParams, _ := common.JSONEncode(&postBody{List: orderIDs})\n\tpostBodyParams := string(bytesParams)\n\n\tvar result response\n\terr := h.SendAuthenticatedHTTPPostRequest(http.MethodPost, huobihadaxOrderCancelBatch, postBodyParams, &result)\n\n\tif len(result.Data.Failed) != 0 {\n\t\terrJSON, _ := common.JSONEncode(result.Data.Failed)\n\t\treturn CancelOrderBatch{}, errors.New(string(errJSON))\n\t}\n\treturn result.Data, err\n}",
"func (_IOrakuruCore *IOrakuruCoreTransactor) CancelRequest(opts *bind.TransactOpts, _requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.contract.Transact(opts, \"cancelRequest\", _requestId)\n}",
"func (c *Coinbene) CancelSpotOrders(orderIDs []string) ([]OrderCancellationResponse, error) {\n\treq := make(map[string]interface{})\n\treq[\"orderIds\"] = orderIDs\n\ttype resp struct {\n\t\tData []OrderCancellationResponse `json:\"data\"`\n\t}\n\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneBatchCancel\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneBatchCancel,\n\t\tfalse,\n\t\treq,\n\t\t&r,\n\t\tspotCancelOrdersBatch)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn r.Data, nil\n}",
"func (_IOrakuruCore *IOrakuruCoreTransactorSession) CancelRequest(_requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.Contract.CancelRequest(&_IOrakuruCore.TransactOpts, _requestId)\n}",
"func CancelSalesOrder(so *model.SalesOrder, user *model.User) (e error) {\n\to := orm.NewOrm()\n\tso.IsDeleted = 0\n\tso.DocumentStatus = \"approved_cancel\"\n\tso.Customer.TotalSpend = so.Customer.TotalSpend - so.TotalCharge\n\tif e = calculateStockCommited(so); e != nil {\n\t\treturn e\n\t}\n\tso.ApproveCancelAt = time.Now()\n\tso.ApproveCancelBy = user\n\n\tvar si []*model.SalesInvoice\n\n\tif so.InvoiceStatus != \"new\" {\n\t\tif o.QueryTable(new(model.SalesInvoice)).Filter(\"sales_order_id\", so.ID).All(&si); e == nil {\n\t\t\tfor _, six := range si {\n\t\t\t\t//update is delete pada seluruh sales invoice yg memiliki referensi SO, menjadi is_delete = 1\n\t\t\t\tsix.IsDeleted = 1\n\t\t\t\tsix.Save(\"IsDeleted\")\n\t\t\t\t//check document status\n\t\t\t\tif six.DocumentStatus != \"new\" {\n\n\t\t\t\t\t// update total debt dengan total debt lama dikurang dengan total charge SO, pd partnership tersebut\n\t\t\t\t\tso.Customer.TotalDebt = so.Customer.TotalDebt - (so.TotalCharge - so.TotalPaid)\n\t\t\t\t\tif e = so.Customer.Save(\"total_debt\"); e == nil {\n\t\t\t\t\t}\n\n\t\t\t\t\t// cek is_bundle\n\t\t\t\t\tif six.IsBundled != 1 {\n\n\t\t\t\t\t\t//update is delete pada seluruh finance revenue yg memiliki referensi sales invoice, menjadi is_delete = 1\n\t\t\t\t\t\tvar fr []*model.FinanceRevenue\n\t\t\t\t\t\tif o.QueryTable(new(model.FinanceRevenue)).Filter(\"ref_id\", six.ID).Filter(\"ref_type\", \"sales_invoice\").All(&fr); e == nil {\n\t\t\t\t\t\t\tfor _, frx := range fr {\n\t\t\t\t\t\t\t\tfrx.IsDeleted = 1\n\t\t\t\t\t\t\t\tfrx.Save(\"IsDeleted\")\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// jika is bundled = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif e = checkInvoiceReceiptItem(six); e != nil {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// cek fulfillment status\n\tvar fulfillment []*model.WorkorderFulfillment\n\tif so.FulfillmentStatus != \"new\" {\n\t\t// ambil workorder_fulfillment berdasarkan parameter sales order diatas\n\t\tif fulfillment, e = getWorkorderFulfillments(\"sales_order_id\", so.ID); e == nil {\n\t\t\tfor _, ffx := range fulfillment {\n\t\t\t\t// cek dokumen status work order fulfillment finished\n\t\t\t\tif ffx.DocumentStatus == \"finished\" {\n\t\t\t\t\tif e = inventory.CancelStock(uint64(ffx.ID), \"workorder_fulfillment\"); e != nil {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tffx.IsDeleted = 1\n\t\t\t\tif e = ffx.Save(\"IsDeleted\"); e != nil {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t//if e = calculateStockAvailable(so); e != nil {\n\t\t//\treturn e\n\t\t//}\n\t}\n\n\tif e = so.Customer.Save(\"total_spend\"); e == nil {\n\t\tif e = so.Save(\"cancelled_note\", \"is_deleted\", \"document_status\", \"approve_cancel_at\", \"approve_cancel_by\"); e != nil {\n\t\t\treturn e\n\t\t}\n\t}\n\n\treturn\n}",
"func (_IOrakuruCore *IOrakuruCoreSession) CancelRequest(_requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.Contract.CancelRequest(&_IOrakuruCore.TransactOpts, _requestId)\n}",
"func (e *Huobi) CancelOrder(order Order) bool {\n\tresult, err := services.SubmitCancel(order.ID)\n\tif err != nil {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", err)\n\t\treturn false\n\t}\n\tif result.Status != \"ok\" {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", result.ErrMsg)\n\t\treturn false\n\t}\n\te.logger.Log(constant.CANCEL, order.StockType, order.Price, order.Amount-order.DealAmount, order)\n\treturn true\n}",
"func New(crossid field.CrossIDField, origcrossid field.OrigCrossIDField, crosstype field.CrossTypeField, crossprioritization field.CrossPrioritizationField, handlinst field.HandlInstField, transacttime field.TransactTimeField, ordtype field.OrdTypeField) (m CrossOrderCancelReplaceRequest) {\n\tm.Message = quickfix.NewMessage()\n\tm.Header = fix43.NewHeader(&m.Message.Header)\n\tm.Body = &m.Message.Body\n\tm.Trailer.Trailer = &m.Message.Trailer\n\n\tm.Header.Set(field.NewMsgType(\"t\"))\n\tm.Set(crossid)\n\tm.Set(origcrossid)\n\tm.Set(crosstype)\n\tm.Set(crossprioritization)\n\tm.Set(handlinst)\n\tm.Set(transacttime)\n\tm.Set(ordtype)\n\n\treturn\n}",
"func (order *Order) doCancel(success bool, log string) error {\n\tcancelLog := log\n\n\t// Try to cancel the shipment, if necessary\n\tshipment, err := catalogApi.GetShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && shipment.Status != catalogApi.ShipmentCancelled {\n\t\terr := catalogApi.CancelShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling shipment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nShipment cancelled\"\n\t\t}\n\t} else {\n\t\tcancelLog += \"\\nShipment \" + string(shipment.Status)\n\t}\n\n\t// Try to cancel the payment, if necessary\n\tpayment, err := paymentApi.FetchPayment(order.shop.paymentEndpoint, order.PaymentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && payment.Status != paymentApi.PaymentFailed {\n\t\terr := paymentApi.CancelPayment(order.shop.paymentEndpoint, order.PaymentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling payment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nPayment cancelled\"\n\t\t}\n\t}\n\tcancelLog += \"\\nPayment was \" + payment.Status\n\tif payment.Error != \"\" {\n\t\tcancelLog += \", error: \" + payment.Error\n\t}\n\n\t// Remove the order from the list of open orders & store cancel log\n\treturn order.shop.redis.Transaction(func(redis services.Redis) error {\n\t\torder.Status = cancelLog\n\t\terr := redis.Cmd(\"srem\", open_orders_key, order.id).Err()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn order.SaveIn(redis)\n\t})\n}",
"func (h *HUOBI) CancelOrderBatch(ctx context.Context, orderIDs, clientOrderIDs []string) (*CancelOrderBatch, error) {\n\tresp := struct {\n\t\tResponse\n\t\tData *CancelOrderBatch `json:\"data\"`\n\t}{}\n\tdata := struct {\n\t\tClientOrderIDs []string `json:\"client-order-ids\"`\n\t\tOrderIDs []string `json:\"order-ids\"`\n\t}{\n\t\tClientOrderIDs: clientOrderIDs,\n\t\tOrderIDs: orderIDs,\n\t}\n\treturn resp.Data, h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, huobiOrderCancelBatch, nil, data, &resp, false)\n}",
"func (s *Service) Cancel(userId string, tans ...string) error {\n\tif len(tans) > 0 {\n\t\tfor _, tan := range tans {\n\t\t\tvar found *model.Tan\n\t\t\tif s.Verify(userId, tan, &found) {\n\t\t\t\terr := s.repository.Delete(found)\n\t\t\t\tif nil != err {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tshowNumber := int(float64(len(tan)) * .4)\n\t\t\t\tmaskedTan := tan[:showNumber] + strings.Repeat(\"*\", len(tan)-showNumber)\n\t\t\t\tlog.Printf(\"[warning] tan service refused to cancel given tan '%s' because the tan has failed verification.\", maskedTan)\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t}\n\treturn s.repository.DeleteByUserId(userId)\n}",
"func (k *xyzProvider) Cancel(context.Context, *pbempty.Empty) (*pbempty.Empty, error) {\n\t// TODO\n\treturn &pbempty.Empty{}, nil\n}",
"func (h *HUOBI) CancelExistingOrder(ctx context.Context, orderID int64) (int64, error) {\n\tresp := struct {\n\t\tOrderID int64 `json:\"data,string\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.OrderID, err\n}",
"func (_e *MockCompletableFuture_Expecter[T]) Cancel() *MockCompletableFuture_Cancel_Call[T] {\n\treturn &MockCompletableFuture_Cancel_Call[T]{Call: _e.mock.On(\"Cancel\")}\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Cancel(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"cancel\", hash)\n}",
"func Cancel(proposer, canceler eos.AccountName, proposalName eos.Name) {\n\tapi := getAPI()\n\n\tpushEOSCActions(api,\n\t\tmsig.NewCancel(proposer, proposalName, canceler),\n\t)\n}",
"func CancelTx(txID *uint32, txSlateID *uuid.UUID) error {\n\tclient := RPCHTTPClient{URL: url}\n\tparams := []interface{}{txID, txSlateID}\n\tparamsBytes, err := json.Marshal(params)\n\tif err != nil {\n\t\treturn err\n\t}\n\tenvl, err := client.Request(\"cancel_tx\", paramsBytes)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif envl == nil {\n\t\treturn errors.New(\"OwnerAPI: Empty RPC Response from grin-wallet\")\n\t}\n\tif envl.Error != nil {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"code\": envl.Error.Code,\n\t\t\t\"message\": envl.Error.Message,\n\t\t}).Error(\"OwnerAPI: RPC Error during CancelTx\")\n\t\treturn errors.New(string(envl.Error.Code) + \"\" + envl.Error.Message)\n\t}\n\tvar result Result\n\tif err = json.Unmarshal(envl.Result, &result); err != nil {\n\t\treturn err\n\t}\n\tif result.Err != nil {\n\t\treturn errors.New(string(result.Err))\n\t}\n\treturn nil\n}",
"func (o *OKEX) CancelBatchOrders(_ []order.Cancel) (order.CancelBatchResponse, error) {\n\treturn order.CancelBatchResponse{}, common.ErrNotYetImplemented\n}",
"func (s *OrderService) CancelAllOrder(a common.Address) error {\n\torders, err := s.orderDao.GetOpenOrdersByUserAddress(a)\n\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\tif len(orders) == 0 {\n\t\treturn nil\n\t}\n\n\tfor _, o := range orders {\n\t\terr = s.broker.PublishCancelOrderMessage(o)\n\n\t\tif err != nil {\n\t\t\tlogger.Error(err)\n\t\t\tcontinue\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (e *orderEndpoint) handleCancelOrder(ev *types.WebsocketEvent, c *ws.Client) {\n\tbytes, err := json.Marshal(ev.Payload)\n\toc := &types.OrderCancel{}\n\n\terr = oc.UnmarshalJSON(bytes)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\taddr, err := oc.GetSenderAddress()\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\tws.RegisterOrderConnection(addr, c)\n\n\torderErr := e.orderService.CancelOrder(oc)\n\tif orderErr != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(orderErr, oc.OrderHash)\n\t\treturn\n\t}\n}",
"func (p *BoteaterServiceClient) CancelGroupInvitation(ctx context.Context, reqSeq int32, groupId string, contactIds []string) (err error) {\r\n var _args79 BoteaterServiceCancelGroupInvitationArgs\r\n _args79.ReqSeq = reqSeq\r\n _args79.GroupId = groupId\r\n _args79.ContactIds = contactIds\r\n var _result80 BoteaterServiceCancelGroupInvitationResult\r\n if err = p.Client_().Call(ctx, \"cancelGroupInvitation\", &_args79, &_result80); err != nil {\r\n return\r\n }\r\n switch {\r\n case _result80.E!= nil:\r\n return _result80.E\r\n }\r\n\r\n return nil\r\n}",
"func (h *HUOBI) CancelAllSwapOrders(ctx context.Context, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelAllOrders, nil, req, &resp)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (r *cancelReq) Transform(m *model.SalesOrder) {\n\t// ubah isi model sales order\n\tm.CancelledNote = r.CancelledNote\n\tm.DocumentStatus = \"requested_cancel\"\n\tm.RequestCancelAt = time.Now()\n\tm.RequestCancelBy = r.Session.User\n}",
"func (a *OrdersApiService) V1OrdersCancelPost(ctx _context.Context, orderCancelSingleRequest OrderCancelSingleRequest) (OrderExecutionReport, *_nethttp.Response, error) {\n\tvar (\n\t\tlocalVarHTTPMethod = _nethttp.MethodPost\n\t\tlocalVarPostBody interface{}\n\t\tlocalVarFormFileName string\n\t\tlocalVarFileName string\n\t\tlocalVarFileBytes []byte\n\t\tlocalVarReturnValue OrderExecutionReport\n\t)\n\n\t// create path and map variables\n\tlocalVarPath := a.client.cfg.BasePath + \"/v1/orders/cancel\"\n\tlocalVarHeaderParams := make(map[string]string)\n\tlocalVarQueryParams := _neturl.Values{}\n\tlocalVarFormParams := _neturl.Values{}\n\n\t// to determine the Content-Type header\n\tlocalVarHTTPContentTypes := []string{\"application/json\"}\n\n\t// set Content-Type header\n\tlocalVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)\n\tif localVarHTTPContentType != \"\" {\n\t\tlocalVarHeaderParams[\"Content-Type\"] = localVarHTTPContentType\n\t}\n\n\t// to determine the Accept header\n\tlocalVarHTTPHeaderAccepts := []string{\"application/json\", \"appliction/json\"}\n\n\t// set Accept header\n\tlocalVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)\n\tif localVarHTTPHeaderAccept != \"\" {\n\t\tlocalVarHeaderParams[\"Accept\"] = localVarHTTPHeaderAccept\n\t}\n\t// body params\n\tlocalVarPostBody = &orderCancelSingleRequest\n\tr, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)\n\tif err != nil {\n\t\treturn localVarReturnValue, nil, err\n\t}\n\n\tlocalVarHTTPResponse, err := a.client.callAPI(r)\n\tif err != nil || localVarHTTPResponse == nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tlocalVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)\n\tlocalVarHTTPResponse.Body.Close()\n\tif err != nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tif localVarHTTPResponse.StatusCode >= 300 {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: localVarHTTPResponse.Status,\n\t\t}\n\t\tif localVarHTTPResponse.StatusCode == 400 {\n\t\t\tvar v ValidationError\n\t\t\terr = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\t\t\tif err != nil {\n\t\t\t\tnewErr.error = err.Error()\n\t\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t\t}\n\t\t\tnewErr.model = v\n\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t}\n\t\tif localVarHTTPResponse.StatusCode == 490 {\n\t\t\tvar v Message\n\t\t\terr = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\t\t\tif err != nil {\n\t\t\t\tnewErr.error = err.Error()\n\t\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t\t}\n\t\t\tnewErr.model = v\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\terr = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\tif err != nil {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: err.Error(),\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\treturn localVarReturnValue, localVarHTTPResponse, nil\n}",
"func (h *HitBTC) CancelExistingOrder(ctx context.Context, orderID int64) (bool, error) {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tapiOrder+\"/\"+strconv.FormatInt(orderID, 10),\n\t\tvalues,\n\t\ttradingRequests,\n\t\t&result)\n\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn false, errors.New(result.Error)\n\t}\n\n\treturn true, nil\n}",
"func (o *Okcoin) WsCancelMultipleOrders(args []CancelTradeOrderRequest) ([]TradeOrderResponse, error) {\n\tvar err error\n\tif len(args) == 0 {\n\t\treturn nil, fmt.Errorf(\"%w, 0 length place order requests\", errNilArgument)\n\t}\n\tfor x := range args {\n\t\terr = args[x].validate()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\tvar resp []TradeOrderResponse\n\treturn resp, o.SendWebsocketRequest(\"batch-cancel-orders\", args, &resp, true)\n}",
"func (r *rpcClient) CancelScheduled(ctx context.Context, seq ...int64) error {\n\tctx, span := startConsumerSpanFromContext(ctx, \"sb.rpcClient.CancelScheduled\")\n\tdefer span.End()\n\n\tif err := r.ensureConn(ctx); err != nil {\n\t\ttab.For(ctx).Error(err)\n\t\treturn err\n\t}\n\n\tr.clientMu.RLock()\n\tdefer r.clientMu.RUnlock()\n\n\tmsg := &amqp.Message{\n\t\tApplicationProperties: map[string]interface{}{\n\t\t\toperationFieldName: cancelScheduledOperationID,\n\t\t},\n\t\tValue: map[string]interface{}{\n\t\t\t\"sequence-numbers\": seq,\n\t\t},\n\t}\n\n\tif deadline, ok := ctx.Deadline(); ok {\n\t\tmsg.ApplicationProperties[serverTimeoutFieldName] = uint(time.Until(deadline) / time.Millisecond)\n\t}\n\n\tlink, err := rpc.NewLink(r.client, r.ec.ManagementPath())\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tresp, err := link.RetryableRPC(ctx, 5, 5*time.Second, msg)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif resp.Code != 200 {\n\t\treturn ErrAMQP(*resp)\n\t}\n\n\treturn nil\n}",
"func (b *Bitmex) CancelAllOrders(ctx context.Context, _ *order.Cancel) (order.CancelAllResponse, error) {\n\tcancelAllOrdersResponse := order.CancelAllResponse{\n\t\tStatus: make(map[string]string),\n\t}\n\tvar emptyParams OrderCancelAllParams\n\torders, err := b.CancelAllExistingOrders(ctx, emptyParams)\n\tif err != nil {\n\t\treturn cancelAllOrdersResponse, err\n\t}\n\n\tfor i := range orders {\n\t\tif orders[i].OrdRejReason != \"\" {\n\t\t\tcancelAllOrdersResponse.Status[orders[i].OrderID] = orders[i].OrdRejReason\n\t\t}\n\t}\n\n\treturn cancelAllOrdersResponse, nil\n}",
"func (s *Socket) sendOrderCanceled(o *Order) error {\n\tfmt.Printf(\"Send order canceled message\")\n\tp := &OrderPayload{Order: o}\n\tm := &Message{MessageType: ORDER_CANCELED, Payload: p}\n\tif err := s.connection.WriteJSON(&m); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (b *Bitmex) CancelBatchOrders(ctx context.Context, o []order.Cancel) (*order.CancelBatchResponse, error) {\n\tif len(o) == 0 {\n\t\treturn nil, order.ErrCancelOrderIsNil\n\t}\n\tvar orderIDs, clientIDs []string\n\tfor i := range o {\n\t\tswitch {\n\t\tcase o[i].ClientOrderID != \"\":\n\t\t\tclientIDs = append(clientIDs, o[i].ClientID)\n\t\tcase o[i].OrderID != \"\":\n\t\t\torderIDs = append(orderIDs, o[i].OrderID)\n\t\tdefault:\n\t\t\treturn nil, order.ErrOrderIDNotSet\n\t\t}\n\t}\n\tjoinedOrderIDs := strings.Join(orderIDs, \",\")\n\tjoinedClientIDs := strings.Join(clientIDs, \",\")\n\tparams := &OrderCancelParams{\n\t\tOrderID: joinedOrderIDs,\n\t\tClientOrderID: joinedClientIDs,\n\t}\n\tresp := &order.CancelBatchResponse{\n\t\tStatus: make(map[string]string),\n\t}\n\tcancelResponse, err := b.CancelOrders(ctx, params)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor i := range cancelResponse {\n\t\tresp.Status[cancelResponse[i].OrderID] = cancelResponse[i].OrdStatus\n\t}\n\treturn resp, nil\n}",
"func (r *PurchasesService) Cancel(packageName string, subscriptionId string, token string) *PurchasesCancelCall {\n\treturn &PurchasesCancelCall{\n\t\ts: r.s,\n\t\tpackageName: packageName,\n\t\tsubscriptionId: subscriptionId,\n\t\ttoken: token,\n\t\tcaller_: googleapi.JSONCall{},\n\t\tparams_: make(map[string][]string),\n\t\tpathTemplate_: \"{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel\",\n\t\tcontext_: googleapi.NoContext,\n\t}\n}",
"func (h *Hbdm) CancelAllOrders(symbol string) (resp *CancelAllOrdersResponse, err error) {\n\tpayload := make(map[string]interface{}, 1)\n\tpayload[\"symbol\"] = symbol\n\n\tr, err := h.client.do(\"POST\", \"contract_cancelall\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (h *Handler) cancel(c echo.Context) (e error) {\n\tctx := c.(*cuxs.Context)\n\tvar r cancelRequest\n\tvar id int64\n\tvar sr *model.SalesReturn\n\n\tif id, e = common.Decrypt(ctx.Param(\"id\")); e == nil {\n\t\tif sr, e = ShowSalesReturn(\"id\", id); e == nil {\n\t\t\tr.SR = sr\n\t\t\tif e = ctx.Bind(&r); e == nil {\n\t\t\t\tif e = CancelSalesReturn(sr); e == nil {\n\t\t\t\t\tif e = UpdateExpense(sr); e == nil {\n\t\t\t\t\t\tctx.Data(sr)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\te = echo.ErrNotFound\n\t\t}\n\t}\n\n\treturn ctx.Serve(e)\n}",
"func (r *mutationResolver) StorefrontAirswapCancelled(ctx context.Context) (string, error) {\n\t// token := auth.ForContext(ctx)\n\t// if token == nil {\n\t// \treturn \"\", ErrAccessDenied\n\t// }\n\n\t// err := r.storefrontService.PurchaseTransactionCancel(token.Sub)\n\t// if err != nil {\n\t// \treturn ResponseError, err\n\t// }\n\n\t// return ResponseOK, nil\n\treturn ResponseNotImplemented, nil\n}",
"func PerformCancel(instance *adyen.Adyen, w http.ResponseWriter, r *http.Request) {\n\tr.ParseForm()\n\n\treq := &adyen.Cancel{\n\t\tReference: r.Form.Get(\"reference\"), // order number or some business reference\n\t\tMerchantAccount: instance.MerchantAccount, // Merchant Account setting\n\t\tOriginalReference: r.Form.Get(\"original-reference\"), // PSP reference that came as authorization result\n\t}\n\n\tg, err := instance.Modification().Cancel(req)\n\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tresponse, err := json.Marshal(g)\n\n\tw.Header().Set(\"Content-Type\", \"application/json\")\n\tw.Write(response)\n}",
"func Cancel(session *discordgo.Session, message *discordgo.MessageCreate, env *botenv.BotEnv) {\n\t// Parse out the index rune.\n\tf := (strings.Fields(message.Content))\n\tid := f[len(f)-1]\n\ti, errConv := strconv.ParseInt(id, 16, 32)\n\tif errConv != nil {\n\t\treturn\n\t}\n\tr := rune(i)\n\t// Check the rune.\n\tif r < lodb.IDMIN || r > lodb.IDMAX*lodb.TICKPERIOD {\n\t\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"The ID %s is not within an acceptable range.\", string(r)))\n\t\treturn\n\t}\n\t// Delete.\n\terr := env.Repo.Delete(message.Author.ID, r)\n\tif err != nil {\n\t\tenv.Log.Error(\n\t\t\t\"Error deleting user's query.\",\n\t\t\tzap.Error(err))\n\t\tsession.ChannelMessageSend(message.ChannelID, \"The was a problem trying to delete that query.\")\n\t\treturn\n\t}\n\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"Query %X was canceled.\", r))\n}",
"func (p *Poloniex) CancelMultipleOrdersByIDs(ctx context.Context, orderIDs, clientOrderIDs []string) ([]CancelOrdersResponse, error) {\n\tvalues := url.Values{}\n\tif len(orderIDs) > 0 {\n\t\tvalues.Set(\"orderIds\", strings.Join(orderIDs, \",\"))\n\t}\n\tif len(clientOrderIDs) > 0 {\n\t\tvalues.Set(\"clientOrderIds\", strings.Join(clientOrderIDs, \",\"))\n\t}\n\tvar result []CancelOrdersResponse\n\treturn result, p.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tpoloniexCancelByIDs,\n\t\tvalues,\n\t\t&result)\n}",
"func (p *Poloniex) CancelExistingOrder(ctx context.Context, orderID int64) error {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\tvalues.Set(\"orderNumber\", strconv.FormatInt(orderID, 10))\n\n\terr := p.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, poloniexOrderCancel, values, &result)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn errors.New(result.Error)\n\t}\n\n\treturn nil\n}",
"func (r *Response) Cancel(ctx context.Context) (*Response, error) {\n\tif r.CancelResponse == nil || len(r.CancelResponse.FormValues) == 0 {\n\t\treturn nil, errors.New(\"valid cancel is missing from idx response\")\n\t}\n\tm := make(map[string]interface{})\n\tfor i := range r.CancelResponse.FormValues {\n\t\tm[r.CancelResponse.FormValues[i].Name] = r.CancelResponse.FormValues[i].Value\n\t}\n\tbody, err := json.Marshal(m)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to marshal cancel request: %w\", err)\n\t}\n\treq, err := http.NewRequestWithContext(ctx, r.CancelResponse.Method, r.CancelResponse.Href, bytes.NewReader(body))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create cancel request: %w\", err)\n\t}\n\treq.Header.Set(\"Accepts\", r.CancelResponse.Accepts)\n\treq.Header.Set(\"Content-Type\", r.CancelResponse.Accepts)\n\toktahttp.WithOktaUserAgent(req, packageVersion)\n\tresp, err := idx.httpClient.Do(req)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"http call has failed: %w\", err)\n\t}\n\tvar idxResponse Response\n\terr = unmarshalResponse(resp, &idxResponse)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &idxResponse, nil\n}",
"func (book *OrderBook) cancelBuyOrder(orderID string) error {\n\tfor i, o := range book.BuyOrders {\n\t\tif o.ID == orderID {\n\t\t\t// TODO update status of persisted order to \"cancelled\"\n\t\t\t// need to do this after the orders are persisted\n\t\t\t// persisted orders will eventually load at startup using\n\t\t\t// status == pending\n\t\t\tbook.removeBuyOrder(i)\n\t\t\treturn nil\n\t\t}\n\t}\n\treturn fmt.Errorf(\"orderID: %s not found\", orderID)\n}",
"func (req *DronaRequest) Cancel() error {\n\tif req.cancelFunc != nil {\n\t\treq.cancelFunc()\n\t}\n\treturn nil\n}",
"func (r *OperationsService) Cancel(name string) *OperationsCancelCall {\n\tc := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.name = name\n\treturn c\n}",
"func (h *HUOBI) CancelAllSwapTriggerOrders(ctx context.Context, contractCode currency.Pair) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\tcodeValue, err := h.FormatSymbol(contractCode, asset.CoinMarginedFutures)\n\tif err != nil {\n\t\treturn resp, err\n\t}\n\treq[\"contract_code\"] = codeValue\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelAllTriggerOrders, nil, req, &resp)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall {\n\tc := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.name = name\n\tc.canceloperationrequest = canceloperationrequest\n\treturn c\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (s *Server) CtxCancel() {\n\tif s.ctxCancel != nil {\n\t\t(*s.ctxCancel)()\n\t}\n}",
"func (client RoleAssignmentScheduleRequestsClient) Cancel(ctx context.Context, scope string, roleAssignmentScheduleRequestName string) (result autorest.Response, err error) {\n\tif tracing.IsEnabled() {\n\t\tctx = tracing.StartSpan(ctx, fqdn+\"/RoleAssignmentScheduleRequestsClient.Cancel\")\n\t\tdefer func() {\n\t\t\tsc := -1\n\t\t\tif result.Response != nil {\n\t\t\t\tsc = result.Response.StatusCode\n\t\t\t}\n\t\t\ttracing.EndSpan(ctx, sc, err)\n\t\t}()\n\t}\n\treq, err := client.CancelPreparer(ctx, scope, roleAssignmentScheduleRequestName)\n\tif err != nil {\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", nil, \"Failure preparing request\")\n\t\treturn\n\t}\n\n\tresp, err := client.CancelSender(req)\n\tif err != nil {\n\t\tresult.Response = resp\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", resp, \"Failure sending request\")\n\t\treturn\n\t}\n\n\tresult, err = client.CancelResponder(resp)\n\tif err != nil {\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", resp, \"Failure responding to request\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (r *Response) Cancel() error {\n\t\n}"
] | [
"0.814531",
"0.8095055",
"0.73175097",
"0.73059934",
"0.7303925",
"0.70130193",
"0.7002147",
"0.69305396",
"0.6596326",
"0.65261084",
"0.6488673",
"0.6481526",
"0.6401454",
"0.63625276",
"0.635748",
"0.63381994",
"0.63195574",
"0.6275044",
"0.6242935",
"0.6221784",
"0.6180592",
"0.6140008",
"0.61258334",
"0.60957307",
"0.6031062",
"0.601955",
"0.5878891",
"0.58725095",
"0.58678013",
"0.5835839",
"0.57972",
"0.5791842",
"0.57833576",
"0.5770927",
"0.5759336",
"0.5752842",
"0.57519853",
"0.57200134",
"0.57127017",
"0.56975067",
"0.5684344",
"0.56615955",
"0.55991685",
"0.5594917",
"0.55763733",
"0.5560071",
"0.555563",
"0.5530209",
"0.5508697",
"0.55023366",
"0.5485834",
"0.54806185",
"0.54705",
"0.54298675",
"0.5422562",
"0.5421049",
"0.5418049",
"0.5411084",
"0.5353183",
"0.5346367",
"0.53054523",
"0.5287265",
"0.5280782",
"0.5267086",
"0.5260609",
"0.5213901",
"0.52047074",
"0.5196978",
"0.5173553",
"0.51659894",
"0.5161094",
"0.5157259",
"0.51567125",
"0.5133672",
"0.5126576",
"0.51152015",
"0.5110412",
"0.51100427",
"0.51092863",
"0.51088023",
"0.51012164",
"0.5093125",
"0.5089382",
"0.5052307",
"0.5044655",
"0.50435334",
"0.5035435",
"0.502757",
"0.5026103",
"0.5021155",
"0.5017588",
"0.5008352",
"0.49956164",
"0.49830702",
"0.49819678",
"0.4978727",
"0.49742675",
"0.49726617",
"0.49644467",
"0.49556792"
] | 0.79524696 | 2 |
CancelOrder is a paid mutator transaction binding the contract method 0xa8a41c70. Solidity: function cancelOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, uint8 v, bytes32 r, bytes32 s) returns() | func (_WyvernExchange *WyvernExchangeSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
return _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) CancelOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"cancelOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaTransactor) CancelOrder(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"cancelOrder\", tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (cl *ocxClient) CancelOrder(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\torderID := args[0]\n\n\t// remove this and _ when cancel order has returns\n\t// var cancelOrderReply *cxrpc.CancelOrderReply\n\tif _, err = cl.RPCClient.CancelOrder(orderID); err != nil {\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Cancelled order successfully\")\n\treturn\n}",
"func CancelOrder(c *soso.Context) {\n\tif c.Token == nil {\n\t\tc.ErrorResponse(403, soso.LevelError, errors.New(\"User not authorized\"))\n\t\treturn\n\t}\n\treq := c.RequestMap\n\n\tpayID, _ := req[\"id\"].(float64)\n\tleadID, _ := req[\"lead_id\"].(float64)\n\n\tif leadID <= 0 || payID <= 0 {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Incorrect parameter\"))\n\t\treturn\n\t}\n\n\t_, role, err := getConversationID(c.Token.UID, uint64(leadID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\t// must have correct direction; IS creator\n\tdirection, err := paymentDirection(role, true)\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\torderData, paymentData, err := retrieveOrder(uint64(payID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\tif !canCancelPay(paymentData.Direction, direction) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"No access to cancel this pay\"))\n\t\treturn\n\t}\n\tif orderData.LeadId != uint64(leadID) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Parameters mangled\"))\n\t\treturn\n\t}\n\n\t// now -- create the order\n\tctx, cancel := rpc.DefaultContext()\n\tdefer cancel()\n\tresp, err := paymentServiceClient.CancelOrder(ctx, &payment.CancelOrderRequest{\n\t\tPayId: uint64(payID),\n\t\tUserId: c.Token.UID,\n\t})\n\n\tif err != nil { // RPC errors\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\tif resp.Error > 0 { // service errors\n\t\tc.Response.ResponseMap = map[string]interface{}{\n\t\t\t\"ErrorCode\": resp.Error,\n\t\t\t\"ErrorMessage\": resp.ErrorMessage,\n\t\t}\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(resp.ErrorMessage))\n\t\treturn\n\t}\n\n\tc.SuccessResponse(map[string]interface{}{\n\t\t\"cancelled\": resp.Cancelled,\n\t})\n\n}",
"func (trading *TradingProvider) Cancel(order schemas.Order) (err error) {\n\tvar b []byte\n\tvar resp OrderCancel\n\n\tpayload := httpclient.Params()\n\tnonce := time.Now().UnixNano()\n\tpayload.Set(\"orderNumber\", order.ID)\n\tpayload.Set(\"command\", commandCancel)\n\tpayload.Set(\"nonce\", strconv.FormatInt(nonce, 10))\n\n\tb, err = trading.httpClient.Post(tradingAPI, httpclient.Params(), payload, true)\n\tif err != nil {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error creating order: %v\", string(b))\n\t}\n\tif err = json.Unmarshal(b, &resp); err != nil {\n\t\treturn\n\t}\n\tif len(resp.Error) > 0 {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error cancelling order: %v\", resp.Error)\n\t\treturn\n\t}\n\n\treturn nil\n}",
"func (b Bittrex) CancelOrder(uuid string) {\n\terr := b.Inst.CancelOrder(uuid)\n\tutils.HandleError(err)\n}",
"func (m *Marketplace) CancelOrder(ctx context.Context, req *pb.Order) (*pb.Empty, error) {\n\n\tlogger := ctx_zap.Extract(ctx)\n\tlogger.Sugar().Infof(\"Canceling order %s\", req.GetId())\n\n\t// used by CheckPermissions bellow\n\torder, err := m.getOrderByID(req.GetId())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq.OrderType = pb.OrderType(order.OrderType)\n\treq.ByuerID = order.BuyerID\n\treq.SupplierID = order.SupplierID\n\n\tif err := CheckPermissions(ctx, req); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err := m.commandBus.Handle(command.CancelOrder{ID: req.Id}); err != nil {\n\t\treturn nil, err\n\t}\n\n\tlogger.Sugar().Infof(\"Order %s successfully canceled\", req.GetId())\n\n\treturn &pb.Empty{}, nil\n}",
"func (this *Spot) CancelOrder(order *Order) ([]byte, error) {\n\turlPath := \"/api/spot/v3/cancel_orders/\" + order.OrderId\n\tparam := struct {\n\t\tInstrumentId string `json:\"instrument_id\"`\n\t}{\n\t\torder.Pair.ToSymbol(\"-\", true),\n\t}\n\treqBody, _, _ := this.BuildRequestBody(param)\n\tvar response struct {\n\t\tClientOid string `json:\"client_oid\"`\n\t\tOrderId string `json:\"order_id\"`\n\t\tResult bool `json:\"result\"`\n\t}\n\n\tresp, err := this.DoRequest(\n\t\t\"POST\",\n\t\turlPath,\n\t\treqBody,\n\t\t&response,\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif response.Result {\n\t\treturn resp, nil\n\t}\n\treturn resp, NewError(400, \"cancel fail, unknown error\")\n}",
"func (p *Bittrex) CancelOrder(order OrderInfo) *TradeResult {\n\treturn nil\n}",
"func (s *Socket) cancelOrder(p Payload) {\n\tocp := NewOrderCancelPayload()\n\n\tif err := ocp.DecodeOrderCancelPayload(p); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n\n\toc := ocp.OrderCancel\n\n\tif err := s.server.engine.CancelOrder(oc); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n}",
"func (tsl *TrailingStopLoss) CancelOrder() {\n\tif tsl.Order == (cbp.Order{}) {\n\t\tlog.Println(\"[warn] no order to cancel\")\n\t} else {\n\t\terr := tsl.Client.CancelOrder(tsl.Order.ID)\n\t\tif err != nil {\n\t\t\tlog.Println(\"[warn] could not cancel order\")\n\t\t}\n\t\ttsl.Order = cbp.Order{}\n\t\ttsl.UpdateTime()\n\t}\n}",
"func (h *Hbdm) CanceOrder(symbol string, orderId, clientOrderId int) (resp *CancelOrderResponse, err error) {\n\tpayload := make(map[string]interface{}, 3)\n\tpayload[\"symbol\"] = symbol\n\n\tif orderId != 0 {\n\t\tpayload[\"order_id\"] = orderId\n\t}\n\n\tif clientOrderId != 0 {\n\t\tpayload[\"client_order_id\"] = clientOrderId\n\t}\n\n\tr, err := h.client.do(\"POST\", \"contract_cancel\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (g *Gemini) CancelExchangeOrder(p pair.CurrencyPair, orderID int64) (int64, error) {\n\treturn 0, errors.New(\"not yet implemented\")\n}",
"func (c *Coinbene) CancelSwapOrder(orderID string) (string, error) {\n\tparams := make(map[string]interface{})\n\tparams[\"orderId\"] = orderID\n\ttype resp struct {\n\t\tData string `json:\"data\"`\n\t}\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\ttrue,\n\t\tparams,\n\t\t&r,\n\t\tcontractCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn r.Data, nil\n}",
"func (c *Client) CancelOrder(symbol Symbol, clientOrderID string, id int) (*Order, error) {\n\tparams := []func(url.Values){\n\t\tparam(\"symbol\", symbol),\n\t}\n\n\tif clientOrderID == \"\" && id == 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID empty\")\n\t}\n\n\tif clientOrderID != \"\" && id != 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID both set\")\n\t}\n\n\tif clientOrderID != \"\" {\n\t\tparams = append(params, param(\"origClientOrderId\", clientOrderID))\n\t}\n\n\tif id != 0 {\n\t\tparams = append(params, param(\"orderId\", id))\n\t}\n\n\tvar order Order\n\terr := c.signedCall(&order, \"DELETE\", \"/api/v3/order\", params...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &order, nil\n}",
"func (b *Binance) CancelOrder(symbol string, orderID int64) {\n\t_, err := b.client.NewCancelOrderService().Symbol(symbol).\n\t\tOrderID(orderID).Do(context.Background())\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}",
"func (s serverImpl) Cancel(goCtx context.Context, req *ecocredit.MsgCancel) (*ecocredit.MsgCancelResponse, error) {\n\tctx := types.UnwrapSDKContext(goCtx)\n\tstore := ctx.KVStore(s.storeKey)\n\tholderAddr, err := sdk.AccAddressFromBech32(req.Holder)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfor _, credit := range req.Credits {\n\n\t\t// Check that the batch that were trying to cancel credits from\n\t\t// exists\n\t\tdenom := batchDenomT(credit.BatchDenom)\n\t\tif !s.batchInfoTable.Has(ctx, orm.RowID(denom)) {\n\t\t\treturn nil, sdkerrors.ErrInvalidRequest.Wrapf(\"%s is not a valid credit batch denom\", denom)\n\t\t}\n\n\t\t// Remove the credits from the total_amount in the batch and add\n\t\t// them to amount_cancelled\n\t\tvar batchInfo ecocredit.BatchInfo\n\t\terr := s.batchInfoTable.GetOne(ctx, orm.RowID(denom), &batchInfo)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tclassInfo, err := s.getClassInfo(ctx, batchInfo.ClassId)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tmaxDecimalPlaces := classInfo.CreditType.Precision\n\n\t\t// Parse the amount of credits to cancel, checking it conforms\n\t\t// to the precision\n\t\ttoCancel, err := math.NewPositiveFixedDecFromString(credit.Amount, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Remove the credits from the balance of the holder and the\n\t\t// overall supply\n\t\terr = subtractTradableBalanceAndSupply(store, holderAddr, denom, toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttotalAmount, err := math.NewPositiveFixedDecFromString(batchInfo.TotalAmount, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttotalAmount, err = math.SafeSubBalance(totalAmount, toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbatchInfo.TotalAmount = totalAmount.String()\n\n\t\tamountCancelled, err := math.NewNonNegativeFixedDecFromString(batchInfo.AmountCancelled, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tamountCancelled, err = amountCancelled.Add(toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbatchInfo.AmountCancelled = amountCancelled.String()\n\n\t\tif err = s.batchInfoTable.Update(ctx, &batchInfo); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Emit the cancellation event\n\t\terr = ctx.EventManager().EmitTypedEvent(&ecocredit.EventCancel{\n\t\t\tCanceller: req.Holder,\n\t\t\tBatchDenom: string(denom),\n\t\t\tAmount: toCancel.String(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tctx.GasMeter().ConsumeGas(gasCostPerIteration, \"cancel ecocredits\")\n\t}\n\n\treturn &ecocredit.MsgCancelResponse{}, nil\n}",
"func (book *OrderBook) Cancel(order *Order) error {\n\tif order.MarketName != book.MarketName {\n\t\treturn fmt.Errorf(\"market name for order should be %s got %s\", book.MarketName, order.MarketName)\n\t}\n\n\tif order.Side == constants.Sell {\n\t\treturn book.cancelSellOrder(order.ID)\n\t}\n\treturn book.cancelBuyOrder(order.ID)\n}",
"func (h *HUOBI) CancelSwapOrder(ctx context.Context, orderID, clientOrderID string, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\tif orderID != \"\" {\n\t\treq[\"order_id\"] = orderID\n\t}\n\tif clientOrderID != \"\" {\n\t\treq[\"client_order_id\"] = clientOrderID\n\t}\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelOrder, nil, req, &resp)\n}",
"func (o *Okcoin) WsCancelTradeOrder(arg *CancelTradeOrderRequest) (*TradeOrderResponse, error) {\n\tif arg == nil {\n\t\treturn nil, errNilArgument\n\t}\n\tif arg.InstrumentID == \"\" {\n\t\treturn nil, errMissingInstrumentID\n\t}\n\tif arg.OrderID == \"\" && arg.ClientOrderID == \"\" {\n\t\treturn nil, errOrderIDOrClientOrderIDRequired\n\t}\n\tvar resp []TradeOrderResponse\n\terr := o.SendWebsocketRequest(\"cancel-order\", &arg, &resp, true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(resp) == 0 {\n\t\treturn nil, errNoValidResponseFromServer\n\t}\n\tif resp[0].SCode != \"0\" {\n\t\treturn nil, fmt.Errorf(\"code: %s msg: %s\", resp[0].SCode, resp[0].SMsg)\n\t}\n\treturn &resp[0], nil\n}",
"func (b *Bitmex) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\t_, err := b.CancelOrders(ctx, &OrderCancelParams{\n\t\tOrderID: o.OrderID,\n\t})\n\treturn err\n}",
"func (c *Coinbene) CancelSwapOrders(orderIDs []string) ([]OrderCancellationResponse, error) {\n\tif len(orderIDs) > 10 {\n\t\treturn nil, errors.New(\"only 10 orderIDs are allowed at a time\")\n\t}\n\treq := make(map[string]interface{})\n\treq[\"orderIds\"] = orderIDs\n\ttype resp struct {\n\t\tData []OrderCancellationResponse `json:\"data\"`\n\t}\n\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneBatchCancel\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneBatchCancel,\n\t\ttrue,\n\t\treq,\n\t\t&r,\n\t\tcontractCancelMultipleOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn r.Data, nil\n}",
"func (e Exchange) CancelOrder(exch, orderID string) (bool, error) {\n\torderDetails, err := e.QueryOrder(exch, orderID)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tcancel := &order.Cancel{\n\t\tAccountID: orderDetails.AccountID,\n\t\tOrderID: orderDetails.ID,\n\t\tCurrencyPair: orderDetails.CurrencyPair,\n\t\tSide: orderDetails.OrderSide,\n\t}\n\n\terr = engine.Bot.OrderManager.Cancel(exch, cancel)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn true, nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, auth auth.Identity) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Customer Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n\n}",
"func (c *CoinbasePro) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\treturn c.CancelExistingOrder(ctx, o.OrderID)\n}",
"func (c *Client) CancelOrder(serverAssignedOrderID string) error {\n\tfullURL := fmt.Sprintf(\"%s/%s\", ordersURL, serverAssignedOrderID)\n\treq, err := http.NewRequest(\"DELETE\", fullURL, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, _, err = c.doAuthAndReq(req)\n\treturn err\n}",
"func TestCancelExistingOrder(t *testing.T) {\n\tt.Parallel()\n\t_, err := k.CancelExistingOrder(context.Background(), \"OAVY7T-MV5VK-KHDF5X\")\n\tif err == nil {\n\t\tt.Error(\"CancelExistingOrder() Expected error\")\n\t}\n}",
"func (e *CancelTransaction) Cancel(\n\tctx context.Context,\n) error {\n\tif int(e.Hop) >= len(e.Plan.Hops) {\n\t\treturn errors.Trace(errors.Newf(\n\t\t\t\"Hop (%d) is higher than the transaction plan length (%d)\",\n\t\t\te.Hop, len(e.Plan.Hops)))\n\t}\n\n\th := e.Plan.Hops[e.Hop]\n\tmint.Logf(ctx,\n\t\t\"Executing cancellation plan: transaction=%s hop=%d\", e.ID, e.Hop)\n\n\t// Cancel the OpAction (should always be defined)\n\tif h.OpAction != nil {\n\t\top, err := model.LoadCanonicalOperationByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if op == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Operation not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif op.Status == mint.TxStCanceled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\n\t\t} else {\n\t\t\ta := h.OpAction\n\n\t\t\tasset, err := model.LoadCanonicalAssetByName(ctx, *a.OperationAsset)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if asset == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Asset not found: %s\", *a.OperationAsset))\n\t\t\t}\n\n\t\t\t// Restore the source balance if applicable (that is if the op\n\t\t\t// source is not owner of the asset, in which case the asset was\n\t\t\t// issued on the fly).\n\t\t\tvar srcBalance *model.Balance\n\t\t\tif asset.Owner != op.Source {\n\t\t\t\tsrcBalance, err = model.LoadCanonicalBalanceByAssetHolder(ctx,\n\t\t\t\t\top.Asset, op.Source)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t} else if srcBalance == nil {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Source has no balance in %s: %s\", op.Asset, op.Source))\n\t\t\t\t}\n\t\t\t\t(*big.Int)(&srcBalance.Value).Add(\n\t\t\t\t\t(*big.Int)(&srcBalance.Value), (*big.Int)(&op.Amount))\n\n\t\t\t\t// Checks if the srcBalance is positive and not overflown.\n\t\t\t\tb := (*big.Int)(&srcBalance.Value)\n\t\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Invalid resulting balance for %s: %s\",\n\t\t\t\t\t\tsrcBalance.Holder, b.String()))\n\t\t\t\t}\n\n\t\t\t\terr = srcBalance.Save(ctx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\n\t\t\t\terr = async.Queue(ctx,\n\t\t\t\t\ttask.NewPropagateBalance(ctx, time.Now(), srcBalance.ID()))\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\top.Status = mint.TxStCanceled\n\t\t\terr = op.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\t\t}\n\t}\n\n\tif h.CrAction != nil {\n\t\tcr, err := model.LoadCanonicalCrossingByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if cr == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Crossing not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif cr.Status == mint.TxStSettled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t} else {\n\t\t\ta := h.CrAction\n\n\t\t\toffer, err := model.LoadCanonicalOfferByID(ctx, *a.CrossingOffer)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if offer == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Offer not found: %s\", *a.CrossingOffer))\n\t\t\t}\n\n\t\t\t(*big.Int)(&offer.Remainder).Add(\n\t\t\t\t(*big.Int)(&offer.Remainder), (*big.Int)(&cr.Amount))\n\n\t\t\t// Checks if the remainder is positive and not overflown.\n\t\t\tb := (*big.Int)(&offer.Remainder)\n\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Invalid resulting remainder: %s\", b.String()))\n\t\t\t}\n\t\t\t// Set the offer as active if the remainder is not 0 and the offer\n\t\t\t// is not closed.\n\t\t\tif offer.Status != mint.OfStClosed && b.Cmp(new(big.Int)) > 0 {\n\t\t\t\toffer.Status = mint.OfStActive\n\t\t\t}\n\n\t\t\terr = offer.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\terr = async.Queue(ctx,\n\t\t\t\ttask.NewPropagateOffer(ctx, time.Now(), offer.ID()))\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tcr.Status = mint.TxStCanceled\n\t\t\terr = cr.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (s *OrderService) CancelOrder(oc *types.OrderCancel) error {\n\tvar err error\n\tvar o *types.Order\n\n\to, err = s.orderDao.GetByHash(oc.OrderHash)\n\tif err != nil || o == nil {\n\t\treturn errors.New(\"No order with corresponding hash\")\n\t}\n\tif o.Status == types.ORDER_FILLED || o.Status == types.ERROR_STATUS || o.Status == types.ORDER_CANCELLED {\n\t\treturn fmt.Errorf(\"Cannot cancel order. Status is %v\", o.Status)\n\t}\n\n\to.Nonce = oc.Nonce\n\to.Signature = oc.Signature\n\to.OrderID = oc.OrderID\n\to.Status = oc.Status\n\to.UserAddress = oc.UserAddress\n\to.ExchangeAddress = oc.ExchangeAddress\n\n\terr = s.broker.PublishCancelOrderMessage(o)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func ExampleMarketplaceAgreementsClient_Cancel() {\n\tcred, err := azidentity.NewDefaultAzureCredential(nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to obtain a credential: %v\", err)\n\t}\n\tctx := context.Background()\n\tclient, err := armmarketplaceordering.NewMarketplaceAgreementsClient(\"subid\", cred, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to create client: %v\", err)\n\t}\n\tres, err := client.Cancel(ctx,\n\t\t\"pubid\",\n\t\t\"offid\",\n\t\t\"planid\",\n\t\tnil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to finish the request: %v\", err)\n\t}\n\t// TODO: use response item\n\t_ = res\n}",
"func (by *Bybit) CancelUSDCOrder(ctx context.Context, symbol currency.Pair, orderFilter, orderID, orderLinkID string) (string, error) {\n\tresp := struct {\n\t\tResult struct {\n\t\t\tOrderID string `json:\"orderId\"`\n\t\t} `json:\"result\"`\n\t\tUSDCError\n\t}{}\n\n\treq := make(map[string]interface{})\n\tif symbol.IsEmpty() {\n\t\treturn resp.Result.OrderID, errSymbolMissing\n\t}\n\tsymbolValue, err := by.FormatSymbol(symbol, asset.USDCMarginedFutures)\n\tif err != nil {\n\t\treturn resp.Result.OrderID, err\n\t}\n\treq[\"symbol\"] = symbolValue\n\n\tif orderFilter == \"\" {\n\t\treturn resp.Result.OrderID, errInvalidOrderFilter\n\t}\n\treq[\"orderFilter\"] = orderFilter\n\n\tif orderID == \"\" && orderLinkID == \"\" {\n\t\treturn resp.Result.OrderID, errOrderOrOrderLinkIDMissing\n\t}\n\n\tif orderID != \"\" {\n\t\treq[\"orderId\"] = orderID\n\t}\n\n\tif orderLinkID != \"\" {\n\t\treq[\"orderLinkId\"] = orderLinkID\n\t}\n\treturn resp.Result.OrderID, by.SendUSDCAuthHTTPRequest(ctx, exchange.RestUSDCMargined, http.MethodPost, usdcfuturesCancelOrder, req, &resp, usdcCancelOrderRate)\n}",
"func TestWsCancelOrder(t *testing.T) {\n\tsetupWsAuth(t)\n\tif !canManipulateRealOrders {\n\t\tt.Skip(\"canManipulateRealOrders false, skipping test\")\n\t}\n\t_, err := h.wsCancelOrder(\"ImNotARealOrderID\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n}",
"func (c *TradeClient) CancelOrder(contractCode string, orderId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif orderId <= 0 {\n\t\treturn errors.New(\"orderId must > 0\")\n\t}\n\n\tqueries := map[string]string{\n\t\t\"contractCode\": contractCode,\n\t\t\"orderId\": strconv.FormatInt(orderId, 10),\n\t}\n\n\treturn c.requester.Get(\"/api/v1/cancel_order\", queries, true, coremodel.NewBoolResponse())\n}",
"func (a *ModificationGateway) Cancel(req *Cancel) (*CancelResponse, error) {\n\tresp, err := a.execute(PaymentService, cancelType, req)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn resp.cancel()\n}",
"func (h *HUOBI) CancelSwapTriggerOrder(ctx context.Context, contractCode currency.Pair, orderID string) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treq[\"order_id\"] = orderID\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelTriggerOrder, nil, req, &resp)\n}",
"func (k *Kraken) CancelOrder(order *exchange.OrderCancellation) error {\n\t_, err := k.CancelExistingOrder(order.OrderID)\n\n\treturn err\n}",
"func (client *Client) CancelOrder(id int64) (bool, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tOrderID int64 `json:\"order_id\"`\n\t}{\n\t\t\"/v1/order/cancel\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tid,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, response.Message)\n\t}\n\n\treturn true, nil\n}",
"func (ob *OrderBook) CancelOrder(orderID string) *Order {\n\te, ok := ob.orders[orderID]\n\tif !ok {\n\t\treturn nil\n\t}\n\n\tdelete(ob.orders, orderID)\n\n\tif e.Value.(*Order).Side() == Buy {\n\t\treturn ob.bids.Remove(e)\n\t}\n\n\treturn ob.asks.Remove(e)\n}",
"func (c *CoinbasePro) CancelBatchOrders(_ context.Context, _ []order.Cancel) (*order.CancelBatchResponse, error) {\n\treturn nil, common.ErrFunctionNotSupported\n}",
"func (o *OfflineWebCartPaymentGateway) CancelOrderPayment(ctx context.Context, cartPayment *placeorder.Payment) error {\n\treturn nil\n}",
"func (t *TradePool) cancelProcess(order *comm.Order) (bool, comm.Order) {\n\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"%s-%s TradePool CancelProcess Order ID(%d), Time(%d)\\n\", t.Symbol, t.MarketType.String(), order.ID, order.Timestamp)\n\tif order == nil {\n\t\tfmt.Printf(\"%s-%s Cancel input order==nil error!\\n\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n\tif order.Symbol != t.Symbol {\n\t\tfmt.Printf(\"Market(%s-%s) cancelProcess illegal order with symbol(%s) to %s Match Engine\", t.Symbol, t.MarketType.String(), order.Symbol, t.Symbol)\n\t\treturn false, comm.Order{}\n\t}\n\n\tif order.AorB == comm.TradeType_BID {\n\t\tt.bidPoolRWMutex.Lock(\"CancelProcess BID\")\n\t\tdefer t.bidPoolRWMutex.Unlock(\"CancelProcess BID\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.bidPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmBidOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess bid order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\tt.askPoolRWMutex.Lock(\"CancelProcess ASK\")\n\t\tdefer t.askPoolRWMutex.Unlock(\"CancelProcess ASK\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.askPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmAskOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess ask order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else {\n\t\tfmt.Printf(\"%s-%s CancelProcess illegal order type!\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n}",
"func (c *Coinbene) CancelSpotOrder(orderID string) (string, error) {\n\tresp := struct {\n\t\tData string `json:\"data\"`\n\t}{}\n\treq := make(map[string]interface{})\n\treq[\"orderId\"] = orderID\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\tfalse,\n\t\treq,\n\t\t&resp,\n\t\tspotCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Data, nil\n}",
"func (c *TradeClient) CancelConditionOrder(contractCode string, taskId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif taskId <= 0 {\n\t\treturn errors.New(\"taskId must > 0\")\n\t}\n\n\tparam := &coremodel.ApiRequestModel{\n\t\tParam: &struct {\n\t\t\tContractCode string `json:\"contractCode\"`\n\t\t\tTaskId int64 `json:\"taskId\"`\n\t\t}{contractCode, taskId},\n\t}\n\tbody, err := json.Marshal(param)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn c.requester.Post(\"/api/v1/cancel_condition_order\", body, nil, true, coremodel.NewBoolResponse())\n}",
"func (h *HUOBIHADAX) CancelExistingOrder(orderID int64) (int64, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrderID int64 `json:\"data,string\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodPost, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn 0, errors.New(result.ErrorMessage)\n\t}\n\treturn result.OrderID, err\n}",
"func (owner *WalletOwnerAPI) CancelTx(txID *uint32, txSlateID *uuid.UUID) error {\n\tparams := struct {\n\t\tToken string `json:\"token\"`\n\t\tTxID *uint32 `json:\"tx_id\"`\n\t\tTxSlateID *uuid.UUID `json:\"tx_slate_id\"`\n\t}{\n\t\tToken: owner.token,\n\t\tTxID: txID,\n\t\tTxSlateID: txSlateID,\n\t}\n\tparamsBytes, err := json.Marshal(params)\n\tif err != nil {\n\t\treturn err\n\t}\n\tenvl, err := owner.client.EncryptedRequest(\"cancel_tx\", paramsBytes, owner.sharedSecret)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif envl == nil {\n\t\treturn errors.New(\"WalletOwnerAPI: Empty RPC Response from grin-wallet\")\n\t}\n\tif envl.Error != nil {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"code\": envl.Error.Code,\n\t\t\t\"message\": envl.Error.Message,\n\t\t}).Error(\"WalletOwnerAPI: RPC Error during CancelTx\")\n\t\treturn errors.New(string(envl.Error.Code) + \"\" + envl.Error.Message)\n\t}\n\tvar result Result\n\tif err = json.Unmarshal(envl.Result, &result); err != nil {\n\t\treturn err\n\t}\n\tif result.Err != nil {\n\t\treturn errors.New(string(result.Err))\n\t}\n\treturn nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Guest Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n}",
"func (h *HUOBIHADAX) CancelOrderBatch(orderIDs []int64) (CancelOrderBatch, error) {\n\ttype response struct {\n\t\tStatus string `json:\"status\"`\n\t\tData CancelOrderBatch `json:\"data\"`\n\t}\n\n\t// Used to send param formatting\n\ttype postBody struct {\n\t\tList []int64 `json:\"order-ids\"`\n\t}\n\n\t// Format to JSON\n\tbytesParams, _ := common.JSONEncode(&postBody{List: orderIDs})\n\tpostBodyParams := string(bytesParams)\n\n\tvar result response\n\terr := h.SendAuthenticatedHTTPPostRequest(http.MethodPost, huobihadaxOrderCancelBatch, postBodyParams, &result)\n\n\tif len(result.Data.Failed) != 0 {\n\t\terrJSON, _ := common.JSONEncode(result.Data.Failed)\n\t\treturn CancelOrderBatch{}, errors.New(string(errJSON))\n\t}\n\treturn result.Data, err\n}",
"func (_IOrakuruCore *IOrakuruCoreTransactor) CancelRequest(opts *bind.TransactOpts, _requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.contract.Transact(opts, \"cancelRequest\", _requestId)\n}",
"func (c *Coinbene) CancelSpotOrders(orderIDs []string) ([]OrderCancellationResponse, error) {\n\treq := make(map[string]interface{})\n\treq[\"orderIds\"] = orderIDs\n\ttype resp struct {\n\t\tData []OrderCancellationResponse `json:\"data\"`\n\t}\n\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneBatchCancel\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneBatchCancel,\n\t\tfalse,\n\t\treq,\n\t\t&r,\n\t\tspotCancelOrdersBatch)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn r.Data, nil\n}",
"func (_IOrakuruCore *IOrakuruCoreTransactorSession) CancelRequest(_requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.Contract.CancelRequest(&_IOrakuruCore.TransactOpts, _requestId)\n}",
"func CancelSalesOrder(so *model.SalesOrder, user *model.User) (e error) {\n\to := orm.NewOrm()\n\tso.IsDeleted = 0\n\tso.DocumentStatus = \"approved_cancel\"\n\tso.Customer.TotalSpend = so.Customer.TotalSpend - so.TotalCharge\n\tif e = calculateStockCommited(so); e != nil {\n\t\treturn e\n\t}\n\tso.ApproveCancelAt = time.Now()\n\tso.ApproveCancelBy = user\n\n\tvar si []*model.SalesInvoice\n\n\tif so.InvoiceStatus != \"new\" {\n\t\tif o.QueryTable(new(model.SalesInvoice)).Filter(\"sales_order_id\", so.ID).All(&si); e == nil {\n\t\t\tfor _, six := range si {\n\t\t\t\t//update is delete pada seluruh sales invoice yg memiliki referensi SO, menjadi is_delete = 1\n\t\t\t\tsix.IsDeleted = 1\n\t\t\t\tsix.Save(\"IsDeleted\")\n\t\t\t\t//check document status\n\t\t\t\tif six.DocumentStatus != \"new\" {\n\n\t\t\t\t\t// update total debt dengan total debt lama dikurang dengan total charge SO, pd partnership tersebut\n\t\t\t\t\tso.Customer.TotalDebt = so.Customer.TotalDebt - (so.TotalCharge - so.TotalPaid)\n\t\t\t\t\tif e = so.Customer.Save(\"total_debt\"); e == nil {\n\t\t\t\t\t}\n\n\t\t\t\t\t// cek is_bundle\n\t\t\t\t\tif six.IsBundled != 1 {\n\n\t\t\t\t\t\t//update is delete pada seluruh finance revenue yg memiliki referensi sales invoice, menjadi is_delete = 1\n\t\t\t\t\t\tvar fr []*model.FinanceRevenue\n\t\t\t\t\t\tif o.QueryTable(new(model.FinanceRevenue)).Filter(\"ref_id\", six.ID).Filter(\"ref_type\", \"sales_invoice\").All(&fr); e == nil {\n\t\t\t\t\t\t\tfor _, frx := range fr {\n\t\t\t\t\t\t\t\tfrx.IsDeleted = 1\n\t\t\t\t\t\t\t\tfrx.Save(\"IsDeleted\")\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// jika is bundled = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif e = checkInvoiceReceiptItem(six); e != nil {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// cek fulfillment status\n\tvar fulfillment []*model.WorkorderFulfillment\n\tif so.FulfillmentStatus != \"new\" {\n\t\t// ambil workorder_fulfillment berdasarkan parameter sales order diatas\n\t\tif fulfillment, e = getWorkorderFulfillments(\"sales_order_id\", so.ID); e == nil {\n\t\t\tfor _, ffx := range fulfillment {\n\t\t\t\t// cek dokumen status work order fulfillment finished\n\t\t\t\tif ffx.DocumentStatus == \"finished\" {\n\t\t\t\t\tif e = inventory.CancelStock(uint64(ffx.ID), \"workorder_fulfillment\"); e != nil {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tffx.IsDeleted = 1\n\t\t\t\tif e = ffx.Save(\"IsDeleted\"); e != nil {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t//if e = calculateStockAvailable(so); e != nil {\n\t\t//\treturn e\n\t\t//}\n\t}\n\n\tif e = so.Customer.Save(\"total_spend\"); e == nil {\n\t\tif e = so.Save(\"cancelled_note\", \"is_deleted\", \"document_status\", \"approve_cancel_at\", \"approve_cancel_by\"); e != nil {\n\t\t\treturn e\n\t\t}\n\t}\n\n\treturn\n}",
"func (_IOrakuruCore *IOrakuruCoreSession) CancelRequest(_requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.Contract.CancelRequest(&_IOrakuruCore.TransactOpts, _requestId)\n}",
"func (e *Huobi) CancelOrder(order Order) bool {\n\tresult, err := services.SubmitCancel(order.ID)\n\tif err != nil {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", err)\n\t\treturn false\n\t}\n\tif result.Status != \"ok\" {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", result.ErrMsg)\n\t\treturn false\n\t}\n\te.logger.Log(constant.CANCEL, order.StockType, order.Price, order.Amount-order.DealAmount, order)\n\treturn true\n}",
"func New(crossid field.CrossIDField, origcrossid field.OrigCrossIDField, crosstype field.CrossTypeField, crossprioritization field.CrossPrioritizationField, handlinst field.HandlInstField, transacttime field.TransactTimeField, ordtype field.OrdTypeField) (m CrossOrderCancelReplaceRequest) {\n\tm.Message = quickfix.NewMessage()\n\tm.Header = fix43.NewHeader(&m.Message.Header)\n\tm.Body = &m.Message.Body\n\tm.Trailer.Trailer = &m.Message.Trailer\n\n\tm.Header.Set(field.NewMsgType(\"t\"))\n\tm.Set(crossid)\n\tm.Set(origcrossid)\n\tm.Set(crosstype)\n\tm.Set(crossprioritization)\n\tm.Set(handlinst)\n\tm.Set(transacttime)\n\tm.Set(ordtype)\n\n\treturn\n}",
"func (order *Order) doCancel(success bool, log string) error {\n\tcancelLog := log\n\n\t// Try to cancel the shipment, if necessary\n\tshipment, err := catalogApi.GetShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && shipment.Status != catalogApi.ShipmentCancelled {\n\t\terr := catalogApi.CancelShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling shipment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nShipment cancelled\"\n\t\t}\n\t} else {\n\t\tcancelLog += \"\\nShipment \" + string(shipment.Status)\n\t}\n\n\t// Try to cancel the payment, if necessary\n\tpayment, err := paymentApi.FetchPayment(order.shop.paymentEndpoint, order.PaymentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && payment.Status != paymentApi.PaymentFailed {\n\t\terr := paymentApi.CancelPayment(order.shop.paymentEndpoint, order.PaymentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling payment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nPayment cancelled\"\n\t\t}\n\t}\n\tcancelLog += \"\\nPayment was \" + payment.Status\n\tif payment.Error != \"\" {\n\t\tcancelLog += \", error: \" + payment.Error\n\t}\n\n\t// Remove the order from the list of open orders & store cancel log\n\treturn order.shop.redis.Transaction(func(redis services.Redis) error {\n\t\torder.Status = cancelLog\n\t\terr := redis.Cmd(\"srem\", open_orders_key, order.id).Err()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn order.SaveIn(redis)\n\t})\n}",
"func (h *HUOBI) CancelOrderBatch(ctx context.Context, orderIDs, clientOrderIDs []string) (*CancelOrderBatch, error) {\n\tresp := struct {\n\t\tResponse\n\t\tData *CancelOrderBatch `json:\"data\"`\n\t}{}\n\tdata := struct {\n\t\tClientOrderIDs []string `json:\"client-order-ids\"`\n\t\tOrderIDs []string `json:\"order-ids\"`\n\t}{\n\t\tClientOrderIDs: clientOrderIDs,\n\t\tOrderIDs: orderIDs,\n\t}\n\treturn resp.Data, h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, huobiOrderCancelBatch, nil, data, &resp, false)\n}",
"func (s *Service) Cancel(userId string, tans ...string) error {\n\tif len(tans) > 0 {\n\t\tfor _, tan := range tans {\n\t\t\tvar found *model.Tan\n\t\t\tif s.Verify(userId, tan, &found) {\n\t\t\t\terr := s.repository.Delete(found)\n\t\t\t\tif nil != err {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tshowNumber := int(float64(len(tan)) * .4)\n\t\t\t\tmaskedTan := tan[:showNumber] + strings.Repeat(\"*\", len(tan)-showNumber)\n\t\t\t\tlog.Printf(\"[warning] tan service refused to cancel given tan '%s' because the tan has failed verification.\", maskedTan)\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t}\n\treturn s.repository.DeleteByUserId(userId)\n}",
"func (k *xyzProvider) Cancel(context.Context, *pbempty.Empty) (*pbempty.Empty, error) {\n\t// TODO\n\treturn &pbempty.Empty{}, nil\n}",
"func (h *HUOBI) CancelExistingOrder(ctx context.Context, orderID int64) (int64, error) {\n\tresp := struct {\n\t\tOrderID int64 `json:\"data,string\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.OrderID, err\n}",
"func (_e *MockCompletableFuture_Expecter[T]) Cancel() *MockCompletableFuture_Cancel_Call[T] {\n\treturn &MockCompletableFuture_Cancel_Call[T]{Call: _e.mock.On(\"Cancel\")}\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Cancel(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"cancel\", hash)\n}",
"func Cancel(proposer, canceler eos.AccountName, proposalName eos.Name) {\n\tapi := getAPI()\n\n\tpushEOSCActions(api,\n\t\tmsig.NewCancel(proposer, proposalName, canceler),\n\t)\n}",
"func CancelTx(txID *uint32, txSlateID *uuid.UUID) error {\n\tclient := RPCHTTPClient{URL: url}\n\tparams := []interface{}{txID, txSlateID}\n\tparamsBytes, err := json.Marshal(params)\n\tif err != nil {\n\t\treturn err\n\t}\n\tenvl, err := client.Request(\"cancel_tx\", paramsBytes)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif envl == nil {\n\t\treturn errors.New(\"OwnerAPI: Empty RPC Response from grin-wallet\")\n\t}\n\tif envl.Error != nil {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"code\": envl.Error.Code,\n\t\t\t\"message\": envl.Error.Message,\n\t\t}).Error(\"OwnerAPI: RPC Error during CancelTx\")\n\t\treturn errors.New(string(envl.Error.Code) + \"\" + envl.Error.Message)\n\t}\n\tvar result Result\n\tif err = json.Unmarshal(envl.Result, &result); err != nil {\n\t\treturn err\n\t}\n\tif result.Err != nil {\n\t\treturn errors.New(string(result.Err))\n\t}\n\treturn nil\n}",
"func (o *OKEX) CancelBatchOrders(_ []order.Cancel) (order.CancelBatchResponse, error) {\n\treturn order.CancelBatchResponse{}, common.ErrNotYetImplemented\n}",
"func (s *OrderService) CancelAllOrder(a common.Address) error {\n\torders, err := s.orderDao.GetOpenOrdersByUserAddress(a)\n\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\tif len(orders) == 0 {\n\t\treturn nil\n\t}\n\n\tfor _, o := range orders {\n\t\terr = s.broker.PublishCancelOrderMessage(o)\n\n\t\tif err != nil {\n\t\t\tlogger.Error(err)\n\t\t\tcontinue\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (e *orderEndpoint) handleCancelOrder(ev *types.WebsocketEvent, c *ws.Client) {\n\tbytes, err := json.Marshal(ev.Payload)\n\toc := &types.OrderCancel{}\n\n\terr = oc.UnmarshalJSON(bytes)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\taddr, err := oc.GetSenderAddress()\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\tws.RegisterOrderConnection(addr, c)\n\n\torderErr := e.orderService.CancelOrder(oc)\n\tif orderErr != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(orderErr, oc.OrderHash)\n\t\treturn\n\t}\n}",
"func (p *BoteaterServiceClient) CancelGroupInvitation(ctx context.Context, reqSeq int32, groupId string, contactIds []string) (err error) {\r\n var _args79 BoteaterServiceCancelGroupInvitationArgs\r\n _args79.ReqSeq = reqSeq\r\n _args79.GroupId = groupId\r\n _args79.ContactIds = contactIds\r\n var _result80 BoteaterServiceCancelGroupInvitationResult\r\n if err = p.Client_().Call(ctx, \"cancelGroupInvitation\", &_args79, &_result80); err != nil {\r\n return\r\n }\r\n switch {\r\n case _result80.E!= nil:\r\n return _result80.E\r\n }\r\n\r\n return nil\r\n}",
"func (h *HUOBI) CancelAllSwapOrders(ctx context.Context, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelAllOrders, nil, req, &resp)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (r *cancelReq) Transform(m *model.SalesOrder) {\n\t// ubah isi model sales order\n\tm.CancelledNote = r.CancelledNote\n\tm.DocumentStatus = \"requested_cancel\"\n\tm.RequestCancelAt = time.Now()\n\tm.RequestCancelBy = r.Session.User\n}",
"func (a *OrdersApiService) V1OrdersCancelPost(ctx _context.Context, orderCancelSingleRequest OrderCancelSingleRequest) (OrderExecutionReport, *_nethttp.Response, error) {\n\tvar (\n\t\tlocalVarHTTPMethod = _nethttp.MethodPost\n\t\tlocalVarPostBody interface{}\n\t\tlocalVarFormFileName string\n\t\tlocalVarFileName string\n\t\tlocalVarFileBytes []byte\n\t\tlocalVarReturnValue OrderExecutionReport\n\t)\n\n\t// create path and map variables\n\tlocalVarPath := a.client.cfg.BasePath + \"/v1/orders/cancel\"\n\tlocalVarHeaderParams := make(map[string]string)\n\tlocalVarQueryParams := _neturl.Values{}\n\tlocalVarFormParams := _neturl.Values{}\n\n\t// to determine the Content-Type header\n\tlocalVarHTTPContentTypes := []string{\"application/json\"}\n\n\t// set Content-Type header\n\tlocalVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)\n\tif localVarHTTPContentType != \"\" {\n\t\tlocalVarHeaderParams[\"Content-Type\"] = localVarHTTPContentType\n\t}\n\n\t// to determine the Accept header\n\tlocalVarHTTPHeaderAccepts := []string{\"application/json\", \"appliction/json\"}\n\n\t// set Accept header\n\tlocalVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)\n\tif localVarHTTPHeaderAccept != \"\" {\n\t\tlocalVarHeaderParams[\"Accept\"] = localVarHTTPHeaderAccept\n\t}\n\t// body params\n\tlocalVarPostBody = &orderCancelSingleRequest\n\tr, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)\n\tif err != nil {\n\t\treturn localVarReturnValue, nil, err\n\t}\n\n\tlocalVarHTTPResponse, err := a.client.callAPI(r)\n\tif err != nil || localVarHTTPResponse == nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tlocalVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)\n\tlocalVarHTTPResponse.Body.Close()\n\tif err != nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tif localVarHTTPResponse.StatusCode >= 300 {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: localVarHTTPResponse.Status,\n\t\t}\n\t\tif localVarHTTPResponse.StatusCode == 400 {\n\t\t\tvar v ValidationError\n\t\t\terr = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\t\t\tif err != nil {\n\t\t\t\tnewErr.error = err.Error()\n\t\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t\t}\n\t\t\tnewErr.model = v\n\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t}\n\t\tif localVarHTTPResponse.StatusCode == 490 {\n\t\t\tvar v Message\n\t\t\terr = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\t\t\tif err != nil {\n\t\t\t\tnewErr.error = err.Error()\n\t\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t\t}\n\t\t\tnewErr.model = v\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\terr = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\tif err != nil {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: err.Error(),\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\treturn localVarReturnValue, localVarHTTPResponse, nil\n}",
"func (h *HitBTC) CancelExistingOrder(ctx context.Context, orderID int64) (bool, error) {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tapiOrder+\"/\"+strconv.FormatInt(orderID, 10),\n\t\tvalues,\n\t\ttradingRequests,\n\t\t&result)\n\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn false, errors.New(result.Error)\n\t}\n\n\treturn true, nil\n}",
"func (o *Okcoin) WsCancelMultipleOrders(args []CancelTradeOrderRequest) ([]TradeOrderResponse, error) {\n\tvar err error\n\tif len(args) == 0 {\n\t\treturn nil, fmt.Errorf(\"%w, 0 length place order requests\", errNilArgument)\n\t}\n\tfor x := range args {\n\t\terr = args[x].validate()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\tvar resp []TradeOrderResponse\n\treturn resp, o.SendWebsocketRequest(\"batch-cancel-orders\", args, &resp, true)\n}",
"func (r *rpcClient) CancelScheduled(ctx context.Context, seq ...int64) error {\n\tctx, span := startConsumerSpanFromContext(ctx, \"sb.rpcClient.CancelScheduled\")\n\tdefer span.End()\n\n\tif err := r.ensureConn(ctx); err != nil {\n\t\ttab.For(ctx).Error(err)\n\t\treturn err\n\t}\n\n\tr.clientMu.RLock()\n\tdefer r.clientMu.RUnlock()\n\n\tmsg := &amqp.Message{\n\t\tApplicationProperties: map[string]interface{}{\n\t\t\toperationFieldName: cancelScheduledOperationID,\n\t\t},\n\t\tValue: map[string]interface{}{\n\t\t\t\"sequence-numbers\": seq,\n\t\t},\n\t}\n\n\tif deadline, ok := ctx.Deadline(); ok {\n\t\tmsg.ApplicationProperties[serverTimeoutFieldName] = uint(time.Until(deadline) / time.Millisecond)\n\t}\n\n\tlink, err := rpc.NewLink(r.client, r.ec.ManagementPath())\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tresp, err := link.RetryableRPC(ctx, 5, 5*time.Second, msg)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif resp.Code != 200 {\n\t\treturn ErrAMQP(*resp)\n\t}\n\n\treturn nil\n}",
"func (b *Bitmex) CancelAllOrders(ctx context.Context, _ *order.Cancel) (order.CancelAllResponse, error) {\n\tcancelAllOrdersResponse := order.CancelAllResponse{\n\t\tStatus: make(map[string]string),\n\t}\n\tvar emptyParams OrderCancelAllParams\n\torders, err := b.CancelAllExistingOrders(ctx, emptyParams)\n\tif err != nil {\n\t\treturn cancelAllOrdersResponse, err\n\t}\n\n\tfor i := range orders {\n\t\tif orders[i].OrdRejReason != \"\" {\n\t\t\tcancelAllOrdersResponse.Status[orders[i].OrderID] = orders[i].OrdRejReason\n\t\t}\n\t}\n\n\treturn cancelAllOrdersResponse, nil\n}",
"func (s *Socket) sendOrderCanceled(o *Order) error {\n\tfmt.Printf(\"Send order canceled message\")\n\tp := &OrderPayload{Order: o}\n\tm := &Message{MessageType: ORDER_CANCELED, Payload: p}\n\tif err := s.connection.WriteJSON(&m); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (b *Bitmex) CancelBatchOrders(ctx context.Context, o []order.Cancel) (*order.CancelBatchResponse, error) {\n\tif len(o) == 0 {\n\t\treturn nil, order.ErrCancelOrderIsNil\n\t}\n\tvar orderIDs, clientIDs []string\n\tfor i := range o {\n\t\tswitch {\n\t\tcase o[i].ClientOrderID != \"\":\n\t\t\tclientIDs = append(clientIDs, o[i].ClientID)\n\t\tcase o[i].OrderID != \"\":\n\t\t\torderIDs = append(orderIDs, o[i].OrderID)\n\t\tdefault:\n\t\t\treturn nil, order.ErrOrderIDNotSet\n\t\t}\n\t}\n\tjoinedOrderIDs := strings.Join(orderIDs, \",\")\n\tjoinedClientIDs := strings.Join(clientIDs, \",\")\n\tparams := &OrderCancelParams{\n\t\tOrderID: joinedOrderIDs,\n\t\tClientOrderID: joinedClientIDs,\n\t}\n\tresp := &order.CancelBatchResponse{\n\t\tStatus: make(map[string]string),\n\t}\n\tcancelResponse, err := b.CancelOrders(ctx, params)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor i := range cancelResponse {\n\t\tresp.Status[cancelResponse[i].OrderID] = cancelResponse[i].OrdStatus\n\t}\n\treturn resp, nil\n}",
"func (r *PurchasesService) Cancel(packageName string, subscriptionId string, token string) *PurchasesCancelCall {\n\treturn &PurchasesCancelCall{\n\t\ts: r.s,\n\t\tpackageName: packageName,\n\t\tsubscriptionId: subscriptionId,\n\t\ttoken: token,\n\t\tcaller_: googleapi.JSONCall{},\n\t\tparams_: make(map[string][]string),\n\t\tpathTemplate_: \"{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel\",\n\t\tcontext_: googleapi.NoContext,\n\t}\n}",
"func (h *Hbdm) CancelAllOrders(symbol string) (resp *CancelAllOrdersResponse, err error) {\n\tpayload := make(map[string]interface{}, 1)\n\tpayload[\"symbol\"] = symbol\n\n\tr, err := h.client.do(\"POST\", \"contract_cancelall\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (h *Handler) cancel(c echo.Context) (e error) {\n\tctx := c.(*cuxs.Context)\n\tvar r cancelRequest\n\tvar id int64\n\tvar sr *model.SalesReturn\n\n\tif id, e = common.Decrypt(ctx.Param(\"id\")); e == nil {\n\t\tif sr, e = ShowSalesReturn(\"id\", id); e == nil {\n\t\t\tr.SR = sr\n\t\t\tif e = ctx.Bind(&r); e == nil {\n\t\t\t\tif e = CancelSalesReturn(sr); e == nil {\n\t\t\t\t\tif e = UpdateExpense(sr); e == nil {\n\t\t\t\t\t\tctx.Data(sr)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\te = echo.ErrNotFound\n\t\t}\n\t}\n\n\treturn ctx.Serve(e)\n}",
"func (r *mutationResolver) StorefrontAirswapCancelled(ctx context.Context) (string, error) {\n\t// token := auth.ForContext(ctx)\n\t// if token == nil {\n\t// \treturn \"\", ErrAccessDenied\n\t// }\n\n\t// err := r.storefrontService.PurchaseTransactionCancel(token.Sub)\n\t// if err != nil {\n\t// \treturn ResponseError, err\n\t// }\n\n\t// return ResponseOK, nil\n\treturn ResponseNotImplemented, nil\n}",
"func PerformCancel(instance *adyen.Adyen, w http.ResponseWriter, r *http.Request) {\n\tr.ParseForm()\n\n\treq := &adyen.Cancel{\n\t\tReference: r.Form.Get(\"reference\"), // order number or some business reference\n\t\tMerchantAccount: instance.MerchantAccount, // Merchant Account setting\n\t\tOriginalReference: r.Form.Get(\"original-reference\"), // PSP reference that came as authorization result\n\t}\n\n\tg, err := instance.Modification().Cancel(req)\n\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tresponse, err := json.Marshal(g)\n\n\tw.Header().Set(\"Content-Type\", \"application/json\")\n\tw.Write(response)\n}",
"func Cancel(session *discordgo.Session, message *discordgo.MessageCreate, env *botenv.BotEnv) {\n\t// Parse out the index rune.\n\tf := (strings.Fields(message.Content))\n\tid := f[len(f)-1]\n\ti, errConv := strconv.ParseInt(id, 16, 32)\n\tif errConv != nil {\n\t\treturn\n\t}\n\tr := rune(i)\n\t// Check the rune.\n\tif r < lodb.IDMIN || r > lodb.IDMAX*lodb.TICKPERIOD {\n\t\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"The ID %s is not within an acceptable range.\", string(r)))\n\t\treturn\n\t}\n\t// Delete.\n\terr := env.Repo.Delete(message.Author.ID, r)\n\tif err != nil {\n\t\tenv.Log.Error(\n\t\t\t\"Error deleting user's query.\",\n\t\t\tzap.Error(err))\n\t\tsession.ChannelMessageSend(message.ChannelID, \"The was a problem trying to delete that query.\")\n\t\treturn\n\t}\n\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"Query %X was canceled.\", r))\n}",
"func (p *Poloniex) CancelMultipleOrdersByIDs(ctx context.Context, orderIDs, clientOrderIDs []string) ([]CancelOrdersResponse, error) {\n\tvalues := url.Values{}\n\tif len(orderIDs) > 0 {\n\t\tvalues.Set(\"orderIds\", strings.Join(orderIDs, \",\"))\n\t}\n\tif len(clientOrderIDs) > 0 {\n\t\tvalues.Set(\"clientOrderIds\", strings.Join(clientOrderIDs, \",\"))\n\t}\n\tvar result []CancelOrdersResponse\n\treturn result, p.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tpoloniexCancelByIDs,\n\t\tvalues,\n\t\t&result)\n}",
"func (p *Poloniex) CancelExistingOrder(ctx context.Context, orderID int64) error {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\tvalues.Set(\"orderNumber\", strconv.FormatInt(orderID, 10))\n\n\terr := p.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, poloniexOrderCancel, values, &result)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn errors.New(result.Error)\n\t}\n\n\treturn nil\n}",
"func (r *Response) Cancel(ctx context.Context) (*Response, error) {\n\tif r.CancelResponse == nil || len(r.CancelResponse.FormValues) == 0 {\n\t\treturn nil, errors.New(\"valid cancel is missing from idx response\")\n\t}\n\tm := make(map[string]interface{})\n\tfor i := range r.CancelResponse.FormValues {\n\t\tm[r.CancelResponse.FormValues[i].Name] = r.CancelResponse.FormValues[i].Value\n\t}\n\tbody, err := json.Marshal(m)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to marshal cancel request: %w\", err)\n\t}\n\treq, err := http.NewRequestWithContext(ctx, r.CancelResponse.Method, r.CancelResponse.Href, bytes.NewReader(body))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create cancel request: %w\", err)\n\t}\n\treq.Header.Set(\"Accepts\", r.CancelResponse.Accepts)\n\treq.Header.Set(\"Content-Type\", r.CancelResponse.Accepts)\n\toktahttp.WithOktaUserAgent(req, packageVersion)\n\tresp, err := idx.httpClient.Do(req)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"http call has failed: %w\", err)\n\t}\n\tvar idxResponse Response\n\terr = unmarshalResponse(resp, &idxResponse)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &idxResponse, nil\n}",
"func (book *OrderBook) cancelBuyOrder(orderID string) error {\n\tfor i, o := range book.BuyOrders {\n\t\tif o.ID == orderID {\n\t\t\t// TODO update status of persisted order to \"cancelled\"\n\t\t\t// need to do this after the orders are persisted\n\t\t\t// persisted orders will eventually load at startup using\n\t\t\t// status == pending\n\t\t\tbook.removeBuyOrder(i)\n\t\t\treturn nil\n\t\t}\n\t}\n\treturn fmt.Errorf(\"orderID: %s not found\", orderID)\n}",
"func (req *DronaRequest) Cancel() error {\n\tif req.cancelFunc != nil {\n\t\treq.cancelFunc()\n\t}\n\treturn nil\n}",
"func (r *OperationsService) Cancel(name string) *OperationsCancelCall {\n\tc := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.name = name\n\treturn c\n}",
"func (h *HUOBI) CancelAllSwapTriggerOrders(ctx context.Context, contractCode currency.Pair) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\tcodeValue, err := h.FormatSymbol(contractCode, asset.CoinMarginedFutures)\n\tif err != nil {\n\t\treturn resp, err\n\t}\n\treq[\"contract_code\"] = codeValue\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelAllTriggerOrders, nil, req, &resp)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall {\n\tc := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.name = name\n\tc.canceloperationrequest = canceloperationrequest\n\treturn c\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (s *Server) CtxCancel() {\n\tif s.ctxCancel != nil {\n\t\t(*s.ctxCancel)()\n\t}\n}",
"func (client RoleAssignmentScheduleRequestsClient) Cancel(ctx context.Context, scope string, roleAssignmentScheduleRequestName string) (result autorest.Response, err error) {\n\tif tracing.IsEnabled() {\n\t\tctx = tracing.StartSpan(ctx, fqdn+\"/RoleAssignmentScheduleRequestsClient.Cancel\")\n\t\tdefer func() {\n\t\t\tsc := -1\n\t\t\tif result.Response != nil {\n\t\t\t\tsc = result.Response.StatusCode\n\t\t\t}\n\t\t\ttracing.EndSpan(ctx, sc, err)\n\t\t}()\n\t}\n\treq, err := client.CancelPreparer(ctx, scope, roleAssignmentScheduleRequestName)\n\tif err != nil {\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", nil, \"Failure preparing request\")\n\t\treturn\n\t}\n\n\tresp, err := client.CancelSender(req)\n\tif err != nil {\n\t\tresult.Response = resp\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", resp, \"Failure sending request\")\n\t\treturn\n\t}\n\n\tresult, err = client.CancelResponder(resp)\n\tif err != nil {\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", resp, \"Failure responding to request\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (r *Response) Cancel() error {\n\t\n}"
] | [
"0.81442755",
"0.7951003",
"0.731694",
"0.73056954",
"0.7303768",
"0.701155",
"0.7001931",
"0.6929589",
"0.65953934",
"0.652469",
"0.64882624",
"0.6480117",
"0.63997084",
"0.63617104",
"0.63576454",
"0.633634",
"0.63189954",
"0.6275769",
"0.6242126",
"0.6219146",
"0.6178412",
"0.6140308",
"0.61262685",
"0.60942847",
"0.603058",
"0.6019031",
"0.58771265",
"0.5870812",
"0.5866489",
"0.5834456",
"0.5796586",
"0.57909584",
"0.57823825",
"0.57699627",
"0.5759467",
"0.5751654",
"0.5751154",
"0.5719242",
"0.5710947",
"0.5698841",
"0.56830055",
"0.56610376",
"0.55989784",
"0.55940604",
"0.5575598",
"0.5558116",
"0.55539656",
"0.5530877",
"0.55069435",
"0.55015004",
"0.5484877",
"0.5480218",
"0.5469794",
"0.5432035",
"0.5421949",
"0.5421088",
"0.54162645",
"0.5411834",
"0.53522635",
"0.53448623",
"0.53028566",
"0.5285517",
"0.5279335",
"0.52653706",
"0.52577984",
"0.52133584",
"0.52036804",
"0.51959795",
"0.51720613",
"0.5162995",
"0.5161993",
"0.515761",
"0.5156161",
"0.51336753",
"0.5125929",
"0.5115213",
"0.5109397",
"0.51093036",
"0.5108814",
"0.51080304",
"0.5101354",
"0.5093832",
"0.50882715",
"0.50519323",
"0.5044209",
"0.5041301",
"0.50326926",
"0.50268286",
"0.5024249",
"0.50191224",
"0.50167125",
"0.5006378",
"0.49944234",
"0.49831975",
"0.4982236",
"0.49777547",
"0.49742922",
"0.49711874",
"0.4962009",
"0.49536967"
] | 0.80941737 | 1 |
CancelOrder is a paid mutator transaction binding the contract method 0xa8a41c70. Solidity: function cancelOrder_(address[7] addrs, uint256[9] uints, uint8 feeMethod, uint8 side, uint8 saleKind, uint8 howToCall, bytes calldata, bytes replacementPattern, bytes staticExtradata, uint8 v, bytes32 r, bytes32 s) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
return _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) CancelOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"cancelOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaTransactor) CancelOrder(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"cancelOrder\", tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (cl *ocxClient) CancelOrder(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\torderID := args[0]\n\n\t// remove this and _ when cancel order has returns\n\t// var cancelOrderReply *cxrpc.CancelOrderReply\n\tif _, err = cl.RPCClient.CancelOrder(orderID); err != nil {\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Cancelled order successfully\")\n\treturn\n}",
"func CancelOrder(c *soso.Context) {\n\tif c.Token == nil {\n\t\tc.ErrorResponse(403, soso.LevelError, errors.New(\"User not authorized\"))\n\t\treturn\n\t}\n\treq := c.RequestMap\n\n\tpayID, _ := req[\"id\"].(float64)\n\tleadID, _ := req[\"lead_id\"].(float64)\n\n\tif leadID <= 0 || payID <= 0 {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Incorrect parameter\"))\n\t\treturn\n\t}\n\n\t_, role, err := getConversationID(c.Token.UID, uint64(leadID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\t// must have correct direction; IS creator\n\tdirection, err := paymentDirection(role, true)\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\torderData, paymentData, err := retrieveOrder(uint64(payID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\tif !canCancelPay(paymentData.Direction, direction) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"No access to cancel this pay\"))\n\t\treturn\n\t}\n\tif orderData.LeadId != uint64(leadID) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Parameters mangled\"))\n\t\treturn\n\t}\n\n\t// now -- create the order\n\tctx, cancel := rpc.DefaultContext()\n\tdefer cancel()\n\tresp, err := paymentServiceClient.CancelOrder(ctx, &payment.CancelOrderRequest{\n\t\tPayId: uint64(payID),\n\t\tUserId: c.Token.UID,\n\t})\n\n\tif err != nil { // RPC errors\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\tif resp.Error > 0 { // service errors\n\t\tc.Response.ResponseMap = map[string]interface{}{\n\t\t\t\"ErrorCode\": resp.Error,\n\t\t\t\"ErrorMessage\": resp.ErrorMessage,\n\t\t}\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(resp.ErrorMessage))\n\t\treturn\n\t}\n\n\tc.SuccessResponse(map[string]interface{}{\n\t\t\"cancelled\": resp.Cancelled,\n\t})\n\n}",
"func (trading *TradingProvider) Cancel(order schemas.Order) (err error) {\n\tvar b []byte\n\tvar resp OrderCancel\n\n\tpayload := httpclient.Params()\n\tnonce := time.Now().UnixNano()\n\tpayload.Set(\"orderNumber\", order.ID)\n\tpayload.Set(\"command\", commandCancel)\n\tpayload.Set(\"nonce\", strconv.FormatInt(nonce, 10))\n\n\tb, err = trading.httpClient.Post(tradingAPI, httpclient.Params(), payload, true)\n\tif err != nil {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error creating order: %v\", string(b))\n\t}\n\tif err = json.Unmarshal(b, &resp); err != nil {\n\t\treturn\n\t}\n\tif len(resp.Error) > 0 {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error cancelling order: %v\", resp.Error)\n\t\treturn\n\t}\n\n\treturn nil\n}",
"func (b Bittrex) CancelOrder(uuid string) {\n\terr := b.Inst.CancelOrder(uuid)\n\tutils.HandleError(err)\n}",
"func (m *Marketplace) CancelOrder(ctx context.Context, req *pb.Order) (*pb.Empty, error) {\n\n\tlogger := ctx_zap.Extract(ctx)\n\tlogger.Sugar().Infof(\"Canceling order %s\", req.GetId())\n\n\t// used by CheckPermissions bellow\n\torder, err := m.getOrderByID(req.GetId())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq.OrderType = pb.OrderType(order.OrderType)\n\treq.ByuerID = order.BuyerID\n\treq.SupplierID = order.SupplierID\n\n\tif err := CheckPermissions(ctx, req); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err := m.commandBus.Handle(command.CancelOrder{ID: req.Id}); err != nil {\n\t\treturn nil, err\n\t}\n\n\tlogger.Sugar().Infof(\"Order %s successfully canceled\", req.GetId())\n\n\treturn &pb.Empty{}, nil\n}",
"func (this *Spot) CancelOrder(order *Order) ([]byte, error) {\n\turlPath := \"/api/spot/v3/cancel_orders/\" + order.OrderId\n\tparam := struct {\n\t\tInstrumentId string `json:\"instrument_id\"`\n\t}{\n\t\torder.Pair.ToSymbol(\"-\", true),\n\t}\n\treqBody, _, _ := this.BuildRequestBody(param)\n\tvar response struct {\n\t\tClientOid string `json:\"client_oid\"`\n\t\tOrderId string `json:\"order_id\"`\n\t\tResult bool `json:\"result\"`\n\t}\n\n\tresp, err := this.DoRequest(\n\t\t\"POST\",\n\t\turlPath,\n\t\treqBody,\n\t\t&response,\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif response.Result {\n\t\treturn resp, nil\n\t}\n\treturn resp, NewError(400, \"cancel fail, unknown error\")\n}",
"func (p *Bittrex) CancelOrder(order OrderInfo) *TradeResult {\n\treturn nil\n}",
"func (s *Socket) cancelOrder(p Payload) {\n\tocp := NewOrderCancelPayload()\n\n\tif err := ocp.DecodeOrderCancelPayload(p); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n\n\toc := ocp.OrderCancel\n\n\tif err := s.server.engine.CancelOrder(oc); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n}",
"func (tsl *TrailingStopLoss) CancelOrder() {\n\tif tsl.Order == (cbp.Order{}) {\n\t\tlog.Println(\"[warn] no order to cancel\")\n\t} else {\n\t\terr := tsl.Client.CancelOrder(tsl.Order.ID)\n\t\tif err != nil {\n\t\t\tlog.Println(\"[warn] could not cancel order\")\n\t\t}\n\t\ttsl.Order = cbp.Order{}\n\t\ttsl.UpdateTime()\n\t}\n}",
"func (h *Hbdm) CanceOrder(symbol string, orderId, clientOrderId int) (resp *CancelOrderResponse, err error) {\n\tpayload := make(map[string]interface{}, 3)\n\tpayload[\"symbol\"] = symbol\n\n\tif orderId != 0 {\n\t\tpayload[\"order_id\"] = orderId\n\t}\n\n\tif clientOrderId != 0 {\n\t\tpayload[\"client_order_id\"] = clientOrderId\n\t}\n\n\tr, err := h.client.do(\"POST\", \"contract_cancel\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (g *Gemini) CancelExchangeOrder(p pair.CurrencyPair, orderID int64) (int64, error) {\n\treturn 0, errors.New(\"not yet implemented\")\n}",
"func (c *Coinbene) CancelSwapOrder(orderID string) (string, error) {\n\tparams := make(map[string]interface{})\n\tparams[\"orderId\"] = orderID\n\ttype resp struct {\n\t\tData string `json:\"data\"`\n\t}\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\ttrue,\n\t\tparams,\n\t\t&r,\n\t\tcontractCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn r.Data, nil\n}",
"func (c *Client) CancelOrder(symbol Symbol, clientOrderID string, id int) (*Order, error) {\n\tparams := []func(url.Values){\n\t\tparam(\"symbol\", symbol),\n\t}\n\n\tif clientOrderID == \"\" && id == 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID empty\")\n\t}\n\n\tif clientOrderID != \"\" && id != 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID both set\")\n\t}\n\n\tif clientOrderID != \"\" {\n\t\tparams = append(params, param(\"origClientOrderId\", clientOrderID))\n\t}\n\n\tif id != 0 {\n\t\tparams = append(params, param(\"orderId\", id))\n\t}\n\n\tvar order Order\n\terr := c.signedCall(&order, \"DELETE\", \"/api/v3/order\", params...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &order, nil\n}",
"func (b *Binance) CancelOrder(symbol string, orderID int64) {\n\t_, err := b.client.NewCancelOrderService().Symbol(symbol).\n\t\tOrderID(orderID).Do(context.Background())\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}",
"func (s serverImpl) Cancel(goCtx context.Context, req *ecocredit.MsgCancel) (*ecocredit.MsgCancelResponse, error) {\n\tctx := types.UnwrapSDKContext(goCtx)\n\tstore := ctx.KVStore(s.storeKey)\n\tholderAddr, err := sdk.AccAddressFromBech32(req.Holder)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfor _, credit := range req.Credits {\n\n\t\t// Check that the batch that were trying to cancel credits from\n\t\t// exists\n\t\tdenom := batchDenomT(credit.BatchDenom)\n\t\tif !s.batchInfoTable.Has(ctx, orm.RowID(denom)) {\n\t\t\treturn nil, sdkerrors.ErrInvalidRequest.Wrapf(\"%s is not a valid credit batch denom\", denom)\n\t\t}\n\n\t\t// Remove the credits from the total_amount in the batch and add\n\t\t// them to amount_cancelled\n\t\tvar batchInfo ecocredit.BatchInfo\n\t\terr := s.batchInfoTable.GetOne(ctx, orm.RowID(denom), &batchInfo)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tclassInfo, err := s.getClassInfo(ctx, batchInfo.ClassId)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tmaxDecimalPlaces := classInfo.CreditType.Precision\n\n\t\t// Parse the amount of credits to cancel, checking it conforms\n\t\t// to the precision\n\t\ttoCancel, err := math.NewPositiveFixedDecFromString(credit.Amount, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Remove the credits from the balance of the holder and the\n\t\t// overall supply\n\t\terr = subtractTradableBalanceAndSupply(store, holderAddr, denom, toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttotalAmount, err := math.NewPositiveFixedDecFromString(batchInfo.TotalAmount, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttotalAmount, err = math.SafeSubBalance(totalAmount, toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbatchInfo.TotalAmount = totalAmount.String()\n\n\t\tamountCancelled, err := math.NewNonNegativeFixedDecFromString(batchInfo.AmountCancelled, maxDecimalPlaces)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tamountCancelled, err = amountCancelled.Add(toCancel)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbatchInfo.AmountCancelled = amountCancelled.String()\n\n\t\tif err = s.batchInfoTable.Update(ctx, &batchInfo); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Emit the cancellation event\n\t\terr = ctx.EventManager().EmitTypedEvent(&ecocredit.EventCancel{\n\t\t\tCanceller: req.Holder,\n\t\t\tBatchDenom: string(denom),\n\t\t\tAmount: toCancel.String(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tctx.GasMeter().ConsumeGas(gasCostPerIteration, \"cancel ecocredits\")\n\t}\n\n\treturn &ecocredit.MsgCancelResponse{}, nil\n}",
"func (book *OrderBook) Cancel(order *Order) error {\n\tif order.MarketName != book.MarketName {\n\t\treturn fmt.Errorf(\"market name for order should be %s got %s\", book.MarketName, order.MarketName)\n\t}\n\n\tif order.Side == constants.Sell {\n\t\treturn book.cancelSellOrder(order.ID)\n\t}\n\treturn book.cancelBuyOrder(order.ID)\n}",
"func (h *HUOBI) CancelSwapOrder(ctx context.Context, orderID, clientOrderID string, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\tif orderID != \"\" {\n\t\treq[\"order_id\"] = orderID\n\t}\n\tif clientOrderID != \"\" {\n\t\treq[\"client_order_id\"] = clientOrderID\n\t}\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelOrder, nil, req, &resp)\n}",
"func (o *Okcoin) WsCancelTradeOrder(arg *CancelTradeOrderRequest) (*TradeOrderResponse, error) {\n\tif arg == nil {\n\t\treturn nil, errNilArgument\n\t}\n\tif arg.InstrumentID == \"\" {\n\t\treturn nil, errMissingInstrumentID\n\t}\n\tif arg.OrderID == \"\" && arg.ClientOrderID == \"\" {\n\t\treturn nil, errOrderIDOrClientOrderIDRequired\n\t}\n\tvar resp []TradeOrderResponse\n\terr := o.SendWebsocketRequest(\"cancel-order\", &arg, &resp, true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(resp) == 0 {\n\t\treturn nil, errNoValidResponseFromServer\n\t}\n\tif resp[0].SCode != \"0\" {\n\t\treturn nil, fmt.Errorf(\"code: %s msg: %s\", resp[0].SCode, resp[0].SMsg)\n\t}\n\treturn &resp[0], nil\n}",
"func (b *Bitmex) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\t_, err := b.CancelOrders(ctx, &OrderCancelParams{\n\t\tOrderID: o.OrderID,\n\t})\n\treturn err\n}",
"func (c *Coinbene) CancelSwapOrders(orderIDs []string) ([]OrderCancellationResponse, error) {\n\tif len(orderIDs) > 10 {\n\t\treturn nil, errors.New(\"only 10 orderIDs are allowed at a time\")\n\t}\n\treq := make(map[string]interface{})\n\treq[\"orderIds\"] = orderIDs\n\ttype resp struct {\n\t\tData []OrderCancellationResponse `json:\"data\"`\n\t}\n\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneBatchCancel\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneBatchCancel,\n\t\ttrue,\n\t\treq,\n\t\t&r,\n\t\tcontractCancelMultipleOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn r.Data, nil\n}",
"func (e Exchange) CancelOrder(exch, orderID string) (bool, error) {\n\torderDetails, err := e.QueryOrder(exch, orderID)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tcancel := &order.Cancel{\n\t\tAccountID: orderDetails.AccountID,\n\t\tOrderID: orderDetails.ID,\n\t\tCurrencyPair: orderDetails.CurrencyPair,\n\t\tSide: orderDetails.OrderSide,\n\t}\n\n\terr = engine.Bot.OrderManager.Cancel(exch, cancel)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn true, nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, auth auth.Identity) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Customer Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n\n}",
"func (c *CoinbasePro) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\treturn c.CancelExistingOrder(ctx, o.OrderID)\n}",
"func (c *Client) CancelOrder(serverAssignedOrderID string) error {\n\tfullURL := fmt.Sprintf(\"%s/%s\", ordersURL, serverAssignedOrderID)\n\treq, err := http.NewRequest(\"DELETE\", fullURL, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, _, err = c.doAuthAndReq(req)\n\treturn err\n}",
"func TestCancelExistingOrder(t *testing.T) {\n\tt.Parallel()\n\t_, err := k.CancelExistingOrder(context.Background(), \"OAVY7T-MV5VK-KHDF5X\")\n\tif err == nil {\n\t\tt.Error(\"CancelExistingOrder() Expected error\")\n\t}\n}",
"func (e *CancelTransaction) Cancel(\n\tctx context.Context,\n) error {\n\tif int(e.Hop) >= len(e.Plan.Hops) {\n\t\treturn errors.Trace(errors.Newf(\n\t\t\t\"Hop (%d) is higher than the transaction plan length (%d)\",\n\t\t\te.Hop, len(e.Plan.Hops)))\n\t}\n\n\th := e.Plan.Hops[e.Hop]\n\tmint.Logf(ctx,\n\t\t\"Executing cancellation plan: transaction=%s hop=%d\", e.ID, e.Hop)\n\n\t// Cancel the OpAction (should always be defined)\n\tif h.OpAction != nil {\n\t\top, err := model.LoadCanonicalOperationByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if op == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Operation not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif op.Status == mint.TxStCanceled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\n\t\t} else {\n\t\t\ta := h.OpAction\n\n\t\t\tasset, err := model.LoadCanonicalAssetByName(ctx, *a.OperationAsset)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if asset == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Asset not found: %s\", *a.OperationAsset))\n\t\t\t}\n\n\t\t\t// Restore the source balance if applicable (that is if the op\n\t\t\t// source is not owner of the asset, in which case the asset was\n\t\t\t// issued on the fly).\n\t\t\tvar srcBalance *model.Balance\n\t\t\tif asset.Owner != op.Source {\n\t\t\t\tsrcBalance, err = model.LoadCanonicalBalanceByAssetHolder(ctx,\n\t\t\t\t\top.Asset, op.Source)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t} else if srcBalance == nil {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Source has no balance in %s: %s\", op.Asset, op.Source))\n\t\t\t\t}\n\t\t\t\t(*big.Int)(&srcBalance.Value).Add(\n\t\t\t\t\t(*big.Int)(&srcBalance.Value), (*big.Int)(&op.Amount))\n\n\t\t\t\t// Checks if the srcBalance is positive and not overflown.\n\t\t\t\tb := (*big.Int)(&srcBalance.Value)\n\t\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Invalid resulting balance for %s: %s\",\n\t\t\t\t\t\tsrcBalance.Holder, b.String()))\n\t\t\t\t}\n\n\t\t\t\terr = srcBalance.Save(ctx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\n\t\t\t\terr = async.Queue(ctx,\n\t\t\t\t\ttask.NewPropagateBalance(ctx, time.Now(), srcBalance.ID()))\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\top.Status = mint.TxStCanceled\n\t\t\terr = op.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\t\t}\n\t}\n\n\tif h.CrAction != nil {\n\t\tcr, err := model.LoadCanonicalCrossingByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if cr == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Crossing not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif cr.Status == mint.TxStSettled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t} else {\n\t\t\ta := h.CrAction\n\n\t\t\toffer, err := model.LoadCanonicalOfferByID(ctx, *a.CrossingOffer)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if offer == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Offer not found: %s\", *a.CrossingOffer))\n\t\t\t}\n\n\t\t\t(*big.Int)(&offer.Remainder).Add(\n\t\t\t\t(*big.Int)(&offer.Remainder), (*big.Int)(&cr.Amount))\n\n\t\t\t// Checks if the remainder is positive and not overflown.\n\t\t\tb := (*big.Int)(&offer.Remainder)\n\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Invalid resulting remainder: %s\", b.String()))\n\t\t\t}\n\t\t\t// Set the offer as active if the remainder is not 0 and the offer\n\t\t\t// is not closed.\n\t\t\tif offer.Status != mint.OfStClosed && b.Cmp(new(big.Int)) > 0 {\n\t\t\t\toffer.Status = mint.OfStActive\n\t\t\t}\n\n\t\t\terr = offer.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\terr = async.Queue(ctx,\n\t\t\t\ttask.NewPropagateOffer(ctx, time.Now(), offer.ID()))\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tcr.Status = mint.TxStCanceled\n\t\t\terr = cr.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (s *OrderService) CancelOrder(oc *types.OrderCancel) error {\n\tvar err error\n\tvar o *types.Order\n\n\to, err = s.orderDao.GetByHash(oc.OrderHash)\n\tif err != nil || o == nil {\n\t\treturn errors.New(\"No order with corresponding hash\")\n\t}\n\tif o.Status == types.ORDER_FILLED || o.Status == types.ERROR_STATUS || o.Status == types.ORDER_CANCELLED {\n\t\treturn fmt.Errorf(\"Cannot cancel order. Status is %v\", o.Status)\n\t}\n\n\to.Nonce = oc.Nonce\n\to.Signature = oc.Signature\n\to.OrderID = oc.OrderID\n\to.Status = oc.Status\n\to.UserAddress = oc.UserAddress\n\to.ExchangeAddress = oc.ExchangeAddress\n\n\terr = s.broker.PublishCancelOrderMessage(o)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func ExampleMarketplaceAgreementsClient_Cancel() {\n\tcred, err := azidentity.NewDefaultAzureCredential(nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to obtain a credential: %v\", err)\n\t}\n\tctx := context.Background()\n\tclient, err := armmarketplaceordering.NewMarketplaceAgreementsClient(\"subid\", cred, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to create client: %v\", err)\n\t}\n\tres, err := client.Cancel(ctx,\n\t\t\"pubid\",\n\t\t\"offid\",\n\t\t\"planid\",\n\t\tnil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to finish the request: %v\", err)\n\t}\n\t// TODO: use response item\n\t_ = res\n}",
"func (by *Bybit) CancelUSDCOrder(ctx context.Context, symbol currency.Pair, orderFilter, orderID, orderLinkID string) (string, error) {\n\tresp := struct {\n\t\tResult struct {\n\t\t\tOrderID string `json:\"orderId\"`\n\t\t} `json:\"result\"`\n\t\tUSDCError\n\t}{}\n\n\treq := make(map[string]interface{})\n\tif symbol.IsEmpty() {\n\t\treturn resp.Result.OrderID, errSymbolMissing\n\t}\n\tsymbolValue, err := by.FormatSymbol(symbol, asset.USDCMarginedFutures)\n\tif err != nil {\n\t\treturn resp.Result.OrderID, err\n\t}\n\treq[\"symbol\"] = symbolValue\n\n\tif orderFilter == \"\" {\n\t\treturn resp.Result.OrderID, errInvalidOrderFilter\n\t}\n\treq[\"orderFilter\"] = orderFilter\n\n\tif orderID == \"\" && orderLinkID == \"\" {\n\t\treturn resp.Result.OrderID, errOrderOrOrderLinkIDMissing\n\t}\n\n\tif orderID != \"\" {\n\t\treq[\"orderId\"] = orderID\n\t}\n\n\tif orderLinkID != \"\" {\n\t\treq[\"orderLinkId\"] = orderLinkID\n\t}\n\treturn resp.Result.OrderID, by.SendUSDCAuthHTTPRequest(ctx, exchange.RestUSDCMargined, http.MethodPost, usdcfuturesCancelOrder, req, &resp, usdcCancelOrderRate)\n}",
"func TestWsCancelOrder(t *testing.T) {\n\tsetupWsAuth(t)\n\tif !canManipulateRealOrders {\n\t\tt.Skip(\"canManipulateRealOrders false, skipping test\")\n\t}\n\t_, err := h.wsCancelOrder(\"ImNotARealOrderID\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n}",
"func (a *ModificationGateway) Cancel(req *Cancel) (*CancelResponse, error) {\n\tresp, err := a.execute(PaymentService, cancelType, req)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn resp.cancel()\n}",
"func (c *TradeClient) CancelOrder(contractCode string, orderId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif orderId <= 0 {\n\t\treturn errors.New(\"orderId must > 0\")\n\t}\n\n\tqueries := map[string]string{\n\t\t\"contractCode\": contractCode,\n\t\t\"orderId\": strconv.FormatInt(orderId, 10),\n\t}\n\n\treturn c.requester.Get(\"/api/v1/cancel_order\", queries, true, coremodel.NewBoolResponse())\n}",
"func (h *HUOBI) CancelSwapTriggerOrder(ctx context.Context, contractCode currency.Pair, orderID string) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treq[\"order_id\"] = orderID\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelTriggerOrder, nil, req, &resp)\n}",
"func (k *Kraken) CancelOrder(order *exchange.OrderCancellation) error {\n\t_, err := k.CancelExistingOrder(order.OrderID)\n\n\treturn err\n}",
"func (client *Client) CancelOrder(id int64) (bool, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tOrderID int64 `json:\"order_id\"`\n\t}{\n\t\t\"/v1/order/cancel\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tid,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, response.Message)\n\t}\n\n\treturn true, nil\n}",
"func (ob *OrderBook) CancelOrder(orderID string) *Order {\n\te, ok := ob.orders[orderID]\n\tif !ok {\n\t\treturn nil\n\t}\n\n\tdelete(ob.orders, orderID)\n\n\tif e.Value.(*Order).Side() == Buy {\n\t\treturn ob.bids.Remove(e)\n\t}\n\n\treturn ob.asks.Remove(e)\n}",
"func (c *CoinbasePro) CancelBatchOrders(_ context.Context, _ []order.Cancel) (*order.CancelBatchResponse, error) {\n\treturn nil, common.ErrFunctionNotSupported\n}",
"func (o *OfflineWebCartPaymentGateway) CancelOrderPayment(ctx context.Context, cartPayment *placeorder.Payment) error {\n\treturn nil\n}",
"func (t *TradePool) cancelProcess(order *comm.Order) (bool, comm.Order) {\n\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"%s-%s TradePool CancelProcess Order ID(%d), Time(%d)\\n\", t.Symbol, t.MarketType.String(), order.ID, order.Timestamp)\n\tif order == nil {\n\t\tfmt.Printf(\"%s-%s Cancel input order==nil error!\\n\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n\tif order.Symbol != t.Symbol {\n\t\tfmt.Printf(\"Market(%s-%s) cancelProcess illegal order with symbol(%s) to %s Match Engine\", t.Symbol, t.MarketType.String(), order.Symbol, t.Symbol)\n\t\treturn false, comm.Order{}\n\t}\n\n\tif order.AorB == comm.TradeType_BID {\n\t\tt.bidPoolRWMutex.Lock(\"CancelProcess BID\")\n\t\tdefer t.bidPoolRWMutex.Unlock(\"CancelProcess BID\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.bidPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmBidOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess bid order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\tt.askPoolRWMutex.Lock(\"CancelProcess ASK\")\n\t\tdefer t.askPoolRWMutex.Unlock(\"CancelProcess ASK\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.askPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmAskOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess ask order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else {\n\t\tfmt.Printf(\"%s-%s CancelProcess illegal order type!\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n}",
"func (c *Coinbene) CancelSpotOrder(orderID string) (string, error) {\n\tresp := struct {\n\t\tData string `json:\"data\"`\n\t}{}\n\treq := make(map[string]interface{})\n\treq[\"orderId\"] = orderID\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\tfalse,\n\t\treq,\n\t\t&resp,\n\t\tspotCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Data, nil\n}",
"func (c *TradeClient) CancelConditionOrder(contractCode string, taskId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif taskId <= 0 {\n\t\treturn errors.New(\"taskId must > 0\")\n\t}\n\n\tparam := &coremodel.ApiRequestModel{\n\t\tParam: &struct {\n\t\t\tContractCode string `json:\"contractCode\"`\n\t\t\tTaskId int64 `json:\"taskId\"`\n\t\t}{contractCode, taskId},\n\t}\n\tbody, err := json.Marshal(param)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn c.requester.Post(\"/api/v1/cancel_condition_order\", body, nil, true, coremodel.NewBoolResponse())\n}",
"func (h *HUOBIHADAX) CancelExistingOrder(orderID int64) (int64, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrderID int64 `json:\"data,string\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodPost, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn 0, errors.New(result.ErrorMessage)\n\t}\n\treturn result.OrderID, err\n}",
"func (owner *WalletOwnerAPI) CancelTx(txID *uint32, txSlateID *uuid.UUID) error {\n\tparams := struct {\n\t\tToken string `json:\"token\"`\n\t\tTxID *uint32 `json:\"tx_id\"`\n\t\tTxSlateID *uuid.UUID `json:\"tx_slate_id\"`\n\t}{\n\t\tToken: owner.token,\n\t\tTxID: txID,\n\t\tTxSlateID: txSlateID,\n\t}\n\tparamsBytes, err := json.Marshal(params)\n\tif err != nil {\n\t\treturn err\n\t}\n\tenvl, err := owner.client.EncryptedRequest(\"cancel_tx\", paramsBytes, owner.sharedSecret)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif envl == nil {\n\t\treturn errors.New(\"WalletOwnerAPI: Empty RPC Response from grin-wallet\")\n\t}\n\tif envl.Error != nil {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"code\": envl.Error.Code,\n\t\t\t\"message\": envl.Error.Message,\n\t\t}).Error(\"WalletOwnerAPI: RPC Error during CancelTx\")\n\t\treturn errors.New(string(envl.Error.Code) + \"\" + envl.Error.Message)\n\t}\n\tvar result Result\n\tif err = json.Unmarshal(envl.Result, &result); err != nil {\n\t\treturn err\n\t}\n\tif result.Err != nil {\n\t\treturn errors.New(string(result.Err))\n\t}\n\treturn nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Guest Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n}",
"func (h *HUOBIHADAX) CancelOrderBatch(orderIDs []int64) (CancelOrderBatch, error) {\n\ttype response struct {\n\t\tStatus string `json:\"status\"`\n\t\tData CancelOrderBatch `json:\"data\"`\n\t}\n\n\t// Used to send param formatting\n\ttype postBody struct {\n\t\tList []int64 `json:\"order-ids\"`\n\t}\n\n\t// Format to JSON\n\tbytesParams, _ := common.JSONEncode(&postBody{List: orderIDs})\n\tpostBodyParams := string(bytesParams)\n\n\tvar result response\n\terr := h.SendAuthenticatedHTTPPostRequest(http.MethodPost, huobihadaxOrderCancelBatch, postBodyParams, &result)\n\n\tif len(result.Data.Failed) != 0 {\n\t\terrJSON, _ := common.JSONEncode(result.Data.Failed)\n\t\treturn CancelOrderBatch{}, errors.New(string(errJSON))\n\t}\n\treturn result.Data, err\n}",
"func (_IOrakuruCore *IOrakuruCoreTransactor) CancelRequest(opts *bind.TransactOpts, _requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.contract.Transact(opts, \"cancelRequest\", _requestId)\n}",
"func (c *Coinbene) CancelSpotOrders(orderIDs []string) ([]OrderCancellationResponse, error) {\n\treq := make(map[string]interface{})\n\treq[\"orderIds\"] = orderIDs\n\ttype resp struct {\n\t\tData []OrderCancellationResponse `json:\"data\"`\n\t}\n\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneBatchCancel\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneBatchCancel,\n\t\tfalse,\n\t\treq,\n\t\t&r,\n\t\tspotCancelOrdersBatch)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn r.Data, nil\n}",
"func (_IOrakuruCore *IOrakuruCoreTransactorSession) CancelRequest(_requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.Contract.CancelRequest(&_IOrakuruCore.TransactOpts, _requestId)\n}",
"func CancelSalesOrder(so *model.SalesOrder, user *model.User) (e error) {\n\to := orm.NewOrm()\n\tso.IsDeleted = 0\n\tso.DocumentStatus = \"approved_cancel\"\n\tso.Customer.TotalSpend = so.Customer.TotalSpend - so.TotalCharge\n\tif e = calculateStockCommited(so); e != nil {\n\t\treturn e\n\t}\n\tso.ApproveCancelAt = time.Now()\n\tso.ApproveCancelBy = user\n\n\tvar si []*model.SalesInvoice\n\n\tif so.InvoiceStatus != \"new\" {\n\t\tif o.QueryTable(new(model.SalesInvoice)).Filter(\"sales_order_id\", so.ID).All(&si); e == nil {\n\t\t\tfor _, six := range si {\n\t\t\t\t//update is delete pada seluruh sales invoice yg memiliki referensi SO, menjadi is_delete = 1\n\t\t\t\tsix.IsDeleted = 1\n\t\t\t\tsix.Save(\"IsDeleted\")\n\t\t\t\t//check document status\n\t\t\t\tif six.DocumentStatus != \"new\" {\n\n\t\t\t\t\t// update total debt dengan total debt lama dikurang dengan total charge SO, pd partnership tersebut\n\t\t\t\t\tso.Customer.TotalDebt = so.Customer.TotalDebt - (so.TotalCharge - so.TotalPaid)\n\t\t\t\t\tif e = so.Customer.Save(\"total_debt\"); e == nil {\n\t\t\t\t\t}\n\n\t\t\t\t\t// cek is_bundle\n\t\t\t\t\tif six.IsBundled != 1 {\n\n\t\t\t\t\t\t//update is delete pada seluruh finance revenue yg memiliki referensi sales invoice, menjadi is_delete = 1\n\t\t\t\t\t\tvar fr []*model.FinanceRevenue\n\t\t\t\t\t\tif o.QueryTable(new(model.FinanceRevenue)).Filter(\"ref_id\", six.ID).Filter(\"ref_type\", \"sales_invoice\").All(&fr); e == nil {\n\t\t\t\t\t\t\tfor _, frx := range fr {\n\t\t\t\t\t\t\t\tfrx.IsDeleted = 1\n\t\t\t\t\t\t\t\tfrx.Save(\"IsDeleted\")\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// jika is bundled = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif e = checkInvoiceReceiptItem(six); e != nil {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// cek fulfillment status\n\tvar fulfillment []*model.WorkorderFulfillment\n\tif so.FulfillmentStatus != \"new\" {\n\t\t// ambil workorder_fulfillment berdasarkan parameter sales order diatas\n\t\tif fulfillment, e = getWorkorderFulfillments(\"sales_order_id\", so.ID); e == nil {\n\t\t\tfor _, ffx := range fulfillment {\n\t\t\t\t// cek dokumen status work order fulfillment finished\n\t\t\t\tif ffx.DocumentStatus == \"finished\" {\n\t\t\t\t\tif e = inventory.CancelStock(uint64(ffx.ID), \"workorder_fulfillment\"); e != nil {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tffx.IsDeleted = 1\n\t\t\t\tif e = ffx.Save(\"IsDeleted\"); e != nil {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t//if e = calculateStockAvailable(so); e != nil {\n\t\t//\treturn e\n\t\t//}\n\t}\n\n\tif e = so.Customer.Save(\"total_spend\"); e == nil {\n\t\tif e = so.Save(\"cancelled_note\", \"is_deleted\", \"document_status\", \"approve_cancel_at\", \"approve_cancel_by\"); e != nil {\n\t\t\treturn e\n\t\t}\n\t}\n\n\treturn\n}",
"func (_IOrakuruCore *IOrakuruCoreSession) CancelRequest(_requestId [32]byte) (*types.Transaction, error) {\n\treturn _IOrakuruCore.Contract.CancelRequest(&_IOrakuruCore.TransactOpts, _requestId)\n}",
"func (e *Huobi) CancelOrder(order Order) bool {\n\tresult, err := services.SubmitCancel(order.ID)\n\tif err != nil {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", err)\n\t\treturn false\n\t}\n\tif result.Status != \"ok\" {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", result.ErrMsg)\n\t\treturn false\n\t}\n\te.logger.Log(constant.CANCEL, order.StockType, order.Price, order.Amount-order.DealAmount, order)\n\treturn true\n}",
"func New(crossid field.CrossIDField, origcrossid field.OrigCrossIDField, crosstype field.CrossTypeField, crossprioritization field.CrossPrioritizationField, handlinst field.HandlInstField, transacttime field.TransactTimeField, ordtype field.OrdTypeField) (m CrossOrderCancelReplaceRequest) {\n\tm.Message = quickfix.NewMessage()\n\tm.Header = fix43.NewHeader(&m.Message.Header)\n\tm.Body = &m.Message.Body\n\tm.Trailer.Trailer = &m.Message.Trailer\n\n\tm.Header.Set(field.NewMsgType(\"t\"))\n\tm.Set(crossid)\n\tm.Set(origcrossid)\n\tm.Set(crosstype)\n\tm.Set(crossprioritization)\n\tm.Set(handlinst)\n\tm.Set(transacttime)\n\tm.Set(ordtype)\n\n\treturn\n}",
"func (order *Order) doCancel(success bool, log string) error {\n\tcancelLog := log\n\n\t// Try to cancel the shipment, if necessary\n\tshipment, err := catalogApi.GetShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && shipment.Status != catalogApi.ShipmentCancelled {\n\t\terr := catalogApi.CancelShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling shipment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nShipment cancelled\"\n\t\t}\n\t} else {\n\t\tcancelLog += \"\\nShipment \" + string(shipment.Status)\n\t}\n\n\t// Try to cancel the payment, if necessary\n\tpayment, err := paymentApi.FetchPayment(order.shop.paymentEndpoint, order.PaymentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && payment.Status != paymentApi.PaymentFailed {\n\t\terr := paymentApi.CancelPayment(order.shop.paymentEndpoint, order.PaymentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling payment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nPayment cancelled\"\n\t\t}\n\t}\n\tcancelLog += \"\\nPayment was \" + payment.Status\n\tif payment.Error != \"\" {\n\t\tcancelLog += \", error: \" + payment.Error\n\t}\n\n\t// Remove the order from the list of open orders & store cancel log\n\treturn order.shop.redis.Transaction(func(redis services.Redis) error {\n\t\torder.Status = cancelLog\n\t\terr := redis.Cmd(\"srem\", open_orders_key, order.id).Err()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn order.SaveIn(redis)\n\t})\n}",
"func (h *HUOBI) CancelOrderBatch(ctx context.Context, orderIDs, clientOrderIDs []string) (*CancelOrderBatch, error) {\n\tresp := struct {\n\t\tResponse\n\t\tData *CancelOrderBatch `json:\"data\"`\n\t}{}\n\tdata := struct {\n\t\tClientOrderIDs []string `json:\"client-order-ids\"`\n\t\tOrderIDs []string `json:\"order-ids\"`\n\t}{\n\t\tClientOrderIDs: clientOrderIDs,\n\t\tOrderIDs: orderIDs,\n\t}\n\treturn resp.Data, h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, huobiOrderCancelBatch, nil, data, &resp, false)\n}",
"func (s *Service) Cancel(userId string, tans ...string) error {\n\tif len(tans) > 0 {\n\t\tfor _, tan := range tans {\n\t\t\tvar found *model.Tan\n\t\t\tif s.Verify(userId, tan, &found) {\n\t\t\t\terr := s.repository.Delete(found)\n\t\t\t\tif nil != err {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tshowNumber := int(float64(len(tan)) * .4)\n\t\t\t\tmaskedTan := tan[:showNumber] + strings.Repeat(\"*\", len(tan)-showNumber)\n\t\t\t\tlog.Printf(\"[warning] tan service refused to cancel given tan '%s' because the tan has failed verification.\", maskedTan)\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t}\n\treturn s.repository.DeleteByUserId(userId)\n}",
"func (k *xyzProvider) Cancel(context.Context, *pbempty.Empty) (*pbempty.Empty, error) {\n\t// TODO\n\treturn &pbempty.Empty{}, nil\n}",
"func (h *HUOBI) CancelExistingOrder(ctx context.Context, orderID int64) (int64, error) {\n\tresp := struct {\n\t\tOrderID int64 `json:\"data,string\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.OrderID, err\n}",
"func (_e *MockCompletableFuture_Expecter[T]) Cancel() *MockCompletableFuture_Cancel_Call[T] {\n\treturn &MockCompletableFuture_Cancel_Call[T]{Call: _e.mock.On(\"Cancel\")}\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Cancel(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"cancel\", hash)\n}",
"func Cancel(proposer, canceler eos.AccountName, proposalName eos.Name) {\n\tapi := getAPI()\n\n\tpushEOSCActions(api,\n\t\tmsig.NewCancel(proposer, proposalName, canceler),\n\t)\n}",
"func CancelTx(txID *uint32, txSlateID *uuid.UUID) error {\n\tclient := RPCHTTPClient{URL: url}\n\tparams := []interface{}{txID, txSlateID}\n\tparamsBytes, err := json.Marshal(params)\n\tif err != nil {\n\t\treturn err\n\t}\n\tenvl, err := client.Request(\"cancel_tx\", paramsBytes)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif envl == nil {\n\t\treturn errors.New(\"OwnerAPI: Empty RPC Response from grin-wallet\")\n\t}\n\tif envl.Error != nil {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"code\": envl.Error.Code,\n\t\t\t\"message\": envl.Error.Message,\n\t\t}).Error(\"OwnerAPI: RPC Error during CancelTx\")\n\t\treturn errors.New(string(envl.Error.Code) + \"\" + envl.Error.Message)\n\t}\n\tvar result Result\n\tif err = json.Unmarshal(envl.Result, &result); err != nil {\n\t\treturn err\n\t}\n\tif result.Err != nil {\n\t\treturn errors.New(string(result.Err))\n\t}\n\treturn nil\n}",
"func (o *OKEX) CancelBatchOrders(_ []order.Cancel) (order.CancelBatchResponse, error) {\n\treturn order.CancelBatchResponse{}, common.ErrNotYetImplemented\n}",
"func (s *OrderService) CancelAllOrder(a common.Address) error {\n\torders, err := s.orderDao.GetOpenOrdersByUserAddress(a)\n\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\tif len(orders) == 0 {\n\t\treturn nil\n\t}\n\n\tfor _, o := range orders {\n\t\terr = s.broker.PublishCancelOrderMessage(o)\n\n\t\tif err != nil {\n\t\t\tlogger.Error(err)\n\t\t\tcontinue\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (e *orderEndpoint) handleCancelOrder(ev *types.WebsocketEvent, c *ws.Client) {\n\tbytes, err := json.Marshal(ev.Payload)\n\toc := &types.OrderCancel{}\n\n\terr = oc.UnmarshalJSON(bytes)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\taddr, err := oc.GetSenderAddress()\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\tws.RegisterOrderConnection(addr, c)\n\n\torderErr := e.orderService.CancelOrder(oc)\n\tif orderErr != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(orderErr, oc.OrderHash)\n\t\treturn\n\t}\n}",
"func (p *BoteaterServiceClient) CancelGroupInvitation(ctx context.Context, reqSeq int32, groupId string, contactIds []string) (err error) {\r\n var _args79 BoteaterServiceCancelGroupInvitationArgs\r\n _args79.ReqSeq = reqSeq\r\n _args79.GroupId = groupId\r\n _args79.ContactIds = contactIds\r\n var _result80 BoteaterServiceCancelGroupInvitationResult\r\n if err = p.Client_().Call(ctx, \"cancelGroupInvitation\", &_args79, &_result80); err != nil {\r\n return\r\n }\r\n switch {\r\n case _result80.E!= nil:\r\n return _result80.E\r\n }\r\n\r\n return nil\r\n}",
"func (h *HUOBI) CancelAllSwapOrders(ctx context.Context, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelAllOrders, nil, req, &resp)\n}",
"func (r *cancelReq) Transform(m *model.SalesOrder) {\n\t// ubah isi model sales order\n\tm.CancelledNote = r.CancelledNote\n\tm.DocumentStatus = \"requested_cancel\"\n\tm.RequestCancelAt = time.Now()\n\tm.RequestCancelBy = r.Session.User\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ValidateOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.ValidateOrder(&_WyvernExchange.CallOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (a *OrdersApiService) V1OrdersCancelPost(ctx _context.Context, orderCancelSingleRequest OrderCancelSingleRequest) (OrderExecutionReport, *_nethttp.Response, error) {\n\tvar (\n\t\tlocalVarHTTPMethod = _nethttp.MethodPost\n\t\tlocalVarPostBody interface{}\n\t\tlocalVarFormFileName string\n\t\tlocalVarFileName string\n\t\tlocalVarFileBytes []byte\n\t\tlocalVarReturnValue OrderExecutionReport\n\t)\n\n\t// create path and map variables\n\tlocalVarPath := a.client.cfg.BasePath + \"/v1/orders/cancel\"\n\tlocalVarHeaderParams := make(map[string]string)\n\tlocalVarQueryParams := _neturl.Values{}\n\tlocalVarFormParams := _neturl.Values{}\n\n\t// to determine the Content-Type header\n\tlocalVarHTTPContentTypes := []string{\"application/json\"}\n\n\t// set Content-Type header\n\tlocalVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)\n\tif localVarHTTPContentType != \"\" {\n\t\tlocalVarHeaderParams[\"Content-Type\"] = localVarHTTPContentType\n\t}\n\n\t// to determine the Accept header\n\tlocalVarHTTPHeaderAccepts := []string{\"application/json\", \"appliction/json\"}\n\n\t// set Accept header\n\tlocalVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)\n\tif localVarHTTPHeaderAccept != \"\" {\n\t\tlocalVarHeaderParams[\"Accept\"] = localVarHTTPHeaderAccept\n\t}\n\t// body params\n\tlocalVarPostBody = &orderCancelSingleRequest\n\tr, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)\n\tif err != nil {\n\t\treturn localVarReturnValue, nil, err\n\t}\n\n\tlocalVarHTTPResponse, err := a.client.callAPI(r)\n\tif err != nil || localVarHTTPResponse == nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tlocalVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)\n\tlocalVarHTTPResponse.Body.Close()\n\tif err != nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tif localVarHTTPResponse.StatusCode >= 300 {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: localVarHTTPResponse.Status,\n\t\t}\n\t\tif localVarHTTPResponse.StatusCode == 400 {\n\t\t\tvar v ValidationError\n\t\t\terr = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\t\t\tif err != nil {\n\t\t\t\tnewErr.error = err.Error()\n\t\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t\t}\n\t\t\tnewErr.model = v\n\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t}\n\t\tif localVarHTTPResponse.StatusCode == 490 {\n\t\t\tvar v Message\n\t\t\terr = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\t\t\tif err != nil {\n\t\t\t\tnewErr.error = err.Error()\n\t\t\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t\t\t}\n\t\t\tnewErr.model = v\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\terr = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\tif err != nil {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: err.Error(),\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\treturn localVarReturnValue, localVarHTTPResponse, nil\n}",
"func (h *HitBTC) CancelExistingOrder(ctx context.Context, orderID int64) (bool, error) {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tapiOrder+\"/\"+strconv.FormatInt(orderID, 10),\n\t\tvalues,\n\t\ttradingRequests,\n\t\t&result)\n\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn false, errors.New(result.Error)\n\t}\n\n\treturn true, nil\n}",
"func (o *Okcoin) WsCancelMultipleOrders(args []CancelTradeOrderRequest) ([]TradeOrderResponse, error) {\n\tvar err error\n\tif len(args) == 0 {\n\t\treturn nil, fmt.Errorf(\"%w, 0 length place order requests\", errNilArgument)\n\t}\n\tfor x := range args {\n\t\terr = args[x].validate()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\tvar resp []TradeOrderResponse\n\treturn resp, o.SendWebsocketRequest(\"batch-cancel-orders\", args, &resp, true)\n}",
"func (r *rpcClient) CancelScheduled(ctx context.Context, seq ...int64) error {\n\tctx, span := startConsumerSpanFromContext(ctx, \"sb.rpcClient.CancelScheduled\")\n\tdefer span.End()\n\n\tif err := r.ensureConn(ctx); err != nil {\n\t\ttab.For(ctx).Error(err)\n\t\treturn err\n\t}\n\n\tr.clientMu.RLock()\n\tdefer r.clientMu.RUnlock()\n\n\tmsg := &amqp.Message{\n\t\tApplicationProperties: map[string]interface{}{\n\t\t\toperationFieldName: cancelScheduledOperationID,\n\t\t},\n\t\tValue: map[string]interface{}{\n\t\t\t\"sequence-numbers\": seq,\n\t\t},\n\t}\n\n\tif deadline, ok := ctx.Deadline(); ok {\n\t\tmsg.ApplicationProperties[serverTimeoutFieldName] = uint(time.Until(deadline) / time.Millisecond)\n\t}\n\n\tlink, err := rpc.NewLink(r.client, r.ec.ManagementPath())\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tresp, err := link.RetryableRPC(ctx, 5, 5*time.Second, msg)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif resp.Code != 200 {\n\t\treturn ErrAMQP(*resp)\n\t}\n\n\treturn nil\n}",
"func (b *Bitmex) CancelAllOrders(ctx context.Context, _ *order.Cancel) (order.CancelAllResponse, error) {\n\tcancelAllOrdersResponse := order.CancelAllResponse{\n\t\tStatus: make(map[string]string),\n\t}\n\tvar emptyParams OrderCancelAllParams\n\torders, err := b.CancelAllExistingOrders(ctx, emptyParams)\n\tif err != nil {\n\t\treturn cancelAllOrdersResponse, err\n\t}\n\n\tfor i := range orders {\n\t\tif orders[i].OrdRejReason != \"\" {\n\t\t\tcancelAllOrdersResponse.Status[orders[i].OrderID] = orders[i].OrdRejReason\n\t\t}\n\t}\n\n\treturn cancelAllOrdersResponse, nil\n}",
"func (s *Socket) sendOrderCanceled(o *Order) error {\n\tfmt.Printf(\"Send order canceled message\")\n\tp := &OrderPayload{Order: o}\n\tm := &Message{MessageType: ORDER_CANCELED, Payload: p}\n\tif err := s.connection.WriteJSON(&m); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (b *Bitmex) CancelBatchOrders(ctx context.Context, o []order.Cancel) (*order.CancelBatchResponse, error) {\n\tif len(o) == 0 {\n\t\treturn nil, order.ErrCancelOrderIsNil\n\t}\n\tvar orderIDs, clientIDs []string\n\tfor i := range o {\n\t\tswitch {\n\t\tcase o[i].ClientOrderID != \"\":\n\t\t\tclientIDs = append(clientIDs, o[i].ClientID)\n\t\tcase o[i].OrderID != \"\":\n\t\t\torderIDs = append(orderIDs, o[i].OrderID)\n\t\tdefault:\n\t\t\treturn nil, order.ErrOrderIDNotSet\n\t\t}\n\t}\n\tjoinedOrderIDs := strings.Join(orderIDs, \",\")\n\tjoinedClientIDs := strings.Join(clientIDs, \",\")\n\tparams := &OrderCancelParams{\n\t\tOrderID: joinedOrderIDs,\n\t\tClientOrderID: joinedClientIDs,\n\t}\n\tresp := &order.CancelBatchResponse{\n\t\tStatus: make(map[string]string),\n\t}\n\tcancelResponse, err := b.CancelOrders(ctx, params)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor i := range cancelResponse {\n\t\tresp.Status[cancelResponse[i].OrderID] = cancelResponse[i].OrdStatus\n\t}\n\treturn resp, nil\n}",
"func (r *PurchasesService) Cancel(packageName string, subscriptionId string, token string) *PurchasesCancelCall {\n\treturn &PurchasesCancelCall{\n\t\ts: r.s,\n\t\tpackageName: packageName,\n\t\tsubscriptionId: subscriptionId,\n\t\ttoken: token,\n\t\tcaller_: googleapi.JSONCall{},\n\t\tparams_: make(map[string][]string),\n\t\tpathTemplate_: \"{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel\",\n\t\tcontext_: googleapi.NoContext,\n\t}\n}",
"func (h *Hbdm) CancelAllOrders(symbol string) (resp *CancelAllOrdersResponse, err error) {\n\tpayload := make(map[string]interface{}, 1)\n\tpayload[\"symbol\"] = symbol\n\n\tr, err := h.client.do(\"POST\", \"contract_cancelall\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (o *CancelOrderBody) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := o.validateBaseReq(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := o.validateOrderID(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif len(res) > 0 {\n\t\treturn errors.CompositeValidationError(res...)\n\t}\n\treturn nil\n}",
"func (h *Handler) cancel(c echo.Context) (e error) {\n\tctx := c.(*cuxs.Context)\n\tvar r cancelRequest\n\tvar id int64\n\tvar sr *model.SalesReturn\n\n\tif id, e = common.Decrypt(ctx.Param(\"id\")); e == nil {\n\t\tif sr, e = ShowSalesReturn(\"id\", id); e == nil {\n\t\t\tr.SR = sr\n\t\t\tif e = ctx.Bind(&r); e == nil {\n\t\t\t\tif e = CancelSalesReturn(sr); e == nil {\n\t\t\t\t\tif e = UpdateExpense(sr); e == nil {\n\t\t\t\t\t\tctx.Data(sr)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\te = echo.ErrNotFound\n\t\t}\n\t}\n\n\treturn ctx.Serve(e)\n}",
"func (r *mutationResolver) StorefrontAirswapCancelled(ctx context.Context) (string, error) {\n\t// token := auth.ForContext(ctx)\n\t// if token == nil {\n\t// \treturn \"\", ErrAccessDenied\n\t// }\n\n\t// err := r.storefrontService.PurchaseTransactionCancel(token.Sub)\n\t// if err != nil {\n\t// \treturn ResponseError, err\n\t// }\n\n\t// return ResponseOK, nil\n\treturn ResponseNotImplemented, nil\n}",
"func PerformCancel(instance *adyen.Adyen, w http.ResponseWriter, r *http.Request) {\n\tr.ParseForm()\n\n\treq := &adyen.Cancel{\n\t\tReference: r.Form.Get(\"reference\"), // order number or some business reference\n\t\tMerchantAccount: instance.MerchantAccount, // Merchant Account setting\n\t\tOriginalReference: r.Form.Get(\"original-reference\"), // PSP reference that came as authorization result\n\t}\n\n\tg, err := instance.Modification().Cancel(req)\n\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tresponse, err := json.Marshal(g)\n\n\tw.Header().Set(\"Content-Type\", \"application/json\")\n\tw.Write(response)\n}",
"func Cancel(session *discordgo.Session, message *discordgo.MessageCreate, env *botenv.BotEnv) {\n\t// Parse out the index rune.\n\tf := (strings.Fields(message.Content))\n\tid := f[len(f)-1]\n\ti, errConv := strconv.ParseInt(id, 16, 32)\n\tif errConv != nil {\n\t\treturn\n\t}\n\tr := rune(i)\n\t// Check the rune.\n\tif r < lodb.IDMIN || r > lodb.IDMAX*lodb.TICKPERIOD {\n\t\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"The ID %s is not within an acceptable range.\", string(r)))\n\t\treturn\n\t}\n\t// Delete.\n\terr := env.Repo.Delete(message.Author.ID, r)\n\tif err != nil {\n\t\tenv.Log.Error(\n\t\t\t\"Error deleting user's query.\",\n\t\t\tzap.Error(err))\n\t\tsession.ChannelMessageSend(message.ChannelID, \"The was a problem trying to delete that query.\")\n\t\treturn\n\t}\n\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"Query %X was canceled.\", r))\n}",
"func (p *Poloniex) CancelMultipleOrdersByIDs(ctx context.Context, orderIDs, clientOrderIDs []string) ([]CancelOrdersResponse, error) {\n\tvalues := url.Values{}\n\tif len(orderIDs) > 0 {\n\t\tvalues.Set(\"orderIds\", strings.Join(orderIDs, \",\"))\n\t}\n\tif len(clientOrderIDs) > 0 {\n\t\tvalues.Set(\"clientOrderIds\", strings.Join(clientOrderIDs, \",\"))\n\t}\n\tvar result []CancelOrdersResponse\n\treturn result, p.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tpoloniexCancelByIDs,\n\t\tvalues,\n\t\t&result)\n}",
"func (p *Poloniex) CancelExistingOrder(ctx context.Context, orderID int64) error {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\tvalues.Set(\"orderNumber\", strconv.FormatInt(orderID, 10))\n\n\terr := p.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, poloniexOrderCancel, values, &result)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn errors.New(result.Error)\n\t}\n\n\treturn nil\n}",
"func (r *Response) Cancel(ctx context.Context) (*Response, error) {\n\tif r.CancelResponse == nil || len(r.CancelResponse.FormValues) == 0 {\n\t\treturn nil, errors.New(\"valid cancel is missing from idx response\")\n\t}\n\tm := make(map[string]interface{})\n\tfor i := range r.CancelResponse.FormValues {\n\t\tm[r.CancelResponse.FormValues[i].Name] = r.CancelResponse.FormValues[i].Value\n\t}\n\tbody, err := json.Marshal(m)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to marshal cancel request: %w\", err)\n\t}\n\treq, err := http.NewRequestWithContext(ctx, r.CancelResponse.Method, r.CancelResponse.Href, bytes.NewReader(body))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create cancel request: %w\", err)\n\t}\n\treq.Header.Set(\"Accepts\", r.CancelResponse.Accepts)\n\treq.Header.Set(\"Content-Type\", r.CancelResponse.Accepts)\n\toktahttp.WithOktaUserAgent(req, packageVersion)\n\tresp, err := idx.httpClient.Do(req)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"http call has failed: %w\", err)\n\t}\n\tvar idxResponse Response\n\terr = unmarshalResponse(resp, &idxResponse)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &idxResponse, nil\n}",
"func (book *OrderBook) cancelBuyOrder(orderID string) error {\n\tfor i, o := range book.BuyOrders {\n\t\tif o.ID == orderID {\n\t\t\t// TODO update status of persisted order to \"cancelled\"\n\t\t\t// need to do this after the orders are persisted\n\t\t\t// persisted orders will eventually load at startup using\n\t\t\t// status == pending\n\t\t\tbook.removeBuyOrder(i)\n\t\t\treturn nil\n\t\t}\n\t}\n\treturn fmt.Errorf(\"orderID: %s not found\", orderID)\n}",
"func (req *DronaRequest) Cancel() error {\n\tif req.cancelFunc != nil {\n\t\treq.cancelFunc()\n\t}\n\treturn nil\n}",
"func (r *OperationsService) Cancel(name string) *OperationsCancelCall {\n\tc := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.name = name\n\treturn c\n}",
"func (h *HUOBI) CancelAllSwapTriggerOrders(ctx context.Context, contractCode currency.Pair) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\tcodeValue, err := h.FormatSymbol(contractCode, asset.CoinMarginedFutures)\n\tif err != nil {\n\t\treturn resp, err\n\t}\n\treq[\"contract_code\"] = codeValue\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelAllTriggerOrders, nil, req, &resp)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall {\n\tc := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.name = name\n\tc.canceloperationrequest = canceloperationrequest\n\treturn c\n}",
"func (s *Server) CtxCancel() {\n\tif s.ctxCancel != nil {\n\t\t(*s.ctxCancel)()\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ValidateOrder(opts *bind.CallOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"validateOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n\treturn *ret0, err\n}",
"func (client RoleAssignmentScheduleRequestsClient) Cancel(ctx context.Context, scope string, roleAssignmentScheduleRequestName string) (result autorest.Response, err error) {\n\tif tracing.IsEnabled() {\n\t\tctx = tracing.StartSpan(ctx, fqdn+\"/RoleAssignmentScheduleRequestsClient.Cancel\")\n\t\tdefer func() {\n\t\t\tsc := -1\n\t\t\tif result.Response != nil {\n\t\t\t\tsc = result.Response.StatusCode\n\t\t\t}\n\t\t\ttracing.EndSpan(ctx, sc, err)\n\t\t}()\n\t}\n\treq, err := client.CancelPreparer(ctx, scope, roleAssignmentScheduleRequestName)\n\tif err != nil {\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", nil, \"Failure preparing request\")\n\t\treturn\n\t}\n\n\tresp, err := client.CancelSender(req)\n\tif err != nil {\n\t\tresult.Response = resp\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", resp, \"Failure sending request\")\n\t\treturn\n\t}\n\n\tresult, err = client.CancelResponder(resp)\n\tif err != nil {\n\t\terr = autorest.NewErrorWithError(err, \"authorization.RoleAssignmentScheduleRequestsClient\", \"Cancel\", resp, \"Failure responding to request\")\n\t\treturn\n\t}\n\n\treturn\n}",
"func (r *Response) Cancel() error {\n\t\n}"
] | [
"0.8095167",
"0.79525244",
"0.7317299",
"0.7305675",
"0.7303598",
"0.7011708",
"0.7001808",
"0.6930809",
"0.6595677",
"0.65249676",
"0.64875716",
"0.6481205",
"0.64004415",
"0.6361269",
"0.6356929",
"0.6338153",
"0.631968",
"0.6274525",
"0.6241835",
"0.6222396",
"0.6180692",
"0.6140264",
"0.61261",
"0.60944706",
"0.60314417",
"0.6018632",
"0.58783716",
"0.58712596",
"0.58667463",
"0.58352625",
"0.5799163",
"0.5790706",
"0.57832557",
"0.5771253",
"0.5758896",
"0.57528925",
"0.57524717",
"0.57202226",
"0.57115996",
"0.56975967",
"0.5682833",
"0.5661776",
"0.5598825",
"0.5594929",
"0.55757",
"0.55599946",
"0.5555089",
"0.5532424",
"0.5508221",
"0.550184",
"0.5487382",
"0.5480898",
"0.547197",
"0.5431917",
"0.5423964",
"0.54204786",
"0.5416954",
"0.54124886",
"0.53524095",
"0.53470033",
"0.5305149",
"0.5286814",
"0.528089",
"0.526769",
"0.52619666",
"0.52156234",
"0.5204728",
"0.51962554",
"0.5172782",
"0.5165941",
"0.51629233",
"0.5156249",
"0.5155895",
"0.51340324",
"0.51260364",
"0.5115744",
"0.51108694",
"0.5110444",
"0.51093644",
"0.5108832",
"0.510214",
"0.50941306",
"0.5088129",
"0.5054074",
"0.50463533",
"0.5043698",
"0.503518",
"0.502667",
"0.5025536",
"0.50211626",
"0.50178826",
"0.50092864",
"0.4996364",
"0.49846572",
"0.49831262",
"0.49795917",
"0.49739334",
"0.49727756",
"0.49652904",
"0.4955963"
] | 0.8145404 | 0 |
ChangeMinimumMakerProtocolFee is a paid mutator transaction binding the contract method 0x14350c24. Solidity: function changeMinimumMakerProtocolFee(uint256 newMinimumMakerProtocolFee) returns() | func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "changeMinimumMakerProtocolFee", newMinimumMakerProtocolFee)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (x *fastReflection_Bech32PrefixRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (brutx *BotRecordUpdateTransaction) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\treturn (&BotRecordUpdateTransactionExtension{\n\t\tIdentifier: brutx.Identifier,\n\t\tSignature: brutx.Signature,\n\t\tAddressUpdate: brutx.Addresses,\n\t\tNameUpdate: brutx.Names,\n\t\tNrOfMonths: brutx.NrOfMonths,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (brtx *BotRegistrationTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotRegistrationTransactionExtension{\n\t\tAddresses: brtx.Addresses,\n\t\tNames: brtx.Names,\n\t\tNrOfMonths: brtx.NrOfMonths,\n\t\tIdentification: brtx.Identification,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (c *Config) SetMinimumFees(fees types.BaseCoins) { c.MinFees = fees.String() }",
"func (x *fastReflection_Bech32PrefixResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.Bech32PrefixResponse.bech32_prefix\":\n\t\tpanic(fmt.Errorf(\"field bech32_prefix of message cosmos.auth.v1beta1.Bech32PrefixResponse is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactorSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_Mevsky *MevskyTransactor) SetMinBounty(opts *bind.TransactOpts, newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"setMinBounty\", newMinBounty)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (bnttx *BotNameTransferTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotNameTransferTransactionExtension{\n\t\tSender: bnttx.Sender,\n\t\tReceiver: bnttx.Receiver,\n\t\tNames: bnttx.Names,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactor) ChangeRequirement(opts *bind.TransactOpts, _required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.contract.Transact(opts, \"changeRequirement\", _required)\n}",
"func (brutxe *BotRecordUpdateTransactionExtension) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\t// all additional months have to be paid\n\tif brutxe.NrOfMonths > 0 {\n\t\tfee = fee.Add(ComputeMonthlyBotFees(brutxe.NrOfMonths, oneCoin))\n\t}\n\t// a Tx that modifies the network address info of a 3bot record also has to be paid\n\tif len(brutxe.AddressUpdate.Add) > 0 || len(brutxe.AddressUpdate.Remove) > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeeForNetworkAddressInfoChangeMultiplier))\n\t}\n\t// each additional name has to be paid as well\n\t// (regardless of the fact that the 3bot has a name or not)\n\tif n := len(brutxe.NameUpdate.Add); n > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(n)))\n\t}\n\t// return the total fees\n\treturn fee\n}",
"func (brtxe *BotRegistrationTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\t// a static registration fee has to be paid\n\tfee := oneCoin.Mul64(BotRegistrationFeeMultiplier)\n\t// the amount of desired months also has to be paid\n\tfee = fee.Add(ComputeMonthlyBotFees(brtxe.NrOfMonths, oneCoin))\n\t// if more than one name is defined it also has to be paid\n\tif n := len(brtxe.Names); n > 1 {\n\t\tfee = fee.Add(oneCoin.Mul64(uint64(n-1) * BotFeePerAdditionalNameMultiplier))\n\t}\n\t// no fee has to be paid for the used network addresses during registration\n\t// return the total fees\n\treturn fee\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minTxRelayFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to get\n\t// minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minRelayTxFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to\n\t// get minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func (bnttxe *BotNameTransferTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(len(bnttxe.Names)))\n}",
"func (x *fastReflection_SendEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.bank.v1beta1.SendEnabled.denom\":\n\t\tpanic(fmt.Errorf(\"field denom of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tcase \"cosmos.bank.v1beta1.SendEnabled.enabled\":\n\t\tpanic(fmt.Errorf(\"field enabled of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.bank.v1beta1.SendEnabled\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.bank.v1beta1.SendEnabled does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_Mevsky *MevskySession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func ExpectedFee(f ForwardingPolicy, htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {\n\n\t// TODO(roasbeef): write some basic table driven tests\n\treturn f.BaseFee + (htlcAmt*f.FeeRate)/1000000\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"updateMinimumBalance\", pool, tokenAddress)\n}",
"func (c *Config) MinimumFees() types.BaseCoins {\n\tfees, err := types.ParseCoins(c.MinFees)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"invalid minimum fees: %v\", err))\n\t}\n\treturn fees\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func minimumPayment(dailyRate float64, monthly_days int, minPayment float64, month int, budget int, balance float64, id string) model.MonthlyPayment {\n\n\tinterestPayment := balance * dailyRate * float64(monthly_days)\n\tprincipalPayment := minPayment - interestPayment\n\n\tif balance < minPayment {\n\t\tprincipalPayment = balance\n\t}\n\n\tbalance = balance - principalPayment\n\n\tmonthlyPay := model.MonthlyPayment{ID: id, Month: month, Interest: interestPayment, PrincipalPayment: principalPayment, RemainingBalance: balance}\n\n\tfmt.Println(monthlyPay)\n\n\treturn monthlyPay\n}",
"func main() {\n\n\tconst (\n\t\turl = `http://dev:8888`\n\t\twif = `5JP1fUXwPxuKuNryh5BEsFhZqnh59yVtpHqHxMMTmtjcni48bqC`\n\t)\n\n\t// error helper\n\tlog.SetFlags(log.LstdFlags | log.Lshortfile)\n\tfatal := func(err error) {\n\t\tif err != nil {\n\t\t\ttrace := log.Output(2, err.Error())\n\t\t\tlog.Fatal(trace)\n\t\t}\n\t}\n\n\taccount, api, opts, err := fio.NewWifConnect(wif, url)\n\tfatal(err)\n\n\taction := fio.NewSetFeeVote(defaultRatios(), account.Actor).ToEos() // note casting to *eos.Action\n\n\t// this is a large tx, without compression it might fail\n\topts.Compress = fio.CompressionZlib\n\t// overriding the default compression requires a using different function\n\tresp, err := api.SignPushActionsWithOpts([]*eos.Action{action}, &opts.TxOptions)\n\tfatal(err)\n\n\t// print result\n\tj, _ := json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// Now set the fee multiplier\n\tvar (\n\t\ttokenPriceUsd float64 = 0.08 // for the example assume 1 FIO is worth 8 cents\n\t\ttargetUsd float64 = 2.00 // and the goal is for regaddress to cost $2.00\n\t\tregaddressFeeValue float64 = 2000000000 / 1_000_000_000 // and the current fee value is set to 2 FIO (in SUF)\n\t)\n\n\t// 12.5\n\tmultiplier := targetUsd / (regaddressFeeValue * tokenPriceUsd)\n\n\t// submit and print the result\n\tresp, err = api.SignPushActions(fio.NewSetFeeMult(multiplier, account.Actor))\n\tfatal(err)\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// it's also important that computefees is called frequently, the on-chain fees don't change automatically without it\n\t// this call won't always have any work to do, so it's safe to ignore errors.\n\tresp, err = api.SignPushActions(fio.NewComputeFees(account.Actor))\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n}",
"func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetPinMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"pinMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (_Mevsky *MevskyTransactorSession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (x *fastReflection_MsgWithdrawDelegatorReward) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.delegator_address\":\n\t\tpanic(fmt.Errorf(\"field delegator_address of message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward is not mutable\"))\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (client AccountQuotaPolicyClient) UpdateSender(req *http.Request) (future AccountQuotaPolicyUpdateFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (x *fastReflection_QueryModuleAccountsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryModuleAccountsRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.QueryModuleAccountsRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgFundCommunityPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgDepositValidatorRewardsPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (client Client) ChangeSizeSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}",
"func mineNewBlock (block *Block) {\n proofPrefix := strings.Repeat(\"0\", difficulty)\n for calculateHash(*block)[:difficulty] != proofPrefix {\n block.Nonce ++\n }\n\n block.Hash = calculateHash(*block)\n}",
"func (x *fastReflection_AddressStringToBytesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.AddressStringToBytesRequest.address_string\":\n\t\tpanic(fmt.Errorf(\"field address_string of message cosmos.auth.v1beta1.AddressStringToBytesRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.AddressStringToBytesRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.AddressStringToBytesRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeToSetter\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (tb *transactionBuilder) AddMinerFee(fee types.Currency) uint64 {\n\ttb.transaction.MinerFees = append(tb.transaction.MinerFees, fee)\n\treturn uint64(len(tb.transaction.MinerFees) - 1)\n}",
"func (tb *transactionBuilder) AddMinerFee(fee types.Currency) uint64 {\n\ttb.transaction.MinerFees = append(tb.transaction.MinerFees, fee)\n\treturn uint64(len(tb.transaction.MinerFees) - 1)\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (g *channelClient) SetAutoMining(ctx context.Context, in *ty.MinerFlag) (*types.Reply, error) {\n\tdata, err := g.ExecWalletFunc(ty.TicketX, \"WalletAutoMiner\", in)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn data.(*types.Reply), nil\n}",
"func (n *OpenBazaarNode) SetSelfAsModerator(ctx context.Context, modInfo *models.ModeratorInfo, done chan struct{}) error {\n\tif (int(modInfo.Fee.FeeType) == 0 || int(modInfo.Fee.FeeType) == 2) && modInfo.Fee.FixedFee == nil {\n\t\tmaybeCloseDone(done)\n\t\treturn errors.New(\"fixed fee must be set when using a fixed fee type\")\n\t}\n\n\terr := n.repo.DB().Update(func(tx database.Tx) error {\n\t\tvar (\n\t\t\tprefs models.UserPreferences\n\t\t\tcurrencies []string\n\t\t)\n\t\terr := tx.Read().First(&prefs).Error\n\t\tif err == nil {\n\t\t\tcurrencies, err = prefs.PreferredCurrencies()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tif len(currencies) == 0 {\n\t\t\tfor ct := range n.multiwallet {\n\t\t\t\tcurrencies = append(currencies, ct.CurrencyCode())\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tprofile, err := tx.GetProfile()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprofile.ModeratorInfo = modInfo\n\t\tprofile.Moderator = true\n\n\t\tif err := tx.SetProfile(profile); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tapi, err := coreapi.NewCoreAPI(n.ipfsNode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This sets us as a \"provider\" in the DHT for the moderator key.\n\t\t// Other peers can find us by doing a DHT GetProviders query for\n\t\t// the same key.\n\t\t_, err = api.Block().Put(ctx, strings.NewReader(moderatorTopic))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tmaybeCloseDone(done)\n\t\treturn err\n\t}\n\tn.Publish(done)\n\treturn nil\n}",
"func (back *backend) Mine(ctx context.Context,\n\ttx *types.Transaction) (*types.Receipt, error) {\n\tswitch conn := back.connect.(type) {\n\tcase *ethclient.Client:\n\t\treturn bind.WaitMined(ctx, conn, tx)\n\tcase *backends.SimulatedBackend:\n\t\tconn.Commit()\n\t\treturn bind.WaitMined(ctx, conn, tx)\n\t}\n\treturn nil, ErrInvalidBackend\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func TestCmpctBlockFeeFilterVersion(t *testing.T) {\n\t// Use the protocol version just prior to BIP0152Version changes.\n\tpver := BIP0152Version - 1\n\tenc := BaseEncoding\n\n\tmsg, err := NewMsgCmpctBlockFromBlock(&blockOne, nil)\n\tif err != nil {\n\t\tt.Fatalf(\"NewMsgCmpctBlockFromBlock: failed to build CmpctBlock %s\", err.Error())\n\t}\n\n\t// Test encode with old protocol version.\n\tvar buf bytes.Buffer\n\terr = msg.BchEncode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"encode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n\n\t// Test decode with old protocol version.\n\treadmsg := MsgCmpctBlock{}\n\terr = readmsg.BchDecode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"decode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n}",
"func (x *fastReflection_MsgCommunityPoolSpendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func TestCheckMinerFees(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\t// Create a transaction pool tester.\n\ttpt, err := createTpoolTester(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer tpt.Close()\n\n\t// Prepare a bunch of outputs for a series of graphs to fill up the\n\t// transaction pool.\n\tgraphLens := 200 // 40 kb per graph\n\tnumGraphs := (int(TransactionPoolSizeTarget) * 4 / 3) / (graphLens * 206) // 206 is the size of a single input-output graph txn.\n\tgraphFund := types.SiacoinPrecision.Mul64(1000)\n\tvar outputs []types.SiacoinOutput\n\tfor i := 0; i < numGraphs+1; i++ {\n\t\toutputs = append(outputs, types.SiacoinOutput{\n\t\t\tUnlockHash: types.UnlockConditions{}.UnlockHash(),\n\t\t\tValue: graphFund,\n\t\t})\n\t}\n\ttxns, err := tpt.wallet.SendSiacoinsMulti(outputs)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\t// Mine the graph setup in the consensus set so that the graph outputs are\n\t// distinct transaction sets.\n\t_, err = tpt.miner.AddBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Recommended fees at this point should be the minimum.\n\tminRec, maxRec := tpt.tpool.FeeEstimation()\n\tif minRec.Cmp(minEstimation) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee minimum\")\n\t}\n\tif maxRec.Cmp(minEstimation.Mul64(3)) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee min maximum\")\n\t}\n\n\t// Fill the transaction pool to the fee limit.\n\tfor i := 0; i < TransactionPoolSizeForFee/10e3; i++ {\n\t\tarbData := make([]byte, 10e3)\n\t\tcopy(arbData, modules.PrefixNonSia[:])\n\t\tfastrand.Read(arbData[100:116]) // prevents collisions with other transacitons in the loop.\n\t\ttxn := types.Transaction{ArbitraryData: [][]byte{arbData}}\n\t\terr := tpt.tpool.AcceptTransactionSet([]types.Transaction{txn})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Add another transaction, this one should fail for having too few fees.\n\terr = tpt.tpool.AcceptTransactionSet([]types.Transaction{{}})\n\tif err != errLowMinerFees {\n\t\tt.Error(err)\n\t}\n\n\t// Add a transaction that has sufficient fees.\n\t_, err = tpt.wallet.SendSiacoins(types.SiacoinPrecision.Mul64(50), types.UnlockHash{})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create all of the graphs.\n\tfinalTxn := txns[len(txns)-1]\n\tfor i := 0; i < numGraphs; i++ {\n\t\tvar edges []types.TransactionGraphEdge\n\t\tfor j := 0; j < graphLens; j++ {\n\t\t\tedges = append(edges, types.TransactionGraphEdge{\n\t\t\t\tDest: j + 1,\n\t\t\t\tFee: types.SiacoinPrecision,\n\t\t\t\tSource: j,\n\t\t\t\tValue: graphFund.Sub(types.SiacoinPrecision.Mul64(uint64(j + 1))),\n\t\t\t})\n\t\t}\n\t\tgraph, err := types.TransactionGraph(finalTxn.SiacoinOutputID(uint64(i)), edges)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = tpt.tpool.AcceptTransactionSet(graph)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Try to submit a transaction with too few fees.\n\tsource := finalTxn.SiacoinOutputID(uint64(numGraphs))\n\tlowFee := types.SiacoinPrecision.Div64(3)\n\tremaining := types.SiacoinPrecision.Mul64(1000).Sub(lowFee)\n\tedge := types.TransactionGraphEdge{\n\t\tDest: 1,\n\t\tFee: lowFee,\n\t\tSource: 0,\n\t\tValue: remaining,\n\t}\n\tlowFeeGraph, err := types.TransactionGraph(source, []types.TransactionGraphEdge{edge})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\terr = tpt.tpool.AcceptTransactionSet(lowFeeGraph)\n\tif err != errLowMinerFees {\n\t\tt.Fatal(err)\n\t}\n}",
"func (customer *Customer) CustomerCheckBitcoin(check bool) (err error) {\n\n\tvar currentTrigger ssm.Trigger\n\n\tcurrentTrigger = TriggerCustomerChecksBitcoin\n\n\tswitch check {\n\n\tcase true:\n\t\t// Do a check if state machine is in correct state for triggering event\n\t\tif customer.CustomerStateMachine.CanFire(currentTrigger.Key) == true {\n\t\t\terr = nil\n\n\t\t} else {\n\n\t\t\terr = customer.CustomerStateMachine.Fire(currentTrigger.Key, nil)\n\t\t}\n\n\tcase false:\n\t\t// Execute Trigger\n\t\terr = customer.CustomerStateMachine.Fire(currentTrigger.Key, nil)\n\t\tif err != nil {\n\t\t\tlogTriggerStateError(4, customer.CustomerStateMachine.State(), currentTrigger, err)\n\n\t\t}\n\t}\n\n\treturn err\n\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgUpdateParamsResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgUpdateParamsResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgSetWithdrawAddress) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgSetWithdrawAddress.delegator_address\":\n\t\tpanic(fmt.Errorf(\"field delegator_address of message cosmos.distribution.v1beta1.MsgSetWithdrawAddress is not mutable\"))\n\tcase \"cosmos.distribution.v1beta1.MsgSetWithdrawAddress.withdraw_address\":\n\t\tpanic(fmt.Errorf(\"field withdraw_address of message cosmos.distribution.v1beta1.MsgSetWithdrawAddress is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgSetWithdrawAddress\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgSetWithdrawAddress does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (tx *Tx) change(s *bscript.Script, f *FeeQuote, newOutput bool) (uint64, bool, error) {\r\n\tinputAmount := tx.TotalInputSatoshis()\r\n\toutputAmount := tx.TotalOutputSatoshis()\r\n\r\n\tif inputAmount < outputAmount {\r\n\t\treturn 0, false, errors.New(\"satoshis inputted to the tx are less than the outputted satoshis\")\r\n\t}\r\n\r\n\tavailable := inputAmount - outputAmount\r\n\r\n\tstandardFees, err := f.Fee(FeeTypeStandard)\r\n\tif err != nil {\r\n\t\treturn 0, false, errors.New(\"standard fees not found\")\r\n\t}\r\n\tif !tx.canAddChange(available, standardFees) {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tif newOutput {\r\n\t\ttx.AddOutput(&Output{Satoshis: 0, LockingScript: s})\r\n\t}\r\n\r\n\tvar txFee uint64\r\n\tif txFee, err = tx.getTransactionFees(f); err != nil {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tavailable -= txFee\r\n\r\n\treturn available, true, nil\r\n}",
"func (x *fastReflection_MsgSetWithdrawAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (x *fastReflection_AddressBytesToStringRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.AddressBytesToStringRequest.address_bytes\":\n\t\tpanic(fmt.Errorf(\"field address_bytes of message cosmos.auth.v1beta1.AddressBytesToStringRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.AddressBytesToStringRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.AddressBytesToStringRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_PromiseValidator *PromiseValidatorTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_PromiseValidator *PromiseValidatorTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.contract.Transact(opts, \"changeOwner\", _newOwner)\n}",
"func (x *fastReflection_MsgFundCommunityPool) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgFundCommunityPool.amount\":\n\t\tif x.Amount == nil {\n\t\t\tx.Amount = []*v1beta1.Coin{}\n\t\t}\n\t\tvalue := &_MsgFundCommunityPool_1_list{list: &x.Amount}\n\t\treturn protoreflect.ValueOfList(value)\n\tcase \"cosmos.distribution.v1beta1.MsgFundCommunityPool.depositor\":\n\t\tpanic(fmt.Errorf(\"field depositor of message cosmos.distribution.v1beta1.MsgFundCommunityPool is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgFundCommunityPool\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgFundCommunityPool does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func MockFee(randomized bool) *Fee {\n\treturn &Fee{\n\t\tGasLimit: 50000,\n\t\tGasPrice: 100,\n\t}\n}",
"func rpcToFee(req *looprpc.LiquidityParameters) (liquidity.FeeLimit,\n\terror) {\n\n\t// Check which fee limit type we have values set for. If any fields\n\t// relevant to our individual categories are set, we count that type\n\t// as set.\n\tisFeePPM := req.FeePpm != 0\n\tisCategories := req.MaxSwapFeePpm != 0 || req.MaxRoutingFeePpm != 0 ||\n\t\treq.MaxPrepayRoutingFeePpm != 0 || req.MaxMinerFeeSat != 0 ||\n\t\treq.MaxPrepaySat != 0 || req.SweepFeeRateSatPerVbyte != 0\n\n\tswitch {\n\tcase isFeePPM && isCategories:\n\t\treturn nil, errors.New(\"set either fee ppm, or individual \" +\n\t\t\t\"fee categories\")\n\tcase isFeePPM:\n\t\treturn liquidity.NewFeePortion(req.FeePpm), nil\n\n\tcase isCategories:\n\t\tsatPerVbyte := chainfee.SatPerKVByte(\n\t\t\treq.SweepFeeRateSatPerVbyte * 1000,\n\t\t)\n\n\t\treturn liquidity.NewFeeCategoryLimit(\n\t\t\treq.MaxSwapFeePpm,\n\t\t\treq.MaxRoutingFeePpm,\n\t\t\treq.MaxPrepayRoutingFeePpm,\n\t\t\tbtcutil.Amount(req.MaxMinerFeeSat),\n\t\t\tbtcutil.Amount(req.MaxPrepaySat),\n\t\t\tsatPerVbyte.FeePerKWeight(),\n\t\t), nil\n\n\tdefault:\n\t\treturn nil, errors.New(\"no fee categories set\")\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeToSetter\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (x *fastReflection_QueryAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.QueryAccountRequest.address\":\n\t\tpanic(fmt.Errorf(\"field address of message cosmos.auth.v1beta1.QueryAccountRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.QueryAccountRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (*GatewayMiningFuelChange) Descriptor() ([]byte, []int) {\n\treturn file_wallet_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.8147527",
"0.8105333",
"0.7943164",
"0.7721548",
"0.76400995",
"0.7583856",
"0.7448806",
"0.733604",
"0.7159078",
"0.6871133",
"0.67571056",
"0.61098784",
"0.5777656",
"0.574222",
"0.5533976",
"0.5464535",
"0.53879267",
"0.5346387",
"0.5345425",
"0.53273547",
"0.5281435",
"0.5276952",
"0.52630824",
"0.5242866",
"0.5196142",
"0.5177703",
"0.51171213",
"0.5113018",
"0.5100037",
"0.50957346",
"0.50768536",
"0.50400776",
"0.4991659",
"0.4991129",
"0.49891594",
"0.4988439",
"0.49767193",
"0.49491164",
"0.48942626",
"0.48709422",
"0.4863117",
"0.48461166",
"0.4838523",
"0.48383385",
"0.4825584",
"0.48237884",
"0.4805601",
"0.48022884",
"0.47962773",
"0.47826204",
"0.4775981",
"0.47735062",
"0.47710925",
"0.4770447",
"0.47655103",
"0.47649962",
"0.47481108",
"0.47473317",
"0.4744823",
"0.47372293",
"0.47267774",
"0.46988586",
"0.46910325",
"0.46564278",
"0.46471474",
"0.46394384",
"0.4639122",
"0.4638896",
"0.4632064",
"0.46200684",
"0.4617271",
"0.4611936",
"0.46021622",
"0.46021622",
"0.4600709",
"0.4600404",
"0.45979148",
"0.4596546",
"0.4586937",
"0.45792896",
"0.45699978",
"0.45658726",
"0.4559183",
"0.45514104",
"0.45498425",
"0.4546767",
"0.45458657",
"0.45429704",
"0.4541756",
"0.45340303",
"0.45308512",
"0.45306614",
"0.45285717",
"0.45199674",
"0.4518709",
"0.45133212",
"0.4513166",
"0.45037585",
"0.45014143",
"0.4495207"
] | 0.8454004 | 0 |
ChangeMinimumMakerProtocolFee is a paid mutator transaction binding the contract method 0x14350c24. Solidity: function changeMinimumMakerProtocolFee(uint256 newMinimumMakerProtocolFee) returns() | func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {
return _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (x *fastReflection_Bech32PrefixRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (brutx *BotRecordUpdateTransaction) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\treturn (&BotRecordUpdateTransactionExtension{\n\t\tIdentifier: brutx.Identifier,\n\t\tSignature: brutx.Signature,\n\t\tAddressUpdate: brutx.Addresses,\n\t\tNameUpdate: brutx.Names,\n\t\tNrOfMonths: brutx.NrOfMonths,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (brtx *BotRegistrationTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotRegistrationTransactionExtension{\n\t\tAddresses: brtx.Addresses,\n\t\tNames: brtx.Names,\n\t\tNrOfMonths: brtx.NrOfMonths,\n\t\tIdentification: brtx.Identification,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (c *Config) SetMinimumFees(fees types.BaseCoins) { c.MinFees = fees.String() }",
"func (x *fastReflection_Bech32PrefixResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.Bech32PrefixResponse.bech32_prefix\":\n\t\tpanic(fmt.Errorf(\"field bech32_prefix of message cosmos.auth.v1beta1.Bech32PrefixResponse is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactorSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_Mevsky *MevskyTransactor) SetMinBounty(opts *bind.TransactOpts, newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"setMinBounty\", newMinBounty)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (bnttx *BotNameTransferTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotNameTransferTransactionExtension{\n\t\tSender: bnttx.Sender,\n\t\tReceiver: bnttx.Receiver,\n\t\tNames: bnttx.Names,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactor) ChangeRequirement(opts *bind.TransactOpts, _required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.contract.Transact(opts, \"changeRequirement\", _required)\n}",
"func (brutxe *BotRecordUpdateTransactionExtension) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\t// all additional months have to be paid\n\tif brutxe.NrOfMonths > 0 {\n\t\tfee = fee.Add(ComputeMonthlyBotFees(brutxe.NrOfMonths, oneCoin))\n\t}\n\t// a Tx that modifies the network address info of a 3bot record also has to be paid\n\tif len(brutxe.AddressUpdate.Add) > 0 || len(brutxe.AddressUpdate.Remove) > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeeForNetworkAddressInfoChangeMultiplier))\n\t}\n\t// each additional name has to be paid as well\n\t// (regardless of the fact that the 3bot has a name or not)\n\tif n := len(brutxe.NameUpdate.Add); n > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(n)))\n\t}\n\t// return the total fees\n\treturn fee\n}",
"func (brtxe *BotRegistrationTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\t// a static registration fee has to be paid\n\tfee := oneCoin.Mul64(BotRegistrationFeeMultiplier)\n\t// the amount of desired months also has to be paid\n\tfee = fee.Add(ComputeMonthlyBotFees(brtxe.NrOfMonths, oneCoin))\n\t// if more than one name is defined it also has to be paid\n\tif n := len(brtxe.Names); n > 1 {\n\t\tfee = fee.Add(oneCoin.Mul64(uint64(n-1) * BotFeePerAdditionalNameMultiplier))\n\t}\n\t// no fee has to be paid for the used network addresses during registration\n\t// return the total fees\n\treturn fee\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minTxRelayFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to get\n\t// minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minRelayTxFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to\n\t// get minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func (bnttxe *BotNameTransferTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(len(bnttxe.Names)))\n}",
"func (x *fastReflection_SendEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.bank.v1beta1.SendEnabled.denom\":\n\t\tpanic(fmt.Errorf(\"field denom of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tcase \"cosmos.bank.v1beta1.SendEnabled.enabled\":\n\t\tpanic(fmt.Errorf(\"field enabled of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.bank.v1beta1.SendEnabled\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.bank.v1beta1.SendEnabled does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_Mevsky *MevskySession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func ExpectedFee(f ForwardingPolicy, htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {\n\n\t// TODO(roasbeef): write some basic table driven tests\n\treturn f.BaseFee + (htlcAmt*f.FeeRate)/1000000\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"updateMinimumBalance\", pool, tokenAddress)\n}",
"func (c *Config) MinimumFees() types.BaseCoins {\n\tfees, err := types.ParseCoins(c.MinFees)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"invalid minimum fees: %v\", err))\n\t}\n\treturn fees\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func minimumPayment(dailyRate float64, monthly_days int, minPayment float64, month int, budget int, balance float64, id string) model.MonthlyPayment {\n\n\tinterestPayment := balance * dailyRate * float64(monthly_days)\n\tprincipalPayment := minPayment - interestPayment\n\n\tif balance < minPayment {\n\t\tprincipalPayment = balance\n\t}\n\n\tbalance = balance - principalPayment\n\n\tmonthlyPay := model.MonthlyPayment{ID: id, Month: month, Interest: interestPayment, PrincipalPayment: principalPayment, RemainingBalance: balance}\n\n\tfmt.Println(monthlyPay)\n\n\treturn monthlyPay\n}",
"func main() {\n\n\tconst (\n\t\turl = `http://dev:8888`\n\t\twif = `5JP1fUXwPxuKuNryh5BEsFhZqnh59yVtpHqHxMMTmtjcni48bqC`\n\t)\n\n\t// error helper\n\tlog.SetFlags(log.LstdFlags | log.Lshortfile)\n\tfatal := func(err error) {\n\t\tif err != nil {\n\t\t\ttrace := log.Output(2, err.Error())\n\t\t\tlog.Fatal(trace)\n\t\t}\n\t}\n\n\taccount, api, opts, err := fio.NewWifConnect(wif, url)\n\tfatal(err)\n\n\taction := fio.NewSetFeeVote(defaultRatios(), account.Actor).ToEos() // note casting to *eos.Action\n\n\t// this is a large tx, without compression it might fail\n\topts.Compress = fio.CompressionZlib\n\t// overriding the default compression requires a using different function\n\tresp, err := api.SignPushActionsWithOpts([]*eos.Action{action}, &opts.TxOptions)\n\tfatal(err)\n\n\t// print result\n\tj, _ := json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// Now set the fee multiplier\n\tvar (\n\t\ttokenPriceUsd float64 = 0.08 // for the example assume 1 FIO is worth 8 cents\n\t\ttargetUsd float64 = 2.00 // and the goal is for regaddress to cost $2.00\n\t\tregaddressFeeValue float64 = 2000000000 / 1_000_000_000 // and the current fee value is set to 2 FIO (in SUF)\n\t)\n\n\t// 12.5\n\tmultiplier := targetUsd / (regaddressFeeValue * tokenPriceUsd)\n\n\t// submit and print the result\n\tresp, err = api.SignPushActions(fio.NewSetFeeMult(multiplier, account.Actor))\n\tfatal(err)\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// it's also important that computefees is called frequently, the on-chain fees don't change automatically without it\n\t// this call won't always have any work to do, so it's safe to ignore errors.\n\tresp, err = api.SignPushActions(fio.NewComputeFees(account.Actor))\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n}",
"func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetPinMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"pinMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_Mevsky *MevskyTransactorSession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (x *fastReflection_MsgWithdrawDelegatorReward) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.delegator_address\":\n\t\tpanic(fmt.Errorf(\"field delegator_address of message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward is not mutable\"))\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (client AccountQuotaPolicyClient) UpdateSender(req *http.Request) (future AccountQuotaPolicyUpdateFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (x *fastReflection_QueryModuleAccountsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryModuleAccountsRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.QueryModuleAccountsRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgFundCommunityPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgDepositValidatorRewardsPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (client Client) ChangeSizeSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}",
"func mineNewBlock (block *Block) {\n proofPrefix := strings.Repeat(\"0\", difficulty)\n for calculateHash(*block)[:difficulty] != proofPrefix {\n block.Nonce ++\n }\n\n block.Hash = calculateHash(*block)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (x *fastReflection_AddressStringToBytesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.AddressStringToBytesRequest.address_string\":\n\t\tpanic(fmt.Errorf(\"field address_string of message cosmos.auth.v1beta1.AddressStringToBytesRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.AddressStringToBytesRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.AddressStringToBytesRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeToSetter\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (tb *transactionBuilder) AddMinerFee(fee types.Currency) uint64 {\n\ttb.transaction.MinerFees = append(tb.transaction.MinerFees, fee)\n\treturn uint64(len(tb.transaction.MinerFees) - 1)\n}",
"func (tb *transactionBuilder) AddMinerFee(fee types.Currency) uint64 {\n\ttb.transaction.MinerFees = append(tb.transaction.MinerFees, fee)\n\treturn uint64(len(tb.transaction.MinerFees) - 1)\n}",
"func (g *channelClient) SetAutoMining(ctx context.Context, in *ty.MinerFlag) (*types.Reply, error) {\n\tdata, err := g.ExecWalletFunc(ty.TicketX, \"WalletAutoMiner\", in)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn data.(*types.Reply), nil\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (n *OpenBazaarNode) SetSelfAsModerator(ctx context.Context, modInfo *models.ModeratorInfo, done chan struct{}) error {\n\tif (int(modInfo.Fee.FeeType) == 0 || int(modInfo.Fee.FeeType) == 2) && modInfo.Fee.FixedFee == nil {\n\t\tmaybeCloseDone(done)\n\t\treturn errors.New(\"fixed fee must be set when using a fixed fee type\")\n\t}\n\n\terr := n.repo.DB().Update(func(tx database.Tx) error {\n\t\tvar (\n\t\t\tprefs models.UserPreferences\n\t\t\tcurrencies []string\n\t\t)\n\t\terr := tx.Read().First(&prefs).Error\n\t\tif err == nil {\n\t\t\tcurrencies, err = prefs.PreferredCurrencies()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tif len(currencies) == 0 {\n\t\t\tfor ct := range n.multiwallet {\n\t\t\t\tcurrencies = append(currencies, ct.CurrencyCode())\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tprofile, err := tx.GetProfile()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprofile.ModeratorInfo = modInfo\n\t\tprofile.Moderator = true\n\n\t\tif err := tx.SetProfile(profile); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tapi, err := coreapi.NewCoreAPI(n.ipfsNode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This sets us as a \"provider\" in the DHT for the moderator key.\n\t\t// Other peers can find us by doing a DHT GetProviders query for\n\t\t// the same key.\n\t\t_, err = api.Block().Put(ctx, strings.NewReader(moderatorTopic))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tmaybeCloseDone(done)\n\t\treturn err\n\t}\n\tn.Publish(done)\n\treturn nil\n}",
"func (back *backend) Mine(ctx context.Context,\n\ttx *types.Transaction) (*types.Receipt, error) {\n\tswitch conn := back.connect.(type) {\n\tcase *ethclient.Client:\n\t\treturn bind.WaitMined(ctx, conn, tx)\n\tcase *backends.SimulatedBackend:\n\t\tconn.Commit()\n\t\treturn bind.WaitMined(ctx, conn, tx)\n\t}\n\treturn nil, ErrInvalidBackend\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func TestCmpctBlockFeeFilterVersion(t *testing.T) {\n\t// Use the protocol version just prior to BIP0152Version changes.\n\tpver := BIP0152Version - 1\n\tenc := BaseEncoding\n\n\tmsg, err := NewMsgCmpctBlockFromBlock(&blockOne, nil)\n\tif err != nil {\n\t\tt.Fatalf(\"NewMsgCmpctBlockFromBlock: failed to build CmpctBlock %s\", err.Error())\n\t}\n\n\t// Test encode with old protocol version.\n\tvar buf bytes.Buffer\n\terr = msg.BchEncode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"encode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n\n\t// Test decode with old protocol version.\n\treadmsg := MsgCmpctBlock{}\n\terr = readmsg.BchDecode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"decode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n}",
"func (x *fastReflection_MsgCommunityPoolSpendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func TestCheckMinerFees(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\t// Create a transaction pool tester.\n\ttpt, err := createTpoolTester(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer tpt.Close()\n\n\t// Prepare a bunch of outputs for a series of graphs to fill up the\n\t// transaction pool.\n\tgraphLens := 200 // 40 kb per graph\n\tnumGraphs := (int(TransactionPoolSizeTarget) * 4 / 3) / (graphLens * 206) // 206 is the size of a single input-output graph txn.\n\tgraphFund := types.SiacoinPrecision.Mul64(1000)\n\tvar outputs []types.SiacoinOutput\n\tfor i := 0; i < numGraphs+1; i++ {\n\t\toutputs = append(outputs, types.SiacoinOutput{\n\t\t\tUnlockHash: types.UnlockConditions{}.UnlockHash(),\n\t\t\tValue: graphFund,\n\t\t})\n\t}\n\ttxns, err := tpt.wallet.SendSiacoinsMulti(outputs)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\t// Mine the graph setup in the consensus set so that the graph outputs are\n\t// distinct transaction sets.\n\t_, err = tpt.miner.AddBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Recommended fees at this point should be the minimum.\n\tminRec, maxRec := tpt.tpool.FeeEstimation()\n\tif minRec.Cmp(minEstimation) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee minimum\")\n\t}\n\tif maxRec.Cmp(minEstimation.Mul64(3)) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee min maximum\")\n\t}\n\n\t// Fill the transaction pool to the fee limit.\n\tfor i := 0; i < TransactionPoolSizeForFee/10e3; i++ {\n\t\tarbData := make([]byte, 10e3)\n\t\tcopy(arbData, modules.PrefixNonSia[:])\n\t\tfastrand.Read(arbData[100:116]) // prevents collisions with other transacitons in the loop.\n\t\ttxn := types.Transaction{ArbitraryData: [][]byte{arbData}}\n\t\terr := tpt.tpool.AcceptTransactionSet([]types.Transaction{txn})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Add another transaction, this one should fail for having too few fees.\n\terr = tpt.tpool.AcceptTransactionSet([]types.Transaction{{}})\n\tif err != errLowMinerFees {\n\t\tt.Error(err)\n\t}\n\n\t// Add a transaction that has sufficient fees.\n\t_, err = tpt.wallet.SendSiacoins(types.SiacoinPrecision.Mul64(50), types.UnlockHash{})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create all of the graphs.\n\tfinalTxn := txns[len(txns)-1]\n\tfor i := 0; i < numGraphs; i++ {\n\t\tvar edges []types.TransactionGraphEdge\n\t\tfor j := 0; j < graphLens; j++ {\n\t\t\tedges = append(edges, types.TransactionGraphEdge{\n\t\t\t\tDest: j + 1,\n\t\t\t\tFee: types.SiacoinPrecision,\n\t\t\t\tSource: j,\n\t\t\t\tValue: graphFund.Sub(types.SiacoinPrecision.Mul64(uint64(j + 1))),\n\t\t\t})\n\t\t}\n\t\tgraph, err := types.TransactionGraph(finalTxn.SiacoinOutputID(uint64(i)), edges)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = tpt.tpool.AcceptTransactionSet(graph)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Try to submit a transaction with too few fees.\n\tsource := finalTxn.SiacoinOutputID(uint64(numGraphs))\n\tlowFee := types.SiacoinPrecision.Div64(3)\n\tremaining := types.SiacoinPrecision.Mul64(1000).Sub(lowFee)\n\tedge := types.TransactionGraphEdge{\n\t\tDest: 1,\n\t\tFee: lowFee,\n\t\tSource: 0,\n\t\tValue: remaining,\n\t}\n\tlowFeeGraph, err := types.TransactionGraph(source, []types.TransactionGraphEdge{edge})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\terr = tpt.tpool.AcceptTransactionSet(lowFeeGraph)\n\tif err != errLowMinerFees {\n\t\tt.Fatal(err)\n\t}\n}",
"func (customer *Customer) CustomerCheckBitcoin(check bool) (err error) {\n\n\tvar currentTrigger ssm.Trigger\n\n\tcurrentTrigger = TriggerCustomerChecksBitcoin\n\n\tswitch check {\n\n\tcase true:\n\t\t// Do a check if state machine is in correct state for triggering event\n\t\tif customer.CustomerStateMachine.CanFire(currentTrigger.Key) == true {\n\t\t\terr = nil\n\n\t\t} else {\n\n\t\t\terr = customer.CustomerStateMachine.Fire(currentTrigger.Key, nil)\n\t\t}\n\n\tcase false:\n\t\t// Execute Trigger\n\t\terr = customer.CustomerStateMachine.Fire(currentTrigger.Key, nil)\n\t\tif err != nil {\n\t\t\tlogTriggerStateError(4, customer.CustomerStateMachine.State(), currentTrigger, err)\n\n\t\t}\n\t}\n\n\treturn err\n\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgUpdateParamsResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgUpdateParamsResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgSetWithdrawAddress) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgSetWithdrawAddress.delegator_address\":\n\t\tpanic(fmt.Errorf(\"field delegator_address of message cosmos.distribution.v1beta1.MsgSetWithdrawAddress is not mutable\"))\n\tcase \"cosmos.distribution.v1beta1.MsgSetWithdrawAddress.withdraw_address\":\n\t\tpanic(fmt.Errorf(\"field withdraw_address of message cosmos.distribution.v1beta1.MsgSetWithdrawAddress is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgSetWithdrawAddress\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgSetWithdrawAddress does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (tx *Tx) change(s *bscript.Script, f *FeeQuote, newOutput bool) (uint64, bool, error) {\r\n\tinputAmount := tx.TotalInputSatoshis()\r\n\toutputAmount := tx.TotalOutputSatoshis()\r\n\r\n\tif inputAmount < outputAmount {\r\n\t\treturn 0, false, errors.New(\"satoshis inputted to the tx are less than the outputted satoshis\")\r\n\t}\r\n\r\n\tavailable := inputAmount - outputAmount\r\n\r\n\tstandardFees, err := f.Fee(FeeTypeStandard)\r\n\tif err != nil {\r\n\t\treturn 0, false, errors.New(\"standard fees not found\")\r\n\t}\r\n\tif !tx.canAddChange(available, standardFees) {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tif newOutput {\r\n\t\ttx.AddOutput(&Output{Satoshis: 0, LockingScript: s})\r\n\t}\r\n\r\n\tvar txFee uint64\r\n\tif txFee, err = tx.getTransactionFees(f); err != nil {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tavailable -= txFee\r\n\r\n\treturn available, true, nil\r\n}",
"func (x *fastReflection_MsgSetWithdrawAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (_PromiseValidator *PromiseValidatorTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (x *fastReflection_AddressBytesToStringRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.AddressBytesToStringRequest.address_bytes\":\n\t\tpanic(fmt.Errorf(\"field address_bytes of message cosmos.auth.v1beta1.AddressBytesToStringRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.AddressBytesToStringRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.AddressBytesToStringRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_PromiseValidator *PromiseValidatorTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.contract.Transact(opts, \"changeOwner\", _newOwner)\n}",
"func (x *fastReflection_MsgFundCommunityPool) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgFundCommunityPool.amount\":\n\t\tif x.Amount == nil {\n\t\t\tx.Amount = []*v1beta1.Coin{}\n\t\t}\n\t\tvalue := &_MsgFundCommunityPool_1_list{list: &x.Amount}\n\t\treturn protoreflect.ValueOfList(value)\n\tcase \"cosmos.distribution.v1beta1.MsgFundCommunityPool.depositor\":\n\t\tpanic(fmt.Errorf(\"field depositor of message cosmos.distribution.v1beta1.MsgFundCommunityPool is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgFundCommunityPool\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgFundCommunityPool does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func rpcToFee(req *looprpc.LiquidityParameters) (liquidity.FeeLimit,\n\terror) {\n\n\t// Check which fee limit type we have values set for. If any fields\n\t// relevant to our individual categories are set, we count that type\n\t// as set.\n\tisFeePPM := req.FeePpm != 0\n\tisCategories := req.MaxSwapFeePpm != 0 || req.MaxRoutingFeePpm != 0 ||\n\t\treq.MaxPrepayRoutingFeePpm != 0 || req.MaxMinerFeeSat != 0 ||\n\t\treq.MaxPrepaySat != 0 || req.SweepFeeRateSatPerVbyte != 0\n\n\tswitch {\n\tcase isFeePPM && isCategories:\n\t\treturn nil, errors.New(\"set either fee ppm, or individual \" +\n\t\t\t\"fee categories\")\n\tcase isFeePPM:\n\t\treturn liquidity.NewFeePortion(req.FeePpm), nil\n\n\tcase isCategories:\n\t\tsatPerVbyte := chainfee.SatPerKVByte(\n\t\t\treq.SweepFeeRateSatPerVbyte * 1000,\n\t\t)\n\n\t\treturn liquidity.NewFeeCategoryLimit(\n\t\t\treq.MaxSwapFeePpm,\n\t\t\treq.MaxRoutingFeePpm,\n\t\t\treq.MaxPrepayRoutingFeePpm,\n\t\t\tbtcutil.Amount(req.MaxMinerFeeSat),\n\t\t\tbtcutil.Amount(req.MaxPrepaySat),\n\t\t\tsatPerVbyte.FeePerKWeight(),\n\t\t), nil\n\n\tdefault:\n\t\treturn nil, errors.New(\"no fee categories set\")\n\t}\n}",
"func MockFee(randomized bool) *Fee {\n\treturn &Fee{\n\t\tGasLimit: 50000,\n\t\tGasPrice: 100,\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeToSetter\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (x *fastReflection_QueryAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.QueryAccountRequest.address\":\n\t\tpanic(fmt.Errorf(\"field address of message cosmos.auth.v1beta1.QueryAccountRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.QueryAccountRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (*GatewayMiningFuelChange) Descriptor() ([]byte, []int) {\n\treturn file_wallet_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.8454438",
"0.8148438",
"0.7942554",
"0.77212054",
"0.76399356",
"0.7583579",
"0.7448892",
"0.7335815",
"0.71579456",
"0.687029",
"0.67559004",
"0.61086947",
"0.5776628",
"0.57431227",
"0.5533592",
"0.5464956",
"0.53880423",
"0.5347942",
"0.53453887",
"0.5326604",
"0.5282999",
"0.5276155",
"0.5261391",
"0.52408713",
"0.51952314",
"0.51753116",
"0.5117368",
"0.51124406",
"0.50994366",
"0.50919384",
"0.5076035",
"0.5039234",
"0.49909708",
"0.49890065",
"0.4988619",
"0.49870786",
"0.49751183",
"0.49487144",
"0.48934913",
"0.48699895",
"0.4861011",
"0.48440325",
"0.48374084",
"0.48362496",
"0.48248163",
"0.4823581",
"0.48016956",
"0.48011243",
"0.4793725",
"0.47810662",
"0.4775039",
"0.4771747",
"0.47697577",
"0.4767732",
"0.47647765",
"0.476165",
"0.47482666",
"0.47479808",
"0.47444278",
"0.4735733",
"0.47251981",
"0.46973225",
"0.46909395",
"0.46557173",
"0.4646973",
"0.46404463",
"0.46383783",
"0.46378967",
"0.4631674",
"0.46197042",
"0.46147925",
"0.46095067",
"0.46017843",
"0.46017843",
"0.4601189",
"0.46000972",
"0.45989156",
"0.45966685",
"0.4587778",
"0.45777324",
"0.45688763",
"0.45654163",
"0.455743",
"0.4550399",
"0.4549979",
"0.45465586",
"0.4545299",
"0.45427963",
"0.4541416",
"0.45327955",
"0.45308566",
"0.45304242",
"0.45287102",
"0.4519152",
"0.45177415",
"0.45123738",
"0.45118862",
"0.45036668",
"0.4501296",
"0.44952813"
] | 0.8106215 | 2 |
ChangeMinimumMakerProtocolFee is a paid mutator transaction binding the contract method 0x14350c24. Solidity: function changeMinimumMakerProtocolFee(uint256 newMinimumMakerProtocolFee) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {
return _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (x *fastReflection_Bech32PrefixRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (brutx *BotRecordUpdateTransaction) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\treturn (&BotRecordUpdateTransactionExtension{\n\t\tIdentifier: brutx.Identifier,\n\t\tSignature: brutx.Signature,\n\t\tAddressUpdate: brutx.Addresses,\n\t\tNameUpdate: brutx.Names,\n\t\tNrOfMonths: brutx.NrOfMonths,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (brtx *BotRegistrationTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotRegistrationTransactionExtension{\n\t\tAddresses: brtx.Addresses,\n\t\tNames: brtx.Names,\n\t\tNrOfMonths: brtx.NrOfMonths,\n\t\tIdentification: brtx.Identification,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (c *Config) SetMinimumFees(fees types.BaseCoins) { c.MinFees = fees.String() }",
"func (x *fastReflection_Bech32PrefixResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.Bech32PrefixResponse.bech32_prefix\":\n\t\tpanic(fmt.Errorf(\"field bech32_prefix of message cosmos.auth.v1beta1.Bech32PrefixResponse is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactorSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_Mevsky *MevskyTransactor) SetMinBounty(opts *bind.TransactOpts, newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"setMinBounty\", newMinBounty)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (bnttx *BotNameTransferTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotNameTransferTransactionExtension{\n\t\tSender: bnttx.Sender,\n\t\tReceiver: bnttx.Receiver,\n\t\tNames: bnttx.Names,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactor) ChangeRequirement(opts *bind.TransactOpts, _required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.contract.Transact(opts, \"changeRequirement\", _required)\n}",
"func (brutxe *BotRecordUpdateTransactionExtension) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\t// all additional months have to be paid\n\tif brutxe.NrOfMonths > 0 {\n\t\tfee = fee.Add(ComputeMonthlyBotFees(brutxe.NrOfMonths, oneCoin))\n\t}\n\t// a Tx that modifies the network address info of a 3bot record also has to be paid\n\tif len(brutxe.AddressUpdate.Add) > 0 || len(brutxe.AddressUpdate.Remove) > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeeForNetworkAddressInfoChangeMultiplier))\n\t}\n\t// each additional name has to be paid as well\n\t// (regardless of the fact that the 3bot has a name or not)\n\tif n := len(brutxe.NameUpdate.Add); n > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(n)))\n\t}\n\t// return the total fees\n\treturn fee\n}",
"func (brtxe *BotRegistrationTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\t// a static registration fee has to be paid\n\tfee := oneCoin.Mul64(BotRegistrationFeeMultiplier)\n\t// the amount of desired months also has to be paid\n\tfee = fee.Add(ComputeMonthlyBotFees(brtxe.NrOfMonths, oneCoin))\n\t// if more than one name is defined it also has to be paid\n\tif n := len(brtxe.Names); n > 1 {\n\t\tfee = fee.Add(oneCoin.Mul64(uint64(n-1) * BotFeePerAdditionalNameMultiplier))\n\t}\n\t// no fee has to be paid for the used network addresses during registration\n\t// return the total fees\n\treturn fee\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minTxRelayFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to get\n\t// minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minRelayTxFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to\n\t// get minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func (bnttxe *BotNameTransferTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(len(bnttxe.Names)))\n}",
"func (x *fastReflection_SendEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.bank.v1beta1.SendEnabled.denom\":\n\t\tpanic(fmt.Errorf(\"field denom of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tcase \"cosmos.bank.v1beta1.SendEnabled.enabled\":\n\t\tpanic(fmt.Errorf(\"field enabled of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.bank.v1beta1.SendEnabled\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.bank.v1beta1.SendEnabled does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_Mevsky *MevskySession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func ExpectedFee(f ForwardingPolicy, htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {\n\n\t// TODO(roasbeef): write some basic table driven tests\n\treturn f.BaseFee + (htlcAmt*f.FeeRate)/1000000\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"updateMinimumBalance\", pool, tokenAddress)\n}",
"func (c *Config) MinimumFees() types.BaseCoins {\n\tfees, err := types.ParseCoins(c.MinFees)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"invalid minimum fees: %v\", err))\n\t}\n\treturn fees\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func minimumPayment(dailyRate float64, monthly_days int, minPayment float64, month int, budget int, balance float64, id string) model.MonthlyPayment {\n\n\tinterestPayment := balance * dailyRate * float64(monthly_days)\n\tprincipalPayment := minPayment - interestPayment\n\n\tif balance < minPayment {\n\t\tprincipalPayment = balance\n\t}\n\n\tbalance = balance - principalPayment\n\n\tmonthlyPay := model.MonthlyPayment{ID: id, Month: month, Interest: interestPayment, PrincipalPayment: principalPayment, RemainingBalance: balance}\n\n\tfmt.Println(monthlyPay)\n\n\treturn monthlyPay\n}",
"func main() {\n\n\tconst (\n\t\turl = `http://dev:8888`\n\t\twif = `5JP1fUXwPxuKuNryh5BEsFhZqnh59yVtpHqHxMMTmtjcni48bqC`\n\t)\n\n\t// error helper\n\tlog.SetFlags(log.LstdFlags | log.Lshortfile)\n\tfatal := func(err error) {\n\t\tif err != nil {\n\t\t\ttrace := log.Output(2, err.Error())\n\t\t\tlog.Fatal(trace)\n\t\t}\n\t}\n\n\taccount, api, opts, err := fio.NewWifConnect(wif, url)\n\tfatal(err)\n\n\taction := fio.NewSetFeeVote(defaultRatios(), account.Actor).ToEos() // note casting to *eos.Action\n\n\t// this is a large tx, without compression it might fail\n\topts.Compress = fio.CompressionZlib\n\t// overriding the default compression requires a using different function\n\tresp, err := api.SignPushActionsWithOpts([]*eos.Action{action}, &opts.TxOptions)\n\tfatal(err)\n\n\t// print result\n\tj, _ := json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// Now set the fee multiplier\n\tvar (\n\t\ttokenPriceUsd float64 = 0.08 // for the example assume 1 FIO is worth 8 cents\n\t\ttargetUsd float64 = 2.00 // and the goal is for regaddress to cost $2.00\n\t\tregaddressFeeValue float64 = 2000000000 / 1_000_000_000 // and the current fee value is set to 2 FIO (in SUF)\n\t)\n\n\t// 12.5\n\tmultiplier := targetUsd / (regaddressFeeValue * tokenPriceUsd)\n\n\t// submit and print the result\n\tresp, err = api.SignPushActions(fio.NewSetFeeMult(multiplier, account.Actor))\n\tfatal(err)\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// it's also important that computefees is called frequently, the on-chain fees don't change automatically without it\n\t// this call won't always have any work to do, so it's safe to ignore errors.\n\tresp, err = api.SignPushActions(fio.NewComputeFees(account.Actor))\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n}",
"func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetPinMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"pinMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_Mevsky *MevskyTransactorSession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (client AccountQuotaPolicyClient) UpdateSender(req *http.Request) (future AccountQuotaPolicyUpdateFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (x *fastReflection_MsgWithdrawDelegatorReward) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.delegator_address\":\n\t\tpanic(fmt.Errorf(\"field delegator_address of message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward is not mutable\"))\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (x *fastReflection_QueryModuleAccountsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryModuleAccountsRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.QueryModuleAccountsRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgFundCommunityPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgDepositValidatorRewardsPoolResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (client Client) ChangeSizeSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}",
"func mineNewBlock (block *Block) {\n proofPrefix := strings.Repeat(\"0\", difficulty)\n for calculateHash(*block)[:difficulty] != proofPrefix {\n block.Nonce ++\n }\n\n block.Hash = calculateHash(*block)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (x *fastReflection_AddressStringToBytesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.AddressStringToBytesRequest.address_string\":\n\t\tpanic(fmt.Errorf(\"field address_string of message cosmos.auth.v1beta1.AddressStringToBytesRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.AddressStringToBytesRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.AddressStringToBytesRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeToSetter\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (tb *transactionBuilder) AddMinerFee(fee types.Currency) uint64 {\n\ttb.transaction.MinerFees = append(tb.transaction.MinerFees, fee)\n\treturn uint64(len(tb.transaction.MinerFees) - 1)\n}",
"func (tb *transactionBuilder) AddMinerFee(fee types.Currency) uint64 {\n\ttb.transaction.MinerFees = append(tb.transaction.MinerFees, fee)\n\treturn uint64(len(tb.transaction.MinerFees) - 1)\n}",
"func (g *channelClient) SetAutoMining(ctx context.Context, in *ty.MinerFlag) (*types.Reply, error) {\n\tdata, err := g.ExecWalletFunc(ty.TicketX, \"WalletAutoMiner\", in)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn data.(*types.Reply), nil\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (n *OpenBazaarNode) SetSelfAsModerator(ctx context.Context, modInfo *models.ModeratorInfo, done chan struct{}) error {\n\tif (int(modInfo.Fee.FeeType) == 0 || int(modInfo.Fee.FeeType) == 2) && modInfo.Fee.FixedFee == nil {\n\t\tmaybeCloseDone(done)\n\t\treturn errors.New(\"fixed fee must be set when using a fixed fee type\")\n\t}\n\n\terr := n.repo.DB().Update(func(tx database.Tx) error {\n\t\tvar (\n\t\t\tprefs models.UserPreferences\n\t\t\tcurrencies []string\n\t\t)\n\t\terr := tx.Read().First(&prefs).Error\n\t\tif err == nil {\n\t\t\tcurrencies, err = prefs.PreferredCurrencies()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tif len(currencies) == 0 {\n\t\t\tfor ct := range n.multiwallet {\n\t\t\t\tcurrencies = append(currencies, ct.CurrencyCode())\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tprofile, err := tx.GetProfile()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprofile.ModeratorInfo = modInfo\n\t\tprofile.Moderator = true\n\n\t\tif err := tx.SetProfile(profile); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tapi, err := coreapi.NewCoreAPI(n.ipfsNode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This sets us as a \"provider\" in the DHT for the moderator key.\n\t\t// Other peers can find us by doing a DHT GetProviders query for\n\t\t// the same key.\n\t\t_, err = api.Block().Put(ctx, strings.NewReader(moderatorTopic))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tmaybeCloseDone(done)\n\t\treturn err\n\t}\n\tn.Publish(done)\n\treturn nil\n}",
"func (back *backend) Mine(ctx context.Context,\n\ttx *types.Transaction) (*types.Receipt, error) {\n\tswitch conn := back.connect.(type) {\n\tcase *ethclient.Client:\n\t\treturn bind.WaitMined(ctx, conn, tx)\n\tcase *backends.SimulatedBackend:\n\t\tconn.Commit()\n\t\treturn bind.WaitMined(ctx, conn, tx)\n\t}\n\treturn nil, ErrInvalidBackend\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func TestCmpctBlockFeeFilterVersion(t *testing.T) {\n\t// Use the protocol version just prior to BIP0152Version changes.\n\tpver := BIP0152Version - 1\n\tenc := BaseEncoding\n\n\tmsg, err := NewMsgCmpctBlockFromBlock(&blockOne, nil)\n\tif err != nil {\n\t\tt.Fatalf(\"NewMsgCmpctBlockFromBlock: failed to build CmpctBlock %s\", err.Error())\n\t}\n\n\t// Test encode with old protocol version.\n\tvar buf bytes.Buffer\n\terr = msg.BchEncode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"encode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n\n\t// Test decode with old protocol version.\n\treadmsg := MsgCmpctBlock{}\n\terr = readmsg.BchDecode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"decode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n}",
"func (x *fastReflection_MsgCommunityPoolSpendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func (customer *Customer) CustomerCheckBitcoin(check bool) (err error) {\n\n\tvar currentTrigger ssm.Trigger\n\n\tcurrentTrigger = TriggerCustomerChecksBitcoin\n\n\tswitch check {\n\n\tcase true:\n\t\t// Do a check if state machine is in correct state for triggering event\n\t\tif customer.CustomerStateMachine.CanFire(currentTrigger.Key) == true {\n\t\t\terr = nil\n\n\t\t} else {\n\n\t\t\terr = customer.CustomerStateMachine.Fire(currentTrigger.Key, nil)\n\t\t}\n\n\tcase false:\n\t\t// Execute Trigger\n\t\terr = customer.CustomerStateMachine.Fire(currentTrigger.Key, nil)\n\t\tif err != nil {\n\t\t\tlogTriggerStateError(4, customer.CustomerStateMachine.State(), currentTrigger, err)\n\n\t\t}\n\t}\n\n\treturn err\n\n}",
"func TestCheckMinerFees(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\t// Create a transaction pool tester.\n\ttpt, err := createTpoolTester(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer tpt.Close()\n\n\t// Prepare a bunch of outputs for a series of graphs to fill up the\n\t// transaction pool.\n\tgraphLens := 200 // 40 kb per graph\n\tnumGraphs := (int(TransactionPoolSizeTarget) * 4 / 3) / (graphLens * 206) // 206 is the size of a single input-output graph txn.\n\tgraphFund := types.SiacoinPrecision.Mul64(1000)\n\tvar outputs []types.SiacoinOutput\n\tfor i := 0; i < numGraphs+1; i++ {\n\t\toutputs = append(outputs, types.SiacoinOutput{\n\t\t\tUnlockHash: types.UnlockConditions{}.UnlockHash(),\n\t\t\tValue: graphFund,\n\t\t})\n\t}\n\ttxns, err := tpt.wallet.SendSiacoinsMulti(outputs)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\t// Mine the graph setup in the consensus set so that the graph outputs are\n\t// distinct transaction sets.\n\t_, err = tpt.miner.AddBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Recommended fees at this point should be the minimum.\n\tminRec, maxRec := tpt.tpool.FeeEstimation()\n\tif minRec.Cmp(minEstimation) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee minimum\")\n\t}\n\tif maxRec.Cmp(minEstimation.Mul64(3)) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee min maximum\")\n\t}\n\n\t// Fill the transaction pool to the fee limit.\n\tfor i := 0; i < TransactionPoolSizeForFee/10e3; i++ {\n\t\tarbData := make([]byte, 10e3)\n\t\tcopy(arbData, modules.PrefixNonSia[:])\n\t\tfastrand.Read(arbData[100:116]) // prevents collisions with other transacitons in the loop.\n\t\ttxn := types.Transaction{ArbitraryData: [][]byte{arbData}}\n\t\terr := tpt.tpool.AcceptTransactionSet([]types.Transaction{txn})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Add another transaction, this one should fail for having too few fees.\n\terr = tpt.tpool.AcceptTransactionSet([]types.Transaction{{}})\n\tif err != errLowMinerFees {\n\t\tt.Error(err)\n\t}\n\n\t// Add a transaction that has sufficient fees.\n\t_, err = tpt.wallet.SendSiacoins(types.SiacoinPrecision.Mul64(50), types.UnlockHash{})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create all of the graphs.\n\tfinalTxn := txns[len(txns)-1]\n\tfor i := 0; i < numGraphs; i++ {\n\t\tvar edges []types.TransactionGraphEdge\n\t\tfor j := 0; j < graphLens; j++ {\n\t\t\tedges = append(edges, types.TransactionGraphEdge{\n\t\t\t\tDest: j + 1,\n\t\t\t\tFee: types.SiacoinPrecision,\n\t\t\t\tSource: j,\n\t\t\t\tValue: graphFund.Sub(types.SiacoinPrecision.Mul64(uint64(j + 1))),\n\t\t\t})\n\t\t}\n\t\tgraph, err := types.TransactionGraph(finalTxn.SiacoinOutputID(uint64(i)), edges)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = tpt.tpool.AcceptTransactionSet(graph)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Try to submit a transaction with too few fees.\n\tsource := finalTxn.SiacoinOutputID(uint64(numGraphs))\n\tlowFee := types.SiacoinPrecision.Div64(3)\n\tremaining := types.SiacoinPrecision.Mul64(1000).Sub(lowFee)\n\tedge := types.TransactionGraphEdge{\n\t\tDest: 1,\n\t\tFee: lowFee,\n\t\tSource: 0,\n\t\tValue: remaining,\n\t}\n\tlowFeeGraph, err := types.TransactionGraph(source, []types.TransactionGraphEdge{edge})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\terr = tpt.tpool.AcceptTransactionSet(lowFeeGraph)\n\tif err != errLowMinerFees {\n\t\tt.Fatal(err)\n\t}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgUpdateParamsResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgUpdateParamsResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgSetWithdrawAddress) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgSetWithdrawAddress.delegator_address\":\n\t\tpanic(fmt.Errorf(\"field delegator_address of message cosmos.distribution.v1beta1.MsgSetWithdrawAddress is not mutable\"))\n\tcase \"cosmos.distribution.v1beta1.MsgSetWithdrawAddress.withdraw_address\":\n\t\tpanic(fmt.Errorf(\"field withdraw_address of message cosmos.distribution.v1beta1.MsgSetWithdrawAddress is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgSetWithdrawAddress\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgSetWithdrawAddress does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (tx *Tx) change(s *bscript.Script, f *FeeQuote, newOutput bool) (uint64, bool, error) {\r\n\tinputAmount := tx.TotalInputSatoshis()\r\n\toutputAmount := tx.TotalOutputSatoshis()\r\n\r\n\tif inputAmount < outputAmount {\r\n\t\treturn 0, false, errors.New(\"satoshis inputted to the tx are less than the outputted satoshis\")\r\n\t}\r\n\r\n\tavailable := inputAmount - outputAmount\r\n\r\n\tstandardFees, err := f.Fee(FeeTypeStandard)\r\n\tif err != nil {\r\n\t\treturn 0, false, errors.New(\"standard fees not found\")\r\n\t}\r\n\tif !tx.canAddChange(available, standardFees) {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tif newOutput {\r\n\t\ttx.AddOutput(&Output{Satoshis: 0, LockingScript: s})\r\n\t}\r\n\r\n\tvar txFee uint64\r\n\tif txFee, err = tx.getTransactionFees(f); err != nil {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tavailable -= txFee\r\n\r\n\treturn available, true, nil\r\n}",
"func (x *fastReflection_MsgSetWithdrawAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (_PromiseValidator *PromiseValidatorTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_PromiseValidator *PromiseValidatorTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.contract.Transact(opts, \"changeOwner\", _newOwner)\n}",
"func (x *fastReflection_AddressBytesToStringRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.AddressBytesToStringRequest.address_bytes\":\n\t\tpanic(fmt.Errorf(\"field address_bytes of message cosmos.auth.v1beta1.AddressBytesToStringRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.AddressBytesToStringRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.AddressBytesToStringRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (x *fastReflection_MsgFundCommunityPool) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgFundCommunityPool.amount\":\n\t\tif x.Amount == nil {\n\t\t\tx.Amount = []*v1beta1.Coin{}\n\t\t}\n\t\tvalue := &_MsgFundCommunityPool_1_list{list: &x.Amount}\n\t\treturn protoreflect.ValueOfList(value)\n\tcase \"cosmos.distribution.v1beta1.MsgFundCommunityPool.depositor\":\n\t\tpanic(fmt.Errorf(\"field depositor of message cosmos.distribution.v1beta1.MsgFundCommunityPool is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgFundCommunityPool\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgFundCommunityPool does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func rpcToFee(req *looprpc.LiquidityParameters) (liquidity.FeeLimit,\n\terror) {\n\n\t// Check which fee limit type we have values set for. If any fields\n\t// relevant to our individual categories are set, we count that type\n\t// as set.\n\tisFeePPM := req.FeePpm != 0\n\tisCategories := req.MaxSwapFeePpm != 0 || req.MaxRoutingFeePpm != 0 ||\n\t\treq.MaxPrepayRoutingFeePpm != 0 || req.MaxMinerFeeSat != 0 ||\n\t\treq.MaxPrepaySat != 0 || req.SweepFeeRateSatPerVbyte != 0\n\n\tswitch {\n\tcase isFeePPM && isCategories:\n\t\treturn nil, errors.New(\"set either fee ppm, or individual \" +\n\t\t\t\"fee categories\")\n\tcase isFeePPM:\n\t\treturn liquidity.NewFeePortion(req.FeePpm), nil\n\n\tcase isCategories:\n\t\tsatPerVbyte := chainfee.SatPerKVByte(\n\t\t\treq.SweepFeeRateSatPerVbyte * 1000,\n\t\t)\n\n\t\treturn liquidity.NewFeeCategoryLimit(\n\t\t\treq.MaxSwapFeePpm,\n\t\t\treq.MaxRoutingFeePpm,\n\t\t\treq.MaxPrepayRoutingFeePpm,\n\t\t\tbtcutil.Amount(req.MaxMinerFeeSat),\n\t\t\tbtcutil.Amount(req.MaxPrepaySat),\n\t\t\tsatPerVbyte.FeePerKWeight(),\n\t\t), nil\n\n\tdefault:\n\t\treturn nil, errors.New(\"no fee categories set\")\n\t}\n}",
"func MockFee(randomized bool) *Fee {\n\treturn &Fee{\n\t\tGasLimit: 50000,\n\t\tGasPrice: 100,\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeToSetter\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (x *fastReflection_QueryAccountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.QueryAccountRequest.address\":\n\t\tpanic(fmt.Errorf(\"field address of message cosmos.auth.v1beta1.QueryAccountRequest is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.QueryAccountRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (*GatewayMiningFuelChange) Descriptor() ([]byte, []int) {\n\treturn file_wallet_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.8454461",
"0.8106409",
"0.79427564",
"0.7721681",
"0.7640142",
"0.7583998",
"0.74491656",
"0.73363405",
"0.71589386",
"0.6871098",
"0.6756997",
"0.6108739",
"0.57770526",
"0.5742137",
"0.5532645",
"0.5464237",
"0.5387443",
"0.53471506",
"0.5344912",
"0.5327122",
"0.52823067",
"0.52767503",
"0.5261901",
"0.52418923",
"0.5194871",
"0.51752627",
"0.51165783",
"0.5112552",
"0.5099524",
"0.50933456",
"0.50758237",
"0.50389487",
"0.49901223",
"0.4990016",
"0.4988779",
"0.49877247",
"0.4976288",
"0.49477303",
"0.4893067",
"0.48701927",
"0.48624212",
"0.4845418",
"0.48379228",
"0.48371825",
"0.48243254",
"0.48227903",
"0.4803366",
"0.48015526",
"0.4795546",
"0.47812986",
"0.4774597",
"0.47728425",
"0.4770849",
"0.47691864",
"0.47640103",
"0.4763225",
"0.47481844",
"0.47465345",
"0.47436038",
"0.4737015",
"0.4725494",
"0.46966666",
"0.46895686",
"0.4655081",
"0.46461836",
"0.46406624",
"0.46389946",
"0.46383104",
"0.463057",
"0.46197617",
"0.46168384",
"0.4611481",
"0.46011913",
"0.46011913",
"0.4601177",
"0.45993125",
"0.4597647",
"0.4596579",
"0.45875737",
"0.45780724",
"0.45705584",
"0.45647213",
"0.45577803",
"0.4551383",
"0.4551064",
"0.45455813",
"0.45436603",
"0.454303",
"0.45399886",
"0.45325738",
"0.45315826",
"0.4529383",
"0.45293096",
"0.45186633",
"0.45181623",
"0.4513045",
"0.451212",
"0.45032665",
"0.4499716",
"0.44953752"
] | 0.8148457 | 1 |
ChangeMinimumTakerProtocolFee is a paid mutator transaction binding the contract method 0x1a6b13e2. Solidity: function changeMinimumTakerProtocolFee(uint256 newMinimumTakerProtocolFee) returns() | func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "changeMinimumTakerProtocolFee", newMinimumTakerProtocolFee)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (brtx *BotRegistrationTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotRegistrationTransactionExtension{\n\t\tAddresses: brtx.Addresses,\n\t\tNames: brtx.Names,\n\t\tNrOfMonths: brtx.NrOfMonths,\n\t\tIdentification: brtx.Identification,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_Mevsky *MevskyTransactor) SetMinBounty(opts *bind.TransactOpts, newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"setMinBounty\", newMinBounty)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactorSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (c *Config) SetMinimumFees(fees types.BaseCoins) { c.MinFees = fees.String() }",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (brutx *BotRecordUpdateTransaction) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\treturn (&BotRecordUpdateTransactionExtension{\n\t\tIdentifier: brutx.Identifier,\n\t\tSignature: brutx.Signature,\n\t\tAddressUpdate: brutx.Addresses,\n\t\tNameUpdate: brutx.Names,\n\t\tNrOfMonths: brutx.NrOfMonths,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (x *fastReflection_Bech32PrefixRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactor) ChangeRequirement(opts *bind.TransactOpts, _required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.contract.Transact(opts, \"changeRequirement\", _required)\n}",
"func (bnttx *BotNameTransferTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotNameTransferTransactionExtension{\n\t\tSender: bnttx.Sender,\n\t\tReceiver: bnttx.Receiver,\n\t\tNames: bnttx.Names,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_Mevsky *MevskySession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_Mevsky *MevskyTransactorSession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"updateMinimumBalance\", pool, tokenAddress)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (brtxe *BotRegistrationTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\t// a static registration fee has to be paid\n\tfee := oneCoin.Mul64(BotRegistrationFeeMultiplier)\n\t// the amount of desired months also has to be paid\n\tfee = fee.Add(ComputeMonthlyBotFees(brtxe.NrOfMonths, oneCoin))\n\t// if more than one name is defined it also has to be paid\n\tif n := len(brtxe.Names); n > 1 {\n\t\tfee = fee.Add(oneCoin.Mul64(uint64(n-1) * BotFeePerAdditionalNameMultiplier))\n\t}\n\t// no fee has to be paid for the used network addresses during registration\n\t// return the total fees\n\treturn fee\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (bnttxe *BotNameTransferTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(len(bnttxe.Names)))\n}",
"func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetPinMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"pinMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (x *fastReflection_Bech32PrefixResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.Bech32PrefixResponse.bech32_prefix\":\n\t\tpanic(fmt.Errorf(\"field bech32_prefix of message cosmos.auth.v1beta1.Bech32PrefixResponse is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (brutxe *BotRecordUpdateTransactionExtension) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\t// all additional months have to be paid\n\tif brutxe.NrOfMonths > 0 {\n\t\tfee = fee.Add(ComputeMonthlyBotFees(brutxe.NrOfMonths, oneCoin))\n\t}\n\t// a Tx that modifies the network address info of a 3bot record also has to be paid\n\tif len(brutxe.AddressUpdate.Add) > 0 || len(brutxe.AddressUpdate.Remove) > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeeForNetworkAddressInfoChangeMultiplier))\n\t}\n\t// each additional name has to be paid as well\n\t// (regardless of the fact that the 3bot has a name or not)\n\tif n := len(brutxe.NameUpdate.Add); n > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(n)))\n\t}\n\t// return the total fees\n\treturn fee\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (m *AospDeviceOwnerDeviceConfiguration) SetPasswordMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"passwordMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minTxRelayFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to get\n\t// minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minRelayTxFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to\n\t// get minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func mineNewBlock (block *Block) {\n proofPrefix := strings.Repeat(\"0\", difficulty)\n for calculateHash(*block)[:difficulty] != proofPrefix {\n block.Nonce ++\n }\n\n block.Hash = calculateHash(*block)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (client Client) ChangeSizeSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func minimumPayment(dailyRate float64, monthly_days int, minPayment float64, month int, budget int, balance float64, id string) model.MonthlyPayment {\n\n\tinterestPayment := balance * dailyRate * float64(monthly_days)\n\tprincipalPayment := minPayment - interestPayment\n\n\tif balance < minPayment {\n\t\tprincipalPayment = balance\n\t}\n\n\tbalance = balance - principalPayment\n\n\tmonthlyPay := model.MonthlyPayment{ID: id, Month: month, Interest: interestPayment, PrincipalPayment: principalPayment, RemainingBalance: balance}\n\n\tfmt.Println(monthlyPay)\n\n\treturn monthlyPay\n}",
"func (n *Node) BecomeValidator(genesisAmount uint64, seedAmount uint64, stakeAmount uint64, txFee uint64) *Node {\n\t// exports AVAX from the X Chain\n\texportTxID, err := n.client.XChainAPI().ExportAVAX(\n\t\tn.UserPass,\n\t\tnil, // from addrs\n\t\t\"\", // change addr\n\t\tseedAmount+txFee, // deducted (seedAmmount + txFee(ExportAVAX) ) - 1xFee deducted from XChain + 1xFee to be deducted from PChain Tx\n\t\tn.PAddress,\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to export AVAX to pchainAddress %s\", n.PAddress))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the XChain\n\terr = chainhelper.XChain().AwaitTransactionAcceptance(n.client, exportTxID, 120*time.Second)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to export AVAX from XChain Address %s\", n.XAddress))\n\t\treturn n\n\t}\n\n\t// imports the amount to the P Chain\n\timportTxID, err := n.client.PChainAPI().ImportAVAX( // receivedAmount = (sent - txFee)\n\t\tn.UserPass,\n\t\tnil, // from addrs\n\t\t\"\", // change addr\n\t\tn.PAddress,\n\t\tconstants.XChainID.String(),\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed import AVAX to PChain Address %s\", n.PAddress))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the PChain\n\terr = chainhelper.PChain().AwaitTransactionAcceptance(n.client, importTxID, constants.TimeoutDuration)\n\tif err != nil {\n\t\tpanic(err)\n\t\treturn n\n\t}\n\n\t// verify the PChain balance of seedAmount on the PChain (which should have been at 0)\n\terr = chainhelper.PChain().CheckBalance(n.client, n.PAddress, seedAmount) // balance = seedAmount = transferred + txFee\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"expected balance of seedAmount the stakeAmount was moved to XChain\"))\n\t\treturn n\n\t}\n\n\t// verify the XChain balance of (seedAmount - stakeAmount - 2*txFee) the stake was moved to PChain\n\terr = chainhelper.XChain().CheckBalance(n.client, n.XAddress, \"AVAX\", genesisAmount-seedAmount-2*txFee)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"expected balance of (seedAmount - stakeAmount - 2*txFee) the stake was moved to XChain\"))\n\t\treturn n\n\t}\n\n\t// add nodeID as a validator\n\tstakingStartTime := time.Now().Add(20 * time.Second)\n\tstartTime := uint64(stakingStartTime.Unix())\n\tendTime := uint64(stakingStartTime.Add(72 * time.Hour).Unix())\n\taddStakerTxID, err := n.client.PChainAPI().AddValidator(\n\t\tn.UserPass,\n\t\tnil,\n\t\t\"\",\n\t\tn.PAddress,\n\t\tn.NodeID,\n\t\tstakeAmount,\n\t\tstartTime,\n\t\tendTime,\n\t\tfloat32(2),\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to add validator to primary network %s\", n.id))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the PChain\n\terr = chainhelper.PChain().AwaitTransactionAcceptance(n.client, addStakerTxID, constants.TimeoutDuration)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"transaction not accepted\"))\n\t\treturn n\n\t}\n\n\t// waits until the validation period begins\n\ttime.Sleep(time.Until(stakingStartTime) + 3*time.Second)\n\n\t// verifies if the node is a current validator\n\tcurrentStakers, err := n.client.PChainAPI().GetCurrentValidators(ids.Empty)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Could not get current stakers.\"))\n\t\treturn n\n\t}\n\n\tfound := false\n\tfor _, stakerIntf := range currentStakers {\n\t\tstaker := stakerIntf.(map[string]interface{})\n\t\tif staker[\"nodeID\"] == n.NodeID {\n\t\t\tfound = true\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif !found {\n\t\tpanic(stacktrace.NewError(\"Node: %s not found in the stakers %v\", n.NodeID, currentStakers))\n\t\treturn n\n\t}\n\n\t// verifies the balance of the staker in the PChain - should be the seedAmmount - stakedAmount\n\terr = chainhelper.PChain().CheckBalance(n.client, n.PAddress, seedAmount-stakeAmount)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Error checking the PChain balance.\"))\n\t}\n\n\tlogrus.Infof(\"Verified the staker was added to current validators and has the expected P Chain balance.\")\n\n\treturn n\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeTake\", feeTake_)\n}",
"func (c *Config) MinimumFees() types.BaseCoins {\n\tfees, err := types.ParseCoins(c.MinFees)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"invalid minimum fees: %v\", err))\n\t}\n\treturn fees\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission does not contain field %s\", fd.FullName()))\n\t}\n}",
"func main() {\n\n\tconst (\n\t\turl = `http://dev:8888`\n\t\twif = `5JP1fUXwPxuKuNryh5BEsFhZqnh59yVtpHqHxMMTmtjcni48bqC`\n\t)\n\n\t// error helper\n\tlog.SetFlags(log.LstdFlags | log.Lshortfile)\n\tfatal := func(err error) {\n\t\tif err != nil {\n\t\t\ttrace := log.Output(2, err.Error())\n\t\t\tlog.Fatal(trace)\n\t\t}\n\t}\n\n\taccount, api, opts, err := fio.NewWifConnect(wif, url)\n\tfatal(err)\n\n\taction := fio.NewSetFeeVote(defaultRatios(), account.Actor).ToEos() // note casting to *eos.Action\n\n\t// this is a large tx, without compression it might fail\n\topts.Compress = fio.CompressionZlib\n\t// overriding the default compression requires a using different function\n\tresp, err := api.SignPushActionsWithOpts([]*eos.Action{action}, &opts.TxOptions)\n\tfatal(err)\n\n\t// print result\n\tj, _ := json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// Now set the fee multiplier\n\tvar (\n\t\ttokenPriceUsd float64 = 0.08 // for the example assume 1 FIO is worth 8 cents\n\t\ttargetUsd float64 = 2.00 // and the goal is for regaddress to cost $2.00\n\t\tregaddressFeeValue float64 = 2000000000 / 1_000_000_000 // and the current fee value is set to 2 FIO (in SUF)\n\t)\n\n\t// 12.5\n\tmultiplier := targetUsd / (regaddressFeeValue * tokenPriceUsd)\n\n\t// submit and print the result\n\tresp, err = api.SignPushActions(fio.NewSetFeeMult(multiplier, account.Actor))\n\tfatal(err)\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// it's also important that computefees is called frequently, the on-chain fees don't change automatically without it\n\t// this call won't always have any work to do, so it's safe to ignore errors.\n\tresp, err = api.SignPushActions(fio.NewComputeFees(account.Actor))\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (m *AndroidCompliancePolicy) SetPasswordMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"passwordMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func TestCmpctBlockFeeFilterVersion(t *testing.T) {\n\t// Use the protocol version just prior to BIP0152Version changes.\n\tpver := BIP0152Version - 1\n\tenc := BaseEncoding\n\n\tmsg, err := NewMsgCmpctBlockFromBlock(&blockOne, nil)\n\tif err != nil {\n\t\tt.Fatalf(\"NewMsgCmpctBlockFromBlock: failed to build CmpctBlock %s\", err.Error())\n\t}\n\n\t// Test encode with old protocol version.\n\tvar buf bytes.Buffer\n\terr = msg.BchEncode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"encode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n\n\t// Test decode with old protocol version.\n\treadmsg := MsgCmpctBlock{}\n\terr = readmsg.BchDecode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"decode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n}",
"func (_Authority *AuthorityTransactorSession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetWorkProfilePasswordMinimumLength(value *int32)() {\n m.workProfilePasswordMinimumLength = value\n}",
"func (m *ParameterMutator) Minimum(v float64) *ParameterMutator {\n\tm.proxy.minimum = &v\n\treturn m\n}",
"func (client AccountQuotaPolicyClient) UpdateSender(req *http.Request) (future AccountQuotaPolicyUpdateFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetPasswordMinimumLength(value *int32)() {\n m.passwordMinimumLength = value\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_PromiseValidator *PromiseValidatorTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_PromiseValidator *PromiseValidatorTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.contract.Transact(opts, \"changeOwner\", _newOwner)\n}",
"func (becdsakv *BondedECDSAKeepVendor) UpgradeFactory(\n\t_factory common.Address,\n\n\ttransactionOptions ...ethutil.TransactionOptions,\n) (*types.Transaction, error) {\n\tbecdsakvLogger.Debug(\n\t\t\"submitting transaction upgradeFactory\",\n\t\t\"params: \",\n\t\tfmt.Sprint(\n\t\t\t_factory,\n\t\t),\n\t)\n\n\tbecdsakv.transactionMutex.Lock()\n\tdefer becdsakv.transactionMutex.Unlock()\n\n\t// create a copy\n\ttransactorOptions := new(bind.TransactOpts)\n\t*transactorOptions = *becdsakv.transactorOptions\n\n\tif len(transactionOptions) > 1 {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"could not process multiple transaction options sets\",\n\t\t)\n\t} else if len(transactionOptions) > 0 {\n\t\ttransactionOptions[0].Apply(transactorOptions)\n\t}\n\n\tnonce, err := becdsakv.nonceManager.CurrentNonce()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to retrieve account nonce: %v\", err)\n\t}\n\n\ttransactorOptions.Nonce = new(big.Int).SetUint64(nonce)\n\n\ttransaction, err := becdsakv.contract.UpgradeFactory(\n\t\ttransactorOptions,\n\t\t_factory,\n\t)\n\tif err != nil {\n\t\treturn transaction, becdsakv.errorResolver.ResolveError(\n\t\t\terr,\n\t\t\tbecdsakv.transactorOptions.From,\n\t\t\tnil,\n\t\t\t\"upgradeFactory\",\n\t\t\t_factory,\n\t\t)\n\t}\n\n\tbecdsakvLogger.Infof(\n\t\t\"submitted transaction upgradeFactory with id: [%v] and nonce [%v]\",\n\t\ttransaction.Hash().Hex(),\n\t\ttransaction.Nonce(),\n\t)\n\n\tgo becdsakv.miningWaiter.ForceMining(\n\t\ttransaction,\n\t\tfunc(newGasPrice *big.Int) (*types.Transaction, error) {\n\t\t\ttransactorOptions.GasLimit = transaction.Gas()\n\t\t\ttransactorOptions.GasPrice = newGasPrice\n\n\t\t\ttransaction, err := becdsakv.contract.UpgradeFactory(\n\t\t\t\ttransactorOptions,\n\t\t\t\t_factory,\n\t\t\t)\n\t\t\tif err != nil {\n\t\t\t\treturn transaction, becdsakv.errorResolver.ResolveError(\n\t\t\t\t\terr,\n\t\t\t\t\tbecdsakv.transactorOptions.From,\n\t\t\t\t\tnil,\n\t\t\t\t\t\"upgradeFactory\",\n\t\t\t\t\t_factory,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tbecdsakvLogger.Infof(\n\t\t\t\t\"submitted transaction upgradeFactory with id: [%v] and nonce [%v]\",\n\t\t\t\ttransaction.Hash().Hex(),\n\t\t\t\ttransaction.Nonce(),\n\t\t\t)\n\n\t\t\treturn transaction, nil\n\t\t},\n\t)\n\n\tbecdsakv.nonceManager.IncrementNonce()\n\n\treturn transaction, err\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func ExpectedFee(f ForwardingPolicy, htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {\n\n\t// TODO(roasbeef): write some basic table driven tests\n\treturn f.BaseFee + (htlcAmt*f.FeeRate)/1000000\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (t *SimpleChaincode) updatetemp(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {\nvar key , jsonResp string\nvar err error\nfmt.Println(\"running updatetemp()\")\n\nif len(args) != 2 {\n jsonResp = \"Error :Incorrect number of arguments. Expecting 2. name of the key and temprature value to set\"\n return nil, errors.New(jsonResp)\n }\n\n\nkey = args[0]\nvar packageinfo PackageInfo\nvar temprature_reading int\n\nvalAsbytes, err := stub.GetState(key)\n\nif err != nil {\n jsonResp = \"Error :Failed to get state for \" + key\n return nil, errors.New(jsonResp)\n }\n\nerr = json.Unmarshal(valAsbytes, &packageinfo)\nif err != nil {\n fmt.Println(\"Could not marshal info object\", err)\n return nil, err\n }\n// validate pkd exist or not by checking temprature\nif packageinfo.PkgId != key{\n jsonResp = \" Error : Invalid PackageId Passed \"\n return nil, errors.New(jsonResp)\n }\n\n// check wheather the pkg temprature is in acceptable range and package in in valid status\nif packageinfo.PkgStatus == \"Pkg_Damaged\" {\n jsonResp = \" Error :Temprature thershold crossed - Package Damaged\"\n return nil, errors.New(jsonResp)\n }\n\ntemprature_reading, err = strconv.Atoi(args[1])\nif err != nil {\n\tjsonResp = \" Error : 2nd argument must be a numeric string\"\n \treturn nil, errors.New(jsonResp)\n\t}\n\n\nif temprature_reading > packageinfo.TempratureMax || temprature_reading < packageinfo.TempratureMin {\n packageinfo.PkgStatus = \"Pkg_Damaged\"\n }\n\nbytes, err := json.Marshal(&packageinfo)\nif err != nil {\n fmt.Println(\"Could not marshal personal info object\", err)\n return nil, err\n }\n\nerr = stub.PutState(key, bytes)\nif err != nil {\n return nil, err\n }\n\nreturn nil, nil\n}",
"func (b *Bitcoin) FeeRangeMin() float64 {\n\treturn b.feeRange.min\n}",
"func MockFee(randomized bool) *Fee {\n\treturn &Fee{\n\t\tGasLimit: 50000,\n\t\tGasPrice: 100,\n\t}\n}",
"func (n *OpenBazaarNode) SetSelfAsModerator(ctx context.Context, modInfo *models.ModeratorInfo, done chan struct{}) error {\n\tif (int(modInfo.Fee.FeeType) == 0 || int(modInfo.Fee.FeeType) == 2) && modInfo.Fee.FixedFee == nil {\n\t\tmaybeCloseDone(done)\n\t\treturn errors.New(\"fixed fee must be set when using a fixed fee type\")\n\t}\n\n\terr := n.repo.DB().Update(func(tx database.Tx) error {\n\t\tvar (\n\t\t\tprefs models.UserPreferences\n\t\t\tcurrencies []string\n\t\t)\n\t\terr := tx.Read().First(&prefs).Error\n\t\tif err == nil {\n\t\t\tcurrencies, err = prefs.PreferredCurrencies()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tif len(currencies) == 0 {\n\t\t\tfor ct := range n.multiwallet {\n\t\t\t\tcurrencies = append(currencies, ct.CurrencyCode())\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tprofile, err := tx.GetProfile()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprofile.ModeratorInfo = modInfo\n\t\tprofile.Moderator = true\n\n\t\tif err := tx.SetProfile(profile); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tapi, err := coreapi.NewCoreAPI(n.ipfsNode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This sets us as a \"provider\" in the DHT for the moderator key.\n\t\t// Other peers can find us by doing a DHT GetProviders query for\n\t\t// the same key.\n\t\t_, err = api.Block().Put(ctx, strings.NewReader(moderatorTopic))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tmaybeCloseDone(done)\n\t\treturn err\n\t}\n\tn.Publish(done)\n\treturn nil\n}",
"func TestMinDifficultyReduction(t *testing.T) {\n\t// Create chain params based on regnet params, but set the fields related to\n\t// proof-of-work difficulty to specific values expected by the tests.\n\tparams := chaincfg.RegNetParams\n\tparams.ReduceMinDifficulty = true\n\tparams.TargetTimePerBlock = time.Minute * 2\n\tparams.MinDiffReductionTime = time.Minute * 10 // ~99.3% chance to be mined\n\tparams.WorkDiffAlpha = 1\n\tparams.WorkDiffWindowSize = 144\n\tparams.WorkDiffWindows = 20\n\tparams.TargetTimespan = params.TargetTimePerBlock *\n\t\ttime.Duration(params.WorkDiffWindowSize)\n\tparams.RetargetAdjustmentFactor = 4\n\n\ttests := []struct {\n\t\tname string\n\t\ttimeAdjustment func(i int) time.Duration\n\t\tnumBlocks int64\n\t\texpectedDiff func(i int) uint32\n\t}{\n\t\t{\n\t\t\tname: \"genesis block\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: 1,\n\t\t\texpectedDiff: func(i int) uint32 { return params.PowLimitBits },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 1\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize - 2,\n\t\t\texpectedDiff: func(i int) uint32 { return 545259519 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 2\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 545259519 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 3\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 541100164 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 4\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 537954654 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 5\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 537141847 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 6\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 536938645 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 7\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 524428608 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 8\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 521177424 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 9\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520364628 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 10\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520161429 },\n\t\t},\n\t\t{\n\t\t\tname: \"alternate min diff blocks\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\tif i%2 == 0 {\n\t\t\t\t\treturn params.MinDiffReductionTime + time.Second\n\t\t\t\t}\n\t\t\t\treturn params.TargetTimePerBlock\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 {\n\t\t\t\tif i%2 == 0 && i != 0 {\n\t\t\t\t\treturn params.PowLimitBits\n\t\t\t\t}\n\t\t\t\treturn 507651392\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 1\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 509850141 },\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 2\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520138451 },\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 3\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520177692 },\n\t\t},\n\t}\n\n\tbc := newFakeChain(¶ms)\n\tnode := bc.bestChain.Tip()\n\tblockTime := time.Unix(node.timestamp, 0)\n\tfor _, test := range tests {\n\t\tfor i := 0; i < int(test.numBlocks); i++ {\n\t\t\t// Update the block time according to the test data and calculate\n\t\t\t// the difficulty for the next block.\n\t\t\tblockTime = blockTime.Add(test.timeAdjustment(i))\n\t\t\tdiff, err := bc.calcNextRequiredDifficulty(node, blockTime)\n\t\t\tif err != nil {\n\t\t\t\tt.Fatalf(\"calcNextRequiredDifficulty: unexpected err: %v\", err)\n\t\t\t}\n\n\t\t\t// Ensure the calculated difficulty matches the expected value.\n\t\t\texpectedDiff := test.expectedDiff(i)\n\t\t\tif diff != expectedDiff {\n\t\t\t\tt.Fatalf(\"calcNextRequiredDifficulty (%s): did not get \"+\n\t\t\t\t\t\"expected difficulty -- got %d, want %d\", test.name, diff,\n\t\t\t\t\texpectedDiff)\n\t\t\t}\n\n\t\t\tnode = newFakeNode(node, 1, 1, diff, blockTime)\n\t\t\tbc.index.AddNode(node)\n\t\t\tbc.bestChain.SetTip(node)\n\t\t}\n\t}\n}",
"func (m *ItemsMutator) Minimum(v float64) *ItemsMutator {\n\tm.proxy.minimum = &v\n\treturn m\n}",
"func (_PromiseValidator *PromiseValidatorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (x *fastReflection_SendEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.bank.v1beta1.SendEnabled.denom\":\n\t\tpanic(fmt.Errorf(\"field denom of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tcase \"cosmos.bank.v1beta1.SendEnabled.enabled\":\n\t\tpanic(fmt.Errorf(\"field enabled of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.bank.v1beta1.SendEnabled\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.bank.v1beta1.SendEnabled does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func TestCheckMinerFees(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\t// Create a transaction pool tester.\n\ttpt, err := createTpoolTester(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer tpt.Close()\n\n\t// Prepare a bunch of outputs for a series of graphs to fill up the\n\t// transaction pool.\n\tgraphLens := 200 // 40 kb per graph\n\tnumGraphs := (int(TransactionPoolSizeTarget) * 4 / 3) / (graphLens * 206) // 206 is the size of a single input-output graph txn.\n\tgraphFund := types.SiacoinPrecision.Mul64(1000)\n\tvar outputs []types.SiacoinOutput\n\tfor i := 0; i < numGraphs+1; i++ {\n\t\toutputs = append(outputs, types.SiacoinOutput{\n\t\t\tUnlockHash: types.UnlockConditions{}.UnlockHash(),\n\t\t\tValue: graphFund,\n\t\t})\n\t}\n\ttxns, err := tpt.wallet.SendSiacoinsMulti(outputs)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\t// Mine the graph setup in the consensus set so that the graph outputs are\n\t// distinct transaction sets.\n\t_, err = tpt.miner.AddBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Recommended fees at this point should be the minimum.\n\tminRec, maxRec := tpt.tpool.FeeEstimation()\n\tif minRec.Cmp(minEstimation) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee minimum\")\n\t}\n\tif maxRec.Cmp(minEstimation.Mul64(3)) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee min maximum\")\n\t}\n\n\t// Fill the transaction pool to the fee limit.\n\tfor i := 0; i < TransactionPoolSizeForFee/10e3; i++ {\n\t\tarbData := make([]byte, 10e3)\n\t\tcopy(arbData, modules.PrefixNonSia[:])\n\t\tfastrand.Read(arbData[100:116]) // prevents collisions with other transacitons in the loop.\n\t\ttxn := types.Transaction{ArbitraryData: [][]byte{arbData}}\n\t\terr := tpt.tpool.AcceptTransactionSet([]types.Transaction{txn})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Add another transaction, this one should fail for having too few fees.\n\terr = tpt.tpool.AcceptTransactionSet([]types.Transaction{{}})\n\tif err != errLowMinerFees {\n\t\tt.Error(err)\n\t}\n\n\t// Add a transaction that has sufficient fees.\n\t_, err = tpt.wallet.SendSiacoins(types.SiacoinPrecision.Mul64(50), types.UnlockHash{})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create all of the graphs.\n\tfinalTxn := txns[len(txns)-1]\n\tfor i := 0; i < numGraphs; i++ {\n\t\tvar edges []types.TransactionGraphEdge\n\t\tfor j := 0; j < graphLens; j++ {\n\t\t\tedges = append(edges, types.TransactionGraphEdge{\n\t\t\t\tDest: j + 1,\n\t\t\t\tFee: types.SiacoinPrecision,\n\t\t\t\tSource: j,\n\t\t\t\tValue: graphFund.Sub(types.SiacoinPrecision.Mul64(uint64(j + 1))),\n\t\t\t})\n\t\t}\n\t\tgraph, err := types.TransactionGraph(finalTxn.SiacoinOutputID(uint64(i)), edges)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = tpt.tpool.AcceptTransactionSet(graph)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Try to submit a transaction with too few fees.\n\tsource := finalTxn.SiacoinOutputID(uint64(numGraphs))\n\tlowFee := types.SiacoinPrecision.Div64(3)\n\tremaining := types.SiacoinPrecision.Mul64(1000).Sub(lowFee)\n\tedge := types.TransactionGraphEdge{\n\t\tDest: 1,\n\t\tFee: lowFee,\n\t\tSource: 0,\n\t\tValue: remaining,\n\t}\n\tlowFeeGraph, err := types.TransactionGraph(source, []types.TransactionGraphEdge{edge})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\terr = tpt.tpool.AcceptTransactionSet(lowFeeGraph)\n\tif err != errLowMinerFees {\n\t\tt.Fatal(err)\n\t}\n}",
"func (tx *Tx) change(s *bscript.Script, f *FeeQuote, newOutput bool) (uint64, bool, error) {\r\n\tinputAmount := tx.TotalInputSatoshis()\r\n\toutputAmount := tx.TotalOutputSatoshis()\r\n\r\n\tif inputAmount < outputAmount {\r\n\t\treturn 0, false, errors.New(\"satoshis inputted to the tx are less than the outputted satoshis\")\r\n\t}\r\n\r\n\tavailable := inputAmount - outputAmount\r\n\r\n\tstandardFees, err := f.Fee(FeeTypeStandard)\r\n\tif err != nil {\r\n\t\treturn 0, false, errors.New(\"standard fees not found\")\r\n\t}\r\n\tif !tx.canAddChange(available, standardFees) {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tif newOutput {\r\n\t\ttx.AddOutput(&Output{Satoshis: 0, LockingScript: s})\r\n\t}\r\n\r\n\tvar txFee uint64\r\n\tif txFee, err = tx.getTransactionFees(f); err != nil {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tavailable -= txFee\r\n\r\n\treturn available, true, nil\r\n}",
"func (_Bindings *BindingsTransactor) SetReserveFactor(opts *bind.TransactOpts, newReserveFactorMantissa *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"_setReserveFactor\", newReserveFactorMantissa)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeAccount\", feeAccount_)\n}",
"func TestSimulateValidatorsChange(t *testing.T) {\n\tnPeers := 7\n\tnVals := 4\n\tcss, genDoc, config, cleanup := randConsensusNetWithPeers(\n\t\tnVals,\n\t\tnPeers,\n\t\t\"replay_test\",\n\t\tnewMockTickerFunc(true),\n\t\tnewPersistentKVStoreWithPath)\n\tsim.Config = config\n\tsim.GenesisState, _ = sm.MakeGenesisState(genDoc)\n\tsim.CleanupFunc = cleanup\n\n\tpartSize := types.BlockPartSizeBytes\n\n\tnewRoundCh := subscribe(css[0].eventBus, types.EventQueryNewRound)\n\tproposalCh := subscribe(css[0].eventBus, types.EventQueryCompleteProposal)\n\n\tvss := make([]*validatorStub, nPeers)\n\tfor i := 0; i < nPeers; i++ {\n\t\tvss[i] = newValidatorStub(css[i].privValidator, int32(i))\n\t}\n\theight, round := css[0].Height, css[0].Round\n\n\t// start the machine\n\tstartTestRound(css[0], height, round)\n\tincrementHeight(vss...)\n\tensureNewRound(newRoundCh, height, 0)\n\tensureNewProposal(proposalCh, height, round)\n\trs := css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 2\n\theight++\n\tincrementHeight(vss...)\n\tnewValidatorPubKey1, err := css[nVals].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tvalPubKey1ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey1)\n\trequire.NoError(t, err)\n\tnewValidatorTx1 := kvstore.MakeValSetChangeTx(valPubKey1ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx1, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ := css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts := propBlock.MakePartSet(partSize)\n\tblockID := types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\n\tproposal := types.NewProposal(vss[1].Height, round, -1, blockID)\n\tp := proposal.ToProto()\n\tif err := vss[1].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 3\n\theight++\n\tincrementHeight(vss...)\n\tupdateValidatorPubKey1, err := css[nVals].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tupdatePubKey1ABCI, err := cryptoenc.PubKeyToProto(updateValidatorPubKey1)\n\trequire.NoError(t, err)\n\tupdateValidatorTx1 := kvstore.MakeValSetChangeTx(updatePubKey1ABCI, 25)\n\terr = assertMempool(css[0].txNotifier).CheckTx(updateValidatorTx1, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\n\tproposal = types.NewProposal(vss[2].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[2].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 4\n\theight++\n\tincrementHeight(vss...)\n\tnewValidatorPubKey2, err := css[nVals+1].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tnewVal2ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey2)\n\trequire.NoError(t, err)\n\tnewValidatorTx2 := kvstore.MakeValSetChangeTx(newVal2ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx2, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tnewValidatorPubKey3, err := css[nVals+2].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tnewVal3ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey3)\n\trequire.NoError(t, err)\n\tnewValidatorTx3 := kvstore.MakeValSetChangeTx(newVal3ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx3, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\tnewVss := make([]*validatorStub, nVals+1)\n\tcopy(newVss, vss[:nVals+1])\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\n\tvalIndexFn := func(cssIdx int) int {\n\t\tfor i, vs := range newVss {\n\t\t\tvsPubKey, err := vs.GetPubKey()\n\t\t\trequire.NoError(t, err)\n\n\t\t\tcssPubKey, err := css[cssIdx].privValidator.GetPubKey()\n\t\t\trequire.NoError(t, err)\n\n\t\t\tif vsPubKey.Equals(cssPubKey) {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t\tpanic(fmt.Sprintf(\"validator css[%d] not found in newVss\", cssIdx))\n\t}\n\n\tselfIndex := valIndexFn(0)\n\n\tproposal = types.NewProposal(vss[3].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[3].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\n\tremoveValidatorTx2 := kvstore.MakeValSetChangeTx(newVal2ABCI, 0)\n\terr = assertMempool(css[0].txNotifier).CheckTx(removeValidatorTx2, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+1; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 5\n\theight++\n\tincrementHeight(vss...)\n\t// Reflect the changes to vss[nVals] at height 3 and resort newVss.\n\tnewVssIdx := valIndexFn(nVals)\n\tnewVss[newVssIdx].VotingPower = 25\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\tselfIndex = valIndexFn(0)\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+1; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 6\n\theight++\n\tincrementHeight(vss...)\n\tremoveValidatorTx3 := kvstore.MakeValSetChangeTx(newVal3ABCI, 0)\n\terr = assertMempool(css[0].txNotifier).CheckTx(removeValidatorTx3, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\tnewVss = make([]*validatorStub, nVals+3)\n\tcopy(newVss, vss[:nVals+3])\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\n\tselfIndex = valIndexFn(0)\n\tproposal = types.NewProposal(vss[1].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[1].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+3; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\tsim.Chain = make([]*types.Block, 0)\n\tsim.Commits = make([]*types.Commit, 0)\n\tfor i := 1; i <= numBlocks; i++ {\n\t\tsim.Chain = append(sim.Chain, css[0].blockStore.LoadBlock(int64(i)))\n\t\tsim.Commits = append(sim.Commits, css[0].blockStore.LoadBlockCommit(int64(i)))\n\t}\n}",
"func SetStartingPointForNewBlock(parenthash string, slot uint64) (expiring []string, err error) {\n\tnewBlockContracts = make(map[string]contract)\n\texpires, newstate, _ := getNewState(parenthash, slot)\n\tnewBlockState = newstate\n\treturn expires, nil\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.SetSwapFee(&_Mcapscontroller.TransactOpts, poolAddress, swapFee)\n}",
"func (_DelegatableDai *DelegatableDaiCaller) IncreaseApprovalPreSignedHashing(opts *bind.CallOpts, _token common.Address, _spender common.Address, _addedValue *big.Int, _fee *big.Int, _nonce *big.Int) ([32]byte, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t)\n\tout := ret0\n\terr := _DelegatableDai.contract.Call(opts, out, \"increaseApprovalPreSignedHashing\", _token, _spender, _addedValue, _fee, _nonce)\n\treturn *ret0, err\n}"
] | [
"0.82363266",
"0.81972617",
"0.77618974",
"0.7440671",
"0.7421641",
"0.7399085",
"0.72093505",
"0.7103326",
"0.69334686",
"0.6596409",
"0.6478376",
"0.60966414",
"0.58052856",
"0.5529534",
"0.5476311",
"0.5415291",
"0.53731835",
"0.53717804",
"0.5350735",
"0.5344588",
"0.5335985",
"0.5320981",
"0.5308795",
"0.52911305",
"0.5210891",
"0.5204885",
"0.5181354",
"0.5157637",
"0.5139679",
"0.5129908",
"0.50856024",
"0.5069128",
"0.5052221",
"0.5050173",
"0.5034085",
"0.5031653",
"0.50307775",
"0.50243783",
"0.4929463",
"0.49259242",
"0.48878756",
"0.48873448",
"0.4881816",
"0.48650745",
"0.48612773",
"0.4851234",
"0.48223168",
"0.48222458",
"0.4818361",
"0.48102966",
"0.4802174",
"0.47866365",
"0.4780069",
"0.47316808",
"0.47129586",
"0.4710023",
"0.4704437",
"0.47044286",
"0.46752685",
"0.46637434",
"0.46610054",
"0.46447062",
"0.46362233",
"0.46253973",
"0.46076584",
"0.46009105",
"0.4599912",
"0.45992997",
"0.45959145",
"0.45895568",
"0.45858744",
"0.45824632",
"0.4576122",
"0.45717055",
"0.45642608",
"0.45476142",
"0.45467877",
"0.4535219",
"0.45318112",
"0.45281798",
"0.45250756",
"0.45217434",
"0.4518378",
"0.4503466",
"0.45005843",
"0.44999766",
"0.44971853",
"0.44958374",
"0.44875562",
"0.44840717",
"0.44838393",
"0.44821188",
"0.44798732",
"0.4476469",
"0.4462624",
"0.4459788",
"0.44543707",
"0.4453262",
"0.4445415",
"0.44447178"
] | 0.8493631 | 0 |
ChangeMinimumTakerProtocolFee is a paid mutator transaction binding the contract method 0x1a6b13e2. Solidity: function changeMinimumTakerProtocolFee(uint256 newMinimumTakerProtocolFee) returns() | func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {
return _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (brtx *BotRegistrationTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotRegistrationTransactionExtension{\n\t\tAddresses: brtx.Addresses,\n\t\tNames: brtx.Names,\n\t\tNrOfMonths: brtx.NrOfMonths,\n\t\tIdentification: brtx.Identification,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_Mevsky *MevskyTransactor) SetMinBounty(opts *bind.TransactOpts, newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"setMinBounty\", newMinBounty)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactorSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (c *Config) SetMinimumFees(fees types.BaseCoins) { c.MinFees = fees.String() }",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (brutx *BotRecordUpdateTransaction) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\treturn (&BotRecordUpdateTransactionExtension{\n\t\tIdentifier: brutx.Identifier,\n\t\tSignature: brutx.Signature,\n\t\tAddressUpdate: brutx.Addresses,\n\t\tNameUpdate: brutx.Names,\n\t\tNrOfMonths: brutx.NrOfMonths,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (x *fastReflection_Bech32PrefixRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactor) ChangeRequirement(opts *bind.TransactOpts, _required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.contract.Transact(opts, \"changeRequirement\", _required)\n}",
"func (bnttx *BotNameTransferTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotNameTransferTransactionExtension{\n\t\tSender: bnttx.Sender,\n\t\tReceiver: bnttx.Receiver,\n\t\tNames: bnttx.Names,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_Mevsky *MevskySession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_Mevsky *MevskyTransactorSession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"updateMinimumBalance\", pool, tokenAddress)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (brtxe *BotRegistrationTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\t// a static registration fee has to be paid\n\tfee := oneCoin.Mul64(BotRegistrationFeeMultiplier)\n\t// the amount of desired months also has to be paid\n\tfee = fee.Add(ComputeMonthlyBotFees(brtxe.NrOfMonths, oneCoin))\n\t// if more than one name is defined it also has to be paid\n\tif n := len(brtxe.Names); n > 1 {\n\t\tfee = fee.Add(oneCoin.Mul64(uint64(n-1) * BotFeePerAdditionalNameMultiplier))\n\t}\n\t// no fee has to be paid for the used network addresses during registration\n\t// return the total fees\n\treturn fee\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (bnttxe *BotNameTransferTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(len(bnttxe.Names)))\n}",
"func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetPinMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"pinMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (x *fastReflection_Bech32PrefixResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.Bech32PrefixResponse.bech32_prefix\":\n\t\tpanic(fmt.Errorf(\"field bech32_prefix of message cosmos.auth.v1beta1.Bech32PrefixResponse is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (brutxe *BotRecordUpdateTransactionExtension) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\t// all additional months have to be paid\n\tif brutxe.NrOfMonths > 0 {\n\t\tfee = fee.Add(ComputeMonthlyBotFees(brutxe.NrOfMonths, oneCoin))\n\t}\n\t// a Tx that modifies the network address info of a 3bot record also has to be paid\n\tif len(brutxe.AddressUpdate.Add) > 0 || len(brutxe.AddressUpdate.Remove) > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeeForNetworkAddressInfoChangeMultiplier))\n\t}\n\t// each additional name has to be paid as well\n\t// (regardless of the fact that the 3bot has a name or not)\n\tif n := len(brutxe.NameUpdate.Add); n > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(n)))\n\t}\n\t// return the total fees\n\treturn fee\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (m *AospDeviceOwnerDeviceConfiguration) SetPasswordMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"passwordMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minTxRelayFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to get\n\t// minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minRelayTxFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to\n\t// get minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func mineNewBlock (block *Block) {\n proofPrefix := strings.Repeat(\"0\", difficulty)\n for calculateHash(*block)[:difficulty] != proofPrefix {\n block.Nonce ++\n }\n\n block.Hash = calculateHash(*block)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (client Client) ChangeSizeSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func minimumPayment(dailyRate float64, monthly_days int, minPayment float64, month int, budget int, balance float64, id string) model.MonthlyPayment {\n\n\tinterestPayment := balance * dailyRate * float64(monthly_days)\n\tprincipalPayment := minPayment - interestPayment\n\n\tif balance < minPayment {\n\t\tprincipalPayment = balance\n\t}\n\n\tbalance = balance - principalPayment\n\n\tmonthlyPay := model.MonthlyPayment{ID: id, Month: month, Interest: interestPayment, PrincipalPayment: principalPayment, RemainingBalance: balance}\n\n\tfmt.Println(monthlyPay)\n\n\treturn monthlyPay\n}",
"func (n *Node) BecomeValidator(genesisAmount uint64, seedAmount uint64, stakeAmount uint64, txFee uint64) *Node {\n\t// exports AVAX from the X Chain\n\texportTxID, err := n.client.XChainAPI().ExportAVAX(\n\t\tn.UserPass,\n\t\tnil, // from addrs\n\t\t\"\", // change addr\n\t\tseedAmount+txFee, // deducted (seedAmmount + txFee(ExportAVAX) ) - 1xFee deducted from XChain + 1xFee to be deducted from PChain Tx\n\t\tn.PAddress,\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to export AVAX to pchainAddress %s\", n.PAddress))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the XChain\n\terr = chainhelper.XChain().AwaitTransactionAcceptance(n.client, exportTxID, 120*time.Second)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to export AVAX from XChain Address %s\", n.XAddress))\n\t\treturn n\n\t}\n\n\t// imports the amount to the P Chain\n\timportTxID, err := n.client.PChainAPI().ImportAVAX( // receivedAmount = (sent - txFee)\n\t\tn.UserPass,\n\t\tnil, // from addrs\n\t\t\"\", // change addr\n\t\tn.PAddress,\n\t\tconstants.XChainID.String(),\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed import AVAX to PChain Address %s\", n.PAddress))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the PChain\n\terr = chainhelper.PChain().AwaitTransactionAcceptance(n.client, importTxID, constants.TimeoutDuration)\n\tif err != nil {\n\t\tpanic(err)\n\t\treturn n\n\t}\n\n\t// verify the PChain balance of seedAmount on the PChain (which should have been at 0)\n\terr = chainhelper.PChain().CheckBalance(n.client, n.PAddress, seedAmount) // balance = seedAmount = transferred + txFee\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"expected balance of seedAmount the stakeAmount was moved to XChain\"))\n\t\treturn n\n\t}\n\n\t// verify the XChain balance of (seedAmount - stakeAmount - 2*txFee) the stake was moved to PChain\n\terr = chainhelper.XChain().CheckBalance(n.client, n.XAddress, \"AVAX\", genesisAmount-seedAmount-2*txFee)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"expected balance of (seedAmount - stakeAmount - 2*txFee) the stake was moved to XChain\"))\n\t\treturn n\n\t}\n\n\t// add nodeID as a validator\n\tstakingStartTime := time.Now().Add(20 * time.Second)\n\tstartTime := uint64(stakingStartTime.Unix())\n\tendTime := uint64(stakingStartTime.Add(72 * time.Hour).Unix())\n\taddStakerTxID, err := n.client.PChainAPI().AddValidator(\n\t\tn.UserPass,\n\t\tnil,\n\t\t\"\",\n\t\tn.PAddress,\n\t\tn.NodeID,\n\t\tstakeAmount,\n\t\tstartTime,\n\t\tendTime,\n\t\tfloat32(2),\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to add validator to primary network %s\", n.id))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the PChain\n\terr = chainhelper.PChain().AwaitTransactionAcceptance(n.client, addStakerTxID, constants.TimeoutDuration)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"transaction not accepted\"))\n\t\treturn n\n\t}\n\n\t// waits until the validation period begins\n\ttime.Sleep(time.Until(stakingStartTime) + 3*time.Second)\n\n\t// verifies if the node is a current validator\n\tcurrentStakers, err := n.client.PChainAPI().GetCurrentValidators(ids.Empty)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Could not get current stakers.\"))\n\t\treturn n\n\t}\n\n\tfound := false\n\tfor _, stakerIntf := range currentStakers {\n\t\tstaker := stakerIntf.(map[string]interface{})\n\t\tif staker[\"nodeID\"] == n.NodeID {\n\t\t\tfound = true\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif !found {\n\t\tpanic(stacktrace.NewError(\"Node: %s not found in the stakers %v\", n.NodeID, currentStakers))\n\t\treturn n\n\t}\n\n\t// verifies the balance of the staker in the PChain - should be the seedAmmount - stakedAmount\n\terr = chainhelper.PChain().CheckBalance(n.client, n.PAddress, seedAmount-stakeAmount)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Error checking the PChain balance.\"))\n\t}\n\n\tlogrus.Infof(\"Verified the staker was added to current validators and has the expected P Chain balance.\")\n\n\treturn n\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeTake\", feeTake_)\n}",
"func (c *Config) MinimumFees() types.BaseCoins {\n\tfees, err := types.ParseCoins(c.MinFees)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"invalid minimum fees: %v\", err))\n\t}\n\treturn fees\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (m *AndroidCompliancePolicy) SetPasswordMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"passwordMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func main() {\n\n\tconst (\n\t\turl = `http://dev:8888`\n\t\twif = `5JP1fUXwPxuKuNryh5BEsFhZqnh59yVtpHqHxMMTmtjcni48bqC`\n\t)\n\n\t// error helper\n\tlog.SetFlags(log.LstdFlags | log.Lshortfile)\n\tfatal := func(err error) {\n\t\tif err != nil {\n\t\t\ttrace := log.Output(2, err.Error())\n\t\t\tlog.Fatal(trace)\n\t\t}\n\t}\n\n\taccount, api, opts, err := fio.NewWifConnect(wif, url)\n\tfatal(err)\n\n\taction := fio.NewSetFeeVote(defaultRatios(), account.Actor).ToEos() // note casting to *eos.Action\n\n\t// this is a large tx, without compression it might fail\n\topts.Compress = fio.CompressionZlib\n\t// overriding the default compression requires a using different function\n\tresp, err := api.SignPushActionsWithOpts([]*eos.Action{action}, &opts.TxOptions)\n\tfatal(err)\n\n\t// print result\n\tj, _ := json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// Now set the fee multiplier\n\tvar (\n\t\ttokenPriceUsd float64 = 0.08 // for the example assume 1 FIO is worth 8 cents\n\t\ttargetUsd float64 = 2.00 // and the goal is for regaddress to cost $2.00\n\t\tregaddressFeeValue float64 = 2000000000 / 1_000_000_000 // and the current fee value is set to 2 FIO (in SUF)\n\t)\n\n\t// 12.5\n\tmultiplier := targetUsd / (regaddressFeeValue * tokenPriceUsd)\n\n\t// submit and print the result\n\tresp, err = api.SignPushActions(fio.NewSetFeeMult(multiplier, account.Actor))\n\tfatal(err)\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// it's also important that computefees is called frequently, the on-chain fees don't change automatically without it\n\t// this call won't always have any work to do, so it's safe to ignore errors.\n\tresp, err = api.SignPushActions(fio.NewComputeFees(account.Actor))\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func TestCmpctBlockFeeFilterVersion(t *testing.T) {\n\t// Use the protocol version just prior to BIP0152Version changes.\n\tpver := BIP0152Version - 1\n\tenc := BaseEncoding\n\n\tmsg, err := NewMsgCmpctBlockFromBlock(&blockOne, nil)\n\tif err != nil {\n\t\tt.Fatalf(\"NewMsgCmpctBlockFromBlock: failed to build CmpctBlock %s\", err.Error())\n\t}\n\n\t// Test encode with old protocol version.\n\tvar buf bytes.Buffer\n\terr = msg.BchEncode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"encode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n\n\t// Test decode with old protocol version.\n\treadmsg := MsgCmpctBlock{}\n\terr = readmsg.BchDecode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"decode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n}",
"func (_Authority *AuthorityTransactorSession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetWorkProfilePasswordMinimumLength(value *int32)() {\n m.workProfilePasswordMinimumLength = value\n}",
"func (m *ParameterMutator) Minimum(v float64) *ParameterMutator {\n\tm.proxy.minimum = &v\n\treturn m\n}",
"func (client AccountQuotaPolicyClient) UpdateSender(req *http.Request) (future AccountQuotaPolicyUpdateFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetPasswordMinimumLength(value *int32)() {\n m.passwordMinimumLength = value\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_PromiseValidator *PromiseValidatorTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_PromiseValidator *PromiseValidatorTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.contract.Transact(opts, \"changeOwner\", _newOwner)\n}",
"func (becdsakv *BondedECDSAKeepVendor) UpgradeFactory(\n\t_factory common.Address,\n\n\ttransactionOptions ...ethutil.TransactionOptions,\n) (*types.Transaction, error) {\n\tbecdsakvLogger.Debug(\n\t\t\"submitting transaction upgradeFactory\",\n\t\t\"params: \",\n\t\tfmt.Sprint(\n\t\t\t_factory,\n\t\t),\n\t)\n\n\tbecdsakv.transactionMutex.Lock()\n\tdefer becdsakv.transactionMutex.Unlock()\n\n\t// create a copy\n\ttransactorOptions := new(bind.TransactOpts)\n\t*transactorOptions = *becdsakv.transactorOptions\n\n\tif len(transactionOptions) > 1 {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"could not process multiple transaction options sets\",\n\t\t)\n\t} else if len(transactionOptions) > 0 {\n\t\ttransactionOptions[0].Apply(transactorOptions)\n\t}\n\n\tnonce, err := becdsakv.nonceManager.CurrentNonce()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to retrieve account nonce: %v\", err)\n\t}\n\n\ttransactorOptions.Nonce = new(big.Int).SetUint64(nonce)\n\n\ttransaction, err := becdsakv.contract.UpgradeFactory(\n\t\ttransactorOptions,\n\t\t_factory,\n\t)\n\tif err != nil {\n\t\treturn transaction, becdsakv.errorResolver.ResolveError(\n\t\t\terr,\n\t\t\tbecdsakv.transactorOptions.From,\n\t\t\tnil,\n\t\t\t\"upgradeFactory\",\n\t\t\t_factory,\n\t\t)\n\t}\n\n\tbecdsakvLogger.Infof(\n\t\t\"submitted transaction upgradeFactory with id: [%v] and nonce [%v]\",\n\t\ttransaction.Hash().Hex(),\n\t\ttransaction.Nonce(),\n\t)\n\n\tgo becdsakv.miningWaiter.ForceMining(\n\t\ttransaction,\n\t\tfunc(newGasPrice *big.Int) (*types.Transaction, error) {\n\t\t\ttransactorOptions.GasLimit = transaction.Gas()\n\t\t\ttransactorOptions.GasPrice = newGasPrice\n\n\t\t\ttransaction, err := becdsakv.contract.UpgradeFactory(\n\t\t\t\ttransactorOptions,\n\t\t\t\t_factory,\n\t\t\t)\n\t\t\tif err != nil {\n\t\t\t\treturn transaction, becdsakv.errorResolver.ResolveError(\n\t\t\t\t\terr,\n\t\t\t\t\tbecdsakv.transactorOptions.From,\n\t\t\t\t\tnil,\n\t\t\t\t\t\"upgradeFactory\",\n\t\t\t\t\t_factory,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tbecdsakvLogger.Infof(\n\t\t\t\t\"submitted transaction upgradeFactory with id: [%v] and nonce [%v]\",\n\t\t\t\ttransaction.Hash().Hex(),\n\t\t\t\ttransaction.Nonce(),\n\t\t\t)\n\n\t\t\treturn transaction, nil\n\t\t},\n\t)\n\n\tbecdsakv.nonceManager.IncrementNonce()\n\n\treturn transaction, err\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func ExpectedFee(f ForwardingPolicy, htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {\n\n\t// TODO(roasbeef): write some basic table driven tests\n\treturn f.BaseFee + (htlcAmt*f.FeeRate)/1000000\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (t *SimpleChaincode) updatetemp(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {\nvar key , jsonResp string\nvar err error\nfmt.Println(\"running updatetemp()\")\n\nif len(args) != 2 {\n jsonResp = \"Error :Incorrect number of arguments. Expecting 2. name of the key and temprature value to set\"\n return nil, errors.New(jsonResp)\n }\n\n\nkey = args[0]\nvar packageinfo PackageInfo\nvar temprature_reading int\n\nvalAsbytes, err := stub.GetState(key)\n\nif err != nil {\n jsonResp = \"Error :Failed to get state for \" + key\n return nil, errors.New(jsonResp)\n }\n\nerr = json.Unmarshal(valAsbytes, &packageinfo)\nif err != nil {\n fmt.Println(\"Could not marshal info object\", err)\n return nil, err\n }\n// validate pkd exist or not by checking temprature\nif packageinfo.PkgId != key{\n jsonResp = \" Error : Invalid PackageId Passed \"\n return nil, errors.New(jsonResp)\n }\n\n// check wheather the pkg temprature is in acceptable range and package in in valid status\nif packageinfo.PkgStatus == \"Pkg_Damaged\" {\n jsonResp = \" Error :Temprature thershold crossed - Package Damaged\"\n return nil, errors.New(jsonResp)\n }\n\ntemprature_reading, err = strconv.Atoi(args[1])\nif err != nil {\n\tjsonResp = \" Error : 2nd argument must be a numeric string\"\n \treturn nil, errors.New(jsonResp)\n\t}\n\n\nif temprature_reading > packageinfo.TempratureMax || temprature_reading < packageinfo.TempratureMin {\n packageinfo.PkgStatus = \"Pkg_Damaged\"\n }\n\nbytes, err := json.Marshal(&packageinfo)\nif err != nil {\n fmt.Println(\"Could not marshal personal info object\", err)\n return nil, err\n }\n\nerr = stub.PutState(key, bytes)\nif err != nil {\n return nil, err\n }\n\nreturn nil, nil\n}",
"func (b *Bitcoin) FeeRangeMin() float64 {\n\treturn b.feeRange.min\n}",
"func MockFee(randomized bool) *Fee {\n\treturn &Fee{\n\t\tGasLimit: 50000,\n\t\tGasPrice: 100,\n\t}\n}",
"func (n *OpenBazaarNode) SetSelfAsModerator(ctx context.Context, modInfo *models.ModeratorInfo, done chan struct{}) error {\n\tif (int(modInfo.Fee.FeeType) == 0 || int(modInfo.Fee.FeeType) == 2) && modInfo.Fee.FixedFee == nil {\n\t\tmaybeCloseDone(done)\n\t\treturn errors.New(\"fixed fee must be set when using a fixed fee type\")\n\t}\n\n\terr := n.repo.DB().Update(func(tx database.Tx) error {\n\t\tvar (\n\t\t\tprefs models.UserPreferences\n\t\t\tcurrencies []string\n\t\t)\n\t\terr := tx.Read().First(&prefs).Error\n\t\tif err == nil {\n\t\t\tcurrencies, err = prefs.PreferredCurrencies()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tif len(currencies) == 0 {\n\t\t\tfor ct := range n.multiwallet {\n\t\t\t\tcurrencies = append(currencies, ct.CurrencyCode())\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tprofile, err := tx.GetProfile()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprofile.ModeratorInfo = modInfo\n\t\tprofile.Moderator = true\n\n\t\tif err := tx.SetProfile(profile); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tapi, err := coreapi.NewCoreAPI(n.ipfsNode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This sets us as a \"provider\" in the DHT for the moderator key.\n\t\t// Other peers can find us by doing a DHT GetProviders query for\n\t\t// the same key.\n\t\t_, err = api.Block().Put(ctx, strings.NewReader(moderatorTopic))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tmaybeCloseDone(done)\n\t\treturn err\n\t}\n\tn.Publish(done)\n\treturn nil\n}",
"func TestMinDifficultyReduction(t *testing.T) {\n\t// Create chain params based on regnet params, but set the fields related to\n\t// proof-of-work difficulty to specific values expected by the tests.\n\tparams := chaincfg.RegNetParams\n\tparams.ReduceMinDifficulty = true\n\tparams.TargetTimePerBlock = time.Minute * 2\n\tparams.MinDiffReductionTime = time.Minute * 10 // ~99.3% chance to be mined\n\tparams.WorkDiffAlpha = 1\n\tparams.WorkDiffWindowSize = 144\n\tparams.WorkDiffWindows = 20\n\tparams.TargetTimespan = params.TargetTimePerBlock *\n\t\ttime.Duration(params.WorkDiffWindowSize)\n\tparams.RetargetAdjustmentFactor = 4\n\n\ttests := []struct {\n\t\tname string\n\t\ttimeAdjustment func(i int) time.Duration\n\t\tnumBlocks int64\n\t\texpectedDiff func(i int) uint32\n\t}{\n\t\t{\n\t\t\tname: \"genesis block\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: 1,\n\t\t\texpectedDiff: func(i int) uint32 { return params.PowLimitBits },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 1\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize - 2,\n\t\t\texpectedDiff: func(i int) uint32 { return 545259519 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 2\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 545259519 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 3\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 541100164 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 4\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 537954654 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 5\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 537141847 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 6\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 536938645 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 7\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 524428608 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 8\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 521177424 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 9\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520364628 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 10\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520161429 },\n\t\t},\n\t\t{\n\t\t\tname: \"alternate min diff blocks\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\tif i%2 == 0 {\n\t\t\t\t\treturn params.MinDiffReductionTime + time.Second\n\t\t\t\t}\n\t\t\t\treturn params.TargetTimePerBlock\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 {\n\t\t\t\tif i%2 == 0 && i != 0 {\n\t\t\t\t\treturn params.PowLimitBits\n\t\t\t\t}\n\t\t\t\treturn 507651392\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 1\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 509850141 },\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 2\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520138451 },\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 3\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520177692 },\n\t\t},\n\t}\n\n\tbc := newFakeChain(¶ms)\n\tnode := bc.bestChain.Tip()\n\tblockTime := time.Unix(node.timestamp, 0)\n\tfor _, test := range tests {\n\t\tfor i := 0; i < int(test.numBlocks); i++ {\n\t\t\t// Update the block time according to the test data and calculate\n\t\t\t// the difficulty for the next block.\n\t\t\tblockTime = blockTime.Add(test.timeAdjustment(i))\n\t\t\tdiff, err := bc.calcNextRequiredDifficulty(node, blockTime)\n\t\t\tif err != nil {\n\t\t\t\tt.Fatalf(\"calcNextRequiredDifficulty: unexpected err: %v\", err)\n\t\t\t}\n\n\t\t\t// Ensure the calculated difficulty matches the expected value.\n\t\t\texpectedDiff := test.expectedDiff(i)\n\t\t\tif diff != expectedDiff {\n\t\t\t\tt.Fatalf(\"calcNextRequiredDifficulty (%s): did not get \"+\n\t\t\t\t\t\"expected difficulty -- got %d, want %d\", test.name, diff,\n\t\t\t\t\texpectedDiff)\n\t\t\t}\n\n\t\t\tnode = newFakeNode(node, 1, 1, diff, blockTime)\n\t\t\tbc.index.AddNode(node)\n\t\t\tbc.bestChain.SetTip(node)\n\t\t}\n\t}\n}",
"func (m *ItemsMutator) Minimum(v float64) *ItemsMutator {\n\tm.proxy.minimum = &v\n\treturn m\n}",
"func (x *fastReflection_SendEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.bank.v1beta1.SendEnabled.denom\":\n\t\tpanic(fmt.Errorf(\"field denom of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tcase \"cosmos.bank.v1beta1.SendEnabled.enabled\":\n\t\tpanic(fmt.Errorf(\"field enabled of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.bank.v1beta1.SendEnabled\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.bank.v1beta1.SendEnabled does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_PromiseValidator *PromiseValidatorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func TestCheckMinerFees(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\t// Create a transaction pool tester.\n\ttpt, err := createTpoolTester(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer tpt.Close()\n\n\t// Prepare a bunch of outputs for a series of graphs to fill up the\n\t// transaction pool.\n\tgraphLens := 200 // 40 kb per graph\n\tnumGraphs := (int(TransactionPoolSizeTarget) * 4 / 3) / (graphLens * 206) // 206 is the size of a single input-output graph txn.\n\tgraphFund := types.SiacoinPrecision.Mul64(1000)\n\tvar outputs []types.SiacoinOutput\n\tfor i := 0; i < numGraphs+1; i++ {\n\t\toutputs = append(outputs, types.SiacoinOutput{\n\t\t\tUnlockHash: types.UnlockConditions{}.UnlockHash(),\n\t\t\tValue: graphFund,\n\t\t})\n\t}\n\ttxns, err := tpt.wallet.SendSiacoinsMulti(outputs)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\t// Mine the graph setup in the consensus set so that the graph outputs are\n\t// distinct transaction sets.\n\t_, err = tpt.miner.AddBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Recommended fees at this point should be the minimum.\n\tminRec, maxRec := tpt.tpool.FeeEstimation()\n\tif minRec.Cmp(minEstimation) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee minimum\")\n\t}\n\tif maxRec.Cmp(minEstimation.Mul64(3)) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee min maximum\")\n\t}\n\n\t// Fill the transaction pool to the fee limit.\n\tfor i := 0; i < TransactionPoolSizeForFee/10e3; i++ {\n\t\tarbData := make([]byte, 10e3)\n\t\tcopy(arbData, modules.PrefixNonSia[:])\n\t\tfastrand.Read(arbData[100:116]) // prevents collisions with other transacitons in the loop.\n\t\ttxn := types.Transaction{ArbitraryData: [][]byte{arbData}}\n\t\terr := tpt.tpool.AcceptTransactionSet([]types.Transaction{txn})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Add another transaction, this one should fail for having too few fees.\n\terr = tpt.tpool.AcceptTransactionSet([]types.Transaction{{}})\n\tif err != errLowMinerFees {\n\t\tt.Error(err)\n\t}\n\n\t// Add a transaction that has sufficient fees.\n\t_, err = tpt.wallet.SendSiacoins(types.SiacoinPrecision.Mul64(50), types.UnlockHash{})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create all of the graphs.\n\tfinalTxn := txns[len(txns)-1]\n\tfor i := 0; i < numGraphs; i++ {\n\t\tvar edges []types.TransactionGraphEdge\n\t\tfor j := 0; j < graphLens; j++ {\n\t\t\tedges = append(edges, types.TransactionGraphEdge{\n\t\t\t\tDest: j + 1,\n\t\t\t\tFee: types.SiacoinPrecision,\n\t\t\t\tSource: j,\n\t\t\t\tValue: graphFund.Sub(types.SiacoinPrecision.Mul64(uint64(j + 1))),\n\t\t\t})\n\t\t}\n\t\tgraph, err := types.TransactionGraph(finalTxn.SiacoinOutputID(uint64(i)), edges)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = tpt.tpool.AcceptTransactionSet(graph)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Try to submit a transaction with too few fees.\n\tsource := finalTxn.SiacoinOutputID(uint64(numGraphs))\n\tlowFee := types.SiacoinPrecision.Div64(3)\n\tremaining := types.SiacoinPrecision.Mul64(1000).Sub(lowFee)\n\tedge := types.TransactionGraphEdge{\n\t\tDest: 1,\n\t\tFee: lowFee,\n\t\tSource: 0,\n\t\tValue: remaining,\n\t}\n\tlowFeeGraph, err := types.TransactionGraph(source, []types.TransactionGraphEdge{edge})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\terr = tpt.tpool.AcceptTransactionSet(lowFeeGraph)\n\tif err != errLowMinerFees {\n\t\tt.Fatal(err)\n\t}\n}",
"func (tx *Tx) change(s *bscript.Script, f *FeeQuote, newOutput bool) (uint64, bool, error) {\r\n\tinputAmount := tx.TotalInputSatoshis()\r\n\toutputAmount := tx.TotalOutputSatoshis()\r\n\r\n\tif inputAmount < outputAmount {\r\n\t\treturn 0, false, errors.New(\"satoshis inputted to the tx are less than the outputted satoshis\")\r\n\t}\r\n\r\n\tavailable := inputAmount - outputAmount\r\n\r\n\tstandardFees, err := f.Fee(FeeTypeStandard)\r\n\tif err != nil {\r\n\t\treturn 0, false, errors.New(\"standard fees not found\")\r\n\t}\r\n\tif !tx.canAddChange(available, standardFees) {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tif newOutput {\r\n\t\ttx.AddOutput(&Output{Satoshis: 0, LockingScript: s})\r\n\t}\r\n\r\n\tvar txFee uint64\r\n\tif txFee, err = tx.getTransactionFees(f); err != nil {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tavailable -= txFee\r\n\r\n\treturn available, true, nil\r\n}",
"func (_Bindings *BindingsTransactor) SetReserveFactor(opts *bind.TransactOpts, newReserveFactorMantissa *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"_setReserveFactor\", newReserveFactorMantissa)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeAccount\", feeAccount_)\n}",
"func SetStartingPointForNewBlock(parenthash string, slot uint64) (expiring []string, err error) {\n\tnewBlockContracts = make(map[string]contract)\n\texpires, newstate, _ := getNewState(parenthash, slot)\n\tnewBlockState = newstate\n\treturn expires, nil\n}",
"func TestSimulateValidatorsChange(t *testing.T) {\n\tnPeers := 7\n\tnVals := 4\n\tcss, genDoc, config, cleanup := randConsensusNetWithPeers(\n\t\tnVals,\n\t\tnPeers,\n\t\t\"replay_test\",\n\t\tnewMockTickerFunc(true),\n\t\tnewPersistentKVStoreWithPath)\n\tsim.Config = config\n\tsim.GenesisState, _ = sm.MakeGenesisState(genDoc)\n\tsim.CleanupFunc = cleanup\n\n\tpartSize := types.BlockPartSizeBytes\n\n\tnewRoundCh := subscribe(css[0].eventBus, types.EventQueryNewRound)\n\tproposalCh := subscribe(css[0].eventBus, types.EventQueryCompleteProposal)\n\n\tvss := make([]*validatorStub, nPeers)\n\tfor i := 0; i < nPeers; i++ {\n\t\tvss[i] = newValidatorStub(css[i].privValidator, int32(i))\n\t}\n\theight, round := css[0].Height, css[0].Round\n\n\t// start the machine\n\tstartTestRound(css[0], height, round)\n\tincrementHeight(vss...)\n\tensureNewRound(newRoundCh, height, 0)\n\tensureNewProposal(proposalCh, height, round)\n\trs := css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 2\n\theight++\n\tincrementHeight(vss...)\n\tnewValidatorPubKey1, err := css[nVals].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tvalPubKey1ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey1)\n\trequire.NoError(t, err)\n\tnewValidatorTx1 := kvstore.MakeValSetChangeTx(valPubKey1ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx1, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ := css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts := propBlock.MakePartSet(partSize)\n\tblockID := types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\n\tproposal := types.NewProposal(vss[1].Height, round, -1, blockID)\n\tp := proposal.ToProto()\n\tif err := vss[1].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 3\n\theight++\n\tincrementHeight(vss...)\n\tupdateValidatorPubKey1, err := css[nVals].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tupdatePubKey1ABCI, err := cryptoenc.PubKeyToProto(updateValidatorPubKey1)\n\trequire.NoError(t, err)\n\tupdateValidatorTx1 := kvstore.MakeValSetChangeTx(updatePubKey1ABCI, 25)\n\terr = assertMempool(css[0].txNotifier).CheckTx(updateValidatorTx1, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\n\tproposal = types.NewProposal(vss[2].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[2].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 4\n\theight++\n\tincrementHeight(vss...)\n\tnewValidatorPubKey2, err := css[nVals+1].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tnewVal2ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey2)\n\trequire.NoError(t, err)\n\tnewValidatorTx2 := kvstore.MakeValSetChangeTx(newVal2ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx2, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tnewValidatorPubKey3, err := css[nVals+2].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tnewVal3ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey3)\n\trequire.NoError(t, err)\n\tnewValidatorTx3 := kvstore.MakeValSetChangeTx(newVal3ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx3, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\tnewVss := make([]*validatorStub, nVals+1)\n\tcopy(newVss, vss[:nVals+1])\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\n\tvalIndexFn := func(cssIdx int) int {\n\t\tfor i, vs := range newVss {\n\t\t\tvsPubKey, err := vs.GetPubKey()\n\t\t\trequire.NoError(t, err)\n\n\t\t\tcssPubKey, err := css[cssIdx].privValidator.GetPubKey()\n\t\t\trequire.NoError(t, err)\n\n\t\t\tif vsPubKey.Equals(cssPubKey) {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t\tpanic(fmt.Sprintf(\"validator css[%d] not found in newVss\", cssIdx))\n\t}\n\n\tselfIndex := valIndexFn(0)\n\n\tproposal = types.NewProposal(vss[3].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[3].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\n\tremoveValidatorTx2 := kvstore.MakeValSetChangeTx(newVal2ABCI, 0)\n\terr = assertMempool(css[0].txNotifier).CheckTx(removeValidatorTx2, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+1; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 5\n\theight++\n\tincrementHeight(vss...)\n\t// Reflect the changes to vss[nVals] at height 3 and resort newVss.\n\tnewVssIdx := valIndexFn(nVals)\n\tnewVss[newVssIdx].VotingPower = 25\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\tselfIndex = valIndexFn(0)\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+1; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 6\n\theight++\n\tincrementHeight(vss...)\n\tremoveValidatorTx3 := kvstore.MakeValSetChangeTx(newVal3ABCI, 0)\n\terr = assertMempool(css[0].txNotifier).CheckTx(removeValidatorTx3, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\tnewVss = make([]*validatorStub, nVals+3)\n\tcopy(newVss, vss[:nVals+3])\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\n\tselfIndex = valIndexFn(0)\n\tproposal = types.NewProposal(vss[1].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[1].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+3; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\tsim.Chain = make([]*types.Block, 0)\n\tsim.Commits = make([]*types.Commit, 0)\n\tfor i := 1; i <= numBlocks; i++ {\n\t\tsim.Chain = append(sim.Chain, css[0].blockStore.LoadBlock(int64(i)))\n\t\tsim.Commits = append(sim.Commits, css[0].blockStore.LoadBlockCommit(int64(i)))\n\t}\n}",
"func (_DelegatableDai *DelegatableDaiCaller) IncreaseApprovalPreSignedHashing(opts *bind.CallOpts, _token common.Address, _spender common.Address, _addedValue *big.Int, _fee *big.Int, _nonce *big.Int) ([32]byte, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t)\n\tout := ret0\n\terr := _DelegatableDai.contract.Call(opts, out, \"increaseApprovalPreSignedHashing\", _token, _spender, _addedValue, _fee, _nonce)\n\treturn *ret0, err\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.SetSwapFee(&_Mcapscontroller.TransactOpts, poolAddress, swapFee)\n}"
] | [
"0.84947556",
"0.8237579",
"0.7762969",
"0.7441923",
"0.7422322",
"0.74003845",
"0.7210303",
"0.71044534",
"0.6934205",
"0.6597405",
"0.64795285",
"0.6096523",
"0.58057845",
"0.5528148",
"0.5476045",
"0.54166794",
"0.5373242",
"0.53716785",
"0.5352642",
"0.5345054",
"0.5335565",
"0.53212243",
"0.5309348",
"0.52913904",
"0.5210948",
"0.52027285",
"0.51788276",
"0.51589346",
"0.5138216",
"0.5131226",
"0.508432",
"0.50669247",
"0.50539756",
"0.5047295",
"0.5033734",
"0.50292635",
"0.5028597",
"0.50246936",
"0.4931067",
"0.4925201",
"0.48865235",
"0.48856974",
"0.48811877",
"0.48669377",
"0.48604706",
"0.48531926",
"0.482457",
"0.48224857",
"0.4817719",
"0.481055",
"0.48000526",
"0.47861242",
"0.47776678",
"0.47290295",
"0.47106504",
"0.47100377",
"0.47025454",
"0.47022197",
"0.46746284",
"0.46639958",
"0.46580702",
"0.46425053",
"0.4634652",
"0.46268252",
"0.46064204",
"0.460206",
"0.45977497",
"0.45973247",
"0.45932648",
"0.45891944",
"0.45850778",
"0.45797336",
"0.45777506",
"0.45753303",
"0.4563448",
"0.45496926",
"0.45459506",
"0.45337257",
"0.45305037",
"0.45263708",
"0.4524087",
"0.45208478",
"0.4516071",
"0.4501978",
"0.45018384",
"0.44980127",
"0.4496877",
"0.4496292",
"0.44905525",
"0.44838288",
"0.44827664",
"0.44814384",
"0.44782212",
"0.44747084",
"0.44631457",
"0.44591522",
"0.4454048",
"0.4452527",
"0.44450045",
"0.44449696"
] | 0.8198645 | 2 |
ChangeMinimumTakerProtocolFee is a paid mutator transaction binding the contract method 0x1a6b13e2. Solidity: function changeMinimumTakerProtocolFee(uint256 newMinimumTakerProtocolFee) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {
return _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (brtx *BotRegistrationTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotRegistrationTransactionExtension{\n\t\tAddresses: brtx.Addresses,\n\t\tNames: brtx.Names,\n\t\tNrOfMonths: brtx.NrOfMonths,\n\t\tIdentification: brtx.Identification,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_Mevsky *MevskyTransactor) SetMinBounty(opts *bind.TransactOpts, newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"setMinBounty\", newMinBounty)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactorSession) ChangeRequirement(_required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.Contract.ChangeRequirement(&_ReserveSpenderMultiSig.TransactOpts, _required)\n}",
"func (c *Config) SetMinimumFees(fees types.BaseCoins) { c.MinFees = fees.String() }",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (brutx *BotRecordUpdateTransaction) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\treturn (&BotRecordUpdateTransactionExtension{\n\t\tIdentifier: brutx.Identifier,\n\t\tSignature: brutx.Signature,\n\t\tAddressUpdate: brutx.Addresses,\n\t\tNameUpdate: brutx.Names,\n\t\tNrOfMonths: brutx.NrOfMonths,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (x *fastReflection_Bech32PrefixRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixRequest\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixRequest does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigTransactor) ChangeRequirement(opts *bind.TransactOpts, _required *big.Int) (*types.Transaction, error) {\n\treturn _ReserveSpenderMultiSig.contract.Transact(opts, \"changeRequirement\", _required)\n}",
"func (bnttx *BotNameTransferTransaction) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn (&BotNameTransferTransactionExtension{\n\t\tSender: bnttx.Sender,\n\t\tReceiver: bnttx.Receiver,\n\t\tNames: bnttx.Names,\n\t}).RequiredBotFee(oneCoin)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_Mevsky *MevskySession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_Mevsky *MevskyTransactorSession) SetMinBounty(newMinBounty *big.Int) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.SetMinBounty(&_Mevsky.TransactOpts, newMinBounty)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"updateMinimumBalance\", pool, tokenAddress)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (brtxe *BotRegistrationTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\t// a static registration fee has to be paid\n\tfee := oneCoin.Mul64(BotRegistrationFeeMultiplier)\n\t// the amount of desired months also has to be paid\n\tfee = fee.Add(ComputeMonthlyBotFees(brtxe.NrOfMonths, oneCoin))\n\t// if more than one name is defined it also has to be paid\n\tif n := len(brtxe.Names); n > 1 {\n\t\tfee = fee.Add(oneCoin.Mul64(uint64(n-1) * BotFeePerAdditionalNameMultiplier))\n\t}\n\t// no fee has to be paid for the used network addresses during registration\n\t// return the total fees\n\treturn fee\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (bnttxe *BotNameTransferTransactionExtension) RequiredBotFee(oneCoin types.Currency) types.Currency {\n\treturn oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(len(bnttxe.Names)))\n}",
"func (m *DeviceEnrollmentWindowsHelloForBusinessConfiguration) SetPinMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"pinMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (x *fastReflection_Bech32PrefixResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.auth.v1beta1.Bech32PrefixResponse.bech32_prefix\":\n\t\tpanic(fmt.Errorf(\"field bech32_prefix of message cosmos.auth.v1beta1.Bech32PrefixResponse is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.auth.v1beta1.Bech32PrefixResponse\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.auth.v1beta1.Bech32PrefixResponse does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (brutxe *BotRecordUpdateTransactionExtension) RequiredBotFee(oneCoin types.Currency) (fee types.Currency) {\n\t// all additional months have to be paid\n\tif brutxe.NrOfMonths > 0 {\n\t\tfee = fee.Add(ComputeMonthlyBotFees(brutxe.NrOfMonths, oneCoin))\n\t}\n\t// a Tx that modifies the network address info of a 3bot record also has to be paid\n\tif len(brutxe.AddressUpdate.Add) > 0 || len(brutxe.AddressUpdate.Remove) > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeeForNetworkAddressInfoChangeMultiplier))\n\t}\n\t// each additional name has to be paid as well\n\t// (regardless of the fact that the 3bot has a name or not)\n\tif n := len(brutxe.NameUpdate.Add); n > 0 {\n\t\tfee = fee.Add(oneCoin.Mul64(BotFeePerAdditionalNameMultiplier * uint64(n)))\n\t}\n\t// return the total fees\n\treturn fee\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.UpdateMinimumBalance(&_Mcapscontroller.TransactOpts, pool, tokenAddress)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minTxRelayFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to get\n\t// minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (m *AospDeviceOwnerDeviceConfiguration) SetPasswordMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"passwordMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func calcMinRequiredTxRelayFee(serializedSize int64, minRelayTxFee btcutil.Amount) int64 {\n\t// Calculate the minimum fee for a transaction to be allowed into the\n\t// mempool and relayed by scaling the base fee (which is the minimum\n\t// free transaction relay fee). minRelayTxFee is in Satoshi/kB so\n\t// multiply by serializedSize (which is in bytes) and divide by 1000 to\n\t// get minimum Satoshis.\n\tminFee := (serializedSize * int64(minRelayTxFee)) / 1000\n\n\tif minFee == 0 && minRelayTxFee > 0 {\n\t\tminFee = int64(minRelayTxFee)\n\t}\n\n\t// Set the minimum fee to the maximum possible value if the calculated\n\t// fee is not in the valid range for monetary amounts.\n\tif minFee < 0 || minFee > btcutil.MaxSatoshi {\n\t\tminFee = btcutil.MaxSatoshi\n\t}\n\n\treturn minFee\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func mineNewBlock (block *Block) {\n proofPrefix := strings.Repeat(\"0\", difficulty)\n for calculateHash(*block)[:difficulty] != proofPrefix {\n block.Nonce ++\n }\n\n block.Hash = calculateHash(*block)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (client Client) ChangeSizeSender(req *http.Request) (*http.Response, error) {\n\treturn client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func minimumPayment(dailyRate float64, monthly_days int, minPayment float64, month int, budget int, balance float64, id string) model.MonthlyPayment {\n\n\tinterestPayment := balance * dailyRate * float64(monthly_days)\n\tprincipalPayment := minPayment - interestPayment\n\n\tif balance < minPayment {\n\t\tprincipalPayment = balance\n\t}\n\n\tbalance = balance - principalPayment\n\n\tmonthlyPay := model.MonthlyPayment{ID: id, Month: month, Interest: interestPayment, PrincipalPayment: principalPayment, RemainingBalance: balance}\n\n\tfmt.Println(monthlyPay)\n\n\treturn monthlyPay\n}",
"func (n *Node) BecomeValidator(genesisAmount uint64, seedAmount uint64, stakeAmount uint64, txFee uint64) *Node {\n\t// exports AVAX from the X Chain\n\texportTxID, err := n.client.XChainAPI().ExportAVAX(\n\t\tn.UserPass,\n\t\tnil, // from addrs\n\t\t\"\", // change addr\n\t\tseedAmount+txFee, // deducted (seedAmmount + txFee(ExportAVAX) ) - 1xFee deducted from XChain + 1xFee to be deducted from PChain Tx\n\t\tn.PAddress,\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to export AVAX to pchainAddress %s\", n.PAddress))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the XChain\n\terr = chainhelper.XChain().AwaitTransactionAcceptance(n.client, exportTxID, 120*time.Second)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to export AVAX from XChain Address %s\", n.XAddress))\n\t\treturn n\n\t}\n\n\t// imports the amount to the P Chain\n\timportTxID, err := n.client.PChainAPI().ImportAVAX( // receivedAmount = (sent - txFee)\n\t\tn.UserPass,\n\t\tnil, // from addrs\n\t\t\"\", // change addr\n\t\tn.PAddress,\n\t\tconstants.XChainID.String(),\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed import AVAX to PChain Address %s\", n.PAddress))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the PChain\n\terr = chainhelper.PChain().AwaitTransactionAcceptance(n.client, importTxID, constants.TimeoutDuration)\n\tif err != nil {\n\t\tpanic(err)\n\t\treturn n\n\t}\n\n\t// verify the PChain balance of seedAmount on the PChain (which should have been at 0)\n\terr = chainhelper.PChain().CheckBalance(n.client, n.PAddress, seedAmount) // balance = seedAmount = transferred + txFee\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"expected balance of seedAmount the stakeAmount was moved to XChain\"))\n\t\treturn n\n\t}\n\n\t// verify the XChain balance of (seedAmount - stakeAmount - 2*txFee) the stake was moved to PChain\n\terr = chainhelper.XChain().CheckBalance(n.client, n.XAddress, \"AVAX\", genesisAmount-seedAmount-2*txFee)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"expected balance of (seedAmount - stakeAmount - 2*txFee) the stake was moved to XChain\"))\n\t\treturn n\n\t}\n\n\t// add nodeID as a validator\n\tstakingStartTime := time.Now().Add(20 * time.Second)\n\tstartTime := uint64(stakingStartTime.Unix())\n\tendTime := uint64(stakingStartTime.Add(72 * time.Hour).Unix())\n\taddStakerTxID, err := n.client.PChainAPI().AddValidator(\n\t\tn.UserPass,\n\t\tnil,\n\t\t\"\",\n\t\tn.PAddress,\n\t\tn.NodeID,\n\t\tstakeAmount,\n\t\tstartTime,\n\t\tendTime,\n\t\tfloat32(2),\n\t)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Failed to add validator to primary network %s\", n.id))\n\t\treturn n\n\t}\n\n\t// waits Tx acceptance in the PChain\n\terr = chainhelper.PChain().AwaitTransactionAcceptance(n.client, addStakerTxID, constants.TimeoutDuration)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"transaction not accepted\"))\n\t\treturn n\n\t}\n\n\t// waits until the validation period begins\n\ttime.Sleep(time.Until(stakingStartTime) + 3*time.Second)\n\n\t// verifies if the node is a current validator\n\tcurrentStakers, err := n.client.PChainAPI().GetCurrentValidators(ids.Empty)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Could not get current stakers.\"))\n\t\treturn n\n\t}\n\n\tfound := false\n\tfor _, stakerIntf := range currentStakers {\n\t\tstaker := stakerIntf.(map[string]interface{})\n\t\tif staker[\"nodeID\"] == n.NodeID {\n\t\t\tfound = true\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif !found {\n\t\tpanic(stacktrace.NewError(\"Node: %s not found in the stakers %v\", n.NodeID, currentStakers))\n\t\treturn n\n\t}\n\n\t// verifies the balance of the staker in the PChain - should be the seedAmmount - stakedAmount\n\terr = chainhelper.PChain().CheckBalance(n.client, n.PAddress, seedAmount-stakeAmount)\n\tif err != nil {\n\t\tpanic(stacktrace.Propagate(err, \"Error checking the PChain balance.\"))\n\t}\n\n\tlogrus.Infof(\"Verified the staker was added to current validators and has the expected P Chain balance.\")\n\n\treturn n\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeTake\", feeTake_)\n}",
"func (c *Config) MinimumFees() types.BaseCoins {\n\tfees, err := types.ParseCoins(c.MinFees)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"invalid minimum fees: %v\", err))\n\t}\n\treturn fees\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission.validator_address\":\n\t\tpanic(fmt.Errorf(\"field validator_address of message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (m *AndroidCompliancePolicy) SetPasswordMinimumLength(value *int32)() {\n err := m.GetBackingStore().Set(\"passwordMinimumLength\", value)\n if err != nil {\n panic(err)\n }\n}",
"func main() {\n\n\tconst (\n\t\turl = `http://dev:8888`\n\t\twif = `5JP1fUXwPxuKuNryh5BEsFhZqnh59yVtpHqHxMMTmtjcni48bqC`\n\t)\n\n\t// error helper\n\tlog.SetFlags(log.LstdFlags | log.Lshortfile)\n\tfatal := func(err error) {\n\t\tif err != nil {\n\t\t\ttrace := log.Output(2, err.Error())\n\t\t\tlog.Fatal(trace)\n\t\t}\n\t}\n\n\taccount, api, opts, err := fio.NewWifConnect(wif, url)\n\tfatal(err)\n\n\taction := fio.NewSetFeeVote(defaultRatios(), account.Actor).ToEos() // note casting to *eos.Action\n\n\t// this is a large tx, without compression it might fail\n\topts.Compress = fio.CompressionZlib\n\t// overriding the default compression requires a using different function\n\tresp, err := api.SignPushActionsWithOpts([]*eos.Action{action}, &opts.TxOptions)\n\tfatal(err)\n\n\t// print result\n\tj, _ := json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// Now set the fee multiplier\n\tvar (\n\t\ttokenPriceUsd float64 = 0.08 // for the example assume 1 FIO is worth 8 cents\n\t\ttargetUsd float64 = 2.00 // and the goal is for regaddress to cost $2.00\n\t\tregaddressFeeValue float64 = 2000000000 / 1_000_000_000 // and the current fee value is set to 2 FIO (in SUF)\n\t)\n\n\t// 12.5\n\tmultiplier := targetUsd / (regaddressFeeValue * tokenPriceUsd)\n\n\t// submit and print the result\n\tresp, err = api.SignPushActions(fio.NewSetFeeMult(multiplier, account.Actor))\n\tfatal(err)\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n\t// it's also important that computefees is called frequently, the on-chain fees don't change automatically without it\n\t// this call won't always have any work to do, so it's safe to ignore errors.\n\tresp, err = api.SignPushActions(fio.NewComputeFees(account.Actor))\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\tj, _ = json.MarshalIndent(resp, \"\", \" \")\n\tfmt.Println(string(j))\n\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func TestCmpctBlockFeeFilterVersion(t *testing.T) {\n\t// Use the protocol version just prior to BIP0152Version changes.\n\tpver := BIP0152Version - 1\n\tenc := BaseEncoding\n\n\tmsg, err := NewMsgCmpctBlockFromBlock(&blockOne, nil)\n\tif err != nil {\n\t\tt.Fatalf(\"NewMsgCmpctBlockFromBlock: failed to build CmpctBlock %s\", err.Error())\n\t}\n\n\t// Test encode with old protocol version.\n\tvar buf bytes.Buffer\n\terr = msg.BchEncode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"encode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n\n\t// Test decode with old protocol version.\n\treadmsg := MsgCmpctBlock{}\n\terr = readmsg.BchDecode(&buf, pver, enc)\n\tif err == nil {\n\t\tt.Errorf(\"decode of MsgCmpctBlock succeeded when it should \" +\n\t\t\t\"have failed\")\n\t}\n}",
"func (_Authority *AuthorityTransactorSession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetWorkProfilePasswordMinimumLength(value *int32)() {\n m.workProfilePasswordMinimumLength = value\n}",
"func (m *ParameterMutator) Minimum(v float64) *ParameterMutator {\n\tm.proxy.minimum = &v\n\treturn m\n}",
"func (client AccountQuotaPolicyClient) UpdateSender(req *http.Request) (future AccountQuotaPolicyUpdateFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (m *AndroidWorkProfileGeneralDeviceConfiguration) SetPasswordMinimumLength(value *int32)() {\n m.passwordMinimumLength = value\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_PromiseValidator *PromiseValidatorTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_PromiseValidator *PromiseValidatorTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.contract.Transact(opts, \"changeOwner\", _newOwner)\n}",
"func (becdsakv *BondedECDSAKeepVendor) UpgradeFactory(\n\t_factory common.Address,\n\n\ttransactionOptions ...ethutil.TransactionOptions,\n) (*types.Transaction, error) {\n\tbecdsakvLogger.Debug(\n\t\t\"submitting transaction upgradeFactory\",\n\t\t\"params: \",\n\t\tfmt.Sprint(\n\t\t\t_factory,\n\t\t),\n\t)\n\n\tbecdsakv.transactionMutex.Lock()\n\tdefer becdsakv.transactionMutex.Unlock()\n\n\t// create a copy\n\ttransactorOptions := new(bind.TransactOpts)\n\t*transactorOptions = *becdsakv.transactorOptions\n\n\tif len(transactionOptions) > 1 {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"could not process multiple transaction options sets\",\n\t\t)\n\t} else if len(transactionOptions) > 0 {\n\t\ttransactionOptions[0].Apply(transactorOptions)\n\t}\n\n\tnonce, err := becdsakv.nonceManager.CurrentNonce()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to retrieve account nonce: %v\", err)\n\t}\n\n\ttransactorOptions.Nonce = new(big.Int).SetUint64(nonce)\n\n\ttransaction, err := becdsakv.contract.UpgradeFactory(\n\t\ttransactorOptions,\n\t\t_factory,\n\t)\n\tif err != nil {\n\t\treturn transaction, becdsakv.errorResolver.ResolveError(\n\t\t\terr,\n\t\t\tbecdsakv.transactorOptions.From,\n\t\t\tnil,\n\t\t\t\"upgradeFactory\",\n\t\t\t_factory,\n\t\t)\n\t}\n\n\tbecdsakvLogger.Infof(\n\t\t\"submitted transaction upgradeFactory with id: [%v] and nonce [%v]\",\n\t\ttransaction.Hash().Hex(),\n\t\ttransaction.Nonce(),\n\t)\n\n\tgo becdsakv.miningWaiter.ForceMining(\n\t\ttransaction,\n\t\tfunc(newGasPrice *big.Int) (*types.Transaction, error) {\n\t\t\ttransactorOptions.GasLimit = transaction.Gas()\n\t\t\ttransactorOptions.GasPrice = newGasPrice\n\n\t\t\ttransaction, err := becdsakv.contract.UpgradeFactory(\n\t\t\t\ttransactorOptions,\n\t\t\t\t_factory,\n\t\t\t)\n\t\t\tif err != nil {\n\t\t\t\treturn transaction, becdsakv.errorResolver.ResolveError(\n\t\t\t\t\terr,\n\t\t\t\t\tbecdsakv.transactorOptions.From,\n\t\t\t\t\tnil,\n\t\t\t\t\t\"upgradeFactory\",\n\t\t\t\t\t_factory,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tbecdsakvLogger.Infof(\n\t\t\t\t\"submitted transaction upgradeFactory with id: [%v] and nonce [%v]\",\n\t\t\t\ttransaction.Hash().Hex(),\n\t\t\t\ttransaction.Nonce(),\n\t\t\t)\n\n\t\t\treturn transaction, nil\n\t\t},\n\t)\n\n\tbecdsakv.nonceManager.IncrementNonce()\n\n\treturn transaction, err\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func ExpectedFee(f ForwardingPolicy, htlcAmt lnwire.MilliSatoshi) lnwire.MilliSatoshi {\n\n\t// TODO(roasbeef): write some basic table driven tests\n\treturn f.BaseFee + (htlcAmt*f.FeeRate)/1000000\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (t *SimpleChaincode) updatetemp(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {\nvar key , jsonResp string\nvar err error\nfmt.Println(\"running updatetemp()\")\n\nif len(args) != 2 {\n jsonResp = \"Error :Incorrect number of arguments. Expecting 2. name of the key and temprature value to set\"\n return nil, errors.New(jsonResp)\n }\n\n\nkey = args[0]\nvar packageinfo PackageInfo\nvar temprature_reading int\n\nvalAsbytes, err := stub.GetState(key)\n\nif err != nil {\n jsonResp = \"Error :Failed to get state for \" + key\n return nil, errors.New(jsonResp)\n }\n\nerr = json.Unmarshal(valAsbytes, &packageinfo)\nif err != nil {\n fmt.Println(\"Could not marshal info object\", err)\n return nil, err\n }\n// validate pkd exist or not by checking temprature\nif packageinfo.PkgId != key{\n jsonResp = \" Error : Invalid PackageId Passed \"\n return nil, errors.New(jsonResp)\n }\n\n// check wheather the pkg temprature is in acceptable range and package in in valid status\nif packageinfo.PkgStatus == \"Pkg_Damaged\" {\n jsonResp = \" Error :Temprature thershold crossed - Package Damaged\"\n return nil, errors.New(jsonResp)\n }\n\ntemprature_reading, err = strconv.Atoi(args[1])\nif err != nil {\n\tjsonResp = \" Error : 2nd argument must be a numeric string\"\n \treturn nil, errors.New(jsonResp)\n\t}\n\n\nif temprature_reading > packageinfo.TempratureMax || temprature_reading < packageinfo.TempratureMin {\n packageinfo.PkgStatus = \"Pkg_Damaged\"\n }\n\nbytes, err := json.Marshal(&packageinfo)\nif err != nil {\n fmt.Println(\"Could not marshal personal info object\", err)\n return nil, err\n }\n\nerr = stub.PutState(key, bytes)\nif err != nil {\n return nil, err\n }\n\nreturn nil, nil\n}",
"func (b *Bitcoin) FeeRangeMin() float64 {\n\treturn b.feeRange.min\n}",
"func MockFee(randomized bool) *Fee {\n\treturn &Fee{\n\t\tGasLimit: 50000,\n\t\tGasPrice: 100,\n\t}\n}",
"func (n *OpenBazaarNode) SetSelfAsModerator(ctx context.Context, modInfo *models.ModeratorInfo, done chan struct{}) error {\n\tif (int(modInfo.Fee.FeeType) == 0 || int(modInfo.Fee.FeeType) == 2) && modInfo.Fee.FixedFee == nil {\n\t\tmaybeCloseDone(done)\n\t\treturn errors.New(\"fixed fee must be set when using a fixed fee type\")\n\t}\n\n\terr := n.repo.DB().Update(func(tx database.Tx) error {\n\t\tvar (\n\t\t\tprefs models.UserPreferences\n\t\t\tcurrencies []string\n\t\t)\n\t\terr := tx.Read().First(&prefs).Error\n\t\tif err == nil {\n\t\t\tcurrencies, err = prefs.PreferredCurrencies()\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tif len(currencies) == 0 {\n\t\t\tfor ct := range n.multiwallet {\n\t\t\t\tcurrencies = append(currencies, ct.CurrencyCode())\n\t\t\t}\n\t\t\tfor _, cc := range currencies {\n\t\t\t\tmodInfo.AcceptedCurrencies = append(modInfo.AcceptedCurrencies, normalizeCurrencyCode(cc))\n\t\t\t}\n\t\t}\n\n\t\tprofile, err := tx.GetProfile()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprofile.ModeratorInfo = modInfo\n\t\tprofile.Moderator = true\n\n\t\tif err := tx.SetProfile(profile); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tapi, err := coreapi.NewCoreAPI(n.ipfsNode)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This sets us as a \"provider\" in the DHT for the moderator key.\n\t\t// Other peers can find us by doing a DHT GetProviders query for\n\t\t// the same key.\n\t\t_, err = api.Block().Put(ctx, strings.NewReader(moderatorTopic))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tmaybeCloseDone(done)\n\t\treturn err\n\t}\n\tn.Publish(done)\n\treturn nil\n}",
"func TestMinDifficultyReduction(t *testing.T) {\n\t// Create chain params based on regnet params, but set the fields related to\n\t// proof-of-work difficulty to specific values expected by the tests.\n\tparams := chaincfg.RegNetParams\n\tparams.ReduceMinDifficulty = true\n\tparams.TargetTimePerBlock = time.Minute * 2\n\tparams.MinDiffReductionTime = time.Minute * 10 // ~99.3% chance to be mined\n\tparams.WorkDiffAlpha = 1\n\tparams.WorkDiffWindowSize = 144\n\tparams.WorkDiffWindows = 20\n\tparams.TargetTimespan = params.TargetTimePerBlock *\n\t\ttime.Duration(params.WorkDiffWindowSize)\n\tparams.RetargetAdjustmentFactor = 4\n\n\ttests := []struct {\n\t\tname string\n\t\ttimeAdjustment func(i int) time.Duration\n\t\tnumBlocks int64\n\t\texpectedDiff func(i int) uint32\n\t}{\n\t\t{\n\t\t\tname: \"genesis block\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: 1,\n\t\t\texpectedDiff: func(i int) uint32 { return params.PowLimitBits },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 1\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize - 2,\n\t\t\texpectedDiff: func(i int) uint32 { return 545259519 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 2\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 545259519 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 3\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 541100164 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 4\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 537954654 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 5\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 537141847 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 6\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 536938645 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 7\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 524428608 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 8\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 521177424 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 9\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520364628 },\n\t\t},\n\t\t{\n\t\t\tname: \"create difficulty spike - part 10\",\n\t\t\ttimeAdjustment: func(i int) time.Duration { return time.Second },\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520161429 },\n\t\t},\n\t\t{\n\t\t\tname: \"alternate min diff blocks\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\tif i%2 == 0 {\n\t\t\t\t\treturn params.MinDiffReductionTime + time.Second\n\t\t\t\t}\n\t\t\t\treturn params.TargetTimePerBlock\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 {\n\t\t\t\tif i%2 == 0 && i != 0 {\n\t\t\t\t\treturn params.PowLimitBits\n\t\t\t\t}\n\t\t\t\treturn 507651392\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 1\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 509850141 },\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 2\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520138451 },\n\t\t},\n\t\t{\n\t\t\tname: \"interval of blocks taking twice the target time - part 3\",\n\t\t\ttimeAdjustment: func(i int) time.Duration {\n\t\t\t\treturn params.TargetTimePerBlock * 2\n\t\t\t},\n\t\t\tnumBlocks: params.WorkDiffWindowSize,\n\t\t\texpectedDiff: func(i int) uint32 { return 520177692 },\n\t\t},\n\t}\n\n\tbc := newFakeChain(¶ms)\n\tnode := bc.bestChain.Tip()\n\tblockTime := time.Unix(node.timestamp, 0)\n\tfor _, test := range tests {\n\t\tfor i := 0; i < int(test.numBlocks); i++ {\n\t\t\t// Update the block time according to the test data and calculate\n\t\t\t// the difficulty for the next block.\n\t\t\tblockTime = blockTime.Add(test.timeAdjustment(i))\n\t\t\tdiff, err := bc.calcNextRequiredDifficulty(node, blockTime)\n\t\t\tif err != nil {\n\t\t\t\tt.Fatalf(\"calcNextRequiredDifficulty: unexpected err: %v\", err)\n\t\t\t}\n\n\t\t\t// Ensure the calculated difficulty matches the expected value.\n\t\t\texpectedDiff := test.expectedDiff(i)\n\t\t\tif diff != expectedDiff {\n\t\t\t\tt.Fatalf(\"calcNextRequiredDifficulty (%s): did not get \"+\n\t\t\t\t\t\"expected difficulty -- got %d, want %d\", test.name, diff,\n\t\t\t\t\texpectedDiff)\n\t\t\t}\n\n\t\t\tnode = newFakeNode(node, 1, 1, diff, blockTime)\n\t\t\tbc.index.AddNode(node)\n\t\t\tbc.bestChain.SetTip(node)\n\t\t}\n\t}\n}",
"func (m *ItemsMutator) Minimum(v float64) *ItemsMutator {\n\tm.proxy.minimum = &v\n\treturn m\n}",
"func (x *fastReflection_SendEnabled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {\n\tswitch fd.FullName() {\n\tcase \"cosmos.bank.v1beta1.SendEnabled.denom\":\n\t\tpanic(fmt.Errorf(\"field denom of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tcase \"cosmos.bank.v1beta1.SendEnabled.enabled\":\n\t\tpanic(fmt.Errorf(\"field enabled of message cosmos.bank.v1beta1.SendEnabled is not mutable\"))\n\tdefault:\n\t\tif fd.IsExtension() {\n\t\t\tpanic(fmt.Errorf(\"proto3 declared messages do not support extensions: cosmos.bank.v1beta1.SendEnabled\"))\n\t\t}\n\t\tpanic(fmt.Errorf(\"message cosmos.bank.v1beta1.SendEnabled does not contain field %s\", fd.FullName()))\n\t}\n}",
"func (_PromiseValidator *PromiseValidatorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _PromiseValidator.Contract.ChangeOwner(&_PromiseValidator.TransactOpts, _newOwner)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func TestCheckMinerFees(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\t// Create a transaction pool tester.\n\ttpt, err := createTpoolTester(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer tpt.Close()\n\n\t// Prepare a bunch of outputs for a series of graphs to fill up the\n\t// transaction pool.\n\tgraphLens := 200 // 40 kb per graph\n\tnumGraphs := (int(TransactionPoolSizeTarget) * 4 / 3) / (graphLens * 206) // 206 is the size of a single input-output graph txn.\n\tgraphFund := types.SiacoinPrecision.Mul64(1000)\n\tvar outputs []types.SiacoinOutput\n\tfor i := 0; i < numGraphs+1; i++ {\n\t\toutputs = append(outputs, types.SiacoinOutput{\n\t\t\tUnlockHash: types.UnlockConditions{}.UnlockHash(),\n\t\t\tValue: graphFund,\n\t\t})\n\t}\n\ttxns, err := tpt.wallet.SendSiacoinsMulti(outputs)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\t// Mine the graph setup in the consensus set so that the graph outputs are\n\t// distinct transaction sets.\n\t_, err = tpt.miner.AddBlock()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Recommended fees at this point should be the minimum.\n\tminRec, maxRec := tpt.tpool.FeeEstimation()\n\tif minRec.Cmp(minEstimation) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee minimum\")\n\t}\n\tif maxRec.Cmp(minEstimation.Mul64(3)) < 0 {\n\t\tt.Error(\"transaction pool is not respecting the sane fee min maximum\")\n\t}\n\n\t// Fill the transaction pool to the fee limit.\n\tfor i := 0; i < TransactionPoolSizeForFee/10e3; i++ {\n\t\tarbData := make([]byte, 10e3)\n\t\tcopy(arbData, modules.PrefixNonSia[:])\n\t\tfastrand.Read(arbData[100:116]) // prevents collisions with other transacitons in the loop.\n\t\ttxn := types.Transaction{ArbitraryData: [][]byte{arbData}}\n\t\terr := tpt.tpool.AcceptTransactionSet([]types.Transaction{txn})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Add another transaction, this one should fail for having too few fees.\n\terr = tpt.tpool.AcceptTransactionSet([]types.Transaction{{}})\n\tif err != errLowMinerFees {\n\t\tt.Error(err)\n\t}\n\n\t// Add a transaction that has sufficient fees.\n\t_, err = tpt.wallet.SendSiacoins(types.SiacoinPrecision.Mul64(50), types.UnlockHash{})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create all of the graphs.\n\tfinalTxn := txns[len(txns)-1]\n\tfor i := 0; i < numGraphs; i++ {\n\t\tvar edges []types.TransactionGraphEdge\n\t\tfor j := 0; j < graphLens; j++ {\n\t\t\tedges = append(edges, types.TransactionGraphEdge{\n\t\t\t\tDest: j + 1,\n\t\t\t\tFee: types.SiacoinPrecision,\n\t\t\t\tSource: j,\n\t\t\t\tValue: graphFund.Sub(types.SiacoinPrecision.Mul64(uint64(j + 1))),\n\t\t\t})\n\t\t}\n\t\tgraph, err := types.TransactionGraph(finalTxn.SiacoinOutputID(uint64(i)), edges)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = tpt.tpool.AcceptTransactionSet(graph)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n\n\t// Try to submit a transaction with too few fees.\n\tsource := finalTxn.SiacoinOutputID(uint64(numGraphs))\n\tlowFee := types.SiacoinPrecision.Div64(3)\n\tremaining := types.SiacoinPrecision.Mul64(1000).Sub(lowFee)\n\tedge := types.TransactionGraphEdge{\n\t\tDest: 1,\n\t\tFee: lowFee,\n\t\tSource: 0,\n\t\tValue: remaining,\n\t}\n\tlowFeeGraph, err := types.TransactionGraph(source, []types.TransactionGraphEdge{edge})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\terr = tpt.tpool.AcceptTransactionSet(lowFeeGraph)\n\tif err != errLowMinerFees {\n\t\tt.Fatal(err)\n\t}\n}",
"func (tx *Tx) change(s *bscript.Script, f *FeeQuote, newOutput bool) (uint64, bool, error) {\r\n\tinputAmount := tx.TotalInputSatoshis()\r\n\toutputAmount := tx.TotalOutputSatoshis()\r\n\r\n\tif inputAmount < outputAmount {\r\n\t\treturn 0, false, errors.New(\"satoshis inputted to the tx are less than the outputted satoshis\")\r\n\t}\r\n\r\n\tavailable := inputAmount - outputAmount\r\n\r\n\tstandardFees, err := f.Fee(FeeTypeStandard)\r\n\tif err != nil {\r\n\t\treturn 0, false, errors.New(\"standard fees not found\")\r\n\t}\r\n\tif !tx.canAddChange(available, standardFees) {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tif newOutput {\r\n\t\ttx.AddOutput(&Output{Satoshis: 0, LockingScript: s})\r\n\t}\r\n\r\n\tvar txFee uint64\r\n\tif txFee, err = tx.getTransactionFees(f); err != nil {\r\n\t\treturn 0, false, err\r\n\t}\r\n\tavailable -= txFee\r\n\r\n\treturn available, true, nil\r\n}",
"func (_Bindings *BindingsTransactor) SetReserveFactor(opts *bind.TransactOpts, newReserveFactorMantissa *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"_setReserveFactor\", newReserveFactorMantissa)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeAccount\", feeAccount_)\n}",
"func SetStartingPointForNewBlock(parenthash string, slot uint64) (expiring []string, err error) {\n\tnewBlockContracts = make(map[string]contract)\n\texpires, newstate, _ := getNewState(parenthash, slot)\n\tnewBlockState = newstate\n\treturn expires, nil\n}",
"func TestSimulateValidatorsChange(t *testing.T) {\n\tnPeers := 7\n\tnVals := 4\n\tcss, genDoc, config, cleanup := randConsensusNetWithPeers(\n\t\tnVals,\n\t\tnPeers,\n\t\t\"replay_test\",\n\t\tnewMockTickerFunc(true),\n\t\tnewPersistentKVStoreWithPath)\n\tsim.Config = config\n\tsim.GenesisState, _ = sm.MakeGenesisState(genDoc)\n\tsim.CleanupFunc = cleanup\n\n\tpartSize := types.BlockPartSizeBytes\n\n\tnewRoundCh := subscribe(css[0].eventBus, types.EventQueryNewRound)\n\tproposalCh := subscribe(css[0].eventBus, types.EventQueryCompleteProposal)\n\n\tvss := make([]*validatorStub, nPeers)\n\tfor i := 0; i < nPeers; i++ {\n\t\tvss[i] = newValidatorStub(css[i].privValidator, int32(i))\n\t}\n\theight, round := css[0].Height, css[0].Round\n\n\t// start the machine\n\tstartTestRound(css[0], height, round)\n\tincrementHeight(vss...)\n\tensureNewRound(newRoundCh, height, 0)\n\tensureNewProposal(proposalCh, height, round)\n\trs := css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 2\n\theight++\n\tincrementHeight(vss...)\n\tnewValidatorPubKey1, err := css[nVals].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tvalPubKey1ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey1)\n\trequire.NoError(t, err)\n\tnewValidatorTx1 := kvstore.MakeValSetChangeTx(valPubKey1ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx1, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ := css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts := propBlock.MakePartSet(partSize)\n\tblockID := types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\n\tproposal := types.NewProposal(vss[1].Height, round, -1, blockID)\n\tp := proposal.ToProto()\n\tif err := vss[1].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 3\n\theight++\n\tincrementHeight(vss...)\n\tupdateValidatorPubKey1, err := css[nVals].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tupdatePubKey1ABCI, err := cryptoenc.PubKeyToProto(updateValidatorPubKey1)\n\trequire.NoError(t, err)\n\tupdateValidatorTx1 := kvstore.MakeValSetChangeTx(updatePubKey1ABCI, 25)\n\terr = assertMempool(css[0].txNotifier).CheckTx(updateValidatorTx1, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\n\tproposal = types.NewProposal(vss[2].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[2].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), vss[1:nVals]...)\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 4\n\theight++\n\tincrementHeight(vss...)\n\tnewValidatorPubKey2, err := css[nVals+1].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tnewVal2ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey2)\n\trequire.NoError(t, err)\n\tnewValidatorTx2 := kvstore.MakeValSetChangeTx(newVal2ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx2, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tnewValidatorPubKey3, err := css[nVals+2].privValidator.GetPubKey()\n\trequire.NoError(t, err)\n\tnewVal3ABCI, err := cryptoenc.PubKeyToProto(newValidatorPubKey3)\n\trequire.NoError(t, err)\n\tnewValidatorTx3 := kvstore.MakeValSetChangeTx(newVal3ABCI, testMinPower)\n\terr = assertMempool(css[0].txNotifier).CheckTx(newValidatorTx3, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\tnewVss := make([]*validatorStub, nVals+1)\n\tcopy(newVss, vss[:nVals+1])\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\n\tvalIndexFn := func(cssIdx int) int {\n\t\tfor i, vs := range newVss {\n\t\t\tvsPubKey, err := vs.GetPubKey()\n\t\t\trequire.NoError(t, err)\n\n\t\t\tcssPubKey, err := css[cssIdx].privValidator.GetPubKey()\n\t\t\trequire.NoError(t, err)\n\n\t\t\tif vsPubKey.Equals(cssPubKey) {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t\tpanic(fmt.Sprintf(\"validator css[%d] not found in newVss\", cssIdx))\n\t}\n\n\tselfIndex := valIndexFn(0)\n\n\tproposal = types.NewProposal(vss[3].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[3].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\n\tremoveValidatorTx2 := kvstore.MakeValSetChangeTx(newVal2ABCI, 0)\n\terr = assertMempool(css[0].txNotifier).CheckTx(removeValidatorTx2, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+1; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 5\n\theight++\n\tincrementHeight(vss...)\n\t// Reflect the changes to vss[nVals] at height 3 and resort newVss.\n\tnewVssIdx := valIndexFn(nVals)\n\tnewVss[newVssIdx].VotingPower = 25\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\tselfIndex = valIndexFn(0)\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+1; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\t// HEIGHT 6\n\theight++\n\tincrementHeight(vss...)\n\tremoveValidatorTx3 := kvstore.MakeValSetChangeTx(newVal3ABCI, 0)\n\terr = assertMempool(css[0].txNotifier).CheckTx(removeValidatorTx3, nil, mempl.TxInfo{})\n\tassert.Nil(t, err)\n\tpropBlock, _ = css[0].createProposalBlock() // changeProposer(t, cs1, vs2)\n\tpropBlockParts = propBlock.MakePartSet(partSize)\n\tblockID = types.BlockID{Hash: propBlock.Hash(), PartSetHeader: propBlockParts.Header()}\n\tnewVss = make([]*validatorStub, nVals+3)\n\tcopy(newVss, vss[:nVals+3])\n\tsort.Sort(ValidatorStubsByPower(newVss))\n\n\tselfIndex = valIndexFn(0)\n\tproposal = types.NewProposal(vss[1].Height, round, -1, blockID)\n\tp = proposal.ToProto()\n\tif err := vss[1].SignProposal(config.ChainID(), p); err != nil {\n\t\tt.Fatal(\"failed to sign bad proposal\", err)\n\t}\n\tproposal.Signature = p.Signature\n\n\t// set the proposal block\n\tif err := css[0].SetProposalAndBlock(proposal, propBlock, propBlockParts, \"some peer\"); err != nil {\n\t\tt.Fatal(err)\n\t}\n\tensureNewProposal(proposalCh, height, round)\n\trs = css[0].GetRoundState()\n\tfor i := 0; i < nVals+3; i++ {\n\t\tif i == selfIndex {\n\t\t\tcontinue\n\t\t}\n\t\tsignAddVotes(css[0], tmproto.PrecommitType, rs.ProposalBlock.Hash(), rs.ProposalBlockParts.Header(), newVss[i])\n\t}\n\tensureNewRound(newRoundCh, height+1, 0)\n\n\tsim.Chain = make([]*types.Block, 0)\n\tsim.Commits = make([]*types.Commit, 0)\n\tfor i := 1; i <= numBlocks; i++ {\n\t\tsim.Chain = append(sim.Chain, css[0].blockStore.LoadBlock(int64(i)))\n\t\tsim.Commits = append(sim.Commits, css[0].blockStore.LoadBlockCommit(int64(i)))\n\t}\n}",
"func (_DelegatableDai *DelegatableDaiCaller) IncreaseApprovalPreSignedHashing(opts *bind.CallOpts, _token common.Address, _spender common.Address, _addedValue *big.Int, _fee *big.Int, _nonce *big.Int) ([32]byte, error) {\n\tvar (\n\t\tret0 = new([32]byte)\n\t)\n\tout := ret0\n\terr := _DelegatableDai.contract.Call(opts, out, \"increaseApprovalPreSignedHashing\", _token, _spender, _addedValue, _fee, _nonce)\n\treturn *ret0, err\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.SetSwapFee(&_Mcapscontroller.TransactOpts, poolAddress, swapFee)\n}"
] | [
"0.8494443",
"0.81980366",
"0.77627915",
"0.7441574",
"0.7423429",
"0.73999786",
"0.7211034",
"0.710504",
"0.69354606",
"0.6598323",
"0.64803404",
"0.6098156",
"0.5805744",
"0.5529243",
"0.5478155",
"0.5416151",
"0.5374173",
"0.53727657",
"0.5353111",
"0.5345003",
"0.5337852",
"0.53212875",
"0.5309224",
"0.5292229",
"0.52123976",
"0.52041227",
"0.51810575",
"0.5158654",
"0.51392025",
"0.5130837",
"0.50851107",
"0.5068294",
"0.5053797",
"0.5050036",
"0.50358963",
"0.50314456",
"0.50300306",
"0.50261116",
"0.49309784",
"0.4925679",
"0.48872674",
"0.48870566",
"0.48837596",
"0.48668224",
"0.48613372",
"0.48529994",
"0.4823901",
"0.48238856",
"0.48174304",
"0.4811961",
"0.48015586",
"0.4787124",
"0.47793496",
"0.4731337",
"0.4712336",
"0.4709145",
"0.47042385",
"0.47037044",
"0.4675986",
"0.46667868",
"0.4660578",
"0.4644037",
"0.4636282",
"0.46285507",
"0.46072182",
"0.46010718",
"0.46003363",
"0.45993674",
"0.45957202",
"0.45900944",
"0.45854953",
"0.45821226",
"0.4577617",
"0.45745787",
"0.45635617",
"0.45496106",
"0.4546761",
"0.45346445",
"0.45311022",
"0.45278955",
"0.45254704",
"0.45225573",
"0.45175895",
"0.45043227",
"0.45030648",
"0.45008442",
"0.44972983",
"0.44959497",
"0.44899732",
"0.44841164",
"0.44835007",
"0.44820803",
"0.44802085",
"0.4477077",
"0.4463297",
"0.4459294",
"0.44547802",
"0.44534042",
"0.4445647",
"0.44444355"
] | 0.82370716 | 1 |
ChangeProtocolFeeRecipient is a paid mutator transaction binding the contract method 0x514f0330. Solidity: function changeProtocolFeeRecipient(address newProtocolFeeRecipient) returns() | func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "changeProtocolFeeRecipient", newProtocolFeeRecipient)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeAccount\", feeAccount_)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (_Authority *AuthorityTransactorSession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_)\n}",
"func (_Contract *ContractCaller) ProposalFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"proposalFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeTake\", feeTake_)\n}",
"func (_Authority *AuthoritySession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_)\n}",
"func (_Contract *ContractCaller) ProposalBurntFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"proposalBurntFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (btc *ExchangeWallet) PayFee(address string, regFee uint64) (asset.Coin, error) {\n\ttxHash, vout, sent, err := btc.send(address, regFee, btc.feeRateWithFallback(), false)\n\tif err != nil {\n\t\tbtc.log.Errorf(\"PayFee error address = '%s', fee = %d: %v\", address, regFee, err)\n\t\treturn nil, err\n\t}\n\treturn newOutput(btc.node, txHash, vout, sent, nil), nil\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeToSetter\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeToSetter\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeTo() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_Contract *ContractCallerSession) ProposalFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalFee(&_Contract.CallOpts)\n}",
"func (_Contract *ContractCallerSession) ProposalBurntFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalBurntFee(&_Contract.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeTo() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (l *channelLink) updateChannelFee(feePerKw btcutil.Amount) error {\n\t// Update local fee.\n\tif err := l.channel.UpdateFee(feePerKw); err != nil {\n\t\treturn err\n\t}\n\n\t// Send fee update to remote.\n\tmsg := lnwire.NewUpdateFee(l.ChanID(), feePerKw)\n\treturn l.cfg.Peer.SendMessage(msg)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_)\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (api *PrivateExtensionAPI) ExtendContract(ctx context.Context, toExtend common.Address, newRecipientPtmPublicKey string, recipientAddr common.Address, txa ethapi.SendTxArgs) (string, error) {\n\t// check if the contract to be extended is already under extension\n\t// if yes throw an error\n\tif api.checkIfContractUnderExtension(ctx, toExtend) {\n\t\treturn \"\", errors.New(\"contract extension in progress for the given contract address\")\n\t}\n\n\t// check if a public contract is being extended\n\tisPublic, err := api.checkIfPublicContract(toExtend)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif isPublic {\n\t\treturn \"\", errors.New(\"extending a public contract!!! not allowed\")\n\t}\n\n\terr = api.doMultiTenantChecks(ctx, txa.From, txa)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// check if recipient address is 0x0\n\tif recipientAddr == (common.Address{0}) {\n\t\treturn \"\", errors.New(\"invalid recipient address\")\n\t}\n\n\tpsm, err := api.privacyService.apiBackendHelper.PSMR().ResolveForUserContext(ctx)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// check if a private contract exists\n\tprivateContractExists, err := api.checkIfPrivateStateExists(psm.ID, toExtend)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif !privateContractExists {\n\t\treturn \"\", errors.New(\"extending a non-existent private contract!!! not allowed\")\n\t}\n\n\t// check if contract creator\n\tif !api.privacyService.CheckIfContractCreator(api.privacyService.stateFetcher.getCurrentBlockHash(), toExtend, psm.ID) {\n\t\treturn \"\", errors.New(\"operation not allowed\")\n\t}\n\n\t// if running in permissioned mode with new permissions model\n\t// ensure that the account extending the contract is an admin\n\t// account and recipient account is an admin account as well\n\tif txa.From == recipientAddr {\n\t\treturn \"\", errors.New(\"account accepting the extension cannot be the account initiating extension\")\n\t}\n\tif !core.CheckIfAdminAccount(txa.From) {\n\t\treturn \"\", errors.New(\"account not an org admin account, cannot initiate extension\")\n\t}\n\tif !core.CheckIfAdminAccount(recipientAddr) {\n\t\treturn \"\", errors.New(\"recipient account address is not an org admin account. cannot accept extension\")\n\t}\n\n\t// check the new key is valid\n\tif _, err := base64.StdEncoding.DecodeString(newRecipientPtmPublicKey); err != nil {\n\t\treturn \"\", errors.New(\"invalid new recipient transaction manager key provided\")\n\t}\n\n\t// check the the intended new recipient will actually receive the extension request\n\tswitch len(txa.PrivateFor) {\n\tcase 0:\n\t\ttxa.PrivateFor = append(txa.PrivateFor, newRecipientPtmPublicKey)\n\tcase 1:\n\t\tif txa.PrivateFor[0] != newRecipientPtmPublicKey {\n\t\t\treturn \"\", errors.New(\"mismatch between recipient transaction manager key and privateFor argument\")\n\t\t}\n\tdefault:\n\t\treturn \"\", errors.New(\"invalid transaction manager keys given in privateFor argument\")\n\t}\n\n\t// get all participants for the contract being extended\n\tparticipants, err := api.privacyService.GetAllParticipants(api.privacyService.stateFetcher.getCurrentBlockHash(), toExtend, psm.ID)\n\tif err == nil {\n\t\ttxa.PrivateFor = append(txa.PrivateFor, participants...)\n\t}\n\n\t//generate some valid transaction options for sending in the transaction\n\ttxArgs, err := api.privacyService.GenerateTransactOptions(txa)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tpsiManagementContractClient := api.privacyService.managementContract(psm.ID)\n\tdefer psiManagementContractClient.Close()\n\t//Deploy the contract\n\ttx, err := psiManagementContractClient.Deploy(txArgs, toExtend, recipientAddr, newRecipientPtmPublicKey)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t//Return the transaction hash for later lookup\n\tmsg := fmt.Sprintf(\"0x%x\", tx.Hash())\n\treturn msg, nil\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeTo() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeTo(&_SushiV2Factory.CallOpts)\n}",
"func ScheduleChangeRequestActorPRecipient() *ScheduleChangeRequestActor {\n\tv := ScheduleChangeRequestActorVRecipient\n\treturn &v\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_)\n}",
"func (_Authority *AuthorityCaller) Fee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _Authority.contract.Call(opts, out, \"fee\")\n\treturn *ret0, err\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeTo() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeTo(&_SushiV2Factory.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_Contract *ContractSession) ProposalBurntFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalBurntFee(&_Contract.CallOpts)\n}",
"func (_Contract *ContractSession) ProposalFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalFee(&_Contract.CallOpts)\n}",
"func (gc *GovernanceContract) ProposalFee() (hexutil.Big, error) {\n\treturn gc.repo.GovernanceProposalFee(&gc.Address)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (c *ClientWithResponses) ChangeaspecificBillingFeeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ChangeaspecificBillingFeeResponse, error) {\n\trsp, err := c.ChangeaspecificBillingFeeWithBody(ctx, id, contentType, body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ParseChangeaspecificBillingFeeResponse(rsp)\n}",
"func (_Authority *AuthorityCallerSession) Fee() (*big.Int, error) {\n\treturn _Authority.Contract.Fee(&_Authority.CallOpts)\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func (_Distributor *DistributorTransactor) WithdrawFee(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) {\n\treturn _Distributor.contract.Transact(opts, \"withdrawFee\", to)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeTo\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) PROXYTYPETRANSFERFEE(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"PROXY_TYPE_TRANSFER_FEE\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_Cakevault *CakevaultCaller) CallFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Cakevault.contract.Call(opts, &out, \"callFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (dcr *ExchangeWallet) PayFee(address string, regFee uint64) (asset.Coin, error) {\n\taddr, err := dcrutil.DecodeAddress(address, chainParams)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\t// TODO: Evaluate SendToAddress and how it deals with the change output\n\t// address index to see if it can be used here instead.\n\tmsgTx, sent, err := dcr.sendRegFee(addr, regFee, dcr.feeRateWithFallback(1))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif sent != regFee {\n\t\treturn nil, fmt.Errorf(\"transaction %s was sent, but the reported value sent was unexpected. \"+\n\t\t\t\"expected %.8f, but %.8f was reported\", msgTx.CachedTxHash(), toDCR(regFee), toDCR(sent))\n\t}\n\treturn newOutput(msgTx.CachedTxHash(), 0, regFee, wire.TxTreeRegular), nil\n}",
"func (m *CassandraDB) SetMemberFee(\n\tctx context.Context, id string, fee uint64, yearly bool) error {\n\tvar member *membersys.MembershipAgreement = new(membersys.MembershipAgreement)\n\tvar batch *gocql.Batch\n\tvar encodedProto []byte\n\tvar stmt *gocql.Query\n\tvar err error\n\n\t// Retrieve the protobuf with all data from Cassandra. Use a quorum read to make sure we aren't\n\t// missing any recent updates.\n\tstmt = m.sess.Query(\n\t\t\"SELECT pb_data FROM members WHERE key = ?\",\n\t\tappend([]byte(memberPrefix), []byte(id)...)).WithContext(ctx).\n\t\tConsistency(gocql.Quorum)\n\tdefer stmt.Release()\n\n\terr = stmt.Scan(&encodedProto)\n\tif err == gocql.ErrNotFound {\n\t\treturn grpc.Errorf(codes.NotFound, \"No member found for %s: %s\", id,\n\t\t\terr.Error())\n\t}\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.Internal, \"Error running query: %s\",\n\t\t\terr.Error())\n\t}\n\n\t// Decode the protobuf which was written to the column.\n\terr = proto.Unmarshal(encodedProto, member)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmember.MemberData.Fee = &fee\n\tmember.MemberData.FeeYearly = &yearly\n\n\tencodedProto, err = proto.Marshal(member)\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.DataLoss,\n\t\t\t\"Error parsing stored membership data: %s\", err.Error())\n\t}\n\n\t// Write data columns and pb_data back.\n\tbatch = m.sess.NewBatch(gocql.LoggedBatch).WithContext(ctx)\n\tbatch.SetConsistency(gocql.Quorum)\n\tbatch.Query(\n\t\t\"UPDATE members SET pb_data = ?, fee = ?, fee_yearly = ? WHERE key = ?\",\n\t\tencodedProto, fee, yearly, append([]byte(memberPrefix),\n\t\t\t[]byte(id)...))\n\tbatch.Query(\n\t\t\"UPDATE member_agreements SET pb_data = ? WHERE key = ?\",\n\t\tencodedProto, append([]byte(memberPrefix), []byte(id)...))\n\terr = m.sess.ExecuteBatch(batch)\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.Internal,\n\t\t\t\"Error writing back membership data: %s\", err.Error())\n\t}\n\n\treturn nil\n}",
"func (_ElvTradable *ElvTradableCaller) PROXYTYPETRANSFERFEE(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"PROXY_TYPE_TRANSFER_FEE\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) TransferFeeProxyAddress(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"transferFeeProxyAddress\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeTo\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_L1Block *L1BlockCaller) Basefee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _L1Block.contract.Call(opts, &out, \"basefee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func bindTransferFeeProxy(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := ParsedABI(K_TransferFeeProxy)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil\n}",
"func (p *rpcPeer) FeeFilter() int64 {\n\treturn atomic.LoadInt64(&(*serverPeer)(p).feeFilter)\n}",
"func rpcToFee(req *looprpc.LiquidityParameters) (liquidity.FeeLimit,\n\terror) {\n\n\t// Check which fee limit type we have values set for. If any fields\n\t// relevant to our individual categories are set, we count that type\n\t// as set.\n\tisFeePPM := req.FeePpm != 0\n\tisCategories := req.MaxSwapFeePpm != 0 || req.MaxRoutingFeePpm != 0 ||\n\t\treq.MaxPrepayRoutingFeePpm != 0 || req.MaxMinerFeeSat != 0 ||\n\t\treq.MaxPrepaySat != 0 || req.SweepFeeRateSatPerVbyte != 0\n\n\tswitch {\n\tcase isFeePPM && isCategories:\n\t\treturn nil, errors.New(\"set either fee ppm, or individual \" +\n\t\t\t\"fee categories\")\n\tcase isFeePPM:\n\t\treturn liquidity.NewFeePortion(req.FeePpm), nil\n\n\tcase isCategories:\n\t\tsatPerVbyte := chainfee.SatPerKVByte(\n\t\t\treq.SweepFeeRateSatPerVbyte * 1000,\n\t\t)\n\n\t\treturn liquidity.NewFeeCategoryLimit(\n\t\t\treq.MaxSwapFeePpm,\n\t\t\treq.MaxRoutingFeePpm,\n\t\t\treq.MaxPrepayRoutingFeePpm,\n\t\t\tbtcutil.Amount(req.MaxMinerFeeSat),\n\t\t\tbtcutil.Amount(req.MaxPrepaySat),\n\t\t\tsatPerVbyte.FeePerKWeight(),\n\t\t), nil\n\n\tdefault:\n\t\treturn nil, errors.New(\"no fee categories set\")\n\t}\n}",
"func additionalSpendFee(fee dcrutil.Amount) func(*wire.MsgBlock) {\n\treturn func(b *wire.MsgBlock) {\n\t\t// Increase the fee of the spending transaction by reducing the\n\t\t// amount paid,\n\t\tif int64(fee) > b.Transactions[1].TxOut[0].Value {\n\t\t\tpanic(fmt.Sprintf(\"additionalSpendFee: fee of %d \"+\n\t\t\t\t\"exceeds available spend transaction value\",\n\t\t\t\tfee))\n\t\t}\n\t\tb.Transactions[1].TxOut[0].Value -= int64(fee)\n\t}\n}",
"func additionalSpendFee(fee dcrutil.Amount) func(*wire.MsgBlock) {\n\treturn func(b *wire.MsgBlock) {\n\t\t// Increase the fee of the spending transaction by reducing the\n\t\t// amount paid,\n\t\tif int64(fee) > b.Transactions[1].TxOut[0].Value {\n\t\t\tpanic(fmt.Sprintf(\"additionalSpendFee: fee of %d \"+\n\t\t\t\t\"exceeds available spend transaction value\",\n\t\t\t\tfee))\n\t\t}\n\t\tb.Transactions[1].TxOut[0].Value -= int64(fee)\n\t}\n}",
"func (_Dospayment *DospaymentTransactor) SetServiceFee(opts *bind.TransactOpts, tokenAddr common.Address, serviceType *big.Int, fee *big.Int) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"setServiceFee\", tokenAddr, serviceType, fee)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) SetTransferFeeProxyAddress(opts *bind.TransactOpts, _newProxy common.Address) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"setTransferFeeProxyAddress\", _newProxy)\n}",
"func (_Authority *AuthoritySession) Fee() (*big.Int, error) {\n\treturn _Authority.Contract.Fee(&_Authority.CallOpts)\n}",
"func (_ElvTradable *ElvTradableCaller) TransferFeeProxyAddress(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"transferFeeProxyAddress\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_Distributor *DistributorTransactorSession) WithdrawFee(to common.Address) (*types.Transaction, error) {\n\treturn _Distributor.Contract.WithdrawFee(&_Distributor.TransactOpts, to)\n}",
"func (_ElvTradable *ElvTradableTransactor) SetTransferFeeProxyAddress(opts *bind.TransactOpts, _newProxy common.Address) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"setTransferFeeProxyAddress\", _newProxy)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func (_DelegateProfile *DelegateProfileFilterer) FilterFeeUpdated(opts *bind.FilterOpts) (*DelegateProfileFeeUpdatedIterator, error) {\n\n\tlogs, sub, err := _DelegateProfile.contract.FilterLogs(opts, \"FeeUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DelegateProfileFeeUpdatedIterator{contract: _DelegateProfile.contract, event: \"FeeUpdated\", logs: logs, sub: sub}, nil\n}",
"func (c *ClientWithResponses) ReplacechangeaspecificBillingFeeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ReplacechangeaspecificBillingFeeResponse, error) {\n\trsp, err := c.ReplacechangeaspecificBillingFeeWithBody(ctx, id, contentType, body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ParseReplacechangeaspecificBillingFeeResponse(rsp)\n}",
"func (tx *Tx) ChangeToAddress(addr string, f *FeeQuote) error {\r\n\ts, err := bscript.NewP2PKHFromAddress(addr)\r\n\tif err != nil {\r\n\t\treturn err\r\n\t}\r\n\r\n\treturn tx.Change(s, f)\r\n}",
"func NewChangeaspecificBillingFeeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {\n\tvar err error\n\n\tvar pathParam0 string\n\n\tpathParam0, err = runtime.StyleParam(\"simple\", false, \"id\", id)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tqueryUrl, err := url.Parse(server)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tbasePath := fmt.Sprintf(\"/billingfees/%s\", pathParam0)\n\tif basePath[0] == '/' {\n\t\tbasePath = basePath[1:]\n\t}\n\n\tqueryUrl, err = queryUrl.Parse(basePath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq, err := http.NewRequest(\"PATCH\", queryUrl.String(), body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq.Header.Add(\"Content-Type\", contentType)\n\treturn req, nil\n}"
] | [
"0.805993",
"0.80376035",
"0.7687252",
"0.724272",
"0.71966887",
"0.6614347",
"0.64911747",
"0.6486618",
"0.6338528",
"0.6174901",
"0.61443704",
"0.5924814",
"0.5853385",
"0.5834652",
"0.5730521",
"0.5662627",
"0.5643691",
"0.56111723",
"0.55665094",
"0.55565566",
"0.5551233",
"0.55504966",
"0.55397177",
"0.55264306",
"0.5511325",
"0.54991597",
"0.5449319",
"0.54314345",
"0.54292196",
"0.54006416",
"0.537779",
"0.5372059",
"0.535691",
"0.53517234",
"0.533933",
"0.5319412",
"0.5310042",
"0.52973855",
"0.5294453",
"0.52807915",
"0.5279966",
"0.5261152",
"0.52203673",
"0.5219522",
"0.5210187",
"0.5201697",
"0.51775265",
"0.51654005",
"0.5158499",
"0.5133117",
"0.5123208",
"0.511034",
"0.51070964",
"0.50936216",
"0.508595",
"0.5084037",
"0.5066031",
"0.5047925",
"0.5044183",
"0.503413",
"0.5025906",
"0.4990523",
"0.4987484",
"0.497605",
"0.4973096",
"0.49686876",
"0.4947802",
"0.49272913",
"0.49181265",
"0.4904418",
"0.48949552",
"0.48768598",
"0.48440987",
"0.48394206",
"0.48383224",
"0.48360896",
"0.4833576",
"0.4810399",
"0.48074692",
"0.47832617",
"0.47762957",
"0.47671914",
"0.47632784",
"0.47525972",
"0.47470802",
"0.47355038",
"0.47355038",
"0.47293022",
"0.47171465",
"0.47143295",
"0.47132826",
"0.47034046",
"0.46966788",
"0.4688947",
"0.46853852",
"0.46794334",
"0.46687934",
"0.46576175",
"0.465563",
"0.4649034"
] | 0.8451361 | 0 |
ChangeProtocolFeeRecipient is a paid mutator transaction binding the contract method 0x514f0330. Solidity: function changeProtocolFeeRecipient(address newProtocolFeeRecipient) returns() | func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {
return _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeAccount\", feeAccount_)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (_Authority *AuthorityTransactorSession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_)\n}",
"func (_Contract *ContractCaller) ProposalFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"proposalFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeTake\", feeTake_)\n}",
"func (_Authority *AuthoritySession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_)\n}",
"func (_Contract *ContractCaller) ProposalBurntFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"proposalBurntFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (btc *ExchangeWallet) PayFee(address string, regFee uint64) (asset.Coin, error) {\n\ttxHash, vout, sent, err := btc.send(address, regFee, btc.feeRateWithFallback(), false)\n\tif err != nil {\n\t\tbtc.log.Errorf(\"PayFee error address = '%s', fee = %d: %v\", address, regFee, err)\n\t\treturn nil, err\n\t}\n\treturn newOutput(btc.node, txHash, vout, sent, nil), nil\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeToSetter\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeToSetter\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeTo() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_Contract *ContractCallerSession) ProposalFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalFee(&_Contract.CallOpts)\n}",
"func (_Contract *ContractCallerSession) ProposalBurntFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalBurntFee(&_Contract.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeTo() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (l *channelLink) updateChannelFee(feePerKw btcutil.Amount) error {\n\t// Update local fee.\n\tif err := l.channel.UpdateFee(feePerKw); err != nil {\n\t\treturn err\n\t}\n\n\t// Send fee update to remote.\n\tmsg := lnwire.NewUpdateFee(l.ChanID(), feePerKw)\n\treturn l.cfg.Peer.SendMessage(msg)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_)\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (api *PrivateExtensionAPI) ExtendContract(ctx context.Context, toExtend common.Address, newRecipientPtmPublicKey string, recipientAddr common.Address, txa ethapi.SendTxArgs) (string, error) {\n\t// check if the contract to be extended is already under extension\n\t// if yes throw an error\n\tif api.checkIfContractUnderExtension(ctx, toExtend) {\n\t\treturn \"\", errors.New(\"contract extension in progress for the given contract address\")\n\t}\n\n\t// check if a public contract is being extended\n\tisPublic, err := api.checkIfPublicContract(toExtend)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif isPublic {\n\t\treturn \"\", errors.New(\"extending a public contract!!! not allowed\")\n\t}\n\n\terr = api.doMultiTenantChecks(ctx, txa.From, txa)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// check if recipient address is 0x0\n\tif recipientAddr == (common.Address{0}) {\n\t\treturn \"\", errors.New(\"invalid recipient address\")\n\t}\n\n\tpsm, err := api.privacyService.apiBackendHelper.PSMR().ResolveForUserContext(ctx)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// check if a private contract exists\n\tprivateContractExists, err := api.checkIfPrivateStateExists(psm.ID, toExtend)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif !privateContractExists {\n\t\treturn \"\", errors.New(\"extending a non-existent private contract!!! not allowed\")\n\t}\n\n\t// check if contract creator\n\tif !api.privacyService.CheckIfContractCreator(api.privacyService.stateFetcher.getCurrentBlockHash(), toExtend, psm.ID) {\n\t\treturn \"\", errors.New(\"operation not allowed\")\n\t}\n\n\t// if running in permissioned mode with new permissions model\n\t// ensure that the account extending the contract is an admin\n\t// account and recipient account is an admin account as well\n\tif txa.From == recipientAddr {\n\t\treturn \"\", errors.New(\"account accepting the extension cannot be the account initiating extension\")\n\t}\n\tif !core.CheckIfAdminAccount(txa.From) {\n\t\treturn \"\", errors.New(\"account not an org admin account, cannot initiate extension\")\n\t}\n\tif !core.CheckIfAdminAccount(recipientAddr) {\n\t\treturn \"\", errors.New(\"recipient account address is not an org admin account. cannot accept extension\")\n\t}\n\n\t// check the new key is valid\n\tif _, err := base64.StdEncoding.DecodeString(newRecipientPtmPublicKey); err != nil {\n\t\treturn \"\", errors.New(\"invalid new recipient transaction manager key provided\")\n\t}\n\n\t// check the the intended new recipient will actually receive the extension request\n\tswitch len(txa.PrivateFor) {\n\tcase 0:\n\t\ttxa.PrivateFor = append(txa.PrivateFor, newRecipientPtmPublicKey)\n\tcase 1:\n\t\tif txa.PrivateFor[0] != newRecipientPtmPublicKey {\n\t\t\treturn \"\", errors.New(\"mismatch between recipient transaction manager key and privateFor argument\")\n\t\t}\n\tdefault:\n\t\treturn \"\", errors.New(\"invalid transaction manager keys given in privateFor argument\")\n\t}\n\n\t// get all participants for the contract being extended\n\tparticipants, err := api.privacyService.GetAllParticipants(api.privacyService.stateFetcher.getCurrentBlockHash(), toExtend, psm.ID)\n\tif err == nil {\n\t\ttxa.PrivateFor = append(txa.PrivateFor, participants...)\n\t}\n\n\t//generate some valid transaction options for sending in the transaction\n\ttxArgs, err := api.privacyService.GenerateTransactOptions(txa)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tpsiManagementContractClient := api.privacyService.managementContract(psm.ID)\n\tdefer psiManagementContractClient.Close()\n\t//Deploy the contract\n\ttx, err := psiManagementContractClient.Deploy(txArgs, toExtend, recipientAddr, newRecipientPtmPublicKey)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t//Return the transaction hash for later lookup\n\tmsg := fmt.Sprintf(\"0x%x\", tx.Hash())\n\treturn msg, nil\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeTo() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeTo(&_SushiV2Factory.CallOpts)\n}",
"func ScheduleChangeRequestActorPRecipient() *ScheduleChangeRequestActor {\n\tv := ScheduleChangeRequestActorVRecipient\n\treturn &v\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_)\n}",
"func (_Authority *AuthorityCaller) Fee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _Authority.contract.Call(opts, out, \"fee\")\n\treturn *ret0, err\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeTo() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeTo(&_SushiV2Factory.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_Contract *ContractSession) ProposalBurntFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalBurntFee(&_Contract.CallOpts)\n}",
"func (_Contract *ContractSession) ProposalFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalFee(&_Contract.CallOpts)\n}",
"func (gc *GovernanceContract) ProposalFee() (hexutil.Big, error) {\n\treturn gc.repo.GovernanceProposalFee(&gc.Address)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (c *ClientWithResponses) ChangeaspecificBillingFeeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ChangeaspecificBillingFeeResponse, error) {\n\trsp, err := c.ChangeaspecificBillingFeeWithBody(ctx, id, contentType, body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ParseChangeaspecificBillingFeeResponse(rsp)\n}",
"func (_Authority *AuthorityCallerSession) Fee() (*big.Int, error) {\n\treturn _Authority.Contract.Fee(&_Authority.CallOpts)\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func (_Distributor *DistributorTransactor) WithdrawFee(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) {\n\treturn _Distributor.contract.Transact(opts, \"withdrawFee\", to)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeTo\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) PROXYTYPETRANSFERFEE(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"PROXY_TYPE_TRANSFER_FEE\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_Cakevault *CakevaultCaller) CallFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Cakevault.contract.Call(opts, &out, \"callFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (dcr *ExchangeWallet) PayFee(address string, regFee uint64) (asset.Coin, error) {\n\taddr, err := dcrutil.DecodeAddress(address, chainParams)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\t// TODO: Evaluate SendToAddress and how it deals with the change output\n\t// address index to see if it can be used here instead.\n\tmsgTx, sent, err := dcr.sendRegFee(addr, regFee, dcr.feeRateWithFallback(1))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif sent != regFee {\n\t\treturn nil, fmt.Errorf(\"transaction %s was sent, but the reported value sent was unexpected. \"+\n\t\t\t\"expected %.8f, but %.8f was reported\", msgTx.CachedTxHash(), toDCR(regFee), toDCR(sent))\n\t}\n\treturn newOutput(msgTx.CachedTxHash(), 0, regFee, wire.TxTreeRegular), nil\n}",
"func (m *CassandraDB) SetMemberFee(\n\tctx context.Context, id string, fee uint64, yearly bool) error {\n\tvar member *membersys.MembershipAgreement = new(membersys.MembershipAgreement)\n\tvar batch *gocql.Batch\n\tvar encodedProto []byte\n\tvar stmt *gocql.Query\n\tvar err error\n\n\t// Retrieve the protobuf with all data from Cassandra. Use a quorum read to make sure we aren't\n\t// missing any recent updates.\n\tstmt = m.sess.Query(\n\t\t\"SELECT pb_data FROM members WHERE key = ?\",\n\t\tappend([]byte(memberPrefix), []byte(id)...)).WithContext(ctx).\n\t\tConsistency(gocql.Quorum)\n\tdefer stmt.Release()\n\n\terr = stmt.Scan(&encodedProto)\n\tif err == gocql.ErrNotFound {\n\t\treturn grpc.Errorf(codes.NotFound, \"No member found for %s: %s\", id,\n\t\t\terr.Error())\n\t}\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.Internal, \"Error running query: %s\",\n\t\t\terr.Error())\n\t}\n\n\t// Decode the protobuf which was written to the column.\n\terr = proto.Unmarshal(encodedProto, member)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmember.MemberData.Fee = &fee\n\tmember.MemberData.FeeYearly = &yearly\n\n\tencodedProto, err = proto.Marshal(member)\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.DataLoss,\n\t\t\t\"Error parsing stored membership data: %s\", err.Error())\n\t}\n\n\t// Write data columns and pb_data back.\n\tbatch = m.sess.NewBatch(gocql.LoggedBatch).WithContext(ctx)\n\tbatch.SetConsistency(gocql.Quorum)\n\tbatch.Query(\n\t\t\"UPDATE members SET pb_data = ?, fee = ?, fee_yearly = ? WHERE key = ?\",\n\t\tencodedProto, fee, yearly, append([]byte(memberPrefix),\n\t\t\t[]byte(id)...))\n\tbatch.Query(\n\t\t\"UPDATE member_agreements SET pb_data = ? WHERE key = ?\",\n\t\tencodedProto, append([]byte(memberPrefix), []byte(id)...))\n\terr = m.sess.ExecuteBatch(batch)\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.Internal,\n\t\t\t\"Error writing back membership data: %s\", err.Error())\n\t}\n\n\treturn nil\n}",
"func (_ElvTradable *ElvTradableCaller) PROXYTYPETRANSFERFEE(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"PROXY_TYPE_TRANSFER_FEE\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) TransferFeeProxyAddress(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"transferFeeProxyAddress\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeTo\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_L1Block *L1BlockCaller) Basefee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _L1Block.contract.Call(opts, &out, \"basefee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func bindTransferFeeProxy(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := ParsedABI(K_TransferFeeProxy)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil\n}",
"func (p *rpcPeer) FeeFilter() int64 {\n\treturn atomic.LoadInt64(&(*serverPeer)(p).feeFilter)\n}",
"func rpcToFee(req *looprpc.LiquidityParameters) (liquidity.FeeLimit,\n\terror) {\n\n\t// Check which fee limit type we have values set for. If any fields\n\t// relevant to our individual categories are set, we count that type\n\t// as set.\n\tisFeePPM := req.FeePpm != 0\n\tisCategories := req.MaxSwapFeePpm != 0 || req.MaxRoutingFeePpm != 0 ||\n\t\treq.MaxPrepayRoutingFeePpm != 0 || req.MaxMinerFeeSat != 0 ||\n\t\treq.MaxPrepaySat != 0 || req.SweepFeeRateSatPerVbyte != 0\n\n\tswitch {\n\tcase isFeePPM && isCategories:\n\t\treturn nil, errors.New(\"set either fee ppm, or individual \" +\n\t\t\t\"fee categories\")\n\tcase isFeePPM:\n\t\treturn liquidity.NewFeePortion(req.FeePpm), nil\n\n\tcase isCategories:\n\t\tsatPerVbyte := chainfee.SatPerKVByte(\n\t\t\treq.SweepFeeRateSatPerVbyte * 1000,\n\t\t)\n\n\t\treturn liquidity.NewFeeCategoryLimit(\n\t\t\treq.MaxSwapFeePpm,\n\t\t\treq.MaxRoutingFeePpm,\n\t\t\treq.MaxPrepayRoutingFeePpm,\n\t\t\tbtcutil.Amount(req.MaxMinerFeeSat),\n\t\t\tbtcutil.Amount(req.MaxPrepaySat),\n\t\t\tsatPerVbyte.FeePerKWeight(),\n\t\t), nil\n\n\tdefault:\n\t\treturn nil, errors.New(\"no fee categories set\")\n\t}\n}",
"func additionalSpendFee(fee dcrutil.Amount) func(*wire.MsgBlock) {\n\treturn func(b *wire.MsgBlock) {\n\t\t// Increase the fee of the spending transaction by reducing the\n\t\t// amount paid,\n\t\tif int64(fee) > b.Transactions[1].TxOut[0].Value {\n\t\t\tpanic(fmt.Sprintf(\"additionalSpendFee: fee of %d \"+\n\t\t\t\t\"exceeds available spend transaction value\",\n\t\t\t\tfee))\n\t\t}\n\t\tb.Transactions[1].TxOut[0].Value -= int64(fee)\n\t}\n}",
"func additionalSpendFee(fee dcrutil.Amount) func(*wire.MsgBlock) {\n\treturn func(b *wire.MsgBlock) {\n\t\t// Increase the fee of the spending transaction by reducing the\n\t\t// amount paid,\n\t\tif int64(fee) > b.Transactions[1].TxOut[0].Value {\n\t\t\tpanic(fmt.Sprintf(\"additionalSpendFee: fee of %d \"+\n\t\t\t\t\"exceeds available spend transaction value\",\n\t\t\t\tfee))\n\t\t}\n\t\tb.Transactions[1].TxOut[0].Value -= int64(fee)\n\t}\n}",
"func (_Dospayment *DospaymentTransactor) SetServiceFee(opts *bind.TransactOpts, tokenAddr common.Address, serviceType *big.Int, fee *big.Int) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"setServiceFee\", tokenAddr, serviceType, fee)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) SetTransferFeeProxyAddress(opts *bind.TransactOpts, _newProxy common.Address) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"setTransferFeeProxyAddress\", _newProxy)\n}",
"func (_ElvTradable *ElvTradableCaller) TransferFeeProxyAddress(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"transferFeeProxyAddress\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_Authority *AuthoritySession) Fee() (*big.Int, error) {\n\treturn _Authority.Contract.Fee(&_Authority.CallOpts)\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_Distributor *DistributorTransactorSession) WithdrawFee(to common.Address) (*types.Transaction, error) {\n\treturn _Distributor.Contract.WithdrawFee(&_Distributor.TransactOpts, to)\n}",
"func (_ElvTradable *ElvTradableTransactor) SetTransferFeeProxyAddress(opts *bind.TransactOpts, _newProxy common.Address) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"setTransferFeeProxyAddress\", _newProxy)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func (_DelegateProfile *DelegateProfileFilterer) FilterFeeUpdated(opts *bind.FilterOpts) (*DelegateProfileFeeUpdatedIterator, error) {\n\n\tlogs, sub, err := _DelegateProfile.contract.FilterLogs(opts, \"FeeUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DelegateProfileFeeUpdatedIterator{contract: _DelegateProfile.contract, event: \"FeeUpdated\", logs: logs, sub: sub}, nil\n}",
"func (c *ClientWithResponses) ReplacechangeaspecificBillingFeeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ReplacechangeaspecificBillingFeeResponse, error) {\n\trsp, err := c.ReplacechangeaspecificBillingFeeWithBody(ctx, id, contentType, body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ParseReplacechangeaspecificBillingFeeResponse(rsp)\n}",
"func (tx *Tx) ChangeToAddress(addr string, f *FeeQuote) error {\r\n\ts, err := bscript.NewP2PKHFromAddress(addr)\r\n\tif err != nil {\r\n\t\treturn err\r\n\t}\r\n\r\n\treturn tx.Change(s, f)\r\n}",
"func NewChangeaspecificBillingFeeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {\n\tvar err error\n\n\tvar pathParam0 string\n\n\tpathParam0, err = runtime.StyleParam(\"simple\", false, \"id\", id)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tqueryUrl, err := url.Parse(server)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tbasePath := fmt.Sprintf(\"/billingfees/%s\", pathParam0)\n\tif basePath[0] == '/' {\n\t\tbasePath = basePath[1:]\n\t}\n\n\tqueryUrl, err = queryUrl.Parse(basePath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq, err := http.NewRequest(\"PATCH\", queryUrl.String(), body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq.Header.Add(\"Content-Type\", contentType)\n\treturn req, nil\n}"
] | [
"0.84514314",
"0.80599713",
"0.76877534",
"0.7243233",
"0.719729",
"0.6613844",
"0.6490505",
"0.6486001",
"0.6338289",
"0.6174527",
"0.61439896",
"0.5924812",
"0.5853357",
"0.58347356",
"0.5730777",
"0.56622374",
"0.56424725",
"0.5610223",
"0.5565888",
"0.55561453",
"0.55511475",
"0.55499804",
"0.55398655",
"0.55264956",
"0.55104184",
"0.54990315",
"0.54489255",
"0.5429496",
"0.5429128",
"0.5400325",
"0.53768647",
"0.5371688",
"0.5356228",
"0.53511333",
"0.5338932",
"0.53176415",
"0.53087354",
"0.5296869",
"0.52941114",
"0.528054",
"0.5279558",
"0.52613133",
"0.5219907",
"0.52182883",
"0.5209764",
"0.52015233",
"0.51772237",
"0.51654166",
"0.51589096",
"0.5131199",
"0.5121449",
"0.51107806",
"0.510597",
"0.5093301",
"0.5085694",
"0.5083905",
"0.5066202",
"0.5047873",
"0.5043722",
"0.50338477",
"0.5024702",
"0.499075",
"0.49870315",
"0.4975845",
"0.49727196",
"0.49669626",
"0.49458972",
"0.49255762",
"0.49177727",
"0.49029297",
"0.48939446",
"0.48753217",
"0.48434696",
"0.48402426",
"0.4838143",
"0.48348433",
"0.4833355",
"0.48083064",
"0.48073152",
"0.47834244",
"0.47768772",
"0.47662768",
"0.47633982",
"0.47519538",
"0.47465512",
"0.47354567",
"0.47354567",
"0.4728477",
"0.47166014",
"0.47134888",
"0.47133112",
"0.4702636",
"0.46950993",
"0.4687951",
"0.46849665",
"0.46792722",
"0.46681327",
"0.46563938",
"0.46560082",
"0.46467772"
] | 0.8037626 | 2 |
ChangeProtocolFeeRecipient is a paid mutator transaction binding the contract method 0x514f0330. Solidity: function changeProtocolFeeRecipient(address newProtocolFeeRecipient) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {
return _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeProtocolFeeRecipient(opts *bind.TransactOpts, newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeProtocolFeeRecipient\", newProtocolFeeRecipient)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeProtocolFeeRecipient(newProtocolFeeRecipient common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeProtocolFeeRecipient(&_WyvernExchange.TransactOpts, newProtocolFeeRecipient)\n}",
"func (_WyvernExchange *WyvernExchangeCaller) ProtocolFeeRecipient(opts *bind.CallOpts) (common.Address, error) {\n\tvar (\n\t\tret0 = new(common.Address)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"protocolFeeRecipient\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ProtocolFeeRecipient() (common.Address, error) {\n\treturn _WyvernExchange.Contract.ProtocolFeeRecipient(&_WyvernExchange.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumTakerProtocolFee(opts *bind.TransactOpts, newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumTakerProtocolFee\", newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumTakerProtocolFee(newMinimumTakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumTakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumTakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ChangeMinimumMakerProtocolFee(opts *bind.TransactOpts, newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"changeMinimumMakerProtocolFee\", newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_WyvernExchange *WyvernExchangeSession) ChangeMinimumMakerProtocolFee(newMinimumMakerProtocolFee *big.Int) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ChangeMinimumMakerProtocolFee(&_WyvernExchange.TransactOpts, newMinimumMakerProtocolFee)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeMake\", feeMake_)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeTo\", arg0)\r\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeAccount\", feeAccount_)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeRebate\", feeRebate_)\n}",
"func (_Authority *AuthorityTransactor) SetFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.contract.Transact(opts, \"setFee\", newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.contract.Transact(opts, \"setFeeToSetter\", arg0)\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) {\r\n\treturn _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0)\r\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeTo\", _feeTo)\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeTo(&_SushiV2Factory.TransactOpts, _feeTo)\n}",
"func (_Authority *AuthorityTransactorSession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_)\n}",
"func (_Contract *ContractCaller) ProposalFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"proposalFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_)\n}",
"func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"changeFeeTake\", feeTake_)\n}",
"func (_Authority *AuthoritySession) SetFee(newFee *big.Int) (*types.Transaction, error) {\n\treturn _Authority.Contract.SetFee(&_Authority.TransactOpts, newFee)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumTakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumTakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) MinimumMakerProtocolFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"minimumMakerProtocolFee\")\n\treturn *ret0, err\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_)\n}",
"func (_Contract *ContractCaller) ProposalBurntFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Contract.contract.Call(opts, &out, \"proposalBurntFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (btc *ExchangeWallet) PayFee(address string, regFee uint64) (asset.Coin, error) {\n\ttxHash, vout, sent, err := btc.send(address, regFee, btc.feeRateWithFallback(), false)\n\tif err != nil {\n\t\tbtc.log.Errorf(\"PayFee error address = '%s', fee = %d: %v\", address, regFee, err)\n\t\treturn nil, err\n\t}\n\treturn newOutput(btc.node, txHash, vout, sent, nil), nil\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.contract.Transact(opts, \"setFeeToSetter\", _feeToSetter)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeToSetter\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeToSetter() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeToSetter(&_SushiV2Factory.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_)\n}",
"func (_SushiV2Factory *SushiV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"feeMake\")\n\treturn *ret0, err\n}",
"func (_SushiV2Factory *SushiV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) {\n\treturn _SushiV2Factory.Contract.SetFeeToSetter(&_SushiV2Factory.TransactOpts, _feeToSetter)\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeToSetter\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeTo() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (_Contract *ContractCallerSession) ProposalFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalFee(&_Contract.CallOpts)\n}",
"func (_Contract *ContractCallerSession) ProposalBurntFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalBurntFee(&_Contract.CallOpts)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeTo() (common.Address, error) {\r\n\treturn _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts)\r\n}",
"func (l *channelLink) updateChannelFee(feePerKw btcutil.Amount) error {\n\t// Update local fee.\n\tif err := l.channel.UpdateFee(feePerKw); err != nil {\n\t\treturn err\n\t}\n\n\t// Send fee update to remote.\n\tmsg := lnwire.NewUpdateFee(l.ChanID(), feePerKw)\n\treturn l.cfg.Peer.SendMessage(msg)\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_)\n}",
"func (api *PrivateExtensionAPI) ExtendContract(ctx context.Context, toExtend common.Address, newRecipientPtmPublicKey string, recipientAddr common.Address, txa ethapi.SendTxArgs) (string, error) {\n\t// check if the contract to be extended is already under extension\n\t// if yes throw an error\n\tif api.checkIfContractUnderExtension(ctx, toExtend) {\n\t\treturn \"\", errors.New(\"contract extension in progress for the given contract address\")\n\t}\n\n\t// check if a public contract is being extended\n\tisPublic, err := api.checkIfPublicContract(toExtend)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif isPublic {\n\t\treturn \"\", errors.New(\"extending a public contract!!! not allowed\")\n\t}\n\n\terr = api.doMultiTenantChecks(ctx, txa.From, txa)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// check if recipient address is 0x0\n\tif recipientAddr == (common.Address{0}) {\n\t\treturn \"\", errors.New(\"invalid recipient address\")\n\t}\n\n\tpsm, err := api.privacyService.apiBackendHelper.PSMR().ResolveForUserContext(ctx)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t// check if a private contract exists\n\tprivateContractExists, err := api.checkIfPrivateStateExists(psm.ID, toExtend)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif !privateContractExists {\n\t\treturn \"\", errors.New(\"extending a non-existent private contract!!! not allowed\")\n\t}\n\n\t// check if contract creator\n\tif !api.privacyService.CheckIfContractCreator(api.privacyService.stateFetcher.getCurrentBlockHash(), toExtend, psm.ID) {\n\t\treturn \"\", errors.New(\"operation not allowed\")\n\t}\n\n\t// if running in permissioned mode with new permissions model\n\t// ensure that the account extending the contract is an admin\n\t// account and recipient account is an admin account as well\n\tif txa.From == recipientAddr {\n\t\treturn \"\", errors.New(\"account accepting the extension cannot be the account initiating extension\")\n\t}\n\tif !core.CheckIfAdminAccount(txa.From) {\n\t\treturn \"\", errors.New(\"account not an org admin account, cannot initiate extension\")\n\t}\n\tif !core.CheckIfAdminAccount(recipientAddr) {\n\t\treturn \"\", errors.New(\"recipient account address is not an org admin account. cannot accept extension\")\n\t}\n\n\t// check the new key is valid\n\tif _, err := base64.StdEncoding.DecodeString(newRecipientPtmPublicKey); err != nil {\n\t\treturn \"\", errors.New(\"invalid new recipient transaction manager key provided\")\n\t}\n\n\t// check the the intended new recipient will actually receive the extension request\n\tswitch len(txa.PrivateFor) {\n\tcase 0:\n\t\ttxa.PrivateFor = append(txa.PrivateFor, newRecipientPtmPublicKey)\n\tcase 1:\n\t\tif txa.PrivateFor[0] != newRecipientPtmPublicKey {\n\t\t\treturn \"\", errors.New(\"mismatch between recipient transaction manager key and privateFor argument\")\n\t\t}\n\tdefault:\n\t\treturn \"\", errors.New(\"invalid transaction manager keys given in privateFor argument\")\n\t}\n\n\t// get all participants for the contract being extended\n\tparticipants, err := api.privacyService.GetAllParticipants(api.privacyService.stateFetcher.getCurrentBlockHash(), toExtend, psm.ID)\n\tif err == nil {\n\t\ttxa.PrivateFor = append(txa.PrivateFor, participants...)\n\t}\n\n\t//generate some valid transaction options for sending in the transaction\n\ttxArgs, err := api.privacyService.GenerateTransactOptions(txa)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tpsiManagementContractClient := api.privacyService.managementContract(psm.ID)\n\tdefer psiManagementContractClient.Close()\n\t//Deploy the contract\n\ttx, err := psiManagementContractClient.Deploy(txArgs, toExtend, recipientAddr, newRecipientPtmPublicKey)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\t//Return the transaction hash for later lookup\n\tmsg := fmt.Sprintf(\"0x%x\", tx.Hash())\n\treturn msg, nil\n}",
"func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_SushiV2Factory *SushiV2FactoryCallerSession) FeeTo() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeTo(&_SushiV2Factory.CallOpts)\n}",
"func ScheduleChangeRequestActorPRecipient() *ScheduleChangeRequestActor {\n\tv := ScheduleChangeRequestActorVRecipient\n\treturn &v\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_)\n}",
"func (_Authority *AuthorityCaller) Fee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar (\n\t\tret0 = new(*big.Int)\n\t)\n\tout := ret0\n\terr := _Authority.contract.Call(opts, out, \"fee\")\n\treturn *ret0, err\n}",
"func (_SushiV2Factory *SushiV2FactorySession) FeeTo() (common.Address, error) {\n\treturn _SushiV2Factory.Contract.FeeTo(&_SushiV2Factory.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumTakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumTakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {\n\treturn _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (_Contract *ContractSession) ProposalBurntFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalBurntFee(&_Contract.CallOpts)\n}",
"func (_Contract *ContractSession) ProposalFee() (*big.Int, error) {\n\treturn _Contract.Contract.ProposalFee(&_Contract.CallOpts)\n}",
"func (gc *GovernanceContract) ProposalFee() (hexutil.Big, error) {\n\treturn gc.repo.GovernanceProposalFee(&gc.Address)\n}",
"func (_WyvernExchange *WyvernExchangeSession) MinimumMakerProtocolFee() (*big.Int, error) {\n\treturn _WyvernExchange.Contract.MinimumMakerProtocolFee(&_WyvernExchange.CallOpts)\n}",
"func (c *ClientWithResponses) ChangeaspecificBillingFeeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ChangeaspecificBillingFeeResponse, error) {\n\trsp, err := c.ChangeaspecificBillingFeeWithBody(ctx, id, contentType, body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ParseChangeaspecificBillingFeeResponse(rsp)\n}",
"func (_Authority *AuthorityCallerSession) Fee() (*big.Int, error) {\n\treturn _Authority.Contract.Fee(&_Authority.CallOpts)\n}",
"func (f *feeService) setFee(fee chainfee.SatPerKWeight) {\n\tf.lock.Lock()\n\tdefer f.lock.Unlock()\n\n\tf.Fees[feeServiceTarget] = uint32(fee.FeePerKVByte())\n}",
"func (_Distributor *DistributorTransactor) WithdrawFee(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) {\n\treturn _Distributor.contract.Transact(opts, \"withdrawFee\", to)\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) {\r\n\tvar out []interface{}\r\n\terr := _IUniswapV2Factory.contract.Call(opts, &out, \"feeTo\")\r\n\r\n\tif err != nil {\r\n\t\treturn *new(common.Address), err\r\n\t}\r\n\r\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\r\n\r\n\treturn out0, err\r\n\r\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) PROXYTYPETRANSFERFEE(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"PROXY_TYPE_TRANSFER_FEE\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_Cakevault *CakevaultCaller) CallFee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _Cakevault.contract.Call(opts, &out, \"callFee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (dcr *ExchangeWallet) PayFee(address string, regFee uint64) (asset.Coin, error) {\n\taddr, err := dcrutil.DecodeAddress(address, chainParams)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\t// TODO: Evaluate SendToAddress and how it deals with the change output\n\t// address index to see if it can be used here instead.\n\tmsgTx, sent, err := dcr.sendRegFee(addr, regFee, dcr.feeRateWithFallback(1))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif sent != regFee {\n\t\treturn nil, fmt.Errorf(\"transaction %s was sent, but the reported value sent was unexpected. \"+\n\t\t\t\"expected %.8f, but %.8f was reported\", msgTx.CachedTxHash(), toDCR(regFee), toDCR(sent))\n\t}\n\treturn newOutput(msgTx.CachedTxHash(), 0, regFee, wire.TxTreeRegular), nil\n}",
"func (m *CassandraDB) SetMemberFee(\n\tctx context.Context, id string, fee uint64, yearly bool) error {\n\tvar member *membersys.MembershipAgreement = new(membersys.MembershipAgreement)\n\tvar batch *gocql.Batch\n\tvar encodedProto []byte\n\tvar stmt *gocql.Query\n\tvar err error\n\n\t// Retrieve the protobuf with all data from Cassandra. Use a quorum read to make sure we aren't\n\t// missing any recent updates.\n\tstmt = m.sess.Query(\n\t\t\"SELECT pb_data FROM members WHERE key = ?\",\n\t\tappend([]byte(memberPrefix), []byte(id)...)).WithContext(ctx).\n\t\tConsistency(gocql.Quorum)\n\tdefer stmt.Release()\n\n\terr = stmt.Scan(&encodedProto)\n\tif err == gocql.ErrNotFound {\n\t\treturn grpc.Errorf(codes.NotFound, \"No member found for %s: %s\", id,\n\t\t\terr.Error())\n\t}\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.Internal, \"Error running query: %s\",\n\t\t\terr.Error())\n\t}\n\n\t// Decode the protobuf which was written to the column.\n\terr = proto.Unmarshal(encodedProto, member)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmember.MemberData.Fee = &fee\n\tmember.MemberData.FeeYearly = &yearly\n\n\tencodedProto, err = proto.Marshal(member)\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.DataLoss,\n\t\t\t\"Error parsing stored membership data: %s\", err.Error())\n\t}\n\n\t// Write data columns and pb_data back.\n\tbatch = m.sess.NewBatch(gocql.LoggedBatch).WithContext(ctx)\n\tbatch.SetConsistency(gocql.Quorum)\n\tbatch.Query(\n\t\t\"UPDATE members SET pb_data = ?, fee = ?, fee_yearly = ? WHERE key = ?\",\n\t\tencodedProto, fee, yearly, append([]byte(memberPrefix),\n\t\t\t[]byte(id)...))\n\tbatch.Query(\n\t\t\"UPDATE member_agreements SET pb_data = ? WHERE key = ?\",\n\t\tencodedProto, append([]byte(memberPrefix), []byte(id)...))\n\terr = m.sess.ExecuteBatch(batch)\n\tif err != nil {\n\t\treturn grpc.Errorf(codes.Internal,\n\t\t\t\"Error writing back membership data: %s\", err.Error())\n\t}\n\n\treturn nil\n}",
"func (_ElvTradable *ElvTradableCaller) PROXYTYPETRANSFERFEE(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"PROXY_TYPE_TRANSFER_FEE\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) TransferFeeProxyAddress(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"transferFeeProxyAddress\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_SushiV2Factory *SushiV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _SushiV2Factory.contract.Call(opts, &out, \"feeTo\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_L1Block *L1BlockCaller) Basefee(opts *bind.CallOpts) (*big.Int, error) {\n\tvar out []interface{}\n\terr := _L1Block.contract.Call(opts, &out, \"basefee\")\n\n\tif err != nil {\n\t\treturn *new(*big.Int), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)\n\n\treturn out0, err\n\n}",
"func bindTransferFeeProxy(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {\n\tparsed, err := ParsedABI(K_TransferFeeProxy)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil\n}",
"func (p *rpcPeer) FeeFilter() int64 {\n\treturn atomic.LoadInt64(&(*serverPeer)(p).feeFilter)\n}",
"func rpcToFee(req *looprpc.LiquidityParameters) (liquidity.FeeLimit,\n\terror) {\n\n\t// Check which fee limit type we have values set for. If any fields\n\t// relevant to our individual categories are set, we count that type\n\t// as set.\n\tisFeePPM := req.FeePpm != 0\n\tisCategories := req.MaxSwapFeePpm != 0 || req.MaxRoutingFeePpm != 0 ||\n\t\treq.MaxPrepayRoutingFeePpm != 0 || req.MaxMinerFeeSat != 0 ||\n\t\treq.MaxPrepaySat != 0 || req.SweepFeeRateSatPerVbyte != 0\n\n\tswitch {\n\tcase isFeePPM && isCategories:\n\t\treturn nil, errors.New(\"set either fee ppm, or individual \" +\n\t\t\t\"fee categories\")\n\tcase isFeePPM:\n\t\treturn liquidity.NewFeePortion(req.FeePpm), nil\n\n\tcase isCategories:\n\t\tsatPerVbyte := chainfee.SatPerKVByte(\n\t\t\treq.SweepFeeRateSatPerVbyte * 1000,\n\t\t)\n\n\t\treturn liquidity.NewFeeCategoryLimit(\n\t\t\treq.MaxSwapFeePpm,\n\t\t\treq.MaxRoutingFeePpm,\n\t\t\treq.MaxPrepayRoutingFeePpm,\n\t\t\tbtcutil.Amount(req.MaxMinerFeeSat),\n\t\t\tbtcutil.Amount(req.MaxPrepaySat),\n\t\t\tsatPerVbyte.FeePerKWeight(),\n\t\t), nil\n\n\tdefault:\n\t\treturn nil, errors.New(\"no fee categories set\")\n\t}\n}",
"func additionalSpendFee(fee dcrutil.Amount) func(*wire.MsgBlock) {\n\treturn func(b *wire.MsgBlock) {\n\t\t// Increase the fee of the spending transaction by reducing the\n\t\t// amount paid,\n\t\tif int64(fee) > b.Transactions[1].TxOut[0].Value {\n\t\t\tpanic(fmt.Sprintf(\"additionalSpendFee: fee of %d \"+\n\t\t\t\t\"exceeds available spend transaction value\",\n\t\t\t\tfee))\n\t\t}\n\t\tb.Transactions[1].TxOut[0].Value -= int64(fee)\n\t}\n}",
"func additionalSpendFee(fee dcrutil.Amount) func(*wire.MsgBlock) {\n\treturn func(b *wire.MsgBlock) {\n\t\t// Increase the fee of the spending transaction by reducing the\n\t\t// amount paid,\n\t\tif int64(fee) > b.Transactions[1].TxOut[0].Value {\n\t\t\tpanic(fmt.Sprintf(\"additionalSpendFee: fee of %d \"+\n\t\t\t\t\"exceeds available spend transaction value\",\n\t\t\t\tfee))\n\t\t}\n\t\tb.Transactions[1].TxOut[0].Value -= int64(fee)\n\t}\n}",
"func (_Dospayment *DospaymentTransactor) SetServiceFee(opts *bind.TransactOpts, tokenAddr common.Address, serviceType *big.Int, fee *big.Int) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"setServiceFee\", tokenAddr, serviceType, fee)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) SetTransferFeeProxyAddress(opts *bind.TransactOpts, _newProxy common.Address) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"setTransferFeeProxyAddress\", _newProxy)\n}",
"func (_ElvTradable *ElvTradableCaller) TransferFeeProxyAddress(opts *bind.CallOpts) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"transferFeeProxyAddress\")\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_Authority *AuthoritySession) Fee() (*big.Int, error) {\n\treturn _Authority.Contract.Fee(&_Authority.CallOpts)\n}",
"func (w *xcWallet) ApprovalFee(assetVersion uint32, approval bool) (uint64, error) {\n\tapprover, ok := w.Wallet.(asset.TokenApprover)\n\tif !ok {\n\t\treturn 0, fmt.Errorf(\"%s wallet is not a TokenApprover\", unbip(w.AssetID))\n\t}\n\treturn approver.ApprovalFee(assetVersion, approval)\n}",
"func MinimalFeeWithChange(utxos []*common.UTXO, feePerKB int64) int64 {\n\tfee := int64(0)\n\ttxSize := BytesTransactionOverhead + len(utxos)*BytesPerInput + 2*BytesPerOutput\n\tfee += int64(txSize) * feePerKB / 1000\n\n\treturn fee\n}",
"func (_Distributor *DistributorTransactorSession) WithdrawFee(to common.Address) (*types.Transaction, error) {\n\treturn _Distributor.Contract.WithdrawFee(&_Distributor.TransactOpts, to)\n}",
"func (_ElvTradable *ElvTradableTransactor) SetTransferFeeProxyAddress(opts *bind.TransactOpts, _newProxy common.Address) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"setTransferFeeProxyAddress\", _newProxy)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"setSwapFee\", poolAddress, swapFee)\n}",
"func (_DelegateProfile *DelegateProfileFilterer) FilterFeeUpdated(opts *bind.FilterOpts) (*DelegateProfileFeeUpdatedIterator, error) {\n\n\tlogs, sub, err := _DelegateProfile.contract.FilterLogs(opts, \"FeeUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DelegateProfileFeeUpdatedIterator{contract: _DelegateProfile.contract, event: \"FeeUpdated\", logs: logs, sub: sub}, nil\n}",
"func (tx *Tx) ChangeToAddress(addr string, f *FeeQuote) error {\r\n\ts, err := bscript.NewP2PKHFromAddress(addr)\r\n\tif err != nil {\r\n\t\treturn err\r\n\t}\r\n\r\n\treturn tx.Change(s, f)\r\n}",
"func (c *ClientWithResponses) ReplacechangeaspecificBillingFeeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ReplacechangeaspecificBillingFeeResponse, error) {\n\trsp, err := c.ReplacechangeaspecificBillingFeeWithBody(ctx, id, contentType, body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn ParseReplacechangeaspecificBillingFeeResponse(rsp)\n}",
"func NewChangeaspecificBillingFeeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {\n\tvar err error\n\n\tvar pathParam0 string\n\n\tpathParam0, err = runtime.StyleParam(\"simple\", false, \"id\", id)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tqueryUrl, err := url.Parse(server)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tbasePath := fmt.Sprintf(\"/billingfees/%s\", pathParam0)\n\tif basePath[0] == '/' {\n\t\tbasePath = basePath[1:]\n\t}\n\n\tqueryUrl, err = queryUrl.Parse(basePath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq, err := http.NewRequest(\"PATCH\", queryUrl.String(), body)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treq.Header.Add(\"Content-Type\", contentType)\n\treturn req, nil\n}"
] | [
"0.8450655",
"0.803669",
"0.7687763",
"0.72427",
"0.7196622",
"0.66136295",
"0.6490073",
"0.64856386",
"0.63378054",
"0.6173921",
"0.61432856",
"0.5923635",
"0.5852703",
"0.58341557",
"0.5730196",
"0.5662091",
"0.5642429",
"0.5609801",
"0.55651236",
"0.5555513",
"0.5550399",
"0.5549322",
"0.5539246",
"0.5525845",
"0.5510009",
"0.5498003",
"0.5448632",
"0.5429792",
"0.54279554",
"0.5400267",
"0.53763324",
"0.53711283",
"0.5355923",
"0.53506404",
"0.53385246",
"0.53182715",
"0.5308874",
"0.52964485",
"0.5293562",
"0.52809644",
"0.5278779",
"0.52608144",
"0.52194697",
"0.5218253",
"0.52087873",
"0.52008134",
"0.51763666",
"0.51651275",
"0.515841",
"0.5131354",
"0.51220226",
"0.5110314",
"0.5105529",
"0.509338",
"0.5085084",
"0.5084665",
"0.5065839",
"0.50496155",
"0.50431216",
"0.50338066",
"0.5025324",
"0.49903932",
"0.49863473",
"0.49747023",
"0.49718574",
"0.4967469",
"0.49459755",
"0.4926087",
"0.4916804",
"0.49032417",
"0.4894199",
"0.48748082",
"0.48446435",
"0.48396266",
"0.48386496",
"0.48345518",
"0.48340443",
"0.48082784",
"0.4807865",
"0.47839278",
"0.47764876",
"0.47659472",
"0.47636",
"0.4752496",
"0.4745851",
"0.47360116",
"0.47360116",
"0.47279012",
"0.47169456",
"0.47140092",
"0.47134957",
"0.47024885",
"0.469542",
"0.4689247",
"0.46852836",
"0.46791604",
"0.46677423",
"0.46573892",
"0.4656523",
"0.4647122"
] | 0.80590755 | 1 |
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. Solidity: function renounceOwnership() returns() | func (_WyvernExchange *WyvernExchangeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "renounceOwnership")
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_Mevsky *MevskyTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Caller *CallerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_AuthContract *AuthContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Mevsky *MevskySession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mevsky.Contract.RenounceOwnership(&_Mevsky.TransactOpts)\n}",
"func (_Bep20 *Bep20Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Smartchef.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Validator *ValidatorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Validator.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Dospayment *DospaymentTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Token *TokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Bucket *BucketTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Bucket.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.RenounceOwnership(&_ProjectWalletAuthoriser.TransactOpts)\n}",
"func (_ElvTokenHelper *ElvTokenHelperTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTokenHelper.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ChpRegistry *ChpRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ChpRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Caller *CallerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_Caller *CallerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.RenounceOwnership(&_ProjectWalletAuthoriser.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Mevsky *MevskyTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mevsky.Contract.RenounceOwnership(&_Mevsky.TransactOpts)\n}",
"func (_Bep20 *Bep20Session) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bep20.Contract.RenounceOwnership(&_Bep20.TransactOpts)\n}",
"func (_Cakevault *CakevaultTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Cakevault.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ERC20HecoManager *ERC20HecoManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ERC20HecoManager.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Bucket *BucketSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bucket.Contract.RenounceOwnership(&_Bucket.TransactOpts)\n}",
"func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_AuthContract *AuthContractSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _AuthContract.Contract.RenounceOwnership(&_AuthContract.TransactOpts)\n}",
"func (_AuthContract *AuthContractTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _AuthContract.Contract.RenounceOwnership(&_AuthContract.TransactOpts)\n}",
"func (_Onesplitaudit *OnesplitauditSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_Validator *ValidatorTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Validator.Contract.RenounceOwnership(&_Validator.TransactOpts)\n}",
"func (_Bep20 *Bep20TransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bep20.Contract.RenounceOwnership(&_Bep20.TransactOpts)\n}",
"func (_Bucket *BucketTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bucket.Contract.RenounceOwnership(&_Bucket.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.RenounceOwnership(&_Mcapscontroller.TransactOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.RenounceOwnership(&_WyvernExchange.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ElvTradable *ElvTradableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Smartchef.Contract.RenounceOwnership(&_Smartchef.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _SingleAuto.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Validator *ValidatorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Validator.Contract.RenounceOwnership(&_Validator.TransactOpts)\n}",
"func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.RenounceOwnership(&_WyvernExchange.TransactOpts)\n}",
"func (_Dospayment *DospaymentTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Dospayment.Contract.RenounceOwnership(&_Dospayment.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Dospayment *DospaymentSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Dospayment.Contract.RenounceOwnership(&_Dospayment.TransactOpts)\n}",
"func (_ERC20HecoManager *ERC20HecoManagerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ERC20HecoManager.Contract.RenounceOwnership(&_ERC20HecoManager.TransactOpts)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Smartchef.Contract.RenounceOwnership(&_Smartchef.TransactOpts)\n}",
"func (_Token *TokenSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Token.Contract.RenounceOwnership(&_Token.TransactOpts)\n}",
"func (_Token *TokenTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Token.Contract.RenounceOwnership(&_Token.TransactOpts)\n}",
"func (_ChpRegistry *ChpRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.RenounceOwnership(&_ChpRegistry.TransactOpts)\n}",
"func (_ChpRegistry *ChpRegistrySession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.RenounceOwnership(&_ChpRegistry.TransactOpts)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_ERC20HecoManager *ERC20HecoManagerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ERC20HecoManager.Contract.RenounceOwnership(&_ERC20HecoManager.TransactOpts)\n}",
"func (f *HubTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.RenounceOwnership(&_Mcapscontroller.TransactOpts)\n}",
"func (_Erc20Mock *Erc20MockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OracleMgr.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.Contract.RenounceOwnership(&_TokenStakingEscrow.TransactOpts)\n}",
"func (_Cakevault *CakevaultSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Cakevault.Contract.RenounceOwnership(&_Cakevault.TransactOpts)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.Contract.RenounceOwnership(&_TokenStakingEscrow.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _SingleAuto.Contract.RenounceOwnership(&_SingleAuto.TransactOpts)\n}",
"func (_Cakevault *CakevaultTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Cakevault.Contract.RenounceOwnership(&_Cakevault.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.Contract.RenounceOwnership(&_DelayedWithdrawal.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _SingleAuto.Contract.RenounceOwnership(&_SingleAuto.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Erc20Mock *Erc20MockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.RenounceOwnership(&_Erc20Mock.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.Contract.RenounceOwnership(&_DelayedWithdrawal.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.Contract.RenounceOwnership(&_FeeCurrencyWhitelist.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.Contract.RenounceOwnership(&_FeeCurrencyWhitelist.TransactOpts)\n}",
"func (_Erc20Mock *Erc20MockTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.RenounceOwnership(&_Erc20Mock.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DetailedTestToken.Contract.RenounceOwnership(&_DetailedTestToken.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DetailedTestToken.Contract.RenounceOwnership(&_DetailedTestToken.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _OracleMgr.Contract.RenounceOwnership(&_OracleMgr.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _OracleMgr.Contract.RenounceOwnership(&_OracleMgr.TransactOpts)\n}",
"func (_Votes *VotesTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MetaObject *MetaObjectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MetaObject.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"transferOwnership\", _to)\n}",
"func (_Caller *CallerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Crowdsale *CrowdsaleTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Crowdsale.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}"
] | [
"0.8324475",
"0.8241381",
"0.8225782",
"0.8225782",
"0.8225782",
"0.8194846",
"0.81757075",
"0.81265557",
"0.8121056",
"0.8101994",
"0.8096568",
"0.8089693",
"0.8087458",
"0.80745935",
"0.80672365",
"0.8056252",
"0.8056108",
"0.80522674",
"0.8036176",
"0.80298537",
"0.80207103",
"0.8012576",
"0.8005229",
"0.79992837",
"0.7996815",
"0.7966861",
"0.79632014",
"0.7937497",
"0.7936682",
"0.7927863",
"0.7927863",
"0.7924888",
"0.79241544",
"0.7923443",
"0.7917438",
"0.7910753",
"0.7907428",
"0.78971386",
"0.7895024",
"0.7890656",
"0.7888709",
"0.78834516",
"0.7874222",
"0.7869868",
"0.78684336",
"0.7860128",
"0.78564745",
"0.78564745",
"0.7852656",
"0.7851669",
"0.78458124",
"0.7841562",
"0.78392726",
"0.78354794",
"0.7827304",
"0.78253657",
"0.7814499",
"0.77993333",
"0.7793406",
"0.7777741",
"0.7766126",
"0.7757857",
"0.7755959",
"0.7754699",
"0.77498513",
"0.7748316",
"0.77447784",
"0.77376187",
"0.773651",
"0.7720556",
"0.7715423",
"0.7697731",
"0.7694685",
"0.7684552",
"0.7680006",
"0.76682293",
"0.7629153",
"0.7621411",
"0.76149267",
"0.7589254",
"0.757736",
"0.75329745",
"0.7438207",
"0.7401636",
"0.7294987",
"0.7260254",
"0.6335588",
"0.6333078",
"0.63292843",
"0.62899995",
"0.6288964",
"0.6284325",
"0.6275399",
"0.6270787",
"0.6266295",
"0.6261688",
"0.6237842",
"0.623752",
"0.623752",
"0.623752"
] | 0.8133582 | 7 |
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. Solidity: function renounceOwnership() returns() | func (_WyvernExchange *WyvernExchangeSession) RenounceOwnership() (*types.Transaction, error) {
return _WyvernExchange.Contract.RenounceOwnership(&_WyvernExchange.TransactOpts)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_Mevsky *MevskyTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Caller *CallerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_AuthContract *AuthContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Mevsky *MevskySession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mevsky.Contract.RenounceOwnership(&_Mevsky.TransactOpts)\n}",
"func (_Bep20 *Bep20Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Smartchef.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Validator *ValidatorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Validator.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Dospayment *DospaymentTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Token *TokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Bucket *BucketTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Bucket.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.RenounceOwnership(&_ProjectWalletAuthoriser.TransactOpts)\n}",
"func (_ElvTokenHelper *ElvTokenHelperTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTokenHelper.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ChpRegistry *ChpRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ChpRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Caller *CallerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_Caller *CallerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.RenounceOwnership(&_ProjectWalletAuthoriser.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Mevsky *MevskyTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mevsky.Contract.RenounceOwnership(&_Mevsky.TransactOpts)\n}",
"func (_Bep20 *Bep20Session) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bep20.Contract.RenounceOwnership(&_Bep20.TransactOpts)\n}",
"func (_Cakevault *CakevaultTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Cakevault.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ERC20HecoManager *ERC20HecoManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ERC20HecoManager.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Bucket *BucketSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bucket.Contract.RenounceOwnership(&_Bucket.TransactOpts)\n}",
"func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_AuthContract *AuthContractSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _AuthContract.Contract.RenounceOwnership(&_AuthContract.TransactOpts)\n}",
"func (_AuthContract *AuthContractTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _AuthContract.Contract.RenounceOwnership(&_AuthContract.TransactOpts)\n}",
"func (_Onesplitaudit *OnesplitauditSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_Validator *ValidatorTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Validator.Contract.RenounceOwnership(&_Validator.TransactOpts)\n}",
"func (_Bep20 *Bep20TransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bep20.Contract.RenounceOwnership(&_Bep20.TransactOpts)\n}",
"func (_Bucket *BucketTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bucket.Contract.RenounceOwnership(&_Bucket.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.RenounceOwnership(&_Mcapscontroller.TransactOpts)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.RenounceOwnership(&_WyvernExchange.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ElvTradable *ElvTradableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Smartchef.Contract.RenounceOwnership(&_Smartchef.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _SingleAuto.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Validator *ValidatorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Validator.Contract.RenounceOwnership(&_Validator.TransactOpts)\n}",
"func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_Dospayment *DospaymentTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Dospayment.Contract.RenounceOwnership(&_Dospayment.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Dospayment *DospaymentSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Dospayment.Contract.RenounceOwnership(&_Dospayment.TransactOpts)\n}",
"func (_ERC20HecoManager *ERC20HecoManagerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ERC20HecoManager.Contract.RenounceOwnership(&_ERC20HecoManager.TransactOpts)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Smartchef.Contract.RenounceOwnership(&_Smartchef.TransactOpts)\n}",
"func (_Token *TokenSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Token.Contract.RenounceOwnership(&_Token.TransactOpts)\n}",
"func (_Token *TokenTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Token.Contract.RenounceOwnership(&_Token.TransactOpts)\n}",
"func (_ChpRegistry *ChpRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.RenounceOwnership(&_ChpRegistry.TransactOpts)\n}",
"func (_ChpRegistry *ChpRegistrySession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.RenounceOwnership(&_ChpRegistry.TransactOpts)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_ERC20HecoManager *ERC20HecoManagerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ERC20HecoManager.Contract.RenounceOwnership(&_ERC20HecoManager.TransactOpts)\n}",
"func (f *HubTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.RenounceOwnership(&_Mcapscontroller.TransactOpts)\n}",
"func (_Erc20Mock *Erc20MockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OracleMgr.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.Contract.RenounceOwnership(&_TokenStakingEscrow.TransactOpts)\n}",
"func (_Cakevault *CakevaultSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Cakevault.Contract.RenounceOwnership(&_Cakevault.TransactOpts)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.Contract.RenounceOwnership(&_TokenStakingEscrow.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _SingleAuto.Contract.RenounceOwnership(&_SingleAuto.TransactOpts)\n}",
"func (_Cakevault *CakevaultTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Cakevault.Contract.RenounceOwnership(&_Cakevault.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.Contract.RenounceOwnership(&_DelayedWithdrawal.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _SingleAuto.Contract.RenounceOwnership(&_SingleAuto.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Erc20Mock *Erc20MockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.RenounceOwnership(&_Erc20Mock.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.Contract.RenounceOwnership(&_DelayedWithdrawal.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.Contract.RenounceOwnership(&_FeeCurrencyWhitelist.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.Contract.RenounceOwnership(&_FeeCurrencyWhitelist.TransactOpts)\n}",
"func (_Erc20Mock *Erc20MockTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.RenounceOwnership(&_Erc20Mock.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DetailedTestToken.Contract.RenounceOwnership(&_DetailedTestToken.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DetailedTestToken.Contract.RenounceOwnership(&_DetailedTestToken.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _OracleMgr.Contract.RenounceOwnership(&_OracleMgr.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _OracleMgr.Contract.RenounceOwnership(&_OracleMgr.TransactOpts)\n}",
"func (_Votes *VotesTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MetaObject *MetaObjectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MetaObject.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"transferOwnership\", _to)\n}",
"func (_Caller *CallerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Crowdsale *CrowdsaleTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Crowdsale.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}"
] | [
"0.8323113",
"0.82402796",
"0.8224593",
"0.8224593",
"0.8224593",
"0.8193598",
"0.8174295",
"0.81321645",
"0.812542",
"0.8119518",
"0.8100354",
"0.8094779",
"0.8088289",
"0.80859864",
"0.80731535",
"0.80658966",
"0.8055061",
"0.8054915",
"0.8051064",
"0.80347276",
"0.80285156",
"0.8019802",
"0.8011684",
"0.8004071",
"0.7997523",
"0.7995643",
"0.79654485",
"0.7961562",
"0.7936235",
"0.7935488",
"0.7926766",
"0.7926766",
"0.79235774",
"0.79228956",
"0.79217595",
"0.79158556",
"0.7909061",
"0.79062104",
"0.7895744",
"0.7893868",
"0.7889086",
"0.78873384",
"0.788176",
"0.78729945",
"0.7868436",
"0.7866787",
"0.7858904",
"0.785541",
"0.785541",
"0.78513426",
"0.78445196",
"0.784",
"0.78378403",
"0.7834205",
"0.78262085",
"0.7823749",
"0.78130615",
"0.7798227",
"0.77922505",
"0.7776439",
"0.776479",
"0.7756473",
"0.7754805",
"0.7753479",
"0.77482325",
"0.7746763",
"0.77435446",
"0.7736243",
"0.77353895",
"0.77191454",
"0.7714254",
"0.76966333",
"0.76930845",
"0.76831084",
"0.7678403",
"0.7666696",
"0.7627694",
"0.7619887",
"0.76133436",
"0.75877064",
"0.7575805",
"0.7531454",
"0.74369484",
"0.7400379",
"0.7293929",
"0.72592527",
"0.6335384",
"0.6333032",
"0.63294655",
"0.6290181",
"0.62888825",
"0.6284628",
"0.6275453",
"0.6270686",
"0.6266069",
"0.6261434",
"0.62377685",
"0.62377685",
"0.62377685",
"0.62377685"
] | 0.7850268 | 50 |
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. Solidity: function renounceOwnership() returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _WyvernExchange.Contract.RenounceOwnership(&_WyvernExchange.TransactOpts)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_Mevsky *MevskyTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Caller *CallerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_AuthContract *AuthContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Mevsky *MevskySession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mevsky.Contract.RenounceOwnership(&_Mevsky.TransactOpts)\n}",
"func (_Bep20 *Bep20Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Smartchef.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Validator *ValidatorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Validator.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Dospayment *DospaymentTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Token *TokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Bucket *BucketTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Bucket.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.RenounceOwnership(&_ProjectWalletAuthoriser.TransactOpts)\n}",
"func (_ElvTokenHelper *ElvTokenHelperTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTokenHelper.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ChpRegistry *ChpRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ChpRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Caller *CallerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_Caller *CallerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.RenounceOwnership(&_ProjectWalletAuthoriser.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Mevsky *MevskyTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mevsky.Contract.RenounceOwnership(&_Mevsky.TransactOpts)\n}",
"func (_Bep20 *Bep20Session) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bep20.Contract.RenounceOwnership(&_Bep20.TransactOpts)\n}",
"func (_Cakevault *CakevaultTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Cakevault.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ERC20HecoManager *ERC20HecoManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ERC20HecoManager.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Bucket *BucketSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bucket.Contract.RenounceOwnership(&_Bucket.TransactOpts)\n}",
"func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_AuthContract *AuthContractSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _AuthContract.Contract.RenounceOwnership(&_AuthContract.TransactOpts)\n}",
"func (_AuthContract *AuthContractTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _AuthContract.Contract.RenounceOwnership(&_AuthContract.TransactOpts)\n}",
"func (_Onesplitaudit *OnesplitauditSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_Validator *ValidatorTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Validator.Contract.RenounceOwnership(&_Validator.TransactOpts)\n}",
"func (_Bep20 *Bep20TransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bep20.Contract.RenounceOwnership(&_Bep20.TransactOpts)\n}",
"func (_Bucket *BucketTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Bucket.Contract.RenounceOwnership(&_Bucket.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.RenounceOwnership(&_Mcapscontroller.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_ElvTradable *ElvTradableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Smartchef.Contract.RenounceOwnership(&_Smartchef.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _SingleAuto.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Validator *ValidatorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Validator.Contract.RenounceOwnership(&_Validator.TransactOpts)\n}",
"func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_WyvernExchange *WyvernExchangeSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.RenounceOwnership(&_WyvernExchange.TransactOpts)\n}",
"func (_Dospayment *DospaymentTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Dospayment.Contract.RenounceOwnership(&_Dospayment.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Dospayment *DospaymentSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Dospayment.Contract.RenounceOwnership(&_Dospayment.TransactOpts)\n}",
"func (_ERC20HecoManager *ERC20HecoManagerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ERC20HecoManager.Contract.RenounceOwnership(&_ERC20HecoManager.TransactOpts)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Smartchef *SmartchefTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Smartchef.Contract.RenounceOwnership(&_Smartchef.TransactOpts)\n}",
"func (_Token *TokenSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Token.Contract.RenounceOwnership(&_Token.TransactOpts)\n}",
"func (_Token *TokenTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Token.Contract.RenounceOwnership(&_Token.TransactOpts)\n}",
"func (_ChpRegistry *ChpRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.RenounceOwnership(&_ChpRegistry.TransactOpts)\n}",
"func (_ChpRegistry *ChpRegistrySession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.RenounceOwnership(&_ChpRegistry.TransactOpts)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_ERC20HecoManager *ERC20HecoManagerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _ERC20HecoManager.Contract.RenounceOwnership(&_ERC20HecoManager.TransactOpts)\n}",
"func (f *HubTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_Mcapscontroller *McapscontrollerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Mcapscontroller.Contract.RenounceOwnership(&_Mcapscontroller.TransactOpts)\n}",
"func (_Erc20Mock *Erc20MockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OracleMgr.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.Contract.RenounceOwnership(&_TokenStakingEscrow.TransactOpts)\n}",
"func (_Cakevault *CakevaultSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Cakevault.Contract.RenounceOwnership(&_Cakevault.TransactOpts)\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.Contract.RenounceOwnership(&_TokenStakingEscrow.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _SingleAuto.Contract.RenounceOwnership(&_SingleAuto.TransactOpts)\n}",
"func (_Cakevault *CakevaultTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Cakevault.Contract.RenounceOwnership(&_Cakevault.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.Contract.RenounceOwnership(&_DelayedWithdrawal.TransactOpts)\n}",
"func (_SingleAuto *SingleAutoTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _SingleAuto.Contract.RenounceOwnership(&_SingleAuto.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Erc20Mock *Erc20MockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.RenounceOwnership(&_Erc20Mock.TransactOpts)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.Contract.RenounceOwnership(&_DelayedWithdrawal.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.Contract.RenounceOwnership(&_FeeCurrencyWhitelist.TransactOpts)\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _FeeCurrencyWhitelist.Contract.RenounceOwnership(&_FeeCurrencyWhitelist.TransactOpts)\n}",
"func (_Erc20Mock *Erc20MockTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Erc20Mock.Contract.RenounceOwnership(&_Erc20Mock.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DetailedTestToken.Contract.RenounceOwnership(&_DetailedTestToken.TransactOpts)\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _DetailedTestToken.Contract.RenounceOwnership(&_DetailedTestToken.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _OracleMgr.Contract.RenounceOwnership(&_OracleMgr.TransactOpts)\n}",
"func (_OracleMgr *OracleMgrSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _OracleMgr.Contract.RenounceOwnership(&_OracleMgr.TransactOpts)\n}",
"func (_Votes *VotesTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MetaObject *MetaObjectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MetaObject.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"transferOwnership\", _to)\n}",
"func (_Caller *CallerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Crowdsale *CrowdsaleTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Crowdsale.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}"
] | [
"0.83240724",
"0.8240794",
"0.8225392",
"0.8225392",
"0.8225392",
"0.8194661",
"0.81752074",
"0.813352",
"0.81265646",
"0.8120574",
"0.8101103",
"0.809571",
"0.8089169",
"0.808678",
"0.8073942",
"0.8066357",
"0.8056365",
"0.80558014",
"0.8051679",
"0.8035341",
"0.8029418",
"0.8020465",
"0.8012401",
"0.80054206",
"0.79985",
"0.79968345",
"0.7966668",
"0.79622513",
"0.79371786",
"0.79360634",
"0.79278296",
"0.79278296",
"0.79246813",
"0.7924042",
"0.7922838",
"0.7916744",
"0.7910177",
"0.7907291",
"0.7896996",
"0.78945386",
"0.7890095",
"0.78831863",
"0.7873843",
"0.78692746",
"0.7867427",
"0.7860016",
"0.78563756",
"0.78563756",
"0.78524965",
"0.78518456",
"0.7845515",
"0.7841369",
"0.7838998",
"0.7835105",
"0.78272176",
"0.7824652",
"0.78139615",
"0.77990365",
"0.7793132",
"0.7777302",
"0.7765627",
"0.7757754",
"0.77559173",
"0.7754387",
"0.77493536",
"0.7747812",
"0.77445245",
"0.7736736",
"0.7736363",
"0.77198696",
"0.77150947",
"0.76976836",
"0.7693871",
"0.7683943",
"0.76800203",
"0.7667493",
"0.76288384",
"0.7621166",
"0.761491",
"0.75892663",
"0.7577279",
"0.75327927",
"0.74381006",
"0.74016184",
"0.72945946",
"0.72597677",
"0.6334443",
"0.6332364",
"0.63281435",
"0.6288866",
"0.6287999",
"0.6283079",
"0.6274277",
"0.6269471",
"0.6264903",
"0.6260265",
"0.6236432",
"0.6236432",
"0.6236432",
"0.6236432"
] | 0.7888852 | 41 |
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. Solidity: function transferOwnership(address newOwner) returns() | func (_WyvernExchange *WyvernExchangeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _WyvernExchange.contract.Transact(opts, "transferOwnership", newOwner)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_Mevsky *MevskyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseAccessWalletFactory *BaseAccessWalletFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseAccessWalletFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseFactory *BaseFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MetaObject *MetaObjectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MetaObject.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Owned *OwnedTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Pausable *PausableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Pausable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_AuthContract *AuthContractTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_BaseAccessWallet *BaseAccessWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseAccessWallet.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.TransferOwnership(&_ProjectWalletAuthoriser.TransactOpts, _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Crowdsale *CrowdsaleTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Crowdsale.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Validator *ValidatorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Dospayment *DospaymentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_HasNoEther *HasNoEtherTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.TransferOwnership(&_ProjectWalletAuthoriser.TransactOpts, _newOwner)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Node *NodeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Node.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseContentFactory *BaseContentFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.Contract.TransferOwnership(&_DelegateProfile.TransactOpts, _newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.TransferOwnership(&_FixedSupplyToken.TransactOpts, _newOwner)\n}",
"func (_NodeSpace *NodeSpaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _NodeSpace.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseGroupFactory *BaseGroupFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseGroupFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.Contract.TransferOwnership(&_Caller.TransactOpts, newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_FinalizableCrowdsaleImpl *FinalizableCrowdsaleImplTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _FinalizableCrowdsaleImpl.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseLibraryFactory *BaseLibraryFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseLibraryFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_AuthContract *AuthContractTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.Contract.TransferOwnership(&_AuthContract.TransactOpts, _newOwner)\n}",
"func (_Votes *VotesTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Owned *OwnedTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.Contract.TransferOwnership(&_Owned.TransactOpts, _newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.TransferOwnership(&_VorRandomnessRequestMock.TransactOpts, newOwner)\n}",
"func (_Gatekeeper *GatekeeperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskyTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.TransferOwnership(&_Mevsky.TransactOpts, newOwner)\n}",
"func (_ElvTokenHelper *ElvTokenHelperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _ElvTokenHelper.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.TransferOwnership(&_Mevsky.TransactOpts, newOwner)\n}",
"func (_Editable *EditableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Editable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Validator *ValidatorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.Contract.TransferOwnership(&_Validator.TransactOpts, newOwner)\n}",
"func (_Caller *CallerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.Contract.TransferOwnership(&_Caller.TransactOpts, newOwner)\n}",
"func (_ChpRegistry *ChpRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _ChpRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Bep20 *Bep20Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseLibrary *BaseLibraryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseLibrary.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Container *ContainerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Container.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, _newOwner)\n}",
"func (_AuthContract *AuthContractSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.Contract.TransferOwnership(&_AuthContract.TransactOpts, _newOwner)\n}",
"func (_PausableToken *PausableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _PausableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.TransferOwnership(&_FixedSupplyToken.TransactOpts, _newOwner)\n}",
"func (_Dospayment *DospaymentTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.Contract.TransferOwnership(&_Dospayment.TransactOpts, newOwner)\n}",
"func (_Pausable *PausableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Pausable.Contract.TransferOwnership(&_Pausable.TransactOpts, newOwner)\n}",
"func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.TransferOwnership(&_VorRandomnessRequestMock.TransactOpts, newOwner)\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Bucket *BucketTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Bucket.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.Contract.TransferOwnership(&_Smartchef.TransactOpts, newOwner)\n}",
"func (_BaseContentSpace *BaseContentSpaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentSpace.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.Contract.TransferOwnership(&_SimpleSavingsWallet.TransactOpts, newOwner)\n}",
"func (_BaseContent *BaseContentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContent.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BurnableToken *BurnableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BurnableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.Contract.TransferOwnership(&_Smartchef.TransactOpts, newOwner)\n}",
"func (_HasNoEther *HasNoEtherTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.Contract.TransferOwnership(&_HasNoEther.TransactOpts, newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Gatekeeper *GatekeeperSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.Contract.TransferOwnership(&_Gatekeeper.TransactOpts, newOwner)\n}",
"func (_BaseContentFactoryExt *BaseContentFactoryExtTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentFactoryExt.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Cakevault *CakevaultTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Cakevault.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.TransferOwnership(&_WyvernExchange.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Validator *ValidatorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.Contract.TransferOwnership(&_Validator.TransactOpts, newOwner)\n}",
"func (_SingleAuto *SingleAutoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _SingleAuto.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Votes *VotesTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.Contract.TransferOwnership(&_Votes.TransactOpts, _newOwner)\n}",
"func (_BREMToken *BREMTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BREMToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Content *ContentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Content.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Gatekeeper *GatekeeperTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.Contract.TransferOwnership(&_Gatekeeper.TransactOpts, newOwner)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Owned *OwnedSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.Contract.TransferOwnership(&_Owned.TransactOpts, _newOwner)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"transferOwnership\", _to)\n}",
"func (_DelegateProfile *DelegateProfileSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.Contract.TransferOwnership(&_DelegateProfile.TransactOpts, _newOwner)\n}",
"func (_OracleMgr *OracleMgrTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _OracleMgr.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (f *HubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_HasNoEther *HasNoEtherSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.Contract.TransferOwnership(&_HasNoEther.TransactOpts, newOwner)\n}",
"func (_MintableToken *MintableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MintableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_TokenVesting *TokenVestingTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TokenVesting.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.Contract.TransferOwnership(&_SimpleSavingsWallet.TransactOpts, newOwner)\n}",
"func (_PausableToken *PausableTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _PausableToken.Contract.TransferOwnership(&_PausableToken.TransactOpts, newOwner)\n}",
"func (_ChpRegistry *ChpRegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.TransferOwnership(&_ChpRegistry.TransactOpts, newOwner)\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.TransferOwnership(&_Onesplitaudit.TransactOpts, newOwner)\n}",
"func (_Dospayment *DospaymentSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.Contract.TransferOwnership(&_Dospayment.TransactOpts, newOwner)\n}"
] | [
"0.8312",
"0.8290266",
"0.82789797",
"0.8251545",
"0.82492477",
"0.8242561",
"0.8232073",
"0.8228369",
"0.8227452",
"0.82145345",
"0.82131743",
"0.8212753",
"0.8190566",
"0.818999",
"0.818999",
"0.818999",
"0.818999",
"0.818999",
"0.81866854",
"0.81732535",
"0.817179",
"0.8156552",
"0.81518286",
"0.81486845",
"0.8142849",
"0.81391746",
"0.81384695",
"0.8137762",
"0.81337065",
"0.8128735",
"0.8128468",
"0.8127577",
"0.81260425",
"0.81232774",
"0.8114844",
"0.8114442",
"0.8113239",
"0.8112933",
"0.8099632",
"0.80943435",
"0.80868745",
"0.8085269",
"0.8075961",
"0.80738336",
"0.80738014",
"0.806905",
"0.8068729",
"0.8064315",
"0.80641705",
"0.8063733",
"0.80616796",
"0.80608803",
"0.80589443",
"0.8050419",
"0.8048937",
"0.8037859",
"0.80351305",
"0.8030867",
"0.8025411",
"0.8025411",
"0.8023276",
"0.8018102",
"0.8007568",
"0.8006678",
"0.80047953",
"0.80046916",
"0.800273",
"0.79979056",
"0.79970396",
"0.7996185",
"0.79961735",
"0.7988113",
"0.79879886",
"0.7985409",
"0.7983643",
"0.79800117",
"0.7978387",
"0.7978387",
"0.7978387",
"0.79770106",
"0.797672",
"0.7975531",
"0.79741174",
"0.7970898",
"0.79697084",
"0.79658365",
"0.7958591",
"0.7955794",
"0.79500324",
"0.7949039",
"0.7945183",
"0.7938604",
"0.7935768",
"0.7933453",
"0.7933323",
"0.7924373",
"0.79237276",
"0.7923691",
"0.7923642",
"0.7922087"
] | 0.814066 | 25 |
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. Solidity: function transferOwnership(address newOwner) returns() | func (_WyvernExchange *WyvernExchangeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _WyvernExchange.Contract.TransferOwnership(&_WyvernExchange.TransactOpts, newOwner)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_Mevsky *MevskyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseAccessWalletFactory *BaseAccessWalletFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseAccessWalletFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseFactory *BaseFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MetaObject *MetaObjectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MetaObject.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Owned *OwnedTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Pausable *PausableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Pausable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_AuthContract *AuthContractTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_BaseAccessWallet *BaseAccessWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseAccessWallet.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.TransferOwnership(&_ProjectWalletAuthoriser.TransactOpts, _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Crowdsale *CrowdsaleTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Crowdsale.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Validator *ValidatorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Dospayment *DospaymentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_HasNoEther *HasNoEtherTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.TransferOwnership(&_ProjectWalletAuthoriser.TransactOpts, _newOwner)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Node *NodeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Node.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseContentFactory *BaseContentFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.Contract.TransferOwnership(&_DelegateProfile.TransactOpts, _newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.TransferOwnership(&_FixedSupplyToken.TransactOpts, _newOwner)\n}",
"func (_NodeSpace *NodeSpaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _NodeSpace.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseGroupFactory *BaseGroupFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseGroupFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.Contract.TransferOwnership(&_Caller.TransactOpts, newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_FinalizableCrowdsaleImpl *FinalizableCrowdsaleImplTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _FinalizableCrowdsaleImpl.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseLibraryFactory *BaseLibraryFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseLibraryFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_AuthContract *AuthContractTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.Contract.TransferOwnership(&_AuthContract.TransactOpts, _newOwner)\n}",
"func (_Votes *VotesTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Owned *OwnedTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.Contract.TransferOwnership(&_Owned.TransactOpts, _newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.TransferOwnership(&_VorRandomnessRequestMock.TransactOpts, newOwner)\n}",
"func (_Gatekeeper *GatekeeperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskyTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.TransferOwnership(&_Mevsky.TransactOpts, newOwner)\n}",
"func (_Mevsky *MevskySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.TransferOwnership(&_Mevsky.TransactOpts, newOwner)\n}",
"func (_ElvTokenHelper *ElvTokenHelperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _ElvTokenHelper.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Editable *EditableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Editable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Validator *ValidatorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.Contract.TransferOwnership(&_Validator.TransactOpts, newOwner)\n}",
"func (_Caller *CallerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.Contract.TransferOwnership(&_Caller.TransactOpts, newOwner)\n}",
"func (_ChpRegistry *ChpRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _ChpRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Bep20 *Bep20Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseLibrary *BaseLibraryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseLibrary.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Container *ContainerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Container.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, _newOwner)\n}",
"func (_AuthContract *AuthContractSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.Contract.TransferOwnership(&_AuthContract.TransactOpts, _newOwner)\n}",
"func (_PausableToken *PausableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _PausableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.TransferOwnership(&_FixedSupplyToken.TransactOpts, _newOwner)\n}",
"func (_Dospayment *DospaymentTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.Contract.TransferOwnership(&_Dospayment.TransactOpts, newOwner)\n}",
"func (_Pausable *PausableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Pausable.Contract.TransferOwnership(&_Pausable.TransactOpts, newOwner)\n}",
"func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.TransferOwnership(&_VorRandomnessRequestMock.TransactOpts, newOwner)\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Bucket *BucketTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Bucket.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.Contract.TransferOwnership(&_Smartchef.TransactOpts, newOwner)\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseContentSpace *BaseContentSpaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentSpace.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.Contract.TransferOwnership(&_SimpleSavingsWallet.TransactOpts, newOwner)\n}",
"func (_BaseContent *BaseContentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContent.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BurnableToken *BurnableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BurnableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.Contract.TransferOwnership(&_Smartchef.TransactOpts, newOwner)\n}",
"func (_HasNoEther *HasNoEtherTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.Contract.TransferOwnership(&_HasNoEther.TransactOpts, newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Gatekeeper *GatekeeperSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.Contract.TransferOwnership(&_Gatekeeper.TransactOpts, newOwner)\n}",
"func (_BaseContentFactoryExt *BaseContentFactoryExtTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentFactoryExt.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Cakevault *CakevaultTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Cakevault.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.TransferOwnership(&_WyvernExchange.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Validator *ValidatorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.Contract.TransferOwnership(&_Validator.TransactOpts, newOwner)\n}",
"func (_SingleAuto *SingleAutoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _SingleAuto.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Votes *VotesTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.Contract.TransferOwnership(&_Votes.TransactOpts, _newOwner)\n}",
"func (_BREMToken *BREMTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BREMToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Content *ContentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Content.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Gatekeeper *GatekeeperTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.Contract.TransferOwnership(&_Gatekeeper.TransactOpts, newOwner)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Owned *OwnedSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.Contract.TransferOwnership(&_Owned.TransactOpts, _newOwner)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"transferOwnership\", _to)\n}",
"func (_DelegateProfile *DelegateProfileSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.Contract.TransferOwnership(&_DelegateProfile.TransactOpts, _newOwner)\n}",
"func (_OracleMgr *OracleMgrTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _OracleMgr.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (f *HubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_HasNoEther *HasNoEtherSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.Contract.TransferOwnership(&_HasNoEther.TransactOpts, newOwner)\n}",
"func (_TokenVesting *TokenVestingTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TokenVesting.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MintableToken *MintableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MintableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.Contract.TransferOwnership(&_SimpleSavingsWallet.TransactOpts, newOwner)\n}",
"func (_ChpRegistry *ChpRegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.TransferOwnership(&_ChpRegistry.TransactOpts, newOwner)\n}",
"func (_PausableToken *PausableTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _PausableToken.Contract.TransferOwnership(&_PausableToken.TransactOpts, newOwner)\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.TransferOwnership(&_Onesplitaudit.TransactOpts, newOwner)\n}",
"func (_Dospayment *DospaymentSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.Contract.TransferOwnership(&_Dospayment.TransactOpts, newOwner)\n}"
] | [
"0.8311912",
"0.82899266",
"0.82790494",
"0.8251335",
"0.824896",
"0.824217",
"0.82318765",
"0.8227927",
"0.822707",
"0.82137465",
"0.8212916",
"0.8212212",
"0.81904334",
"0.8189692",
"0.8189692",
"0.8189692",
"0.8189692",
"0.8189692",
"0.8186577",
"0.8172883",
"0.8171395",
"0.81565344",
"0.8151812",
"0.8148501",
"0.8142976",
"0.81403303",
"0.81392485",
"0.8138363",
"0.81381",
"0.8133071",
"0.8129149",
"0.8128281",
"0.8127584",
"0.8125788",
"0.81234205",
"0.8114789",
"0.8114449",
"0.8113584",
"0.811307",
"0.80994165",
"0.8094551",
"0.80874276",
"0.80849105",
"0.8076165",
"0.8074143",
"0.8073959",
"0.80688167",
"0.80686486",
"0.80646217",
"0.8064149",
"0.80639374",
"0.80616313",
"0.80606323",
"0.8059117",
"0.8050714",
"0.8048985",
"0.80383337",
"0.80350614",
"0.8031009",
"0.8025306",
"0.8025306",
"0.80238056",
"0.8017996",
"0.80072516",
"0.8006908",
"0.8004964",
"0.80041575",
"0.800241",
"0.79973936",
"0.79968864",
"0.7996572",
"0.7996563",
"0.7988375",
"0.7988295",
"0.79853857",
"0.7983347",
"0.7980053",
"0.79784733",
"0.79784733",
"0.79784733",
"0.7977178",
"0.79761326",
"0.79753315",
"0.79744154",
"0.7970813",
"0.7969302",
"0.796589",
"0.7958795",
"0.795613",
"0.79503125",
"0.7949455",
"0.7945248",
"0.7938836",
"0.79362917",
"0.7933296",
"0.7933249",
"0.79241675",
"0.79240406",
"0.79239964",
"0.79238814",
"0.7922196"
] | 0.0 | -1 |
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. Solidity: function transferOwnership(address newOwner) returns() | func (_WyvernExchange *WyvernExchangeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _WyvernExchange.Contract.TransferOwnership(&_WyvernExchange.TransactOpts, newOwner)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_Mevsky *MevskyTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseAccessWalletFactory *BaseAccessWalletFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseAccessWalletFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseFactory *BaseFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_MetaObject *MetaObjectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MetaObject.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Owned *OwnedTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Pausable *PausableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Pausable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_AuthContract *AuthContractTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_BaseAccessWallet *BaseAccessWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseAccessWallet.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.TransferOwnership(&_ProjectWalletAuthoriser.TransactOpts, _newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Crowdsale *CrowdsaleTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Crowdsale.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Validator *ValidatorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Dospayment *DospaymentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_HasNoEther *HasNoEtherTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _ProjectWalletAuthoriser.Contract.TransferOwnership(&_ProjectWalletAuthoriser.TransactOpts, _newOwner)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TransferProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Node *NodeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Node.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelegateProfile *DelegateProfileTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.Contract.TransferOwnership(&_DelegateProfile.TransactOpts, _newOwner)\n}",
"func (_BaseContentFactory *BaseContentFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.TransferOwnership(&_FixedSupplyToken.TransactOpts, _newOwner)\n}",
"func (_NodeSpace *NodeSpaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _NodeSpace.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseGroupFactory *BaseGroupFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseGroupFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.Contract.TransferOwnership(&_Caller.TransactOpts, newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_FinalizableCrowdsaleImpl *FinalizableCrowdsaleImplTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _FinalizableCrowdsaleImpl.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseLibraryFactory *BaseLibraryFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseLibraryFactory.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_AuthContract *AuthContractTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.Contract.TransferOwnership(&_AuthContract.TransactOpts, _newOwner)\n}",
"func (_Votes *VotesTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (_Owned *OwnedTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.Contract.TransferOwnership(&_Owned.TransactOpts, _newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.TransferOwnership(&_VorRandomnessRequestMock.TransactOpts, newOwner)\n}",
"func (_Gatekeeper *GatekeeperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskyTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.TransferOwnership(&_Mevsky.TransactOpts, newOwner)\n}",
"func (_ElvTokenHelper *ElvTokenHelperTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _ElvTokenHelper.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Mevsky *MevskySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mevsky.Contract.TransferOwnership(&_Mevsky.TransactOpts, newOwner)\n}",
"func (_Editable *EditableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Editable.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Validator *ValidatorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.Contract.TransferOwnership(&_Validator.TransactOpts, newOwner)\n}",
"func (_ChpRegistry *ChpRegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _ChpRegistry.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Caller *CallerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Caller.Contract.TransferOwnership(&_Caller.TransactOpts, newOwner)\n}",
"func (_Bep20 *Bep20Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseLibrary *BaseLibraryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseLibrary.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Container *ContainerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Container.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, _newOwner)\n}",
"func (_AuthContract *AuthContractSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _AuthContract.Contract.TransferOwnership(&_AuthContract.TransactOpts, _newOwner)\n}",
"func (_PausableToken *PausableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _PausableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.Contract.TransferOwnership(&_FixedSupplyToken.TransactOpts, _newOwner)\n}",
"func (_Dospayment *DospaymentTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.Contract.TransferOwnership(&_Dospayment.TransactOpts, newOwner)\n}",
"func (_Pausable *PausableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Pausable.Contract.TransferOwnership(&_Pausable.TransactOpts, newOwner)\n}",
"func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Token *TokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.TransferOwnership(&_VorRandomnessRequestMock.TransactOpts, newOwner)\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Bucket *BucketTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Bucket.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.Contract.TransferOwnership(&_Smartchef.TransactOpts, newOwner)\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TokenStakingEscrow.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseContentSpace *BaseContentSpaceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentSpace.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.Contract.TransferOwnership(&_SimpleSavingsWallet.TransactOpts, newOwner)\n}",
"func (_BurnableToken *BurnableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BurnableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_BaseContent *BaseContentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContent.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Smartchef *SmartchefSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Smartchef.Contract.TransferOwnership(&_Smartchef.TransactOpts, newOwner)\n}",
"func (_HasNoEther *HasNoEtherTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.Contract.TransferOwnership(&_HasNoEther.TransactOpts, newOwner)\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Gatekeeper *GatekeeperSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.Contract.TransferOwnership(&_Gatekeeper.TransactOpts, newOwner)\n}",
"func (_BaseContentFactoryExt *BaseContentFactoryExtTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BaseContentFactoryExt.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Cakevault *CakevaultTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Cakevault.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner)\n}",
"func (_Validator *ValidatorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Validator.Contract.TransferOwnership(&_Validator.TransactOpts, newOwner)\n}",
"func (_SingleAuto *SingleAutoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _SingleAuto.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelayedWithdrawal.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Votes *VotesTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Votes.Contract.TransferOwnership(&_Votes.TransactOpts, _newOwner)\n}",
"func (_BREMToken *BREMTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _BREMToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Content *ContentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Content.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Gatekeeper *GatekeeperTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Gatekeeper.Contract.TransferOwnership(&_Gatekeeper.TransactOpts, newOwner)\n}",
"func (_Mcapscontroller *McapscontrollerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _Mcapscontroller.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_Owned *OwnedSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _Owned.Contract.TransferOwnership(&_Owned.TransactOpts, _newOwner)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"transferOwnership\", _to)\n}",
"func (_DelegateProfile *DelegateProfileSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {\n\treturn _DelegateProfile.Contract.TransferOwnership(&_DelegateProfile.TransactOpts, _newOwner)\n}",
"func (_OracleMgr *OracleMgrTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {\n\treturn _OracleMgr.contract.Transact(opts, \"transferOwnership\", _newOwner)\n}",
"func (f *HubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_HasNoEther *HasNoEtherSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _HasNoEther.Contract.TransferOwnership(&_HasNoEther.TransactOpts, newOwner)\n}",
"func (_MintableToken *MintableTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _MintableToken.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_TokenVesting *TokenVestingTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {\n\treturn _TokenVesting.contract.Transact(opts, \"transferOwnership\", newOwner)\n}",
"func (_SimpleSavingsWallet *SimpleSavingsWalletSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _SimpleSavingsWallet.Contract.TransferOwnership(&_SimpleSavingsWallet.TransactOpts, newOwner)\n}",
"func (_PausableToken *PausableTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _PausableToken.Contract.TransferOwnership(&_PausableToken.TransactOpts, newOwner)\n}",
"func (_ChpRegistry *ChpRegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _ChpRegistry.Contract.TransferOwnership(&_ChpRegistry.TransactOpts, newOwner)\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.TransferOwnership(&_Onesplitaudit.TransactOpts, newOwner)\n}",
"func (_Dospayment *DospaymentSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {\n\treturn _Dospayment.Contract.TransferOwnership(&_Dospayment.TransactOpts, newOwner)\n}"
] | [
"0.83119863",
"0.8290507",
"0.8279309",
"0.82515126",
"0.8248726",
"0.8242145",
"0.82318115",
"0.82279706",
"0.8227223",
"0.8214206",
"0.82133967",
"0.82125115",
"0.81905025",
"0.81898504",
"0.81898504",
"0.81898504",
"0.81898504",
"0.81898504",
"0.8186494",
"0.81730014",
"0.817158",
"0.8156432",
"0.8151815",
"0.8148649",
"0.8142993",
"0.81404525",
"0.81392366",
"0.8138339",
"0.8138224",
"0.81340337",
"0.8129302",
"0.8128304",
"0.8127757",
"0.81260294",
"0.81231666",
"0.8115216",
"0.81143725",
"0.811346",
"0.8112807",
"0.80991405",
"0.80941164",
"0.8087059",
"0.8085289",
"0.8075832",
"0.80740064",
"0.80737376",
"0.8068934",
"0.80685246",
"0.8064281",
"0.80642426",
"0.80638963",
"0.8061351",
"0.806067",
"0.8058843",
"0.80503327",
"0.80490345",
"0.803844",
"0.80348665",
"0.8030642",
"0.80254984",
"0.80254984",
"0.8023379",
"0.8017561",
"0.80071205",
"0.80068535",
"0.8004826",
"0.80039173",
"0.8003092",
"0.79971725",
"0.7997051",
"0.7996453",
"0.7995967",
"0.7988267",
"0.79881346",
"0.7985252",
"0.7983538",
"0.7978186",
"0.7978186",
"0.7978186",
"0.7976924",
"0.79765934",
"0.797526",
"0.79737675",
"0.79710615",
"0.7969059",
"0.7965879",
"0.7958561",
"0.79555774",
"0.7950073",
"0.79496264",
"0.7945472",
"0.7938463",
"0.79356897",
"0.79335576",
"0.7933377",
"0.79247916",
"0.7923811",
"0.792368",
"0.7923062",
"0.7921859"
] | 0.7979746 | 76 |
Close terminates the iteration process, releasing any pending underlying resources. | func (it *WyvernExchangeOrderApprovedPartOneIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iter *Iterator) Close() error { return iter.impl.Close() }",
"func (i *Iterator) Close() {}",
"func (it *EthdkgDisputeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iter) Close() {\n\t// (todo) > handle error\n\tit.i.Close()\n}",
"func (it *PlasmaFrameworkExitQueuedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrPauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (s *Iterator) Close() {\n\ts.i.Close()\n}",
"func (it *LmcExitedAndUnlockedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SmartchefOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorV2V3InterfaceNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcExitedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SimpleMultiSigExecuteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CakevaultHarvestIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2SyncIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PlasmaFrameworkProcessedExitsNumIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2MintIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleMaxFramesUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20MintableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2BurnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContentRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitPiggybackedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20HecoManagerBurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iterator) Close() {\n\tit.iitr.Close()\n}",
"func (it *DogsOfRomeRomulusIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BREMFactoryBREMICOCreatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LvStreamRightsHolderRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *Iterator) Close() error {\n\ti.iterator.Close()\n\treturn nil\n}",
"func (it *XStakingStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IOrakuruCoreFulfilledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WELV9TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseContentSpaceVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20CappedTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MonsterAccessControlContractUpgradeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *ResolvedProductIter) Close() {}",
"func (it *ContentRunFinalizeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WethTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AccessControlCEOTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BindingsReservesReducedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DogsOfRomeScoobyIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokenVestingReleasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksHandledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksErasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *GameJamGameJamFinishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Erc777BurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausablePausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgResultChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KeepRegistryGovernanceUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20InterfaceTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TTFT20UpgradedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgMaliciousResultSlashedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseLibraryVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (iter *BatchObjectIter) Close() {\n\tclose(iter.oidCh)\n}",
"func (it *RedeemableRedeemableRemovedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokensNetworkChannelPunishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KNSRegistredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (si *ScanIterator) Close() {\n\t// Cleanup\n}",
"func (it *IERC20TransferIterator) Close() error {\r\n\tit.sub.Unsubscribe()\r\n\treturn nil\r\n}",
"func (it *PausablePauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryUnpausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ConsortiumManagementProposeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractProposalExecutionExpiredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DistributorBountyWasPaidIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *XStakingRecoveredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ZKOnacciTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (c *indexIter) Close() {\n\tif c.it != nil {\n\t\tc.it.Close()\n\t\tc.it = nil\n\t}\n}",
"func (it *BindingsRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MevskyTurnedOnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *EthdkgShareDistributionIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BondedECDSAKeepERC20RewardDistributedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WmaticTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DemoERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *FlopperKickIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}"
] | [
"0.74848074",
"0.7417846",
"0.721855",
"0.72077936",
"0.720545",
"0.7176748",
"0.71746904",
"0.7163944",
"0.7160923",
"0.7157161",
"0.7156669",
"0.7152182",
"0.71394366",
"0.7136678",
"0.71341944",
"0.7132294",
"0.7125396",
"0.7122628",
"0.71183187",
"0.7115788",
"0.71130705",
"0.71101916",
"0.7108955",
"0.7104827",
"0.7098511",
"0.7087522",
"0.7085076",
"0.7070312",
"0.7069282",
"0.70656383",
"0.70479614",
"0.7041265",
"0.70358825",
"0.7034743",
"0.7032979",
"0.7031815",
"0.70296794",
"0.7028455",
"0.70265806",
"0.70258117",
"0.70192385",
"0.7018967",
"0.70160073",
"0.7015892",
"0.7015892",
"0.7015892",
"0.7015892",
"0.7013909",
"0.70116156",
"0.7007683",
"0.7006535",
"0.7000627",
"0.6992759",
"0.69924796",
"0.6991971",
"0.69918823",
"0.69890547",
"0.6976627",
"0.6973646",
"0.6972913",
"0.69655377",
"0.696398",
"0.6961032",
"0.6959359",
"0.6958219",
"0.6957634",
"0.6955803",
"0.69541353",
"0.6953254",
"0.69529253",
"0.6952685",
"0.6952685",
"0.6951453",
"0.6948125",
"0.6947697",
"0.69476783",
"0.69476193",
"0.69456834",
"0.69434",
"0.69389164",
"0.6938832",
"0.69384205",
"0.693732",
"0.693483",
"0.6933494",
"0.6933494",
"0.69266844",
"0.69256246",
"0.6922996",
"0.6920798",
"0.69173104",
"0.6913905",
"0.6912612",
"0.69111305",
"0.69111127",
"0.6909965",
"0.69089586",
"0.6908941",
"0.6908941",
"0.6908941",
"0.6908941"
] | 0.0 | -1 |
FilterOrderApprovedPartOne is a free log retrieval operation binding the contract event 0x90c7f9f5b58c15f0f635bfb99f55d3d78fdbef3559e7d8abf5c81052a5276622. Solidity: event OrderApprovedPartOne(bytes32 indexed hash, address exchange, address indexed maker, address taker, uint256 makerRelayerFee, uint256 takerRelayerFee, uint256 makerProtocolFee, uint256 takerProtocolFee, address indexed feeRecipient, uint8 feeMethod, uint8 side, uint8 saleKind, address target) | func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartOne(opts *bind.FilterOpts, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (*WyvernExchangeOrderApprovedPartOneIterator, error) {
var hashRule []interface{}
for _, hashItem := range hash {
hashRule = append(hashRule, hashItem)
}
var makerRule []interface{}
for _, makerItem := range maker {
makerRule = append(makerRule, makerItem)
}
var feeRecipientRule []interface{}
for _, feeRecipientItem := range feeRecipient {
feeRecipientRule = append(feeRecipientRule, feeRecipientItem)
}
logs, sub, err := _WyvernExchange.contract.FilterLogs(opts, "OrderApprovedPartOne", hashRule, makerRule, feeRecipientRule)
if err != nil {
return nil, err
}
return &WyvernExchangeOrderApprovedPartOneIterator{contract: _WyvernExchange.contract, event: "OrderApprovedPartOne", logs: logs, sub: sub}, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartOne(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartOne, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartOne)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartOne\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartTwo(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartTwo, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartTwo)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartTwo\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartTwo(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderApprovedPartTwoIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartTwoIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartTwo\", logs: logs, sub: sub}, nil\n}",
"func (_Registry *RegistryFilterer) FilterOperatorContractApproved(opts *bind.FilterOpts) (*RegistryOperatorContractApprovedIterator, error) {\n\n\tlogs, sub, err := _Registry.contract.FilterLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RegistryOperatorContractApprovedIterator{contract: _Registry.contract, event: \"OperatorContractApproved\", logs: logs, sub: sub}, nil\n}",
"func (_KeepRegistry *KeepRegistryFilterer) FilterOperatorContractApproved(opts *bind.FilterOpts) (*KeepRegistryOperatorContractApprovedIterator, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.FilterLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &KeepRegistryOperatorContractApprovedIterator{contract: _KeepRegistry.contract, event: \"OperatorContractApproved\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ElvTradableLocalApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableLocalApprovalIterator{contract: _ElvTradableLocal.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterRegistrationApproved(opts *bind.FilterOpts, hash [][32]byte, upkeepId []*big.Int) (*UpkeepRegistrationRequestsRegistrationApprovedIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsRegistrationApprovedIterator{contract: _UpkeepRegistrationRequests.contract, event: \"RegistrationApproved\", logs: logs, sub: sub}, nil\n}",
"func (_NodeSpace *NodeSpaceFilterer) FilterNodeApproved(opts *bind.FilterOpts) (*NodeSpaceNodeApprovedIterator, error) {\n\n\tlogs, sub, err := _NodeSpace.contract.FilterLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &NodeSpaceNodeApprovedIterator{contract: _NodeSpace.contract, event: \"NodeApproved\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ElvTradableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableApprovalIterator{contract: _ElvTradable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721 *ERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ApprovalIterator{contract: _ERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721 *ERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ApprovalIterator{contract: _ERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721 *ERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ApprovalIterator{contract: _ERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721Metadata *ERC721MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721MetadataApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Metadata.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721MetadataApprovalIterator{contract: _ERC721Metadata.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*FixedSupplyTokenApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FixedSupplyTokenApprovalIterator{contract: _FixedSupplyToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*MainnetCryptoCardsContractApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _MainnetCryptoCardsContract.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MainnetCryptoCardsContractApprovalIterator{contract: _MainnetCryptoCardsContract.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ZKOnacci *ZKOnacciFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ZKOnacciApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ZKOnacci.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ZKOnacciApprovalIterator{contract: _ZKOnacci.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseAccessWalletCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseAccessWalletCommitPendingIterator{contract: _BaseAccessWallet.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) FilterAuthorizationDecreaseApproved(opts *bind.FilterOpts, stakingProvider []common.Address) (*RandomBeaconAuthorizationDecreaseApprovedIterator, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.FilterLogs(opts, \"AuthorizationDecreaseApproved\", stakingProviderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RandomBeaconAuthorizationDecreaseApprovedIterator{contract: _RandomBeacon.contract, event: \"AuthorizationDecreaseApproved\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721Enumerable *ERC721EnumerableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721EnumerableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Enumerable.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721EnumerableApprovalIterator{contract: _ERC721Enumerable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BaseContentSpace *BaseContentSpaceFilterer) FilterNodeApproved(opts *bind.FilterOpts) (*BaseContentSpaceNodeApprovedIterator, error) {\n\n\tlogs, sub, err := _BaseContentSpace.contract.FilterLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseContentSpaceNodeApprovedIterator{contract: _BaseContentSpace.contract, event: \"NodeApproved\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721Contract *ERC721ContractFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _approved []common.Address) (*ERC721ContractApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\n\tlogs, sub, err := _ERC721Contract.contract.FilterLogs(opts, \"Approval\", _ownerRule, _approvedRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ContractApprovalIterator{contract: _ERC721Contract.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721MetadataApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721MetadataApprovalIterator{contract: _IERC721Metadata.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721MetadataApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721MetadataApprovalIterator{contract: _IERC721Metadata.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721ApprovalIterator{contract: _IERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721ApprovalIterator{contract: _IERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721ApprovalIterator{contract: _IERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Detailed *ERC20DetailedFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20DetailedApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Detailed.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20DetailedApprovalIterator{contract: _ERC20Detailed.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Erclog *ErclogFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*ErclogApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erclog.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ErclogApprovalIterator{contract: _Erclog.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Registry *RegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *RegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _Registry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RegistryOperatorContractApproved)\n\t\t\t\tif err := _Registry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) FilterDkgResultApproved(opts *bind.FilterOpts, resultHash [][32]byte, approver []common.Address) (*RandomBeaconDkgResultApprovedIterator, error) {\n\n\tvar resultHashRule []interface{}\n\tfor _, resultHashItem := range resultHash {\n\t\tresultHashRule = append(resultHashRule, resultHashItem)\n\t}\n\tvar approverRule []interface{}\n\tfor _, approverItem := range approver {\n\t\tapproverRule = append(approverRule, approverItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.FilterLogs(opts, \"DkgResultApproved\", resultHashRule, approverRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RandomBeaconDkgResultApprovedIterator{contract: _RandomBeacon.contract, event: \"DkgResultApproved\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DetailedTestTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedTestTokenApprovalIterator{contract: _DetailedTestToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) FilterFulfilled(opts *bind.FilterOpts, requestId [][32]byte) (*IOrakuruCoreFulfilledIterator, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.FilterLogs(opts, \"Fulfilled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IOrakuruCoreFulfilledIterator{contract: _IOrakuruCore.contract, event: \"Fulfilled\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721Enumerable *IERC721EnumerableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721EnumerableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Enumerable.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721EnumerableApprovalIterator{contract: _IERC721Enumerable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_CraftingI *CraftingIFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*CraftingIApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _CraftingI.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CraftingIApprovalIterator{contract: _CraftingI.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Contract *ContractFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _approved []common.Address, _tokenId []*big.Int) (*ContractApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\tvar _tokenIdRule []interface{}\n\tfor _, _tokenIdItem := range _tokenId {\n\t\t_tokenIdRule = append(_tokenIdRule, _tokenIdItem)\n\t}\n\n\tlogs, sub, err := _Contract.contract.FilterLogs(opts, \"Approval\", _ownerRule, _approvedRule, _tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ContractApprovalIterator{contract: _Contract.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ElvToken *ElvTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ElvTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ElvToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTokenApprovalIterator{contract: _ElvToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *KeepRegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryOperatorContractApproved)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TTFT20 *TTFT20Filterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*TTFT20ApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _TTFT20.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TTFT20ApprovalIterator{contract: _TTFT20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Lelecoin *LelecoinFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*LelecoinApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Lelecoin.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &LelecoinApprovalIterator{contract: _Lelecoin.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_MintableToken *MintableTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MintableTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MintableTokenApprovalIterator{contract: _MintableToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*BREMTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BREMTokenApprovalIterator{contract: _BREMToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterConfirmed(opts *bind.FilterOpts) (*AuthContractConfirmedIterator, error) {\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"Confirmed\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractConfirmedIterator{contract: _AuthContract.contract, event: \"Confirmed\", logs: logs, sub: sub}, nil\n}",
"func (_Distributor *DistributorFilterer) FilterWithdrawFee(opts *bind.FilterOpts) (*DistributorWithdrawFeeIterator, error) {\n\n\tlogs, sub, err := _Distributor.contract.FilterLogs(opts, \"WithdrawFee\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DistributorWithdrawFeeIterator{contract: _Distributor.contract, event: \"WithdrawFee\", logs: logs, sub: sub}, nil\n}",
"func (_WELV9 *WELV9Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*WELV9ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _WELV9.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WELV9ApprovalIterator{contract: _WELV9.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BtlCoin *BtlCoinFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*BtlCoinApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BtlCoin.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BtlCoinApprovalIterator{contract: _BtlCoin.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Editable *EditableFilterer) FilterCommitPending(opts *bind.FilterOpts) (*EditableCommitPendingIterator, error) {\n\n\tlogs, sub, err := _Editable.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EditableCommitPendingIterator{contract: _Editable.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*BurnableTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BurnableTokenApprovalIterator{contract: _BurnableToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (e *EthHanlder) Approve(ticketId string) error {\n\tticketInfo, err := provider.QueryCrossTxInfoByCID(ticketId)\n\tif err != nil {\n\t\treturn err\n\t}\n\terr = provider.ValidateEnableBoundTransferToTx(ticketInfo.EthTx.FromTxID, nil)\n\tif err != nil {\n\t\tEthLogPrintf(\"validate failed: %v\", err)\n\t\treturn err\n\t}\n\trawTx := e.BuildTx(NotaryAddress, ticketInfo.EthTo, ticketInfo.EthAmount)\n\terr = e.SignAndSendTx(ticketId, rawTx)\n\t//todo:err\n\treturn err\n}",
"func (_FCToken *FCTokenFilterer) FilterApproval(opts *bind.FilterOpts, from []common.Address, delegatee []common.Address) (*FCTokenApprovalIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar delegateeRule []interface{}\n\tfor _, delegateeItem := range delegatee {\n\t\tdelegateeRule = append(delegateeRule, delegateeItem)\n\t}\n\n\tlogs, sub, err := _FCToken.contract.FilterLogs(opts, \"Approval\", fromRule, delegateeRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FCTokenApprovalIterator{contract: _FCToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedERC20 *DetailedERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DetailedERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedERC20ApprovalIterator{contract: _DetailedERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedERC20 *DetailedERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DetailedERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedERC20ApprovalIterator{contract: _DetailedERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_StandardToken *StandardTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StandardTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StandardToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StandardTokenApprovalIterator{contract: _StandardToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_StandardToken *StandardTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StandardTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StandardToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StandardTokenApprovalIterator{contract: _StandardToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20MockApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc20MockApprovalIterator{contract: _Erc20Mock.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_PausableToken *PausableTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PausableTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableTokenApprovalIterator{contract: _PausableToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (c *PartorderClient) DeleteOne(pa *Partorder) *PartorderDeleteOne {\n\treturn c.DeleteOneID(pa.ID)\n}",
"func (_MonsterOwnership *MonsterOwnershipFilterer) FilterApproval(opts *bind.FilterOpts) (*MonsterOwnershipApprovalIterator, error) {\n\n\tlogs, sub, err := _MonsterOwnership.contract.FilterLogs(opts, \"Approval\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MonsterOwnershipApprovalIterator{contract: _MonsterOwnership.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Weth *WethFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*WethApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Weth.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WethApprovalIterator{contract: _Weth.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Univ2 *Univ2Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Univ2ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Univ2.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Univ2ApprovalIterator{contract: _Univ2.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) FilterCoreApproval(opts *bind.FilterOpts, _sender []common.Address, _approvedCore []common.Address) (*ChpRegistryCoreApprovalIterator, error) {\n\n\tvar _senderRule []interface{}\n\tfor _, _senderItem := range _sender {\n\t\t_senderRule = append(_senderRule, _senderItem)\n\t}\n\tvar _approvedCoreRule []interface{}\n\tfor _, _approvedCoreItem := range _approvedCore {\n\t\t_approvedCoreRule = append(_approvedCoreRule, _approvedCoreItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.FilterLogs(opts, \"CoreApproval\", _senderRule, _approvedCoreRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ChpRegistryCoreApprovalIterator{contract: _ChpRegistry.contract, event: \"CoreApproval\", logs: logs, sub: sub}, nil\n}",
"func (_Bep20 *Bep20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Bep20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Bep20ApprovalIterator{contract: _Bep20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BaseLibrary *BaseLibraryFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseLibraryCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseLibrary.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseLibraryCommitPendingIterator{contract: _BaseLibrary.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Mintable *ERC20MintableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20MintableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Mintable.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20MintableApprovalIterator{contract: _ERC20Mintable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Erc777 *Erc777Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc777ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erc777.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc777ApprovalIterator{contract: _Erc777.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Pausable *ERC20PausableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20PausableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Pausable.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20PausableApprovalIterator{contract: _ERC20Pausable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_NodeSpace *NodeSpaceFilterer) WatchNodeApproved(opts *bind.WatchOpts, sink chan<- *NodeSpaceNodeApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _NodeSpace.contract.WatchLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(NodeSpaceNodeApproved)\n\t\t\t\tif err := _NodeSpace.contract.UnpackLog(event, \"NodeApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_StakingToken *StakingTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StakingTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StakingToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StakingTokenApprovalIterator{contract: _StakingToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenApprovalIterator{contract: _Token.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Capped *ERC20CappedFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20CappedApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Capped.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20CappedApprovalIterator{contract: _ERC20Capped.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) FilterRedeem(opts *bind.FilterOpts) (*ElvTradableLocalRedeemIterator, error) {\n\n\tlogs, sub, err := _ElvTradableLocal.contract.FilterLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableLocalRedeemIterator{contract: _ElvTradableLocal.contract, event: \"Redeem\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradableLocal.contract.Call(opts, &out, \"getApproved\", tokenId)\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_CrToken *CrTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*CrTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _CrToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrTokenApprovalIterator{contract: _CrToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IUniswapV2PairApprovalIterator, error) {\r\n\r\n\tvar ownerRule []interface{}\r\n\tfor _, ownerItem := range owner {\r\n\t\townerRule = append(ownerRule, ownerItem)\r\n\t}\r\n\tvar spenderRule []interface{}\r\n\tfor _, spenderItem := range spender {\r\n\t\tspenderRule = append(spenderRule, spenderItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn &IUniswapV2PairApprovalIterator{contract: _IUniswapV2Pair.contract, event: \"Approval\", logs: logs, sub: sub}, nil\r\n}",
"func (_BaseContentType *BaseContentTypeFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseContentTypeCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseContentType.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseContentTypeCommitPendingIterator{contract: _BaseContentType.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenApprovalIterator{contract: _Token.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenApprovalIterator{contract: _Token.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_CrToken *CrTokenFilterer) FilterNewPendingAdmin(opts *bind.FilterOpts) (*CrTokenNewPendingAdminIterator, error) {\n\n\tlogs, sub, err := _CrToken.contract.FilterLogs(opts, \"NewPendingAdmin\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrTokenNewPendingAdminIterator{contract: _CrToken.contract, event: \"NewPendingAdmin\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ElvTradableLocalApprovalForAllIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar operatorRule []interface{}\n\tfor _, operatorItem := range operator {\n\t\toperatorRule = append(operatorRule, operatorItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.FilterLogs(opts, \"ApprovalForAll\", ownerRule, operatorRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableLocalApprovalForAllIterator{contract: _ElvTradableLocal.contract, event: \"ApprovalForAll\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Interface *ERC20InterfaceFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*ERC20InterfaceApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Interface.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20InterfaceApprovalIterator{contract: _ERC20Interface.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BaseContentSpace *BaseContentSpaceFilterer) WatchNodeApproved(opts *bind.WatchOpts, sink chan<- *BaseContentSpaceNodeApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseContentSpace.contract.WatchLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseContentSpaceNodeApproved)\n\t\t\t\tif err := _BaseContentSpace.contract.UnpackLog(event, \"NodeApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterOrder(opts *bind.FilterOpts) (*EtherDeltaOrderIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaOrderIterator{contract: _EtherDelta.contract, event: \"Order\", logs: logs, sub: sub}, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchRegistrationApproved(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsRegistrationApproved, hash [][32]byte, upkeepId []*big.Int) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsRegistrationApproved)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"RegistrationApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) {\n\tvar out []interface{}\n\terr := _ElvTradable.contract.Call(opts, &out, \"getApproved\", tokenId)\n\n\tif err != nil {\n\t\treturn *new(common.Address), err\n\t}\n\n\tout0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)\n\n\treturn out0, err\n\n}",
"func (_BaseContentSpace *BaseContentSpaceFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseContentSpaceCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseContentSpace.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseContentSpaceCommitPendingIterator{contract: _BaseContentSpace.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) FilterVersionConfirm(opts *bind.FilterOpts) (*BaseAccessWalletVersionConfirmIterator, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.FilterLogs(opts, \"VersionConfirm\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseAccessWalletVersionConfirmIterator{contract: _BaseAccessWallet.contract, event: \"VersionConfirm\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) FilterRedeemableAdded(opts *bind.FilterOpts) (*ElvTradableLocalRedeemableAddedIterator, error) {\n\n\tlogs, sub, err := _ElvTradableLocal.contract.FilterLogs(opts, \"RedeemableAdded\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableLocalRedeemableAddedIterator{contract: _ElvTradableLocal.contract, event: \"RedeemableAdded\", logs: logs, sub: sub}, nil\n}",
"func (_DemoERC20 *DemoERC20Filterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*DemoERC20ApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _DemoERC20.contract.FilterLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DemoERC20ApprovalIterator{contract: _DemoERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (o *ViewOneOrderOK) WithPayload(payload *models.Order) *ViewOneOrderOK {\n\to.Payload = payload\n\treturn o\n}",
"func (_BaseContent *BaseContentFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseContentCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseContent.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseContentCommitPendingIterator{contract: _BaseContent.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_Wmatic *WmaticFilterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*WmaticApprovalIterator, error) {\n\n\tvar srcRule []interface{}\n\tfor _, srcItem := range src {\n\t\tsrcRule = append(srcRule, srcItem)\n\t}\n\tvar guyRule []interface{}\n\tfor _, guyItem := range guy {\n\t\tguyRule = append(guyRule, guyItem)\n\t}\n\n\tlogs, sub, err := _Wmatic.contract.FilterLogs(opts, \"Approval\", srcRule, guyRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WmaticApprovalIterator{contract: _Wmatic.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (c *PartClient) DeleteOne(pa *Part) *PartDeleteOne {\n\treturn c.DeleteOneID(pa.ID)\n}",
"func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error) {\r\n\r\n\tvar ownerRule []interface{}\r\n\tfor _, ownerItem := range owner {\r\n\t\townerRule = append(ownerRule, ownerItem)\r\n\t}\r\n\tvar spenderRule []interface{}\r\n\tfor _, spenderItem := range spender {\r\n\t\tspenderRule = append(spenderRule, spenderItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn &IERC20ApprovalIterator{contract: _IERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\r\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterRedeemableAdded(opts *bind.FilterOpts) (*ElvTradableRedeemableAddedIterator, error) {\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"RedeemableAdded\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableRedeemableAddedIterator{contract: _ElvTradable.contract, event: \"RedeemableAdded\", logs: logs, sub: sub}, nil\n}",
"func (p *rpcPeer) FeeFilter() int64 {\n\treturn atomic.LoadInt64(&(*serverPeer)(p).feeFilter)\n}",
"func (*PurchaseWhere) Descriptor() ([]byte, []int) {\n\treturn file_purchaseService_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.78373635",
"0.67220545",
"0.6711228",
"0.5216117",
"0.5162092",
"0.5149432",
"0.5055505",
"0.5003224",
"0.49100804",
"0.48997906",
"0.48997906",
"0.48997906",
"0.48868966",
"0.48669156",
"0.48182487",
"0.4813044",
"0.4794365",
"0.47930643",
"0.47857425",
"0.47788426",
"0.476709",
"0.47667065",
"0.47667065",
"0.47613776",
"0.47613776",
"0.47613776",
"0.47453713",
"0.47175193",
"0.47015363",
"0.4700499",
"0.46973702",
"0.4685512",
"0.46792698",
"0.46587503",
"0.46560648",
"0.46528536",
"0.46402276",
"0.4639746",
"0.4582689",
"0.45804542",
"0.4559911",
"0.45584148",
"0.45340768",
"0.45334366",
"0.45240316",
"0.45140797",
"0.45124382",
"0.45086816",
"0.4505488",
"0.45034707",
"0.45034707",
"0.44984362",
"0.44984362",
"0.4494449",
"0.44865355",
"0.44712982",
"0.44710624",
"0.44657138",
"0.4463952",
"0.4457871",
"0.44531196",
"0.4445561",
"0.4444615",
"0.4436614",
"0.44345212",
"0.44263294",
"0.44189954",
"0.44169387",
"0.44132933",
"0.44045034",
"0.44033822",
"0.43699935",
"0.4369693",
"0.4351238",
"0.43465632",
"0.43465632",
"0.43433362",
"0.43395177",
"0.43395177",
"0.43395177",
"0.43395177",
"0.4333571",
"0.43281838",
"0.43239412",
"0.43234557",
"0.43158862",
"0.431279",
"0.43126836",
"0.43117762",
"0.43097222",
"0.43089575",
"0.43057773",
"0.43047288",
"0.4297375",
"0.42971092",
"0.42741722",
"0.42694938",
"0.4261518",
"0.4255635",
"0.42534485"
] | 0.8030972 | 0 |
WatchOrderApprovedPartOne is a free log subscription operation binding the contract event 0x90c7f9f5b58c15f0f635bfb99f55d3d78fdbef3559e7d8abf5c81052a5276622. Solidity: event OrderApprovedPartOne(bytes32 indexed hash, address exchange, address indexed maker, address taker, uint256 makerRelayerFee, uint256 takerRelayerFee, uint256 makerProtocolFee, uint256 takerProtocolFee, address indexed feeRecipient, uint8 feeMethod, uint8 side, uint8 saleKind, address target) | func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartOne(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartOne, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (event.Subscription, error) {
var hashRule []interface{}
for _, hashItem := range hash {
hashRule = append(hashRule, hashItem)
}
var makerRule []interface{}
for _, makerItem := range maker {
makerRule = append(makerRule, makerItem)
}
var feeRecipientRule []interface{}
for _, feeRecipientItem := range feeRecipient {
feeRecipientRule = append(feeRecipientRule, feeRecipientItem)
}
logs, sub, err := _WyvernExchange.contract.WatchLogs(opts, "OrderApprovedPartOne", hashRule, makerRule, feeRecipientRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(WyvernExchangeOrderApprovedPartOne)
if err := _WyvernExchange.contract.UnpackLog(event, "OrderApprovedPartOne", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartOne(opts *bind.FilterOpts, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (*WyvernExchangeOrderApprovedPartOneIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartOneIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartOne\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartTwo(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartTwo, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartTwo)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartTwo\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartTwo(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderApprovedPartTwoIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartTwoIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartTwo\", logs: logs, sub: sub}, nil\n}",
"func (_Registry *RegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *RegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _Registry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RegistryOperatorContractApproved)\n\t\t\t\tif err := _Registry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *KeepRegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryOperatorContractApproved)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchRegistrationApproved(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsRegistrationApproved, hash [][32]byte, upkeepId []*big.Int) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsRegistrationApproved)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"RegistrationApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (e *EthHanlder) Approve(ticketId string) error {\n\tticketInfo, err := provider.QueryCrossTxInfoByCID(ticketId)\n\tif err != nil {\n\t\treturn err\n\t}\n\terr = provider.ValidateEnableBoundTransferToTx(ticketInfo.EthTx.FromTxID, nil)\n\tif err != nil {\n\t\tEthLogPrintf(\"validate failed: %v\", err)\n\t\treturn err\n\t}\n\trawTx := e.BuildTx(NotaryAddress, ticketInfo.EthTo, ticketInfo.EthAmount)\n\terr = e.SignAndSendTx(ticketId, rawTx)\n\t//todo:err\n\treturn err\n}",
"func (_NodeSpace *NodeSpaceFilterer) WatchNodeApproved(opts *bind.WatchOpts, sink chan<- *NodeSpaceNodeApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _NodeSpace.contract.WatchLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(NodeSpaceNodeApproved)\n\t\t\t\tif err := _NodeSpace.contract.UnpackLog(event, \"NodeApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BaseContentSpace *BaseContentSpaceFilterer) WatchNodeApproved(opts *bind.WatchOpts, sink chan<- *BaseContentSpaceNodeApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseContentSpace.contract.WatchLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseContentSpaceNodeApproved)\n\t\t\t\tif err := _BaseContentSpace.contract.UnpackLog(event, \"NodeApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalApproval)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (o *ViewOneOrderOK) WithPayload(payload *models.Order) *ViewOneOrderOK {\n\to.Payload = payload\n\treturn o\n}",
"func (_WELV9 *WELV9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _WELV9.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_Weth *WethTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterRegistrationApproved(opts *bind.FilterOpts, hash [][32]byte, upkeepId []*big.Int) (*UpkeepRegistrationRequestsRegistrationApprovedIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsRegistrationApprovedIterator{contract: _UpkeepRegistrationRequests.contract, event: \"RegistrationApproved\", logs: logs, sub: sub}, nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchAuthorizationDecreaseApproved(opts *bind.WatchOpts, sink chan<- *RandomBeaconAuthorizationDecreaseApproved, stakingProvider []common.Address) (event.Subscription, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"AuthorizationDecreaseApproved\", stakingProviderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconAuthorizationDecreaseApproved)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"AuthorizationDecreaseApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ElvTradableApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableApproval)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func PaymentConfirmed(orderID uint) error {\n\tctx := context.Background()\n\t_, err := zbClient.NewPublishMessageCommand().MessageName(\"PaymentConfirmed\").CorrelationKey(fmt.Sprint(orderID)).TimeToLive(1 * time.Minute).Send(ctx)\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchDkgResultApproved(opts *bind.WatchOpts, sink chan<- *RandomBeaconDkgResultApproved, resultHash [][32]byte, approver []common.Address) (event.Subscription, error) {\n\n\tvar resultHashRule []interface{}\n\tfor _, resultHashItem := range resultHash {\n\t\tresultHashRule = append(resultHashRule, resultHashItem)\n\t}\n\tvar approverRule []interface{}\n\tfor _, approverItem := range approver {\n\t\tapproverRule = append(approverRule, approverItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"DkgResultApproved\", resultHashRule, approverRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconDkgResultApproved)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"DkgResultApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Registry *RegistryFilterer) FilterOperatorContractApproved(opts *bind.FilterOpts) (*RegistryOperatorContractApprovedIterator, error) {\n\n\tlogs, sub, err := _Registry.contract.FilterLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RegistryOperatorContractApprovedIterator{contract: _Registry.contract, event: \"OperatorContractApproved\", logs: logs, sub: sub}, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *FixedSupplyTokenApproval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.WatchLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FixedSupplyTokenApproval)\n\t\t\t\tif err := _FixedSupplyToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20Detailed *ERC20DetailedTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ERC20Detailed.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) WatchCommitPending(opts *bind.WatchOpts, sink chan<- *BaseAccessWalletCommitPending) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.WatchLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseAccessWalletCommitPending)\n\t\t\t\tif err := _BaseAccessWallet.contract.UnpackLog(event, \"CommitPending\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradableLocal.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721Metadata *ERC721MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721MetadataApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Metadata.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721MetadataApproval)\n\t\t\t\tif err := _ERC721Metadata.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721 *ERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721Approval)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721 *ERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721Approval)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721 *ERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721Approval)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_KeepRegistry *KeepRegistryFilterer) FilterOperatorContractApproved(opts *bind.FilterOpts) (*KeepRegistryOperatorContractApprovedIterator, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.FilterLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &KeepRegistryOperatorContractApprovedIterator{contract: _KeepRegistry.contract, event: \"OperatorContractApproved\", logs: logs, sub: sub}, nil\n}",
"func (c *PartorderClient) DeleteOne(pa *Partorder) *PartorderDeleteOne {\n\treturn c.DeleteOneID(pa.ID)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_ERC721Contract *ERC721ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721ContractApproval, _owner []common.Address, _approved []common.Address) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\n\tlogs, sub, err := _ERC721Contract.contract.WatchLogs(opts, \"Approval\", _ownerRule, _approvedRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721ContractApproval)\n\t\t\t\tif err := _ERC721Contract.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (client JobClient) ApproveSender(req *http.Request) (future JobApproveFuture, err error) {\n var resp *http.Response\n resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client))\n if err != nil {\n return\n }\n future.Future, err = azure.NewFutureFromResponse(resp)\n return\n }",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DetailedTestTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedTestTokenApproval)\n\t\t\t\tif err := _DetailedTestToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721Enumerable *ERC721EnumerableFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721EnumerableApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Enumerable.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721EnumerableApproval)\n\t\t\t\tif err := _ERC721Enumerable.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedTestToken *DetailedTestTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _DetailedTestToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_ZKOnacci *ZKOnacciTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ZKOnacci.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Wmatic *WmaticTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) {\n\treturn _Wmatic.contract.Transact(opts, \"approve\", guy, wad)\n}",
"func (_ERC721Metadata *ERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MainnetCryptoCardsContractApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _MainnetCryptoCardsContract.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MainnetCryptoCardsContractApproval)\n\t\t\t\tif err := _MainnetCryptoCardsContract.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ConsortiumManagement *ConsortiumManagementTransactor) Approve(opts *bind.TransactOpts, id *big.Int) (*types.Transaction, error) {\n\treturn _ConsortiumManagement.contract.Transact(opts, \"approve\", id)\n}",
"func (_TTFT20 *TTFT20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _TTFT20.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_Distributor *DistributorFilterer) WatchWithdrawFee(opts *bind.WatchOpts, sink chan<- *DistributorWithdrawFee) (event.Subscription, error) {\n\n\tlogs, sub, err := _Distributor.contract.WatchLogs(opts, \"WithdrawFee\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DistributorWithdrawFee)\n\t\t\t\tif err := _Distributor.contract.UnpackLog(event, \"WithdrawFee\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (c *PartorderClient) UpdateOne(pa *Partorder) *PartorderUpdateOne {\n\tmutation := newPartorderMutation(c.config, OpUpdateOne, withPartorder(pa))\n\treturn &PartorderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation}\n}",
"func (_ZKOnacci *ZKOnacciFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZKOnacciApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ZKOnacci.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ZKOnacciApproval)\n\t\t\t\tif err := _ZKOnacci.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (s *SmartContract) Approve(ctx contractapi.TransactionContextInterface, spender string, value int) error {\n\n\t// Get ID of submitting client identity\n\towner, err := ctx.GetClientIdentity().GetID()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get client id: %v\", err)\n\t}\n\n\t// Create allowanceKey\n\tallowanceKey, err := ctx.GetStub().CreateCompositeKey(allowancePrefix, []string{owner, spender})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to create the composite key for prefix %s: %v\", allowancePrefix, err)\n\t}\n\n\t// Update the state of the smart contract by adding the allowanceKey and value\n\terr = ctx.GetStub().PutState(allowanceKey, []byte(strconv.Itoa(value)))\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to update state of smart contract for key %s: %v\", allowanceKey, err)\n\t}\n\n\t// Emit the Approval event\n\tapprovalEvent := event{owner, spender, value}\n\tapprovalEventJSON, err := json.Marshal(approvalEvent)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to obtain JSON encoding: %v\", err)\n\t}\n\terr = ctx.GetStub().SetEvent(\"Approval\", approvalEventJSON)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to set event: %v\", err)\n\t}\n\n\tlog.Printf(\"client %s approved a withdrawal allowance of %d for spender %s\", owner, value, spender)\n\n\treturn nil\n}",
"func (_ERC20Detailed *ERC20DetailedFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20DetailedApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Detailed.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20DetailedApproval)\n\t\t\t\tif err := _ERC20Detailed.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721MetadataApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721MetadataApproval)\n\t\t\t\tif err := _IERC721Metadata.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721MetadataApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721MetadataApproval)\n\t\t\t\tif err := _IERC721Metadata.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721Enumerable *ERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (s *Socket) sendOrderPartiallyFilled(p *TradePayload) error {\n\tfmt.Printf(\"Send order partially filled message\")\n\tm := &Message{MessageType: ORDER_PARTIALLY_FILLED, Payload: p}\n\tif err := s.connection.WriteJSON(&m); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (_Bep20 *Bep20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bep20.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_FCToken *FCTokenTransactor) Approve(opts *bind.TransactOpts, _delegatee common.Address, _value *big.Int) (*types.Transaction, error) {\n\treturn _FCToken.contract.Transact(opts, \"approve\", _delegatee, _value)\n}",
"func (_TTFT20 *TTFT20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TTFT20Approval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _TTFT20.contract.WatchLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TTFT20Approval)\n\t\t\t\tif err := _TTFT20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, tokens *big.Int) (*types.Transaction, error) {\n\treturn _FixedSupplyToken.contract.Transact(opts, \"approve\", spender, tokens)\n}",
"func (_ERC721Contract *ERC721ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_Erc20Mock *Erc20MockTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc20Mock.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Weth *WethTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20MockApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockApproval)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvToken *ElvTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ElvTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ElvToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenApproval)\n\t\t\t\tif err := _ElvToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ElvTradable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_Weth *WethSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Weth.Contract.Approve(&_Weth.TransactOpts, spender, amount)\n}",
"func (_IERC721 *IERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721Approval)\n\t\t\t\tif err := _IERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721 *IERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721Approval)\n\t\t\t\tif err := _IERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721 *IERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721Approval)\n\t\t\t\tif err := _IERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Approve(opts *bind.TransactOpts, name string, upkeepContract common.Address, gasLimit uint32, adminAddress common.Address, checkData []byte, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"approve\", name, upkeepContract, gasLimit, adminAddress, checkData, hash)\n}",
"func (_Contract *ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ContractApproval, _owner []common.Address, _approved []common.Address, _tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\tvar _tokenIdRule []interface{}\n\tfor _, _tokenIdItem := range _tokenId {\n\t\t_tokenIdRule = append(_tokenIdRule, _tokenIdItem)\n\t}\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"Approval\", _ownerRule, _approvedRule, _tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractApproval)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Weth *WethFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WethApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Weth.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WethApproval)\n\t\t\t\tif err := _Weth.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func confirmOne(confirms <-chan amqp.Confirmation) {\n\tlog.Info(fmt.Sprintf(\"waiting for confirmation of one publishing\"))\n\n\tif confirmed := <-confirms; confirmed.Ack {\n\t\tlog.Info(fmt.Sprintf(\"confirmed delivery with delivery tag: %d\", confirmed.DeliveryTag))\n\t} else {\n\t\tlog.Info(fmt.Sprintf(\"failed delivery of delivery tag: %d\", confirmed.DeliveryTag))\n\t}\n}",
"func (_CraftingI *CraftingIFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *CraftingIApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _CraftingI.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CraftingIApproval)\n\t\t\t\tif err := _CraftingI.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_StakingToken *StakingTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _StakingToken.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_WELV9 *WELV9Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WELV9Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _WELV9.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WELV9Approval)\n\t\t\t\tif err := _WELV9.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Contract *ContractTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _Contract.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_CraftingI *CraftingITransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _CraftingI.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_ERC721 *ERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Enumerable *IERC721EnumerableFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721EnumerableApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Enumerable.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721EnumerableApproval)\n\t\t\t\tif err := _IERC721Enumerable.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721Token *ERC721TokenTransactor) Approve(opts *bind.TransactOpts, _to common.Address, _tokenId *big.Int) (*types.Transaction, error) {\n\treturn _ERC721Token.contract.Transact(opts, \"approve\", _to, _tokenId)\n}",
"func (_Bindings *BindingsTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {\n\treturn _Bindings.contract.Transact(opts, \"approve\", spender, amount)\n}",
"func (_Univ2 *Univ2Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Univ2Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Univ2.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Univ2Approval)\n\t\t\t\tif err := _Univ2.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Metadata *IERC721MetadataTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Metadata.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_IERC721Enumerable *IERC721EnumerableTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {\n\treturn _IERC721Enumerable.contract.Transact(opts, \"approve\", to, tokenId)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_DetailedERC20 *DetailedERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _DetailedERC20.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_Erc777 *Erc777Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Erc777.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_MintableToken *MintableTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MintableTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MintableTokenApproval)\n\t\t\t\tif err := _MintableToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bep20 *Bep20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Bep20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Bep20Approval)\n\t\t\t\tif err := _Bep20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (c *PartClient) DeleteOne(pa *Part) *PartDeleteOne {\n\treturn c.DeleteOneID(pa.ID)\n}",
"func confirmOne(confirms <-chan amqp.Confirmation) {\n\tlog.Debug(\"waiting for confirmation of one publishing\")\n\n\tif confirmed := <-confirms; confirmed.Ack {\n\t\tlog.Debug(\"confirmed delivery with delivery tag: %d\", confirmed.DeliveryTag)\n\t} else {\n\t\tlog.Debug(\"failed delivery of delivery tag: %d\", confirmed.DeliveryTag)\n\t}\n}",
"func (_Lelecoin *LelecoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _Lelecoin.contract.Transact(opts, \"approve\", spender, value)\n}",
"func confirmOne(confirms <-chan amqp.Confirmation) {\n\tlog.Printf(\"waiting for confirmation of one publishing\")\n\n\tif confirmed := <-confirms; confirmed.Ack {\n\t\tlog.Printf(\"confirmed delivery with delivery tag: %d\", confirmed.DeliveryTag)\n\t} else {\n\t\tlog.Printf(\"failed delivery of delivery tag: %d\", confirmed.DeliveryTag)\n\t}\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\r\n\r\n\tvar ownerRule []interface{}\r\n\tfor _, ownerItem := range owner {\r\n\t\townerRule = append(ownerRule, ownerItem)\r\n\t}\r\n\tvar spenderRule []interface{}\r\n\tfor _, spenderItem := range spender {\r\n\t\tspenderRule = append(spenderRule, spenderItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\r\n\t\tdefer sub.Unsubscribe()\r\n\t\tfor {\r\n\t\t\tselect {\r\n\t\t\tcase log := <-logs:\r\n\t\t\t\t// New log arrived, parse the event and forward to the user\r\n\t\t\t\tevent := new(IUniswapV2PairApproval)\r\n\t\t\t\tif err := _IUniswapV2Pair.contract.UnpackLog(event, \"Approval\", log); err != nil {\r\n\t\t\t\t\treturn err\r\n\t\t\t\t}\r\n\t\t\t\tevent.Raw = log\r\n\r\n\t\t\t\tselect {\r\n\t\t\t\tcase sink <- event:\r\n\t\t\t\tcase err := <-sub.Err():\r\n\t\t\t\t\treturn err\r\n\t\t\t\tcase <-quit:\r\n\t\t\t\t\treturn nil\r\n\t\t\t\t}\r\n\t\t\tcase err := <-sub.Err():\r\n\t\t\t\treturn err\r\n\t\t\tcase <-quit:\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t}\r\n\t}), nil\r\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) WatchFulfilled(opts *bind.WatchOpts, sink chan<- *IOrakuruCoreFulfilled, requestId [][32]byte) (event.Subscription, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.WatchLogs(opts, \"Fulfilled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IOrakuruCoreFulfilled)\n\t\t\t\tif err := _IOrakuruCore.contract.UnpackLog(event, \"Fulfilled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BtlCoin *BtlCoinFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BtlCoinApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BtlCoin.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BtlCoinApproval)\n\t\t\t\tif err := _BtlCoin.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvToken *ElvTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {\n\treturn _ElvToken.contract.Transact(opts, \"approve\", spender, value)\n}",
"func (_NodeSpace *NodeSpaceFilterer) FilterNodeApproved(opts *bind.FilterOpts) (*NodeSpaceNodeApprovedIterator, error) {\n\n\tlogs, sub, err := _NodeSpace.contract.FilterLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &NodeSpaceNodeApprovedIterator{contract: _NodeSpace.contract, event: \"NodeApproved\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BREMTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMTokenApproval)\n\t\t\t\tif err := _BREMToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}"
] | [
"0.7150503",
"0.7004791",
"0.5719495",
"0.5281612",
"0.52156633",
"0.51766187",
"0.5037729",
"0.4987958",
"0.48666564",
"0.48383167",
"0.47489688",
"0.47166875",
"0.46873248",
"0.46845096",
"0.4681683",
"0.4663756",
"0.46361065",
"0.4633412",
"0.4607597",
"0.46009535",
"0.45967656",
"0.45933208",
"0.457158",
"0.45571",
"0.45427546",
"0.45405582",
"0.45405582",
"0.45405582",
"0.45393404",
"0.45233467",
"0.45212725",
"0.4516337",
"0.45138335",
"0.44926873",
"0.44920903",
"0.44813922",
"0.4480072",
"0.44704103",
"0.44628382",
"0.44605136",
"0.44572958",
"0.44552672",
"0.44455066",
"0.44387507",
"0.44364545",
"0.44346422",
"0.44342658",
"0.4432621",
"0.4430626",
"0.4430626",
"0.44305015",
"0.44209313",
"0.44149318",
"0.44089738",
"0.44045907",
"0.44005698",
"0.4390687",
"0.4385915",
"0.4378762",
"0.4376875",
"0.43740886",
"0.4371124",
"0.4369455",
"0.4366697",
"0.4366697",
"0.4366697",
"0.43649012",
"0.4362493",
"0.4354294",
"0.43436682",
"0.43422052",
"0.43345842",
"0.43342596",
"0.433314",
"0.4333086",
"0.4330837",
"0.4330837",
"0.4330837",
"0.43224037",
"0.4315129",
"0.43140283",
"0.43130788",
"0.43118197",
"0.43118197",
"0.43112037",
"0.43107784",
"0.43107784",
"0.43031782",
"0.4301784",
"0.43015018",
"0.43000776",
"0.42976552",
"0.42967808",
"0.42926645",
"0.42912662",
"0.42892566",
"0.4278526",
"0.42773992",
"0.426788",
"0.42635065"
] | 0.8266539 | 0 |
Close terminates the iteration process, releasing any pending underlying resources. | func (it *WyvernExchangeOrderApprovedPartTwoIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iter *Iterator) Close() error { return iter.impl.Close() }",
"func (i *Iterator) Close() {}",
"func (it *EthdkgDisputeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iter) Close() {\n\t// (todo) > handle error\n\tit.i.Close()\n}",
"func (it *PlasmaFrameworkExitQueuedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrPauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (s *Iterator) Close() {\n\ts.i.Close()\n}",
"func (it *LmcExitedAndUnlockedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SmartchefOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorV2V3InterfaceNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcExitedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SimpleMultiSigExecuteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CakevaultHarvestIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2SyncIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PlasmaFrameworkProcessedExitsNumIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2MintIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleMaxFramesUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20MintableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2BurnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContentRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitPiggybackedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20HecoManagerBurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iterator) Close() {\n\tit.iitr.Close()\n}",
"func (it *DogsOfRomeRomulusIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BREMFactoryBREMICOCreatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LvStreamRightsHolderRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *Iterator) Close() error {\n\ti.iterator.Close()\n\treturn nil\n}",
"func (it *XStakingStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IOrakuruCoreFulfilledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WELV9TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseContentSpaceVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20CappedTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MonsterAccessControlContractUpgradeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *ResolvedProductIter) Close() {}",
"func (it *ContentRunFinalizeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WethTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BindingsReservesReducedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AccessControlCEOTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DogsOfRomeScoobyIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokenVestingReleasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksHandledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksErasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *GameJamGameJamFinishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Erc777BurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausablePausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgResultChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KeepRegistryGovernanceUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20InterfaceTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TTFT20UpgradedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgMaliciousResultSlashedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseLibraryVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (iter *BatchObjectIter) Close() {\n\tclose(iter.oidCh)\n}",
"func (it *RedeemableRedeemableRemovedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokensNetworkChannelPunishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KNSRegistredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (si *ScanIterator) Close() {\n\t// Cleanup\n}",
"func (it *IERC20TransferIterator) Close() error {\r\n\tit.sub.Unsubscribe()\r\n\treturn nil\r\n}",
"func (it *ChpRegistryUnpausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausablePauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ConsortiumManagementProposeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractProposalExecutionExpiredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DistributorBountyWasPaidIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *XStakingRecoveredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ZKOnacciTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (c *indexIter) Close() {\n\tif c.it != nil {\n\t\tc.it.Close()\n\t\tc.it = nil\n\t}\n}",
"func (it *BindingsRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MevskyTurnedOnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *EthdkgShareDistributionIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BondedECDSAKeepERC20RewardDistributedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WmaticTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DemoERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *FlopperKickIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}"
] | [
"0.74838513",
"0.7415698",
"0.72180647",
"0.7207889",
"0.7205475",
"0.7177012",
"0.7174681",
"0.716488",
"0.7160671",
"0.7157174",
"0.7156437",
"0.7152241",
"0.7139136",
"0.7136386",
"0.7133897",
"0.7131583",
"0.7125007",
"0.7122744",
"0.711744",
"0.71151674",
"0.71123165",
"0.71105385",
"0.7108742",
"0.7104789",
"0.7099249",
"0.7087101",
"0.7084964",
"0.70699227",
"0.7069033",
"0.7065009",
"0.70474887",
"0.7040427",
"0.70364213",
"0.7033938",
"0.70329815",
"0.70314467",
"0.7030191",
"0.70283186",
"0.7026526",
"0.7026042",
"0.70191324",
"0.70188385",
"0.7016161",
"0.7015742",
"0.7015742",
"0.7015742",
"0.7015742",
"0.7013744",
"0.70122176",
"0.7007338",
"0.7006063",
"0.7000109",
"0.699309",
"0.6992281",
"0.69919884",
"0.69916654",
"0.69877404",
"0.6976735",
"0.6973081",
"0.6972492",
"0.69650584",
"0.6963538",
"0.69604754",
"0.6959247",
"0.69583184",
"0.6957692",
"0.6955721",
"0.69542587",
"0.6953059",
"0.6952554",
"0.6952554",
"0.69522566",
"0.6951914",
"0.6948007",
"0.6947661",
"0.6947127",
"0.69470865",
"0.6945527",
"0.6943303",
"0.69391584",
"0.6939035",
"0.6938418",
"0.6937278",
"0.69358575",
"0.6933561",
"0.6933561",
"0.6926285",
"0.6925856",
"0.6922983",
"0.6920094",
"0.69180065",
"0.69132924",
"0.6912103",
"0.6911842",
"0.69109",
"0.69100696",
"0.69090855",
"0.69090855",
"0.69090855",
"0.69090855",
"0.6908638"
] | 0.0 | -1 |
FilterOrderApprovedPartTwo is a free log retrieval operation binding the contract event 0xe55393c778364e440d958b39ac1debd99dcfae3775a8a04d1e79124adf6a2d08. Solidity: event OrderApprovedPartTwo(bytes32 indexed hash, uint8 howToCall, bytes calldata, bytes replacementPattern, address staticTarget, bytes staticExtradata, address paymentToken, uint256 basePrice, uint256 extra, uint256 listingTime, uint256 expirationTime, uint256 salt, bool orderbookInclusionDesired) | func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartTwo(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderApprovedPartTwoIterator, error) {
var hashRule []interface{}
for _, hashItem := range hash {
hashRule = append(hashRule, hashItem)
}
logs, sub, err := _WyvernExchange.contract.FilterLogs(opts, "OrderApprovedPartTwo", hashRule)
if err != nil {
return nil, err
}
return &WyvernExchangeOrderApprovedPartTwoIterator{contract: _WyvernExchange.contract, event: "OrderApprovedPartTwo", logs: logs, sub: sub}, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartTwo(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartTwo, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartTwo)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartTwo\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartOne(opts *bind.FilterOpts, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (*WyvernExchangeOrderApprovedPartOneIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartOneIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartOne\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartOne(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartOne, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartOne)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartOne\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (fifi *FIAdditionalFIToFI) LineTwoField() string {\n\treturn fifi.alphaField(fifi.AdditionalFIToFI.LineTwo, 35)\n}",
"func (fiba *FIBeneficiaryAdvice) LineTwoField() string {\n\treturn fiba.alphaField(fiba.Advice.LineTwo, 33)\n}",
"func (fiba *FIBeneficiaryAdvice) LineTwoField() string {\n\treturn fiba.alphaField(fiba.Advice.LineTwo, 33)\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IUniswapV2PairApprovalIterator, error) {\r\n\r\n\tvar ownerRule []interface{}\r\n\tfor _, ownerItem := range owner {\r\n\t\townerRule = append(ownerRule, ownerItem)\r\n\t}\r\n\tvar spenderRule []interface{}\r\n\tfor _, spenderItem := range spender {\r\n\t\tspenderRule = append(spenderRule, spenderItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn &IUniswapV2PairApprovalIterator{contract: _IUniswapV2Pair.contract, event: \"Approval\", logs: logs, sub: sub}, nil\r\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterOrder(opts *bind.FilterOpts) (*EtherDeltaOrderIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaOrderIterator{contract: _EtherDelta.contract, event: \"Order\", logs: logs, sub: sub}, nil\n}",
"func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineTwoField() string {\n\treturn debitDDAdvice.alphaField(debitDDAdvice.Advice.LineTwo, 33)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*FixedSupplyTokenApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FixedSupplyTokenApprovalIterator{contract: _FixedSupplyToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (fiba *FIBeneficiaryAdvice) FormatLineTwo(options FormatOptions) string {\n\treturn fiba.formatAlphaField(fiba.Advice.LineTwo, 33, options)\n}",
"func (_TTFT20 *TTFT20Filterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*TTFT20ApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _TTFT20.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TTFT20ApprovalIterator{contract: _TTFT20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*MainnetCryptoCardsContractApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _MainnetCryptoCardsContract.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MainnetCryptoCardsContractApprovalIterator{contract: _MainnetCryptoCardsContract.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Erclog *ErclogFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*ErclogApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erclog.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ErclogApprovalIterator{contract: _Erclog.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_NodeSpace *NodeSpaceFilterer) FilterNodeApproved(opts *bind.FilterOpts) (*NodeSpaceNodeApprovedIterator, error) {\n\n\tlogs, sub, err := _NodeSpace.contract.FilterLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &NodeSpaceNodeApprovedIterator{contract: _NodeSpace.contract, event: \"NodeApproved\", logs: logs, sub: sub}, nil\n}",
"func (rft *RemittanceFreeText) LineTwoField() string {\n\treturn rft.alphaField(rft.LineTwo, 140)\n}",
"func (rft *RemittanceFreeText) FormatLineTwo(options FormatOptions) string {\n\treturn rft.formatAlphaField(rft.LineTwo, 140, options)\n}",
"func (_ERC721 *ERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ApprovalIterator{contract: _ERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721 *ERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ApprovalIterator{contract: _ERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721 *ERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ApprovalIterator{contract: _ERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721Metadata *ERC721MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721MetadataApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Metadata.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721MetadataApprovalIterator{contract: _ERC721Metadata.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderCancelled(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderCancelledIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderCancelledIterator{contract: _WyvernExchange.contract, event: \"OrderCancelled\", logs: logs, sub: sub}, nil\n}",
"func (_Univ2 *Univ2Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Univ2ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Univ2.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Univ2ApprovalIterator{contract: _Univ2.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Registry *RegistryFilterer) FilterOperatorContractApproved(opts *bind.FilterOpts) (*RegistryOperatorContractApprovedIterator, error) {\n\n\tlogs, sub, err := _Registry.contract.FilterLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RegistryOperatorContractApprovedIterator{contract: _Registry.contract, event: \"OperatorContractApproved\", logs: logs, sub: sub}, nil\n}",
"func OrderFilter(order Order) Filter {\n\treturn Param(\"order\", order.String())\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ElvTradableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableApprovalIterator{contract: _ElvTradable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Detailed *ERC20DetailedFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20DetailedApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Detailed.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20DetailedApprovalIterator{contract: _ERC20Detailed.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721Enumerable *ERC721EnumerableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ERC721EnumerableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Enumerable.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721EnumerableApprovalIterator{contract: _ERC721Enumerable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func PartTwo(filename string) string {\n\treturn fmt.Sprint(simulateSeatsAndCountOccupied(filename, true))\n}",
"func (_KeepRegistry *KeepRegistryFilterer) FilterOperatorContractApproved(opts *bind.FilterOpts) (*KeepRegistryOperatorContractApprovedIterator, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.FilterLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &KeepRegistryOperatorContractApprovedIterator{contract: _KeepRegistry.contract, event: \"OperatorContractApproved\", logs: logs, sub: sub}, nil\n}",
"func (_TokensNetwork *TokensNetworkFilterer) FilterBalanceProofUpdated(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkBalanceProofUpdatedIterator, error) {\n\n\tvar channel_identifierRule []interface{}\n\tfor _, channel_identifierItem := range channel_identifier {\n\t\tchannel_identifierRule = append(channel_identifierRule, channel_identifierItem)\n\t}\n\n\tlogs, sub, err := _TokensNetwork.contract.FilterLogs(opts, \"BalanceProofUpdated\", channel_identifierRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokensNetworkBalanceProofUpdatedIterator{contract: _TokensNetwork.contract, event: \"BalanceProofUpdated\", logs: logs, sub: sub}, nil\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseAccessWalletCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseAccessWalletCommitPendingIterator{contract: _BaseAccessWallet.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DetailedTestTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedTestTokenApprovalIterator{contract: _DetailedTestToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ZKOnacci *ZKOnacciFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ZKOnacciApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ZKOnacci.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ZKOnacciApprovalIterator{contract: _ZKOnacci.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterRegistrationApproved(opts *bind.FilterOpts, hash [][32]byte, upkeepId []*big.Int) (*UpkeepRegistrationRequestsRegistrationApprovedIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsRegistrationApprovedIterator{contract: _UpkeepRegistrationRequests.contract, event: \"RegistrationApproved\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterConfirmed(opts *bind.FilterOpts) (*AuthContractConfirmedIterator, error) {\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"Confirmed\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractConfirmedIterator{contract: _AuthContract.contract, event: \"Confirmed\", logs: logs, sub: sub}, nil\n}",
"func (_StandardToken *StandardTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StandardTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StandardToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StandardTokenApprovalIterator{contract: _StandardToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_StandardToken *StandardTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StandardTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StandardToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StandardTokenApprovalIterator{contract: _StandardToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_WandappETH *WandappETHFilterer) FilterBadProofEvent(opts *bind.FilterOpts) (*WandappETHBadProofEventIterator, error) {\n\n\tlogs, sub, err := _WandappETH.contract.FilterLogs(opts, \"BadProofEvent\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WandappETHBadProofEventIterator{contract: _WandappETH.contract, event: \"BadProofEvent\", logs: logs, sub: sub}, nil\n}",
"func (_CraftingI *CraftingIFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*CraftingIApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _CraftingI.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CraftingIApprovalIterator{contract: _CraftingI.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721MetadataApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721MetadataApprovalIterator{contract: _IERC721Metadata.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721MetadataApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721MetadataApprovalIterator{contract: _IERC721Metadata.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Contract *ContractFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _approved []common.Address, _tokenId []*big.Int) (*ContractApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\tvar _tokenIdRule []interface{}\n\tfor _, _tokenIdItem := range _tokenId {\n\t\t_tokenIdRule = append(_tokenIdRule, _tokenIdItem)\n\t}\n\n\tlogs, sub, err := _Contract.contract.FilterLogs(opts, \"Approval\", _ownerRule, _approvedRule, _tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ContractApprovalIterator{contract: _Contract.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC721Contract *ERC721ContractFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _approved []common.Address) (*ERC721ContractApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\n\tlogs, sub, err := _ERC721Contract.contract.FilterLogs(opts, \"Approval\", _ownerRule, _approvedRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC721ContractApprovalIterator{contract: _ERC721Contract.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Interface *ERC20InterfaceFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*ERC20InterfaceApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Interface.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20InterfaceApprovalIterator{contract: _ERC20Interface.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*BREMTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BREMTokenApprovalIterator{contract: _BREMToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ElvToken *ElvTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ElvTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ElvToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTokenApprovalIterator{contract: _ElvToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineTwo(options FormatOptions) string {\n\treturn debitDDAdvice.formatAlphaField(debitDDAdvice.Advice.LineTwo, 33, options)\n}",
"func (_Editable *EditableFilterer) FilterCommitPending(opts *bind.FilterOpts) (*EditableCommitPendingIterator, error) {\n\n\tlogs, sub, err := _Editable.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EditableCommitPendingIterator{contract: _Editable.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721ApprovalIterator{contract: _IERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721ApprovalIterator{contract: _IERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721ApprovalIterator{contract: _IERC721.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) FilterAuthorizationDecreaseApproved(opts *bind.FilterOpts, stakingProvider []common.Address) (*RandomBeaconAuthorizationDecreaseApprovedIterator, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.FilterLogs(opts, \"AuthorizationDecreaseApproved\", stakingProviderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RandomBeaconAuthorizationDecreaseApprovedIterator{contract: _RandomBeacon.contract, event: \"AuthorizationDecreaseApproved\", logs: logs, sub: sub}, nil\n}",
"func (p *Bittrex) GetOrderInfo(filter OrderInfo) []OrderInfo {\n\tif err, response := p.marketRequest(\"/account/getorder\", map[string]string{\n\t\t\"uuid\": filter.OrderID,\n\t\t\"apikey\": p.config.API,\n\t}, true); err != nil {\n\t\tlogger.Errorf(\"Fail to trade:%v\", err)\n\t\treturn nil\n\t} else {\n\n\t\tif response == nil || response[\"success\"] != true {\n\t\t\tlogger.Errorf(\"Fail to trade:%v\", response[\"message\"])\n\t\t\treturn nil\n\t\t}\n\n\t\tresult := response[\"result\"].(map[string]interface{})\n\t\torderInfo := make([]OrderInfo, 1)\n\t\tif result[\"IsOpen\"].(bool) {\n\t\t\torderInfo[0].Status = OrderStatusOpen\n\t\t} else {\n\t\t\torderInfo[0].Pair = filter.Pair\n\t\t\torderInfo[0].Price = filter.Price\n\t\t\torderInfo[0].Type = filter.Type\n\t\t\torderInfo[0].Amount = filter.Amount\n\t\t\torderInfo[0].OrderID = filter.OrderID\n\t\t\torderInfo[0].Status = OrderStatusDone\n\t\t\torderInfo[0].AvgPrice = result[\"PricePerUnit\"].(float64)\n\t\t\torderInfo[0].DealAmount = result[\"Quantity\"].(float64) - result[\"QuantityRemaining\"].(float64)\n\n\t\t\treturn orderInfo\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (_IERC721Enumerable *IERC721EnumerableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721EnumerableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Enumerable.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IERC721EnumerableApprovalIterator{contract: _IERC721Enumerable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedERC20 *DetailedERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DetailedERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedERC20ApprovalIterator{contract: _DetailedERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedERC20 *DetailedERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DetailedERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedERC20ApprovalIterator{contract: _DetailedERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (*TransactionEvent2) Descriptor() ([]byte, []int) {\n\treturn file_mkit_service_transaction_v1_transaction_proto_rawDescGZIP(), []int{4}\n}",
"func (_Distributor *DistributorFilterer) FilterWithdrawFee(opts *bind.FilterOpts) (*DistributorWithdrawFeeIterator, error) {\n\n\tlogs, sub, err := _Distributor.contract.FilterLogs(opts, \"WithdrawFee\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DistributorWithdrawFeeIterator{contract: _Distributor.contract, event: \"WithdrawFee\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*BurnableTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BurnableTokenApprovalIterator{contract: _BurnableToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ElvTradableLocalApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.FilterLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableLocalApprovalIterator{contract: _ElvTradableLocal.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BaseContentSpace *BaseContentSpaceFilterer) FilterNodeApproved(opts *bind.FilterOpts) (*BaseContentSpaceNodeApprovedIterator, error) {\n\n\tlogs, sub, err := _BaseContentSpace.contract.FilterLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseContentSpaceNodeApprovedIterator{contract: _BaseContentSpace.contract, event: \"NodeApproved\", logs: logs, sub: sub}, nil\n}",
"func (_WELV9 *WELV9Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*WELV9ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _WELV9.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WELV9ApprovalIterator{contract: _WELV9.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (*QueryWithdrawal2) Descriptor() ([]byte, []int) {\n\treturn file_services_temporal_service_proto_rawDescGZIP(), []int{3}\n}",
"func (_Bep20 *Bep20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Bep20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Bep20ApprovalIterator{contract: _Bep20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_FCToken *FCTokenFilterer) FilterApproval(opts *bind.FilterOpts, from []common.Address, delegatee []common.Address) (*FCTokenApprovalIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar delegateeRule []interface{}\n\tfor _, delegateeItem := range delegatee {\n\t\tdelegateeRule = append(delegateeRule, delegateeItem)\n\t}\n\n\tlogs, sub, err := _FCToken.contract.FilterLogs(opts, \"Approval\", fromRule, delegateeRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FCTokenApprovalIterator{contract: _FCToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BaseLibrary *BaseLibraryFilterer) FilterCommitPending(opts *bind.FilterOpts) (*BaseLibraryCommitPendingIterator, error) {\n\n\tlogs, sub, err := _BaseLibrary.contract.FilterLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseLibraryCommitPendingIterator{contract: _BaseLibrary.contract, event: \"CommitPending\", logs: logs, sub: sub}, nil\n}",
"func (_PausableToken *PausableTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PausableTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableTokenApprovalIterator{contract: _PausableToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_MintableToken *MintableTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MintableTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MintableTokenApprovalIterator{contract: _MintableToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenApprovalIterator{contract: _Token.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenApprovalIterator{contract: _Token.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_DemoERC20 *DemoERC20Filterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*DemoERC20ApprovalIterator, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _DemoERC20.contract.FilterLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DemoERC20ApprovalIterator{contract: _DemoERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (m Message) OrderQty2() (*field.OrderQty2Field, quickfix.MessageRejectError) {\n\tf := &field.OrderQty2Field{}\n\terr := m.Body.Get(f)\n\treturn f, err\n}",
"func (_Erc20Mock *Erc20MockFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20MockApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc20MockApprovalIterator{contract: _Erc20Mock.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (r JournalRecord) ver2() journalrecordver2 {\n\treturn journalrecordver2{\n\t\tAction: r.Action,\n\t\tStartoffset: r.Startoffset,\n\t\tCount: r.Count,\n\t\tCrc32: r.Crc32,\n\t}\n}",
"func (_Token *TokenFilterer) FilterTokenPurchase(opts *bind.FilterOpts, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (*TokenTokenPurchaseIterator, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar eth_soldRule []interface{}\n\tfor _, eth_soldItem := range eth_sold {\n\t\teth_soldRule = append(eth_soldRule, eth_soldItem)\n\t}\n\tvar tokens_boughtRule []interface{}\n\tfor _, tokens_boughtItem := range tokens_bought {\n\t\ttokens_boughtRule = append(tokens_boughtRule, tokens_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"TokenPurchase\", buyerRule, eth_soldRule, tokens_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenTokenPurchaseIterator{contract: _Token.contract, event: \"TokenPurchase\", logs: logs, sub: sub}, nil\n}",
"func (_BtlCoin *BtlCoinFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*BtlCoinApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BtlCoin.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BtlCoinApprovalIterator{contract: _BtlCoin.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_Weth *WethFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*WethApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Weth.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WethApprovalIterator{contract: _Weth.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_CrToken *CrTokenFilterer) FilterNewPendingAdmin(opts *bind.FilterOpts) (*CrTokenNewPendingAdminIterator, error) {\n\n\tlogs, sub, err := _CrToken.contract.FilterLogs(opts, \"NewPendingAdmin\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrTokenNewPendingAdminIterator{contract: _CrToken.contract, event: \"NewPendingAdmin\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Capped *ERC20CappedFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20CappedApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Capped.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20CappedApprovalIterator{contract: _ERC20Capped.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (*FinancialFilter) Descriptor() ([]byte, []int) {\n\treturn file_Qot_StockFilter_proto_rawDescGZIP(), []int{2}\n}",
"func (_HbSwap *HbSwapFilterer) FilterTrade(opts *bind.FilterOpts) (*HbSwapTradeIterator, error) {\n\n\tlogs, sub, err := _HbSwap.contract.FilterLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HbSwapTradeIterator{contract: _HbSwap.contract, event: \"Trade\", logs: logs, sub: sub}, nil\n}",
"func (c *CurveOperations) Fp2FromBytes(fp2 *Fp2Element, input []byte) {\n\tif len(input) < 2*c.Params.Bytelen {\n\t\tpanic(\"input byte slice too short\")\n\t}\n\n\tfor i := 0; i < c.Params.Bytelen; i++ {\n\t\tj := i / 8\n\t\tk := uint64(i % 8)\n\t\tfp2.A[j] |= uint64(input[i]) << (8 * k)\n\t\tfp2.B[j] |= uint64(input[i+c.Params.Bytelen]) << (8 * k)\n\t}\n\tc.Params.Op.ToMontgomery(fp2)\n}",
"func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenApprovalIterator{contract: _Token.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func WholeFileReaderV2(scope *Scope, optional ...WholeFileReaderV2Attr) (reader_handle tf.Output) {\n\tif scope.Err() != nil {\n\t\treturn\n\t}\n\tattrs := map[string]interface{}{}\n\tfor _, a := range optional {\n\t\ta(attrs)\n\t}\n\topspec := tf.OpSpec{\n\t\tType: \"WholeFileReaderV2\",\n\n\t\tAttrs: attrs,\n\t}\n\top := scope.AddOperation(opspec)\n\treturn op.Output(0)\n}",
"func (_StakingToken *StakingTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StakingTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StakingToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StakingTokenApprovalIterator{contract: _StakingToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (c *CurveOperations) Fp2ToBytes(output []byte, fp2 *Fp2Element) {\n\tif len(output) < 2*c.Params.Bytelen {\n\t\tpanic(\"output byte slice too short\")\n\t}\n\tvar a Fp2Element\n\tc.Params.Op.FromMontgomery(fp2, &a)\n\n\t// convert to bytes in little endian form\n\tfor i := 0; i < c.Params.Bytelen; i++ {\n\t\t// set i = j*8 + k\n\t\tfp2 := i / 8\n\t\tk := uint64(i % 8)\n\t\toutput[i] = byte(a.A[fp2] >> (8 * k))\n\t\toutput[i+c.Params.Bytelen] = byte(a.B[fp2] >> (8 * k))\n\t}\n}",
"func Part2(input string) string {\n\toutput := CleanupSignal(input, 100, 10000)\n\n\treturn \"Answer: \" + output[0:8]\n}",
"func PartTwo(input string) (string, error) {\n\tfor _, line := range strings.Split(input, \"\\n\") {\n\n\t\troom := roomData(line)\n\n\t\tif room.decryptRoomName() == \"northpole object storage \" {\n\t\t\treturn strconv.Itoa(room.getSectorID()), nil\n\t\t}\n\n\t}\n\n\treturn \"\", errors.New(\"Could not find room\")\n}",
"func (_Lelecoin *LelecoinFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*LelecoinApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Lelecoin.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &LelecoinApprovalIterator{contract: _Lelecoin.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20ApprovalIterator{contract: _ERC20.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_CrToken *CrTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*CrTokenApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _CrToken.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrTokenApprovalIterator{contract: _CrToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20Pausable *ERC20PausableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20PausableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Pausable.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20PausableApprovalIterator{contract: _ERC20Pausable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func PartTwo(r io.Reader, w io.Writer) error {\n\tmotions, err := motionsFromReader(r)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not read input: %w\", err)\n\t}\n\n\tcount := countUniqueTailPositions(motions, 10)\n\n\t_, err = fmt.Fprintf(w, \"%d\", count)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not write answer: %w\", err)\n\t}\n\n\treturn nil\n}",
"func (_ERC20Mintable *ERC20MintableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20MintableApprovalIterator, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Mintable.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20MintableApprovalIterator{contract: _ERC20Mintable.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func PartTwo(input string) (string, error) {\n\tips := getIPAddresses(input)\n\n\tvalid := 0\n\n\tfor _, ip := range ips {\n\t\tif supportsSLS(ip) {\n\t\t\tvalid++\n\t\t}\n\t}\n\n\treturn strconv.Itoa(valid), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderCancelled, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderCancelled)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderCancelled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}"
] | [
"0.7832833",
"0.6372845",
"0.63581234",
"0.5067595",
"0.49364638",
"0.49364638",
"0.4852598",
"0.4809758",
"0.47840995",
"0.47554654",
"0.47191674",
"0.46740445",
"0.46303293",
"0.4626262",
"0.46253803",
"0.46218225",
"0.46159235",
"0.46145865",
"0.46145865",
"0.46145865",
"0.46018916",
"0.459193",
"0.45786956",
"0.45729217",
"0.45666885",
"0.4565687",
"0.45588845",
"0.45467648",
"0.45465556",
"0.45421362",
"0.4532418",
"0.4518428",
"0.45115775",
"0.44951782",
"0.4487776",
"0.44799992",
"0.44655725",
"0.44655725",
"0.44491217",
"0.4448775",
"0.4435758",
"0.4435758",
"0.44352674",
"0.44336793",
"0.44332546",
"0.44277826",
"0.44166303",
"0.44154003",
"0.44144407",
"0.4414369",
"0.4414369",
"0.4414369",
"0.4407846",
"0.43956348",
"0.43925261",
"0.43904987",
"0.43904987",
"0.43817508",
"0.43750882",
"0.43731308",
"0.4372532",
"0.43680334",
"0.43558943",
"0.4341553",
"0.43362013",
"0.4335909",
"0.43299204",
"0.4322455",
"0.43193063",
"0.43116465",
"0.43116465",
"0.43107587",
"0.4306753",
"0.429862",
"0.42968738",
"0.42934945",
"0.42924607",
"0.4284525",
"0.42812246",
"0.42735547",
"0.42734298",
"0.42730665",
"0.42709202",
"0.42659637",
"0.42658776",
"0.42646202",
"0.4258283",
"0.42547265",
"0.42479616",
"0.42471227",
"0.42404082",
"0.42404082",
"0.42404082",
"0.42404082",
"0.42385983",
"0.422119",
"0.4218272",
"0.42062965",
"0.42002943",
"0.41994563"
] | 0.83634603 | 0 |
WatchOrderApprovedPartTwo is a free log subscription operation binding the contract event 0xe55393c778364e440d958b39ac1debd99dcfae3775a8a04d1e79124adf6a2d08. Solidity: event OrderApprovedPartTwo(bytes32 indexed hash, uint8 howToCall, bytes calldata, bytes replacementPattern, address staticTarget, bytes staticExtradata, address paymentToken, uint256 basePrice, uint256 extra, uint256 listingTime, uint256 expirationTime, uint256 salt, bool orderbookInclusionDesired) | func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartTwo(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartTwo, hash [][32]byte) (event.Subscription, error) {
var hashRule []interface{}
for _, hashItem := range hash {
hashRule = append(hashRule, hashItem)
}
logs, sub, err := _WyvernExchange.contract.WatchLogs(opts, "OrderApprovedPartTwo", hashRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(WyvernExchangeOrderApprovedPartTwo)
if err := _WyvernExchange.contract.UnpackLog(event, "OrderApprovedPartTwo", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartTwo(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderApprovedPartTwoIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartTwoIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartTwo\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartOne(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartOne, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartOne)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartOne\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartOne(opts *bind.FilterOpts, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (*WyvernExchangeOrderApprovedPartOneIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartOneIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartOne\", logs: logs, sub: sub}, nil\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\r\n\r\n\tvar ownerRule []interface{}\r\n\tfor _, ownerItem := range owner {\r\n\t\townerRule = append(ownerRule, ownerItem)\r\n\t}\r\n\tvar spenderRule []interface{}\r\n\tfor _, spenderItem := range spender {\r\n\t\tspenderRule = append(spenderRule, spenderItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\r\n\t\tdefer sub.Unsubscribe()\r\n\t\tfor {\r\n\t\t\tselect {\r\n\t\t\tcase log := <-logs:\r\n\t\t\t\t// New log arrived, parse the event and forward to the user\r\n\t\t\t\tevent := new(IUniswapV2PairApproval)\r\n\t\t\t\tif err := _IUniswapV2Pair.contract.UnpackLog(event, \"Approval\", log); err != nil {\r\n\t\t\t\t\treturn err\r\n\t\t\t\t}\r\n\t\t\t\tevent.Raw = log\r\n\r\n\t\t\t\tselect {\r\n\t\t\t\tcase sink <- event:\r\n\t\t\t\tcase err := <-sub.Err():\r\n\t\t\t\t\treturn err\r\n\t\t\t\tcase <-quit:\r\n\t\t\t\t\treturn nil\r\n\t\t\t\t}\r\n\t\t\tcase err := <-sub.Err():\r\n\t\t\t\treturn err\r\n\t\t\tcase <-quit:\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t}\r\n\t}), nil\r\n}",
"func PartTwo(filename string) string {\n\treturn fmt.Sprint(simulateSeatsAndCountOccupied(filename, true))\n}",
"func (_Registry *RegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *RegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _Registry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RegistryOperatorContractApproved)\n\t\t\t\tif err := _Registry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *KeepRegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryOperatorContractApproved)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchRegistrationApproved(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsRegistrationApproved, hash [][32]byte, upkeepId []*big.Int) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsRegistrationApproved)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"RegistrationApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (fifi *FIAdditionalFIToFI) LineTwoField() string {\n\treturn fifi.alphaField(fifi.AdditionalFIToFI.LineTwo, 35)\n}",
"func Part2(input string) string {\n\toutput := CleanupSignal(input, 100, 10000)\n\n\treturn \"Answer: \" + output[0:8]\n}",
"func (fiba *FIBeneficiaryAdvice) LineTwoField() string {\n\treturn fiba.alphaField(fiba.Advice.LineTwo, 33)\n}",
"func (fiba *FIBeneficiaryAdvice) LineTwoField() string {\n\treturn fiba.alphaField(fiba.Advice.LineTwo, 33)\n}",
"func (_NodeSpace *NodeSpaceFilterer) WatchNodeApproved(opts *bind.WatchOpts, sink chan<- *NodeSpaceNodeApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _NodeSpace.contract.WatchLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(NodeSpaceNodeApproved)\n\t\t\t\tif err := _NodeSpace.contract.UnpackLog(event, \"NodeApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *FixedSupplyTokenApproval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.WatchLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FixedSupplyTokenApproval)\n\t\t\t\tif err := _FixedSupplyToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TTFT20 *TTFT20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TTFT20Approval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _TTFT20.contract.WatchLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TTFT20Approval)\n\t\t\t\tif err := _TTFT20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderCancelled, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderCancelled)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderCancelled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (*TransactionEvent2) Descriptor() ([]byte, []int) {\n\treturn file_mkit_service_transaction_v1_transaction_proto_rawDescGZIP(), []int{4}\n}",
"func (_Univ2 *Univ2Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Univ2Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Univ2.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Univ2Approval)\n\t\t\t\tif err := _Univ2.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func PartTwo(r io.Reader, w io.Writer) error {\n\tmotions, err := motionsFromReader(r)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not read input: %w\", err)\n\t}\n\n\tcount := countUniqueTailPositions(motions, 10)\n\n\t_, err = fmt.Fprintf(w, \"%d\", count)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not write answer: %w\", err)\n\t}\n\n\treturn nil\n}",
"func (_WandappETH *WandappETHFilterer) WatchBadProofEvent(opts *bind.WatchOpts, sink chan<- *WandappETHBadProofEvent) (event.Subscription, error) {\n\n\tlogs, sub, err := _WandappETH.contract.WatchLogs(opts, \"BadProofEvent\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WandappETHBadProofEvent)\n\t\t\t\tif err := _WandappETH.contract.UnpackLog(event, \"BadProofEvent\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (m Message) OrderQty2() (*field.OrderQty2Field, quickfix.MessageRejectError) {\n\tf := &field.OrderQty2Field{}\n\terr := m.Body.Get(f)\n\treturn f, err\n}",
"func (_BaseContentSpace *BaseContentSpaceFilterer) WatchNodeApproved(opts *bind.WatchOpts, sink chan<- *BaseContentSpaceNodeApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseContentSpace.contract.WatchLogs(opts, \"NodeApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseContentSpaceNodeApproved)\n\t\t\t\tif err := _BaseContentSpace.contract.UnpackLog(event, \"NodeApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchOrder(opts *bind.WatchOpts, sink chan<- *EtherDeltaOrder) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaOrder)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Order\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineTwoField() string {\n\treturn debitDDAdvice.alphaField(debitDDAdvice.Advice.LineTwo, 33)\n}",
"func (rft *RemittanceFreeText) LineTwoField() string {\n\treturn rft.alphaField(rft.LineTwo, 140)\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) ApproveOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"approveOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_Token *TokenFilterer) WatchEthPurchase(opts *bind.WatchOpts, sink chan<- *TokenEthPurchase, buyer []common.Address, tokens_sold []*big.Int, eth_bought []*big.Int) (event.Subscription, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar tokens_soldRule []interface{}\n\tfor _, tokens_soldItem := range tokens_sold {\n\t\ttokens_soldRule = append(tokens_soldRule, tokens_soldItem)\n\t}\n\tvar eth_boughtRule []interface{}\n\tfor _, eth_boughtItem := range eth_bought {\n\t\teth_boughtRule = append(eth_boughtRule, eth_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"EthPurchase\", buyerRule, tokens_soldRule, eth_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenEthPurchase)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"EthPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func Quote2(rw io.ReadWriter, handle tpmutil.Handle, data []byte, pcrVals []int, addVersion byte, aikAuth []byte) ([]byte, error) {\n\t// Run OSAP for the handle, reading a random OddOSAP for our initial\n\t// command and getting back a secret and a response.\n\tsharedSecret, osapr, err := newOSAPSession(rw, etKeyHandle, handle, aikAuth)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer osapr.Close(rw)\n\tdefer zeroBytes(sharedSecret[:])\n\n\t// Hash the data to get the value to pass to quote2.\n\thash := sha1.Sum(data)\n\tpcrSel, err := newPCRSelection(pcrVals)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tauthIn := []interface{}{ordQuote2, hash, pcrSel, addVersion}\n\tca, err := newCommandAuth(osapr.AuthHandle, osapr.NonceEven, nil, sharedSecret[:], authIn)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// TODO(tmroeder): use the returned CapVersion.\n\tpcrShort, _, capBytes, sig, ra, ret, err := quote2(rw, handle, hash, pcrSel, addVersion, ca)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// Check response authentication.\n\traIn := []interface{}{ret, ordQuote2, pcrShort, tpmutil.U32Bytes(capBytes), tpmutil.U32Bytes(sig)}\n\tif err := ra.verify(ca.NonceOdd, sharedSecret[:], raIn); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn sig, nil\n}",
"func (_MainnetCryptoCardsContract *MainnetCryptoCardsContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MainnetCryptoCardsContractApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _MainnetCryptoCardsContract.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MainnetCryptoCardsContractApproval)\n\t\t\t\tif err := _MainnetCryptoCardsContract.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ElvTradableApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableApproval)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (r JournalRecord) ver2() journalrecordver2 {\n\treturn journalrecordver2{\n\t\tAction: r.Action,\n\t\tStartoffset: r.Startoffset,\n\t\tCount: r.Count,\n\t\tCrc32: r.Crc32,\n\t}\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DetailedTestTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedTestTokenApproval)\n\t\t\t\tif err := _DetailedTestToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchAuthorizationDecreaseApproved(opts *bind.WatchOpts, sink chan<- *RandomBeaconAuthorizationDecreaseApproved, stakingProvider []common.Address) (event.Subscription, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"AuthorizationDecreaseApproved\", stakingProviderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconAuthorizationDecreaseApproved)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"AuthorizationDecreaseApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (s *SmartContract) notifyItemDelivered(stub shim.ChaincodeStubInterface, args []string) sc.Response {\n\tlogger.Info(\"called notifyItemDelivered\")\n\tif len(args) != 3 {\n\t\treturn shim.Error(\"Expecting two arguments 1. delivery event 2. delivery timestamp 3. progressStatus\")\n\t}\n\tevent := ItemDeliveryEvent{}\n\tcollectionName := PRIVATE_COLLECTION_CUSTOMER_LINEITEMS\n\tjson.Unmarshal([]byte(args[0]), &event)\n\ttimeReceived, err := strconv.ParseInt(args[1], 10, 64)\n\tif err != nil {\n\t\treturn shim.Error(\"Invalid number format, expecting a numbeer on argument 2\")\n\t}\n\tlogger.Infof(\"item received timestamp: %d \", timeReceived)\n\tprogressStatus := ItemStatus{}\n\terr = json.Unmarshal([]byte(args[2]), &progressStatus)\n\tif err != nil {\n\t\treturn shim.Error(\"Unable to parse progress status data provided - \" + args[2])\n\t}\n\tpoPrivateDataResponse, err2 := stub.GetPrivateData(collectionName, event.PoId)\n\tif err2 != nil {\n\t\tlogger.Info(\"unable to find private data for: \" + event.PoId + \" in collection: \" + collectionName + \" error: \" + err2.Error())\n\n\t} else {\n\t\tpItem := LineItemPrivateDetails{}\n\t\tjson.Unmarshal(poPrivateDataResponse, &pItem)\n\t\tupdatedCount := 0\n\t\tlogger.Infof(\"Event Details: %s \", event)\n\t\tfor i, eachItem := range pItem.LineItems {\n\t\t\tif len(eachItem.OrderRequests) == 0 {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\t// no splits hence each lineitem has one orderRequest\n\t\t\torderRequest := eachItem.OrderRequests[0]\n\t\t\tif orderRequest.IotTrackingCode != event.TrackingCode {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tpItem.LineItems[i].Status = STATUS_RECEIVED\n\t\t\tpItem.LineItems[i].ProgressStatus = append(pItem.LineItems[i].ProgressStatus, progressStatus)\n\t\t\tpItem.LineItems[i].IotProperties = event.ItemMap[eachItem.ItemKey]\n\t\t\tpItem.LineItems[i].TimeReceived = progressStatus.TimeStamp // timeReceived\n\t\t\tpItem.LineItems[i].ShippingRequestNumber = event.ShippingRequestNumber\n\t\t\teachItem.OrderRequests[0].Status = event.Status\n\t\t\tupdatedCount += 1\n\t\t}\n\t\tif updatedCount > 0 {\n\t\t\titemBytes, err2 := json.Marshal(pItem)\n\t\t\tif err2 != nil {\n\t\t\t\tlogger.Info(\"unable to marshal private data for: \" + event.PoId + \" in collection: \" + collectionName + \" error: \" + err2.Error())\n\t\t\t}\n\t\t\terr2 = stub.PutPrivateData(collectionName, event.PoId, itemBytes)\n\t\t\tif err2 != nil {\n\t\t\t\tlogger.Info(\"unable to commit data for: \" + event.PoId + \" in collection: \" + collectionName + \" error: \" + err2.Error())\n\t\t\t}\n\t\t}\n\t}\n\teventBytes, _ := json.Marshal(event)\n\treturn shim.Success(eventBytes)\n\n}",
"func (fiba *FIBeneficiaryAdvice) FormatLineTwo(options FormatOptions) string {\n\treturn fiba.formatAlphaField(fiba.Advice.LineTwo, 33, options)\n}",
"func (_Token *TokenFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *TokenTokenPurchase, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (event.Subscription, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar eth_soldRule []interface{}\n\tfor _, eth_soldItem := range eth_sold {\n\t\teth_soldRule = append(eth_soldRule, eth_soldItem)\n\t}\n\tvar tokens_boughtRule []interface{}\n\tfor _, tokens_boughtItem := range tokens_bought {\n\t\ttokens_boughtRule = append(tokens_boughtRule, tokens_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"TokenPurchase\", buyerRule, eth_soldRule, tokens_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenTokenPurchase)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"TokenPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) WatchCommitPending(opts *bind.WatchOpts, sink chan<- *BaseAccessWalletCommitPending) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.WatchLogs(opts, \"CommitPending\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseAccessWalletCommitPending)\n\t\t\t\tif err := _BaseAccessWallet.contract.UnpackLog(event, \"CommitPending\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (rft *RemittanceFreeText) FormatLineTwo(options FormatOptions) string {\n\treturn rft.formatAlphaField(rft.LineTwo, 140, options)\n}",
"func (_TokensNetwork *TokensNetworkFilterer) WatchBalanceProofUpdated(opts *bind.WatchOpts, sink chan<- *TokensNetworkBalanceProofUpdated, channel_identifier [][32]byte) (event.Subscription, error) {\n\n\tvar channel_identifierRule []interface{}\n\tfor _, channel_identifierItem := range channel_identifier {\n\t\tchannel_identifierRule = append(channel_identifierRule, channel_identifierItem)\n\t}\n\n\tlogs, sub, err := _TokensNetwork.contract.WatchLogs(opts, \"BalanceProofUpdated\", channel_identifierRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokensNetworkBalanceProofUpdated)\n\t\t\t\tif err := _TokensNetwork.contract.UnpackLog(event, \"BalanceProofUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20Detailed *ERC20DetailedFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20DetailedApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Detailed.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20DetailedApproval)\n\t\t\t\tif err := _ERC20Detailed.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrdersMatched(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrdersMatched, maker []common.Address, taker []common.Address, metadata [][32]byte) (event.Subscription, error) {\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\tvar takerRule []interface{}\n\tfor _, takerItem := range taker {\n\t\ttakerRule = append(takerRule, takerItem)\n\t}\n\n\tvar metadataRule []interface{}\n\tfor _, metadataItem := range metadata {\n\t\tmetadataRule = append(metadataRule, metadataItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrdersMatched\", makerRule, takerRule, metadataRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrdersMatched)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrdersMatched\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DemoERC20 *DemoERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DemoERC20Approval, _owner []common.Address, _spender []common.Address) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _DemoERC20.contract.WatchLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DemoERC20Approval)\n\t\t\t\tif err := _DemoERC20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func PartTwo(input string) (string, error) {\n\tfor _, line := range strings.Split(input, \"\\n\") {\n\n\t\troom := roomData(line)\n\n\t\tif room.decryptRoomName() == \"northpole object storage \" {\n\t\t\treturn strconv.Itoa(room.getSectorID()), nil\n\t\t}\n\n\t}\n\n\treturn \"\", errors.New(\"Could not find room\")\n}",
"func (_ERC721 *ERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721Approval)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721 *ERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721Approval)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721 *ERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721Approval)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func PartTwo(input string) (string, error) {\n\tips := getIPAddresses(input)\n\n\tvalid := 0\n\n\tfor _, ip := range ips {\n\t\tif supportsSLS(ip) {\n\t\t\tvalid++\n\t\t}\n\t}\n\n\treturn strconv.Itoa(valid), nil\n}",
"func (_ERC721Contract *ERC721ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721ContractApproval, _owner []common.Address, _approved []common.Address) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\n\tlogs, sub, err := _ERC721Contract.contract.WatchLogs(opts, \"Approval\", _ownerRule, _approvedRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721ContractApproval)\n\t\t\t\tif err := _ERC721Contract.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Distributor *DistributorFilterer) WatchWithdrawFee(opts *bind.WatchOpts, sink chan<- *DistributorWithdrawFee) (event.Subscription, error) {\n\n\tlogs, sub, err := _Distributor.contract.WatchLogs(opts, \"WithdrawFee\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DistributorWithdrawFee)\n\t\t\t\tif err := _Distributor.contract.UnpackLog(event, \"WithdrawFee\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721Metadata *ERC721MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721MetadataApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Metadata.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721MetadataApproval)\n\t\t\t\tif err := _ERC721Metadata.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (*QueryWithdrawal2) Descriptor() ([]byte, []int) {\n\treturn file_services_temporal_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*OrderCreationBeiming2Req) Descriptor() ([]byte, []int) {\n\treturn file_order_orderCreate_proto_rawDescGZIP(), []int{10}\n}",
"func (m Message) GetOrderQty2(f *field.OrderQty2Field) quickfix.MessageRejectError {\n\treturn m.Body.Get(f)\n}",
"func (_Bep20 *Bep20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Bep20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Bep20Approval)\n\t\t\t\tif err := _Bep20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WELV9 *WELV9Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WELV9Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _WELV9.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WELV9Approval)\n\t\t\t\tif err := _WELV9.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchDkgResultApproved(opts *bind.WatchOpts, sink chan<- *RandomBeaconDkgResultApproved, resultHash [][32]byte, approver []common.Address) (event.Subscription, error) {\n\n\tvar resultHashRule []interface{}\n\tfor _, resultHashItem := range resultHash {\n\t\tresultHashRule = append(resultHashRule, resultHashItem)\n\t}\n\tvar approverRule []interface{}\n\tfor _, approverItem := range approver {\n\t\tapproverRule = append(approverRule, approverItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"DkgResultApproved\", resultHashRule, approverRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconDkgResultApproved)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"DkgResultApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterRegistrationApproved(opts *bind.FilterOpts, hash [][32]byte, upkeepId []*big.Int) (*UpkeepRegistrationRequestsRegistrationApprovedIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsRegistrationApprovedIterator{contract: _UpkeepRegistrationRequests.contract, event: \"RegistrationApproved\", logs: logs, sub: sub}, nil\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IUniswapV2PairApprovalIterator, error) {\r\n\r\n\tvar ownerRule []interface{}\r\n\tfor _, ownerItem := range owner {\r\n\t\townerRule = append(ownerRule, ownerItem)\r\n\t}\r\n\tvar spenderRule []interface{}\r\n\tfor _, spenderItem := range spender {\r\n\t\tspenderRule = append(spenderRule, spenderItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, \"Approval\", ownerRule, spenderRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn &IUniswapV2PairApprovalIterator{contract: _IUniswapV2Pair.contract, event: \"Approval\", logs: logs, sub: sub}, nil\r\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20MockApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockApproval)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *IUniswapV2FactoryPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error) {\r\n\r\n\tvar token0Rule []interface{}\r\n\tfor _, token0Item := range token0 {\r\n\t\ttoken0Rule = append(token0Rule, token0Item)\r\n\t}\r\n\tvar token1Rule []interface{}\r\n\tfor _, token1Item := range token1 {\r\n\t\ttoken1Rule = append(token1Rule, token1Item)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Factory.contract.WatchLogs(opts, \"PairCreated\", token0Rule, token1Rule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\r\n\t\tdefer sub.Unsubscribe()\r\n\t\tfor {\r\n\t\t\tselect {\r\n\t\t\tcase log := <-logs:\r\n\t\t\t\t// New log arrived, parse the event and forward to the user\r\n\t\t\t\tevent := new(IUniswapV2FactoryPairCreated)\r\n\t\t\t\tif err := _IUniswapV2Factory.contract.UnpackLog(event, \"PairCreated\", log); err != nil {\r\n\t\t\t\t\treturn err\r\n\t\t\t\t}\r\n\t\t\t\tevent.Raw = log\r\n\r\n\t\t\t\tselect {\r\n\t\t\t\tcase sink <- event:\r\n\t\t\t\tcase err := <-sub.Err():\r\n\t\t\t\t\treturn err\r\n\t\t\t\tcase <-quit:\r\n\t\t\t\t\treturn nil\r\n\t\t\t\t}\r\n\t\t\tcase err := <-sub.Err():\r\n\t\t\t\treturn err\r\n\t\t\tcase <-quit:\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t}\r\n\t}), nil\r\n}",
"func (_StandardToken *StandardTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StandardTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StandardToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(StandardTokenApproval)\n\t\t\t\tif err := _StandardToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_StandardToken *StandardTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StandardTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StandardToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(StandardTokenApproval)\n\t\t\t\tif err := _StandardToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Contract *ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ContractApproval, _owner []common.Address, _approved []common.Address, _tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _approvedRule []interface{}\n\tfor _, _approvedItem := range _approved {\n\t\t_approvedRule = append(_approvedRule, _approvedItem)\n\t}\n\tvar _tokenIdRule []interface{}\n\tfor _, _tokenIdItem := range _tokenId {\n\t\t_tokenIdRule = append(_tokenIdRule, _tokenIdItem)\n\t}\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"Approval\", _ownerRule, _approvedRule, _tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractApproval)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_ERC20Interface *ERC20InterfaceFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20InterfaceApproval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ERC20Interface.contract.WatchLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20InterfaceApproval)\n\t\t\t\tif err := _ERC20Interface.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalApproval)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721Enumerable *ERC721EnumerableFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC721EnumerableApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ERC721Enumerable.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721EnumerableApproval)\n\t\t\t\tif err := _ERC721Enumerable.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ZKOnacci *ZKOnacciFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZKOnacciApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _ZKOnacci.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ZKOnacciApproval)\n\t\t\t\tif err := _ZKOnacci.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (e *EthHanlder) Approve(ticketId string) error {\n\tticketInfo, err := provider.QueryCrossTxInfoByCID(ticketId)\n\tif err != nil {\n\t\treturn err\n\t}\n\terr = provider.ValidateEnableBoundTransferToTx(ticketInfo.EthTx.FromTxID, nil)\n\tif err != nil {\n\t\tEthLogPrintf(\"validate failed: %v\", err)\n\t\treturn err\n\t}\n\trawTx := e.BuildTx(NotaryAddress, ticketInfo.EthTo, ticketInfo.EthAmount)\n\terr = e.SignAndSendTx(ticketId, rawTx)\n\t//todo:err\n\treturn err\n}",
"func (_DetailedERC20 *DetailedERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DetailedERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedERC20.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedERC20Approval)\n\t\t\t\tif err := _DetailedERC20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedERC20 *DetailedERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DetailedERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _DetailedERC20.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedERC20Approval)\n\t\t\t\tif err := _DetailedERC20.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) ApproveOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, orderbookInclusionDesired bool) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.ApproveOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, orderbookInclusionDesired)\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) WatchVersionConfirm(opts *bind.WatchOpts, sink chan<- *BaseAccessWalletVersionConfirm) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.WatchLogs(opts, \"VersionConfirm\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseAccessWalletVersionConfirm)\n\t\t\t\tif err := _BaseAccessWallet.contract.UnpackLog(event, \"VersionConfirm\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BREMToken *BREMTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BREMTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMTokenApproval)\n\t\t\t\tif err := _BREMToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (a *Action) matchLimitOrder(payload *et.LimitOrder, leftAccountDB, rightAccountDB *account.DB, entrustAddr string) (*types.Receipt, error) {\n\tvar (\n\t\tlogs []*types.ReceiptLog\n\t\tkvs []*types.KeyValue\n\t\tpriceKey string\n\t\tcount int\n\t\ttaker int32\n\t\tmaker int32\n\t\tminFee int64\n\t)\n\n\tcfg := a.api.GetConfig()\n\ttCfg, err := ParseConfig(a.api.GetConfig(), a.height)\n\tif err != nil {\n\t\telog.Error(\"executor/exchangedb matchLimitOrder.ParseConfig\", \"err\", err)\n\t\treturn nil, err\n\t}\n\n\tif cfg.IsDappFork(a.height, et.ExchangeX, et.ForkFix1) && tCfg.IsBankAddr(a.fromaddr) {\n\t\treturn nil, et.ErrAddrIsBank\n\t}\n\n\tif !tCfg.IsFeeFreeAddr(a.fromaddr) {\n\t\ttrade := tCfg.GetTrade(payload.GetLeftAsset(), payload.GetRightAsset())\n\t\ttaker = trade.GetTaker()\n\t\tmaker = trade.GetMaker()\n\t\tminFee = trade.GetMinFee()\n\t}\n\n\tor := &et.Order{\n\t\tOrderID: a.GetIndex(),\n\t\tValue: &et.Order_LimitOrder{LimitOrder: payload},\n\t\tTy: et.TyLimitOrderAction,\n\t\tExecuted: 0,\n\t\tAVGPrice: 0,\n\t\tBalance: payload.GetAmount(),\n\t\tStatus: et.Ordered,\n\t\tEntrustAddr: entrustAddr,\n\t\tAddr: a.fromaddr,\n\t\tUpdateTime: a.blocktime,\n\t\tIndex: a.GetIndex(),\n\t\tRate: maker,\n\t\tMinFee: minFee,\n\t\tHash: hex.EncodeToString(a.txhash),\n\t\tCreateTime: a.blocktime,\n\t}\n\tre := &et.ReceiptExchange{\n\t\tOrder: or,\n\t\tIndex: a.GetIndex(),\n\t}\n\n\t// A single transaction can match up to 100 historical orders, the maximum depth can be matched, the system has to protect itself\n\t// Iteration has listing price\n\tvar done bool\n\tfor {\n\t\tif count >= et.MaxMatchCount {\n\t\t\tbreak\n\t\t}\n\t\tif done {\n\t\t\tbreak\n\t\t}\n\t\t//Obtain price information of existing market listing\n\t\tmarketDepthList, _ := QueryMarketDepth(a.localDB, payload.GetLeftAsset(), payload.GetRightAsset(), a.OpSwap(payload.Op), priceKey, et.Count)\n\t\tif marketDepthList == nil || len(marketDepthList.List) == 0 {\n\t\t\tbreak\n\t\t}\n\t\tfor _, marketDepth := range marketDepthList.List {\n\t\t\telog.Info(\"LimitOrder debug find depth\", \"height\", a.height, \"amount\", marketDepth.Amount, \"price\", marketDepth.Price, \"order-price\", payload.GetPrice(), \"op\", a.OpSwap(payload.Op), \"index\", a.GetIndex())\n\t\t\tif count >= et.MaxMatchCount {\n\t\t\t\tdone = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif payload.Op == et.OpBuy && marketDepth.Price > payload.GetPrice() {\n\t\t\t\tdone = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif payload.Op == et.OpSell && marketDepth.Price < payload.GetPrice() {\n\t\t\t\tdone = true\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\tvar hasOrder = false\n\t\t\tvar orderKey string\n\t\t\tfor {\n\t\t\t\tif count >= et.MaxMatchCount {\n\t\t\t\t\tdone = true\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\torderList, err := findOrderIDListByPrice(a.localDB, payload.GetLeftAsset(), payload.GetRightAsset(), marketDepth.Price, a.OpSwap(payload.Op), et.ListASC, orderKey)\n\t\t\t\tif orderList != nil && !hasOrder {\n\t\t\t\t\thasOrder = true\n\t\t\t\t}\n\t\t\t\tif err != nil {\n\t\t\t\t\tif err == types.ErrNotFound {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\telog.Error(\"findOrderIDListByPrice error\", \"height\", a.height, \"symbol\", payload.GetLeftAsset().Symbol, \"price\", marketDepth.Price, \"op\", a.OpSwap(payload.Op), \"error\", err)\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t\tfor _, matchorder := range orderList.List {\n\t\t\t\t\tif count >= et.MaxMatchCount {\n\t\t\t\t\t\tdone = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// Check the order status\n\t\t\t\t\torder, err := findOrderByOrderID(a.statedb, a.localDB, matchorder.GetOrderID())\n\t\t\t\t\tif err != nil || order.Status != et.Ordered {\n\t\t\t\t\t\tif len(orderList.List) == 1 {\n\t\t\t\t\t\t\thasOrder = true\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tlog, kv, err := a.matchModel(leftAccountDB, rightAccountDB, payload, order, or, re, tCfg.GetFeeAddr(), taker) // payload, or redundant\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\tif err == types.ErrNoBalance {\n\t\t\t\t\t\t\telog.Warn(\"matchModel RevokeOrder\", \"height\", a.height, \"orderID\", order.GetOrderID(), \"payloadID\", or.GetOrderID(), \"error\", err)\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t\tlogs = append(logs, log...)\n\t\t\t\t\tkvs = append(kvs, kv...)\n\t\t\t\t\tif or.Status == et.Completed {\n\t\t\t\t\t\treceiptlog := &types.ReceiptLog{Ty: et.TyLimitOrderLog, Log: types.Encode(re)}\n\t\t\t\t\t\tlogs = append(logs, receiptlog)\n\t\t\t\t\t\treceipts := &types.Receipt{Ty: types.ExecOk, KV: kvs, Logs: logs}\n\t\t\t\t\t\treturn receipts, nil\n\t\t\t\t\t}\n\t\t\t\t\t// match depth count\n\t\t\t\t\tcount = count + 1\n\t\t\t\t}\n\t\t\t\tif orderList.PrimaryKey == \"\" {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\torderKey = orderList.PrimaryKey\n\t\t\t}\n\t\t\tif !hasOrder {\n\t\t\t\tvar matchorder et.Order\n\t\t\t\tmatchorder.UpdateTime = a.blocktime\n\t\t\t\tmatchorder.Status = et.Completed\n\t\t\t\tmatchorder.Balance = 0\n\t\t\t\tmatchorder.Executed = 0\n\t\t\t\tmatchorder.AVGPrice = marketDepth.Price\n\t\t\t\telog.Info(\"make empty match to del depth\", \"height\", a.height, \"price\", marketDepth.Price, \"amount\", marketDepth.Amount)\n\t\t\t\tre.MatchOrders = append(re.MatchOrders, &matchorder)\n\t\t\t}\n\t\t}\n\n\t\tif marketDepthList.PrimaryKey == \"\" {\n\t\t\tbreak\n\t\t}\n\t\tpriceKey = marketDepthList.PrimaryKey\n\t}\n\n\t//Outstanding orders require freezing of the remaining unclosed funds\n\tif payload.Op == et.OpBuy {\n\t\tamount := CalcActualCost(et.OpBuy, or.Balance, payload.Price, cfg.GetCoinPrecision())\n\t\treceipt, err := rightAccountDB.ExecFrozen(a.fromaddr, a.execaddr, amount)\n\t\tif err != nil {\n\t\t\telog.Error(\"LimitOrder.ExecFrozen OpBuy\", \"addr\", a.fromaddr, \"amount\", amount, \"err\", err.Error())\n\t\t\treturn nil, err\n\t\t}\n\t\tlogs = append(logs, receipt.Logs...)\n\t\tkvs = append(kvs, receipt.KV...)\n\t}\n\tif payload.Op == et.OpSell {\n\t\tamount := CalcActualCost(et.OpSell, or.Balance, payload.Price, cfg.GetCoinPrecision())\n\t\treceipt, err := leftAccountDB.ExecFrozen(a.fromaddr, a.execaddr, amount)\n\t\tif err != nil {\n\t\t\telog.Error(\"LimitOrder.ExecFrozen OpSell\", \"addr\", a.fromaddr, \"amount\", amount, \"err\", err.Error())\n\t\t\treturn nil, err\n\t\t}\n\t\tlogs = append(logs, receipt.Logs...)\n\t\tkvs = append(kvs, receipt.KV...)\n\t}\n\tkvs = append(kvs, a.GetKVSet(or)...)\n\tre.Order = or\n\treceiptlog := &types.ReceiptLog{Ty: et.TyLimitOrderLog, Log: types.Encode(re)}\n\tlogs = append(logs, receiptlog)\n\treceipts := &types.Receipt{Ty: types.ExecOk, KV: kvs, Logs: logs}\n\treturn receipts, nil\n}",
"func (_TokensNetwork *TokensNetworkFilterer) FilterBalanceProofUpdated(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkBalanceProofUpdatedIterator, error) {\n\n\tvar channel_identifierRule []interface{}\n\tfor _, channel_identifierItem := range channel_identifier {\n\t\tchannel_identifierRule = append(channel_identifierRule, channel_identifierItem)\n\t}\n\n\tlogs, sub, err := _TokensNetwork.contract.FilterLogs(opts, \"BalanceProofUpdated\", channel_identifierRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokensNetworkBalanceProofUpdatedIterator{contract: _TokensNetwork.contract, event: \"BalanceProofUpdated\", logs: logs, sub: sub}, nil\n}",
"func (_Weth *WethFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WethApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Weth.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WethApproval)\n\t\t\t\tif err := _Weth.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvToken *ElvTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ElvTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _ElvToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenApproval)\n\t\t\t\tif err := _ElvToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (l *Libvirt) DomainEventBlockJob2() (err error) {\n\tvar buf []byte\n\n\n\t_, err = l.requestStream(339, constants.Program, buf, nil, nil)\n\tif err != nil {\n\t\treturn\n\t}\n\n\treturn\n}",
"func (_Erclog *ErclogFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ErclogApproval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _Erclog.contract.WatchLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ErclogApproval)\n\t\t\t\tif err := _Erclog.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_CraftingI *CraftingIFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *CraftingIApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _CraftingI.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CraftingIApproval)\n\t\t\t\tif err := _CraftingI.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (au *audit) DecoratorV2(kit *kit.Kit, bizID uint32) AuditPrepare {\n\treturn initAuditBuilderV2(kit, bizID, au)\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*FixedSupplyTokenApprovalIterator, error) {\n\n\tvar tokenOwnerRule []interface{}\n\tfor _, tokenOwnerItem := range tokenOwner {\n\t\ttokenOwnerRule = append(tokenOwnerRule, tokenOwnerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.FilterLogs(opts, \"Approval\", tokenOwnerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FixedSupplyTokenApprovalIterator{contract: _FixedSupplyToken.contract, event: \"Approval\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BurnableTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BurnableTokenApproval)\n\t\t\t\tif err := _BurnableToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_HbSwap *HbSwapFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *HbSwapTrade) (event.Subscription, error) {\n\n\tlogs, sub, err := _HbSwap.contract.WatchLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HbSwapTrade)\n\t\t\t\tif err := _HbSwap.contract.UnpackLog(event, \"Trade\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BtlCoin *BtlCoinFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BtlCoinApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _BtlCoin.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BtlCoinApproval)\n\t\t\t\tif err := _BtlCoin.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_StakingToken *StakingTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StakingTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _StakingToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(StakingTokenApproval)\n\t\t\t\tif err := _StakingToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BREMICO *BREMICOFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *BREMICOTokenPurchase, purchaser []common.Address, beneficiary []common.Address) (event.Subscription, error) {\n\n\tvar purchaserRule []interface{}\n\tfor _, purchaserItem := range purchaser {\n\t\tpurchaserRule = append(purchaserRule, purchaserItem)\n\t}\n\tvar beneficiaryRule []interface{}\n\tfor _, beneficiaryItem := range beneficiary {\n\t\tbeneficiaryRule = append(beneficiaryRule, beneficiaryItem)\n\t}\n\n\tlogs, sub, err := _BREMICO.contract.WatchLogs(opts, \"TokenPurchase\", purchaserRule, beneficiaryRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMICOTokenPurchase)\n\t\t\t\tif err := _BREMICO.contract.UnpackLog(event, \"TokenPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairSwap, sender []common.Address, to []common.Address) (event.Subscription, error) {\r\n\r\n\tvar senderRule []interface{}\r\n\tfor _, senderItem := range sender {\r\n\t\tsenderRule = append(senderRule, senderItem)\r\n\t}\r\n\r\n\tvar toRule []interface{}\r\n\tfor _, toItem := range to {\r\n\t\ttoRule = append(toRule, toItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, \"Swap\", senderRule, toRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\r\n\t\tdefer sub.Unsubscribe()\r\n\t\tfor {\r\n\t\t\tselect {\r\n\t\t\tcase log := <-logs:\r\n\t\t\t\t// New log arrived, parse the event and forward to the user\r\n\t\t\t\tevent := new(IUniswapV2PairSwap)\r\n\t\t\t\tif err := _IUniswapV2Pair.contract.UnpackLog(event, \"Swap\", log); err != nil {\r\n\t\t\t\t\treturn err\r\n\t\t\t\t}\r\n\t\t\t\tevent.Raw = log\r\n\r\n\t\t\t\tselect {\r\n\t\t\t\tcase sink <- event:\r\n\t\t\t\tcase err := <-sub.Err():\r\n\t\t\t\t\treturn err\r\n\t\t\t\tcase <-quit:\r\n\t\t\t\t\treturn nil\r\n\t\t\t\t}\r\n\t\t\tcase err := <-sub.Err():\r\n\t\t\t\treturn err\r\n\t\t\tcase <-quit:\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t}\r\n\t}), nil\r\n}",
"func (_FCToken *FCTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *FCTokenApproval, from []common.Address, delegatee []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar delegateeRule []interface{}\n\tfor _, delegateeItem := range delegatee {\n\t\tdelegateeRule = append(delegateeRule, delegateeItem)\n\t}\n\n\tlogs, sub, err := _FCToken.contract.WatchLogs(opts, \"Approval\", fromRule, delegateeRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FCTokenApproval)\n\t\t\t\tif err := _FCToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, _owner []common.Address, _spender []common.Address) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenApproval)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, _owner []common.Address, _spender []common.Address) (event.Subscription, error) {\n\n\tvar _ownerRule []interface{}\n\tfor _, _ownerItem := range _owner {\n\t\t_ownerRule = append(_ownerRule, _ownerItem)\n\t}\n\tvar _spenderRule []interface{}\n\tfor _, _spenderItem := range _spender {\n\t\t_spenderRule = append(_spenderRule, _spenderItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"Approval\", _ownerRule, _spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenApproval)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (sdk *SDKSteps) ApproveOOBInvitation(agentID string, args interface{}) {\n\t// sends the signal which automatically handles events\n\tsdk.nextAction[agentID] <- args\n}",
"func (s *Service) CreateOrder2(c context.Context, a *model.ArgCreateOrder2) (r *model.CreateOrderRet, o *model.PayOrder, err error) {\n\tvar (\n\t\tp *model.VipPirce\n\t\ttx *xsql.Tx\n\t\tplat = orderPlat(a.Platform, a.Device, a.MobiApp, a.Build)\n\t\tpargs map[string]interface{}\n\t\tdprice, oprice, couponMoney float64\n\t\tid int64\n\t)\n\tr = new(model.CreateOrderRet)\n\tif a.Bmid > 0 {\n\t\t// give friend can not use coupon.\n\t\ta.CouponToken = \"\"\n\t\ta.PanelType = model.PanelTypeFriend\n\t}\n\tif a.CouponToken != \"\" {\n\t\t//FIXME 代金券限制平台上线后可以删除\n\t\tif a.PanelType == \"ele\" {\n\t\t\tlog.Warn(\"illegal create order arg:%+v\", a)\n\t\t\terr = ecode.CouPonPlatformNotSupportErr\n\t\t\treturn\n\t\t}\n\t\t//FIXME 代金券限制平台上线后可以删除 end\n\t\tif err = s.CancelUseCoupon(c, a.Mid, a.CouponToken, IPStr(a.IP)); err != nil {\n\t\t\tif err == ecode.CouPonStateCanNotCancelErr {\n\t\t\t\terr = nil\n\t\t\t} else {\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}\n\tif p, err = s.VipPriceV2(c, &model.ArgPriceV2{\n\t\tMid: a.Mid,\n\t\tMonth: int16(a.Month),\n\t\tSubType: a.OrderType,\n\t\tToken: a.CouponToken,\n\t\tPlatform: a.Platform,\n\t\tPanelType: a.PanelType,\n\t\tMobiApp: a.MobiApp,\n\t\tDevice: a.Device,\n\t\tBuild: a.Build,\n\t}); err != nil {\n\t\terr = errors.WithStack(err)\n\t\treturn\n\t}\n\tif p == nil || p.Panel == nil {\n\t\terr = ecode.VipOrderPirceErr\n\t\treturn\n\t}\n\t// 商品限制\n\tif err = s.ProductLimit(c, &model.ArgProductLimit{\n\t\tMid: a.Mid,\n\t\tPanelType: a.PanelType,\n\t\tMonths: a.Month,\n\t}); err != nil {\n\t\treturn\n\t}\n\tdprice = p.Panel.DPrice\n\toprice = p.Panel.OPrice\n\tif p.Coupon != nil && p.Coupon.Amount >= 0 {\n\t\tcouponMoney = p.Coupon.Amount\n\t\tdprice = s.floatRound(dprice-couponMoney, _defround)\n\t}\n\tif dprice <= 0 {\n\t\terr = ecode.VipOrderPirceErr\n\t\treturn\n\t}\n\tif tx, err = s.dao.StartTx(c); err != nil {\n\t\terr = errors.WithStack(err)\n\t\treturn\n\t}\n\tdefer func() {\n\t\tif err == nil {\n\t\t\tif err = tx.Commit(); err != nil {\n\t\t\t\ttx.Rollback()\n\t\t\t}\n\t\t} else {\n\t\t\ttx.Rollback()\n\t\t}\n\t}()\n\to = s.convertOrder(a, plat, dprice, couponMoney, a.Bmid)\n\to.PID = p.Panel.Id\n\tif id, err = s.dao.TxAddOrder(tx, o); err != nil {\n\t\terr = errors.WithStack(err)\n\t\treturn\n\t}\n\tif id > 1 {\n\t\tif err = s.dao.TxAddOrderLog(tx, &model.VipPayOrderLog{Mid: a.Mid, OrderNo: o.OrderNo, Status: o.Status}); err != nil {\n\t\t\terr = errors.WithStack(err)\n\t\t\treturn\n\t\t}\n\t}\n\tif pargs, err = s.createPayParams(c, o, p.Panel, a, plat); err != nil {\n\t\terr = errors.WithStack(err)\n\t\treturn\n\t}\n\tif a.CouponToken != \"\" {\n\t\tif err = s.couRPC.UseAllowance(c, &col.ArgUseAllowance{\n\t\t\tMid: o.Mid,\n\t\t\tCouponToken: a.CouponToken,\n\t\t\tRemark: model.CouponUseRemark,\n\t\t\tOrderNO: o.OrderNo,\n\t\t\tPrice: p.Panel.DPrice,\n\t\t\tPlatform: a.Platform,\n\t\t\tPanelType: a.PanelType,\n\t\t\tMobiApp: a.MobiApp,\n\t\t\tDevice: a.Device,\n\t\t\tBuild: a.Build,\n\t\t\tProdLimMonth: int8(a.Month),\n\t\t\tProdLimRenewal: model.MapProdLlimRenewal[a.OrderType],\n\t\t}); err != nil {\n\t\t\terr = errors.WithStack(err)\n\t\t\treturn\n\t\t}\n\t}\n\tr.Dprice = dprice\n\tr.Oprice = oprice\n\tr.PayParam = pargs\n\tr.CouponMoney = couponMoney\n\tr.UserIP = IPStr(a.IP)\n\tr.PID = o.PID\n\treturn\n}",
"func (_PausableToken *PausableTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PausableTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar spenderRule []interface{}\n\tfor _, spenderItem := range spender {\n\t\tspenderRule = append(spenderRule, spenderItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.WatchLogs(opts, \"Approval\", ownerRule, spenderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableTokenApproval)\n\t\t\t\tif err := _PausableToken.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721MetadataApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721MetadataApproval)\n\t\t\t\tif err := _IERC721Metadata.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IERC721Metadata *IERC721MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721MetadataApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\tvar approvedRule []interface{}\n\tfor _, approvedItem := range approved {\n\t\tapprovedRule = append(approvedRule, approvedItem)\n\t}\n\tvar tokenIdRule []interface{}\n\tfor _, tokenIdItem := range tokenId {\n\t\ttokenIdRule = append(tokenIdRule, tokenIdItem)\n\t}\n\n\tlogs, sub, err := _IERC721Metadata.contract.WatchLogs(opts, \"Approval\", ownerRule, approvedRule, tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IERC721MetadataApproval)\n\t\t\t\tif err := _IERC721Metadata.contract.UnpackLog(event, \"Approval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (*TSSRoundTwoMessage) Descriptor() ([]byte, []int) {\n\treturn file_pkg_tecdsa_dkg_gen_pb_message_proto_rawDescGZIP(), []int{2}\n}",
"func (c *Client) VoteDetailsV2(token string) (*www2.VoteDetailsReply, error) {\n\troute := \"/vote/\" + token\n\trespBody, err := c.makeRequest(http.MethodGet, www2.APIRoute, route, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar vdr www2.VoteDetailsReply\n\terr = json.Unmarshal(respBody, &vdr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif c.cfg.Verbose {\n\t\tvdr.EligibleTickets = []string{\n\t\t\t\"removed by piwww for readability\",\n\t\t}\n\t\terr = prettyPrintJSON(vdr)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn &vdr, nil\n}",
"func (_TTFT20 *TTFT20Filterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TTFT20Withdraw, receiver []common.Address) (event.Subscription, error) {\n\n\tvar receiverRule []interface{}\n\tfor _, receiverItem := range receiver {\n\t\treceiverRule = append(receiverRule, receiverItem)\n\t}\n\n\tlogs, sub, err := _TTFT20.contract.WatchLogs(opts, \"Withdraw\", receiverRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TTFT20Withdraw)\n\t\t\t\tif err := _TTFT20.contract.UnpackLog(event, \"Withdraw\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}"
] | [
"0.7386155",
"0.69622517",
"0.5703872",
"0.48798865",
"0.46934074",
"0.46908164",
"0.4613815",
"0.4577789",
"0.45381978",
"0.45275855",
"0.4497309",
"0.4497309",
"0.44767267",
"0.44272628",
"0.44132602",
"0.4410702",
"0.43975052",
"0.43861306",
"0.4383859",
"0.43678725",
"0.43517944",
"0.43447924",
"0.43342865",
"0.43285665",
"0.43194932",
"0.43089318",
"0.43082038",
"0.42981678",
"0.4291517",
"0.42902496",
"0.42756993",
"0.4274536",
"0.42697313",
"0.42625287",
"0.42579365",
"0.4242286",
"0.4237353",
"0.4227101",
"0.42228583",
"0.42013323",
"0.41802132",
"0.4180034",
"0.41778487",
"0.417762",
"0.417762",
"0.417762",
"0.4170418",
"0.41597548",
"0.4156112",
"0.4155376",
"0.4148254",
"0.41482118",
"0.41469604",
"0.41458684",
"0.41436884",
"0.4142354",
"0.41409034",
"0.41391927",
"0.41383696",
"0.41345048",
"0.41203904",
"0.41203904",
"0.41203886",
"0.41203722",
"0.41189238",
"0.41160846",
"0.4114308",
"0.41085342",
"0.41023445",
"0.4100789",
"0.4100789",
"0.40990385",
"0.4092661",
"0.40923846",
"0.40718552",
"0.4070952",
"0.40664765",
"0.4065269",
"0.40612856",
"0.4060934",
"0.40546545",
"0.40532836",
"0.40501133",
"0.40478048",
"0.4035926",
"0.40342963",
"0.4029973",
"0.40281162",
"0.40254465",
"0.40178293",
"0.40164346",
"0.40164346",
"0.40153491",
"0.40151674",
"0.40132305",
"0.40085495",
"0.40085495",
"0.40052456",
"0.40051198",
"0.39969978"
] | 0.81603 | 0 |
Close terminates the iteration process, releasing any pending underlying resources. | func (it *WyvernExchangeOrderCancelledIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iter *Iterator) Close() error { return iter.impl.Close() }",
"func (i *Iterator) Close() {}",
"func (it *EthdkgDisputeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iter) Close() {\n\t// (todo) > handle error\n\tit.i.Close()\n}",
"func (it *PlasmaFrameworkExitQueuedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrPauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (s *Iterator) Close() {\n\ts.i.Close()\n}",
"func (it *LmcExitedAndUnlockedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SmartchefOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorV2V3InterfaceNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcExitedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SimpleMultiSigExecuteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CakevaultHarvestIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2SyncIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PlasmaFrameworkProcessedExitsNumIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2MintIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleMaxFramesUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20MintableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2BurnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContentRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitPiggybackedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20HecoManagerBurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iterator) Close() {\n\tit.iitr.Close()\n}",
"func (it *DogsOfRomeRomulusIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BREMFactoryBREMICOCreatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LvStreamRightsHolderRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *Iterator) Close() error {\n\ti.iterator.Close()\n\treturn nil\n}",
"func (it *XStakingStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IOrakuruCoreFulfilledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WELV9TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseContentSpaceVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20CappedTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MonsterAccessControlContractUpgradeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *ResolvedProductIter) Close() {}",
"func (it *ContentRunFinalizeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WethTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AccessControlCEOTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BindingsReservesReducedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DogsOfRomeScoobyIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokenVestingReleasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksHandledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksErasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *GameJamGameJamFinishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Erc777BurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausablePausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgResultChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KeepRegistryGovernanceUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20InterfaceTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TTFT20UpgradedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgMaliciousResultSlashedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseLibraryVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemableRemovedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (iter *BatchObjectIter) Close() {\n\tclose(iter.oidCh)\n}",
"func (it *TokensNetworkChannelPunishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KNSRegistredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (si *ScanIterator) Close() {\n\t// Cleanup\n}",
"func (it *IERC20TransferIterator) Close() error {\r\n\tit.sub.Unsubscribe()\r\n\treturn nil\r\n}",
"func (it *ChpRegistryUnpausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausablePauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ConsortiumManagementProposeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractProposalExecutionExpiredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DistributorBountyWasPaidIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *XStakingRecoveredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ZKOnacciTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (c *indexIter) Close() {\n\tif c.it != nil {\n\t\tc.it.Close()\n\t\tc.it = nil\n\t}\n}",
"func (it *BindingsRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MevskyTurnedOnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *EthdkgShareDistributionIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BondedECDSAKeepERC20RewardDistributedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WmaticTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DemoERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *FlopperKickIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}"
] | [
"0.748445",
"0.74164766",
"0.7218238",
"0.72079295",
"0.7205759",
"0.71764547",
"0.7174864",
"0.7164306",
"0.71615547",
"0.7156984",
"0.71569717",
"0.71526325",
"0.71400225",
"0.7136559",
"0.713429",
"0.71324766",
"0.71253306",
"0.71225166",
"0.71176726",
"0.7115655",
"0.7113527",
"0.71102023",
"0.7108884",
"0.71053493",
"0.70991653",
"0.7087039",
"0.7085564",
"0.7070379",
"0.7069139",
"0.7065541",
"0.7047929",
"0.70407826",
"0.70366424",
"0.7034578",
"0.7033418",
"0.7031885",
"0.70303726",
"0.7028479",
"0.70266587",
"0.7026",
"0.7018639",
"0.7018483",
"0.7016523",
"0.70161015",
"0.70161015",
"0.70161015",
"0.70161015",
"0.7013891",
"0.701257",
"0.7006986",
"0.70063996",
"0.70004",
"0.6992617",
"0.699229",
"0.69921136",
"0.69916964",
"0.69888055",
"0.69769526",
"0.6973657",
"0.6973031",
"0.6965563",
"0.69640607",
"0.696099",
"0.6959705",
"0.6958738",
"0.69578433",
"0.6956288",
"0.6954506",
"0.6953793",
"0.69527465",
"0.69527465",
"0.6952639",
"0.6951257",
"0.694811",
"0.69474655",
"0.6947231",
"0.69469523",
"0.69450176",
"0.6943693",
"0.6939434",
"0.69390345",
"0.69386023",
"0.6937894",
"0.69350713",
"0.6933674",
"0.6933674",
"0.6926587",
"0.69254464",
"0.6922946",
"0.69200146",
"0.6917639",
"0.6913819",
"0.6912026",
"0.69113463",
"0.69113046",
"0.6910197",
"0.6909424",
"0.6909424",
"0.6909424",
"0.6909424",
"0.6909329"
] | 0.0 | -1 |
FilterOrderCancelled is a free log retrieval operation binding the contract event 0x5152abf959f6564662358c2e52b702259b78bac5ee7842a0f01937e670efcc7d. Solidity: event OrderCancelled(bytes32 indexed hash) | func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderCancelled(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderCancelledIterator, error) {
var hashRule []interface{}
for _, hashItem := range hash {
hashRule = append(hashRule, hashItem)
}
logs, sub, err := _WyvernExchange.contract.FilterLogs(opts, "OrderCancelled", hashRule)
if err != nil {
return nil, err
}
return &WyvernExchangeOrderCancelledIterator{contract: _WyvernExchange.contract, event: "OrderCancelled", logs: logs, sub: sub}, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderCancelled, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderCancelled)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderCancelled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (b Bittrex) CancelOrder(uuid string) {\n\terr := b.Inst.CancelOrder(uuid)\n\tutils.HandleError(err)\n}",
"func (_EtherDelta *EtherDeltaTransactor) CancelOrder(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"cancelOrder\", tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (tsl *TrailingStopLoss) CancelOrder() {\n\tif tsl.Order == (cbp.Order{}) {\n\t\tlog.Println(\"[warn] no order to cancel\")\n\t} else {\n\t\terr := tsl.Client.CancelOrder(tsl.Order.ID)\n\t\tif err != nil {\n\t\t\tlog.Println(\"[warn] could not cancel order\")\n\t\t}\n\t\ttsl.Order = cbp.Order{}\n\t\ttsl.UpdateTime()\n\t}\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (p *Bittrex) CancelOrder(order OrderInfo) *TradeResult {\n\treturn nil\n}",
"func (e *Huobi) CancelOrder(order Order) bool {\n\tresult, err := services.SubmitCancel(order.ID)\n\tif err != nil {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", err)\n\t\treturn false\n\t}\n\tif result.Status != \"ok\" {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", result.ErrMsg)\n\t\treturn false\n\t}\n\te.logger.Log(constant.CANCEL, order.StockType, order.Price, order.Amount-order.DealAmount, order)\n\treturn true\n}",
"func (i *inflight) Cancel() {\n\t// Lock after close to avoid deadlock\n\ti.Lock()\n\tdefer i.Unlock()\n\n\t// Clear the map\n\ti.operations = make(map[uint64]*logFuture)\n\n\t// Clear the list of committed\n\ti.committed = list.New()\n\n\t// Close the commmitCh\n\tclose(i.commitCh)\n\n\t// Reset indexes\n\ti.minCommit = 0\n\ti.maxCommit = 0\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) FilterCanceled(opts *bind.FilterOpts, requestId [][32]byte) (*IOrakuruCoreCanceledIterator, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.FilterLogs(opts, \"Canceled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IOrakuruCoreCanceledIterator{contract: _IOrakuruCore.contract, event: \"Canceled\", logs: logs, sub: sub}, nil\n}",
"func (this *Spot) CancelOrder(order *Order) ([]byte, error) {\n\turlPath := \"/api/spot/v3/cancel_orders/\" + order.OrderId\n\tparam := struct {\n\t\tInstrumentId string `json:\"instrument_id\"`\n\t}{\n\t\torder.Pair.ToSymbol(\"-\", true),\n\t}\n\treqBody, _, _ := this.BuildRequestBody(param)\n\tvar response struct {\n\t\tClientOid string `json:\"client_oid\"`\n\t\tOrderId string `json:\"order_id\"`\n\t\tResult bool `json:\"result\"`\n\t}\n\n\tresp, err := this.DoRequest(\n\t\t\"POST\",\n\t\turlPath,\n\t\treqBody,\n\t\t&response,\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif response.Result {\n\t\treturn resp, nil\n\t}\n\treturn resp, NewError(400, \"cancel fail, unknown error\")\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterCancel(opts *bind.FilterOpts) (*EtherDeltaCancelIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Cancel\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaCancelIterator{contract: _EtherDelta.contract, event: \"Cancel\", logs: logs, sub: sub}, nil\n}",
"func (cl *ocxClient) CancelOrder(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\torderID := args[0]\n\n\t// remove this and _ when cancel order has returns\n\t// var cancelOrderReply *cxrpc.CancelOrderReply\n\tif _, err = cl.RPCClient.CancelOrder(orderID); err != nil {\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Cancelled order successfully\")\n\treturn\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) CancelOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"cancelOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (h *Hbdm) CanceOrder(symbol string, orderId, clientOrderId int) (resp *CancelOrderResponse, err error) {\n\tpayload := make(map[string]interface{}, 3)\n\tpayload[\"symbol\"] = symbol\n\n\tif orderId != 0 {\n\t\tpayload[\"order_id\"] = orderId\n\t}\n\n\tif clientOrderId != 0 {\n\t\tpayload[\"client_order_id\"] = clientOrderId\n\t}\n\n\tr, err := h.client.do(\"POST\", \"contract_cancel\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func (b *Binance) CancelOrder(symbol string, orderID int64) {\n\t_, err := b.client.NewCancelOrderService().Symbol(symbol).\n\t\tOrderID(orderID).Do(context.Background())\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}",
"func (e *orderEndpoint) handleCancelOrder(ev *types.WebsocketEvent, c *ws.Client) {\n\tbytes, err := json.Marshal(ev.Payload)\n\toc := &types.OrderCancel{}\n\n\terr = oc.UnmarshalJSON(bytes)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\taddr, err := oc.GetSenderAddress()\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\tws.RegisterOrderConnection(addr, c)\n\n\torderErr := e.orderService.CancelOrder(oc)\n\tif orderErr != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(orderErr, oc.OrderHash)\n\t\treturn\n\t}\n}",
"func (s *Socket) cancelOrder(p Payload) {\n\tocp := NewOrderCancelPayload()\n\n\tif err := ocp.DecodeOrderCancelPayload(p); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n\n\toc := ocp.OrderCancel\n\n\tif err := s.server.engine.CancelOrder(oc); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n}",
"func (m *Marketplace) CancelOrder(ctx context.Context, req *pb.Order) (*pb.Empty, error) {\n\n\tlogger := ctx_zap.Extract(ctx)\n\tlogger.Sugar().Infof(\"Canceling order %s\", req.GetId())\n\n\t// used by CheckPermissions bellow\n\torder, err := m.getOrderByID(req.GetId())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq.OrderType = pb.OrderType(order.OrderType)\n\treq.ByuerID = order.BuyerID\n\treq.SupplierID = order.SupplierID\n\n\tif err := CheckPermissions(ctx, req); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err := m.commandBus.Handle(command.CancelOrder{ID: req.Id}); err != nil {\n\t\treturn nil, err\n\t}\n\n\tlogger.Sugar().Infof(\"Order %s successfully canceled\", req.GetId())\n\n\treturn &pb.Empty{}, nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterOrder(opts *bind.FilterOpts) (*EtherDeltaOrderIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaOrderIterator{contract: _EtherDelta.contract, event: \"Order\", logs: logs, sub: sub}, nil\n}",
"func (_Contract *ContractFilterer) FilterVoteCanceled(opts *bind.FilterOpts) (*ContractVoteCanceledIterator, error) {\n\n\tlogs, sub, err := _Contract.contract.FilterLogs(opts, \"VoteCanceled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ContractVoteCanceledIterator{contract: _Contract.contract, event: \"VoteCanceled\", logs: logs, sub: sub}, nil\n}",
"func (trading *TradingProvider) Cancel(order schemas.Order) (err error) {\n\tvar b []byte\n\tvar resp OrderCancel\n\n\tpayload := httpclient.Params()\n\tnonce := time.Now().UnixNano()\n\tpayload.Set(\"orderNumber\", order.ID)\n\tpayload.Set(\"command\", commandCancel)\n\tpayload.Set(\"nonce\", strconv.FormatInt(nonce, 10))\n\n\tb, err = trading.httpClient.Post(tradingAPI, httpclient.Params(), payload, true)\n\tif err != nil {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error creating order: %v\", string(b))\n\t}\n\tif err = json.Unmarshal(b, &resp); err != nil {\n\t\treturn\n\t}\n\tif len(resp.Error) > 0 {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error cancelling order: %v\", resp.Error)\n\t\treturn\n\t}\n\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (s *OrderService) CancelOrder(oc *types.OrderCancel) error {\n\tvar err error\n\tvar o *types.Order\n\n\to, err = s.orderDao.GetByHash(oc.OrderHash)\n\tif err != nil || o == nil {\n\t\treturn errors.New(\"No order with corresponding hash\")\n\t}\n\tif o.Status == types.ORDER_FILLED || o.Status == types.ERROR_STATUS || o.Status == types.ORDER_CANCELLED {\n\t\treturn fmt.Errorf(\"Cannot cancel order. Status is %v\", o.Status)\n\t}\n\n\to.Nonce = oc.Nonce\n\to.Signature = oc.Signature\n\to.OrderID = oc.OrderID\n\to.Status = oc.Status\n\to.UserAddress = oc.UserAddress\n\to.ExchangeAddress = oc.ExchangeAddress\n\n\terr = s.broker.PublishCancelOrderMessage(o)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) WatchCanceled(opts *bind.WatchOpts, sink chan<- *IOrakuruCoreCanceled, requestId [][32]byte) (event.Subscription, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.WatchLogs(opts, \"Canceled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IOrakuruCoreCanceled)\n\t\t\t\tif err := _IOrakuruCore.contract.UnpackLog(event, \"Canceled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (s *Socket) sendOrderCanceled(o *Order) error {\n\tfmt.Printf(\"Send order canceled message\")\n\tp := &OrderPayload{Order: o}\n\tm := &Message{MessageType: ORDER_CANCELED, Payload: p}\n\tif err := s.connection.WriteJSON(&m); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (k *Kraken) CancelOrder(order *exchange.OrderCancellation) error {\n\t_, err := k.CancelExistingOrder(order.OrderID)\n\n\treturn err\n}",
"func (b *Bitmex) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\t_, err := b.CancelOrders(ctx, &OrderCancelParams{\n\t\tOrderID: o.OrderID,\n\t})\n\treturn err\n}",
"func TestCancelExistingOrder(t *testing.T) {\n\tt.Parallel()\n\t_, err := k.CancelExistingOrder(context.Background(), \"OAVY7T-MV5VK-KHDF5X\")\n\tif err == nil {\n\t\tt.Error(\"CancelExistingOrder() Expected error\")\n\t}\n}",
"func (decoder *QpackDecoder) Cancelled(id uint64) {\n\tdecoder.cancelled <- id\n}",
"func (h *HUOBIHADAX) CancelExistingOrder(orderID int64) (int64, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrderID int64 `json:\"data,string\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodPost, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn 0, errors.New(result.ErrorMessage)\n\t}\n\treturn result.OrderID, err\n}",
"func (drc *DummyRegistryClient) Cancel() {}",
"func (c *Coinbene) CancelSpotOrder(orderID string) (string, error) {\n\tresp := struct {\n\t\tData string `json:\"data\"`\n\t}{}\n\treq := make(map[string]interface{})\n\treq[\"orderId\"] = orderID\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\tfalse,\n\t\treq,\n\t\t&resp,\n\t\tspotCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Data, nil\n}",
"func (r *mutationResolver) StorefrontAirswapCancelled(ctx context.Context) (string, error) {\n\t// token := auth.ForContext(ctx)\n\t// if token == nil {\n\t// \treturn \"\", ErrAccessDenied\n\t// }\n\n\t// err := r.storefrontService.PurchaseTransactionCancel(token.Sub)\n\t// if err != nil {\n\t// \treturn ResponseError, err\n\t// }\n\n\t// return ResponseOK, nil\n\treturn ResponseNotImplemented, nil\n}",
"func (h *HUOBI) CancelExistingOrder(ctx context.Context, orderID int64) (int64, error) {\n\tresp := struct {\n\t\tOrderID int64 `json:\"data,string\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.OrderID, err\n}",
"func (g *Gemini) CancelExchangeOrder(p pair.CurrencyPair, orderID int64) (int64, error) {\n\treturn 0, errors.New(\"not yet implemented\")\n}",
"func (e Exchange) CancelOrder(exch, orderID string) (bool, error) {\n\torderDetails, err := e.QueryOrder(exch, orderID)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tcancel := &order.Cancel{\n\t\tAccountID: orderDetails.AccountID,\n\t\tOrderID: orderDetails.ID,\n\t\tCurrencyPair: orderDetails.CurrencyPair,\n\t\tSide: orderDetails.OrderSide,\n\t}\n\n\terr = engine.Bot.OrderManager.Cancel(exch, cancel)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn true, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Cancel(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"cancel\", hash)\n}",
"func (t *TradePool) cancelProcess(order *comm.Order) (bool, comm.Order) {\n\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK, \"%s-%s TradePool CancelProcess Order ID(%d), Time(%d)\\n\", t.Symbol, t.MarketType.String(), order.ID, order.Timestamp)\n\tif order == nil {\n\t\tfmt.Printf(\"%s-%s Cancel input order==nil error!\\n\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n\tif order.Symbol != t.Symbol {\n\t\tfmt.Printf(\"Market(%s-%s) cancelProcess illegal order with symbol(%s) to %s Match Engine\", t.Symbol, t.MarketType.String(), order.Symbol, t.Symbol)\n\t\treturn false, comm.Order{}\n\t}\n\n\tif order.AorB == comm.TradeType_BID {\n\t\tt.bidPoolRWMutex.Lock(\"CancelProcess BID\")\n\t\tdefer t.bidPoolRWMutex.Unlock(\"CancelProcess BID\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.bidPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmBidOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess bid order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else if order.AorB == comm.TradeType_ASK {\n\t\tt.askPoolRWMutex.Lock(\"CancelProcess ASK\")\n\t\tdefer t.askPoolRWMutex.Unlock(\"CancelProcess ASK\")\n\n\t\t/// debug:\n\t\tTimeDot1 := time.Now().UnixNano()\n\t\ttarget, suc := t.orderCheck(order)\n\t\tif !suc {\n\t\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t\t\"%s-%s Cancel OrderCheck ID(%d) fail! Order perhaps not exist or had been processed or input order illegal!\\n\",\n\t\t\t\tt.Symbol, t.MarketType.String(), order.ID)\n\t\t\treturn false, comm.Order{}\n\t\t}\n\n\t\t/// Output the order corpse for DS operate use\n\t\torderCorpse := t.askPoolIDSlice[target].Value.(comm.Order)\n\t\tbRet := t.rmAskOrderByTarget(target)\n\n\t\t/// debug:\n\t\tTimeDot2 := time.Now().UnixNano()\n\t\tcomm.DebugPrintf(MODULE_NAME_SORTSLICE, comm.LOG_LEVEL_TRACK,\n\t\t\t`%s-%s TradePool CancelProcess ask order complete==\n\tuser:%s, id:%d, type:%s, time:%d, price:%f, volume:%f\t, ****USE_TIME:%f\n`,\n\t\t\tt.Symbol, t.MarketType.String(),\n\t\t\torderCorpse.Who, orderCorpse.ID, orderCorpse.AorB.String(), orderCorpse.Timestamp, orderCorpse.Price, orderCorpse.Volume, float64(TimeDot2-TimeDot1)/float64(1*time.Second),\n\t\t)\n\t\treturn bRet, orderCorpse\n\t} else {\n\t\tfmt.Printf(\"%s-%s CancelProcess illegal order type!\", t.Symbol, t.MarketType.String())\n\t\treturn false, comm.Order{}\n\t}\n}",
"func (ob *OrderBook) CancelOrder(orderID string) *Order {\n\te, ok := ob.orders[orderID]\n\tif !ok {\n\t\treturn nil\n\t}\n\n\tdelete(ob.orders, orderID)\n\n\tif e.Value.(*Order).Side() == Buy {\n\t\treturn ob.bids.Remove(e)\n\t}\n\n\treturn ob.asks.Remove(e)\n}",
"func (_PaymentContract *PaymentContractFilterer) FilterLogChannelClosed(opts *bind.FilterOpts, _agent []common.Address, _client []common.Address) (*PaymentContractLogChannelClosedIterator, error) {\n\n\tvar _agentRule []interface{}\n\tfor _, _agentItem := range _agent {\n\t\t_agentRule = append(_agentRule, _agentItem)\n\t}\n\tvar _clientRule []interface{}\n\tfor _, _clientItem := range _client {\n\t\t_clientRule = append(_clientRule, _clientItem)\n\t}\n\n\tlogs, sub, err := _PaymentContract.contract.FilterLogs(opts, \"LogChannelClosed\", _agentRule, _clientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PaymentContractLogChannelClosedIterator{contract: _PaymentContract.contract, event: \"LogChannelClosed\", logs: logs, sub: sub}, nil\n}",
"func (order *Order) doCancel(success bool, log string) error {\n\tcancelLog := log\n\n\t// Try to cancel the shipment, if necessary\n\tshipment, err := catalogApi.GetShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && shipment.Status != catalogApi.ShipmentCancelled {\n\t\terr := catalogApi.CancelShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling shipment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nShipment cancelled\"\n\t\t}\n\t} else {\n\t\tcancelLog += \"\\nShipment \" + string(shipment.Status)\n\t}\n\n\t// Try to cancel the payment, if necessary\n\tpayment, err := paymentApi.FetchPayment(order.shop.paymentEndpoint, order.PaymentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && payment.Status != paymentApi.PaymentFailed {\n\t\terr := paymentApi.CancelPayment(order.shop.paymentEndpoint, order.PaymentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling payment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nPayment cancelled\"\n\t\t}\n\t}\n\tcancelLog += \"\\nPayment was \" + payment.Status\n\tif payment.Error != \"\" {\n\t\tcancelLog += \", error: \" + payment.Error\n\t}\n\n\t// Remove the order from the list of open orders & store cancel log\n\treturn order.shop.redis.Transaction(func(redis services.Redis) error {\n\t\torder.Status = cancelLog\n\t\terr := redis.Cmd(\"srem\", open_orders_key, order.id).Err()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn order.SaveIn(redis)\n\t})\n}",
"func TestWsCancelOrder(t *testing.T) {\n\tsetupWsAuth(t)\n\tif !canManipulateRealOrders {\n\t\tt.Skip(\"canManipulateRealOrders false, skipping test\")\n\t}\n\t_, err := h.wsCancelOrder(\"ImNotARealOrderID\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n}",
"func (e *PlaceOrderServiceAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Guest Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n}",
"func (s *OrderService) CancelAllOrder(a common.Address) error {\n\torders, err := s.orderDao.GetOpenOrdersByUserAddress(a)\n\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\tif len(orders) == 0 {\n\t\treturn nil\n\t}\n\n\tfor _, o := range orders {\n\t\terr = s.broker.PublishCancelOrderMessage(o)\n\n\t\tif err != nil {\n\t\t\tlogger.Error(err)\n\t\t\tcontinue\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (c *Client) CancelOrder(symbol Symbol, clientOrderID string, id int) (*Order, error) {\n\tparams := []func(url.Values){\n\t\tparam(\"symbol\", symbol),\n\t}\n\n\tif clientOrderID == \"\" && id == 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID empty\")\n\t}\n\n\tif clientOrderID != \"\" && id != 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID both set\")\n\t}\n\n\tif clientOrderID != \"\" {\n\t\tparams = append(params, param(\"origClientOrderId\", clientOrderID))\n\t}\n\n\tif id != 0 {\n\t\tparams = append(params, param(\"orderId\", id))\n\t}\n\n\tvar order Order\n\terr := c.signedCall(&order, \"DELETE\", \"/api/v3/order\", params...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &order, nil\n}",
"func (by *Bybit) CancelUSDCOrder(ctx context.Context, symbol currency.Pair, orderFilter, orderID, orderLinkID string) (string, error) {\n\tresp := struct {\n\t\tResult struct {\n\t\t\tOrderID string `json:\"orderId\"`\n\t\t} `json:\"result\"`\n\t\tUSDCError\n\t}{}\n\n\treq := make(map[string]interface{})\n\tif symbol.IsEmpty() {\n\t\treturn resp.Result.OrderID, errSymbolMissing\n\t}\n\tsymbolValue, err := by.FormatSymbol(symbol, asset.USDCMarginedFutures)\n\tif err != nil {\n\t\treturn resp.Result.OrderID, err\n\t}\n\treq[\"symbol\"] = symbolValue\n\n\tif orderFilter == \"\" {\n\t\treturn resp.Result.OrderID, errInvalidOrderFilter\n\t}\n\treq[\"orderFilter\"] = orderFilter\n\n\tif orderID == \"\" && orderLinkID == \"\" {\n\t\treturn resp.Result.OrderID, errOrderOrOrderLinkIDMissing\n\t}\n\n\tif orderID != \"\" {\n\t\treq[\"orderId\"] = orderID\n\t}\n\n\tif orderLinkID != \"\" {\n\t\treq[\"orderLinkId\"] = orderLinkID\n\t}\n\treturn resp.Result.OrderID, by.SendUSDCAuthHTTPRequest(ctx, exchange.RestUSDCMargined, http.MethodPost, usdcfuturesCancelOrder, req, &resp, usdcCancelOrderRate)\n}",
"func (book *OrderBook) Cancel(order *Order) error {\n\tif order.MarketName != book.MarketName {\n\t\treturn fmt.Errorf(\"market name for order should be %s got %s\", book.MarketName, order.MarketName)\n\t}\n\n\tif order.Side == constants.Sell {\n\t\treturn book.cancelSellOrder(order.ID)\n\t}\n\treturn book.cancelBuyOrder(order.ID)\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchOrder(opts *bind.WatchOpts, sink chan<- *EtherDeltaOrder) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaOrder)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Order\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (c *TradeClient) CancelConditionOrder(contractCode string, taskId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif taskId <= 0 {\n\t\treturn errors.New(\"taskId must > 0\")\n\t}\n\n\tparam := &coremodel.ApiRequestModel{\n\t\tParam: &struct {\n\t\t\tContractCode string `json:\"contractCode\"`\n\t\t\tTaskId int64 `json:\"taskId\"`\n\t\t}{contractCode, taskId},\n\t}\n\tbody, err := json.Marshal(param)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn c.requester.Post(\"/api/v1/cancel_condition_order\", body, nil, true, coremodel.NewBoolResponse())\n}",
"func (client *Client) CancelOrder(id int64) (bool, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tOrderID int64 `json:\"order_id\"`\n\t}{\n\t\t\"/v1/order/cancel\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tid,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, response.Message)\n\t}\n\n\treturn true, nil\n}",
"func (h *HitBTC) CancelExistingOrder(ctx context.Context, orderID int64) (bool, error) {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tapiOrder+\"/\"+strconv.FormatInt(orderID, 10),\n\t\tvalues,\n\t\ttradingRequests,\n\t\t&result)\n\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn false, errors.New(result.Error)\n\t}\n\n\treturn true, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactorSession) Cancel(hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Cancel(&_UpkeepRegistrationRequests.TransactOpts, hash)\n}",
"func (e *etcdCacheEntry) Cancel() {\n e.Lock()\n defer e.Unlock()\n if e.watching {\n e.finalize <- struct{}{}\n e.watching = false\n }\n}",
"func (l *LocalDeliverJob) Cancel() {\n}",
"func (_m *AsyncBR) Cancel() {\n\t_m.Called()\n}",
"func (h *HUOBI) CancelSwapTriggerOrder(ctx context.Context, contractCode currency.Pair, orderID string) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treq[\"order_id\"] = orderID\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelTriggerOrder, nil, req, &resp)\n}",
"func (e *PlaceOrderServiceAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, auth auth.Identity) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Customer Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n\n}",
"func (c *Coinbene) CancelSwapOrder(orderID string) (string, error) {\n\tparams := make(map[string]interface{})\n\tparams[\"orderId\"] = orderID\n\ttype resp struct {\n\t\tData string `json:\"data\"`\n\t}\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\ttrue,\n\t\tparams,\n\t\t&r,\n\t\tcontractCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn r.Data, nil\n}",
"func (r *Response) Cancel() error {\n\t\n}",
"func (book *OrderBook) cancelBuyOrder(orderID string) error {\n\tfor i, o := range book.BuyOrders {\n\t\tif o.ID == orderID {\n\t\t\t// TODO update status of persisted order to \"cancelled\"\n\t\t\t// need to do this after the orders are persisted\n\t\t\t// persisted orders will eventually load at startup using\n\t\t\t// status == pending\n\t\t\tbook.removeBuyOrder(i)\n\t\t\treturn nil\n\t\t}\n\t}\n\treturn fmt.Errorf(\"orderID: %s not found\", orderID)\n}",
"func Cancel(session *discordgo.Session, message *discordgo.MessageCreate, env *botenv.BotEnv) {\n\t// Parse out the index rune.\n\tf := (strings.Fields(message.Content))\n\tid := f[len(f)-1]\n\ti, errConv := strconv.ParseInt(id, 16, 32)\n\tif errConv != nil {\n\t\treturn\n\t}\n\tr := rune(i)\n\t// Check the rune.\n\tif r < lodb.IDMIN || r > lodb.IDMAX*lodb.TICKPERIOD {\n\t\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"The ID %s is not within an acceptable range.\", string(r)))\n\t\treturn\n\t}\n\t// Delete.\n\terr := env.Repo.Delete(message.Author.ID, r)\n\tif err != nil {\n\t\tenv.Log.Error(\n\t\t\t\"Error deleting user's query.\",\n\t\t\tzap.Error(err))\n\t\tsession.ChannelMessageSend(message.ChannelID, \"The was a problem trying to delete that query.\")\n\t\treturn\n\t}\n\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"Query %X was canceled.\", r))\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsSession) Cancel(hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Cancel(&_UpkeepRegistrationRequests.TransactOpts, hash)\n}",
"func (_Contract *ContractFilterer) WatchVoteCanceled(opts *bind.WatchOpts, sink chan<- *ContractVoteCanceled) (event.Subscription, error) {\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"VoteCanceled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractVoteCanceled)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"VoteCanceled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (c *Client) CancelOrder(serverAssignedOrderID string) error {\n\tfullURL := fmt.Sprintf(\"%s/%s\", ordersURL, serverAssignedOrderID)\n\treq, err := http.NewRequest(\"DELETE\", fullURL, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, _, err = c.doAuthAndReq(req)\n\treturn err\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchCancel(opts *bind.WatchOpts, sink chan<- *EtherDeltaCancel) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Cancel\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaCancel)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Cancel\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (i *DeleteOrUpdateInvTask) Cancel(_ *taskrunner.TaskContext) {}",
"func processCancel(ctx context.Context, cacheService cache.Cache, pipelineId uuid.UUID) {\n\tlogger.Infof(\"%s: was canceled\\n\", pipelineId)\n\n\t// set to cache pipelineId: cache.SubKey_Status: pb.Status_STATUS_CANCELED\n\tsetToCache(ctx, cacheService, pipelineId, cache.Status, pb.Status_STATUS_CANCELED)\n}",
"func CancelOrder(c *soso.Context) {\n\tif c.Token == nil {\n\t\tc.ErrorResponse(403, soso.LevelError, errors.New(\"User not authorized\"))\n\t\treturn\n\t}\n\treq := c.RequestMap\n\n\tpayID, _ := req[\"id\"].(float64)\n\tleadID, _ := req[\"lead_id\"].(float64)\n\n\tif leadID <= 0 || payID <= 0 {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Incorrect parameter\"))\n\t\treturn\n\t}\n\n\t_, role, err := getConversationID(c.Token.UID, uint64(leadID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\t// must have correct direction; IS creator\n\tdirection, err := paymentDirection(role, true)\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\torderData, paymentData, err := retrieveOrder(uint64(payID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\tif !canCancelPay(paymentData.Direction, direction) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"No access to cancel this pay\"))\n\t\treturn\n\t}\n\tif orderData.LeadId != uint64(leadID) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Parameters mangled\"))\n\t\treturn\n\t}\n\n\t// now -- create the order\n\tctx, cancel := rpc.DefaultContext()\n\tdefer cancel()\n\tresp, err := paymentServiceClient.CancelOrder(ctx, &payment.CancelOrderRequest{\n\t\tPayId: uint64(payID),\n\t\tUserId: c.Token.UID,\n\t})\n\n\tif err != nil { // RPC errors\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\tif resp.Error > 0 { // service errors\n\t\tc.Response.ResponseMap = map[string]interface{}{\n\t\t\t\"ErrorCode\": resp.Error,\n\t\t\t\"ErrorMessage\": resp.ErrorMessage,\n\t\t}\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(resp.ErrorMessage))\n\t\treturn\n\t}\n\n\tc.SuccessResponse(map[string]interface{}{\n\t\t\"cancelled\": resp.Cancelled,\n\t})\n\n}",
"func OrderFilter(order Order) Filter {\n\treturn Param(\"order\", order.String())\n}",
"func (c *TradeClient) CancelOrder(contractCode string, orderId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif orderId <= 0 {\n\t\treturn errors.New(\"orderId must > 0\")\n\t}\n\n\tqueries := map[string]string{\n\t\t\"contractCode\": contractCode,\n\t\t\"orderId\": strconv.FormatInt(orderId, 10),\n\t}\n\n\treturn c.requester.Get(\"/api/v1/cancel_order\", queries, true, coremodel.NewBoolResponse())\n}",
"func (st *Step) Cancel(log *logrus.Entry) {\n\tlogStep := log.WithField(\"name\", st.Name).WithField(\"type\", \"migration\")\n\tlogStep.Info(\"Cancelling step\")\n\tlogStep.Info(\"Migration is not cancellable\")\n}",
"func (c *CB) Cancel() error {\n\tif c.matchState(stCanceled) {\n\t\treturn errCanceled\n\t}\n\tif c.matchState(stFired) {\n\t\treturn errFired\n\t}\n\n\tc.setState(stCanceled)\n\treturn nil\n}",
"func (h *HitBTC) CancelAllExistingOrders(ctx context.Context) ([]Order, error) {\n\tvar result []Order\n\tvalues := url.Values{}\n\treturn result, h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tapiOrder,\n\t\tvalues,\n\t\ttradingRequests,\n\t\t&result)\n}",
"func (h *HUOBIHADAX) CancelOrderBatch(orderIDs []int64) (CancelOrderBatch, error) {\n\ttype response struct {\n\t\tStatus string `json:\"status\"`\n\t\tData CancelOrderBatch `json:\"data\"`\n\t}\n\n\t// Used to send param formatting\n\ttype postBody struct {\n\t\tList []int64 `json:\"order-ids\"`\n\t}\n\n\t// Format to JSON\n\tbytesParams, _ := common.JSONEncode(&postBody{List: orderIDs})\n\tpostBodyParams := string(bytesParams)\n\n\tvar result response\n\terr := h.SendAuthenticatedHTTPPostRequest(http.MethodPost, huobihadaxOrderCancelBatch, postBodyParams, &result)\n\n\tif len(result.Data.Failed) != 0 {\n\t\terrJSON, _ := common.JSONEncode(result.Data.Failed)\n\t\treturn CancelOrderBatch{}, errors.New(string(errJSON))\n\t}\n\treturn result.Data, err\n}",
"func (_m *OrderBookService) UnsubscribeRawOrderBookChannel(c *ws.Client, bt string, qt string) {\n\t_m.Called(c, bt, qt)\n}",
"func (*ClientDisconnectEvent) Op() ws.OpCode { return 13 }",
"func (e *Event) Cancel(err ...error) {\r\n\te.canceled = true\r\n\te.cancelFunc()\r\n\r\n\tif len(err) > 0 {\r\n\t\te.Err = fmt.Errorf(\"已取消:%w\", err[0])\r\n\t}\r\n}",
"func (_AccessControl *AccessControlFilterer) FilterCOOTransferred(opts *bind.FilterOpts) (*AccessControlCOOTransferredIterator, error) {\n\n\tlogs, sub, err := _AccessControl.contract.FilterLogs(opts, \"COOTransferred\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AccessControlCOOTransferredIterator{contract: _AccessControl.contract, event: \"COOTransferred\", logs: logs, sub: sub}, nil\n}",
"func (e *CancelTransaction) Cancel(\n\tctx context.Context,\n) error {\n\tif int(e.Hop) >= len(e.Plan.Hops) {\n\t\treturn errors.Trace(errors.Newf(\n\t\t\t\"Hop (%d) is higher than the transaction plan length (%d)\",\n\t\t\te.Hop, len(e.Plan.Hops)))\n\t}\n\n\th := e.Plan.Hops[e.Hop]\n\tmint.Logf(ctx,\n\t\t\"Executing cancellation plan: transaction=%s hop=%d\", e.ID, e.Hop)\n\n\t// Cancel the OpAction (should always be defined)\n\tif h.OpAction != nil {\n\t\top, err := model.LoadCanonicalOperationByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if op == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Operation not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif op.Status == mint.TxStCanceled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\n\t\t} else {\n\t\t\ta := h.OpAction\n\n\t\t\tasset, err := model.LoadCanonicalAssetByName(ctx, *a.OperationAsset)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if asset == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Asset not found: %s\", *a.OperationAsset))\n\t\t\t}\n\n\t\t\t// Restore the source balance if applicable (that is if the op\n\t\t\t// source is not owner of the asset, in which case the asset was\n\t\t\t// issued on the fly).\n\t\t\tvar srcBalance *model.Balance\n\t\t\tif asset.Owner != op.Source {\n\t\t\t\tsrcBalance, err = model.LoadCanonicalBalanceByAssetHolder(ctx,\n\t\t\t\t\top.Asset, op.Source)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t} else if srcBalance == nil {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Source has no balance in %s: %s\", op.Asset, op.Source))\n\t\t\t\t}\n\t\t\t\t(*big.Int)(&srcBalance.Value).Add(\n\t\t\t\t\t(*big.Int)(&srcBalance.Value), (*big.Int)(&op.Amount))\n\n\t\t\t\t// Checks if the srcBalance is positive and not overflown.\n\t\t\t\tb := (*big.Int)(&srcBalance.Value)\n\t\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\t\"Invalid resulting balance for %s: %s\",\n\t\t\t\t\t\tsrcBalance.Holder, b.String()))\n\t\t\t\t}\n\n\t\t\t\terr = srcBalance.Save(ctx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\n\t\t\t\terr = async.Queue(ctx,\n\t\t\t\t\ttask.NewPropagateBalance(ctx, time.Now(), srcBalance.ID()))\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn errors.Trace(err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\top.Status = mint.TxStCanceled\n\t\t\terr = op.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled operation: id=%s[%s] created=%q propagation=%s \"+\n\t\t\t\t\t\"asset=%s source=%s destination=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\top.Owner, op.Token, op.Created, op.Propagation, op.Asset,\n\t\t\t\top.Source, op.Destination, (*big.Int)(&op.Amount).String(),\n\t\t\t\top.Status, *op.Transaction)\n\t\t}\n\t}\n\n\tif h.CrAction != nil {\n\t\tcr, err := model.LoadCanonicalCrossingByTransactionHop(ctx,\n\t\t\te.ID, e.Hop)\n\t\tif err != nil {\n\t\t\treturn errors.Trace(err)\n\t\t} else if cr == nil {\n\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\"Crossing not found for transaction %s and hop %d\",\n\t\t\t\te.ID, h))\n\t\t}\n\n\t\tif cr.Status == mint.TxStSettled {\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Skipped crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t} else {\n\t\t\ta := h.CrAction\n\n\t\t\toffer, err := model.LoadCanonicalOfferByID(ctx, *a.CrossingOffer)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t} else if offer == nil {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Offer not found: %s\", *a.CrossingOffer))\n\t\t\t}\n\n\t\t\t(*big.Int)(&offer.Remainder).Add(\n\t\t\t\t(*big.Int)(&offer.Remainder), (*big.Int)(&cr.Amount))\n\n\t\t\t// Checks if the remainder is positive and not overflown.\n\t\t\tb := (*big.Int)(&offer.Remainder)\n\t\t\tif new(big.Int).Abs(b).Cmp(model.MaxAssetAmount) >= 0 ||\n\t\t\t\tb.Cmp(new(big.Int)) < 0 {\n\t\t\t\treturn errors.Trace(errors.Newf(\n\t\t\t\t\t\"Invalid resulting remainder: %s\", b.String()))\n\t\t\t}\n\t\t\t// Set the offer as active if the remainder is not 0 and the offer\n\t\t\t// is not closed.\n\t\t\tif offer.Status != mint.OfStClosed && b.Cmp(new(big.Int)) > 0 {\n\t\t\t\toffer.Status = mint.OfStActive\n\t\t\t}\n\n\t\t\terr = offer.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\terr = async.Queue(ctx,\n\t\t\t\ttask.NewPropagateOffer(ctx, time.Now(), offer.ID()))\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tcr.Status = mint.TxStCanceled\n\t\t\terr = cr.Save(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Trace(err)\n\t\t\t}\n\n\t\t\tmint.Logf(ctx,\n\t\t\t\t\"Canceled crossing: id=%s[%s] created=%q offer=%s amount=%s \"+\n\t\t\t\t\t\"status=%s transaction=%s\",\n\t\t\t\tcr.Owner, cr.Token, cr.Created, cr.Offer,\n\t\t\t\t(*big.Int)(&cr.Amount).String(), cr.Status, cr.Transaction)\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (t *Transactions) Cancel(transactionKey string) {\n\tdefer t.lock.Unlock()\n\tt.lock.Lock()\n\tif t.closed {\n\t\treturn\n\t}\n\n\tresult, ok := t.pending[transactionKey]\n\tdelete(t.pending, transactionKey)\n\n\tif ok {\n\t\tclose(result)\n\t}\n}",
"func (st *Step) Cancel(log *logrus.Entry) {\n\tlogStep := log.WithField(\"name\", st.Name).WithField(\"type\", \"sql\")\n\tlogStep.Info(\"Cancelling step\")\n\n\tdefer st.datasource.CloseDatabase(log, st.admin, st.noDb) //nolint: errcheck\n\n\tif st.tx != nil {\n\t\tif err := st.tx.Rollback(); err != nil {\n\t\t\tlogStep.Error(err)\n\t\t}\n\t}\n}",
"func (s *Server) CloseOrder(ctx context.Context, in *orderPb.CloseOrderRequest) (*orderPb.Null, error) {\n\tt := time.Now()\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"CloseOrderTotal\"}).Inc()\n\n\t// Check input params.\n\torderId := in.GetOrderId()\n\tif orderId <= 0 {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"CloseOrderFailed\"}).Inc()\n\t\treturn nil, errorm.RequestParamEmpty\n\t}\n\n\tdefer func(t time.Time) {\n\t\tdefer rpcRequestDuration.With(prometheus.Labels{\"method\": \"CloseOrder\"}).Observe(float64(time.Since(t).Microseconds()) / 1000)\n\t}(t)\n\n\t// Close order by order id.\n\terr := s.CloseOrderController(orderId)\n\tif err != nil {\n\t\trpcRequestCount.With(prometheus.Labels{\"method\": \"CloseOrderError\"}).Inc()\n\t\treturn nil, err\n\t}\n\n\trpcRequestCount.With(prometheus.Labels{\"method\": \"CloseOrderSuccess\"}).Inc()\n\treturn &orderPb.Null{}, nil\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) ParseCanceled(log types.Log) (*IOrakuruCoreCanceled, error) {\n\tevent := new(IOrakuruCoreCanceled)\n\tif err := _IOrakuruCore.contract.UnpackLog(event, \"Canceled\", log); err != nil {\n\t\treturn nil, err\n\t}\n\tevent.Raw = log\n\treturn event, nil\n}",
"func (ae *attackEntry) Cancel() error {\n\tif ae.status == models.AttackResponseStatusCompleted || ae.status == models.AttackResponseStatusFailed {\n\t\treturn fmt.Errorf(\"cannot cancel attack %s with status %v\", ae.uuid, ae.status)\n\t}\n\t// Cancel the attack context\n\tae.ctx.cancelFn()\n\n\tlog.WithField(\"UUID\", ae.uuid).Info(\"Canceled\")\n\tae.status = models.AttackResponseStatusCanceled\n\treturn nil\n}",
"func (c *CoinbasePro) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\treturn c.CancelExistingOrder(ctx, o.OrderID)\n}",
"func (h *HUOBI) CancelSwapOrder(ctx context.Context, orderID, clientOrderID string, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\tif orderID != \"\" {\n\t\treq[\"order_id\"] = orderID\n\t}\n\tif clientOrderID != \"\" {\n\t\treq[\"client_order_id\"] = clientOrderID\n\t}\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelOrder, nil, req, &resp)\n}",
"func (fgs *FakeGraphSync) AssertCancelReceived(ctx context.Context, t *testing.T) graphsync.RequestID {\n\tvar cancelReceived graphsync.RequestID\n\tselect {\n\tcase <-ctx.Done():\n\t\tt.Fatal(\"did not receive message sent\")\n\tcase cancelReceived = <-fgs.cancels:\n\t}\n\treturn cancelReceived\n}",
"func (g *LogGroup) Cancel() {\n\tg.group.Cancel()\n}",
"func (c *chain) Cancel() error {\n\tc.log.Info(\"connection cancel\", log.Any(\"options\", c.debugOptions))\n\tif c.debugOptions.WebsocketOptions.Host != \"\" {\n\t\tc.cancel()\n\t\treturn nil\n\t}\n\tcloseTimer := time.NewTimer(time.Second * 1)\n\tdefer closeTimer.Stop()\n\tgo func() {\n\t\t_, err := c.pipe.InWriter.Write([]byte(ExitCmd))\n\t\tif err != nil {\n\t\t\tc.log.Error(\"failed to write debug command\", log.Error(err))\n\t\t}\n\t\tcloseTimer.Reset(0)\n\t}()\n\t<-closeTimer.C\n\treturn nil\n}",
"func (_Contract *ContractFilterer) FilterProposalCanceled(opts *bind.FilterOpts) (*ContractProposalCanceledIterator, error) {\n\n\tlogs, sub, err := _Contract.contract.FilterLogs(opts, \"ProposalCanceled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ContractProposalCanceledIterator{contract: _Contract.contract, event: \"ProposalCanceled\", logs: logs, sub: sub}, nil\n}",
"func (fgs *FakeGraphSync) AssertNoCancelReceived(t *testing.T) {\n\trequire.Empty(t, fgs.cancels, \"should not cancel request\")\n}",
"func (dc *Decompressor) Cancel(err error) {\n\tdc.pwr.CloseWithError(err)\n}",
"func (_PaymentContract *PaymentContractFilterer) WatchLogChannelClosed(opts *bind.WatchOpts, sink chan<- *PaymentContractLogChannelClosed, _agent []common.Address, _client []common.Address) (event.Subscription, error) {\n\n\tvar _agentRule []interface{}\n\tfor _, _agentItem := range _agent {\n\t\t_agentRule = append(_agentRule, _agentItem)\n\t}\n\tvar _clientRule []interface{}\n\tfor _, _clientItem := range _client {\n\t\t_clientRule = append(_clientRule, _clientItem)\n\t}\n\n\tlogs, sub, err := _PaymentContract.contract.WatchLogs(opts, \"LogChannelClosed\", _agentRule, _clientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PaymentContractLogChannelClosed)\n\t\t\t\tif err := _PaymentContract.contract.UnpackLog(event, \"LogChannelClosed\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (t *TrackChaincode) queryDetails(stub shim.ChaincodeStubInterface, args []string) pb.Response {\n\n if len(args) != 1{\n return shim.Error(\"@@@@@@@@@@@@@@@@@@@ Incorrect no. of arguments Expecting 1 argument @@@@@@@@@@@@@@@@@@@\")\n }\n\n var Orderid = args[0]\n Orderid = Orderid[4:len(Orderid)]\n \n ordBytes, _ := stub.GetState(Orderid)\n if ordBytes == nil {\n return shim.Error(\"@@@@@@@@@@@@@@@@@@@ Unable to locate Order @@@@@@@@@@@@@@@@@@@\")\n }\n str := \"[\"+string(ordBytes)+\"]\"\n \nreturn shim.Success([]byte(str))\n\n}"
] | [
"0.7505603",
"0.6056238",
"0.60450536",
"0.5929167",
"0.59244955",
"0.5864772",
"0.5855046",
"0.58090526",
"0.57881004",
"0.57880527",
"0.5784147",
"0.56870264",
"0.5684433",
"0.56417346",
"0.5603465",
"0.5589943",
"0.5544317",
"0.55150867",
"0.542608",
"0.53919065",
"0.53811246",
"0.537299",
"0.53641874",
"0.5349613",
"0.5344534",
"0.53213525",
"0.53177017",
"0.53177017",
"0.53177017",
"0.53177017",
"0.5290744",
"0.5234969",
"0.5191643",
"0.51540446",
"0.51469517",
"0.51461977",
"0.51305777",
"0.5127802",
"0.51063275",
"0.5092236",
"0.5076192",
"0.5073412",
"0.5067071",
"0.50575304",
"0.503742",
"0.4998288",
"0.49478978",
"0.49321005",
"0.48995537",
"0.48981026",
"0.48813117",
"0.48807192",
"0.48569363",
"0.48423922",
"0.4840635",
"0.4824442",
"0.48218763",
"0.48182902",
"0.48147738",
"0.4799442",
"0.47947675",
"0.47921345",
"0.4773719",
"0.47672734",
"0.47634915",
"0.47600764",
"0.47562984",
"0.4755227",
"0.47310114",
"0.47303876",
"0.4716764",
"0.4708469",
"0.46955514",
"0.46782857",
"0.4668042",
"0.46669027",
"0.46603146",
"0.46601427",
"0.46470115",
"0.4644865",
"0.4642778",
"0.46268728",
"0.46237487",
"0.46234065",
"0.46206996",
"0.4618993",
"0.46159863",
"0.46119368",
"0.46093386",
"0.46089995",
"0.46035236",
"0.46033394",
"0.46028748",
"0.46012217",
"0.46004668",
"0.4586254",
"0.45585683",
"0.455586",
"0.45548683",
"0.45327932"
] | 0.790957 | 0 |
WatchOrderCancelled is a free log subscription operation binding the contract event 0x5152abf959f6564662358c2e52b702259b78bac5ee7842a0f01937e670efcc7d. Solidity: event OrderCancelled(bytes32 indexed hash) | func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderCancelled, hash [][32]byte) (event.Subscription, error) {
var hashRule []interface{}
for _, hashItem := range hash {
hashRule = append(hashRule, hashItem)
}
logs, sub, err := _WyvernExchange.contract.WatchLogs(opts, "OrderCancelled", hashRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(WyvernExchangeOrderCancelled)
if err := _WyvernExchange.contract.UnpackLog(event, "OrderCancelled", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderCancelled(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderCancelledIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderCancelledIterator{contract: _WyvernExchange.contract, event: \"OrderCancelled\", logs: logs, sub: sub}, nil\n}",
"func (_EtherDelta *EtherDeltaTransactor) CancelOrder(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.contract.Transact(opts, \"cancelOrder\", tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (b Bittrex) CancelOrder(uuid string) {\n\terr := b.Inst.CancelOrder(uuid)\n\tutils.HandleError(err)\n}",
"func (tsl *TrailingStopLoss) CancelOrder() {\n\tif tsl.Order == (cbp.Order{}) {\n\t\tlog.Println(\"[warn] no order to cancel\")\n\t} else {\n\t\terr := tsl.Client.CancelOrder(tsl.Order.ID)\n\t\tif err != nil {\n\t\t\tlog.Println(\"[warn] could not cancel order\")\n\t\t}\n\t\ttsl.Order = cbp.Order{}\n\t\ttsl.UpdateTime()\n\t}\n}",
"func (_EtherDelta *EtherDeltaSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) WatchCanceled(opts *bind.WatchOpts, sink chan<- *IOrakuruCoreCanceled, requestId [][32]byte) (event.Subscription, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.WatchLogs(opts, \"Canceled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IOrakuruCoreCanceled)\n\t\t\t\tif err := _IOrakuruCore.contract.UnpackLog(event, \"Canceled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (s *Socket) sendOrderCanceled(o *Order) error {\n\tfmt.Printf(\"Send order canceled message\")\n\tp := &OrderPayload{Order: o}\n\tm := &Message{MessageType: ORDER_CANCELED, Payload: p}\n\tif err := s.connection.WriteJSON(&m); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (_EtherDelta *EtherDeltaTransactorSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce, v, r, s)\n}",
"func (e *orderEndpoint) handleCancelOrder(ev *types.WebsocketEvent, c *ws.Client) {\n\tbytes, err := json.Marshal(ev.Payload)\n\toc := &types.OrderCancel{}\n\n\terr = oc.UnmarshalJSON(bytes)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\taddr, err := oc.GetSenderAddress()\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(err, oc.OrderHash)\n\t}\n\n\tws.RegisterOrderConnection(addr, c)\n\n\torderErr := e.orderService.CancelOrder(oc)\n\tif orderErr != nil {\n\t\tlogger.Error(err)\n\t\tc.SendOrderErrorMessage(orderErr, oc.OrderHash)\n\t\treturn\n\t}\n}",
"func (this *Spot) CancelOrder(order *Order) ([]byte, error) {\n\turlPath := \"/api/spot/v3/cancel_orders/\" + order.OrderId\n\tparam := struct {\n\t\tInstrumentId string `json:\"instrument_id\"`\n\t}{\n\t\torder.Pair.ToSymbol(\"-\", true),\n\t}\n\treqBody, _, _ := this.BuildRequestBody(param)\n\tvar response struct {\n\t\tClientOid string `json:\"client_oid\"`\n\t\tOrderId string `json:\"order_id\"`\n\t\tResult bool `json:\"result\"`\n\t}\n\n\tresp, err := this.DoRequest(\n\t\t\"POST\",\n\t\turlPath,\n\t\treqBody,\n\t\t&response,\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif response.Result {\n\t\treturn resp, nil\n\t}\n\treturn resp, NewError(400, \"cancel fail, unknown error\")\n}",
"func (cl *ocxClient) CancelOrder(args []string) (err error) {\n\tif err = cl.UnlockKey(); err != nil {\n\t\tlogging.Fatalf(\"Could not unlock key! Fatal!\")\n\t}\n\torderID := args[0]\n\n\t// remove this and _ when cancel order has returns\n\t// var cancelOrderReply *cxrpc.CancelOrderReply\n\tif _, err = cl.RPCClient.CancelOrder(orderID); err != nil {\n\t\treturn\n\t}\n\n\tlogging.Infof(\"Cancelled order successfully\")\n\treturn\n}",
"func (r *mutationResolver) StorefrontAirswapCancelled(ctx context.Context) (string, error) {\n\t// token := auth.ForContext(ctx)\n\t// if token == nil {\n\t// \treturn \"\", ErrAccessDenied\n\t// }\n\n\t// err := r.storefrontService.PurchaseTransactionCancel(token.Sub)\n\t// if err != nil {\n\t// \treturn ResponseError, err\n\t// }\n\n\t// return ResponseOK, nil\n\treturn ResponseNotImplemented, nil\n}",
"func (e *Huobi) CancelOrder(order Order) bool {\n\tresult, err := services.SubmitCancel(order.ID)\n\tif err != nil {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", err)\n\t\treturn false\n\t}\n\tif result.Status != \"ok\" {\n\t\te.logger.Log(constant.ERROR, \"\", 0.0, 0.0, \"CancelOrder() error, \", result.ErrMsg)\n\t\treturn false\n\t}\n\te.logger.Log(constant.CANCEL, order.StockType, order.Price, order.Amount-order.DealAmount, order)\n\treturn true\n}",
"func (s *Socket) cancelOrder(p Payload) {\n\tocp := NewOrderCancelPayload()\n\n\tif err := ocp.DecodeOrderCancelPayload(p); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n\n\toc := ocp.OrderCancel\n\n\tif err := s.server.engine.CancelOrder(oc); err != nil {\n\t\tlog.Printf(\"Error: %v\", err)\n\t}\n}",
"func (p *Bittrex) CancelOrder(order OrderInfo) *TradeResult {\n\treturn nil\n}",
"func (drc *DummyRegistryClient) Cancel() {}",
"func (_Contract *ContractFilterer) WatchVoteCanceled(opts *bind.WatchOpts, sink chan<- *ContractVoteCanceled) (event.Subscription, error) {\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"VoteCanceled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractVoteCanceled)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"VoteCanceled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (h *Hbdm) CanceOrder(symbol string, orderId, clientOrderId int) (resp *CancelOrderResponse, err error) {\n\tpayload := make(map[string]interface{}, 3)\n\tpayload[\"symbol\"] = symbol\n\n\tif orderId != 0 {\n\t\tpayload[\"order_id\"] = orderId\n\t}\n\n\tif clientOrderId != 0 {\n\t\tpayload[\"client_order_id\"] = clientOrderId\n\t}\n\n\tr, err := h.client.do(\"POST\", \"contract_cancel\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &resp)\n\treturn\n\n}",
"func TestWsCancelOrder(t *testing.T) {\n\tsetupWsAuth(t)\n\tif !canManipulateRealOrders {\n\t\tt.Skip(\"canManipulateRealOrders false, skipping test\")\n\t}\n\t_, err := h.wsCancelOrder(\"ImNotARealOrderID\")\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n}",
"func (decoder *QpackDecoder) Cancelled(id uint64) {\n\tdecoder.cancelled <- id\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (tb *TelemetryBuffer) Cancel() {\n\ttb.cancel <- true\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) CancelOrder(opts *bind.TransactOpts, addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"cancelOrder_\", addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func TestCancelExistingOrder(t *testing.T) {\n\tt.Parallel()\n\t_, err := k.CancelExistingOrder(context.Background(), \"OAVY7T-MV5VK-KHDF5X\")\n\tif err == nil {\n\t\tt.Error(\"CancelExistingOrder() Expected error\")\n\t}\n}",
"func (b *Binance) CancelOrder(symbol string, orderID int64) {\n\t_, err := b.client.NewCancelOrderService().Symbol(symbol).\n\t\tOrderID(orderID).Do(context.Background())\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}",
"func (m *Marketplace) CancelOrder(ctx context.Context, req *pb.Order) (*pb.Empty, error) {\n\n\tlogger := ctx_zap.Extract(ctx)\n\tlogger.Sugar().Infof(\"Canceling order %s\", req.GetId())\n\n\t// used by CheckPermissions bellow\n\torder, err := m.getOrderByID(req.GetId())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq.OrderType = pb.OrderType(order.OrderType)\n\treq.ByuerID = order.BuyerID\n\treq.SupplierID = order.SupplierID\n\n\tif err := CheckPermissions(ctx, req); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif err := m.commandBus.Handle(command.CancelOrder{ID: req.Id}); err != nil {\n\t\treturn nil, err\n\t}\n\n\tlogger.Sugar().Infof(\"Order %s successfully canceled\", req.GetId())\n\n\treturn &pb.Empty{}, nil\n}",
"func (i *inflight) Cancel() {\n\t// Lock after close to avoid deadlock\n\ti.Lock()\n\tdefer i.Unlock()\n\n\t// Clear the map\n\ti.operations = make(map[uint64]*logFuture)\n\n\t// Clear the list of committed\n\ti.committed = list.New()\n\n\t// Close the commmitCh\n\tclose(i.commitCh)\n\n\t// Reset indexes\n\ti.minCommit = 0\n\ti.maxCommit = 0\n}",
"func (*ClientDisconnectEvent) Op() ws.OpCode { return 13 }",
"func (trading *TradingProvider) Cancel(order schemas.Order) (err error) {\n\tvar b []byte\n\tvar resp OrderCancel\n\n\tpayload := httpclient.Params()\n\tnonce := time.Now().UnixNano()\n\tpayload.Set(\"orderNumber\", order.ID)\n\tpayload.Set(\"command\", commandCancel)\n\tpayload.Set(\"nonce\", strconv.FormatInt(nonce, 10))\n\n\tb, err = trading.httpClient.Post(tradingAPI, httpclient.Params(), payload, true)\n\tif err != nil {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error creating order: %v\", string(b))\n\t}\n\tif err = json.Unmarshal(b, &resp); err != nil {\n\t\treturn\n\t}\n\tif len(resp.Error) > 0 {\n\t\terr = fmt.Errorf(\"[POLONIEX] Error cancelling order: %v\", resp.Error)\n\t\treturn\n\t}\n\n\treturn nil\n}",
"func (c *Coinbene) CancelSpotOrder(orderID string) (string, error) {\n\tresp := struct {\n\t\tData string `json:\"data\"`\n\t}{}\n\treq := make(map[string]interface{})\n\treq[\"orderId\"] = orderID\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSpot, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\tfalse,\n\t\treq,\n\t\t&resp,\n\t\tspotCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn resp.Data, nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) CancelOrder(addrs [7]common.Address, uints [9]*big.Int, feeMethod uint8, side uint8, saleKind uint8, howToCall uint8, calldata []byte, replacementPattern []byte, staticExtradata []byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.CancelOrder(&_WyvernExchange.TransactOpts, addrs, uints, feeMethod, side, saleKind, howToCall, calldata, replacementPattern, staticExtradata, v, r, s)\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchCancel(opts *bind.WatchOpts, sink chan<- *EtherDeltaCancel) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Cancel\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaCancel)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Cancel\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactor) Cancel(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.contract.Transact(opts, \"cancel\", hash)\n}",
"func (k *Kraken) CancelOrder(order *exchange.OrderCancellation) error {\n\t_, err := k.CancelExistingOrder(order.OrderID)\n\n\treturn err\n}",
"func (s *OrderService) CancelOrder(oc *types.OrderCancel) error {\n\tvar err error\n\tvar o *types.Order\n\n\to, err = s.orderDao.GetByHash(oc.OrderHash)\n\tif err != nil || o == nil {\n\t\treturn errors.New(\"No order with corresponding hash\")\n\t}\n\tif o.Status == types.ORDER_FILLED || o.Status == types.ERROR_STATUS || o.Status == types.ORDER_CANCELLED {\n\t\treturn fmt.Errorf(\"Cannot cancel order. Status is %v\", o.Status)\n\t}\n\n\to.Nonce = oc.Nonce\n\to.Signature = oc.Signature\n\to.OrderID = oc.OrderID\n\to.Status = oc.Status\n\to.UserAddress = oc.UserAddress\n\to.ExchangeAddress = oc.ExchangeAddress\n\n\terr = s.broker.PublishCancelOrderMessage(o)\n\tif err != nil {\n\t\tlogger.Error(err)\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (g *Gemini) CancelExchangeOrder(p pair.CurrencyPair, orderID int64) (int64, error) {\n\treturn 0, errors.New(\"not yet implemented\")\n}",
"func (e *etcdCacheEntry) Cancel() {\n e.Lock()\n defer e.Unlock()\n if e.watching {\n e.finalize <- struct{}{}\n e.watching = false\n }\n}",
"func (l *LocalDeliverJob) Cancel() {\n}",
"func (e *PlaceOrderServiceAdapter) CancelGuestOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Guest Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n}",
"func (h *HUOBI) CancelSwapTriggerOrder(ctx context.Context, contractCode currency.Pair, orderID string) (CancelTriggerOrdersData, error) {\n\tvar resp CancelTriggerOrdersData\n\treq := make(map[string]interface{})\n\treq[\"contract_code\"] = contractCode\n\treq[\"order_id\"] = orderID\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelTriggerOrder, nil, req, &resp)\n}",
"func (b *Bitmex) CancelOrder(ctx context.Context, o *order.Cancel) error {\n\tif err := o.Validate(o.StandardCancel()); err != nil {\n\t\treturn err\n\t}\n\t_, err := b.CancelOrders(ctx, &OrderCancelParams{\n\t\tOrderID: o.OrderID,\n\t})\n\treturn err\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsSession) Cancel(hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Cancel(&_UpkeepRegistrationRequests.TransactOpts, hash)\n}",
"func (h *HUOBI) CancelExistingOrder(ctx context.Context, orderID int64) (int64, error) {\n\tresp := struct {\n\t\tOrderID int64 `json:\"data,string\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodPost, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.OrderID, err\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsTransactorSession) Cancel(hash [32]byte) (*types.Transaction, error) {\n\treturn _UpkeepRegistrationRequests.Contract.Cancel(&_UpkeepRegistrationRequests.TransactOpts, hash)\n}",
"func (book *OrderBook) cancelBuyOrder(orderID string) error {\n\tfor i, o := range book.BuyOrders {\n\t\tif o.ID == orderID {\n\t\t\t// TODO update status of persisted order to \"cancelled\"\n\t\t\t// need to do this after the orders are persisted\n\t\t\t// persisted orders will eventually load at startup using\n\t\t\t// status == pending\n\t\t\tbook.removeBuyOrder(i)\n\t\t\treturn nil\n\t\t}\n\t}\n\treturn fmt.Errorf(\"orderID: %s not found\", orderID)\n}",
"func (i *DeleteOrUpdateInvTask) Cancel(_ *taskrunner.TaskContext) {}",
"func (h *HUOBIHADAX) CancelExistingOrder(orderID int64) (int64, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrderID int64 `json:\"data,string\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxOrderCancel, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodPost, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn 0, errors.New(result.ErrorMessage)\n\t}\n\treturn result.OrderID, err\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchOrder(opts *bind.WatchOpts, sink chan<- *EtherDeltaOrder) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaOrder)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Order\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (c *Client) CancelOrder(serverAssignedOrderID string) error {\n\tfullURL := fmt.Sprintf(\"%s/%s\", ordersURL, serverAssignedOrderID)\n\treq, err := http.NewRequest(\"DELETE\", fullURL, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, _, err = c.doAuthAndReq(req)\n\treturn err\n}",
"func (self *botStats) Cancelled() {\n\tself.mux.Lock()\n\tdefer self.mux.Unlock()\n\tself.Rows[len(self.Rows)-1].TripsCancelled++\n}",
"func (_m *Subscription) Cancel() {\n\t_m.Called()\n}",
"func (e Exchange) CancelOrder(exch, orderID string) (bool, error) {\n\torderDetails, err := e.QueryOrder(exch, orderID)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tcancel := &order.Cancel{\n\t\tAccountID: orderDetails.AccountID,\n\t\tOrderID: orderDetails.ID,\n\t\tCurrencyPair: orderDetails.CurrencyPair,\n\t\tSide: orderDetails.OrderSide,\n\t}\n\n\terr = engine.Bot.OrderManager.Cancel(exch, cancel)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn true, nil\n}",
"func (c *Coinbene) CancelSwapOrder(orderID string) (string, error) {\n\tparams := make(map[string]interface{})\n\tparams[\"orderId\"] = orderID\n\ttype resp struct {\n\t\tData string `json:\"data\"`\n\t}\n\tvar r resp\n\tpath := coinbeneAPIVersion + coinbeneCancelOrder\n\terr := c.SendAuthHTTPRequest(exchange.RestSwap, http.MethodPost,\n\t\tpath,\n\t\tcoinbeneCancelOrder,\n\t\ttrue,\n\t\tparams,\n\t\t&r,\n\t\tcontractCancelOrder)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn r.Data, nil\n}",
"func (e *PlaceOrderServiceAdapter) CancelCustomerOrder(ctx context.Context, orderInfos placeorder.PlacedOrderInfos, auth auth.Identity) error {\n\torderNumbers := []string{}\n\tfor _, poi := range orderInfos {\n\t\torderNumbers = append(orderNumbers, poi.OrderNumber)\n\t}\n\treturn e.sendMail(e.emailAddress, &Mail{Subject: fmt.Sprintf(\"Customer Order(s) %v canceled\", strings.Join(orderNumbers, \";\"))})\n\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchOperatorContractDisabled(opts *bind.WatchOpts, sink chan<- *KeepRegistryOperatorContractDisabled) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"OperatorContractDisabled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryOperatorContractDisabled)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"OperatorContractDisabled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (order *Order) doCancel(success bool, log string) error {\n\tcancelLog := log\n\n\t// Try to cancel the shipment, if necessary\n\tshipment, err := catalogApi.GetShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && shipment.Status != catalogApi.ShipmentCancelled {\n\t\terr := catalogApi.CancelShipment(order.shop.catalogEndpoint, order.ShipmentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling shipment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nShipment cancelled\"\n\t\t}\n\t} else {\n\t\tcancelLog += \"\\nShipment \" + string(shipment.Status)\n\t}\n\n\t// Try to cancel the payment, if necessary\n\tpayment, err := paymentApi.FetchPayment(order.shop.paymentEndpoint, order.PaymentId)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !success && payment.Status != paymentApi.PaymentFailed {\n\t\terr := paymentApi.CancelPayment(order.shop.paymentEndpoint, order.PaymentId)\n\t\tif err != nil {\n\t\t\tif isConflictError(err) {\n\t\t\t\tcancelLog += fmt.Sprintf(\"\\nError cancelling payment: %v\", err)\n\t\t\t} else {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\tcancelLog += \"\\nPayment cancelled\"\n\t\t}\n\t}\n\tcancelLog += \"\\nPayment was \" + payment.Status\n\tif payment.Error != \"\" {\n\t\tcancelLog += \", error: \" + payment.Error\n\t}\n\n\t// Remove the order from the list of open orders & store cancel log\n\treturn order.shop.redis.Transaction(func(redis services.Redis) error {\n\t\torder.Status = cancelLog\n\t\terr := redis.Cmd(\"srem\", open_orders_key, order.id).Err()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn order.SaveIn(redis)\n\t})\n}",
"func (_Registry *RegistryFilterer) WatchOperatorContractDisabled(opts *bind.WatchOpts, sink chan<- *RegistryOperatorContractDisabled) (event.Subscription, error) {\n\n\tlogs, sub, err := _Registry.contract.WatchLogs(opts, \"OperatorContractDisabled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RegistryOperatorContractDisabled)\n\t\t\t\tif err := _Registry.contract.UnpackLog(event, \"OperatorContractDisabled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (c *chain) Cancel() error {\n\tc.log.Info(\"connection cancel\", log.Any(\"options\", c.debugOptions))\n\tif c.debugOptions.WebsocketOptions.Host != \"\" {\n\t\tc.cancel()\n\t\treturn nil\n\t}\n\tcloseTimer := time.NewTimer(time.Second * 1)\n\tdefer closeTimer.Stop()\n\tgo func() {\n\t\t_, err := c.pipe.InWriter.Write([]byte(ExitCmd))\n\t\tif err != nil {\n\t\t\tc.log.Error(\"failed to write debug command\", log.Error(err))\n\t\t}\n\t\tcloseTimer.Reset(0)\n\t}()\n\t<-closeTimer.C\n\treturn nil\n}",
"func (_m *OrderBookService) UnsubscribeRawOrderBookChannel(c *ws.Client, bt string, qt string) {\n\t_m.Called(c, bt, qt)\n}",
"func (by *Bybit) CancelUSDCOrder(ctx context.Context, symbol currency.Pair, orderFilter, orderID, orderLinkID string) (string, error) {\n\tresp := struct {\n\t\tResult struct {\n\t\t\tOrderID string `json:\"orderId\"`\n\t\t} `json:\"result\"`\n\t\tUSDCError\n\t}{}\n\n\treq := make(map[string]interface{})\n\tif symbol.IsEmpty() {\n\t\treturn resp.Result.OrderID, errSymbolMissing\n\t}\n\tsymbolValue, err := by.FormatSymbol(symbol, asset.USDCMarginedFutures)\n\tif err != nil {\n\t\treturn resp.Result.OrderID, err\n\t}\n\treq[\"symbol\"] = symbolValue\n\n\tif orderFilter == \"\" {\n\t\treturn resp.Result.OrderID, errInvalidOrderFilter\n\t}\n\treq[\"orderFilter\"] = orderFilter\n\n\tif orderID == \"\" && orderLinkID == \"\" {\n\t\treturn resp.Result.OrderID, errOrderOrOrderLinkIDMissing\n\t}\n\n\tif orderID != \"\" {\n\t\treq[\"orderId\"] = orderID\n\t}\n\n\tif orderLinkID != \"\" {\n\t\treq[\"orderLinkId\"] = orderLinkID\n\t}\n\treturn resp.Result.OrderID, by.SendUSDCAuthHTTPRequest(ctx, exchange.RestUSDCMargined, http.MethodPost, usdcfuturesCancelOrder, req, &resp, usdcCancelOrderRate)\n}",
"func (c *QueueController) Abort(run runner.RunID) (runner.RunStatus, error) {\n\tresultCh := make(chan result)\n\tc.reqCh <- abortReq{run, resultCh}\n\tresult := <-resultCh\n\treturn result.st, result.err\n}",
"func (*SubscriptionCanceled) Descriptor() ([]byte, []int) {\n\treturn file_events_proto_rawDescGZIP(), []int{3}\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) FilterCanceled(opts *bind.FilterOpts, requestId [][32]byte) (*IOrakuruCoreCanceledIterator, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.FilterLogs(opts, \"Canceled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IOrakuruCoreCanceledIterator{contract: _IOrakuruCore.contract, event: \"Canceled\", logs: logs, sub: sub}, nil\n}",
"func (o *Okcoin) WsCancelTradeOrder(arg *CancelTradeOrderRequest) (*TradeOrderResponse, error) {\n\tif arg == nil {\n\t\treturn nil, errNilArgument\n\t}\n\tif arg.InstrumentID == \"\" {\n\t\treturn nil, errMissingInstrumentID\n\t}\n\tif arg.OrderID == \"\" && arg.ClientOrderID == \"\" {\n\t\treturn nil, errOrderIDOrClientOrderIDRequired\n\t}\n\tvar resp []TradeOrderResponse\n\terr := o.SendWebsocketRequest(\"cancel-order\", &arg, &resp, true)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(resp) == 0 {\n\t\treturn nil, errNoValidResponseFromServer\n\t}\n\tif resp[0].SCode != \"0\" {\n\t\treturn nil, fmt.Errorf(\"code: %s msg: %s\", resp[0].SCode, resp[0].SMsg)\n\t}\n\treturn &resp[0], nil\n}",
"func (c *Client) CancelOrder(symbol Symbol, clientOrderID string, id int) (*Order, error) {\n\tparams := []func(url.Values){\n\t\tparam(\"symbol\", symbol),\n\t}\n\n\tif clientOrderID == \"\" && id == 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID empty\")\n\t}\n\n\tif clientOrderID != \"\" && id != 0 {\n\t\treturn nil, errors.New(\"clientOrderID and ID both set\")\n\t}\n\n\tif clientOrderID != \"\" {\n\t\tparams = append(params, param(\"origClientOrderId\", clientOrderID))\n\t}\n\n\tif id != 0 {\n\t\tparams = append(params, param(\"orderId\", id))\n\t}\n\n\tvar order Order\n\terr := c.signedCall(&order, \"DELETE\", \"/api/v3/order\", params...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &order, nil\n}",
"func (book *OrderBook) Cancel(order *Order) error {\n\tif order.MarketName != book.MarketName {\n\t\treturn fmt.Errorf(\"market name for order should be %s got %s\", book.MarketName, order.MarketName)\n\t}\n\n\tif order.Side == constants.Sell {\n\t\treturn book.cancelSellOrder(order.ID)\n\t}\n\treturn book.cancelBuyOrder(order.ID)\n}",
"func (_WyvernExchange *WyvernExchangeSession) CancelledOrFinalized(arg0 [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.CancelledOrFinalized(&_WyvernExchange.CallOpts, arg0)\n}",
"func (c *CB) Cancel() error {\n\tif c.matchState(stCanceled) {\n\t\treturn errCanceled\n\t}\n\tif c.matchState(stFired) {\n\t\treturn errFired\n\t}\n\n\tc.setState(stCanceled)\n\treturn nil\n}",
"func (fgs *FakeGraphSync) AssertNoCancelReceived(t *testing.T) {\n\trequire.Empty(t, fgs.cancels, \"should not cancel request\")\n}",
"func (_Contract *ContractFilterer) WatchProposalCanceled(opts *bind.WatchOpts, sink chan<- *ContractProposalCanceled) (event.Subscription, error) {\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"ProposalCanceled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractProposalCanceled)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"ProposalCanceled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (e *Event) Cancel(err ...error) {\r\n\te.canceled = true\r\n\te.cancelFunc()\r\n\r\n\tif len(err) > 0 {\r\n\t\te.Err = fmt.Errorf(\"已取消:%w\", err[0])\r\n\t}\r\n}",
"func (_m *AsyncBR) Cancel() {\n\t_m.Called()\n}",
"func (_e *MockCompletableFuture_Expecter[T]) IsCancelled() *MockCompletableFuture_IsCancelled_Call[T] {\n\treturn &MockCompletableFuture_IsCancelled_Call[T]{Call: _e.mock.On(\"IsCancelled\")}\n}",
"func (fgs *FakeGraphSync) AssertCancelReceived(ctx context.Context, t *testing.T) graphsync.RequestID {\n\tvar cancelReceived graphsync.RequestID\n\tselect {\n\tcase <-ctx.Done():\n\t\tt.Fatal(\"did not receive message sent\")\n\tcase cancelReceived = <-fgs.cancels:\n\t}\n\treturn cancelReceived\n}",
"func (_AccessControl *AccessControlFilterer) WatchCOOTransferred(opts *bind.WatchOpts, sink chan<- *AccessControlCOOTransferred) (event.Subscription, error) {\n\n\tlogs, sub, err := _AccessControl.contract.WatchLogs(opts, \"COOTransferred\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AccessControlCOOTransferred)\n\t\t\t\tif err := _AccessControl.contract.UnpackLog(event, \"COOTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (client *Client) CancelOrder(id int64) (bool, error) {\n\t// Create request struct\n\trequest := struct {\n\t\tURL string `json:\"request\"`\n\t\tNonce string `json:\"nonce\"`\n\t\tOrderID int64 `json:\"order_id\"`\n\t}{\n\t\t\"/v1/order/cancel\",\n\t\tstrconv.FormatInt(time.Now().UnixNano(), 10),\n\t\tid,\n\t}\n\n\t// Send POST request\n\tdata, err := client.post(client.baseURL+request.URL, request)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\n\t// Unmarshal response\n\tvar response struct {\n\t\tMessage string `json:\"message\"`\n\t}\n\terr = json.Unmarshal(data, &response)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, err.Error())\n\t}\n\tif response.Message != \"\" {\n\t\treturn false, fmt.Errorf(\"%s CancelOrder error: %s\", client, response.Message)\n\t}\n\n\treturn true, nil\n}",
"func sampleCancelEvent(id *pb.UUID) *InEvent {\n\treturn &InEvent{\n\t\tEngineEventIn: &pb.EngineEventIn{\n\t\t\tEvent: &pb.EngineEventIn_CancelOrder{\n\t\t\t\tCancelOrder: &pb.CancelOrderRequest{\n\t\t\t\t\tId: id,\n\t\t\t\t\tReason: \"want\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) CancelledOrFinalized(arg0 [32]byte) (bool, error) {\n\treturn _WyvernExchange.Contract.CancelledOrFinalized(&_WyvernExchange.CallOpts, arg0)\n}",
"func (*Xqos8QueueResourceOverAlarmCancelTrap) Descriptor() ([]byte, []int) {\n\treturn file_huaweiV8R12_qos_notification_proto_rawDescGZIP(), []int{13}\n}",
"func (c *canceler) Cancel(ctx context.Context, id string) error {\n\tc.Lock()\n\tdefer c.Unlock()\n\tc.cancelled[id] = time.Now().Add(5 * time.Minute)\n\tif sub, ok := c.subsciber[id]; ok {\n\t\tclose(sub)\n\t}\n\tc.clear()\n\treturn nil\n}",
"func (_Contract *ContractFilterer) FilterVoteCanceled(opts *bind.FilterOpts) (*ContractVoteCanceledIterator, error) {\n\n\tlogs, sub, err := _Contract.contract.FilterLogs(opts, \"VoteCanceled\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ContractVoteCanceledIterator{contract: _Contract.contract, event: \"VoteCanceled\", logs: logs, sub: sub}, nil\n}",
"func (h *HitBTC) CancelExistingOrder(ctx context.Context, orderID int64) (bool, error) {\n\tresult := GenericResponse{}\n\tvalues := url.Values{}\n\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodDelete,\n\t\tapiOrder+\"/\"+strconv.FormatInt(orderID, 10),\n\t\tvalues,\n\t\ttradingRequests,\n\t\t&result)\n\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif result.Success != 1 {\n\t\treturn false, errors.New(result.Error)\n\t}\n\n\treturn true, nil\n}",
"func (ob *OrderBook) CancelOrder(orderID string) *Order {\n\te, ok := ob.orders[orderID]\n\tif !ok {\n\t\treturn nil\n\t}\n\n\tdelete(ob.orders, orderID)\n\n\tif e.Value.(*Order).Side() == Buy {\n\t\treturn ob.bids.Remove(e)\n\t}\n\n\treturn ob.asks.Remove(e)\n}",
"func CancelOrder(c *soso.Context) {\n\tif c.Token == nil {\n\t\tc.ErrorResponse(403, soso.LevelError, errors.New(\"User not authorized\"))\n\t\treturn\n\t}\n\treq := c.RequestMap\n\n\tpayID, _ := req[\"id\"].(float64)\n\tleadID, _ := req[\"lead_id\"].(float64)\n\n\tif leadID <= 0 || payID <= 0 {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Incorrect parameter\"))\n\t\treturn\n\t}\n\n\t_, role, err := getConversationID(c.Token.UID, uint64(leadID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\t// must have correct direction; IS creator\n\tdirection, err := paymentDirection(role, true)\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\torderData, paymentData, err := retrieveOrder(uint64(payID))\n\tif err != nil {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\n\tif !canCancelPay(paymentData.Direction, direction) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"No access to cancel this pay\"))\n\t\treturn\n\t}\n\tif orderData.LeadId != uint64(leadID) {\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(\"Parameters mangled\"))\n\t\treturn\n\t}\n\n\t// now -- create the order\n\tctx, cancel := rpc.DefaultContext()\n\tdefer cancel()\n\tresp, err := paymentServiceClient.CancelOrder(ctx, &payment.CancelOrderRequest{\n\t\tPayId: uint64(payID),\n\t\tUserId: c.Token.UID,\n\t})\n\n\tif err != nil { // RPC errors\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, err)\n\t\treturn\n\t}\n\tif resp.Error > 0 { // service errors\n\t\tc.Response.ResponseMap = map[string]interface{}{\n\t\t\t\"ErrorCode\": resp.Error,\n\t\t\t\"ErrorMessage\": resp.ErrorMessage,\n\t\t}\n\t\tc.ErrorResponse(http.StatusInternalServerError, soso.LevelError, errors.New(resp.ErrorMessage))\n\t\treturn\n\t}\n\n\tc.SuccessResponse(map[string]interface{}{\n\t\t\"cancelled\": resp.Cancelled,\n\t})\n\n}",
"func (c *TradeClient) CancelConditionOrder(contractCode string, taskId int64) error {\n\tif len(contractCode) == 0 {\n\t\treturn errors.New(\"contractCode must not empty\")\n\t}\n\tif taskId <= 0 {\n\t\treturn errors.New(\"taskId must > 0\")\n\t}\n\n\tparam := &coremodel.ApiRequestModel{\n\t\tParam: &struct {\n\t\t\tContractCode string `json:\"contractCode\"`\n\t\t\tTaskId int64 `json:\"taskId\"`\n\t\t}{contractCode, taskId},\n\t}\n\tbody, err := json.Marshal(param)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn c.requester.Post(\"/api/v1/cancel_condition_order\", body, nil, true, coremodel.NewBoolResponse())\n}",
"func (it *WyvernExchangeOrderCancelledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (e ObservabilityCFValidationError) Reason() string { return e.reason }",
"func (r *Response) Cancel() error {\n\t\n}",
"func (s *ServerStatistics) cancel() {\n\ts.blacklisted.Store(false)\n\ts.backoffUntil.Store(time.Time{})\n\tselect {\n\tcase s.interrupt <- struct{}{}:\n\tdefault:\n\t}\n}",
"func (w *FuncWaiter) Cancel() error {\n\tw.cancel <- struct{}{}\n\treturn nil\n}",
"func (h *HUOBI) CancelSwapOrder(ctx context.Context, orderID, clientOrderID string, contractCode currency.Pair) (CancelOrdersData, error) {\n\tvar resp CancelOrdersData\n\treq := make(map[string]interface{})\n\tif orderID != \"\" {\n\t\treq[\"order_id\"] = orderID\n\t}\n\tif clientOrderID != \"\" {\n\t\treq[\"client_order_id\"] = clientOrderID\n\t}\n\treq[\"contract_code\"] = contractCode\n\treturn resp, h.FuturesAuthenticatedHTTPRequest(ctx, exchange.RestFutures, http.MethodPost, huobiSwapCancelOrder, nil, req, &resp)\n}",
"func (*Xqos4QueueResourceOverAlarmCancelTrap) Descriptor() ([]byte, []int) {\n\treturn file_huaweiV8R12_qos_notification_proto_rawDescGZIP(), []int{9}\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterCancel(opts *bind.FilterOpts) (*EtherDeltaCancelIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Cancel\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaCancelIterator{contract: _EtherDelta.contract, event: \"Cancel\", logs: logs, sub: sub}, nil\n}",
"func (_BaseAccessWallet *BaseAccessWalletFilterer) WatchVersionConfirm(opts *bind.WatchOpts, sink chan<- *BaseAccessWalletVersionConfirm) (event.Subscription, error) {\n\n\tlogs, sub, err := _BaseAccessWallet.contract.WatchLogs(opts, \"VersionConfirm\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BaseAccessWalletVersionConfirm)\n\t\t\t\tif err := _BaseAccessWallet.contract.UnpackLog(event, \"VersionConfirm\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func Cancel(session *discordgo.Session, message *discordgo.MessageCreate, env *botenv.BotEnv) {\n\t// Parse out the index rune.\n\tf := (strings.Fields(message.Content))\n\tid := f[len(f)-1]\n\ti, errConv := strconv.ParseInt(id, 16, 32)\n\tif errConv != nil {\n\t\treturn\n\t}\n\tr := rune(i)\n\t// Check the rune.\n\tif r < lodb.IDMIN || r > lodb.IDMAX*lodb.TICKPERIOD {\n\t\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"The ID %s is not within an acceptable range.\", string(r)))\n\t\treturn\n\t}\n\t// Delete.\n\terr := env.Repo.Delete(message.Author.ID, r)\n\tif err != nil {\n\t\tenv.Log.Error(\n\t\t\t\"Error deleting user's query.\",\n\t\t\tzap.Error(err))\n\t\tsession.ChannelMessageSend(message.ChannelID, \"The was a problem trying to delete that query.\")\n\t\treturn\n\t}\n\tsession.ChannelMessageSend(message.ChannelID, fmt.Sprintf(\"Query %X was canceled.\", r))\n}",
"func (m *AsyncResult) Cancel() {\n\tatomic.StoreUint32(&m.canceled, 1)\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) WatchTokenRemoved(opts *bind.WatchOpts, sink chan<- *McapscontrollerTokenRemoved) (event.Subscription, error) {\n\n\tlogs, sub, err := _Mcapscontroller.contract.WatchLogs(opts, \"TokenRemoved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(McapscontrollerTokenRemoved)\n\t\t\t\tif err := _Mcapscontroller.contract.UnpackLog(event, \"TokenRemoved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}"
] | [
"0.68948716",
"0.5862086",
"0.5801963",
"0.5784119",
"0.5769192",
"0.5734636",
"0.5709325",
"0.56948274",
"0.56717783",
"0.56600696",
"0.5641586",
"0.5601523",
"0.5574149",
"0.55676866",
"0.55498856",
"0.55310094",
"0.552295",
"0.55108744",
"0.5498861",
"0.5483311",
"0.5436416",
"0.5436416",
"0.5436416",
"0.5436416",
"0.5428564",
"0.53818965",
"0.53773284",
"0.536191",
"0.533632",
"0.53305507",
"0.529771",
"0.5264649",
"0.5260132",
"0.5242666",
"0.52182364",
"0.52176994",
"0.52162176",
"0.5177228",
"0.505286",
"0.5040708",
"0.5031138",
"0.5021296",
"0.5015292",
"0.49769938",
"0.4970047",
"0.49688882",
"0.49558115",
"0.4945171",
"0.49373397",
"0.49343875",
"0.48926705",
"0.48891842",
"0.4877854",
"0.4875586",
"0.48654824",
"0.48633376",
"0.4852572",
"0.4849072",
"0.48457074",
"0.48355392",
"0.48286328",
"0.48180968",
"0.48161942",
"0.48012456",
"0.4788925",
"0.47868904",
"0.47786132",
"0.47675902",
"0.47654378",
"0.47653666",
"0.47622183",
"0.4760201",
"0.47571784",
"0.47552866",
"0.47532195",
"0.4750435",
"0.47472662",
"0.47394353",
"0.47384492",
"0.47284764",
"0.47182846",
"0.47121704",
"0.46947697",
"0.46933374",
"0.46916035",
"0.46912283",
"0.46872595",
"0.46848002",
"0.46811602",
"0.46799862",
"0.46730953",
"0.46619952",
"0.4651353",
"0.46465918",
"0.46281844",
"0.46162567",
"0.46143928",
"0.46093082",
"0.45905966",
"0.45878646"
] | 0.77236503 | 0 |
Close terminates the iteration process, releasing any pending underlying resources. | func (it *WyvernExchangeOrdersMatchedIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iter *Iterator) Close() error { return iter.impl.Close() }",
"func (i *Iterator) Close() {}",
"func (it *EthdkgDisputeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iter) Close() {\n\t// (todo) > handle error\n\tit.i.Close()\n}",
"func (it *PlasmaFrameworkExitQueuedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrPauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (s *Iterator) Close() {\n\ts.i.Close()\n}",
"func (it *LmcExitedAndUnlockedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SmartchefOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorV2V3InterfaceNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcExitedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SimpleMultiSigExecuteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CakevaultHarvestIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2SyncIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PlasmaFrameworkProcessedExitsNumIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2MintIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleMaxFramesUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20MintableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2BurnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContentRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitPiggybackedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20HecoManagerBurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iterator) Close() {\n\tit.iitr.Close()\n}",
"func (it *DogsOfRomeRomulusIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BREMFactoryBREMICOCreatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LvStreamRightsHolderRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *Iterator) Close() error {\n\ti.iterator.Close()\n\treturn nil\n}",
"func (it *XStakingStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IOrakuruCoreFulfilledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WELV9TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseContentSpaceVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20CappedTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MonsterAccessControlContractUpgradeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *ResolvedProductIter) Close() {}",
"func (it *ContentRunFinalizeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WethTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BindingsReservesReducedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AccessControlCEOTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DogsOfRomeScoobyIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokenVestingReleasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksHandledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksErasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *GameJamGameJamFinishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Erc777BurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausablePausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgResultChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KeepRegistryGovernanceUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20InterfaceTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TTFT20UpgradedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgMaliciousResultSlashedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseLibraryVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (iter *BatchObjectIter) Close() {\n\tclose(iter.oidCh)\n}",
"func (it *RedeemableRedeemableRemovedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KNSRegistredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokensNetworkChannelPunishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (si *ScanIterator) Close() {\n\t// Cleanup\n}",
"func (it *IERC20TransferIterator) Close() error {\r\n\tit.sub.Unsubscribe()\r\n\treturn nil\r\n}",
"func (it *ChpRegistryUnpausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausablePauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ConsortiumManagementProposeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractProposalExecutionExpiredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DistributorBountyWasPaidIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *XStakingRecoveredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ZKOnacciTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (c *indexIter) Close() {\n\tif c.it != nil {\n\t\tc.it.Close()\n\t\tc.it = nil\n\t}\n}",
"func (it *BindingsRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MevskyTurnedOnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *EthdkgShareDistributionIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BondedECDSAKeepERC20RewardDistributedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WmaticTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DemoERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *FlopperKickIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}"
] | [
"0.7482955",
"0.74153244",
"0.72168773",
"0.7206727",
"0.7204784",
"0.7176479",
"0.71728414",
"0.71635216",
"0.716004",
"0.71559685",
"0.71559083",
"0.7151651",
"0.7138356",
"0.71362513",
"0.71335363",
"0.71311337",
"0.7123957",
"0.71221465",
"0.71176964",
"0.71145695",
"0.71120834",
"0.71090597",
"0.7107699",
"0.7103748",
"0.7098597",
"0.7086457",
"0.7084923",
"0.7069476",
"0.7067772",
"0.7063724",
"0.70465595",
"0.7039875",
"0.7034811",
"0.703311",
"0.7031821",
"0.7030227",
"0.702839",
"0.7027119",
"0.70257586",
"0.70248806",
"0.7018183",
"0.7017699",
"0.701513",
"0.7014672",
"0.7014672",
"0.7014672",
"0.7014672",
"0.70123804",
"0.7011381",
"0.7006677",
"0.7005316",
"0.69988376",
"0.6991503",
"0.6991117",
"0.69910026",
"0.6990605",
"0.69865966",
"0.69760066",
"0.6972149",
"0.69721377",
"0.69646394",
"0.69633377",
"0.6960338",
"0.69583756",
"0.6957476",
"0.6956171",
"0.69555426",
"0.69531244",
"0.69527286",
"0.6951455",
"0.6951455",
"0.6951074",
"0.695071",
"0.6946745",
"0.69462955",
"0.69461364",
"0.69453055",
"0.6943899",
"0.6942155",
"0.6938835",
"0.6937858",
"0.69375676",
"0.6937118",
"0.69339025",
"0.6932277",
"0.6932277",
"0.69249755",
"0.6924785",
"0.69222844",
"0.69188094",
"0.69165516",
"0.69119734",
"0.69114095",
"0.69100475",
"0.69097525",
"0.69088435",
"0.6907899",
"0.6907817",
"0.6907817",
"0.6907817",
"0.6907817"
] | 0.0 | -1 |
FilterOrdersMatched is a free log retrieval operation binding the contract event 0xc4109843e0b7d514e4c093114b863f8e7d8d9a458c372cd51bfe526b588006c9. Solidity: event OrdersMatched(bytes32 buyHash, bytes32 sellHash, address indexed maker, address indexed taker, uint256 price, bytes32 indexed metadata) | func (_WyvernExchange *WyvernExchangeFilterer) FilterOrdersMatched(opts *bind.FilterOpts, maker []common.Address, taker []common.Address, metadata [][32]byte) (*WyvernExchangeOrdersMatchedIterator, error) {
var makerRule []interface{}
for _, makerItem := range maker {
makerRule = append(makerRule, makerItem)
}
var takerRule []interface{}
for _, takerItem := range taker {
takerRule = append(takerRule, takerItem)
}
var metadataRule []interface{}
for _, metadataItem := range metadata {
metadataRule = append(metadataRule, metadataItem)
}
logs, sub, err := _WyvernExchange.contract.FilterLogs(opts, "OrdersMatched", makerRule, takerRule, metadataRule)
if err != nil {
return nil, err
}
return &WyvernExchangeOrdersMatchedIterator{contract: _WyvernExchange.contract, event: "OrdersMatched", logs: logs, sub: sub}, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrdersMatched(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrdersMatched, maker []common.Address, taker []common.Address, metadata [][32]byte) (event.Subscription, error) {\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\tvar takerRule []interface{}\n\tfor _, takerItem := range taker {\n\t\ttakerRule = append(takerRule, takerItem)\n\t}\n\n\tvar metadataRule []interface{}\n\tfor _, metadataItem := range metadata {\n\t\tmetadataRule = append(metadataRule, metadataItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrdersMatched\", makerRule, takerRule, metadataRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrdersMatched)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrdersMatched\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (h *HUOBI) GetOrdersMatch(ctx context.Context, symbol currency.Pair, types, start, end, from, direct, size string) ([]OrderMatchInfo, error) {\n\tresp := struct {\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}{}\n\n\tvals := url.Values{}\n\tsymbolValue, err := h.FormatSymbol(symbol, asset.Spot)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvals.Set(\"symbol\", symbolValue)\n\n\tif types != \"\" {\n\t\tvals.Set(\"types\", types)\n\t}\n\n\tif start != \"\" {\n\t\tvals.Set(\"start-date\", start)\n\t}\n\n\tif end != \"\" {\n\t\tvals.Set(\"end-date\", end)\n\t}\n\n\tif from != \"\" {\n\t\tvals.Set(\"from\", from)\n\t}\n\n\tif direct != \"\" {\n\t\tvals.Set(\"direct\", direct)\n\t}\n\n\tif size != \"\" {\n\t\tvals.Set(\"size\", size)\n\t}\n\n\terr = h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodGet, huobiGetOrdersMatch, vals, nil, &resp, false)\n\treturn resp.Orders, err\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (h *HUOBIHADAX) GetOrdersMatch(symbol, types, start, end, from, direct, size string) ([]OrderMatchInfo, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}\n\n\tvals := url.Values{}\n\tvals.Set(\"symbol\", symbol)\n\n\tif types != \"\" {\n\t\tvals.Set(\"types\", types)\n\t}\n\n\tif start != \"\" {\n\t\tvals.Set(\"start-date\", start)\n\t}\n\n\tif end != \"\" {\n\t\tvals.Set(\"end-date\", end)\n\t}\n\n\tif from != \"\" {\n\t\tvals.Set(\"from\", from)\n\t}\n\n\tif direct != \"\" {\n\t\tvals.Set(\"direct\", direct)\n\t}\n\n\tif size != \"\" {\n\t\tvals.Set(\"size\", size)\n\t}\n\n\tvar result response\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodGet, huobihadaxGetOrdersMatch, vals, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn nil, errors.New(result.ErrorMessage)\n\t}\n\treturn result.Orders, err\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (h *ZmqBUF) Match(f metric.Filter) ([]metric.Metric, bool) {\n\tslice, ok := h.buffer.Match(f)\n\t//h.log.Debug(\"Filter result length: \", len(slice))\n\treturn slice, ok\n}",
"func OrdersHandler(c buffalo.Context) error {\n\ttx := c.Value(\"tx\").(*pop.Connection)\n\n\tfilters := ordersFilters{\n\t\tStartDate: time.Now().AddDate(0, -1, 0),\n\t\tEndDate: time.Now(),\n\t}\n\n\tif err := c.Bind(&filters); err != nil {\n\t\treturn errors.Wrap(err, \"failed to bind arguments\")\n\t}\n\n\tfmt.Printf(\"params: %+v\\n\", c.Params())\n\tfmt.Printf(\"filters(after bind): %+v\\n\", filters)\n\n\t// Reset times so we do not get results based on current time\n\tfilters.StartDate = time.Date(\n\t\tfilters.StartDate.Year(),\n\t\tfilters.StartDate.Month(),\n\t\tfilters.StartDate.Day(),\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\tfilters.StartDate.Location(),\n\t)\n\tfilters.EndDate = time.Date(\n\t\tfilters.EndDate.Year(),\n\t\tfilters.EndDate.Month(),\n\t\tfilters.EndDate.Day(),\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\tfilters.EndDate.Location(),\n\t)\n\n\torders := models.Orders{}\n\n\tquery := tx.Where(\"date >= ?\", filters.StartDate)\n\tquery = query.Where(\"date < ?\", filters.EndDate.AddDate(0, 0, 1)) // We want to include end of the day, meaning starting of next day\n\terr := query.All(&orders)\n\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"failed to fetch all the orders\")\n\t}\n\n\tc.Set(\"orders\", orders)\n\tc.Set(\"filters\", filters)\n\n\ttotalWithoutVAT := 0.0\n\ttotalWithVAT := 0.0\n\ttotalVAT := 0.0\n\tfor i := range orders {\n\n\t\tfmt.Printf(\"wut %+v\\n\", orders[i])\n\t\tif err := tx.Load(&orders[i], \"Rows\"); err != nil {\n\t\t\treturn errors.Wrap(err, \"could not load order rows\")\n\t\t}\n\t\ttotalWithoutVAT += orders[i].TotalWithoutVAT()\n\t\ttotalWithVAT += orders[i].TotalWithVAT()\n\t\ttotalVAT += orders[i].TotalVAT()\n\t}\n\n\tc.Set(\"totalWithoutVAT\", totalWithoutVAT)\n\tc.Set(\"totalWithVAT\", totalWithVAT)\n\tc.Set(\"totalVAT\", totalVAT)\n\n\treturn c.Render(200, r.HTML(\"orders.html\"))\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterOrder(opts *bind.FilterOpts) (*EtherDeltaOrderIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaOrderIterator{contract: _EtherDelta.contract, event: \"Order\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartTwo(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartTwo, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartTwo)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartTwo\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (h *HUOBI) GetOrderMatchResults(ctx context.Context, orderID int64) ([]OrderMatchInfo, error) {\n\tresp := struct {\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiGetOrderMatch, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodGet, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.Orders, err\n}",
"func (h *HUOBIHADAX) GetOrderMatchResults(orderID int64) ([]OrderMatchInfo, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxGetOrderMatch, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodGet, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn nil, errors.New(result.ErrorMessage)\n\t}\n\treturn result.Orders, err\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartTwo(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderApprovedPartTwoIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartTwoIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartTwo\", logs: logs, sub: sub}, nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchOrder(opts *bind.WatchOpts, sink chan<- *EtherDeltaOrder) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaOrder)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Order\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func orderMatchCompare(l, r *Order) (matched bool, msg string) {\n\t// Market order at any side is tradable\n\tif l.Type == pb.OrderType_MARKET || r.Type == pb.OrderType_MARKET {\n\t\treturn true, \"a market match\"\n\t}\n\tvar bid, ask *Order\n\tif l.Side == pb.OrderSide_BID {\n\t\tbid, ask = l, r\n\t} else {\n\t\tbid, ask = r, l\n\t}\n\tmatched = (bid.Price.Cmp(ask.Price) >= 0)\n\tif !matched {\n\t\tmsg = fmt.Sprintf(\"not match because bid price %v, ask price %v\", bid, ask)\n\t}\n\tmsg = fmt.Sprintf(\"matched because bid price %v, ask price %v\", bid, ask)\n\treturn\n}",
"func (_Token *TokenFilterer) FilterTokenPurchase(opts *bind.FilterOpts, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (*TokenTokenPurchaseIterator, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar eth_soldRule []interface{}\n\tfor _, eth_soldItem := range eth_sold {\n\t\teth_soldRule = append(eth_soldRule, eth_soldItem)\n\t}\n\tvar tokens_boughtRule []interface{}\n\tfor _, tokens_boughtItem := range tokens_bought {\n\t\ttokens_boughtRule = append(tokens_boughtRule, tokens_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"TokenPurchase\", buyerRule, eth_soldRule, tokens_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenTokenPurchaseIterator{contract: _Token.contract, event: \"TokenPurchase\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterTriggered(opts *bind.FilterOpts) (*AuthContractTriggeredIterator, error) {\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"Triggered\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractTriggeredIterator{contract: _AuthContract.contract, event: \"Triggered\", logs: logs, sub: sub}, nil\n}",
"func (b *Bitmex) GetOrderHistory(ctx context.Context, req *order.MultiOrderRequest) (order.FilteredOrders, error) {\n\terr := req.Validate()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tparams := OrdersRequest{}\n\tresp, err := b.GetOrders(ctx, ¶ms)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tformat, err := b.GetPairFormat(asset.PerpetualContract, false)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\torders := make([]order.Detail, len(resp))\n\tfor i := range resp {\n\t\torderSide := orderSideMap[resp[i].Side]\n\t\tvar orderStatus order.Status\n\t\torderStatus, err = order.StringToOrderStatus(resp[i].OrdStatus)\n\t\tif err != nil {\n\t\t\tlog.Errorf(log.ExchangeSys, \"%s %v\", b.Name, err)\n\t\t}\n\n\t\tpair := currency.NewPairWithDelimiter(resp[i].Symbol, resp[i].SettlCurrency, format.Delimiter)\n\n\t\tvar oType order.Type\n\t\toType, err = b.getOrderType(resp[i].OrdType)\n\t\tif err != nil {\n\t\t\tlog.Errorf(log.ExchangeSys, \"%s %v\", b.Name, err)\n\t\t}\n\n\t\torderDetail := order.Detail{\n\t\t\tPrice: resp[i].Price,\n\t\t\tAverageExecutedPrice: resp[i].AvgPx,\n\t\t\tAmount: resp[i].OrderQty,\n\t\t\tExecutedAmount: resp[i].CumQty,\n\t\t\tRemainingAmount: resp[i].LeavesQty,\n\t\t\tDate: resp[i].TransactTime,\n\t\t\tCloseTime: resp[i].Timestamp,\n\t\t\tExchange: b.Name,\n\t\t\tOrderID: resp[i].OrderID,\n\t\t\tSide: orderSide,\n\t\t\tStatus: orderStatus,\n\t\t\tType: oType,\n\t\t\tPair: pair,\n\t\t}\n\t\torderDetail.InferCostsAndTimes()\n\n\t\torders[i] = orderDetail\n\t}\n\treturn req.Filter(b.Name, orders), nil\n}",
"func FilterMatch(matcher match.Matcher) Filter {\n\treturn func(instances echo.Instances) echo.Instances {\n\t\treturn matcher.GetMatches(instances)\n\t}\n}",
"func (fs Filters) ChainMatching(route Route) Handler {\n\tfilters := fs.Matching(route.Endpoint)\n\treturn filters.Chain(route.Handler)\n}",
"func ReceivedEQ(v float32) predicate.Order {\n\treturn predicate.Order(func(s *sql.Selector) {\n\t\ts.Where(sql.EQ(s.C(FieldReceived), v))\n\t})\n}",
"func (f *AllEventsFilter) Matches(msg *Message, subscriber *Subscriber) bool {\n\treturn subscriber.admin\n}",
"func (_Token *TokenFilterer) FilterEthPurchase(opts *bind.FilterOpts, buyer []common.Address, tokens_sold []*big.Int, eth_bought []*big.Int) (*TokenEthPurchaseIterator, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar tokens_soldRule []interface{}\n\tfor _, tokens_soldItem := range tokens_sold {\n\t\ttokens_soldRule = append(tokens_soldRule, tokens_soldItem)\n\t}\n\tvar eth_boughtRule []interface{}\n\tfor _, eth_boughtItem := range eth_bought {\n\t\teth_boughtRule = append(eth_boughtRule, eth_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"EthPurchase\", buyerRule, tokens_soldRule, eth_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenEthPurchaseIterator{contract: _Token.contract, event: \"EthPurchase\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartOne(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartOne, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartOne)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartOne\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (kc *Keychain) Match(owners *secp256k1fx.OutputOwners, time uint64) bool {\n\tif time < owners.Locktime || owners.Threshold != 1 || len(owners.Addrs) != 1 || !kc.Addrs.Contains(owners.Addrs[0]) {\n\t\treturn false\n\t}\n\treturn true\n}",
"func Received(v float32) predicate.Order {\n\treturn predicate.Order(func(s *sql.Selector) {\n\t\ts.Where(sql.EQ(s.C(FieldReceived), v))\n\t})\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderCancelled(opts *bind.FilterOpts, hash [][32]byte) (*WyvernExchangeOrderCancelledIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderCancelledIterator{contract: _WyvernExchange.contract, event: \"OrderCancelled\", logs: logs, sub: sub}, nil\n}",
"func ParseRPCMatchedOrders(orders *auctioneerrpc.MatchedOrder) ([]*MatchedOrder,\n\terror) {\n\n\tvar result []*MatchedOrder\n\t// The only thing we can check in this step is that not both matched\n\t// bids and matched asks are set at the same time as that wouldn't make\n\t// sense. Everything else is checked at a later stage when we know more\n\t// about our order that was matched against.\n\tswitch {\n\tcase len(orders.MatchedAsks) > 0 && len(orders.MatchedBids) > 0:\n\t\treturn nil, fmt.Errorf(\"order cannot match both asks and bids\")\n\n\tcase len(orders.MatchedAsks) > 0:\n\t\tfor _, ask := range orders.MatchedAsks {\n\t\t\tmatchedAsk, err := ParseRPCServerAsk(ask.Ask)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error parsing server \"+\n\t\t\t\t\t\"ask: %v\", err)\n\t\t\t}\n\t\t\tmatchedAsk.UnitsFilled = SupplyUnit(ask.UnitsFilled)\n\n\t\t\tresult = append(result, matchedAsk)\n\t\t}\n\n\tcase len(orders.MatchedBids) > 0:\n\t\tfor _, bid := range orders.MatchedBids {\n\t\t\tmatchedBid, err := ParseRPCServerBid(bid.Bid)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error parsing server \"+\n\t\t\t\t\t\"bid: %v\", err)\n\t\t\t}\n\t\t\tmatchedBid.UnitsFilled = SupplyUnit(bid.UnitsFilled)\n\n\t\t\tresult = append(result, matchedBid)\n\t\t}\n\t}\n\n\treturn result, nil\n}",
"func (_Token *TokenFilterer) WatchEthPurchase(opts *bind.WatchOpts, sink chan<- *TokenEthPurchase, buyer []common.Address, tokens_sold []*big.Int, eth_bought []*big.Int) (event.Subscription, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar tokens_soldRule []interface{}\n\tfor _, tokens_soldItem := range tokens_sold {\n\t\ttokens_soldRule = append(tokens_soldRule, tokens_soldItem)\n\t}\n\tvar eth_boughtRule []interface{}\n\tfor _, eth_boughtItem := range eth_bought {\n\t\teth_boughtRule = append(eth_boughtRule, eth_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"EthPurchase\", buyerRule, tokens_soldRule, eth_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenEthPurchase)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"EthPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) FilterRecovered(opts *bind.FilterOpts) (*XStakingRecoveredIterator, error) {\n\n\tlogs, sub, err := _XStaking.contract.FilterLogs(opts, \"Recovered\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &XStakingRecoveredIterator{contract: _XStaking.contract, event: \"Recovered\", logs: logs, sub: sub}, nil\n}",
"func OrderFilter(order Order) Filter {\n\treturn Param(\"order\", order.String())\n}",
"func (_IStaking *IStakingFilterer) FilterRegistered(opts *bind.FilterOpts, oracle []common.Address) (*IStakingRegisteredIterator, error) {\n\n\tvar oracleRule []interface{}\n\tfor _, oracleItem := range oracle {\n\t\toracleRule = append(oracleRule, oracleItem)\n\t}\n\n\tlogs, sub, err := _IStaking.contract.FilterLogs(opts, \"Registered\", oracleRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IStakingRegisteredIterator{contract: _IStaking.contract, event: \"Registered\", logs: logs, sub: sub}, nil\n}",
"func (_WandappETH *WandappETHFilterer) FilterHashEvent(opts *bind.FilterOpts) (*WandappETHHashEventIterator, error) {\n\n\tlogs, sub, err := _WandappETH.contract.FilterLogs(opts, \"HashEvent\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WandappETHHashEventIterator{contract: _WandappETH.contract, event: \"HashEvent\", logs: logs, sub: sub}, nil\n}",
"func (_HbSwap *HbSwapFilterer) FilterTrade(opts *bind.FilterOpts) (*HbSwapTradeIterator, error) {\n\n\tlogs, sub, err := _HbSwap.contract.FilterLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HbSwapTradeIterator{contract: _HbSwap.contract, event: \"Trade\", logs: logs, sub: sub}, nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) FilterPurchased(opts *bind.FilterOpts, addr []common.Address) (*CrowdsalePurchasedIterator, error) {\n\n\tvar addrRule []interface{}\n\tfor _, addrItem := range addr {\n\t\taddrRule = append(addrRule, addrItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.FilterLogs(opts, \"Purchased\", addrRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrowdsalePurchasedIterator{contract: _Crowdsale.contract, event: \"Purchased\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderCancelled, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderCancelled)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderCancelled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) FilterTrade(opts *bind.FilterOpts) (*EtherDeltaTradeIterator, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.FilterLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EtherDeltaTradeIterator{contract: _EtherDelta.contract, event: \"Trade\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *TokenTokenPurchase, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (event.Subscription, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar eth_soldRule []interface{}\n\tfor _, eth_soldItem := range eth_sold {\n\t\teth_soldRule = append(eth_soldRule, eth_soldItem)\n\t}\n\tvar tokens_boughtRule []interface{}\n\tfor _, tokens_boughtItem := range tokens_bought {\n\t\ttokens_boughtRule = append(tokens_boughtRule, tokens_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"TokenPurchase\", buyerRule, eth_soldRule, tokens_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenTokenPurchase)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"TokenPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) FilterOperatorRegistered(opts *bind.FilterOpts, stakingProvider []common.Address, operator []common.Address) (*RandomBeaconOperatorRegisteredIterator, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\tvar operatorRule []interface{}\n\tfor _, operatorItem := range operator {\n\t\toperatorRule = append(operatorRule, operatorItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.FilterLogs(opts, \"OperatorRegistered\", stakingProviderRule, operatorRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RandomBeaconOperatorRegisteredIterator{contract: _RandomBeacon.contract, event: \"OperatorRegistered\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) FilterBurned(opts *bind.FilterOpts, token []common.Address, sender []common.Address) (*ERC20HecoManagerBurnedIterator, error) {\n\n\tvar tokenRule []interface{}\n\tfor _, tokenItem := range token {\n\t\ttokenRule = append(tokenRule, tokenItem)\n\t}\n\tvar senderRule []interface{}\n\tfor _, senderItem := range sender {\n\t\tsenderRule = append(senderRule, senderItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.FilterLogs(opts, \"Burned\", tokenRule, senderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20HecoManagerBurnedIterator{contract: _ERC20HecoManager.contract, event: \"Burned\", logs: logs, sub: sub}, nil\n}",
"func (handler *dbHandler) equalToFilterSummary(writer http.ResponseWriter, request *http.Request) {\n\t//generate the filtered buildings by passing appropriate comparison parameters\n\tbuildings, err := handler.equalityFilter(writer, request, \"$eq\")\n\tif err != nil {\n\t\tfmt.Fprintln(writer, err.Error())\n\t}\n\n\t//get the output summary for the filtered list and print it on screen\n\toutput := getSummary(buildings)\n\tfmt.Fprintln(writer, output)\n}",
"func (app *App) GetOrders(page, perPage int, snapshotID string) (*rpc.GetOrdersResponse, error) {\n\tordersInfos := []*zeroex.AcceptedOrderInfo{}\n\tif perPage <= 0 {\n\t\treturn &rpc.GetOrdersResponse{\n\t\t\tOrdersInfos: ordersInfos,\n\t\t\tSnapshotID: snapshotID,\n\t\t}, nil\n\t}\n\n\tvar snapshot *db.Snapshot\n\tif snapshotID == \"\" {\n\t\t// Create a new snapshot\n\t\tsnapshotID = uuid.New().String()\n\t\tvar err error\n\t\tsnapshot, err = app.db.Orders.GetSnapshot()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\texpirationTimestamp := time.Now().Add(1 * time.Minute)\n\t\tapp.snapshotExpirationWatcher.Add(expirationTimestamp, snapshotID)\n\t\tapp.muIdToSnapshotInfo.Lock()\n\t\tapp.idToSnapshotInfo[snapshotID] = snapshotInfo{\n\t\t\tSnapshot: snapshot,\n\t\t\tExpirationTimestamp: expirationTimestamp,\n\t\t}\n\t\tapp.muIdToSnapshotInfo.Unlock()\n\t} else {\n\t\t// Try and find an existing snapshot\n\t\tapp.muIdToSnapshotInfo.Lock()\n\t\tinfo, ok := app.idToSnapshotInfo[snapshotID]\n\t\tif !ok {\n\t\t\tapp.muIdToSnapshotInfo.Unlock()\n\t\t\treturn nil, ErrSnapshotNotFound{id: snapshotID}\n\t\t}\n\t\tsnapshot = info.Snapshot\n\t\t// Reset the snapshot's expiry\n\t\tapp.snapshotExpirationWatcher.Remove(info.ExpirationTimestamp, snapshotID)\n\t\texpirationTimestamp := time.Now().Add(1 * time.Minute)\n\t\tapp.snapshotExpirationWatcher.Add(expirationTimestamp, snapshotID)\n\t\tapp.idToSnapshotInfo[snapshotID] = snapshotInfo{\n\t\t\tSnapshot: snapshot,\n\t\t\tExpirationTimestamp: expirationTimestamp,\n\t\t}\n\t\tapp.muIdToSnapshotInfo.Unlock()\n\t}\n\n\tnotRemovedFilter := app.db.Orders.IsRemovedIndex.ValueFilter([]byte{0})\n\tvar selectedOrders []*meshdb.Order\n\terr := snapshot.NewQuery(notRemovedFilter).Offset(page * perPage).Max(perPage).Run(&selectedOrders)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor _, order := range selectedOrders {\n\t\tordersInfos = append(ordersInfos, &zeroex.AcceptedOrderInfo{\n\t\t\tOrderHash: order.Hash,\n\t\t\tSignedOrder: order.SignedOrder,\n\t\t\tFillableTakerAssetAmount: order.FillableTakerAssetAmount,\n\t\t})\n\t}\n\n\tgetOrdersResponse := &rpc.GetOrdersResponse{\n\t\tSnapshotID: snapshotID,\n\t\tOrdersInfos: ordersInfos,\n\t}\n\n\treturn getOrdersResponse, nil\n}",
"func (_BREMICO *BREMICOFilterer) FilterTokenPurchase(opts *bind.FilterOpts, purchaser []common.Address, beneficiary []common.Address) (*BREMICOTokenPurchaseIterator, error) {\n\n\tvar purchaserRule []interface{}\n\tfor _, purchaserItem := range purchaser {\n\t\tpurchaserRule = append(purchaserRule, purchaserItem)\n\t}\n\tvar beneficiaryRule []interface{}\n\tfor _, beneficiaryItem := range beneficiary {\n\t\tbeneficiaryRule = append(beneficiaryRule, beneficiaryItem)\n\t}\n\n\tlogs, sub, err := _BREMICO.contract.FilterLogs(opts, \"TokenPurchase\", purchaserRule, beneficiaryRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BREMICOTokenPurchaseIterator{contract: _BREMICO.contract, event: \"TokenPurchase\", logs: logs, sub: sub}, nil\n}",
"func (_TokenVesting *TokenVestingFilterer) FilterReleased(opts *bind.FilterOpts, token []common.Address) (*TokenVestingReleasedIterator, error) {\n\n\tvar tokenRule []interface{}\n\tfor _, tokenItem := range token {\n\t\ttokenRule = append(tokenRule, tokenItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.FilterLogs(opts, \"Released\", tokenRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenVestingReleasedIterator{contract: _TokenVesting.contract, event: \"Released\", logs: logs, sub: sub}, nil\n}",
"func Match(filter *datastore.Filter, message descriptor.Message) bool {\n\tif filter != nil {\n\t\tswitch filter.FilterType.(type) {\n\t\tcase *datastore.Filter_PropertyFilter:\n\t\t\timpl := filter.GetPropertyFilter()\n\t\t\tproperty := impl.GetProperty()\n\t\t\tif property == nil {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tvalue := impl.GetValue()\n\t\t\tif value == nil {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\treturn compare(message, property.Name, impl.GetOp(), *value)\n\t\tcase *datastore.Filter_CompositeFilter:\n\t\t\tfilters := filter.GetCompositeFilter().GetFilters()\n\t\t\tmatched := len(filters) > 0\n\t\t\tfor _, filter := range filters {\n\t\t\t\tmatched = matched && Match(filter, message)\n\t\t\t}\n\t\t\treturn matched\n\t\t}\n\t}\n\t// no filter: match everything\n\treturn true\n}",
"func (_BREMICO *BREMICOFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *BREMICOTokenPurchase, purchaser []common.Address, beneficiary []common.Address) (event.Subscription, error) {\n\n\tvar purchaserRule []interface{}\n\tfor _, purchaserItem := range purchaser {\n\t\tpurchaserRule = append(purchaserRule, purchaserItem)\n\t}\n\tvar beneficiaryRule []interface{}\n\tfor _, beneficiaryItem := range beneficiary {\n\t\tbeneficiaryRule = append(beneficiaryRule, beneficiaryItem)\n\t}\n\n\tlogs, sub, err := _BREMICO.contract.WatchLogs(opts, \"TokenPurchase\", purchaserRule, beneficiaryRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMICOTokenPurchase)\n\t\t\t\tif err := _BREMICO.contract.UnpackLog(event, \"TokenPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokensNetwork *TokensNetworkFilterer) FilterBalanceProofUpdated(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkBalanceProofUpdatedIterator, error) {\n\n\tvar channel_identifierRule []interface{}\n\tfor _, channel_identifierItem := range channel_identifier {\n\t\tchannel_identifierRule = append(channel_identifierRule, channel_identifierItem)\n\t}\n\n\tlogs, sub, err := _TokensNetwork.contract.FilterLogs(opts, \"BalanceProofUpdated\", channel_identifierRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokensNetworkBalanceProofUpdatedIterator{contract: _TokensNetwork.contract, event: \"BalanceProofUpdated\", logs: logs, sub: sub}, nil\n}",
"func (h *ZmqBUF) Filter(f metric.Filter) ([]metric.Metric, bool) {\n\tslice, ok := h.buffer.Filter(f)\n\t//h.log.Debug(\"Filter result length: \", len(slice))\n\treturn slice, ok\n}",
"func (b *Bitmex) GetActiveOrders(ctx context.Context, req *order.MultiOrderRequest) (order.FilteredOrders, error) {\n\terr := req.Validate()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tparams := OrdersRequest{\n\t\tFilter: \"{\\\"open\\\":true}\",\n\t}\n\tresp, err := b.GetOrders(ctx, ¶ms)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tformat, err := b.GetPairFormat(asset.PerpetualContract, false)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\torders := make([]order.Detail, len(resp))\n\tfor i := range resp {\n\t\tvar orderStatus order.Status\n\t\torderStatus, err = order.StringToOrderStatus(resp[i].OrdStatus)\n\t\tif err != nil {\n\t\t\tlog.Errorf(log.ExchangeSys, \"%s %v\", b.Name, err)\n\t\t}\n\t\tvar oType order.Type\n\t\toType, err = b.getOrderType(resp[i].OrdType)\n\t\tif err != nil {\n\t\t\tlog.Errorf(log.ExchangeSys, \"%s %v\", b.Name, err)\n\t\t}\n\t\torderDetail := order.Detail{\n\t\t\tDate: resp[i].Timestamp,\n\t\t\tPrice: resp[i].Price,\n\t\t\tAmount: resp[i].OrderQty,\n\t\t\tExecutedAmount: resp[i].CumQty,\n\t\t\tRemainingAmount: resp[i].LeavesQty,\n\t\t\tExchange: b.Name,\n\t\t\tOrderID: resp[i].OrderID,\n\t\t\tSide: orderSideMap[resp[i].Side],\n\t\t\tStatus: orderStatus,\n\t\t\tType: oType,\n\t\t\tPair: currency.NewPairWithDelimiter(resp[i].Symbol,\n\t\t\t\tresp[i].SettlCurrency,\n\t\t\t\tformat.Delimiter),\n\t\t}\n\n\t\torders[i] = orderDetail\n\t}\n\treturn req.Filter(b.Name, orders), nil\n}",
"func (a *Action) matchLimitOrder(payload *et.LimitOrder, leftAccountDB, rightAccountDB *account.DB, entrustAddr string) (*types.Receipt, error) {\n\tvar (\n\t\tlogs []*types.ReceiptLog\n\t\tkvs []*types.KeyValue\n\t\tpriceKey string\n\t\tcount int\n\t\ttaker int32\n\t\tmaker int32\n\t\tminFee int64\n\t)\n\n\tcfg := a.api.GetConfig()\n\ttCfg, err := ParseConfig(a.api.GetConfig(), a.height)\n\tif err != nil {\n\t\telog.Error(\"executor/exchangedb matchLimitOrder.ParseConfig\", \"err\", err)\n\t\treturn nil, err\n\t}\n\n\tif cfg.IsDappFork(a.height, et.ExchangeX, et.ForkFix1) && tCfg.IsBankAddr(a.fromaddr) {\n\t\treturn nil, et.ErrAddrIsBank\n\t}\n\n\tif !tCfg.IsFeeFreeAddr(a.fromaddr) {\n\t\ttrade := tCfg.GetTrade(payload.GetLeftAsset(), payload.GetRightAsset())\n\t\ttaker = trade.GetTaker()\n\t\tmaker = trade.GetMaker()\n\t\tminFee = trade.GetMinFee()\n\t}\n\n\tor := &et.Order{\n\t\tOrderID: a.GetIndex(),\n\t\tValue: &et.Order_LimitOrder{LimitOrder: payload},\n\t\tTy: et.TyLimitOrderAction,\n\t\tExecuted: 0,\n\t\tAVGPrice: 0,\n\t\tBalance: payload.GetAmount(),\n\t\tStatus: et.Ordered,\n\t\tEntrustAddr: entrustAddr,\n\t\tAddr: a.fromaddr,\n\t\tUpdateTime: a.blocktime,\n\t\tIndex: a.GetIndex(),\n\t\tRate: maker,\n\t\tMinFee: minFee,\n\t\tHash: hex.EncodeToString(a.txhash),\n\t\tCreateTime: a.blocktime,\n\t}\n\tre := &et.ReceiptExchange{\n\t\tOrder: or,\n\t\tIndex: a.GetIndex(),\n\t}\n\n\t// A single transaction can match up to 100 historical orders, the maximum depth can be matched, the system has to protect itself\n\t// Iteration has listing price\n\tvar done bool\n\tfor {\n\t\tif count >= et.MaxMatchCount {\n\t\t\tbreak\n\t\t}\n\t\tif done {\n\t\t\tbreak\n\t\t}\n\t\t//Obtain price information of existing market listing\n\t\tmarketDepthList, _ := QueryMarketDepth(a.localDB, payload.GetLeftAsset(), payload.GetRightAsset(), a.OpSwap(payload.Op), priceKey, et.Count)\n\t\tif marketDepthList == nil || len(marketDepthList.List) == 0 {\n\t\t\tbreak\n\t\t}\n\t\tfor _, marketDepth := range marketDepthList.List {\n\t\t\telog.Info(\"LimitOrder debug find depth\", \"height\", a.height, \"amount\", marketDepth.Amount, \"price\", marketDepth.Price, \"order-price\", payload.GetPrice(), \"op\", a.OpSwap(payload.Op), \"index\", a.GetIndex())\n\t\t\tif count >= et.MaxMatchCount {\n\t\t\t\tdone = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif payload.Op == et.OpBuy && marketDepth.Price > payload.GetPrice() {\n\t\t\t\tdone = true\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif payload.Op == et.OpSell && marketDepth.Price < payload.GetPrice() {\n\t\t\t\tdone = true\n\t\t\t\tbreak\n\t\t\t}\n\n\t\t\tvar hasOrder = false\n\t\t\tvar orderKey string\n\t\t\tfor {\n\t\t\t\tif count >= et.MaxMatchCount {\n\t\t\t\t\tdone = true\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\torderList, err := findOrderIDListByPrice(a.localDB, payload.GetLeftAsset(), payload.GetRightAsset(), marketDepth.Price, a.OpSwap(payload.Op), et.ListASC, orderKey)\n\t\t\t\tif orderList != nil && !hasOrder {\n\t\t\t\t\thasOrder = true\n\t\t\t\t}\n\t\t\t\tif err != nil {\n\t\t\t\t\tif err == types.ErrNotFound {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\telog.Error(\"findOrderIDListByPrice error\", \"height\", a.height, \"symbol\", payload.GetLeftAsset().Symbol, \"price\", marketDepth.Price, \"op\", a.OpSwap(payload.Op), \"error\", err)\n\t\t\t\t\treturn nil, err\n\t\t\t\t}\n\t\t\t\tfor _, matchorder := range orderList.List {\n\t\t\t\t\tif count >= et.MaxMatchCount {\n\t\t\t\t\t\tdone = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// Check the order status\n\t\t\t\t\torder, err := findOrderByOrderID(a.statedb, a.localDB, matchorder.GetOrderID())\n\t\t\t\t\tif err != nil || order.Status != et.Ordered {\n\t\t\t\t\t\tif len(orderList.List) == 1 {\n\t\t\t\t\t\t\thasOrder = true\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tlog, kv, err := a.matchModel(leftAccountDB, rightAccountDB, payload, order, or, re, tCfg.GetFeeAddr(), taker) // payload, or redundant\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\tif err == types.ErrNoBalance {\n\t\t\t\t\t\t\telog.Warn(\"matchModel RevokeOrder\", \"height\", a.height, \"orderID\", order.GetOrderID(), \"payloadID\", or.GetOrderID(), \"error\", err)\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t}\n\t\t\t\t\tlogs = append(logs, log...)\n\t\t\t\t\tkvs = append(kvs, kv...)\n\t\t\t\t\tif or.Status == et.Completed {\n\t\t\t\t\t\treceiptlog := &types.ReceiptLog{Ty: et.TyLimitOrderLog, Log: types.Encode(re)}\n\t\t\t\t\t\tlogs = append(logs, receiptlog)\n\t\t\t\t\t\treceipts := &types.Receipt{Ty: types.ExecOk, KV: kvs, Logs: logs}\n\t\t\t\t\t\treturn receipts, nil\n\t\t\t\t\t}\n\t\t\t\t\t// match depth count\n\t\t\t\t\tcount = count + 1\n\t\t\t\t}\n\t\t\t\tif orderList.PrimaryKey == \"\" {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\torderKey = orderList.PrimaryKey\n\t\t\t}\n\t\t\tif !hasOrder {\n\t\t\t\tvar matchorder et.Order\n\t\t\t\tmatchorder.UpdateTime = a.blocktime\n\t\t\t\tmatchorder.Status = et.Completed\n\t\t\t\tmatchorder.Balance = 0\n\t\t\t\tmatchorder.Executed = 0\n\t\t\t\tmatchorder.AVGPrice = marketDepth.Price\n\t\t\t\telog.Info(\"make empty match to del depth\", \"height\", a.height, \"price\", marketDepth.Price, \"amount\", marketDepth.Amount)\n\t\t\t\tre.MatchOrders = append(re.MatchOrders, &matchorder)\n\t\t\t}\n\t\t}\n\n\t\tif marketDepthList.PrimaryKey == \"\" {\n\t\t\tbreak\n\t\t}\n\t\tpriceKey = marketDepthList.PrimaryKey\n\t}\n\n\t//Outstanding orders require freezing of the remaining unclosed funds\n\tif payload.Op == et.OpBuy {\n\t\tamount := CalcActualCost(et.OpBuy, or.Balance, payload.Price, cfg.GetCoinPrecision())\n\t\treceipt, err := rightAccountDB.ExecFrozen(a.fromaddr, a.execaddr, amount)\n\t\tif err != nil {\n\t\t\telog.Error(\"LimitOrder.ExecFrozen OpBuy\", \"addr\", a.fromaddr, \"amount\", amount, \"err\", err.Error())\n\t\t\treturn nil, err\n\t\t}\n\t\tlogs = append(logs, receipt.Logs...)\n\t\tkvs = append(kvs, receipt.KV...)\n\t}\n\tif payload.Op == et.OpSell {\n\t\tamount := CalcActualCost(et.OpSell, or.Balance, payload.Price, cfg.GetCoinPrecision())\n\t\treceipt, err := leftAccountDB.ExecFrozen(a.fromaddr, a.execaddr, amount)\n\t\tif err != nil {\n\t\t\telog.Error(\"LimitOrder.ExecFrozen OpSell\", \"addr\", a.fromaddr, \"amount\", amount, \"err\", err.Error())\n\t\t\treturn nil, err\n\t\t}\n\t\tlogs = append(logs, receipt.Logs...)\n\t\tkvs = append(kvs, receipt.KV...)\n\t}\n\tkvs = append(kvs, a.GetKVSet(or)...)\n\tre.Order = or\n\treceiptlog := &types.ReceiptLog{Ty: et.TyLimitOrderLog, Log: types.Encode(re)}\n\tlogs = append(logs, receiptlog)\n\treceipts := &types.Receipt{Ty: types.ExecOk, KV: kvs, Logs: logs}\n\treturn receipts, nil\n}",
"func (b *Builder) Match(msg *insightV1.LogMessage) bool {\n\tfor _, m := range b.chain {\n\t\tif !m.Match(msg) {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"func (f *Filter) Match(buf []byte) bool {\n cbuf := (*C.char)(unsafe.Pointer(&buf[0]))\n blen := C.uint(len(buf))\n\n if C.bpf_filter(f.program.bf_insns, cbuf, blen, blen) > 0 {\n return true\n }\n\n return false\n}",
"func (f *Filter) Match(res *benchfmt.Result) (Match, error) {\n\tm, x := f.match(res)\n\treturn Match{len(res.Values), m, x}, nil\n}",
"func MatchesFilter(metric model.Metric, logger log.Logger) (bool, error) {\n\tif len(filters) == 0 {\n\t\tlevel.Debug(logger).Log(\"msg\", \"MatchesFilter has no filters\")\n\t\treturn true, nil\n\t}\n\n\tif metric == nil {\n\t\tlevel.Debug(logger).Log(\"msg\", \"Empty metric, skipping filter\")\n\t\treturn false, nil\n\t}\n\n\t//level.Debug(logger).Log(\"msg\", \"Checking metric\", \"metric\", metric.String())\n\tfor _, filter := range filters {\n\t\t//level.Debug(logger).Log(\"msg\", \"Filter\", \"label\", filter.Label, \"value\", filter.Value, \"func\", filter.Filter)\n\t\tswitch filter.Filter {\n\t\tcase \"SI\":\n\t\t\tr := startsWith(metric, filter.Label, filter.Value, true, logger)\n\t\t\tif r {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\tcase \"SC\":\n\t\t\tr := startsWith(metric, filter.Label, filter.Value, false, logger)\n\t\t\tif r {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\tcase \"EI\":\n\t\t\tr := equals(metric, filter.Label, filter.Value, true)\n\t\t\tif r {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\tcase \"EC\":\n\t\t\tr := equals(metric, filter.Label, filter.Value, false)\n\t\t\tif r {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\tcase \"CI\":\n\t\t\tr := contains(metric, filter.Label, filter.Value, true)\n\t\t\tif r {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\tcase \"CC\":\n\t\t\tr := contains(metric, filter.Label, filter.Value, false)\n\t\t\tif r {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false, nil\n}",
"func genExactMatchHeaderFilter(headerName, headerValue string) *access_logv3.AccessLogFilter_HeaderFilter {\n\treturn &access_logv3.AccessLogFilter_HeaderFilter{\n\t\tHeaderFilter: &access_logv3.HeaderFilter{\n\t\t\tHeader: &envoy_config_route_v3.HeaderMatcher{\n\t\t\t\tName: headerName,\n\t\t\t\tHeaderMatchSpecifier: &envoy_config_route_v3.HeaderMatcher_StringMatch{\n\t\t\t\t\tStringMatch: &envoy_type_matcher_v3.StringMatcher{\n\t\t\t\t\t\tMatchPattern: &envoy_type_matcher_v3.StringMatcher_Exact{\n\t\t\t\t\t\t\tExact: headerValue,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n}",
"func (s *shard) Filter(\n\tmetricID uint32,\n\tseriesIDs *roaring.Bitmap,\n\ttimeRange timeutil.TimeRange,\n\tfields field.Metas,\n) (rs []flow.FilterResultSet, err error) {\n\tentries := s.families.Entries()\n\tfor idx := range entries {\n\t\t// check family time if in query time range\n\t\tfamilyStartTime := entries[idx].familyTime\n\t\tfamilyEndTime := s.interval.Calculator().CalcFamilyEndTime(familyStartTime)\n\t\tif !timeRange.Overlap(timeutil.TimeRange{Start: familyStartTime, End: familyEndTime}) {\n\t\t\tcontinue\n\t\t}\n\t\tresultSet, err := entries[idx].memDB.Filter(metricID, seriesIDs, timeRange, fields)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\trs = append(rs, resultSet...)\n\t}\n\treturn\n}",
"func (f *Filter) Match(key [KeySize]byte, data []byte) bool {\n\t// Create a filter bitstream.\n\tb := newBitReader(f.filterNData[4:])\n\n\t// Hash our search term with the same parameters as the filter.\n\tk0 := binary.LittleEndian.Uint64(key[0:8])\n\tk1 := binary.LittleEndian.Uint64(key[8:16])\n\tterm := siphash.Hash(k0, k1, data) % f.modulusNP\n\n\t// Go through the search filter and look for the desired value.\n\tvar lastValue uint64\n\tfor lastValue < term {\n\t\t// Read the difference between previous and new value from\n\t\t// bitstream.\n\t\tvalue, err := f.readFullUint64(&b)\n\t\tif err != nil {\n\t\t\treturn false\n\t\t}\n\n\t\t// Add the previous value to it.\n\t\tvalue += lastValue\n\t\tif value == term {\n\t\t\treturn true\n\t\t}\n\n\t\tlastValue = value\n\t}\n\n\treturn false\n}",
"func MatchOrdersInternally(buy *Order, sell *Order) *Trade {\n\tbuyState := buy.GetState()\n\tsellState := sell.GetState()\n\n\t// Sanity checks\n\tif buyState.State == OrderStateCreated {\n\t\tpanic(\"buy order incorect state: created\")\n\t} else if buyState.State == OrderStateFilled {\n\t\tpanic(\"buy order incorect state: filled\")\n\t} else if buyState.State == OrderStateCancelled {\n\t\tpanic(\"buy order incorect state: cancelled\")\n\t} else if sellState.State == OrderStateCreated {\n\t\tpanic(\"sell order incorect state: created\")\n\t} else if sellState.State == OrderStateFilled {\n\t\tpanic(\"sell order incorect state: filled\")\n\t} else if sellState.State == OrderStateCancelled {\n\t\tpanic(\"sell order incorect state: cancelled\")\n\t}\n\tif buy.Ticker != sell.Ticker {\n\t\tpanic(\"cant match orders with different tickers\")\n\t}\n\n\t// Main procedure\n\tvar extTime time.Time\n\tvar buyInit bool\n\tvar matchVolume float64\n\tvar price float64\n\n\t// Get match time\n\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\textTime = buyState.TimeExt\n\t} else {\n\t\textTime = sellState.TimeExt\n\t}\n\n\t// Get init order\n\tif buyState.TimeExt != sellState.TimeExt {\n\t\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t} else {\n\t\tif buyState.Time.After(sellState.Time) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t}\n\n\t// Price\n\tif buyInit {\n\t\tprice = sell.Price\n\t} else {\n\t\tprice = buy.Price\n\t}\n\n\t// Volume matched\n\tif sellState.Balance > buyState.Balance {\n\t\tmatchVolume = buyState.Balance\n\t} else {\n\t\tmatchVolume = sellState.Balance\n\t}\n\n\ttrade := &Trade{\n\t\tTicker: buy.Ticker,\n\t\tTime: time.Now(),\n\t\tTimeExt: extTime,\n\t\tBuyInitiated: buyInit,\n\t\tVolume: matchVolume,\n\t\tPrice: price,\n\t}\n\tsell.RecordTrade(trade)\n\tbuy.RecordTrade(trade)\n\n\treturn trade\n}",
"func (_KeepRegistry *KeepRegistryFilterer) FilterRegistryKeeperUpdated(opts *bind.FilterOpts) (*KeepRegistryRegistryKeeperUpdatedIterator, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.FilterLogs(opts, \"RegistryKeeperUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &KeepRegistryRegistryKeeperUpdatedIterator{contract: _KeepRegistry.contract, event: \"RegistryKeeperUpdated\", logs: logs, sub: sub}, nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) FilterDkgResultChallenged(opts *bind.FilterOpts, resultHash [][32]byte, challenger []common.Address) (*RandomBeaconDkgResultChallengedIterator, error) {\n\n\tvar resultHashRule []interface{}\n\tfor _, resultHashItem := range resultHash {\n\t\tresultHashRule = append(resultHashRule, resultHashItem)\n\t}\n\tvar challengerRule []interface{}\n\tfor _, challengerItem := range challenger {\n\t\tchallengerRule = append(challengerRule, challengerItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.FilterLogs(opts, \"DkgResultChallenged\", resultHashRule, challengerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RandomBeaconDkgResultChallengedIterator{contract: _RandomBeacon.contract, event: \"DkgResultChallenged\", logs: logs, sub: sub}, nil\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) FilterFulfilled(opts *bind.FilterOpts, requestId [][32]byte) (*IOrakuruCoreFulfilledIterator, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.FilterLogs(opts, \"Fulfilled\", requestIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &IOrakuruCoreFulfilledIterator{contract: _IOrakuruCore.contract, event: \"Fulfilled\", logs: logs, sub: sub}, nil\n}",
"func (c *CoinbasePro) GetOrderHistory(ctx context.Context, req *order.MultiOrderRequest) (order.FilteredOrders, error) {\n\terr := req.Validate()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar respOrders []GeneralizedOrderResponse\n\tif len(req.Pairs) > 0 {\n\t\tvar fPair currency.Pair\n\t\tvar resp []GeneralizedOrderResponse\n\t\tfor i := range req.Pairs {\n\t\t\tfPair, err = c.FormatExchangeCurrency(req.Pairs[i], asset.Spot)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tresp, err = c.GetOrders(ctx, []string{\"done\"}, fPair.String())\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\trespOrders = append(respOrders, resp...)\n\t\t}\n\t} else {\n\t\trespOrders, err = c.GetOrders(ctx, []string{\"done\"}, \"\")\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tformat, err := c.GetPairFormat(asset.Spot, false)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\torders := make([]order.Detail, len(respOrders))\n\tfor i := range respOrders {\n\t\tvar curr currency.Pair\n\t\tcurr, err = currency.NewPairDelimiter(respOrders[i].ProductID,\n\t\t\tformat.Delimiter)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tvar side order.Side\n\t\tside, err = order.StringToOrderSide(respOrders[i].Side)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tvar orderStatus order.Status\n\t\torderStatus, err = order.StringToOrderStatus(respOrders[i].Status)\n\t\tif err != nil {\n\t\t\tlog.Errorf(log.ExchangeSys, \"%s %v\", c.Name, err)\n\t\t}\n\t\tvar orderType order.Type\n\t\torderType, err = order.StringToOrderType(respOrders[i].Type)\n\t\tif err != nil {\n\t\t\tlog.Errorf(log.ExchangeSys, \"%s %v\", c.Name, err)\n\t\t}\n\t\tdetail := order.Detail{\n\t\t\tOrderID: respOrders[i].ID,\n\t\t\tAmount: respOrders[i].Size,\n\t\t\tExecutedAmount: respOrders[i].FilledSize,\n\t\t\tRemainingAmount: respOrders[i].Size - respOrders[i].FilledSize,\n\t\t\tCost: respOrders[i].ExecutedValue,\n\t\t\tCostAsset: curr.Quote,\n\t\t\tType: orderType,\n\t\t\tDate: respOrders[i].CreatedAt,\n\t\t\tCloseTime: respOrders[i].DoneAt,\n\t\t\tFee: respOrders[i].FillFees,\n\t\t\tFeeAsset: curr.Quote,\n\t\t\tSide: side,\n\t\t\tStatus: orderStatus,\n\t\t\tPair: curr,\n\t\t\tPrice: respOrders[i].Price,\n\t\t\tExchange: c.Name,\n\t\t}\n\t\tdetail.InferCostsAndTimes()\n\t\torders[i] = detail\n\t}\n\treturn req.Filter(c.Name, orders), nil\n}",
"func (_BridgeRegistry *BridgeRegistryFilterer) FilterLogContractsRegistered(opts *bind.FilterOpts) (*BridgeRegistryLogContractsRegisteredIterator, error) {\n\n\tlogs, sub, err := _BridgeRegistry.contract.FilterLogs(opts, \"LogContractsRegistered\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BridgeRegistryLogContractsRegisteredIterator{contract: _BridgeRegistry.contract, event: \"LogContractsRegistered\", logs: logs, sub: sub}, nil\n}",
"func (_BridgeRegistry *BridgeRegistryFilterer) FilterLogContractsRegistered(opts *bind.FilterOpts) (*BridgeRegistryLogContractsRegisteredIterator, error) {\n\n\tlogs, sub, err := _BridgeRegistry.contract.FilterLogs(opts, \"LogContractsRegistered\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BridgeRegistryLogContractsRegisteredIterator{contract: _BridgeRegistry.contract, event: \"LogContractsRegistered\", logs: logs, sub: sub}, nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) FilterWalletUpdated(opts *bind.FilterOpts, oldWallet []common.Address, newWallet []common.Address) (*CrowdsaleWalletUpdatedIterator, error) {\n\n\tvar oldWalletRule []interface{}\n\tfor _, oldWalletItem := range oldWallet {\n\t\toldWalletRule = append(oldWalletRule, oldWalletItem)\n\t}\n\tvar newWalletRule []interface{}\n\tfor _, newWalletItem := range newWallet {\n\t\tnewWalletRule = append(newWalletRule, newWalletItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.FilterLogs(opts, \"WalletUpdated\", oldWalletRule, newWalletRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrowdsaleWalletUpdatedIterator{contract: _Crowdsale.contract, event: \"WalletUpdated\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) AtomicMatch(opts *bind.TransactOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"atomicMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterRedeem(opts *bind.FilterOpts) (*ElvTradableRedeemIterator, error) {\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableRedeemIterator{contract: _ElvTradable.contract, event: \"Redeem\", logs: logs, sub: sub}, nil\n}",
"func SignalHandlersBlockMatched(instance *Object, mask SignalMatchType, signalId uint32, detail glib.Quark, closure *Closure, func_ uintptr, data uintptr) uint32 {\n\tc_instance := (C.gpointer)(C.NULL)\n\tif instance != nil {\n\t\tc_instance = (C.gpointer)(instance.ToC())\n\t}\n\n\tc_mask := (C.GSignalMatchType)(mask)\n\n\tc_signal_id := (C.guint)(signalId)\n\n\tc_detail := (C.GQuark)(detail)\n\n\tc_closure := (*C.GClosure)(C.NULL)\n\tif closure != nil {\n\t\tc_closure = (*C.GClosure)(closure.ToC())\n\t}\n\n\tc_func := (C.gpointer)(func_)\n\n\tc_data := (C.gpointer)(data)\n\n\tretC := C.g_signal_handlers_block_matched(c_instance, c_mask, c_signal_id, c_detail, c_closure, c_func, c_data)\n\tretGo := (uint32)(retC)\n\n\treturn retGo\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrderCalldataCanMatch(opts *bind.CallOpts, buyCalldata []byte, buyReplacementPattern []byte, sellCalldata []byte, sellReplacementPattern []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"orderCalldataCanMatch\", buyCalldata, buyReplacementPattern, sellCalldata, sellReplacementPattern)\n\treturn *ret0, err\n}",
"func (_LvRecordableStream *LvRecordableStreamFilterer) FilterLogPayment(opts *bind.FilterOpts) (*LvRecordableStreamLogPaymentIterator, error) {\n\n\tlogs, sub, err := _LvRecordableStream.contract.FilterLogs(opts, \"LogPayment\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &LvRecordableStreamLogPaymentIterator{contract: _LvRecordableStream.contract, event: \"LogPayment\", logs: logs, sub: sub}, nil\n}",
"func (s *Plugin) Match(ctx context.Context, request *interact.Request, condition *v1alpha1.MockAPI_Condition) (match bool, err error) {\n\tsimple := condition.GetSimple()\n\tif simple == nil {\n\t\treturn false, nil\n\t}\n\tc := core.NewContext(request)\n\tfor _, item := range simple.Items {\n\t\toperandX := core.Render(c, item.OperandX)\n\t\toperandY := core.Render(c, item.OperandY)\n\t\tmatched, err := core.Match(operandX, item.Operator, operandY)\n\t\tif err != nil {\n\t\t\treturn false, err\n\t\t}\n\t\tif item.Opposite {\n\t\t\tmatched = !matched\n\t\t}\n\t\tif matched {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t\tcontinue\n\t\t} else {\n\t\t\tif simple.UseOrAmongItems {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn false, nil\n\t\t}\n\t}\n\treturn true, nil\n}",
"func (m Match) Filter() stathat.Filter {\n\tvar includes, excludes []stathat.Filter\n\tfor _, pattern := range m.Include {\n\t\tincludes = append(includes, statmatch.Name(pattern))\n\t}\n\tfor _, pattern := range m.Exclude {\n\t\texcludes = append(excludes, statmatch.Name(pattern))\n\t}\n\treturn statmatch.All(statmatch.Any(includes...), statmatch.None(excludes...))\n}",
"func (f *SessionTrackerFilter) Match(s SessionTracker) bool {\n\tif f.Kind != \"\" && string(s.GetSessionKind()) != f.Kind {\n\t\treturn false\n\t}\n\tif f.State != nil && s.GetState() != f.State.State {\n\t\treturn false\n\t}\n\tif f.DesktopName != \"\" && s.GetDesktopName() != f.DesktopName {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (_Bindings *BindingsFilterer) FilterRedeem(opts *bind.FilterOpts) (*BindingsRedeemIterator, error) {\n\n\tlogs, sub, err := _Bindings.contract.FilterLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BindingsRedeemIterator{contract: _Bindings.contract, event: \"Redeem\", logs: logs, sub: sub}, nil\n}",
"func (_EthCrossChain *EthCrossChainFilterer) FilterCrossChainEvent(opts *bind.FilterOpts, sender []common.Address) (*EthCrossChainCrossChainEventIterator, error) {\n\n\tvar senderRule []interface{}\n\tfor _, senderItem := range sender {\n\t\tsenderRule = append(senderRule, senderItem)\n\t}\n\n\tlogs, sub, err := _EthCrossChain.contract.FilterLogs(opts, \"CrossChainEvent\", senderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &EthCrossChainCrossChainEventIterator{contract: _EthCrossChain.contract, event: \"CrossChainEvent\", logs: logs, sub: sub}, nil\n}",
"func Match(op aof.Operation, filter Filter, inverse bool) bool {\n\trCode := false\n\tif inverse {\n\t\trCode = true\n\t}\n\tif filter.Command != nil && filter.Command.FindStringIndex(strings.ToUpper(op.Command)) == nil {\n\t\treturn rCode\n\t}\n\tif filter.SubOp != nil && filter.SubOp.FindStringIndex(strings.ToUpper(op.SubOp)) == nil {\n\t\treturn rCode\n\t}\n\tif filter.Key != nil && filter.Key.FindStringIndex(op.Key) == nil {\n\t\treturn rCode\n\t}\n\tif filter.Parameter == nil {\n\t\treturn !rCode\n\t}\n\tfor _, p := range op.Arguments {\n\t\tif filter.Parameter.FindStringIndex(p) != nil {\n\t\t\treturn !rCode\n\t\t}\n\t}\n\treturn rCode\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrderApprovedPartOne(opts *bind.FilterOpts, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (*WyvernExchangeOrderApprovedPartOneIterator, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrderApprovedPartOneIterator{contract: _WyvernExchange.contract, event: \"OrderApprovedPartOne\", logs: logs, sub: sub}, nil\n}",
"func (_Abi *AbiFilterer) FilterLogTokensLocked(opts *bind.FilterOpts, token [][32]byte, sender [][32]byte) (*AbiLogTokensLockedIterator, error) {\n\n\tvar tokenRule []interface{}\n\tfor _, tokenItem := range token {\n\t\ttokenRule = append(tokenRule, tokenItem)\n\t}\n\tvar senderRule []interface{}\n\tfor _, senderItem := range sender {\n\t\tsenderRule = append(senderRule, senderItem)\n\t}\n\n\tlogs, sub, err := _Abi.contract.FilterLogs(opts, \"LogTokensLocked\", tokenRule, senderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AbiLogTokensLockedIterator{contract: _Abi.contract, event: \"LogTokensLocked\", logs: logs, sub: sub}, nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) FilterGroupRegistered(opts *bind.FilterOpts, groupId []uint64, groupPubKey [][]byte) (*RandomBeaconGroupRegisteredIterator, error) {\n\n\tvar groupIdRule []interface{}\n\tfor _, groupIdItem := range groupId {\n\t\tgroupIdRule = append(groupIdRule, groupIdItem)\n\t}\n\tvar groupPubKeyRule []interface{}\n\tfor _, groupPubKeyItem := range groupPubKey {\n\t\tgroupPubKeyRule = append(groupPubKeyRule, groupPubKeyItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.FilterLogs(opts, \"GroupRegistered\", groupIdRule, groupPubKeyRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RandomBeaconGroupRegisteredIterator{contract: _RandomBeacon.contract, event: \"GroupRegistered\", logs: logs, sub: sub}, nil\n}",
"func (mf *ElementFilter) Match(g common.Getter) bool {\n\treturn mf.filter.Eval(g)\n}",
"func (match RxMatch) Match(pkt *pktmbuf.Packet) bool {\n\treturn bool(C.EthRxMatch_Match((*C.EthRxMatch)(&match), (*C.struct_rte_mbuf)(pkt.Ptr())))\n}",
"func (_EtherDelta *EtherDeltaCaller) Orders(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _EtherDelta.contract.Call(opts, out, \"orders\", arg0, arg1)\n\treturn *ret0, err\n}",
"func (_Erc777 *Erc777Filterer) FilterSent(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*Erc777SentIterator, error) {\n\n\tvar operatorRule []interface{}\n\tfor _, operatorItem := range operator {\n\t\toperatorRule = append(operatorRule, operatorItem)\n\t}\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _Erc777.contract.FilterLogs(opts, \"Sent\", operatorRule, fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc777SentIterator{contract: _Erc777.contract, event: \"Sent\", logs: logs, sub: sub}, nil\n}",
"func (_EtherDelta *EtherDeltaSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {\n\treturn _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)\n}",
"func (fs Filters) Matching(endpoint Endpoint) Filters {\n\tmatchedFilters := make([]Filter, 0)\n\tmatchedNames := make([]string, 0)\n\tfor _, filter := range fs {\n\t\tif len(filter.FilterMatchers()) == 0 {\n\t\t\tmatchedFilters = append(matchedFilters, filter)\n\t\t\tmatchedNames = append(matchedNames, filter.Name())\n\t\t}\n\t\tmatches, err := Matching(filter.FilterMatchers(), endpoint)\n\t\tif err != nil {\n\t\t\tpanic(fmt.Sprintf(\"error matching filter %s: %s\", filter.Name(), err.Error()))\n\t\t}\n\t\tif matches {\n\t\t\tmatchedFilters = append(matchedFilters, filter)\n\t\t\tmatchedNames = append(matchedNames, filter.Name())\n\t\t}\n\t}\n\tlog.D().Debugf(\"Filters for %s %s:%v\", endpoint.Method, endpoint.Path, matchedNames)\n\treturn matchedFilters\n}",
"func genPresentMatchHeaderFilter(headerName string) *access_logv3.AccessLogFilter_HeaderFilter {\n\treturn &access_logv3.AccessLogFilter_HeaderFilter{\n\t\tHeaderFilter: &access_logv3.HeaderFilter{\n\t\t\tHeader: &envoy_config_route_v3.HeaderMatcher{\n\t\t\t\tName: soapActionHeaderName,\n\t\t\t\tHeaderMatchSpecifier: &envoy_config_route_v3.HeaderMatcher_PresentMatch{\n\t\t\t\t\tPresentMatch: true,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n}",
"func (_Registry *RegistryFilterer) FilterRegistryKeeperUpdated(opts *bind.FilterOpts) (*RegistryRegistryKeeperUpdatedIterator, error) {\n\n\tlogs, sub, err := _Registry.contract.FilterLogs(opts, \"RegistryKeeperUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RegistryRegistryKeeperUpdatedIterator{contract: _Registry.contract, event: \"RegistryKeeperUpdated\", logs: logs, sub: sub}, nil\n}",
"func (_Harberger *HarbergerFilterer) FilterPrice(opts *bind.FilterOpts, _tokenId []*big.Int) (*HarbergerPriceIterator, error) {\n\n\tvar _tokenIdRule []interface{}\n\tfor _, _tokenIdItem := range _tokenId {\n\t\t_tokenIdRule = append(_tokenIdRule, _tokenIdItem)\n\t}\n\n\tlogs, sub, err := _Harberger.contract.FilterLogs(opts, \"Price\", _tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HarbergerPriceIterator{contract: _Harberger.contract, event: \"Price\", logs: logs, sub: sub}, nil\n}",
"func (_LvRecording *LvRecordingFilterer) FilterLogPayment(opts *bind.FilterOpts) (*LvRecordingLogPaymentIterator, error) {\n\n\tlogs, sub, err := _LvRecording.contract.FilterLogs(opts, \"LogPayment\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &LvRecordingLogPaymentIterator{contract: _LvRecording.contract, event: \"LogPayment\", logs: logs, sub: sub}, nil\n}",
"func (_HbSwap *HbSwapFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *HbSwapTrade) (event.Subscription, error) {\n\n\tlogs, sub, err := _HbSwap.contract.WatchLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HbSwapTrade)\n\t\t\t\tif err := _HbSwap.contract.UnpackLog(event, \"Trade\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (handler *dbHandler) equalToFilterJSON(writer http.ResponseWriter, request *http.Request) {\n\t//generate the filtered buildings by passing appropriate comparison parameters\n\tbuildings, err := handler.equalityFilter(writer, request, \"$eq\")\n\tif err != nil {\n\t\tfmt.Fprintln(writer, err.Error())\n\t}\n\n\t//write the JSON output of the filtered list to the screen\n\twriter.Header().Set(\"Content-type\", \"application/json\")\n\tjson.NewEncoder(writer).Encode(buildings)\n}",
"func (_EtherDelta *EtherDeltaCallerSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {\n\treturn _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)\n}",
"func (h *Hbdm) HistoryOrders(symbol string, tradeType, orderType, status, create int, pageIndex, pageSize *int) (orders *OrdersResponse, err error) {\n\tpayload := make(map[string]interface{}, 7)\n\tpayload[\"symbol\"] = symbol\n\tpayload[\"trade_type\"] = tradeType\n\tpayload[\"type\"] = orderType\n\tpayload[\"status\"] = status\n\tpayload[\"create_date\"] = create\n\n\tif pageIndex != nil {\n\t\tpayload[\"page_index\"] = *pageIndex\n\t}\n\tif pageSize != nil {\n\t\tpayload[\"page_size\"] = *pageSize\n\t}\n\n\tr, err := h.client.do(\"POST\", \"contract_hisorders\", payload, true)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tvar response interface{}\n\tif err = json.Unmarshal(r, &response); err != nil {\n\t\treturn\n\t}\n\n\tif err = handleErr(response); err != nil {\n\t\treturn\n\t}\n\n\terr = json.Unmarshal(r, &orders)\n\treturn\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchPurchased(opts *bind.WatchOpts, sink chan<- *CrowdsalePurchased, addr []common.Address) (event.Subscription, error) {\n\n\tvar addrRule []interface{}\n\tfor _, addrItem := range addr {\n\t\taddrRule = append(addrRule, addrItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"Purchased\", addrRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsalePurchased)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"Purchased\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (o MetadataFilterResponseOutput) FilterMatchCriteria() pulumi.StringOutput {\n\treturn o.ApplyT(func(v MetadataFilterResponse) string { return v.FilterMatchCriteria }).(pulumi.StringOutput)\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_WandappBase *WandappBaseFilterer) FilterHashEvent(opts *bind.FilterOpts) (*WandappBaseHashEventIterator, error) {\n\n\tlogs, sub, err := _WandappBase.contract.FilterLogs(opts, \"HashEvent\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WandappBaseHashEventIterator{contract: _WandappBase.contract, event: \"HashEvent\", logs: logs, sub: sub}, nil\n}",
"func (r *Router) IsMatch(e map[string]interface{}) bool {\n\tif v, ok := e[\"Records\"].([]interface{}); ok && len(v) > 0 {\n\t\treturn v[0].(map[string]interface{})[\"EventSource\"] == EventSource\n\t}\n\treturn false\n}",
"func (q QueryData) MatchesFilter(g types.Geo) bool {\n\tswitch q.qtype {\n\tcase QueryTypeWithin:\n\t\treturn q.isWithin(g)\n\tcase QueryTypeContains:\n\t\treturn q.contains(g)\n\tcase QueryTypeIntersects:\n\t\treturn q.intersects(g)\n\tcase QueryTypeNear:\n\t\tif q.cap == nil {\n\t\t\treturn false\n\t\t}\n\t\treturn q.isWithin(g)\n\t}\n\treturn false\n}"
] | [
"0.7500153",
"0.579963",
"0.5719274",
"0.5589109",
"0.5532492",
"0.5516892",
"0.528689",
"0.52654773",
"0.5257139",
"0.5252423",
"0.5234537",
"0.50740993",
"0.5063035",
"0.5045788",
"0.49785823",
"0.49134934",
"0.48956874",
"0.48178324",
"0.47913796",
"0.47876918",
"0.4768117",
"0.47522274",
"0.47449806",
"0.47333768",
"0.47246474",
"0.4677684",
"0.46667546",
"0.46628982",
"0.46596873",
"0.46357092",
"0.4635399",
"0.46179157",
"0.4574286",
"0.45728743",
"0.4569204",
"0.45684716",
"0.45640087",
"0.45386443",
"0.45301515",
"0.4523349",
"0.4515792",
"0.4505471",
"0.44993562",
"0.44973984",
"0.44880182",
"0.4459589",
"0.44494548",
"0.44367334",
"0.44354722",
"0.44296056",
"0.4424367",
"0.44186607",
"0.4415829",
"0.44010067",
"0.44009182",
"0.43997595",
"0.43832374",
"0.43810886",
"0.4376804",
"0.4376078",
"0.43744236",
"0.43739033",
"0.43667883",
"0.43667883",
"0.43614906",
"0.4360987",
"0.43561885",
"0.4352088",
"0.43462384",
"0.43435788",
"0.4341815",
"0.4340865",
"0.4339521",
"0.43378404",
"0.43327314",
"0.4325446",
"0.43200618",
"0.4317963",
"0.43178517",
"0.43171805",
"0.43156618",
"0.4314519",
"0.4311074",
"0.43078637",
"0.42984477",
"0.42938522",
"0.4290011",
"0.42858228",
"0.42769155",
"0.42703253",
"0.42689458",
"0.426614",
"0.42652488",
"0.42637444",
"0.42608652",
"0.42554933",
"0.42526242",
"0.4251518",
"0.42489153",
"0.42440593"
] | 0.7677756 | 0 |
WatchOrdersMatched is a free log subscription operation binding the contract event 0xc4109843e0b7d514e4c093114b863f8e7d8d9a458c372cd51bfe526b588006c9. Solidity: event OrdersMatched(bytes32 buyHash, bytes32 sellHash, address indexed maker, address indexed taker, uint256 price, bytes32 indexed metadata) | func (_WyvernExchange *WyvernExchangeFilterer) WatchOrdersMatched(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrdersMatched, maker []common.Address, taker []common.Address, metadata [][32]byte) (event.Subscription, error) {
var makerRule []interface{}
for _, makerItem := range maker {
makerRule = append(makerRule, makerItem)
}
var takerRule []interface{}
for _, takerItem := range taker {
takerRule = append(takerRule, takerItem)
}
var metadataRule []interface{}
for _, metadataItem := range metadata {
metadataRule = append(metadataRule, metadataItem)
}
logs, sub, err := _WyvernExchange.contract.WatchLogs(opts, "OrdersMatched", makerRule, takerRule, metadataRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(WyvernExchangeOrdersMatched)
if err := _WyvernExchange.contract.UnpackLog(event, "OrdersMatched", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOrdersMatched(opts *bind.FilterOpts, maker []common.Address, taker []common.Address, metadata [][32]byte) (*WyvernExchangeOrdersMatchedIterator, error) {\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\tvar takerRule []interface{}\n\tfor _, takerItem := range taker {\n\t\ttakerRule = append(takerRule, takerItem)\n\t}\n\n\tvar metadataRule []interface{}\n\tfor _, metadataItem := range metadata {\n\t\tmetadataRule = append(metadataRule, metadataItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OrdersMatched\", makerRule, takerRule, metadataRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOrdersMatchedIterator{contract: _WyvernExchange.contract, event: \"OrdersMatched\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartTwo(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartTwo, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartTwo\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartTwo)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartTwo\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchOrder(opts *bind.WatchOpts, sink chan<- *EtherDeltaOrder) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Order\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaOrder)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Order\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeCaller) OrdersCanMatch(opts *bind.CallOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\tvar (\n\t\tret0 = new(bool)\n\t)\n\tout := ret0\n\terr := _WyvernExchange.contract.Call(opts, out, \"ordersCanMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n\treturn *ret0, err\n}",
"func (_WyvernExchange *WyvernExchangeCallerSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_WyvernExchange *WyvernExchangeSession) OrdersCanMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte) (bool, error) {\n\treturn _WyvernExchange.Contract.OrdersCanMatch(&_WyvernExchange.CallOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell)\n}",
"func (_Token *TokenFilterer) WatchEthPurchase(opts *bind.WatchOpts, sink chan<- *TokenEthPurchase, buyer []common.Address, tokens_sold []*big.Int, eth_bought []*big.Int) (event.Subscription, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar tokens_soldRule []interface{}\n\tfor _, tokens_soldItem := range tokens_sold {\n\t\ttokens_soldRule = append(tokens_soldRule, tokens_soldItem)\n\t}\n\tvar eth_boughtRule []interface{}\n\tfor _, eth_boughtItem := range eth_bought {\n\t\teth_boughtRule = append(eth_boughtRule, eth_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"EthPurchase\", buyerRule, tokens_soldRule, eth_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenEthPurchase)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"EthPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *TokenTokenPurchase, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (event.Subscription, error) {\n\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\tvar eth_soldRule []interface{}\n\tfor _, eth_soldItem := range eth_sold {\n\t\teth_soldRule = append(eth_soldRule, eth_soldItem)\n\t}\n\tvar tokens_boughtRule []interface{}\n\tfor _, tokens_boughtItem := range tokens_bought {\n\t\ttokens_boughtRule = append(tokens_boughtRule, tokens_boughtItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"TokenPurchase\", buyerRule, eth_soldRule, tokens_boughtRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenTokenPurchase)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"TokenPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (h *HUOBI) GetOrdersMatch(ctx context.Context, symbol currency.Pair, types, start, end, from, direct, size string) ([]OrderMatchInfo, error) {\n\tresp := struct {\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}{}\n\n\tvals := url.Values{}\n\tsymbolValue, err := h.FormatSymbol(symbol, asset.Spot)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvals.Set(\"symbol\", symbolValue)\n\n\tif types != \"\" {\n\t\tvals.Set(\"types\", types)\n\t}\n\n\tif start != \"\" {\n\t\tvals.Set(\"start-date\", start)\n\t}\n\n\tif end != \"\" {\n\t\tvals.Set(\"end-date\", end)\n\t}\n\n\tif from != \"\" {\n\t\tvals.Set(\"from\", from)\n\t}\n\n\tif direct != \"\" {\n\t\tvals.Set(\"direct\", direct)\n\t}\n\n\tif size != \"\" {\n\t\tvals.Set(\"size\", size)\n\t}\n\n\terr = h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodGet, huobiGetOrdersMatch, vals, nil, &resp, false)\n\treturn resp.Orders, err\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderApprovedPartOne(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderApprovedPartOne, hash [][32]byte, maker []common.Address, feeRecipient []common.Address) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar makerRule []interface{}\n\tfor _, makerItem := range maker {\n\t\tmakerRule = append(makerRule, makerItem)\n\t}\n\n\tvar feeRecipientRule []interface{}\n\tfor _, feeRecipientItem := range feeRecipient {\n\t\tfeeRecipientRule = append(feeRecipientRule, feeRecipientItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderApprovedPartOne\", hashRule, makerRule, feeRecipientRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderApprovedPartOne)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderApprovedPartOne\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BREMICO *BREMICOFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *BREMICOTokenPurchase, purchaser []common.Address, beneficiary []common.Address) (event.Subscription, error) {\n\n\tvar purchaserRule []interface{}\n\tfor _, purchaserItem := range purchaser {\n\t\tpurchaserRule = append(purchaserRule, purchaserItem)\n\t}\n\tvar beneficiaryRule []interface{}\n\tfor _, beneficiaryItem := range beneficiary {\n\t\tbeneficiaryRule = append(beneficiaryRule, beneficiaryItem)\n\t}\n\n\tlogs, sub, err := _BREMICO.contract.WatchLogs(opts, \"TokenPurchase\", purchaserRule, beneficiaryRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMICOTokenPurchase)\n\t\t\t\tif err := _BREMICO.contract.UnpackLog(event, \"TokenPurchase\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchOperatorRegistered(opts *bind.WatchOpts, sink chan<- *RandomBeaconOperatorRegistered, stakingProvider []common.Address, operator []common.Address) (event.Subscription, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\tvar operatorRule []interface{}\n\tfor _, operatorItem := range operator {\n\t\toperatorRule = append(operatorRule, operatorItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"OperatorRegistered\", stakingProviderRule, operatorRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconOperatorRegistered)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"OperatorRegistered\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IStaking *IStakingFilterer) WatchRegistered(opts *bind.WatchOpts, sink chan<- *IStakingRegistered, oracle []common.Address) (event.Subscription, error) {\n\n\tvar oracleRule []interface{}\n\tfor _, oracleItem := range oracle {\n\t\toracleRule = append(oracleRule, oracleItem)\n\t}\n\n\tlogs, sub, err := _IStaking.contract.WatchLogs(opts, \"Registered\", oracleRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IStakingRegistered)\n\t\t\t\tif err := _IStaking.contract.UnpackLog(event, \"Registered\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchPurchased(opts *bind.WatchOpts, sink chan<- *CrowdsalePurchased, addr []common.Address) (event.Subscription, error) {\n\n\tvar addrRule []interface{}\n\tfor _, addrItem := range addr {\n\t\taddrRule = append(addrRule, addrItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"Purchased\", addrRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsalePurchased)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"Purchased\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchWalletUpdated(opts *bind.WatchOpts, sink chan<- *CrowdsaleWalletUpdated, oldWallet []common.Address, newWallet []common.Address) (event.Subscription, error) {\n\n\tvar oldWalletRule []interface{}\n\tfor _, oldWalletItem := range oldWallet {\n\t\toldWalletRule = append(oldWalletRule, oldWalletItem)\n\t}\n\tvar newWalletRule []interface{}\n\tfor _, newWalletItem := range newWallet {\n\t\tnewWalletRule = append(newWalletRule, newWalletItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"WalletUpdated\", oldWalletRule, newWalletRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsaleWalletUpdated)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"WalletUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (h *HUOBIHADAX) GetOrdersMatch(symbol, types, start, end, from, direct, size string) ([]OrderMatchInfo, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}\n\n\tvals := url.Values{}\n\tvals.Set(\"symbol\", symbol)\n\n\tif types != \"\" {\n\t\tvals.Set(\"types\", types)\n\t}\n\n\tif start != \"\" {\n\t\tvals.Set(\"start-date\", start)\n\t}\n\n\tif end != \"\" {\n\t\tvals.Set(\"end-date\", end)\n\t}\n\n\tif from != \"\" {\n\t\tvals.Set(\"from\", from)\n\t}\n\n\tif direct != \"\" {\n\t\tvals.Set(\"direct\", direct)\n\t}\n\n\tif size != \"\" {\n\t\tvals.Set(\"size\", size)\n\t}\n\n\tvar result response\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodGet, huobihadaxGetOrdersMatch, vals, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn nil, errors.New(result.ErrorMessage)\n\t}\n\treturn result.Orders, err\n}",
"func (kc *Keychain) Match(owners *secp256k1fx.OutputOwners, time uint64) bool {\n\tif time < owners.Locktime || owners.Threshold != 1 || len(owners.Addrs) != 1 || !kc.Addrs.Contains(owners.Addrs[0]) {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (_HbSwap *HbSwapFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *HbSwapTrade) (event.Subscription, error) {\n\n\tlogs, sub, err := _HbSwap.contract.WatchLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HbSwapTrade)\n\t\t\t\tif err := _HbSwap.contract.UnpackLog(event, \"Trade\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *Erc20MockMinterAdded, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"MinterAdded\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockMinterAdded)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"MinterAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VorRandomnessRequestMockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(VorRandomnessRequestMockOwnershipTransferred)\n\t\t\t\tif err := _VorRandomnessRequestMock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func orderMatchCompare(l, r *Order) (matched bool, msg string) {\n\t// Market order at any side is tradable\n\tif l.Type == pb.OrderType_MARKET || r.Type == pb.OrderType_MARKET {\n\t\treturn true, \"a market match\"\n\t}\n\tvar bid, ask *Order\n\tif l.Side == pb.OrderSide_BID {\n\t\tbid, ask = l, r\n\t} else {\n\t\tbid, ask = r, l\n\t}\n\tmatched = (bid.Price.Cmp(ask.Price) >= 0)\n\tif !matched {\n\t\tmsg = fmt.Sprintf(\"not match because bid price %v, ask price %v\", bid, ask)\n\t}\n\tmsg = fmt.Sprintf(\"matched because bid price %v, ask price %v\", bid, ask)\n\treturn\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchRoyaltyCrowdsaleUpdated(opts *bind.WatchOpts, sink chan<- *CrowdsaleRoyaltyCrowdsaleUpdated, oldRoyaltyCrowdsaleAddress []common.Address, newRoyaltyCrowdsaleAddres []common.Address) (event.Subscription, error) {\n\n\tvar oldRoyaltyCrowdsaleAddressRule []interface{}\n\tfor _, oldRoyaltyCrowdsaleAddressItem := range oldRoyaltyCrowdsaleAddress {\n\t\toldRoyaltyCrowdsaleAddressRule = append(oldRoyaltyCrowdsaleAddressRule, oldRoyaltyCrowdsaleAddressItem)\n\t}\n\tvar newRoyaltyCrowdsaleAddresRule []interface{}\n\tfor _, newRoyaltyCrowdsaleAddresItem := range newRoyaltyCrowdsaleAddres {\n\t\tnewRoyaltyCrowdsaleAddresRule = append(newRoyaltyCrowdsaleAddresRule, newRoyaltyCrowdsaleAddresItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"RoyaltyCrowdsaleUpdated\", oldRoyaltyCrowdsaleAddressRule, newRoyaltyCrowdsaleAddresRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsaleRoyaltyCrowdsaleUpdated)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"RoyaltyCrowdsaleUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (rig *testRig) checkMatchNotification(msg *msgjson.Message, oid order.OrderID, counterAddr string) error {\n\tmatchInfo := rig.matchInfo\n\tvar notes []*msgjson.Match\n\terr := json.Unmarshal(msg.Payload, ¬es)\n\tif err != nil {\n\t\tfmt.Printf(\"checkMatchNotification unmarshal error: %v\\n\", err)\n\t}\n\tvar notification *msgjson.Match\n\tfor _, n := range notes {\n\t\tif bytes.Equal(n.MatchID, matchInfo.matchID[:]) {\n\t\t\tnotification = n\n\t\t\tbreak\n\t\t}\n\t\tif err = checkSigS256(n, rig.auth.privkey.PubKey()); err != nil {\n\t\t\treturn fmt.Errorf(\"incorrect server signature: %w\", err)\n\t\t}\n\t}\n\tif notification == nil {\n\t\treturn fmt.Errorf(\"did not find match ID %s in match notifications\", matchInfo.matchID)\n\t}\n\tif notification.OrderID.String() != oid.String() {\n\t\treturn fmt.Errorf(\"expected order ID %s, got %s\", oid, notification.OrderID)\n\t}\n\tif notification.Quantity != matchInfo.qty {\n\t\treturn fmt.Errorf(\"expected order quantity %d, got %d\", matchInfo.qty, notification.Quantity)\n\t}\n\tif notification.Rate != matchInfo.rate {\n\t\treturn fmt.Errorf(\"expected match rate %d, got %d\", matchInfo.rate, notification.Rate)\n\t}\n\tif notification.Address != counterAddr {\n\t\treturn fmt.Errorf(\"expected match address %s, got %s\", counterAddr, notification.Address)\n\t}\n\treturn nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOrderCancelled, hash [][32]byte) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OrderCancelled\", hashRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOrderCancelled)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OrderCancelled\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_EtherDelta *EtherDeltaFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *EtherDeltaTrade) (event.Subscription, error) {\n\n\tlogs, sub, err := _EtherDelta.contract.WatchLogs(opts, \"Trade\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EtherDeltaTrade)\n\t\t\t\tif err := _EtherDelta.contract.UnpackLog(event, \"Trade\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20MockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockOwnershipTransferred)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_KNS *KNSFilterer) WatchLostedKey(opts *bind.WatchOpts, sink chan<- *KNSLostedKey, tel []string, Jid []string, new_wallet []common.Address) (event.Subscription, error) {\n\n\tvar telRule []interface{}\n\tfor _, telItem := range tel {\n\t\ttelRule = append(telRule, telItem)\n\t}\n\tvar JidRule []interface{}\n\tfor _, JidItem := range Jid {\n\t\tJidRule = append(JidRule, JidItem)\n\t}\n\tvar new_walletRule []interface{}\n\tfor _, new_walletItem := range new_wallet {\n\t\tnew_walletRule = append(new_walletRule, new_walletItem)\n\t}\n\n\tlogs, sub, err := _KNS.contract.WatchLogs(opts, \"LostedKey\", telRule, JidRule, new_walletRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KNSLostedKey)\n\t\t\t\tif err := _KNS.contract.UnpackLog(event, \"LostedKey\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchBonusOffListUpdated(opts *bind.WatchOpts, sink chan<- *CrowdsaleBonusOffListUpdated) (event.Subscription, error) {\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"BonusOffListUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsaleBonusOffListUpdated)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"BonusOffListUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Contract *ContractFilterer) WatchBuyPixel(opts *bind.WatchOpts, sink chan<- *ContractBuyPixel, id [][32]byte, seller []common.Address, buyer []common.Address) (event.Subscription, error) {\n\n\tvar idRule []interface{}\n\tfor _, idItem := range id {\n\t\tidRule = append(idRule, idItem)\n\t}\n\tvar sellerRule []interface{}\n\tfor _, sellerItem := range seller {\n\t\tsellerRule = append(sellerRule, sellerItem)\n\t}\n\tvar buyerRule []interface{}\n\tfor _, buyerItem := range buyer {\n\t\tbuyerRule = append(buyerRule, buyerItem)\n\t}\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"BuyPixel\", idRule, sellerRule, buyerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractBuyPixel)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"BuyPixel\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokensNetwork *TokensNetworkFilterer) WatchBalanceProofUpdated(opts *bind.WatchOpts, sink chan<- *TokensNetworkBalanceProofUpdated, channel_identifier [][32]byte) (event.Subscription, error) {\n\n\tvar channel_identifierRule []interface{}\n\tfor _, channel_identifierItem := range channel_identifier {\n\t\tchannel_identifierRule = append(channel_identifierRule, channel_identifierItem)\n\t}\n\n\tlogs, sub, err := _TokensNetwork.contract.WatchLogs(opts, \"BalanceProofUpdated\", channel_identifierRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokensNetworkBalanceProofUpdated)\n\t\t\t\tif err := _TokensNetwork.contract.UnpackLog(event, \"BalanceProofUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchRewardAdded(opts *bind.WatchOpts, sink chan<- *XStakingRewardAdded) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"RewardAdded\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingRewardAdded)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"RewardAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_CraftingI *CraftingIFilterer) WatchCrafted(opts *bind.WatchOpts, sink chan<- *CraftingICrafted, owner []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\n\tlogs, sub, err := _CraftingI.contract.WatchLogs(opts, \"Crafted\", ownerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CraftingICrafted)\n\t\t\t\tif err := _CraftingI.contract.UnpackLog(event, \"Crafted\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactor) AtomicMatch(opts *bind.TransactOpts, addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.contract.Transact(opts, \"atomicMatch_\", addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (h *HUOBI) GetOrderMatchResults(ctx context.Context, orderID int64) ([]OrderMatchInfo, error) {\n\tresp := struct {\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}{}\n\tendpoint := fmt.Sprintf(huobiGetOrderMatch, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(ctx, exchange.RestSpot, http.MethodGet, endpoint, url.Values{}, nil, &resp, false)\n\treturn resp.Orders, err\n}",
"func (_TokenVesting *TokenVestingFilterer) WatchReleased(opts *bind.WatchOpts, sink chan<- *TokenVestingReleased, token []common.Address) (event.Subscription, error) {\n\n\tvar tokenRule []interface{}\n\tfor _, tokenItem := range token {\n\t\ttokenRule = append(tokenRule, tokenItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.WatchLogs(opts, \"Released\", tokenRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenVestingReleased)\n\t\t\t\tif err := _TokenVesting.contract.UnpackLog(event, \"Released\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchRecovered(opts *bind.WatchOpts, sink chan<- *XStakingRecovered) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"Recovered\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingRecovered)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"Recovered\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeTransactorSession) AtomicMatch(addrs [14]common.Address, uints [18]*big.Int, feeMethodsSidesKindsHowToCalls [8]uint8, calldataBuy []byte, calldataSell []byte, replacementPatternBuy []byte, replacementPatternSell []byte, staticExtradataBuy []byte, staticExtradataSell []byte, vs [2]uint8, rssMetadata [5][32]byte) (*types.Transaction, error) {\n\treturn _WyvernExchange.Contract.AtomicMatch(&_WyvernExchange.TransactOpts, addrs, uints, feeMethodsSidesKindsHowToCalls, calldataBuy, calldataSell, replacementPatternBuy, replacementPatternSell, staticExtradataBuy, staticExtradataSell, vs, rssMetadata)\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchRegistryKeeperUpdated(opts *bind.WatchOpts, sink chan<- *KeepRegistryRegistryKeeperUpdated) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"RegistryKeeperUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryRegistryKeeperUpdated)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"RegistryKeeperUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func MatchOrdersInternally(buy *Order, sell *Order) *Trade {\n\tbuyState := buy.GetState()\n\tsellState := sell.GetState()\n\n\t// Sanity checks\n\tif buyState.State == OrderStateCreated {\n\t\tpanic(\"buy order incorect state: created\")\n\t} else if buyState.State == OrderStateFilled {\n\t\tpanic(\"buy order incorect state: filled\")\n\t} else if buyState.State == OrderStateCancelled {\n\t\tpanic(\"buy order incorect state: cancelled\")\n\t} else if sellState.State == OrderStateCreated {\n\t\tpanic(\"sell order incorect state: created\")\n\t} else if sellState.State == OrderStateFilled {\n\t\tpanic(\"sell order incorect state: filled\")\n\t} else if sellState.State == OrderStateCancelled {\n\t\tpanic(\"sell order incorect state: cancelled\")\n\t}\n\tif buy.Ticker != sell.Ticker {\n\t\tpanic(\"cant match orders with different tickers\")\n\t}\n\n\t// Main procedure\n\tvar extTime time.Time\n\tvar buyInit bool\n\tvar matchVolume float64\n\tvar price float64\n\n\t// Get match time\n\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\textTime = buyState.TimeExt\n\t} else {\n\t\textTime = sellState.TimeExt\n\t}\n\n\t// Get init order\n\tif buyState.TimeExt != sellState.TimeExt {\n\t\tif buyState.TimeExt.After(sellState.TimeExt) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t} else {\n\t\tif buyState.Time.After(sellState.Time) {\n\t\t\tbuyInit = true\n\t\t} else {\n\t\t\tbuyInit = false\n\t\t}\n\t}\n\n\t// Price\n\tif buyInit {\n\t\tprice = sell.Price\n\t} else {\n\t\tprice = buy.Price\n\t}\n\n\t// Volume matched\n\tif sellState.Balance > buyState.Balance {\n\t\tmatchVolume = buyState.Balance\n\t} else {\n\t\tmatchVolume = sellState.Balance\n\t}\n\n\ttrade := &Trade{\n\t\tTicker: buy.Ticker,\n\t\tTime: time.Now(),\n\t\tTimeExt: extTime,\n\t\tBuyInitiated: buyInit,\n\t\tVolume: matchVolume,\n\t\tPrice: price,\n\t}\n\tsell.RecordTrade(trade)\n\tbuy.RecordTrade(trade)\n\n\treturn trade\n}",
"func (h *ZmqBUF) Match(f metric.Filter) ([]metric.Metric, bool) {\n\tslice, ok := h.buffer.Match(f)\n\t//h.log.Debug(\"Filter result length: \", len(slice))\n\treturn slice, ok\n}",
"func (_Registry *RegistryFilterer) WatchRegistryKeeperUpdated(opts *bind.WatchOpts, sink chan<- *RegistryRegistryKeeperUpdated) (event.Subscription, error) {\n\n\tlogs, sub, err := _Registry.contract.WatchLogs(opts, \"RegistryKeeperUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RegistryRegistryKeeperUpdated)\n\t\t\t\tif err := _Registry.contract.UnpackLog(event, \"RegistryKeeperUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Harberger *HarbergerFilterer) WatchPrice(opts *bind.WatchOpts, sink chan<- *HarbergerPrice, _tokenId []*big.Int) (event.Subscription, error) {\n\n\tvar _tokenIdRule []interface{}\n\tfor _, _tokenIdItem := range _tokenId {\n\t\t_tokenIdRule = append(_tokenIdRule, _tokenIdItem)\n\t}\n\n\tlogs, sub, err := _Harberger.contract.WatchLogs(opts, \"Price\", _tokenIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HarbergerPrice)\n\t\t\t\tif err := _Harberger.contract.UnpackLog(event, \"Price\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IUniswapV2Factory *IUniswapV2FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *IUniswapV2FactoryPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error) {\r\n\r\n\tvar token0Rule []interface{}\r\n\tfor _, token0Item := range token0 {\r\n\t\ttoken0Rule = append(token0Rule, token0Item)\r\n\t}\r\n\tvar token1Rule []interface{}\r\n\tfor _, token1Item := range token1 {\r\n\t\ttoken1Rule = append(token1Rule, token1Item)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Factory.contract.WatchLogs(opts, \"PairCreated\", token0Rule, token1Rule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\r\n\t\tdefer sub.Unsubscribe()\r\n\t\tfor {\r\n\t\t\tselect {\r\n\t\t\tcase log := <-logs:\r\n\t\t\t\t// New log arrived, parse the event and forward to the user\r\n\t\t\t\tevent := new(IUniswapV2FactoryPairCreated)\r\n\t\t\t\tif err := _IUniswapV2Factory.contract.UnpackLog(event, \"PairCreated\", log); err != nil {\r\n\t\t\t\t\treturn err\r\n\t\t\t\t}\r\n\t\t\t\tevent.Raw = log\r\n\r\n\t\t\t\tselect {\r\n\t\t\t\tcase sink <- event:\r\n\t\t\t\tcase err := <-sub.Err():\r\n\t\t\t\t\treturn err\r\n\t\t\t\tcase <-quit:\r\n\t\t\t\t\treturn nil\r\n\t\t\t\t}\r\n\t\t\tcase err := <-sub.Err():\r\n\t\t\t\treturn err\r\n\t\t\tcase <-quit:\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t}\r\n\t}), nil\r\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchRedeemableAdded(opts *bind.WatchOpts, sink chan<- *ElvTradableRedeemableAdded) (event.Subscription, error) {\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"RedeemableAdded\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableRedeemableAdded)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"RedeemableAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchOperatorContractUpgraderUpdated(opts *bind.WatchOpts, sink chan<- *KeepRegistryOperatorContractUpgraderUpdated) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"OperatorContractUpgraderUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryOperatorContractUpgraderUpdated)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"OperatorContractUpgraderUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenStakingEscrowOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenStakingEscrowOwnershipTransferred)\n\t\t\t\tif err := _TokenStakingEscrow.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_AuthContract *AuthContractFilterer) WatchTriggered(opts *bind.WatchOpts, sink chan<- *AuthContractTriggered) (event.Subscription, error) {\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"Triggered\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractTriggered)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"Triggered\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchDkgResultChallenged(opts *bind.WatchOpts, sink chan<- *RandomBeaconDkgResultChallenged, resultHash [][32]byte, challenger []common.Address) (event.Subscription, error) {\n\n\tvar resultHashRule []interface{}\n\tfor _, resultHashItem := range resultHash {\n\t\tresultHashRule = append(resultHashRule, resultHashItem)\n\t}\n\tvar challengerRule []interface{}\n\tfor _, challengerItem := range challenger {\n\t\tchallengerRule = append(challengerRule, challengerItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"DkgResultChallenged\", resultHashRule, challengerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconDkgResultChallenged)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"DkgResultChallenged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *XStakingOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingOwnerChanged)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Redeemable *RedeemableFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *RedeemableMinterAdded, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _Redeemable.contract.WatchLogs(opts, \"MinterAdded\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RedeemableMinterAdded)\n\t\t\t\tif err := _Redeemable.contract.UnpackLog(event, \"MinterAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ERC20HecoManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20HecoManagerOwnershipTransferred)\n\t\t\t\tif err := _ERC20HecoManager.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WandappETH *WandappETHFilterer) WatchHashEvent(opts *bind.WatchOpts, sink chan<- *WandappETHHashEvent) (event.Subscription, error) {\n\n\tlogs, sub, err := _WandappETH.contract.WatchLogs(opts, \"HashEvent\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WandappETHHashEvent)\n\t\t\t\tif err := _WandappETH.contract.UnpackLog(event, \"HashEvent\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *ElvTradableMinterAdded, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"MinterAdded\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableMinterAdded)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"MinterAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchRegistrationRequested(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsRegistrationRequested, hash [][32]byte, upkeepContract []common.Address, source []uint8) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepContractRule []interface{}\n\tfor _, upkeepContractItem := range upkeepContract {\n\t\tupkeepContractRule = append(upkeepContractRule, upkeepContractItem)\n\t}\n\n\tvar sourceRule []interface{}\n\tfor _, sourceItem := range source {\n\t\tsourceRule = append(sourceRule, sourceItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"RegistrationRequested\", hashRule, upkeepContractRule, sourceRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsRegistrationRequested)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"RegistrationRequested\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RandomBeacon *RandomBeaconFilterer) WatchOperatorStatusUpdated(opts *bind.WatchOpts, sink chan<- *RandomBeaconOperatorStatusUpdated, stakingProvider []common.Address, operator []common.Address) (event.Subscription, error) {\n\n\tvar stakingProviderRule []interface{}\n\tfor _, stakingProviderItem := range stakingProvider {\n\t\tstakingProviderRule = append(stakingProviderRule, stakingProviderItem)\n\t}\n\tvar operatorRule []interface{}\n\tfor _, operatorItem := range operator {\n\t\toperatorRule = append(operatorRule, operatorItem)\n\t}\n\n\tlogs, sub, err := _RandomBeacon.contract.WatchLogs(opts, \"OperatorStatusUpdated\", stakingProviderRule, operatorRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RandomBeaconOperatorStatusUpdated)\n\t\t\t\tif err := _RandomBeacon.contract.UnpackLog(event, \"OperatorStatusUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchETHRewardDistributed(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepETHRewardDistributed) (event.Subscription, error) {\n\n\tlogs, sub, err := _BondedECDSAKeep.contract.WatchLogs(opts, \"ETHRewardDistributed\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BondedECDSAKeepETHRewardDistributed)\n\t\t\t\tif err := _BondedECDSAKeep.contract.UnpackLog(event, \"ETHRewardDistributed\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SushiV2Factory *SushiV2FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *SushiV2FactoryPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error) {\n\n\tvar token0Rule []interface{}\n\tfor _, token0Item := range token0 {\n\t\ttoken0Rule = append(token0Rule, token0Item)\n\t}\n\tvar token1Rule []interface{}\n\tfor _, token1Item := range token1 {\n\t\ttoken1Rule = append(token1Rule, token1Item)\n\t}\n\n\tlogs, sub, err := _SushiV2Factory.contract.WatchLogs(opts, \"PairCreated\", token0Rule, token1Rule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SushiV2FactoryPairCreated)\n\t\t\t\tif err := _SushiV2Factory.contract.UnpackLog(event, \"PairCreated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *ElvTradableRedeem) (event.Subscription, error) {\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableRedeem)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"Redeem\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RewardsDistributionRecipient *RewardsDistributionRecipientFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *RewardsDistributionRecipientOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _RewardsDistributionRecipient.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RewardsDistributionRecipientOwnerChanged)\n\t\t\t\tif err := _RewardsDistributionRecipient.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_KNS *KNSFilterer) WatchRegistred(opts *bind.WatchOpts, sink chan<- *KNSRegistred, Jid []string, tel []string) (event.Subscription, error) {\n\n\tvar JidRule []interface{}\n\tfor _, JidItem := range Jid {\n\t\tJidRule = append(JidRule, JidItem)\n\t}\n\tvar telRule []interface{}\n\tfor _, telItem := range tel {\n\t\ttelRule = append(telRule, telItem)\n\t}\n\n\tlogs, sub, err := _KNS.contract.WatchLogs(opts, \"Registred\", JidRule, telRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KNSRegistred)\n\t\t\t\tif err := _KNS.contract.UnpackLog(event, \"Registred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) WatchCoreStakeUpdated(opts *bind.WatchOpts, sink chan<- *ChpRegistryCoreStakeUpdated, _sender []common.Address) (event.Subscription, error) {\n\n\tvar _senderRule []interface{}\n\tfor _, _senderItem := range _sender {\n\t\t_senderRule = append(_senderRule, _senderItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.WatchLogs(opts, \"CoreStakeUpdated\", _senderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ChpRegistryCoreStakeUpdated)\n\t\t\t\tif err := _ChpRegistry.contract.UnpackLog(event, \"CoreStakeUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableOwnershipTransferred)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchRewardsDurationUpdated(opts *bind.WatchOpts, sink chan<- *XStakingRewardsDurationUpdated) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"RewardsDurationUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingRewardsDurationUpdated)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"RewardsDurationUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DetailedTestTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedTestTokenOwnershipTransferred)\n\t\t\t\tif err := _DetailedTestToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_GameJam *GameJamFilterer) WatchWinnerDeclared(opts *bind.WatchOpts, sink chan<- *GameJamWinnerDeclared) (event.Subscription, error) {\n\n\tlogs, sub, err := _GameJam.contract.WatchLogs(opts, \"WinnerDeclared\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(GameJamWinnerDeclared)\n\t\t\t\tif err := _GameJam.contract.UnpackLog(event, \"WinnerDeclared\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOwnershipTransferred)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(McapscontrollerOwnershipTransferred)\n\t\t\t\tif err := _Mcapscontroller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (s *OrderService) WatchChanges() {\n\tgo func() {\n\t\tfor {\n\t\t\t<-time.After(500 * time.Millisecond)\n\t\t\ts.processBulkOrders()\n\t\t}\n\t}()\n\ts.watchChanges()\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipRenounced)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_EthCrossChain *EthCrossChainFilterer) WatchCrossChainEvent(opts *bind.WatchOpts, sink chan<- *EthCrossChainCrossChainEvent, sender []common.Address) (event.Subscription, error) {\n\n\tvar senderRule []interface{}\n\tfor _, senderItem := range sender {\n\t\tsenderRule = append(senderRule, senderItem)\n\t}\n\n\tlogs, sub, err := _EthCrossChain.contract.WatchLogs(opts, \"CrossChainEvent\", senderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(EthCrossChainCrossChainEvent)\n\t\t\t\tif err := _EthCrossChain.contract.UnpackLog(event, \"CrossChainEvent\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOwnershipRenounced)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipTransferred)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_PBridge *PBridgeFilterer) WatchTxUpgradeCompleted(opts *bind.WatchOpts, sink chan<- *PBridgeTxUpgradeCompleted) (event.Subscription, error) {\n\n\tlogs, sub, err := _PBridge.contract.WatchLogs(opts, \"TxUpgradeCompleted\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PBridgeTxUpgradeCompleted)\n\t\t\t\tif err := _PBridge.contract.UnpackLog(event, \"TxUpgradeCompleted\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Contract *ContractFilterer) WatchDNSZonehashChanged(opts *bind.WatchOpts, sink chan<- *ContractDNSZonehashChanged, node [][32]byte) (event.Subscription, error) {\n\n\tvar nodeRule []interface{}\n\tfor _, nodeItem := range node {\n\t\tnodeRule = append(nodeRule, nodeItem)\n\t}\n\n\tlogs, sub, err := _Contract.contract.WatchLogs(opts, \"DNSZonehashChanged\", nodeRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ContractDNSZonehashChanged)\n\t\t\t\tif err := _Contract.contract.UnpackLog(event, \"DNSZonehashChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (h *HUOBIHADAX) GetOrderMatchResults(orderID int64) ([]OrderMatchInfo, error) {\n\ttype response struct {\n\t\tResponse\n\t\tOrders []OrderMatchInfo `json:\"data\"`\n\t}\n\n\tvar result response\n\tendpoint := fmt.Sprintf(huobihadaxGetOrderMatch, strconv.FormatInt(orderID, 10))\n\terr := h.SendAuthenticatedHTTPRequest(http.MethodGet, endpoint, url.Values{}, &result)\n\n\tif result.ErrorMessage != \"\" {\n\t\treturn nil, errors.New(result.ErrorMessage)\n\t}\n\treturn result.Orders, err\n}",
"func (_KeepRegistry *KeepRegistryFilterer) WatchOperatorContractApproved(opts *bind.WatchOpts, sink chan<- *KeepRegistryOperatorContractApproved) (event.Subscription, error) {\n\n\tlogs, sub, err := _KeepRegistry.contract.WatchLogs(opts, \"OperatorContractApproved\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(KeepRegistryOperatorContractApproved)\n\t\t\t\tif err := _KeepRegistry.contract.UnpackLog(event, \"OperatorContractApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) WatchNodeStakeUpdated(opts *bind.WatchOpts, sink chan<- *ChpRegistryNodeStakeUpdated, _sender []common.Address) (event.Subscription, error) {\n\n\tvar _senderRule []interface{}\n\tfor _, _senderItem := range _sender {\n\t\t_senderRule = append(_senderRule, _senderItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.WatchLogs(opts, \"NodeStakeUpdated\", _senderRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ChpRegistryNodeStakeUpdated)\n\t\t\t\tif err := _ChpRegistry.contract.UnpackLog(event, \"NodeStakeUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mevsky *MevskyFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MevskyOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MevskyOwnershipTransferred)\n\t\t\t\tif err := _Mevsky.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20Capped *ERC20CappedFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *ERC20CappedMinterAdded, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _ERC20Capped.contract.WatchLogs(opts, \"MinterAdded\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20CappedMinterAdded)\n\t\t\t\tif err := _ERC20Capped.contract.UnpackLog(event, \"MinterAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Smartchef *SmartchefFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SmartchefOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SmartchefOwnershipTransferred)\n\t\t\t\tif err := _Smartchef.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func onOrderUpdate(order kiteconnect.Order) {\n\tfmt.Printf(\"Order: %+v\", order.OrderID)\n}",
"func (_Bindings *BindingsFilterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *BindingsRedeem) (event.Subscription, error) {\n\n\tlogs, sub, err := _Bindings.contract.WatchLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BindingsRedeem)\n\t\t\t\tif err := _Bindings.contract.UnpackLog(event, \"Redeem\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenVesting *TokenVestingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenVestingOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenVestingOwnershipTransferred)\n\t\t\t\tif err := _TokenVesting.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (match RxMatch) Match(pkt *pktmbuf.Packet) bool {\n\treturn bool(C.EthRxMatch_Match((*C.EthRxMatch)(&match), (*C.struct_rte_mbuf)(pkt.Ptr())))\n}",
"func (_CrToken *CrTokenFilterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *CrTokenRedeem) (event.Subscription, error) {\n\n\tlogs, sub, err := _CrToken.contract.WatchLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrTokenRedeem)\n\t\t\t\tif err := _CrToken.contract.UnpackLog(event, \"Redeem\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Redeemable *RedeemableFilterer) WatchRedeemableAdded(opts *bind.WatchOpts, sink chan<- *RedeemableRedeemableAdded) (event.Subscription, error) {\n\n\tlogs, sub, err := _Redeemable.contract.WatchLogs(opts, \"RedeemableAdded\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RedeemableRedeemableAdded)\n\t\t\t\tif err := _Redeemable.contract.UnpackLog(event, \"RedeemableAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Registry *RegistryFilterer) WatchOperatorContractUpgraderUpdated(opts *bind.WatchOpts, sink chan<- *RegistryOperatorContractUpgraderUpdated) (event.Subscription, error) {\n\n\tlogs, sub, err := _Registry.contract.WatchLogs(opts, \"OperatorContractUpgraderUpdated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RegistryOperatorContractUpgraderUpdated)\n\t\t\t\tif err := _Registry.contract.UnpackLog(event, \"OperatorContractUpgraderUpdated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func SubscribeMatched[T any](matcher func(*T) bool, opts ...SubOpt) (*BufferedSubscription[T], error) {\n\treturn subscribe(matcher, opts...)\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchRegistrationApproved(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsRegistrationApproved, hash [][32]byte, upkeepId []*big.Int) (event.Subscription, error) {\n\n\tvar hashRule []interface{}\n\tfor _, hashItem := range hash {\n\t\thashRule = append(hashRule, hashItem)\n\t}\n\n\tvar upkeepIdRule []interface{}\n\tfor _, upkeepIdItem := range upkeepId {\n\t\tupkeepIdRule = append(upkeepIdRule, upkeepIdItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"RegistrationApproved\", hashRule, upkeepIdRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsRegistrationApproved)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"RegistrationApproved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC721 *ERC721Filterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *ERC721MinterAdded, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _ERC721.contract.WatchLogs(opts, \"MinterAdded\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC721MinterAdded)\n\t\t\t\tif err := _ERC721.contract.UnpackLog(event, \"MinterAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc777 *Erc777Filterer) WatchSent(opts *bind.WatchOpts, sink chan<- *Erc777Sent, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar operatorRule []interface{}\n\tfor _, operatorItem := range operator {\n\t\toperatorRule = append(operatorRule, operatorItem)\n\t}\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _Erc777.contract.WatchLogs(opts, \"Sent\", operatorRule, fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc777Sent)\n\t\t\t\tif err := _Erc777.contract.UnpackLog(event, \"Sent\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchRedeemableAdded(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalRedeemableAdded) (event.Subscription, error) {\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"RedeemableAdded\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalRedeemableAdded)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"RedeemableAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTokenHelperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenHelperOwnershipTransferred)\n\t\t\t\tif err := _ElvTokenHelper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchMinterRemoved(opts *bind.WatchOpts, sink chan<- *Erc20MockMinterRemoved, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"MinterRemoved\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockMinterRemoved)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"MinterRemoved\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalRedeem) (event.Subscription, error) {\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"Redeem\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalRedeem)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"Redeem\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairSwap, sender []common.Address, to []common.Address) (event.Subscription, error) {\r\n\r\n\tvar senderRule []interface{}\r\n\tfor _, senderItem := range sender {\r\n\t\tsenderRule = append(senderRule, senderItem)\r\n\t}\r\n\r\n\tvar toRule []interface{}\r\n\tfor _, toItem := range to {\r\n\t\ttoRule = append(toRule, toItem)\r\n\t}\r\n\r\n\tlogs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, \"Swap\", senderRule, toRule)\r\n\tif err != nil {\r\n\t\treturn nil, err\r\n\t}\r\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\r\n\t\tdefer sub.Unsubscribe()\r\n\t\tfor {\r\n\t\t\tselect {\r\n\t\t\tcase log := <-logs:\r\n\t\t\t\t// New log arrived, parse the event and forward to the user\r\n\t\t\t\tevent := new(IUniswapV2PairSwap)\r\n\t\t\t\tif err := _IUniswapV2Pair.contract.UnpackLog(event, \"Swap\", log); err != nil {\r\n\t\t\t\t\treturn err\r\n\t\t\t\t}\r\n\t\t\t\tevent.Raw = log\r\n\r\n\t\t\t\tselect {\r\n\t\t\t\tcase sink <- event:\r\n\t\t\t\tcase err := <-sub.Err():\r\n\t\t\t\t\treturn err\r\n\t\t\t\tcase <-quit:\r\n\t\t\t\t\treturn nil\r\n\t\t\t\t}\r\n\t\t\tcase err := <-sub.Err():\r\n\t\t\t\treturn err\r\n\t\t\tcase <-quit:\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t}\r\n\t}), nil\r\n}",
"func (_ERC20Mintable *ERC20MintableFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *ERC20MintableMinterAdded, account []common.Address) (event.Subscription, error) {\n\n\tvar accountRule []interface{}\n\tfor _, accountItem := range account {\n\t\taccountRule = append(accountRule, accountItem)\n\t}\n\n\tlogs, sub, err := _ERC20Mintable.contract.WatchLogs(opts, \"MinterAdded\", accountRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20MintableMinterAdded)\n\t\t\t\tif err := _ERC20Mintable.contract.UnpackLog(event, \"MinterAdded\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_IOrakuruCore *IOrakuruCoreFilterer) WatchRequested(opts *bind.WatchOpts, sink chan<- *IOrakuruCoreRequested, requestId [][32]byte, callbackAddr []common.Address) (event.Subscription, error) {\n\n\tvar requestIdRule []interface{}\n\tfor _, requestIdItem := range requestId {\n\t\trequestIdRule = append(requestIdRule, requestIdItem)\n\t}\n\n\tvar callbackAddrRule []interface{}\n\tfor _, callbackAddrItem := range callbackAddr {\n\t\tcallbackAddrRule = append(callbackAddrRule, callbackAddrItem)\n\t}\n\n\tlogs, sub, err := _IOrakuruCore.contract.WatchLogs(opts, \"Requested\", requestIdRule, callbackAddrRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(IOrakuruCoreRequested)\n\t\t\t\tif err := _IOrakuruCore.contract.UnpackLog(event, \"Requested\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipRenounced)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}"
] | [
"0.6612692",
"0.5599171",
"0.55455315",
"0.55366343",
"0.54844624",
"0.543759",
"0.5433707",
"0.54278266",
"0.5319832",
"0.52928853",
"0.52255595",
"0.51788086",
"0.51715446",
"0.5086088",
"0.5071875",
"0.506285",
"0.5022034",
"0.50113827",
"0.49831244",
"0.49572682",
"0.4954166",
"0.49189863",
"0.48805967",
"0.4851148",
"0.48378107",
"0.4819965",
"0.48177224",
"0.4800526",
"0.4785269",
"0.47808537",
"0.4776454",
"0.4775484",
"0.47455046",
"0.47388136",
"0.4737777",
"0.47317585",
"0.4729763",
"0.47278643",
"0.4712099",
"0.46868977",
"0.4677224",
"0.46772107",
"0.46626094",
"0.46620065",
"0.46591967",
"0.4655682",
"0.46550795",
"0.4651049",
"0.46364903",
"0.4633036",
"0.46290207",
"0.46272823",
"0.46255654",
"0.46243945",
"0.46240228",
"0.46162924",
"0.46040222",
"0.45942968",
"0.4590326",
"0.4587163",
"0.4585895",
"0.45769006",
"0.45626917",
"0.4557068",
"0.4555334",
"0.4552594",
"0.45516196",
"0.45478117",
"0.4546557",
"0.45374393",
"0.4537212",
"0.45339987",
"0.4530619",
"0.45290568",
"0.45281732",
"0.45262286",
"0.4524363",
"0.45233172",
"0.45156002",
"0.45123878",
"0.45038432",
"0.4503052",
"0.44997087",
"0.44991174",
"0.44868797",
"0.44828725",
"0.44806272",
"0.44784158",
"0.447156",
"0.44686997",
"0.44622168",
"0.44580102",
"0.44504082",
"0.44495088",
"0.44465414",
"0.44448537",
"0.4440627",
"0.44332555",
"0.44325784",
"0.44319054"
] | 0.8052225 | 0 |
Close terminates the iteration process, releasing any pending underlying resources. | func (it *WyvernExchangeOwnershipRenouncedIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iter *Iterator) Close() error { return iter.impl.Close() }",
"func (i *Iterator) Close() {}",
"func (it *EthdkgDisputeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iter) Close() {\n\t// (todo) > handle error\n\tit.i.Close()\n}",
"func (it *PlasmaFrameworkExitQueuedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrPauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (s *Iterator) Close() {\n\ts.i.Close()\n}",
"func (it *LmcExitedAndUnlockedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SmartchefOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorV2V3InterfaceNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcExitedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SimpleMultiSigExecuteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CakevaultHarvestIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2SyncIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PlasmaFrameworkProcessedExitsNumIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2MintIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleMaxFramesUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20MintableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2BurnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContentRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitPiggybackedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20HecoManagerBurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iterator) Close() {\n\tit.iitr.Close()\n}",
"func (it *DogsOfRomeRomulusIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BREMFactoryBREMICOCreatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LvStreamRightsHolderRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *Iterator) Close() error {\n\ti.iterator.Close()\n\treturn nil\n}",
"func (it *XStakingStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IOrakuruCoreFulfilledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WELV9TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseContentSpaceVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20CappedTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MonsterAccessControlContractUpgradeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *ResolvedProductIter) Close() {}",
"func (it *ContentRunFinalizeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WethTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AccessControlCEOTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BindingsReservesReducedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DogsOfRomeScoobyIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokenVestingReleasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksHandledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksErasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *GameJamGameJamFinishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Erc777BurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausablePausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgResultChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KeepRegistryGovernanceUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20InterfaceTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TTFT20UpgradedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgMaliciousResultSlashedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseLibraryVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (iter *BatchObjectIter) Close() {\n\tclose(iter.oidCh)\n}",
"func (it *RedeemableRedeemableRemovedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokensNetworkChannelPunishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KNSRegistredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (si *ScanIterator) Close() {\n\t// Cleanup\n}",
"func (it *IERC20TransferIterator) Close() error {\r\n\tit.sub.Unsubscribe()\r\n\treturn nil\r\n}",
"func (it *PausablePauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryUnpausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ConsortiumManagementProposeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractProposalExecutionExpiredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DistributorBountyWasPaidIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *XStakingRecoveredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ZKOnacciTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (c *indexIter) Close() {\n\tif c.it != nil {\n\t\tc.it.Close()\n\t\tc.it = nil\n\t}\n}",
"func (it *BindingsRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MevskyTurnedOnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *EthdkgShareDistributionIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BondedECDSAKeepERC20RewardDistributedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WmaticTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DemoERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *FlopperKickIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}"
] | [
"0.74848074",
"0.7417846",
"0.721855",
"0.72077936",
"0.720545",
"0.7176748",
"0.71746904",
"0.7163944",
"0.7160923",
"0.7157161",
"0.7156669",
"0.7152182",
"0.71394366",
"0.7136678",
"0.71341944",
"0.7132294",
"0.7125396",
"0.7122628",
"0.71183187",
"0.7115788",
"0.71130705",
"0.71101916",
"0.7108955",
"0.7104827",
"0.7098511",
"0.7087522",
"0.7085076",
"0.7070312",
"0.7069282",
"0.70656383",
"0.70479614",
"0.7041265",
"0.70358825",
"0.7034743",
"0.7032979",
"0.7031815",
"0.70296794",
"0.7028455",
"0.70265806",
"0.70258117",
"0.70192385",
"0.7018967",
"0.70160073",
"0.7015892",
"0.7015892",
"0.7015892",
"0.7015892",
"0.7013909",
"0.70116156",
"0.7007683",
"0.7006535",
"0.7000627",
"0.6992759",
"0.69924796",
"0.6991971",
"0.69918823",
"0.69890547",
"0.6976627",
"0.6973646",
"0.6972913",
"0.69655377",
"0.696398",
"0.6961032",
"0.6959359",
"0.6958219",
"0.6957634",
"0.6955803",
"0.69541353",
"0.6953254",
"0.69529253",
"0.6952685",
"0.6952685",
"0.6951453",
"0.6948125",
"0.6947697",
"0.69476783",
"0.69476193",
"0.69456834",
"0.69434",
"0.69389164",
"0.6938832",
"0.69384205",
"0.693732",
"0.693483",
"0.6933494",
"0.6933494",
"0.69266844",
"0.69256246",
"0.6922996",
"0.6920798",
"0.69173104",
"0.6913905",
"0.6912612",
"0.69111305",
"0.69111127",
"0.6909965",
"0.69089586",
"0.6908941",
"0.6908941",
"0.6908941",
"0.6908941"
] | 0.0 | -1 |
FilterOwnershipRenounced is a free log retrieval operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820. Solidity: event OwnershipRenounced(address indexed previousOwner) | func (_WyvernExchange *WyvernExchangeFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*WyvernExchangeOwnershipRenouncedIterator, error) {
var previousOwnerRule []interface{}
for _, previousOwnerItem := range previousOwner {
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
}
logs, sub, err := _WyvernExchange.contract.FilterLogs(opts, "OwnershipRenounced", previousOwnerRule)
if err != nil {
return nil, err
}
return &WyvernExchangeOwnershipRenouncedIterator{contract: _WyvernExchange.contract, event: "OwnershipRenounced", logs: logs, sub: sub}, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*ProjectWalletAuthoriserOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ProjectWalletAuthoriserOwnershipRenouncedIterator{contract: _ProjectWalletAuthoriser.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*AuthContractOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractOwnershipRenouncedIterator{contract: _AuthContract.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OwnableOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipRenouncedIterator{contract: _Ownable.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OwnableOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipRenouncedIterator{contract: _Ownable.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Bucket *BucketFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*BucketOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BucketOwnershipRenouncedIterator{contract: _Bucket.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_OracleMgr *OracleMgrFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OracleMgrOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OracleMgrOwnershipRenouncedIterator{contract: _OracleMgr.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Dospayment *DospaymentFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*DospaymentOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DospaymentOwnershipRenouncedIterator{contract: _Dospayment.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipRenounced)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_AuthContract *AuthContractFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipRenounced)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOwnershipRenounced)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *BucketOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipRenounced)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipRenounced)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipRenounced)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OracleMgr *OracleMgrFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OracleMgrOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OracleMgrOwnershipRenounced)\n\t\t\t\tif err := _OracleMgr.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipRenounced)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ERC20HecoManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20HecoManagerOwnershipTransferred)\n\t\t\t\tif err := _ERC20HecoManager.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TransferProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TransferProxyRegistryOwnershipTransferredIterator{contract: _TransferProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTokenHelperOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTokenHelperOwnershipTransferredIterator{contract: _ElvTokenHelper.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HasNoEtherOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HasNoEtherOwnershipTransferredIterator{contract: _HasNoEther.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*McapscontrollerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &McapscontrollerOwnershipTransferredIterator{contract: _Mcapscontroller.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Owned *OwnedFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*OwnedOwnerChangedIterator, error) {\n\n\tlogs, sub, err := _Owned.contract.FilterLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnedOwnerChangedIterator{contract: _Owned.contract, event: \"OwnerChanged\", logs: logs, sub: sub}, nil\n}",
"func (_Caller *CallerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CallerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CallerOwnershipTransferredIterator{contract: _Caller.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ERC20HecoManagerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20HecoManagerOwnershipTransferredIterator{contract: _ERC20HecoManager.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_OracleMgr *OracleMgrFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OracleMgrOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OracleMgrOwnershipTransferredIterator{contract: _OracleMgr.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOwnershipTransferred)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipTransferred)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RewardsDistributionRecipient *RewardsDistributionRecipientFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*RewardsDistributionRecipientOwnerChangedIterator, error) {\n\n\tlogs, sub, err := _RewardsDistributionRecipient.contract.FilterLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &RewardsDistributionRecipientOwnerChangedIterator{contract: _RewardsDistributionRecipient.contract, event: \"OwnerChanged\", logs: logs, sub: sub}, nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnerProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnerProxyRegistryOwnershipTransferredIterator{contract: _OwnerProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mevsky *MevskyFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MevskyOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MevskyOwnershipTransferredIterator{contract: _Mevsky.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BurnableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BurnableTokenOwnershipTransferredIterator{contract: _BurnableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bep20 *Bep20Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Bep20OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Bep20OwnershipTransferred)\n\t\t\t\tif err := _Bep20.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Validator *ValidatorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ValidatorOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ValidatorOwnershipTransferredIterator{contract: _Validator.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipTransferred)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mevsky *MevskyFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MevskyOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MevskyOwnershipTransferred)\n\t\t\t\tif err := _Mevsky.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RewardsDistributionRecipient *RewardsDistributionRecipientFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *RewardsDistributionRecipientOwnerNominated) (event.Subscription, error) {\n\n\tlogs, sub, err := _RewardsDistributionRecipient.contract.WatchLogs(opts, \"OwnerNominated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RewardsDistributionRecipientOwnerNominated)\n\t\t\t\tif err := _RewardsDistributionRecipient.contract.UnpackLog(event, \"OwnerNominated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AuthContractOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractOwnershipTransferredIterator{contract: _AuthContract.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HasNoEtherOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HasNoEtherOwnershipTransferred)\n\t\t\t\tif err := _HasNoEther.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*WyvernExchangeOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOwnershipTransferredIterator{contract: _WyvernExchange.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(McapscontrollerOwnershipTransferred)\n\t\t\t\tif err := _Mcapscontroller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTokenHelperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenHelperOwnershipTransferred)\n\t\t\t\tif err := _ElvTokenHelper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*XStakingOwnerChangedIterator, error) {\n\n\tlogs, sub, err := _XStaking.contract.FilterLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &XStakingOwnerChangedIterator{contract: _XStaking.contract, event: \"OwnerChanged\", logs: logs, sub: sub}, nil\n}",
"func (_MintableToken *MintableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MintableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MintableTokenOwnershipTransferredIterator{contract: _MintableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenStakingEscrowOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenStakingEscrowOwnershipTransferredIterator{contract: _TokenStakingEscrow.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BREMTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BREMTokenOwnershipTransferredIterator{contract: _BREMToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_SingleAuto *SingleAutoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SingleAutoOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SingleAutoOwnershipTransferredIterator{contract: _SingleAuto.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OnesplitauditOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OnesplitauditOwnershipTransferredIterator{contract: _Onesplitaudit.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_OracleMgr *OracleMgrFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OracleMgrOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OracleMgrOwnershipTransferred)\n\t\t\t\tif err := _OracleMgr.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*GatekeeperOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &GatekeeperOwnershipTransferredIterator{contract: _Gatekeeper.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Smartchef *SmartchefFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SmartchefOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SmartchefOwnershipTransferredIterator{contract: _Smartchef.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ChpRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ChpRegistryOwnershipTransferredIterator{contract: _ChpRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TokenVesting *TokenVestingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenVestingOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenVestingOwnershipTransferredIterator{contract: _TokenVesting.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_RewardsDistributionRecipient *RewardsDistributionRecipientFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *RewardsDistributionRecipientOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _RewardsDistributionRecipient.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RewardsDistributionRecipientOwnerChanged)\n\t\t\t\tif err := _RewardsDistributionRecipient.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bep20 *Bep20Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Bep20OwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Bep20OwnershipTransferredIterator{contract: _Bep20.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BREMTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMTokenOwnershipTransferred)\n\t\t\t\tif err := _BREMToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProjectWalletAuthoriserOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ProjectWalletAuthoriserOwnershipTransferredIterator{contract: _ProjectWalletAuthoriser.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BurnableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BurnableTokenOwnershipTransferred)\n\t\t\t\tif err := _BurnableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_PausableToken *PausableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PausableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableTokenOwnershipTransferredIterator{contract: _PausableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*VorRandomnessRequestMockOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &VorRandomnessRequestMockOwnershipTransferredIterator{contract: _VorRandomnessRequestMock.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Erc20MockOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc20MockOwnershipTransferredIterator{contract: _Erc20Mock.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnerProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnerProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _OwnerProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Caller *CallerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CallerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CallerOwnershipTransferred)\n\t\t\t\tif err := _Caller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeeCurrencyWhitelistOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FeeCurrencyWhitelistOwnershipTransferred)\n\t\t\t\tif err := _FeeCurrencyWhitelist.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenStakingEscrowOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenStakingEscrowOwnershipTransferred)\n\t\t\t\tif err := _TokenStakingEscrow.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TransferProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TransferProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _TransferProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PausableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableOwnershipTransferredIterator{contract: _Pausable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (f *HubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HubOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := f.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HubOwnershipTransferredIterator{contract: f.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OnesplitauditOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OnesplitauditOwnershipTransferred)\n\t\t\t\tif err := _Onesplitaudit.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BucketOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BucketOwnershipTransferredIterator{contract: _Bucket.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20MockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockOwnershipTransferred)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Smartchef *SmartchefFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SmartchefOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SmartchefOwnershipTransferred)\n\t\t\t\tif err := _Smartchef.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GatekeeperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(GatekeeperOwnershipTransferred)\n\t\t\t\tif err := _Gatekeeper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VorRandomnessRequestMockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(VorRandomnessRequestMockOwnershipTransferred)\n\t\t\t\tif err := _VorRandomnessRequestMock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UpkeepRegistrationRequestsOwnershipTransferredIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsOwnershipTransferredIterator{contract: _UpkeepRegistrationRequests.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FeeCurrencyWhitelistOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FeeCurrencyWhitelistOwnershipTransferredIterator{contract: _FeeCurrencyWhitelist.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_SingleAuto *SingleAutoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SingleAutoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SingleAutoOwnershipTransferred)\n\t\t\t\tif err := _SingleAuto.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableOwnershipTransferred)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *XStakingOwnerNominated) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"OwnerNominated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingOwnerNominated)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"OwnerNominated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_MintableToken *MintableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MintableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MintableTokenOwnershipTransferred)\n\t\t\t\tif err := _MintableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ChpRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ChpRegistryOwnershipTransferred)\n\t\t\t\tif err := _ChpRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DelayedWithdrawalOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DelayedWithdrawal.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DelayedWithdrawalOwnershipTransferredIterator{contract: _DelayedWithdrawal.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Pausable *PausableFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*PausableOwnerChangedIterator, error) {\n\n\tlogs, sub, err := _Pausable.contract.FilterLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableOwnerChangedIterator{contract: _Pausable.contract, event: \"OwnerChanged\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTradableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableOwnershipTransferredIterator{contract: _ElvTradable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Pausable *PausableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableOwnershipTransferred)\n\t\t\t\tif err := _Pausable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Validator *ValidatorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ValidatorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ValidatorOwnershipTransferred)\n\t\t\t\tif err := _Validator.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BucketOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipTransferred)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DetailedTestTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedTestTokenOwnershipTransferredIterator{contract: _DetailedTestToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}"
] | [
"0.8399022",
"0.83020484",
"0.82191133",
"0.82191133",
"0.8211908",
"0.8170655",
"0.8086294",
"0.8069005",
"0.7972047",
"0.7881227",
"0.78344876",
"0.7802937",
"0.7802937",
"0.7741377",
"0.77322805",
"0.68744564",
"0.6806759",
"0.6790256",
"0.67784476",
"0.677339",
"0.67597306",
"0.67597306",
"0.6750872",
"0.6735924",
"0.6732526",
"0.67122734",
"0.6710964",
"0.67075026",
"0.67042065",
"0.67034435",
"0.6697442",
"0.66774637",
"0.66724193",
"0.6671057",
"0.6651378",
"0.66485476",
"0.66431016",
"0.663941",
"0.6637154",
"0.66346914",
"0.6633534",
"0.6629501",
"0.6626919",
"0.6626547",
"0.6625609",
"0.6625242",
"0.6617764",
"0.66120803",
"0.66120803",
"0.66120803",
"0.66120803",
"0.66120803",
"0.6600941",
"0.65946156",
"0.6591535",
"0.65837574",
"0.6569159",
"0.656258",
"0.6553917",
"0.65481716",
"0.65478396",
"0.6541339",
"0.65371555",
"0.6527697",
"0.65208614",
"0.6504488",
"0.6501765",
"0.64948165",
"0.64946795",
"0.64939034",
"0.64939034",
"0.64939034",
"0.64939034",
"0.64939034",
"0.64920765",
"0.649041",
"0.6486773",
"0.64799833",
"0.6477036",
"0.6474543",
"0.64616686",
"0.64616686",
"0.6457111",
"0.64548105",
"0.6453915",
"0.64486605",
"0.64485765",
"0.6444606",
"0.6444163",
"0.644258",
"0.64371806",
"0.64318657",
"0.64234424",
"0.6421977",
"0.6413716",
"0.6409683",
"0.6407672",
"0.64007825",
"0.6398475",
"0.63926816"
] | 0.8190858 | 5 |
WatchOwnershipRenounced is a free log subscription operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820. Solidity: event OwnershipRenounced(address indexed previousOwner) | func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {
var previousOwnerRule []interface{}
for _, previousOwnerItem := range previousOwner {
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
}
logs, sub, err := _WyvernExchange.contract.WatchLogs(opts, "OwnershipRenounced", previousOwnerRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(WyvernExchangeOwnershipRenounced)
if err := _WyvernExchange.contract.UnpackLog(event, "OwnershipRenounced", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_AuthContract *AuthContractFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipRenounced)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipRenounced)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *BucketOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipRenounced)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipRenounced)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipRenounced)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipRenounced)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OracleMgr *OracleMgrFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OracleMgrOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OracleMgrOwnershipRenounced)\n\t\t\t\tif err := _OracleMgr.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*BucketOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BucketOwnershipRenouncedIterator{contract: _Bucket.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OwnableOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipRenouncedIterator{contract: _Ownable.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OwnableOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipRenouncedIterator{contract: _Ownable.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*ProjectWalletAuthoriserOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ProjectWalletAuthoriserOwnershipRenouncedIterator{contract: _ProjectWalletAuthoriser.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*AuthContractOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractOwnershipRenouncedIterator{contract: _AuthContract.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*WyvernExchangeOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOwnershipRenouncedIterator{contract: _WyvernExchange.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_OracleMgr *OracleMgrFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OracleMgrOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OracleMgrOwnershipRenouncedIterator{contract: _OracleMgr.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(McapscontrollerOwnershipTransferred)\n\t\t\t\tif err := _Mcapscontroller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mevsky *MevskyFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MevskyOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MevskyOwnershipTransferred)\n\t\t\t\tif err := _Mevsky.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTokenHelperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenHelperOwnershipTransferred)\n\t\t\t\tif err := _ElvTokenHelper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Smartchef *SmartchefFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SmartchefOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SmartchefOwnershipTransferred)\n\t\t\t\tif err := _Smartchef.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OracleMgr *OracleMgrFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OracleMgrOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OracleMgrOwnershipTransferred)\n\t\t\t\tif err := _OracleMgr.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HasNoEtherOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HasNoEtherOwnershipTransferred)\n\t\t\t\tif err := _HasNoEther.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_AuthContract *AuthContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipTransferred)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BurnableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BurnableTokenOwnershipTransferred)\n\t\t\t\tif err := _BurnableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OnesplitauditOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OnesplitauditOwnershipTransferred)\n\t\t\t\tif err := _Onesplitaudit.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*DospaymentOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DospaymentOwnershipRenouncedIterator{contract: _Dospayment.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_SingleAuto *SingleAutoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SingleAutoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SingleAutoOwnershipTransferred)\n\t\t\t\tif err := _SingleAuto.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOwnershipTransferred)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Caller *CallerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CallerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CallerOwnershipTransferred)\n\t\t\t\tif err := _Caller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ERC20HecoManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20HecoManagerOwnershipTransferred)\n\t\t\t\tif err := _ERC20HecoManager.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VorRandomnessRequestMockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(VorRandomnessRequestMockOwnershipTransferred)\n\t\t\t\tif err := _VorRandomnessRequestMock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TransferProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TransferProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _TransferProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_MintableToken *MintableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MintableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MintableTokenOwnershipTransferred)\n\t\t\t\tif err := _MintableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipTransferred)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GatekeeperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(GatekeeperOwnershipTransferred)\n\t\t\t\tif err := _Gatekeeper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bep20 *Bep20Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Bep20OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Bep20OwnershipTransferred)\n\t\t\t\tif err := _Bep20.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BREMToken *BREMTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BREMTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMTokenOwnershipTransferred)\n\t\t\t\tif err := _BREMToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnerProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnerProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _OwnerProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Validator *ValidatorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ValidatorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ValidatorOwnershipTransferred)\n\t\t\t\tif err := _Validator.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20MockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockOwnershipTransferred)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenStakingEscrowOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenStakingEscrowOwnershipTransferred)\n\t\t\t\tif err := _TokenStakingEscrow.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RewardsDistributionRecipient *RewardsDistributionRecipientFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *RewardsDistributionRecipientOwnerNominated) (event.Subscription, error) {\n\n\tlogs, sub, err := _RewardsDistributionRecipient.contract.WatchLogs(opts, \"OwnerNominated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RewardsDistributionRecipientOwnerNominated)\n\t\t\t\tif err := _RewardsDistributionRecipient.contract.UnpackLog(event, \"OwnerNominated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableOwnershipTransferred)\n\t\t\t\tif err := _Pausable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenVesting *TokenVestingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenVestingOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenVestingOwnershipTransferred)\n\t\t\t\tif err := _TokenVesting.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_PausableToken *PausableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableTokenOwnershipTransferred)\n\t\t\t\tif err := _PausableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BucketOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipTransferred)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Cakevault *CakevaultFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CakevaultOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Cakevault.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CakevaultOwnershipTransferred)\n\t\t\t\tif err := _Cakevault.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ChpRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ChpRegistryOwnershipTransferred)\n\t\t\t\tif err := _ChpRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipTransferred)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *XStakingOwnerNominated) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"OwnerNominated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingOwnerNominated)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"OwnerNominated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeeCurrencyWhitelistOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FeeCurrencyWhitelistOwnershipTransferred)\n\t\t\t\tif err := _FeeCurrencyWhitelist.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableOwnershipTransferred)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DetailedTestTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedTestTokenOwnershipTransferred)\n\t\t\t\tif err := _DetailedTestToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_RewardsDistributionRecipient *RewardsDistributionRecipientFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *RewardsDistributionRecipientOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _RewardsDistributionRecipient.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(RewardsDistributionRecipientOwnerChanged)\n\t\t\t\tif err := _RewardsDistributionRecipient.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (f *HubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HubOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := f.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HubOwnershipTransferred)\n\t\t\t\tif err := f.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *OwnedOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedOwnerChanged)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DelayedWithdrawalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DelayedWithdrawal.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DelayedWithdrawalOwnershipTransferred)\n\t\t\t\tif err := _DelayedWithdrawal.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *OwnedOwnerNominated) (event.Subscription, error) {\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"OwnerNominated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedOwnerNominated)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"OwnerNominated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsOwnershipTransferred)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_XStaking *XStakingFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *XStakingOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _XStaking.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(XStakingOwnerChanged)\n\t\t\t\tif err := _XStaking.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *PausableOwnerNominated) (event.Subscription, error) {\n\n\tlogs, sub, err := _Pausable.contract.WatchLogs(opts, \"OwnerNominated\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableOwnerNominated)\n\t\t\t\tif err := _Pausable.contract.UnpackLog(event, \"OwnerNominated\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalOwnershipTransferred)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Storage *StorageFilterer) WatchOwnerTransferred(opts *bind.WatchOpts, sink chan<- *StorageOwnerTransferred, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar oldOwnerRule []interface{}\n\tfor _, oldOwnerItem := range oldOwner {\n\t\toldOwnerRule = append(oldOwnerRule, oldOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Storage.contract.WatchLogs(opts, \"OwnerTransferred\", oldOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(StorageOwnerTransferred)\n\t\t\t\tif err := _Storage.contract.UnpackLog(event, \"OwnerTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageFilterer) WatchRemovedOwner(opts *bind.WatchOpts, sink chan<- *OwnedUpgradeableTokenStorageRemovedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _OwnedUpgradeableTokenStorage.contract.WatchLogs(opts, \"RemovedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedUpgradeableTokenStorageRemovedOwner)\n\t\t\t\tif err := _OwnedUpgradeableTokenStorage.contract.UnpackLog(event, \"RemovedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FixedSupplyTokenOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FixedSupplyTokenOwnershipTransferred)\n\t\t\t\tif err := _FixedSupplyToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SimpleReadAccessControllerOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.WatchLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SimpleReadAccessControllerOwnershipTransferred)\n\t\t\t\tif err := _SimpleReadAccessController.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *PausableOwnerChanged) (event.Subscription, error) {\n\n\tlogs, sub, err := _Pausable.contract.WatchLogs(opts, \"OwnerChanged\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableOwnerChanged)\n\t\t\t\tif err := _Pausable.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CrowdsaleOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsaleOwnershipTransferred)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Upgradeable *UpgradeableFilterer) WatchRemovedOwner(opts *bind.WatchOpts, sink chan<- *UpgradeableRemovedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _Upgradeable.contract.WatchLogs(opts, \"RemovedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpgradeableRemovedOwner)\n\t\t\t\tif err := _Upgradeable.contract.UnpackLog(event, \"RemovedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnedOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedOwnershipTransferred)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"OwnershipTransferRequested\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsOwnershipTransferRequested)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"OwnershipTransferRequested\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) WatchRemovedOwner(opts *bind.WatchOpts, sink chan<- *OwnedRemovedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"RemovedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedRemovedOwner)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"RemovedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *SimpleReadAccessControllerOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.WatchLogs(opts, \"OwnershipTransferRequested\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SimpleReadAccessControllerOwnershipTransferRequested)\n\t\t\t\tif err := _SimpleReadAccessController.contract.UnpackLog(event, \"OwnershipTransferRequested\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OwnedUpgradeableTokenStorage *OwnedUpgradeableTokenStorageFilterer) WatchAddedOwner(opts *bind.WatchOpts, sink chan<- *OwnedUpgradeableTokenStorageAddedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _OwnedUpgradeableTokenStorage.contract.WatchLogs(opts, \"AddedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedUpgradeableTokenStorageAddedOwner)\n\t\t\t\tif err := _OwnedUpgradeableTokenStorage.contract.UnpackLog(event, \"AddedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TTFT20 *TTFT20Filterer) WatchRemovedOwner(opts *bind.WatchOpts, sink chan<- *TTFT20RemovedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _TTFT20.contract.WatchLogs(opts, \"RemovedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TTFT20RemovedOwner)\n\t\t\t\tif err := _TTFT20.contract.UnpackLog(event, \"RemovedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC725 *ERC725Filterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *ERC725OwnerChanged, ownerAddress []common.Address) (event.Subscription, error) {\n\n\tvar ownerAddressRule []interface{}\n\tfor _, ownerAddressItem := range ownerAddress {\n\t\townerAddressRule = append(ownerAddressRule, ownerAddressItem)\n\t}\n\n\tlogs, sub, err := _ERC725.contract.WatchLogs(opts, \"OwnerChanged\", ownerAddressRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC725OwnerChanged)\n\t\t\t\tif err := _ERC725.contract.UnpackLog(event, \"OwnerChanged\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ReserveSpenderMultiSig *ReserveSpenderMultiSigFilterer) WatchOwnerRemoval(opts *bind.WatchOpts, sink chan<- *ReserveSpenderMultiSigOwnerRemoval, owner []common.Address) (event.Subscription, error) {\n\n\tvar ownerRule []interface{}\n\tfor _, ownerItem := range owner {\n\t\townerRule = append(ownerRule, ownerItem)\n\t}\n\n\tlogs, sub, err := _ReserveSpenderMultiSig.contract.WatchLogs(opts, \"OwnerRemoval\", ownerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ReserveSpenderMultiSigOwnerRemoval)\n\t\t\t\tif err := _ReserveSpenderMultiSig.contract.UnpackLog(event, \"OwnerRemoval\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Upgradeable *UpgradeableFilterer) WatchAddedOwner(opts *bind.WatchOpts, sink chan<- *UpgradeableAddedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _Upgradeable.contract.WatchLogs(opts, \"AddedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpgradeableAddedOwner)\n\t\t\t\tif err := _Upgradeable.contract.UnpackLog(event, \"AddedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (f *HubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn f.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Onesplitaudit.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_Onesplitaudit *OnesplitauditSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_Owned *OwnedFilterer) WatchAddedOwner(opts *bind.WatchOpts, sink chan<- *OwnedAddedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"AddedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedAddedOwner)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"AddedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Onesplitaudit *OnesplitauditTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Onesplitaudit.Contract.RenounceOwnership(&_Onesplitaudit.TransactOpts)\n}",
"func (_Caller *CallerTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (f *HubSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_Caller *CallerSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _Caller.Contract.RenounceOwnership(&_Caller.TransactOpts)\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TransferProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TransferProxyRegistryOwnershipTransferredIterator{contract: _TransferProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Caller *CallerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Caller.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (f *HubTransactorSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn f.Contract.RenounceOwnership(&f.TransactOpts)\n}",
"func (_TTFT20 *TTFT20Filterer) WatchAddedOwner(opts *bind.WatchOpts, sink chan<- *TTFT20AddedOwner) (event.Subscription, error) {\n\n\tlogs, sub, err := _TTFT20.contract.WatchLogs(opts, \"AddedOwner\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TTFT20AddedOwner)\n\t\t\t\tif err := _TTFT20.contract.UnpackLog(event, \"AddedOwner\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _Token.contract.Transact(opts, \"renounceOwnership\")\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockSession) RenounceOwnership() (*types.Transaction, error) {\n\treturn _VorRandomnessRequestMock.Contract.RenounceOwnership(&_VorRandomnessRequestMock.TransactOpts)\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _OwnerProxyRegistry.contract.Transact(opts, \"renounceOwnership\")\n}"
] | [
"0.83335626",
"0.83041",
"0.82732266",
"0.82596374",
"0.82596374",
"0.81849366",
"0.81457186",
"0.73202145",
"0.72724503",
"0.72724503",
"0.7265665",
"0.7247115",
"0.7191855",
"0.7185488",
"0.7067781",
"0.7052382",
"0.70516497",
"0.70493335",
"0.7044256",
"0.70361155",
"0.70321894",
"0.702528",
"0.7024074",
"0.7023603",
"0.70226115",
"0.7012141",
"0.70048",
"0.700225",
"0.69939524",
"0.69939524",
"0.699073",
"0.6983988",
"0.69791263",
"0.69791263",
"0.69791263",
"0.69791263",
"0.69791263",
"0.69711393",
"0.69644994",
"0.6939872",
"0.69388044",
"0.69382894",
"0.69308716",
"0.69295555",
"0.69118434",
"0.6909797",
"0.68978703",
"0.6892265",
"0.68904847",
"0.68816185",
"0.6878287",
"0.6854182",
"0.68420726",
"0.68273854",
"0.6817153",
"0.68115574",
"0.6807404",
"0.6802344",
"0.6796051",
"0.67812634",
"0.6757348",
"0.6750346",
"0.67280513",
"0.6697343",
"0.6670339",
"0.6653964",
"0.6653051",
"0.6613363",
"0.6600975",
"0.65824795",
"0.6548364",
"0.6517235",
"0.6445081",
"0.6408395",
"0.6399",
"0.6382676",
"0.6328535",
"0.63141334",
"0.62608683",
"0.6229266",
"0.6219652",
"0.59588987",
"0.59545535",
"0.5949215",
"0.59080577",
"0.590708",
"0.59019405",
"0.59015816",
"0.58890253",
"0.5872547",
"0.58678013",
"0.5850718",
"0.5849507",
"0.58362234",
"0.58324784",
"0.583076",
"0.583076",
"0.5830567",
"0.5825346",
"0.5808607"
] | 0.8165621 | 6 |
Close terminates the iteration process, releasing any pending underlying resources. | func (it *WyvernExchangeOwnershipTransferredIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iter *Iterator) Close() error { return iter.impl.Close() }",
"func (i *Iterator) Close() {}",
"func (it *EthdkgDisputeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iter) Close() {\n\t// (todo) > handle error\n\tit.i.Close()\n}",
"func (it *PlasmaFrameworkExitQueuedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrPauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (s *Iterator) Close() {\n\ts.i.Close()\n}",
"func (it *LmcExitedAndUnlockedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SmartchefOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryCoreUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AggregatorV2V3InterfaceNewRoundIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcExitedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *SimpleMultiSigExecuteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CakevaultHarvestIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2SyncIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *OracleMgrUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PlasmaFrameworkProcessedExitsNumIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2MintIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleMaxFramesUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20MintableTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2BurnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContentRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitPiggybackedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20HecoManagerBurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Iterator) Close() {\n\tit.iitr.Close()\n}",
"func (it *DogsOfRomeRomulusIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BREMFactoryBREMICOCreatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LvStreamRightsHolderRunKillIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *Iterator) Close() error {\n\ti.iterator.Close()\n\treturn nil\n}",
"func (it *XStakingStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IOrakuruCoreFulfilledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *LmcStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RedeemableRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *CrowdsaleOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitFinalizedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WELV9TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableOwnershipTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseContentSpaceVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20CappedTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Univ2TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MonsterAccessControlContractUpgradeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (i *ResolvedProductIter) Close() {}",
"func (it *ContentRunFinalizeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WethTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BindingsReservesReducedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *AccessControlCEOTransferredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausableUnpauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DogsOfRomeScoobyIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokenVestingReleasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksHandledIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractTasksErasedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *GameJamGameJamFinishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *Erc777BurnedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20PausablePausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RootchainInFlightExitChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgResultChallengedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KeepRegistryGovernanceUpdatedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20InterfaceTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TTFT20UpgradedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DetailedERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *RandomBeaconDkgMaliciousResultSlashedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BaseLibraryVersionDeleteIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (iter *BatchObjectIter) Close() {\n\tclose(iter.oidCh)\n}",
"func (it *RedeemableRedeemableRemovedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *TokensNetworkChannelPunishedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *KNSRegistredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (si *ScanIterator) Close() {\n\t// Cleanup\n}",
"func (it *IERC20TransferIterator) Close() error {\r\n\tit.sub.Unsubscribe()\r\n\treturn nil\r\n}",
"func (it *ChpRegistryUnpausedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *PausablePauseIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ConsortiumManagementProposeIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ContractProposalExecutionExpiredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DistributorBountyWasPaidIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ERC20BasicTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *XStakingRecoveredIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ZKOnacciTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *ChpRegistryNodeUnStakedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (c *indexIter) Close() {\n\tif c.it != nil {\n\t\tc.it.Close()\n\t\tc.it = nil\n\t}\n}",
"func (it *BindingsRedeemIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *MevskyTurnedOnIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *EthdkgShareDistributionIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *BondedECDSAKeepERC20RewardDistributedIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *WmaticTransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *DemoERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *IERC20TransferIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}",
"func (it *FlopperKickIterator) Close() error {\n\tit.sub.Unsubscribe()\n\treturn nil\n}"
] | [
"0.74838513",
"0.7415698",
"0.72180647",
"0.7207889",
"0.7205475",
"0.7177012",
"0.7174681",
"0.716488",
"0.7160671",
"0.7157174",
"0.7156437",
"0.7152241",
"0.7139136",
"0.7136386",
"0.7133897",
"0.7131583",
"0.7125007",
"0.7122744",
"0.711744",
"0.71151674",
"0.71123165",
"0.71105385",
"0.7108742",
"0.7104789",
"0.7099249",
"0.7087101",
"0.7084964",
"0.70699227",
"0.7069033",
"0.7065009",
"0.70474887",
"0.7040427",
"0.70364213",
"0.7033938",
"0.70329815",
"0.70314467",
"0.7030191",
"0.70283186",
"0.7026526",
"0.7026042",
"0.70191324",
"0.70188385",
"0.7016161",
"0.7015742",
"0.7015742",
"0.7015742",
"0.7015742",
"0.7013744",
"0.70122176",
"0.7007338",
"0.7006063",
"0.7000109",
"0.699309",
"0.6992281",
"0.69919884",
"0.69916654",
"0.69877404",
"0.6976735",
"0.6973081",
"0.6972492",
"0.69650584",
"0.6963538",
"0.69604754",
"0.6959247",
"0.69583184",
"0.6957692",
"0.6955721",
"0.69542587",
"0.6953059",
"0.6952554",
"0.6952554",
"0.69522566",
"0.6951914",
"0.6948007",
"0.6947661",
"0.6947127",
"0.69470865",
"0.6945527",
"0.6943303",
"0.69391584",
"0.6939035",
"0.6938418",
"0.6937278",
"0.69358575",
"0.6933561",
"0.6933561",
"0.6926285",
"0.6925856",
"0.6922983",
"0.6920094",
"0.69180065",
"0.69132924",
"0.6912103",
"0.6911842",
"0.69109",
"0.69100696",
"0.69090855",
"0.69090855",
"0.69090855",
"0.69090855",
"0.6908638"
] | 0.0 | -1 |
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) | func (_WyvernExchange *WyvernExchangeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*WyvernExchangeOwnershipTransferredIterator, error) {
var previousOwnerRule []interface{}
for _, previousOwnerItem := range previousOwner {
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
}
var newOwnerRule []interface{}
for _, newOwnerItem := range newOwner {
newOwnerRule = append(newOwnerRule, newOwnerItem)
}
logs, sub, err := _WyvernExchange.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
if err != nil {
return nil, err
}
return &WyvernExchangeOwnershipTransferredIterator{contract: _WyvernExchange.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_AuthContract *AuthContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AuthContractOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractOwnershipTransferredIterator{contract: _AuthContract.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HasNoEtherOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HasNoEtherOwnershipTransferredIterator{contract: _HasNoEther.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProjectWalletAuthoriserOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ProjectWalletAuthoriserOwnershipTransferredIterator{contract: _ProjectWalletAuthoriser.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTokenHelperOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTokenHelperOwnershipTransferredIterator{contract: _ElvTokenHelper.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BurnableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BurnableTokenOwnershipTransferredIterator{contract: _BurnableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnerProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnerProxyRegistryOwnershipTransferredIterator{contract: _OwnerProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mevsky *MevskyFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MevskyOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MevskyOwnershipTransferredIterator{contract: _Mevsky.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TransferProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TransferProxyRegistryOwnershipTransferredIterator{contract: _TransferProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Caller *CallerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CallerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CallerOwnershipTransferredIterator{contract: _Caller.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*McapscontrollerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &McapscontrollerOwnershipTransferredIterator{contract: _Mcapscontroller.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ERC20HecoManagerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ERC20HecoManagerOwnershipTransferredIterator{contract: _ERC20HecoManager.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*GatekeeperOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &GatekeeperOwnershipTransferredIterator{contract: _Gatekeeper.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_MintableToken *MintableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MintableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MintableTokenOwnershipTransferredIterator{contract: _MintableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Validator *ValidatorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ValidatorOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ValidatorOwnershipTransferredIterator{contract: _Validator.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (f *HubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HubOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := f.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HubOwnershipTransferredIterator{contract: f.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_SingleAuto *SingleAutoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SingleAutoOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SingleAutoOwnershipTransferredIterator{contract: _SingleAuto.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_PausableToken *PausableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PausableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableTokenOwnershipTransferredIterator{contract: _PausableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TokenVesting *TokenVestingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenVestingOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenVestingOwnershipTransferredIterator{contract: _TokenVesting.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ChpRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ChpRegistryOwnershipTransferredIterator{contract: _ChpRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FeeCurrencyWhitelistOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FeeCurrencyWhitelistOwnershipTransferredIterator{contract: _FeeCurrencyWhitelist.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OnesplitauditOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OnesplitauditOwnershipTransferredIterator{contract: _Onesplitaudit.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BREMTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BREMTokenOwnershipTransferredIterator{contract: _BREMToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenStakingEscrowOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenStakingEscrowOwnershipTransferredIterator{contract: _TokenStakingEscrow.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTradableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableOwnershipTransferredIterator{contract: _ElvTradable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bucket *BucketFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BucketOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BucketOwnershipTransferredIterator{contract: _Bucket.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Smartchef *SmartchefFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SmartchefOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SmartchefOwnershipTransferredIterator{contract: _Smartchef.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Pausable *PausableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PausableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableOwnershipTransferredIterator{contract: _Pausable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DetailedTestTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedTestTokenOwnershipTransferredIterator{contract: _DetailedTestToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bep20 *Bep20Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Bep20OwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Bep20OwnershipTransferredIterator{contract: _Bep20.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_OracleMgr *OracleMgrFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OracleMgrOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OracleMgrOwnershipTransferredIterator{contract: _OracleMgr.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*FixedSupplyTokenOwnershipTransferredIterator, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.FilterLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FixedSupplyTokenOwnershipTransferredIterator{contract: _FixedSupplyToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DelayedWithdrawalOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DelayedWithdrawal.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DelayedWithdrawalOwnershipTransferredIterator{contract: _DelayedWithdrawal.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTradableLocalOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableLocalOwnershipTransferredIterator{contract: _ElvTradableLocal.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipTransferred)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Erc20MockOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc20MockOwnershipTransferredIterator{contract: _Erc20Mock.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UpkeepRegistrationRequestsOwnershipTransferredIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsOwnershipTransferredIterator{contract: _UpkeepRegistrationRequests.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipTransferred)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DospaymentOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DospaymentOwnershipTransferredIterator{contract: _Dospayment.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Cakevault *CakevaultFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CakevaultOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Cakevault.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CakevaultOwnershipTransferredIterator{contract: _Cakevault.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bep20 *Bep20Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Bep20OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Bep20OwnershipTransferred)\n\t\t\t\tif err := _Bep20.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ERC20HecoManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20HecoManagerOwnershipTransferred)\n\t\t\t\tif err := _ERC20HecoManager.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*VorRandomnessRequestMockOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &VorRandomnessRequestMockOwnershipTransferredIterator{contract: _VorRandomnessRequestMock.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HasNoEtherOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HasNoEtherOwnershipTransferred)\n\t\t\t\tif err := _HasNoEther.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mevsky *MevskyFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MevskyOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MevskyOwnershipTransferred)\n\t\t\t\tif err := _Mevsky.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*OwnedOwnershipTransferredIterator, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Owned.contract.FilterLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnedOwnershipTransferredIterator{contract: _Owned.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SimpleReadAccessControllerOwnershipTransferredIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.FilterLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SimpleReadAccessControllerOwnershipTransferredIterator{contract: _SimpleReadAccessController.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*CrowdsaleOwnershipTransferredIterator, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.FilterLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CrowdsaleOwnershipTransferredIterator{contract: _Crowdsale.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeeCurrencyWhitelistOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FeeCurrencyWhitelistOwnershipTransferred)\n\t\t\t\tif err := _FeeCurrencyWhitelist.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableOwnershipTransferred)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(WyvernExchangeOwnershipTransferred)\n\t\t\t\tif err := _WyvernExchange.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BurnableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BurnableTokenOwnershipTransferred)\n\t\t\t\tif err := _BurnableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BucketOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipTransferred)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BREMToken *BREMTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BREMTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMTokenOwnershipTransferred)\n\t\t\t\tif err := _BREMToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTokenHelperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenHelperOwnershipTransferred)\n\t\t\t\tif err := _ElvTokenHelper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableOwnershipTransferred)\n\t\t\t\tif err := _Pausable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GatekeeperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(GatekeeperOwnershipTransferred)\n\t\t\t\tif err := _Gatekeeper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalOwnershipTransferred)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Storage *StorageFilterer) FilterOwnerTransferred(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*StorageOwnerTransferredIterator, error) {\n\n\tvar oldOwnerRule []interface{}\n\tfor _, oldOwnerItem := range oldOwner {\n\t\toldOwnerRule = append(oldOwnerRule, oldOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Storage.contract.FilterLogs(opts, \"OwnerTransferred\", oldOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &StorageOwnerTransferredIterator{contract: _Storage.contract, event: \"OwnerTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(McapscontrollerOwnershipTransferred)\n\t\t\t\tif err := _Mcapscontroller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SingleAuto *SingleAutoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SingleAutoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SingleAutoOwnershipTransferred)\n\t\t\t\tif err := _SingleAuto.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Caller *CallerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CallerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CallerOwnershipTransferred)\n\t\t\t\tif err := _Caller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_MintableToken *MintableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MintableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MintableTokenOwnershipTransferred)\n\t\t\t\tif err := _MintableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipTransferred)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnerProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnerProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _OwnerProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OracleMgr *OracleMgrFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OracleMgrOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OracleMgrOwnershipTransferred)\n\t\t\t\tif err := _OracleMgr.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ChpRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ChpRegistryOwnershipTransferred)\n\t\t\t\tif err := _ChpRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Smartchef *SmartchefFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SmartchefOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SmartchefOwnershipTransferred)\n\t\t\t\tif err := _Smartchef.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Cakevault *CakevaultFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CakevaultOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Cakevault.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CakevaultOwnershipTransferred)\n\t\t\t\tif err := _Cakevault.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OnesplitauditOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OnesplitauditOwnershipTransferred)\n\t\t\t\tif err := _Onesplitaudit.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DelayedWithdrawalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DelayedWithdrawal.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DelayedWithdrawalOwnershipTransferred)\n\t\t\t\tif err := _DelayedWithdrawal.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_PausableToken *PausableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableTokenOwnershipTransferred)\n\t\t\t\tif err := _PausableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (f *HubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HubOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := f.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HubOwnershipTransferred)\n\t\t\t\tif err := f.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenStakingEscrowOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenStakingEscrowOwnershipTransferred)\n\t\t\t\tif err := _TokenStakingEscrow.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Validator *ValidatorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ValidatorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ValidatorOwnershipTransferred)\n\t\t\t\tif err := _Validator.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenVesting *TokenVestingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenVestingOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenVestingOwnershipTransferred)\n\t\t\t\tif err := _TokenVesting.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TransferProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TransferProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _TransferProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20MockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockOwnershipTransferred)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DetailedTestTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedTestTokenOwnershipTransferred)\n\t\t\t\tif err := _DetailedTestToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FixedSupplyTokenOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FixedSupplyTokenOwnershipTransferred)\n\t\t\t\tif err := _FixedSupplyToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CrowdsaleOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsaleOwnershipTransferred)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnedOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedOwnershipTransferred)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsOwnershipTransferred)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VorRandomnessRequestMockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(VorRandomnessRequestMockOwnershipTransferred)\n\t\t\t\tif err := _VorRandomnessRequestMock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SimpleReadAccessControllerOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.WatchLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SimpleReadAccessControllerOwnershipTransferred)\n\t\t\t\tif err := _SimpleReadAccessController.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*ProjectWalletAuthoriserOwnershipRenouncedIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.FilterLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ProjectWalletAuthoriserOwnershipRenouncedIterator{contract: _ProjectWalletAuthoriser.contract, event: \"OwnershipRenounced\", logs: logs, sub: sub}, nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SimpleReadAccessControllerOwnershipTransferRequestedIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.FilterLogs(opts, \"OwnershipTransferRequested\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SimpleReadAccessControllerOwnershipTransferRequestedIterator{contract: _SimpleReadAccessController.contract, event: \"OwnershipTransferRequested\", logs: logs, sub: sub}, nil\n}"
] | [
"0.82078457",
"0.8199997",
"0.8196443",
"0.8196443",
"0.8184585",
"0.81775403",
"0.81708753",
"0.8169562",
"0.8159241",
"0.8133514",
"0.81288224",
"0.81251216",
"0.8119557",
"0.81195354",
"0.81140655",
"0.809726",
"0.8096259",
"0.80938095",
"0.80818874",
"0.80818874",
"0.80818874",
"0.80818874",
"0.80818874",
"0.807289",
"0.8060836",
"0.8058671",
"0.8058377",
"0.80515444",
"0.80433404",
"0.8040382",
"0.804014",
"0.8036916",
"0.8032858",
"0.80328083",
"0.80205834",
"0.80163944",
"0.8002563",
"0.79704505",
"0.7969714",
"0.79268855",
"0.7921762",
"0.7912844",
"0.79084",
"0.7904335",
"0.7900507",
"0.78975105",
"0.7884411",
"0.7882743",
"0.7872316",
"0.7848816",
"0.7802457",
"0.77968615",
"0.77839553",
"0.7783039",
"0.7782471",
"0.7780497",
"0.7759527",
"0.7735579",
"0.7720746",
"0.7720744",
"0.769973",
"0.769973",
"0.769973",
"0.769973",
"0.769973",
"0.7696357",
"0.7689178",
"0.7669155",
"0.7669155",
"0.7668567",
"0.76550716",
"0.76543796",
"0.7632036",
"0.76268107",
"0.7625712",
"0.76169974",
"0.76118195",
"0.7605534",
"0.75977755",
"0.75918233",
"0.75912905",
"0.75749743",
"0.7568615",
"0.75677156",
"0.756283",
"0.7560816",
"0.7553678",
"0.7553261",
"0.75495934",
"0.75486547",
"0.7544686",
"0.75269413",
"0.7460653",
"0.74592084",
"0.74523675",
"0.74163014",
"0.7383614",
"0.7317581",
"0.7295407",
"0.71856004"
] | 0.8022472 | 34 |
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) | func (_WyvernExchange *WyvernExchangeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *WyvernExchangeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
var previousOwnerRule []interface{}
for _, previousOwnerItem := range previousOwner {
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
}
var newOwnerRule []interface{}
for _, newOwnerItem := range newOwner {
newOwnerRule = append(newOwnerRule, newOwnerItem)
}
logs, sub, err := _WyvernExchange.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(WyvernExchangeOwnershipTransferred)
if err := _WyvernExchange.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_AuthContract *AuthContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipTransferred)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BurnableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BurnableTokenOwnershipTransferred)\n\t\t\t\tif err := _BurnableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Smartchef *SmartchefFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SmartchefOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SmartchefOwnershipTransferred)\n\t\t\t\tif err := _Smartchef.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenOwnershipTransferred)\n\t\t\t\tif err := _Token.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HasNoEtherOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HasNoEtherOwnershipTransferred)\n\t\t\t\tif err := _HasNoEther.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipTransferred)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SingleAuto *SingleAutoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SingleAutoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SingleAutoOwnershipTransferred)\n\t\t\t\tif err := _SingleAuto.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BucketOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipTransferred)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_MintableToken *MintableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MintableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MintableTokenOwnershipTransferred)\n\t\t\t\tif err := _MintableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipTransferred)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mevsky *MevskyFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MevskyOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(MevskyOwnershipTransferred)\n\t\t\t\tif err := _Mevsky.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GatekeeperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(GatekeeperOwnershipTransferred)\n\t\t\t\tif err := _Gatekeeper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DetailedTestTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DetailedTestTokenOwnershipTransferred)\n\t\t\t\tif err := _DetailedTestToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableOwnershipTransferred)\n\t\t\t\tif err := _Pausable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_PausableToken *PausableTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PausableTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(PausableTokenOwnershipTransferred)\n\t\t\t\tif err := _PausableToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (f *HubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HubOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := f.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(HubOwnershipTransferred)\n\t\t\t\tif err := f.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradable *ElvTradableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableOwnershipTransferred)\n\t\t\t\tif err := _ElvTradable.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Bep20 *Bep20Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Bep20OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Bep20OwnershipTransferred)\n\t\t\t\tif err := _Bep20.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_BREMToken *BREMTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BREMTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BREMTokenOwnershipTransferred)\n\t\t\t\tif err := _BREMToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Cakevault *CakevaultFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CakevaultOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Cakevault.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CakevaultOwnershipTransferred)\n\t\t\t\tif err := _Cakevault.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenVesting *TokenVestingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenVestingOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenVestingOwnershipTransferred)\n\t\t\t\tif err := _TokenVesting.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Caller *CallerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CallerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CallerOwnershipTransferred)\n\t\t\t\tif err := _Caller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTokenHelperOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTokenHelperOwnershipTransferred)\n\t\t\t\tif err := _ElvTokenHelper.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OnesplitauditOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OnesplitauditOwnershipTransferred)\n\t\t\t\tif err := _Onesplitaudit.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipTransferred)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Validator *ValidatorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ValidatorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ValidatorOwnershipTransferred)\n\t\t\t\tif err := _Validator.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeeCurrencyWhitelistOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FeeCurrencyWhitelistOwnershipTransferred)\n\t\t\t\tif err := _FeeCurrencyWhitelist.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TransferProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TransferProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _TransferProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnerProxyRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnerProxyRegistryOwnershipTransferred)\n\t\t\t\tif err := _OwnerProxyRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OracleMgr *OracleMgrFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OracleMgrOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OracleMgrOwnershipTransferred)\n\t\t\t\tif err := _OracleMgr.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(McapscontrollerOwnershipTransferred)\n\t\t\t\tif err := _Mcapscontroller.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_DelayedWithdrawal *DelayedWithdrawalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DelayedWithdrawalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DelayedWithdrawal.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DelayedWithdrawalOwnershipTransferred)\n\t\t\t\tif err := _DelayedWithdrawal.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ChpRegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ChpRegistryOwnershipTransferred)\n\t\t\t\tif err := _ChpRegistry.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FixedSupplyTokenOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(FixedSupplyTokenOwnershipTransferred)\n\t\t\t\tif err := _FixedSupplyToken.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ElvTradableLocal *ElvTradableLocalFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ElvTradableLocalOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradableLocal.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ElvTradableLocalOwnershipTransferred)\n\t\t\t\tif err := _ElvTradableLocal.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc20MockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(Erc20MockOwnershipTransferred)\n\t\t\t\tif err := _Erc20Mock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_ERC20HecoManager *ERC20HecoManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ERC20HecoManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ERC20HecoManager.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ERC20HecoManagerOwnershipTransferred)\n\t\t\t\tif err := _ERC20HecoManager.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TokenStakingEscrowOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(TokenStakingEscrowOwnershipTransferred)\n\t\t\t\tif err := _TokenStakingEscrow.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VorRandomnessRequestMockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.WatchLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(VorRandomnessRequestMockOwnershipTransferred)\n\t\t\t\tif err := _VorRandomnessRequestMock.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SimpleReadAccessControllerOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.WatchLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SimpleReadAccessControllerOwnershipTransferred)\n\t\t\t\tif err := _SimpleReadAccessController.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Owned *OwnedFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnedOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Owned.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnedOwnershipTransferred)\n\t\t\t\tif err := _Owned.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsOwnershipTransferred)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Storage *StorageFilterer) WatchOwnerTransferred(opts *bind.WatchOpts, sink chan<- *StorageOwnerTransferred, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {\n\n\tvar oldOwnerRule []interface{}\n\tfor _, oldOwnerItem := range oldOwner {\n\t\toldOwnerRule = append(oldOwnerRule, oldOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Storage.contract.WatchLogs(opts, \"OwnerTransferred\", oldOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(StorageOwnerTransferred)\n\t\t\t\tif err := _Storage.contract.UnpackLog(event, \"OwnerTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Crowdsale *CrowdsaleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CrowdsaleOwnershipTransferred, _from []common.Address, _to []common.Address) (event.Subscription, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _Crowdsale.contract.WatchLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(CrowdsaleOwnershipTransferred)\n\t\t\t\tif err := _Crowdsale.contract.UnpackLog(event, \"OwnershipTransferred\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_SimpleReadAccessController *SimpleReadAccessControllerFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *SimpleReadAccessControllerOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _SimpleReadAccessController.contract.WatchLogs(opts, \"OwnershipTransferRequested\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(SimpleReadAccessControllerOwnershipTransferRequested)\n\t\t\t\tif err := _SimpleReadAccessController.contract.UnpackLog(event, \"OwnershipTransferRequested\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Token *TokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Token.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenOwnershipTransferredIterator{contract: _Token.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_OwnerProxyRegistry *OwnerProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnerProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OwnerProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnerProxyRegistryOwnershipTransferredIterator{contract: _OwnerProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *UpkeepRegistrationRequestsOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.WatchLogs(opts, \"OwnershipTransferRequested\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(UpkeepRegistrationRequestsOwnershipTransferRequested)\n\t\t\t\tif err := _UpkeepRegistrationRequests.contract.UnpackLog(event, \"OwnershipTransferRequested\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (f *HubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HubOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := f.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HubOwnershipTransferredIterator{contract: f.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_PausableToken *PausableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PausableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _PausableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableTokenOwnershipTransferredIterator{contract: _PausableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TokenVesting *TokenVestingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenVestingOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenVesting.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenVestingOwnershipTransferredIterator{contract: _TokenVesting.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BurnableToken *BurnableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BurnableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BurnableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BurnableTokenOwnershipTransferredIterator{contract: _BurnableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Gatekeeper *GatekeeperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*GatekeeperOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Gatekeeper.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &GatekeeperOwnershipTransferredIterator{contract: _Gatekeeper.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Caller *CallerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CallerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Caller.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CallerOwnershipTransferredIterator{contract: _Caller.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TransferProxyRegistry *TransferProxyRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TransferProxyRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TransferProxyRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TransferProxyRegistryOwnershipTransferredIterator{contract: _TransferProxyRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bucket *BucketFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BucketOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BucketOwnershipTransferredIterator{contract: _Bucket.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_MintableToken *MintableTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MintableTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _MintableToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MintableTokenOwnershipTransferredIterator{contract: _MintableToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTokenHelper *ElvTokenHelperFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTokenHelperOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTokenHelper.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTokenHelperOwnershipTransferredIterator{contract: _ElvTokenHelper.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Validator *ValidatorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ValidatorOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Validator.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ValidatorOwnershipTransferredIterator{contract: _Validator.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_DetailedTestToken *DetailedTestTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DetailedTestTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _DetailedTestToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DetailedTestTokenOwnershipTransferredIterator{contract: _DetailedTestToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ChpRegistry *ChpRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ChpRegistryOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ChpRegistry.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ChpRegistryOwnershipTransferredIterator{contract: _ChpRegistry.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AuthContractOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &AuthContractOwnershipTransferredIterator{contract: _AuthContract.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_SingleAuto *SingleAutoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SingleAutoOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _SingleAuto.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SingleAutoOwnershipTransferredIterator{contract: _SingleAuto.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *ProjectWalletAuthoriserOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(ProjectWalletAuthoriserOwnershipRenounced)\n\t\t\t\tif err := _ProjectWalletAuthoriser.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Pausable *PausableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PausableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Pausable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &PausableOwnershipTransferredIterator{contract: _Pausable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mcapscontroller *McapscontrollerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*McapscontrollerOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mcapscontroller.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &McapscontrollerOwnershipTransferredIterator{contract: _Mcapscontroller.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Smartchef *SmartchefFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SmartchefOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Smartchef.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &SmartchefOwnershipTransferredIterator{contract: _Smartchef.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Mevsky *MevskyFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MevskyOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Mevsky.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &MevskyOwnershipTransferredIterator{contract: _Mevsky.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ProjectWalletAuthoriser *ProjectWalletAuthoriserFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProjectWalletAuthoriserOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ProjectWalletAuthoriser.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ProjectWalletAuthoriserOwnershipTransferredIterator{contract: _ProjectWalletAuthoriser.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_BREMToken *BREMTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BREMTokenOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _BREMToken.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BREMTokenOwnershipTransferredIterator{contract: _BREMToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_WyvernExchange *WyvernExchangeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*WyvernExchangeOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _WyvernExchange.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &WyvernExchangeOwnershipTransferredIterator{contract: _WyvernExchange.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_AuthContract *AuthContractFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *AuthContractOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _AuthContract.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(AuthContractOwnershipRenounced)\n\t\t\t\tif err := _AuthContract.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Dospayment *DospaymentFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *DospaymentOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(DospaymentOwnershipRenounced)\n\t\t\t\tif err := _Dospayment.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_OracleMgr *OracleMgrFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OracleMgrOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _OracleMgr.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OracleMgrOwnershipTransferredIterator{contract: _OracleMgr.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_HasNoEther *HasNoEtherFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HasNoEtherOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _HasNoEther.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &HasNoEtherOwnershipTransferredIterator{contract: _HasNoEther.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_TokenStakingEscrow *TokenStakingEscrowFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TokenStakingEscrowOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _TokenStakingEscrow.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TokenStakingEscrowOwnershipTransferredIterator{contract: _TokenStakingEscrow.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_FeeCurrencyWhitelist *FeeCurrencyWhitelistFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FeeCurrencyWhitelistOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _FeeCurrencyWhitelist.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FeeCurrencyWhitelistOwnershipTransferredIterator{contract: _FeeCurrencyWhitelist.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Onesplitaudit *OnesplitauditFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OnesplitauditOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Onesplitaudit.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &OnesplitauditOwnershipTransferredIterator{contract: _Onesplitaudit.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_FixedSupplyToken *FixedSupplyTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*FixedSupplyTokenOwnershipTransferredIterator, error) {\n\n\tvar _fromRule []interface{}\n\tfor _, _fromItem := range _from {\n\t\t_fromRule = append(_fromRule, _fromItem)\n\t}\n\tvar _toRule []interface{}\n\tfor _, _toItem := range _to {\n\t\t_toRule = append(_toRule, _toItem)\n\t}\n\n\tlogs, sub, err := _FixedSupplyToken.contract.FilterLogs(opts, \"OwnershipTransferred\", _fromRule, _toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &FixedSupplyTokenOwnershipTransferredIterator{contract: _FixedSupplyToken.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_ElvTradable *ElvTradableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ElvTradableOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _ElvTradable.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ElvTradableOwnershipTransferredIterator{contract: _ElvTradable.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Erc20Mock *Erc20MockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Erc20MockOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Erc20Mock.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Erc20MockOwnershipTransferredIterator{contract: _Erc20Mock.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_VorRandomnessRequestMock *VorRandomnessRequestMockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*VorRandomnessRequestMockOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _VorRandomnessRequestMock.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &VorRandomnessRequestMockOwnershipTransferredIterator{contract: _VorRandomnessRequestMock.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bucket *BucketFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *BucketOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bucket.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(BucketOwnershipRenounced)\n\t\t\t\tif err := _Bucket.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Cakevault *CakevaultFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CakevaultOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Cakevault.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &CakevaultOwnershipTransferredIterator{contract: _Cakevault.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Bep20 *Bep20Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Bep20OwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Bep20.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Bep20OwnershipTransferredIterator{contract: _Bep20.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipRenounced)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\n\tlogs, sub, err := _Ownable.contract.WatchLogs(opts, \"OwnershipRenounced\", previousOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn event.NewSubscription(func(quit <-chan struct{}) error {\n\t\tdefer sub.Unsubscribe()\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase log := <-logs:\n\t\t\t\t// New log arrived, parse the event and forward to the user\n\t\t\t\tevent := new(OwnableOwnershipRenounced)\n\t\t\t\tif err := _Ownable.contract.UnpackLog(event, \"OwnershipRenounced\", log); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tevent.Raw = log\n\n\t\t\t\tselect {\n\t\t\t\tcase sink <- event:\n\t\t\t\tcase err := <-sub.Err():\n\t\t\t\t\treturn err\n\t\t\t\tcase <-quit:\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\tcase err := <-sub.Err():\n\t\t\t\treturn err\n\t\t\tcase <-quit:\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}), nil\n}",
"func (_UpkeepRegistrationRequests *UpkeepRegistrationRequestsFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UpkeepRegistrationRequestsOwnershipTransferredIterator, error) {\n\n\tvar fromRule []interface{}\n\tfor _, fromItem := range from {\n\t\tfromRule = append(fromRule, fromItem)\n\t}\n\tvar toRule []interface{}\n\tfor _, toItem := range to {\n\t\ttoRule = append(toRule, toItem)\n\t}\n\n\tlogs, sub, err := _UpkeepRegistrationRequests.contract.FilterLogs(opts, \"OwnershipTransferred\", fromRule, toRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &UpkeepRegistrationRequestsOwnershipTransferredIterator{contract: _UpkeepRegistrationRequests.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}",
"func (_Dospayment *DospaymentFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DospaymentOwnershipTransferredIterator, error) {\n\n\tvar previousOwnerRule []interface{}\n\tfor _, previousOwnerItem := range previousOwner {\n\t\tpreviousOwnerRule = append(previousOwnerRule, previousOwnerItem)\n\t}\n\tvar newOwnerRule []interface{}\n\tfor _, newOwnerItem := range newOwner {\n\t\tnewOwnerRule = append(newOwnerRule, newOwnerItem)\n\t}\n\n\tlogs, sub, err := _Dospayment.contract.FilterLogs(opts, \"OwnershipTransferred\", previousOwnerRule, newOwnerRule)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &DospaymentOwnershipTransferredIterator{contract: _Dospayment.contract, event: \"OwnershipTransferred\", logs: logs, sub: sub}, nil\n}"
] | [
"0.8420154",
"0.8375617",
"0.8362103",
"0.83507127",
"0.83507127",
"0.8347761",
"0.8344576",
"0.8344434",
"0.8338662",
"0.83249766",
"0.8324705",
"0.8324705",
"0.8324705",
"0.8324705",
"0.8324705",
"0.8322605",
"0.83211404",
"0.8314188",
"0.83084536",
"0.83022434",
"0.8279124",
"0.8272246",
"0.8270581",
"0.8270508",
"0.826341",
"0.8259016",
"0.8258894",
"0.825289",
"0.8242391",
"0.8241822",
"0.8232898",
"0.82172036",
"0.82081056",
"0.8203646",
"0.8202968",
"0.81755525",
"0.8152831",
"0.8146776",
"0.81358296",
"0.81348526",
"0.8125967",
"0.8106451",
"0.8099792",
"0.8073882",
"0.7990097",
"0.7984615",
"0.79493785",
"0.7829724",
"0.7777105",
"0.7363036",
"0.7285539",
"0.7285539",
"0.7253534",
"0.7253466",
"0.7248837",
"0.7230197",
"0.7199952",
"0.7195523",
"0.7194363",
"0.7183998",
"0.7183449",
"0.7178415",
"0.716973",
"0.7166598",
"0.7166598",
"0.7166598",
"0.7166598",
"0.7166598",
"0.7159011",
"0.7157249",
"0.715631",
"0.71546793",
"0.7152478",
"0.7145625",
"0.71389675",
"0.7136971",
"0.7111916",
"0.70976055",
"0.7085036",
"0.7077897",
"0.7045982",
"0.70420194",
"0.7027828",
"0.7025629",
"0.701746",
"0.7016449",
"0.70133847",
"0.7007432",
"0.7007008",
"0.6989529",
"0.6977236",
"0.6941029",
"0.69275373",
"0.6917597",
"0.6915647",
"0.69139135",
"0.69074494",
"0.69074494",
"0.68969345",
"0.6893714"
] | 0.8195382 | 35 |
Close db connection close | func Close() {
err := engine.Close()
if err != nil {
log.Errorf("Close db failed: err=%s", err)
return
}
log.Info("DB engine closed.")
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (db *Database) Close() { db.pg.Close() }",
"func CloseDB() {\n\tdb.Close()\n}",
"func CloseDB() {\n\tdb.Close()\n}",
"func CloseDB() {\n\tDb.Close()\n}",
"func (c *client) close() {\n\tc.user.Close()\n\tc.conn.Close()\n\n\tc.sysConn.Exec(\"DROP DATABASE IF EXISTS \" + c.connConfig.Database)\n\tc.sysConn.Close()\n}",
"func (d *Driver) Close() error { return d.DB().Close() }",
"func (self PostgresDatabase) Close() {\n if self.conn != nil {\n self.conn.Close()\n self.conn = nil\n }\n}",
"func CloseDB() {\n\tif db != nil {\n\t\tdb.Close()\n\t}\n}",
"func CloseDB() {\n\tdefer db.Close()\n}",
"func CloseDB() {\n\tdefer db.Close()\n}",
"func (db *mongoDB) Close() {\n\tdb.conn.Close()\n}",
"func CloseDB() {\n\tdb.Close()\n\tdb = nil\n}",
"func (db *Database) Close() {\n\tif db != nil {\n\t\tdb.conn.Close()\n\t}\n}",
"func DBClose(db *sql.DB) {\n\tdb.Close()\n}",
"func (dbConn *DBConnection) Close() {\n\tif dbConn.db != nil {\n\t\tdbConn.db.Close()\n\t}\n}",
"func (db *DB) Close() {\n\tif db == nil {\n\t\treturn\n\t}\n\n\tif db.roIt != nil {\n\t\tdb.roIt.Close()\n\t}\n\n\tif db.ro != nil {\n\t\tdb.ro.Close()\n\t}\n\n\tif db.wo != nil {\n\t\tdb.wo.Close()\n\t}\n\n\tif db.LevigoDB != nil {\n\t\tdb.LevigoDB.Close()\n\t}\n\t// delete cache AFTER close leveldb or it will hang.\n\t// See cache in http://leveldb.googlecode.com/svn/trunk/doc/index.html\n\tif db.cache != nil {\n\t\tdb.cache.Close()\n\t}\n}",
"func CloseDbConnection(db *pg.DB) {\n\tdb.Close()\n}",
"func (db *dbConnection) Close() error {\n\tfmt.Println(\"Close: Connection\", db.ID)\n\treturn nil\n}",
"func Close() {\n\tdb.Close()\n}",
"func Close() {\n\tdb.Close()\n}",
"func Close() {\n\tdb.Close()\n}",
"func (this *Database) Close() {\n\tthis.db.Close()\n}",
"func (this *Database) Close() {\n\tthis.db.Close()\n}",
"func (p Pgconnector) Close() error {\r\n\treturn p.Db.Close()\r\n}",
"func (rd *RemoteDB) Close() {\n}",
"func (db *mongoDB) Close() {\n\tdb.logger.Info(\"Disconnecting from database\")\n\tdb.conn.Close()\n}",
"func Close() {\n\t_db.Close()\n\t_db = nil\n}",
"func (m *mysqlDB) Close() {\n\tfmt.Println(\"DB close\")\n\tm.conn.Close()\n}",
"func CloseDB() {\n\tdbService.CloseDB()\n}",
"func (db *DB) Close() {\n\tdb.db.Close()\n}",
"func (db *DB) Close() {\n\tif err := db.Client.Disconnect(context.TODO()); err != nil {\n\t\tlog.Printf(\"Error closing mongo storage: %s\\n\", err)\n\t}\n}",
"func CloseDatabase() {\n\tdatabaseAccess.close()\n}",
"func closeDB(db *bbolt.DB) error {\n\treturn db.Close()\n}",
"func (w *dbWrapper) close() error {\n\terr := w.db.Close()\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"can't close db\")\n\t}\n\treturn nil\n}",
"func Close(db *sql.DB) {\n\tdb.Close()\n}",
"func (db *DB) Close() {\n\tdb.boltDB.Close()\n}",
"func DestroyConnection() {\n\n\tdb.Close()\n\n}",
"func (s *Server) closeDB() error {\n\tlog.Debugf(\"Closing server DBs\")\n\t// close default CA DB\n\terr := s.CA.closeDB()\n\tif err != nil {\n\t\treturn err\n\t}\n\t// close other CAs DB\n\tfor _, c := range s.caMap {\n\t\terr = c.closeDB()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\treturn nil\n}",
"func (db *WorkDB) Close() {\n\tdb.db.Close()\n}",
"func (db *BotDB) Close() {\n\tif db.db != nil {\n\t\tdb.db.Close()\n\t\tdb.db = nil\n\t}\n}",
"func DBClose() error {\n\treturn db.Close()\n}",
"func Close() {\n\tdbcontext.Close()\n}",
"func CloseDB() error {\n\treturn db.Close()\n}",
"func Close() {\n\tdatabase.db.Close()\n}",
"func (c *client) Close() error {\n\tif c.db != nil {\n\t\treturn c.db.Close()\n\t}\n\treturn nil\n}",
"func (c *PostgreSQLConnection) Close() {\n\ttry := 0\n\terr := c.db.Close()\n\n\tif err != nil {\n\t\tlog.Printf(\"[!] Failed to close the connection. Reason %v\\n\", err)\n\t\tfor ; try < 3; try++ {\n\t\t\tlog.Printf(\"[-] Trying to close the connection again\\n\")\n\t\t\terr = c.db.Close()\n\t\t}\n\n\t\tif err != nil {\n\t\t\tlog.Printf(\"[!] Database connection couldn't be closed. Reason %v\\n\",\n\t\t\t\terr)\n\t\t}\n\t}\n}",
"func (this *DBHandler) Close() {\n\tthis.db.Close()\n}",
"func (db *DB) Close() error {\n\treturn db.simple(jdh.Close)\n}",
"func (db Database) Close() {\n\tdb.DB.Close()\n}",
"func (d *DB) Close() error { return d.lab.Close() }",
"func (db *DB) Close() {\n\tdb.session.Close()\n}",
"func (db *DB) Close() {\n\tdb.session.Close()\n}",
"func (c Conn) Close(ctx context.Context) {\n\tc.db.Close(ctx)\n}",
"func (d *MovieDatabase) Close() {\n\td.Client.Disconnect(d.Context)\n}",
"func (db *DB) Close() {\n\tdb.e.Close()\n}",
"func (t *TestDB) Close() {\n\tt.client.Disconnect(context.Background())\n}",
"func (db *DB) Close() error {\n\tif err := db.leader.Close(); err != nil {\n\t\treturn err\n\t}\n\tif err := db.follower.Close(); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func CloseDB() error {\n\tif db == nil {\n\t\treturn errors.New(\"database not initialized\")\n\t}\n\treturn db.Close()\n}",
"func (cn *Conn) Close() {\n\tcn.DB.Close()\n}",
"func Disconnect() error {\n return database.Close()\n}",
"func Disconnect() {\n\tdb.Close()\n}",
"func (db *Connection) Close() error {\n\treturn db.con.Close()\n}",
"func (p *CockroachDriver) Close() {\n\tp.dbConn.Close()\n}",
"func (db *EdDb) Close() {\n\t// close prepared statements\n\tfor title := range db.preparedStatements() {\n\t\tdb.statements[title].Close()\n\t}\n\n\t//close databases\n\tdb.dbConn.Close()\n\treturn\n}",
"func (db *DB) Close() error {\n\tif db.isClosed {\n\t\treturn errors.New(\"database already closed\")\n\t}\n\tclose(db.request)\n\treturn nil\n}",
"func (db *TaskDB) Close() {\n\tif db.conn != nil {\n\t\tdb.conn.Close()\n\t}\n}",
"func (d *Dao) Close() {\n\td.redis.Close()\n\td.mallDB.Close()\n\td.ugcDB.Close()\n\td.ticketDB.Close()\n}",
"func (db *DB) Close() error {\n\tif db.db != nil {\n\t\tdb.db.Close()\n\t}\n\treturn nil\n}",
"func (db *Database) Close() error {\n\tdb.lock.Lock()\n\tdefer db.lock.Unlock()\n\n\tif db.db == nil {\n\t\treturn database.ErrClosed\n\t}\n\n\tdb.readOptions.Destroy()\n\tdb.iteratorOptions.Destroy()\n\tdb.writeOptions.Destroy()\n\tdb.db.Close()\n\n\tdb.db = nil\n\treturn nil\n}",
"func (db TestDB) Close() error {\n\treturn nil\n}",
"func (db *DB) Close() {\n\t// Possible Deaollocate errors ignored, we are going to close the connnection anyway.\n\tdb.ClearMap()\n\tdb.Pool.Close()\n}",
"func (dbm *DBManager) closeDB() {\n\tif !dbm.batchMode && dbm.db != nil {\n\t\tdbm.db.Close()\n\t\tdbm.db = nil\n\t}\n\n\treturn\n}",
"func Close() {\n\tdb.Close()\n\n\treturn\n}",
"func (db *DB) Close() error {\n\tif db.cancelBgWorker != nil {\n\t\tdb.cancelBgWorker()\n\t}\n\tdb.closeWg.Wait()\n\tdb.mu.Lock()\n\tdefer db.mu.Unlock()\n\tif err := db.writeMeta(); err != nil {\n\t\treturn err\n\t}\n\tif err := db.datalog.close(); err != nil {\n\t\treturn err\n\t}\n\tif err := db.index.close(); err != nil {\n\t\treturn err\n\t}\n\tif err := db.lock.Unlock(); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (c *Config) CloseDB() error {\n\treturn c.db.Close()\n}",
"func Close() error {\n\treturn db.Close()\n}",
"func (db *DB) Close() error {\n\treturn db.db.Close()\n}",
"func (db *DB) Close() error {\n\treturn db.db.Close()\n}",
"func (db *DB) Close() error {\n\treturn db.db.Close()\n}",
"func (db *db) Close() error {\n\treturn db.DB.Close()\n}",
"func (c *PostgresConnect) Close() error {\n\tif c.DB != nil {\n\t\treturn c.DB.Close()\n\t}\n\treturn nil\n}",
"func (db *DB) Close() {\n\tdb.mu.Lock()\n\tdefer db.mu.Unlock()\n\tif !db.closed {\n\t\tdb.closed = true\n\t\tclose(db.notifyQuit)\n\t\tclose(db.notifyOpen)\n\t\tclose(db.notifyError)\n\t\tclose(db.notifyInfo)\n\t}\n\tif db.reader != nil {\n\t\tdb.reader.Close()\n\t\tdb.reader = nil\n\t}\n}",
"func CloseDB() {\n\tdb, err := db.DB()\n\tif err != nil {\n\t\tdefer db.Close()\n\t}\n}",
"func (r *love) Close() {\n\tr.db.Close()\n}",
"func (db *DB) Close() error {\n\treturn db.bolt.Close()\n}",
"func (d *Dao) Close() {\n\td.DB.Close()\n}",
"func (db *DB) Close() error {\n\terr := db.levelJobsStmt.Close()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\terr = db.clientsStmt.Close()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn db.DB.Close()\n}",
"func (s *Postgres) Close() {\n\ts.db.Close()\n}",
"func (r *RavelDatabase) Close() {\n\terr := r.Conn.Close()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}",
"func (db *Database) Close() error {\n\treturn db.ng.Close()\n}",
"func (d *Dao) Close() {\n\tif d.db != nil {\n\t\td.db.Close()\n\t}\n}",
"func (d *Dao) Close() {\n\tif d.db != nil {\n\t\td.db.Close()\n\t}\n}",
"func (db *SQLStore) Close() error {\n\treturn db.conn.Close()\n}",
"func CloseDB() error {\n\tsugar.Debug(\"CloseDB\")\n\treturn DB.Close()\n}",
"func (db *DB) Close() error {\n\terr := db.DB.Close()\n\tdb.metrics.close()\n\treturn err\n}",
"func (d *Database) Close() {\n\terr := d.Conn.Close()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n}",
"func (dbInst *DB) Close() {\n\tdbInst.mux.Lock()\n\tif dbInst.dbState == closed {\n\t\tdbInst.mux.Unlock()\n\t\treturn\n\t}\n\n\tdefer dbInst.mux.Unlock()\n\tfor _, cfHandler := range dbInst.cfHandlesMap {\n\t\tcfHandler.Destroy()\n\t}\n\tdbInst.rocksDB.Close()\n\tdbInst.dbState = closed\n}",
"func (d *remoteDB) Close() error {\n\treturn d.conn.Close()\n}",
"func (driver *Driver) Close() error {\n\terr := driver.db.Close()\n\treturn err\n}",
"func (d DB) Close() error {\n\treturn d.conn.Close()\n}",
"func (d *BoltDB) Close() {\n\td.Close()\n}"
] | [
"0.7727972",
"0.7675741",
"0.7675741",
"0.7638188",
"0.75616086",
"0.7526975",
"0.74953043",
"0.74604607",
"0.74465835",
"0.74465835",
"0.7445511",
"0.7440745",
"0.7436199",
"0.74075085",
"0.7381792",
"0.7379398",
"0.73792595",
"0.7362095",
"0.73527515",
"0.73527515",
"0.73527515",
"0.73504",
"0.73504",
"0.7333739",
"0.73212016",
"0.7300271",
"0.72973764",
"0.7261965",
"0.72618866",
"0.7260822",
"0.72589135",
"0.72579354",
"0.72547215",
"0.72238463",
"0.72225547",
"0.72120565",
"0.71914166",
"0.71806175",
"0.7168969",
"0.71578026",
"0.7157101",
"0.7132701",
"0.7128033",
"0.71236825",
"0.7107466",
"0.7105664",
"0.70970064",
"0.70917666",
"0.70867914",
"0.7085565",
"0.7075589",
"0.7075589",
"0.7070666",
"0.7060257",
"0.7054929",
"0.70503396",
"0.7038626",
"0.7027191",
"0.70266455",
"0.70252615",
"0.7023551",
"0.7015474",
"0.70108086",
"0.70089805",
"0.7003954",
"0.70019925",
"0.699315",
"0.69826466",
"0.69787925",
"0.6963171",
"0.6962535",
"0.69613",
"0.69541967",
"0.69464236",
"0.6946155",
"0.6944759",
"0.693293",
"0.693293",
"0.693293",
"0.69325125",
"0.6927071",
"0.6926877",
"0.6923517",
"0.6919409",
"0.6913893",
"0.69060683",
"0.6906062",
"0.68996304",
"0.6897146",
"0.68955624",
"0.6892053",
"0.6892053",
"0.6890315",
"0.6886434",
"0.6886377",
"0.6884194",
"0.68766534",
"0.68739355",
"0.68736726",
"0.6869511",
"0.6864055"
] | 0.0 | -1 |
Deprecated: Use User.ProtoReflect.Descriptor instead. | func (*User) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*McUserProto) Descriptor() ([]byte, []int) {\n\treturn file_pkg_mcclient_mcuser_mcuser_proto_proto_rawDescGZIP(), []int{0}\n}",
"func (*Permission) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{18}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*Friend) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*Permission) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*RemoveTeamUser) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{9}\n}",
"func (*WatchUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*PermissionData) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{20}\n}",
"func (*CreatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{17}\n}",
"func (*AddTeamUser) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{8}\n}",
"func (*ProtoCreateUser) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_auth_proto_rawDescGZIP(), []int{3}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetFriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*PermissionAttributes) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{21}\n}",
"func (*ListUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{15}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_GrpcServices_auth_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_indrasaputra_orvosi_v1_orvosi_proto_rawDescGZIP(), []int{2}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_wechat_proto_rawDescGZIP(), []int{4}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpcuser_proto_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListTeamUser) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{7}\n}",
"func (*ProtoUserSchema) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*FriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*UserGetReq) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_API_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*PauseUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{11}\n}",
"func (*PermissionCollection) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{19}\n}",
"func (*LoginedUserRep) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_account_proto_rawDescGZIP(), []int{3}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*UserData) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_myapp_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*TwoFactorAuthRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{19}\n}",
"func (*UserMetadata) Descriptor() ([]byte, []int) {\n\treturn file_firebase_auth_v1_data_proto_rawDescGZIP(), []int{1}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*Token) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_userapi_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetUserInfoByTokenRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{12}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_protob_user_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_pb_auth_proto_rawDescGZIP(), []int{0}\n}",
"func (*PendingFriendRequests) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{20}\n}",
"func (*NetMessageSplitscreenUserChanged) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networksystem_protomessages_proto_rawDescGZIP(), []int{0}\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*ReadUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*CreateUserDevice) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{23}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_API_proto_rawDescGZIP(), []int{2}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_user_message_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*InfoUser) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_users_proto_rawDescGZIP(), []int{6}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_msgdata_proto_rawDescGZIP(), []int{2}\n}",
"func (*Role) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*UserAttributes) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*ListUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdatePermissionRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16, 0}\n}",
"func (*UserModifyResp) Descriptor() ([]byte, []int) {\n\treturn file_api_interface_v1_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_API_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{90}\n}",
"func (*ReportUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{26}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*WatchUserResponse) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*TokenProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{0}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protob_user_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*DisconnectUsersRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{18}\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_userpb_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_protos_users_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_message_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*IgnoreUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{9}\n}",
"func (*UserCollection) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*UserRep) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_user_common_proto_rawDescGZIP(), []int{2}\n}"
] | [
"0.70986664",
"0.70274395",
"0.6966638",
"0.6965615",
"0.6926194",
"0.68593585",
"0.68298054",
"0.68159115",
"0.6813501",
"0.68109006",
"0.6805653",
"0.67938465",
"0.67938125",
"0.6783433",
"0.6776939",
"0.67766005",
"0.6762593",
"0.6761216",
"0.6753592",
"0.67509407",
"0.6750125",
"0.67490345",
"0.6744552",
"0.6744552",
"0.67444366",
"0.67389244",
"0.67388415",
"0.6731611",
"0.67289835",
"0.67287403",
"0.6719166",
"0.6717187",
"0.6715225",
"0.6709492",
"0.6708081",
"0.6708081",
"0.670757",
"0.670684",
"0.66990185",
"0.66945946",
"0.6688384",
"0.6679432",
"0.66733676",
"0.66716915",
"0.66708845",
"0.66637534",
"0.6663698",
"0.6659551",
"0.6656276",
"0.6656276",
"0.6653984",
"0.66522753",
"0.66501224",
"0.6642726",
"0.66391295",
"0.66382617",
"0.6637201",
"0.66356474",
"0.66349566",
"0.6634613",
"0.6632906",
"0.66310674",
"0.66310096",
"0.6630065",
"0.6629893",
"0.66297054",
"0.6629492",
"0.66259557",
"0.66254777",
"0.6623021",
"0.66164666",
"0.661565",
"0.66144925",
"0.6612898",
"0.661262",
"0.6607981",
"0.6606105",
"0.660146",
"0.65995723",
"0.6599272",
"0.65976185",
"0.6596203",
"0.6596004",
"0.6593054",
"0.65922815",
"0.65873086",
"0.65868425",
"0.6586201",
"0.65820074",
"0.65805244",
"0.65796554",
"0.65791297",
"0.6578974",
"0.65767527",
"0.65755105",
"0.6570723",
"0.6570261",
"0.65694183",
"0.6569192",
"0.6565502"
] | 0.658819 | 85 |
Deprecated: Use Address.ProtoReflect.Descriptor instead. | func (*Address) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{1}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_services_grpcPb_grpc_proto_rawDescGZIP(), []int{13}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{4}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_AddressBytesToStringRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressBytesToStringRequest\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_stu3_datatypes_proto_rawDescGZIP(), []int{18}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_internal_services_profile_proto_profile_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_AddressStringToBytesRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressStringToBytesRequest\n}",
"func (*UpdateAddressMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*MoveAddressMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{14}\n}",
"func (*Verdict) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*SocketAddress) Descriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteAddressMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{10}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (x *fastReflection_AddressBytesToStringResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressBytesToStringResponse\n}",
"func (*UpdateAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{4}\n}",
"func (x *fastReflection_AddressStringToBytesResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressStringToBytesResponse\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_chargehive_chtype_contact_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*MoveAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{13}\n}",
"func (*CreateAddressMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*ValidateAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_address_proto_rawDescGZIP(), []int{1}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_src_nap_nap_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*ExternalIpv4AddressSpec) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*MemberAddressUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{14}\n}",
"func (*MemberReceiveAddressUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{86}\n}",
"func (*MemberAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{15}\n}",
"func (*MemberAddressData) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{12}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*MemberAddressAddReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{9}\n}",
"func (*ListAddressReply_Address) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{9, 0}\n}",
"func (*MemberReceiveAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{87}\n}",
"func (*MemberAddressAddResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{10}\n}",
"func ToDescriptorProto(message protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto {\n\tp := &descriptorpb.DescriptorProto{\n\t\tName: proto.String(string(message.Name())),\n\t\tOptions: proto.Clone(message.Options()).(*descriptorpb.MessageOptions),\n\t}\n\tfor i, fields := 0, message.Fields(); i < fields.Len(); i++ {\n\t\tp.Field = append(p.Field, ToFieldDescriptorProto(fields.Get(i)))\n\t}\n\tfor i, exts := 0, message.Extensions(); i < exts.Len(); i++ {\n\t\tp.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i)))\n\t}\n\tfor i, messages := 0, message.Messages(); i < messages.Len(); i++ {\n\t\tp.NestedType = append(p.NestedType, ToDescriptorProto(messages.Get(i)))\n\t}\n\tfor i, enums := 0, message.Enums(); i < enums.Len(); i++ {\n\t\tp.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i)))\n\t}\n\tfor i, xranges := 0, message.ExtensionRanges(); i < xranges.Len(); i++ {\n\t\txrange := xranges.Get(i)\n\t\tp.ExtensionRange = append(p.ExtensionRange, &descriptorpb.DescriptorProto_ExtensionRange{\n\t\t\tStart: proto.Int32(int32(xrange[0])),\n\t\t\tEnd: proto.Int32(int32(xrange[1])),\n\t\t\tOptions: proto.Clone(message.ExtensionRangeOptions(i)).(*descriptorpb.ExtensionRangeOptions),\n\t\t})\n\t}\n\tfor i, oneofs := 0, message.Oneofs(); i < oneofs.Len(); i++ {\n\t\tp.OneofDecl = append(p.OneofDecl, ToOneofDescriptorProto(oneofs.Get(i)))\n\t}\n\tfor i, ranges := 0, message.ReservedRanges(); i < ranges.Len(); i++ {\n\t\trrange := ranges.Get(i)\n\t\tp.ReservedRange = append(p.ReservedRange, &descriptorpb.DescriptorProto_ReservedRange{\n\t\t\tStart: proto.Int32(int32(rrange[0])),\n\t\t\tEnd: proto.Int32(int32(rrange[1])),\n\t\t})\n\t}\n\tfor i, names := 0, message.ReservedNames(); i < names.Len(); i++ {\n\t\tp.ReservedName = append(p.ReservedName, string(names.Get(i)))\n\t}\n\treturn p\n}",
"func (x *fastReflection_MsgSetWithdrawAddress) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgSetWithdrawAddress\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (*GetAddressReq) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{12}\n}",
"func (*MemberAddressDeleteReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{16}\n}",
"func (*AddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_address_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*AddressUseCode) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_stu3_datatypes_proto_rawDescGZIP(), []int{47}\n}",
"func (*MemberReceiveAddressAddResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{82}\n}",
"func (*TraceProto) Descriptor() ([]byte, []int) {\n\treturn file_internal_tracing_extended_extended_trace_proto_rawDescGZIP(), []int{0}\n}",
"func (*MemberReceiveAddressAddReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{81}\n}",
"func (*ValidateAddressResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*ProvideValidationFeedbackRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{2}\n}",
"func (*MemberReceiveAddressData) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{84}\n}",
"func (*MemberAddressListReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{11}\n}",
"func (*StreetAddress) Descriptor() ([]byte, []int) {\n\treturn file_user_common_proto_rawDescGZIP(), []int{4}\n}",
"func (*AddressStringToBytesRequest) Descriptor() ([]byte, []int) {\n\treturn file_cosmos_auth_v1beta1_query_proto_rawDescGZIP(), []int{14}\n}",
"func (*MemberReceiveAddressDeleteReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{88}\n}",
"func (*MemberAddressDeleteResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{17}\n}",
"func (*AddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{34}\n}",
"func (*Listen) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func (*ListAddressOperationsRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetAddressByValueRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{1}\n}",
"func (GrpcLogRecord_Address_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_gcp_observability_internal_logging_logging_proto_rawDescGZIP(), []int{0, 2, 0}\n}",
"func (*GetAddressReply) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{13}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*ListAddressReq) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*Decl) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2}\n}",
"func (*ListAddressesRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_address_service_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateDomainMappingRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{40}\n}",
"func (*MemberReceiveAddressListReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{83}\n}",
"func ProtoFromMethodDescriptor(d protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto {\n\ttype canProto interface {\n\t\tMethodDescriptorProto() *descriptorpb.MethodDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.MethodDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif md, ok := res.AsProto().(*descriptorpb.MethodDescriptorProto); ok {\n\t\t\treturn md\n\t\t}\n\t}\n\treturn protodesc.ToMethodDescriptorProto(d)\n}",
"func (*Instance) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*Person) Descriptor() ([]byte, []int) {\n\treturn file_address_book_addressbook_proto_rawDescGZIP(), []int{1}\n}",
"func (*GrpcLogRecord_Address) Descriptor() ([]byte, []int) {\n\treturn file_gcp_observability_internal_logging_logging_proto_rawDescGZIP(), []int{0, 2}\n}",
"func (*Message) Descriptor() ([]byte, []int) {\n\treturn file_protos_addressbook_proto_rawDescGZIP(), []int{0}\n}",
"func ProtoFromMessageDescriptor(d protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto {\n\ttype canProto interface {\n\t\tMessageDescriptorProto() *descriptorpb.DescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.MessageDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif md, ok := res.AsProto().(*descriptorpb.DescriptorProto); ok {\n\t\t\treturn md\n\t\t}\n\t}\n\treturn protodesc.ToDescriptorProto(d)\n}",
"func (*AddressBytesToStringRequest) Descriptor() ([]byte, []int) {\n\treturn file_cosmos_auth_v1beta1_query_proto_rawDescGZIP(), []int{12}\n}",
"func (*Reference) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{3}\n}",
"func ProtoFromFieldDescriptor(d protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto {\n\ttype canProto interface {\n\t\tFieldDescriptorProto() *descriptorpb.FieldDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FieldDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FieldDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFieldDescriptorProto(d)\n}",
"func (*MyProto) Descriptor() ([]byte, []int) {\n\treturn file_my_proto_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateAddressReq) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*MemberAddressListResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{13}\n}",
"func ProtoFromFileDescriptor(d protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto {\n\tif imp, ok := d.(protoreflect.FileImport); ok {\n\t\td = imp.FileDescriptor\n\t}\n\ttype canProto interface {\n\t\tFileDescriptorProto() *descriptorpb.FileDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FileDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FileDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFileDescriptorProto(d)\n}",
"func (*DirectiveUndelegate) Descriptor() ([]byte, []int) {\n\treturn file_Harmony_proto_rawDescGZIP(), []int{10}\n}",
"func (*Phone) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{0}\n}",
"func (*PrivateVisibility) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_dns_v1_dns_zone_proto_rawDescGZIP(), []int{2}\n}",
"func (*IP) Descriptor() ([]byte, []int) {\n\treturn file_protoconfig_go_kingpinv2_v1_extensions_proto_rawDescGZIP(), []int{2}\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*AddressRange) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDomainMappingRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{38}\n}",
"func (*Preferences) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v2_services_reach_plan_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*MemberReceiveAddressDeleteResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{89}\n}",
"func (*ProvideValidationFeedbackResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*Type) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListAddressReply) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*Span_Link) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*FormatMessage) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddressBook) Descriptor() ([]byte, []int) {\n\treturn file_proto_person_person_proto_rawDescGZIP(), []int{1}\n}",
"func (*From) Descriptor() ([]byte, []int) {\n\treturn file_proto_ssql_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_Evidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Evidence\n}",
"func (*ContactInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{5}\n}",
"func (*Module) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{3}\n}"
] | [
"0.71017355",
"0.70470494",
"0.70217985",
"0.6997136",
"0.695927",
"0.69355136",
"0.69119793",
"0.6900559",
"0.68915457",
"0.68769485",
"0.68675494",
"0.683953",
"0.6806669",
"0.6800933",
"0.6797538",
"0.6773681",
"0.67454046",
"0.6716244",
"0.67049664",
"0.66892576",
"0.6669407",
"0.6665143",
"0.6647446",
"0.6645611",
"0.6632216",
"0.66102153",
"0.65940374",
"0.65863293",
"0.655834",
"0.65508527",
"0.6540442",
"0.65399176",
"0.6534425",
"0.6517144",
"0.65111786",
"0.6506181",
"0.6498909",
"0.6498491",
"0.64905155",
"0.64889324",
"0.64878845",
"0.64755255",
"0.64737797",
"0.64557",
"0.64529806",
"0.64494795",
"0.6441037",
"0.6431377",
"0.6410306",
"0.64059454",
"0.6397574",
"0.6393076",
"0.63845223",
"0.63829064",
"0.63719094",
"0.6365811",
"0.6359994",
"0.6359091",
"0.63575995",
"0.6350507",
"0.6348924",
"0.6343948",
"0.6340973",
"0.63378525",
"0.63341093",
"0.63204896",
"0.6319668",
"0.63160634",
"0.6303764",
"0.63022083",
"0.6298276",
"0.6297399",
"0.62834066",
"0.62781924",
"0.62758714",
"0.62742656",
"0.62731826",
"0.6273039",
"0.6270835",
"0.6270255",
"0.62678885",
"0.6259709",
"0.62556976",
"0.62538344",
"0.6247676",
"0.6234305",
"0.6232125",
"0.62314713",
"0.6230206",
"0.62282693",
"0.62229913",
"0.62207705",
"0.62184465",
"0.6210241",
"0.6201884",
"0.6198175",
"0.61942935",
"0.61937386",
"0.61918986",
"0.6181194"
] | 0.68740356 | 10 |
Deprecated: Use Group.ProtoReflect.Descriptor instead. | func (*Group) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{2}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha2_group_proto_rawDescGZIP(), []int{0}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_group_proto_rawDescGZIP(), []int{0}\n}",
"func (*DiscussGroup) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{7}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{41}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_cv_internal_gerrit_cfgmatcher_storage_proto_rawDescGZIP(), []int{1}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{0}\n}",
"func (*GroupManagementRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{35}\n}",
"func (*RaftGroupProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{2}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_auth_acl_proto_rawDescGZIP(), []int{0}\n}",
"func (*RaftGroupMemberIdProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{3}\n}",
"func (*NodeGroup) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*GroupListRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{36}\n}",
"func (*GroupAddRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{33}\n}",
"func (*GroupReq) Descriptor() ([]byte, []int) {\n\treturn file_chatMsg_msg_proto_rawDescGZIP(), []int{5}\n}",
"func (*GroupRemoveRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{34}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_bastion_proto_rawDescGZIP(), []int{15}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_directory_proto_rawDescGZIP(), []int{1}\n}",
"func (*DelGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{3}\n}",
"func (*GroupLadder) Descriptor() ([]byte, []int) {\n\treturn file_groupLadderService_proto_rawDescGZIP(), []int{0}\n}",
"func (*TopicGroup) Descriptor() ([]byte, []int) {\n\treturn file_topic_proto_rawDescGZIP(), []int{1}\n}",
"func (*GroupInfoRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{37}\n}",
"func (*GetAllDiscussGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{5}\n}",
"func (*GroupRsp) Descriptor() ([]byte, []int) {\n\treturn file_chatMsg_msg_proto_rawDescGZIP(), []int{6}\n}",
"func (*GroupList) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{42}\n}",
"func (*DescribeGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_apps_mconf_pb_request_proto_rawDescGZIP(), []int{3}\n}",
"func (*Groups) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_cv_internal_gerrit_cfgmatcher_storage_proto_rawDescGZIP(), []int{0}\n}",
"func (*StorageGroup) Descriptor() ([]byte, []int) {\n\treturn file_v2_storagegroup_grpc_types_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{30}\n}",
"func (*JoinDiscussGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{4}\n}",
"func (*CreateDiscussGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{1}\n}",
"func (*GroupId) Descriptor() ([]byte, []int) {\n\treturn file_e2sm_mho_go_v2_e2sm_v2_proto_rawDescGZIP(), []int{17}\n}",
"func (*CreateDiscussGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{89}\n}",
"func (*DelGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{4}\n}",
"func (*JoinDiscussGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{3}\n}",
"func (*GroupListReplyProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{43}\n}",
"func (*ServiceGroup) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{24}\n}",
"func (*GetAllDiscussGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_group_group_proto_rawDescGZIP(), []int{6}\n}",
"func (*Message6024) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{26}\n}",
"func (*GetDashboardGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetNodeGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dataproc_v1_node_groups_proto_rawDescGZIP(), []int{2}\n}",
"func (*RaftGroupIdProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListGroupsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{58}\n}",
"func (*DeleteGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_apps_mconf_pb_request_proto_rawDescGZIP(), []int{4}\n}",
"func (*GroupsRequest) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{5}\n}",
"func (*CreateGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{28}\n}",
"func (*JoinGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{46}\n}",
"func (*UpdateSecurityGroupMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_security_group_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateSecurityGroupRuleMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_security_group_service_proto_rawDescGZIP(), []int{10}\n}",
"func (*GroupInfoReplyProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{44}\n}",
"func (*NodeGroupsRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteSecurityGroupMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_security_group_service_proto_rawDescGZIP(), []int{12}\n}",
"func (*CMsgMatchmakingMatchGroupInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{48}\n}",
"func (*EditGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{9}\n}",
"func (*GetDashboardGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{9}\n}",
"func (*StatTable_PodGroup) Descriptor() ([]byte, []int) {\n\treturn file_viz_proto_rawDescGZIP(), []int{27, 0}\n}",
"func (*AssignmentGroup) Descriptor() ([]byte, []int) {\n\treturn file_api_backend_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetDashboardGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{4}\n}",
"func (*Message6127) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{24}\n}",
"func (*CreateGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_apps_mconf_pb_request_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*MoveSecurityGroupMetadata) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_security_group_service_proto_rawDescGZIP(), []int{16}\n}",
"func (*NodeGroupForNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func (*CNETMsg_SpawnGroup_Load) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networkbasetypes_proto_rawDescGZIP(), []int{16}\n}",
"func (*CreateGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{1}\n}",
"func (*Message12796) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{2}\n}",
"func (*ServiceGroups) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{27}\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*FormatMessage) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{0}\n}",
"func (*EditGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{10}\n}",
"func (*LeaveGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{53}\n}",
"func (*GroupsResponse) Descriptor() ([]byte, []int) {\n\treturn file_userGroups_proto_rawDescGZIP(), []int{6}\n}",
"func (*AttachedTargetGroup) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListDashboardGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{1}\n}",
"func (*Message6108) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{31}\n}",
"func (*GetTenantGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_global_proto_rawDescGZIP(), []int{5}\n}",
"func (*Message5903) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{34}\n}",
"func (*CMsgGCToClientMatchGroupsVersion) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{30}\n}",
"func (*AccessGroups) Descriptor() ([]byte, []int) {\n\treturn file_src_nap_nap_proto_rawDescGZIP(), []int{17}\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (*GetDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{4}\n}",
"func (*CMsgGCPlayerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{117}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*BroadcastMsg) Descriptor() ([]byte, []int) {\n\treturn file_proto_rpc_rpc_proto_rawDescGZIP(), []int{1}\n}",
"func (x *fastReflection_FlagOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_FlagOptions\n}",
"func (*MmeGroupId) Descriptor() ([]byte, []int) {\n\treturn file_e2sm_mho_go_v2_e2sm_v2_proto_rawDescGZIP(), []int{80}\n}",
"func (*Message) Descriptor() ([]byte, []int) {\n\treturn file_google_ai_generativelanguage_v1beta2_discuss_service_proto_rawDescGZIP(), []int{2}\n}",
"func (*Message5867) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{29}\n}",
"func (*CredentialsKVProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateReportNodeGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_report_node_group_proto_rawDescGZIP(), []int{2}\n}",
"func (*Message7511) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{16}\n}",
"func (*GetDelegationTokenRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateSecurityGroupRuleRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_security_group_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*Message6126) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{8}\n}",
"func (*ServiceGroupsReq) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{23}\n}",
"func (*QueryGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_apps_mconf_pb_request_proto_rawDescGZIP(), []int{2}\n}",
"func (*CNETMsg_SpawnGroup_ManifestUpdate) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networkbasetypes_proto_rawDescGZIP(), []int{17}\n}",
"func (*CMsgFlipLobbyTeams) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{90}\n}"
] | [
"0.77413964",
"0.7684443",
"0.7309487",
"0.7276074",
"0.7271232",
"0.72512376",
"0.7251183",
"0.7138102",
"0.71031076",
"0.70895875",
"0.7074126",
"0.70451564",
"0.7024066",
"0.7018728",
"0.6998803",
"0.6977577",
"0.6960473",
"0.6949603",
"0.69444615",
"0.6940015",
"0.6895143",
"0.68851334",
"0.68806565",
"0.6875606",
"0.6870805",
"0.6844419",
"0.68429834",
"0.6835735",
"0.6825637",
"0.6820806",
"0.6814446",
"0.6794642",
"0.67895085",
"0.67891645",
"0.6770024",
"0.6766135",
"0.6765675",
"0.674618",
"0.6731247",
"0.6726609",
"0.6721516",
"0.6712199",
"0.670509",
"0.6700253",
"0.66983026",
"0.6691063",
"0.6672629",
"0.66681606",
"0.666523",
"0.6653133",
"0.660685",
"0.6591204",
"0.6578765",
"0.65775794",
"0.6574787",
"0.6568702",
"0.6565445",
"0.6553383",
"0.65516317",
"0.65455014",
"0.6537237",
"0.6534131",
"0.65311116",
"0.6530227",
"0.65193665",
"0.651923",
"0.65073323",
"0.64996016",
"0.6494656",
"0.64828676",
"0.6481805",
"0.6476341",
"0.64627767",
"0.64620334",
"0.646043",
"0.64571077",
"0.6455357",
"0.645521",
"0.6450887",
"0.6447898",
"0.6447882",
"0.6446617",
"0.6445807",
"0.64240336",
"0.6422682",
"0.6422192",
"0.64212924",
"0.6420284",
"0.64169824",
"0.64140457",
"0.64130086",
"0.64098454",
"0.6407747",
"0.64059037",
"0.64054877",
"0.64026487",
"0.64015454",
"0.63987243",
"0.6398508",
"0.63984907"
] | 0.7244804 | 7 |
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. | func (*CreateUserRequest) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{3}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protob_user_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_users_proto_rawDescGZIP(), []int{4}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_sample_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetOrCreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{11}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{11}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{2}\n}",
"func (*CreateRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_users_v1_users_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_thoughts_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{17}\n}",
"func (*CreateTokenRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*ProtoCreateUser) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateUserRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_toit_api_organization_proto_rawDescGZIP(), []int{2}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*CreateRoleRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*AddUserToProjectRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{19}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*CreateUserReply) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{15}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_protob_user_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*CreateUserReply) Descriptor() ([]byte, []int) {\n\treturn file_v1_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*WatchUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{11}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_API_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_users_proto_rawDescGZIP(), []int{5}\n}",
"func (*NewUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_Inspirit_service_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_pb_auth_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*CreateUserReply) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protob_user_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpcuser_proto_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{7}\n}",
"func (*CreateRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{13}\n}",
"func (*CreateUserDevice) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{23}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_sample_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*GetOrCreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*CreateNotificationRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateOrganizationRequest_User) Descriptor() ([]byte, []int) {\n\treturn file_toit_api_auth_proto_rawDescGZIP(), []int{6, 1}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserByUsernameRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*UserAddReq) Descriptor() ([]byte, []int) {\n\treturn file_api_interface_v1_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*SaveUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{3}\n}",
"func (*NewUser) Descriptor() ([]byte, []int) {\n\treturn file_usermanage_usermanage_proto_rawDescGZIP(), []int{0}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_myapp_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*PauseUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{11}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_examplepb_example_proto_rawDescGZIP(), []int{4}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pb_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*WatchUsersRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_users_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*DisconnectUsersRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{18}\n}",
"func (*TwoFactorAuthRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{19}\n}",
"func (*CreatePermissionRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{17, 0}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_Inspirit_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_hezzel_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_activity_proto_rawDescGZIP(), []int{13}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*ReportUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{26}\n}",
"func (*SignupRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_userapi_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetUserByUsernameWithPasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{5}\n}"
] | [
"0.7910094",
"0.7882247",
"0.78255224",
"0.7809716",
"0.77538365",
"0.7739381",
"0.7723347",
"0.7669017",
"0.7657281",
"0.761253",
"0.75939035",
"0.7493792",
"0.7467967",
"0.74420804",
"0.74420804",
"0.7431655",
"0.74303377",
"0.7416836",
"0.7394445",
"0.72959036",
"0.7282827",
"0.71670175",
"0.71449023",
"0.7120757",
"0.7116983",
"0.7106803",
"0.70956016",
"0.70907253",
"0.7064032",
"0.7057978",
"0.7057528",
"0.7054451",
"0.7020401",
"0.70183027",
"0.70090467",
"0.7004552",
"0.6994176",
"0.69934154",
"0.69792676",
"0.6964214",
"0.6951643",
"0.6939562",
"0.6932004",
"0.6930219",
"0.6925577",
"0.69142514",
"0.69116664",
"0.6906018",
"0.6890672",
"0.68902475",
"0.68803525",
"0.6875555",
"0.6874473",
"0.6861938",
"0.6859414",
"0.6852807",
"0.6843347",
"0.6827765",
"0.68268156",
"0.6825915",
"0.6824893",
"0.68107605",
"0.68060267",
"0.68057245",
"0.67987204",
"0.6787413",
"0.67833054",
"0.6778626",
"0.6776196",
"0.67649883",
"0.6759537",
"0.67491066",
"0.6742675",
"0.67385983",
"0.6730442",
"0.6725912",
"0.67052066",
"0.6702663",
"0.66848457",
"0.66768044",
"0.66754174",
"0.6672296",
"0.6670065",
"0.6669026",
"0.6666834",
"0.6666027",
"0.6658946",
"0.66553354",
"0.6651363",
"0.66477334",
"0.6642151",
"0.6634983",
"0.66333425",
"0.6623511",
"0.6621476",
"0.66195595",
"0.661866",
"0.66143",
"0.6608974",
"0.6608636"
] | 0.758669 | 11 |
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead. | func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{4}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{15}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_thoughts_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_Inspirit_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateUserByUsernameRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*UpdateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateNamesRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_users_v1_users_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateRoleRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_business_ext_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserUsernameRequest) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*UpdateUserUserNameRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{33}\n}",
"func (*UpdateUserRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*WatchUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserReply) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{42}\n}",
"func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{28}\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateAvatarRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_users_v1_users_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateUserReply) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*WatchUsersRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{13}\n}",
"func (*UpdateActivityRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{22}\n}",
"func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{19}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{11}\n}",
"func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{36}\n}",
"func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{32}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_role_pb_request_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateUserByUsernameResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{12}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdatePermissionRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16, 0}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protob_user_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateLocationRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{2}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpcuser_proto_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*PauseUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UserModifyResp) Descriptor() ([]byte, []int) {\n\treturn file_api_interface_v1_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateRoleRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{8, 0}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_Inspirit_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateStateRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{22}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{11}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*MemberUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserRequest_CAS) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{10, 0}\n}",
"func (*UpdateUserResponse) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{7}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{13}\n}",
"func (*AddUserToProjectRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{19}\n}",
"func (*RefreshUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_directory_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*DisconnectUsersRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{18}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*UserUpdateModel) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_API_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_pb_auth_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetOrCreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_server_pb_UserService_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{25}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*FriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateUserInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateProjectRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{21}\n}",
"func (*DeleteUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateUserUsernameResponse) Descriptor() ([]byte, []int) {\n\treturn file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{12}\n}",
"func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{39}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateNamesResult) Descriptor() ([]byte, []int) {\n\treturn file_api_users_v1_users_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_users_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*MemberLevelUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{50}\n}",
"func (*UserRequest) Descriptor() ([]byte, []int) {\n\treturn file_myapp_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*ReportUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{26}\n}",
"func (*CreateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_users_proto_rawDescGZIP(), []int{4}\n}",
"func (*ForgetPasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{5}\n}"
] | [
"0.7967582",
"0.78854305",
"0.7792339",
"0.7775091",
"0.7713874",
"0.77097476",
"0.76935893",
"0.7689906",
"0.7619552",
"0.75217324",
"0.7512715",
"0.749098",
"0.748995",
"0.7470646",
"0.74639446",
"0.74116504",
"0.7398203",
"0.72315246",
"0.722504",
"0.72106695",
"0.71803546",
"0.7170883",
"0.7169621",
"0.713293",
"0.71306145",
"0.71109277",
"0.7076655",
"0.70271564",
"0.7021836",
"0.69976586",
"0.6987518",
"0.69539577",
"0.69505566",
"0.69317114",
"0.69264525",
"0.69093674",
"0.69072145",
"0.69068617",
"0.68950886",
"0.6853707",
"0.68486583",
"0.6835501",
"0.6829661",
"0.68119097",
"0.68099684",
"0.6805413",
"0.6803",
"0.68009436",
"0.6798375",
"0.6793338",
"0.679243",
"0.67638683",
"0.67615753",
"0.6760105",
"0.6756817",
"0.6747754",
"0.67461413",
"0.67348033",
"0.67299795",
"0.6726576",
"0.67180187",
"0.6717921",
"0.6714997",
"0.6712551",
"0.6710069",
"0.6695975",
"0.66891026",
"0.6677384",
"0.66714054",
"0.6665826",
"0.66609037",
"0.6658002",
"0.6657084",
"0.6655487",
"0.6654542",
"0.66520405",
"0.66442245",
"0.6643905",
"0.6640679",
"0.66378367",
"0.66376245",
"0.6620657",
"0.6620544",
"0.6616227",
"0.66152245",
"0.6605427",
"0.6602944",
"0.6597894",
"0.6586921",
"0.6583032",
"0.6581052",
"0.65803874",
"0.65701026",
"0.6562278",
"0.6561267",
"0.6560268",
"0.6558886",
"0.6557826",
"0.65576303",
"0.6557258"
] | 0.76486903 | 8 |
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. | func (*EmptyRequest) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{5}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_todolist_proto_rawDescGZIP(), []int{2}\n}",
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_calendarfy_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_casbin_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_dictybase_api_jsonapi_request_proto_rawDescGZIP(), []int{7}\n}",
"func (*NoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_myapp_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*NoRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_proto_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{7}\n}",
"func (*ClearRequest) Descriptor() ([]byte, []int) {\n\treturn file_mocking_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*DummyRequest) Descriptor() ([]byte, []int) {\n\treturn file_svc_dummy_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteMicroRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_micro_pb_request_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_message_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_hello_proto_rawDescGZIP(), []int{0}\n}",
"func (*NoOpRequestPB) Descriptor() ([]byte, []int) {\n\treturn file_yb_tserver_tserver_proto_rawDescGZIP(), []int{5}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{14}\n}",
"func (*RequestPresentationRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*DiagnoseRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{16}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{12}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{10}\n}",
"func (*Request_Null) Descriptor() ([]byte, []int) {\n\treturn file_proto_work_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{10}\n}",
"func (*UndoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{11}\n}",
"func (*GeneratedRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_auth_proto_rawDescGZIP(), []int{0}\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*SimpleRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_comments_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_dictybase_api_jsonapi_request_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_example_example_proto_rawDescGZIP(), []int{1}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_kv_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_ssn_dataservice_v1_dataservice_proto_rawDescGZIP(), []int{14}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{3}\n}",
"func (*ModifyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{10}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_sample_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_newfindmaxpb_newfindmaxpb_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteProvisioningApprovalRequestRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_devices_proto_v1alpha_provisioning_approval_request_service_proto_rawDescGZIP(), []int{11}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_basic_basic_proto_rawDescGZIP(), []int{1}\n}",
"func (*TodoRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_todolist_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_service_face_detector_proto_rawDescGZIP(), []int{0}\n}",
"func (*EndpointRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{13}\n}",
"func (*QueryPermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_permission_pb_request_proto_rawDescGZIP(), []int{0}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_sil_proto_rawDescGZIP(), []int{0}\n}",
"func (*CalculatorRequest) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{13}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{2}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_helloworld_helloworld_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetSomesRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{8}\n}",
"func (*UnusedEmptyMessage) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{33}\n}",
"func (*DeleteInputRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{60}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{3}\n}",
"func (*CheckRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_api_servicecontrol_v1_service_controller_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteCheckerV1Request) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{4}\n}",
"func (*FrozenRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{74}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_helloservice_proto_rawDescGZIP(), []int{0}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_helloworld_proto_rawDescGZIP(), []int{0}\n}",
"func (*SimpleRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercises_ex3_streamserver_proto_server_stream_proto_rawDescGZIP(), []int{0}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_helloworld_helloworld_proto_rawDescGZIP(), []int{0}\n}",
"func (*HelloRequest) Descriptor() ([]byte, []int) {\n\treturn file_helloworld_helloworld_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{13}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_todo_proto_rawDescGZIP(), []int{7}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{10}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\r\n\treturn file_data_proto_rawDescGZIP(), []int{0}\r\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_internal_services_profile_proto_profile_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*MsgRequest) Descriptor() ([]byte, []int) {\n\treturn file_msg_proto_rawDescGZIP(), []int{0}\n}",
"func (*PingRequest) Descriptor() ([]byte, []int) {\n\treturn file_internal_crosstest_v1test_cross_proto_rawDescGZIP(), []int{0}\n}",
"func (*RefreshRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{16}\n}",
"func (*RemoveCheckRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{10}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_index_faults_rpc_rpc_proto_rawDescGZIP(), []int{2}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_transformer_request_request_proto_rawDescGZIP(), []int{0}\n}",
"func (*MessageRequest) Descriptor() ([]byte, []int) {\n\treturn file_messenger_proto_rawDescGZIP(), []int{0}\n}",
"func (*HeartbeatRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{0}\n}",
"func (*ValidateRequest) Descriptor() ([]byte, []int) {\n\treturn file_validate_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{10}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*InitializedRequest) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_my_task_my_task_proto_rawDescGZIP(), []int{0}\n}",
"func (*UnaryMessageRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_activity_proto_rawDescGZIP(), []int{10}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_gnmi_gnmi_proto_rawDescGZIP(), []int{18}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_srv_proto_task_task_proto_rawDescGZIP(), []int{0}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_serverservice2_proto_rawDescGZIP(), []int{0}\n}",
"func (*UnaryRequest) Descriptor() ([]byte, []int) {\n\treturn file_main_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_calculator_proto_calc_proto_rawDescGZIP(), []int{0}\n}",
"func (*StatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetServiceRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{6}\n}",
"func (*GetRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{3}\n}",
"func (*NotificationRequest) Descriptor() ([]byte, []int) {\n\treturn file_infra_grpc_notification_proto_rawDescGZIP(), []int{2}\n}",
"func (*DelRequest) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{8}\n}",
"func (*PaqueteRequest) Descriptor() ([]byte, []int) {\n\treturn file_helloworld_helloworld_proto_rawDescGZIP(), []int{2}\n}",
"func (*UnaryRepeatedMessageRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{5}\n}",
"func (*ValidateRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{17}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_core_core_proto_rawDescGZIP(), []int{0}\n}",
"func (*WebhookRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dialogflow_v2beta1_webhook_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.75356853",
"0.7478504",
"0.7211224",
"0.7027246",
"0.6916522",
"0.6904382",
"0.68921334",
"0.6889711",
"0.6868761",
"0.68458784",
"0.6843752",
"0.6830225",
"0.6826994",
"0.678582",
"0.6777315",
"0.6773646",
"0.67714",
"0.6766631",
"0.67654467",
"0.6755444",
"0.67440265",
"0.6742758",
"0.67422646",
"0.673929",
"0.6735345",
"0.6734474",
"0.6733386",
"0.67231286",
"0.67161053",
"0.670747",
"0.66927654",
"0.6690937",
"0.66845983",
"0.6675898",
"0.6674832",
"0.6671569",
"0.666929",
"0.6666513",
"0.66623634",
"0.66615945",
"0.6658681",
"0.6656776",
"0.6654318",
"0.66538686",
"0.66517687",
"0.66513103",
"0.6651027",
"0.6648647",
"0.6648114",
"0.6647691",
"0.6646175",
"0.66442823",
"0.6638556",
"0.66376567",
"0.66348344",
"0.663365",
"0.6630306",
"0.66297406",
"0.6628222",
"0.66279703",
"0.66279703",
"0.6626001",
"0.6625838",
"0.66218776",
"0.66213787",
"0.6620123",
"0.66196936",
"0.66193336",
"0.6617317",
"0.66141564",
"0.66096866",
"0.6609456",
"0.6603097",
"0.65990955",
"0.65953064",
"0.65920955",
"0.6591727",
"0.6591507",
"0.65909415",
"0.65909415",
"0.6590439",
"0.6589513",
"0.65831566",
"0.6578327",
"0.6578157",
"0.6575428",
"0.6574969",
"0.65739334",
"0.65721",
"0.6571507",
"0.65678626",
"0.6567667",
"0.6567026",
"0.6561138",
"0.6560546",
"0.6559886",
"0.65574306",
"0.65568763",
"0.65563625",
"0.65562344"
] | 0.7414815 | 2 |
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead. | func (*EmptyResponse) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{6}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EmptyResponse) Descriptor() ([]byte, []int) {\n\treturn file_ric_action_ricaction_proto_rawDescGZIP(), []int{12}\n}",
"func (*NoResponse) Descriptor() ([]byte, []int) {\n\treturn file_golang_pkg_proto_movies_movies_proto_rawDescGZIP(), []int{0}\n}",
"func (*ClearResponse) Descriptor() ([]byte, []int) {\n\treturn file_mocking_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*NoOpResponsePB) Descriptor() ([]byte, []int) {\n\treturn file_yb_tserver_tserver_proto_rawDescGZIP(), []int{6}\n}",
"func (*EmptyResponse) Descriptor() ([]byte, []int) {\n\treturn file_session_proto_rawDescGZIP(), []int{2}\n}",
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_calendarfy_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*HelloResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_hello_proto_rawDescGZIP(), []int{1}\n}",
"func (*SimpleResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{8}\n}",
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_todolist_proto_rawDescGZIP(), []int{2}\n}",
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_examplepb_example_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{11}\n}",
"func (*Empty) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{13}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_example_example_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_runtime_v1_shim_v1_shim_proto_rawDescGZIP(), []int{2}\n}",
"func (*DiagnoseResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{17}\n}",
"func (*PingResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_crosstest_v1test_cross_proto_rawDescGZIP(), []int{1}\n}",
"func (*HelloResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_sample_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{9}\n}",
"func (*GetSomesResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{6}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_newfindmaxpb_newfindmaxpb_proto_rawDescGZIP(), []int{1}\n}",
"func (*ProtoResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*SimpleResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercises_ex3_streamserver_proto_server_stream_proto_rawDescGZIP(), []int{1}\n}",
"func (*ExistResponse) Descriptor() ([]byte, []int) {\n\treturn file_dictybase_api_jsonapi_request_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{13}\n}",
"func (*EndpointResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{14}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{11}\n}",
"func (*UnusedEmptyMessage) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{33}\n}",
"func (*FailResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_crosstest_v1test_cross_proto_rawDescGZIP(), []int{3}\n}",
"func (*ApiVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*RemoveCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{11}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (*NoRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_proto_proto_rawDescGZIP(), []int{1}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_proto_service_proto_rawDescGZIP(), []int{2}\n}",
"func (*EmptyReply) Descriptor() ([]byte, []int) {\n\treturn file_proto_casbin_proto_rawDescGZIP(), []int{7}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_helloworld_helloworld_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteMessageResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{14}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListenResponse) Descriptor() ([]byte, []int) {\n\treturn file_faultinjector_proto_rawDescGZIP(), []int{9}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_Notify_proto_rawDescGZIP(), []int{7}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{11}\n}",
"func (*CleanupResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{15}\n}",
"func (*DeregisterResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{9}\n}",
"func (*UnlinkResponse) Descriptor() ([]byte, []int) {\n\treturn file_IOService_proto_rawDescGZIP(), []int{7}\n}",
"func (*UndoneResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{12}\n}",
"func (*MetricsResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{25}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_interservice_notifications_service_events_proto_rawDescGZIP(), []int{10}\n}",
"func (*HelloResponse) Descriptor() ([]byte, []int) {\n\treturn file_mkit_service_greeter_v1_greeter_proto_rawDescGZIP(), []int{1}\n}",
"func (*DelResponse) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{9}\n}",
"func (*DescribeResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{5}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{15}\n}",
"func (*TeardownResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_protobuf_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_proto_files_domain_probes_proto_rawDescGZIP(), []int{1}\n}",
"func (*RefreshResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{17}\n}",
"func (*AllResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_collector_collector_proto_rawDescGZIP(), []int{2}\n}",
"func (*ModifyResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{11}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_url_proto_rawDescGZIP(), []int{4}\n}",
"func (*RepeatedResponse) Descriptor() ([]byte, []int) {\n\treturn file_services_proto_rawDescGZIP(), []int{3}\n}",
"func (*GenericResponse) Descriptor() ([]byte, []int) {\n\treturn file_services_grpcPb_grpc_proto_rawDescGZIP(), []int{18}\n}",
"func (*DeleteEndpointApiResponse) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{4}\n}",
"func (*DumyResponse) Descriptor() ([]byte, []int) {\n\treturn file_svc_dummy_proto_rawDescGZIP(), []int{1}\n}",
"func (*Empty) Descriptor() ([]byte, []int) {\n\treturn file_pkg_apis_tra_v1alpha1_tra_proto_rawDescGZIP(), []int{0}\n}",
"func (*EmptyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_casbin_proto_rawDescGZIP(), []int{6}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_internal_tool_grpctool_test_test_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{17}\n}",
"func (*NoOpRequestPB) Descriptor() ([]byte, []int) {\n\treturn file_yb_tserver_tserver_proto_rawDescGZIP(), []int{5}\n}",
"func (*FrozenResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{76}\n}",
"func (*DeleteCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_v1_proto_rawDescGZIP(), []int{7}\n}",
"func (*SimpleResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*SimpleResponse) Descriptor() ([]byte, []int) {\n\treturn file_common_proto_rawDescGZIP(), []int{6}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_greeter_proto_health_health_proto_rawDescGZIP(), []int{1}\n}",
"func (*RemoveCertificateV1Response) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_certificate_api_ocp_certificate_api_proto_rawDescGZIP(), []int{11}\n}",
"func (*StreamingResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_example_example_proto_rawDescGZIP(), []int{4}\n}",
"func (*UnpinMessageResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{24}\n}",
"func (*APIResponse) Descriptor() ([]byte, []int) {\n\treturn file_ghost_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_todo_proto_rawDescGZIP(), []int{8}\n}",
"func (*Empty) Descriptor() ([]byte, []int) {\n\treturn file_api_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*HealthResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{14}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_services_grpcPb_grpc_proto_rawDescGZIP(), []int{9}\n}",
"func (*CMsgDOTAHallOfFameResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{43}\n}",
"func (*CMsgDOTAReportsRemainingResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{10}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_servers_grpc_proto_grpcservice_proto_rawDescGZIP(), []int{2}\n}",
"func (*RequestPresentationResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{4}\n}",
"func (*FailedResponse) Descriptor() ([]byte, []int) {\n\treturn file_coco_proto_rawDescGZIP(), []int{14}\n}",
"func (*UnthrottleResponse) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_kv_proto_rawDescGZIP(), []int{2}\n}",
"func (*RandomResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{5}\n}",
"func (*OutdatedResponse) Descriptor() ([]byte, []int) {\n\treturn file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{13}\n}",
"func (*RemoveVideoV1Response) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_video_api_ocp_video_api_proto_rawDescGZIP(), []int{7}\n}",
"func (*EmptyMessage) Descriptor() ([]byte, []int) {\n\treturn file_survey_proto_rawDescGZIP(), []int{4}\n}",
"func (*GeneratedResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_auth_proto_rawDescGZIP(), []int{1}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (x *fastReflection_AddressBytesToStringResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressBytesToStringResponse\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_health_service_proto_rawDescGZIP(), []int{1}\n}"
] | [
"0.7123346",
"0.7068225",
"0.7025883",
"0.7011605",
"0.70068663",
"0.69416595",
"0.68757254",
"0.6856187",
"0.68269604",
"0.68200684",
"0.6819365",
"0.68003803",
"0.679829",
"0.67954725",
"0.67906886",
"0.6773823",
"0.67637175",
"0.6735722",
"0.67268467",
"0.6725519",
"0.6724684",
"0.67234105",
"0.67022896",
"0.6702229",
"0.66970485",
"0.669475",
"0.6679619",
"0.667895",
"0.66785693",
"0.66738284",
"0.6673535",
"0.66677743",
"0.66642815",
"0.66618705",
"0.66597545",
"0.6659633",
"0.6658097",
"0.66577256",
"0.6656015",
"0.66539305",
"0.6650828",
"0.6649161",
"0.6646329",
"0.6645329",
"0.6632417",
"0.6627576",
"0.6625354",
"0.6623752",
"0.66191894",
"0.66153616",
"0.66129535",
"0.66108966",
"0.6604538",
"0.66033155",
"0.66028154",
"0.6598848",
"0.6596109",
"0.6591999",
"0.6591543",
"0.65903395",
"0.65884507",
"0.6587418",
"0.65854806",
"0.6583941",
"0.6582634",
"0.65822643",
"0.6573748",
"0.6573208",
"0.65699613",
"0.6568109",
"0.65659857",
"0.6562701",
"0.6559703",
"0.6556673",
"0.65553415",
"0.6554892",
"0.6553798",
"0.65482354",
"0.6546185",
"0.6540346",
"0.65396297",
"0.65392125",
"0.65384585",
"0.6537779",
"0.6536059",
"0.6535643",
"0.6533677",
"0.6530154",
"0.65301186",
"0.65281045",
"0.652761",
"0.6525461",
"0.65252674",
"0.6523848",
"0.652376",
"0.6523095",
"0.6522762",
"0.652138",
"0.65137136",
"0.6510464"
] | 0.7480654 | 0 |
Deprecated: Use Profile.ProtoReflect.Descriptor instead. | func (*Profile) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{7}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (*TraceProto) Descriptor() ([]byte, []int) {\n\treturn file_internal_tracing_extended_extended_trace_proto_rawDescGZIP(), []int{0}\n}",
"func ProtoFromFileDescriptor(d protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto {\n\tif imp, ok := d.(protoreflect.FileImport); ok {\n\t\td = imp.FileDescriptor\n\t}\n\ttype canProto interface {\n\t\tFileDescriptorProto() *descriptorpb.FileDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FileDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FileDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFileDescriptorProto(d)\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*TokenProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{0}\n}",
"func (StandardPTransforms_DeprecatedPrimitives) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{4, 1}\n}",
"func (*Patent) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{14}\n}",
"func (*CMsgProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{275}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{4}\n}",
"func (*MyProto) Descriptor() ([]byte, []int) {\n\treturn file_my_proto_proto_rawDescGZIP(), []int{0}\n}",
"func (*Degree) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func ProtoFromFieldDescriptor(d protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto {\n\ttype canProto interface {\n\t\tFieldDescriptorProto() *descriptorpb.FieldDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FieldDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FieldDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFieldDescriptorProto(d)\n}",
"func (*CMsgProfileUpdate) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{277}\n}",
"func ProtoFromMethodDescriptor(d protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto {\n\ttype canProto interface {\n\t\tMethodDescriptorProto() *descriptorpb.MethodDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.MethodDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif md, ok := res.AsProto().(*descriptorpb.MethodDescriptorProto); ok {\n\t\t\treturn md\n\t\t}\n\t}\n\treturn protodesc.ToMethodDescriptorProto(d)\n}",
"func ToDescriptorProto(message protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto {\n\tp := &descriptorpb.DescriptorProto{\n\t\tName: proto.String(string(message.Name())),\n\t\tOptions: proto.Clone(message.Options()).(*descriptorpb.MessageOptions),\n\t}\n\tfor i, fields := 0, message.Fields(); i < fields.Len(); i++ {\n\t\tp.Field = append(p.Field, ToFieldDescriptorProto(fields.Get(i)))\n\t}\n\tfor i, exts := 0, message.Extensions(); i < exts.Len(); i++ {\n\t\tp.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i)))\n\t}\n\tfor i, messages := 0, message.Messages(); i < messages.Len(); i++ {\n\t\tp.NestedType = append(p.NestedType, ToDescriptorProto(messages.Get(i)))\n\t}\n\tfor i, enums := 0, message.Enums(); i < enums.Len(); i++ {\n\t\tp.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i)))\n\t}\n\tfor i, xranges := 0, message.ExtensionRanges(); i < xranges.Len(); i++ {\n\t\txrange := xranges.Get(i)\n\t\tp.ExtensionRange = append(p.ExtensionRange, &descriptorpb.DescriptorProto_ExtensionRange{\n\t\t\tStart: proto.Int32(int32(xrange[0])),\n\t\t\tEnd: proto.Int32(int32(xrange[1])),\n\t\t\tOptions: proto.Clone(message.ExtensionRangeOptions(i)).(*descriptorpb.ExtensionRangeOptions),\n\t\t})\n\t}\n\tfor i, oneofs := 0, message.Oneofs(); i < oneofs.Len(); i++ {\n\t\tp.OneofDecl = append(p.OneofDecl, ToOneofDescriptorProto(oneofs.Get(i)))\n\t}\n\tfor i, ranges := 0, message.ReservedRanges(); i < ranges.Len(); i++ {\n\t\trrange := ranges.Get(i)\n\t\tp.ReservedRange = append(p.ReservedRange, &descriptorpb.DescriptorProto_ReservedRange{\n\t\t\tStart: proto.Int32(int32(rrange[0])),\n\t\t\tEnd: proto.Int32(int32(rrange[1])),\n\t\t})\n\t}\n\tfor i, names := 0, message.ReservedNames(); i < names.Len(); i++ {\n\t\tp.ReservedName = append(p.ReservedName, string(names.Get(i)))\n\t}\n\treturn p\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*Module) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{3}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*Message6024) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{26}\n}",
"func (*ValidatorUpdate) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{9}\n}",
"func (*TelemetryParams) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{62}\n}",
"func ToFileDescriptorProto(file protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto {\n\tp := &descriptorpb.FileDescriptorProto{\n\t\tName: proto.String(file.Path()),\n\t\tOptions: proto.Clone(file.Options()).(*descriptorpb.FileOptions),\n\t}\n\tif file.Package() != \"\" {\n\t\tp.Package = proto.String(string(file.Package()))\n\t}\n\tfor i, imports := 0, file.Imports(); i < imports.Len(); i++ {\n\t\timp := imports.Get(i)\n\t\tp.Dependency = append(p.Dependency, imp.Path())\n\t\tif imp.IsPublic {\n\t\t\tp.PublicDependency = append(p.PublicDependency, int32(i))\n\t\t}\n\t\tif imp.IsWeak {\n\t\t\tp.WeakDependency = append(p.WeakDependency, int32(i))\n\t\t}\n\t}\n\tfor i, locs := 0, file.SourceLocations(); i < locs.Len(); i++ {\n\t\tloc := locs.Get(i)\n\t\tl := &descriptorpb.SourceCodeInfo_Location{}\n\t\tl.Path = append(l.Path, loc.Path...)\n\t\tif loc.StartLine == loc.EndLine {\n\t\t\tl.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndColumn)}\n\t\t} else {\n\t\t\tl.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndLine), int32(loc.EndColumn)}\n\t\t}\n\t\tl.LeadingDetachedComments = append([]string(nil), loc.LeadingDetachedComments...)\n\t\tif loc.LeadingComments != \"\" {\n\t\t\tl.LeadingComments = proto.String(loc.LeadingComments)\n\t\t}\n\t\tif loc.TrailingComments != \"\" {\n\t\t\tl.TrailingComments = proto.String(loc.TrailingComments)\n\t\t}\n\t\tif p.SourceCodeInfo == nil {\n\t\t\tp.SourceCodeInfo = &descriptorpb.SourceCodeInfo{}\n\t\t}\n\t\tp.SourceCodeInfo.Location = append(p.SourceCodeInfo.Location, l)\n\n\t}\n\tfor i, messages := 0, file.Messages(); i < messages.Len(); i++ {\n\t\tp.MessageType = append(p.MessageType, ToDescriptorProto(messages.Get(i)))\n\t}\n\tfor i, enums := 0, file.Enums(); i < enums.Len(); i++ {\n\t\tp.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i)))\n\t}\n\tfor i, services := 0, file.Services(); i < services.Len(); i++ {\n\t\tp.Service = append(p.Service, ToServiceDescriptorProto(services.Get(i)))\n\t}\n\tfor i, exts := 0, file.Extensions(); i < exts.Len(); i++ {\n\t\tp.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i)))\n\t}\n\tif syntax := file.Syntax(); syntax != protoreflect.Proto2 {\n\t\tp.Syntax = proto.String(file.Syntax().String())\n\t}\n\treturn p\n}",
"func (x *fastReflection_FlagOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_FlagOptions\n}",
"func (StandardProtocols_Enum) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{54, 0}\n}",
"func (*Profile) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{0}\n}",
"func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*Instance) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*Decl) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2}\n}",
"func (ProbeConf_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*StandardProtocols) Descriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{54}\n}",
"func (*WatchRequestTypeProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{25}\n}",
"func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_examplepb_example_proto_rawDescGZIP(), []int{8}\n}",
"func (*Listen) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func ProtoFromMessageDescriptor(d protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto {\n\ttype canProto interface {\n\t\tMessageDescriptorProto() *descriptorpb.DescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.MessageDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif md, ok := res.AsProto().(*descriptorpb.DescriptorProto); ok {\n\t\t\treturn md\n\t\t}\n\t}\n\treturn protodesc.ToDescriptorProto(d)\n}",
"func (*SafetyFeedback) Descriptor() ([]byte, []int) {\n\treturn file_google_ai_generativelanguage_v1beta2_safety_proto_rawDescGZIP(), []int{1}\n}",
"func (*Profile) Descriptor() ([]byte, []int) {\n\treturn file_interservice_notifications_service_events_proto_rawDescGZIP(), []int{2}\n}",
"func (x *fastReflection_Evidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Evidence\n}",
"func (*GoogleProfilerCF) Descriptor() ([]byte, []int) {\n\treturn file_pkg_kascfg_kascfg_proto_rawDescGZIP(), []int{12}\n}",
"func (*CMsgClientToGCPlayerStatsRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{143}\n}",
"func (*FormatMessage) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{0}\n}",
"func (*Preferences) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v2_services_reach_plan_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*Example) Descriptor() ([]byte, []int) {\n\treturn file_google_ai_generativelanguage_v1beta2_discuss_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_internal_services_profile_proto_profile_proto_rawDescGZIP(), []int{0}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*DirectiveUndelegate) Descriptor() ([]byte, []int) {\n\treturn file_Harmony_proto_rawDescGZIP(), []int{10}\n}",
"func (*PlanChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*PersonName) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetDelegationTokenRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{3}\n}",
"func (*Type) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1}\n}",
"func (Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{4}\n}",
"func (x *fastReflection_LightClientAttackEvidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_LightClientAttackEvidence\n}",
"func (*RateLimitingSampler) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_external_envoy_config_trace_v3_opencensus_proto_rawDescGZIP(), []int{4}\n}",
"func (*KnownTypes) Descriptor() ([]byte, []int) {\n\treturn file_jsonpb_proto_test2_proto_rawDescGZIP(), []int{8}\n}",
"func (x *fastReflection_Metadata) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Metadata\n}",
"func (*CancelDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{8}\n}",
"func (*ListenerTracingSettings) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_v1_options_tracing_tracing_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListenerTracingSettings) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_v1_options_tracing_tracing_proto_rawDescGZIP(), []int{0}\n}",
"func (*CMsgGCPlayerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{117}\n}",
"func (*Phone) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{6}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*Message) Descriptor() ([]byte, []int) {\n\treturn file_google_ai_generativelanguage_v1beta2_discuss_service_proto_rawDescGZIP(), []int{2}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*Trickle) Descriptor() ([]byte, []int) {\n\treturn file_cmd_server_grpc_proto_sfu_proto_rawDescGZIP(), []int{4}\n}",
"func (TrialProfilerMetricLabels_ProfilerMetricType) EnumDescriptor() ([]byte, []int) {\n\treturn file_determined_trial_v1_trial_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*Address) Descriptor() ([]byte, []int) {\n\treturn file_internal_services_profile_proto_profile_proto_rawDescGZIP(), []int{3}\n}",
"func (*Message12818) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{5}\n}",
"func (*Message12796) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{1}\n}",
"func ToFieldDescriptorProto(field protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto {\n\tp := &descriptorpb.FieldDescriptorProto{\n\t\tName: proto.String(string(field.Name())),\n\t\tNumber: proto.Int32(int32(field.Number())),\n\t\tLabel: descriptorpb.FieldDescriptorProto_Label(field.Cardinality()).Enum(),\n\t\tOptions: proto.Clone(field.Options()).(*descriptorpb.FieldOptions),\n\t}\n\tif field.IsExtension() {\n\t\tp.Extendee = fullNameOf(field.ContainingMessage())\n\t}\n\tif field.Kind().IsValid() {\n\t\tp.Type = descriptorpb.FieldDescriptorProto_Type(field.Kind()).Enum()\n\t}\n\tif field.Enum() != nil {\n\t\tp.TypeName = fullNameOf(field.Enum())\n\t}\n\tif field.Message() != nil {\n\t\tp.TypeName = fullNameOf(field.Message())\n\t}\n\tif field.HasJSONName() {\n\t\t// A bug in older versions of protoc would always populate the\n\t\t// \"json_name\" option for extensions when it is meaningless.\n\t\t// When it did so, it would always use the camel-cased field name.\n\t\tif field.IsExtension() {\n\t\t\tp.JsonName = proto.String(strs.JSONCamelCase(string(field.Name())))\n\t\t} else {\n\t\t\tp.JsonName = proto.String(field.JSONName())\n\t\t}\n\t}\n\tif field.Syntax() == protoreflect.Proto3 && field.HasOptionalKeyword() {\n\t\tp.Proto3Optional = proto.Bool(true)\n\t}\n\tif field.HasDefault() {\n\t\tdef, err := defval.Marshal(field.Default(), field.DefaultEnumValue(), field.Kind(), defval.Descriptor)\n\t\tif err != nil && field.DefaultEnumValue() != nil {\n\t\t\tdef = string(field.DefaultEnumValue().Name()) // occurs for unresolved enum values\n\t\t} else if err != nil {\n\t\t\tpanic(fmt.Sprintf(\"%v: %v\", field.FullName(), err))\n\t\t}\n\t\tp.DefaultValue = proto.String(def)\n\t}\n\tif oneof := field.ContainingOneof(); oneof != nil {\n\t\tp.OneofIndex = proto.Int32(int32(oneof.Index()))\n\t}\n\treturn p\n}",
"func (*CredentialsProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{2}\n}",
"func (*Metrics) Descriptor() ([]byte, []int) {\n\treturn file_grpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*Person) Descriptor() ([]byte, []int) {\n\treturn file_protomessage_proto_rawDescGZIP(), []int{0}\n}",
"func (*ApiListener) Descriptor() ([]byte, []int) {\n\treturn file_envoy_config_listener_v2_api_listener_proto_rawDescGZIP(), []int{0}\n}",
"func (*CMsgDOTASetProfilePrivacy) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{56}\n}",
"func (*StackTrace) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{2}\n}",
"func (*Message3920) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{17}\n}",
"func (*Person) Descriptor() ([]byte, []int) {\n\treturn file_protos_face_recognition_service_proto_rawDescGZIP(), []int{4}\n}",
"func (SVC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{4}\n}",
"func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Params\n}",
"func (*WithEnum) Descriptor() ([]byte, []int) {\n\treturn file_testproto_proto_rawDescGZIP(), []int{5}\n}",
"func (*Message7511) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{16}\n}",
"func (IPProto) EnumDescriptor() ([]byte, []int) {\n\treturn file_signalling_proto_rawDescGZIP(), []int{8}\n}",
"func (SVC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{4}\n}",
"func (*OnTargetAudienceMetrics) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v2_services_reach_plan_service_proto_rawDescGZIP(), []int{19}\n}",
"func (*Validator) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{13}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (StandardRunnerProtocols_Enum) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{55, 0}\n}",
"func (*Activity) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{12}\n}",
"func (*CredentialsKVProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{1}\n}",
"func (*Message6108) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{31}\n}",
"func (*ConstantSampler) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_external_envoy_config_trace_v3_opencensus_proto_rawDescGZIP(), []int{3}\n}",
"func (*Profile) Descriptor() ([]byte, []int) {\n\treturn file_service_account_proto_entities_entities_proto_rawDescGZIP(), []int{1}\n}",
"func (*FeedbackMetrics) Descriptor() ([]byte, []int) {\n\treturn file_ssn_dataservice_v1_dataservice_proto_rawDescGZIP(), []int{12}\n}",
"func (*Message5903) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{34}\n}",
"func (*Friend) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*EvictWritersResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{11}\n}",
"func (*Message7928) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{18}\n}"
] | [
"0.69359046",
"0.67443377",
"0.6726549",
"0.6664324",
"0.6620521",
"0.6613316",
"0.6578793",
"0.65283877",
"0.65212464",
"0.6499105",
"0.64981014",
"0.6494641",
"0.6493083",
"0.6490512",
"0.6481807",
"0.6470039",
"0.6463761",
"0.64615774",
"0.64592296",
"0.6456879",
"0.64538074",
"0.6448468",
"0.6435253",
"0.64277554",
"0.642249",
"0.6415955",
"0.6397769",
"0.63970315",
"0.63948435",
"0.63936883",
"0.637343",
"0.637197",
"0.6365606",
"0.6363057",
"0.63584477",
"0.63571334",
"0.63522327",
"0.6342062",
"0.6341774",
"0.634145",
"0.6340037",
"0.63358325",
"0.63324034",
"0.63319016",
"0.6329758",
"0.6325982",
"0.6320118",
"0.6315658",
"0.6306174",
"0.6303989",
"0.6303947",
"0.6302569",
"0.63006663",
"0.62998897",
"0.62892693",
"0.6288086",
"0.6285123",
"0.62830275",
"0.62795687",
"0.6277488",
"0.6277488",
"0.62731284",
"0.627224",
"0.6262803",
"0.6260636",
"0.62585026",
"0.62580574",
"0.6257847",
"0.6257767",
"0.6255083",
"0.6254787",
"0.6254548",
"0.62540007",
"0.62533003",
"0.6252499",
"0.62494105",
"0.62459177",
"0.6244095",
"0.6242946",
"0.624265",
"0.6242447",
"0.6242099",
"0.62416244",
"0.6234738",
"0.6234687",
"0.62346774",
"0.62292206",
"0.6228012",
"0.62264436",
"0.62259674",
"0.6220274",
"0.6220139",
"0.6216754",
"0.62143624",
"0.6214006",
"0.6213409",
"0.6210167",
"0.6208653",
"0.6207658",
"0.62075454"
] | 0.65283984 | 7 |
Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead. | func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{8}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*CMsgProfileUpdate) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{277}\n}",
"func (*CMsgProfileUpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278}\n}",
"func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{19}\n}",
"func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{32}\n}",
"func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*CMsgProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{275}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateAvatarRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_users_v1_users_proto_rawDescGZIP(), []int{6}\n}",
"func (*MemberUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{15}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{5}\n}",
"func (*MemberLevelUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{50}\n}",
"func (*UpdateNamesRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_users_v1_users_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_role_pb_request_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_app_config_agent_cmd_grpcserver_proto_api_app_config_proto_rawDescGZIP(), []int{17}\n}",
"func (*MemberStatisticsInfoUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{104}\n}",
"func (*UpdateStateRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{22}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{12}\n}",
"func (*UpdateActivityRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_view_grpc_blog_api_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_examplepb_example_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_iam_proto_v1alpha_user_service_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_example_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_recordwants_proto_rawDescGZIP(), []int{6}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_internal_services_profile_proto_profile_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateAccountRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{88}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_user_v1_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateAccountRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{15}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_user_user_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateTensorboardRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*MemberRuleSettingUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{95}\n}",
"func (*UpdateEntryRequest) Descriptor() ([]byte, []int) {\n\treturn file_spire_api_registration_registration_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_Ultimate_Super_WebDev_Corp_gateway_services_customer_customer_proto_rawDescGZIP(), []int{4}\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateFriendStatusReq) Descriptor() ([]byte, []int) {\n\treturn file_v1_friend_friend_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateAccountRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_account_v1_account_proto_rawDescGZIP(), []int{2}\n}",
"func (*MemberAddressUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{14}\n}",
"func (*ChangeUpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_githubcard_proto_rawDescGZIP(), []int{23}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_Inspirit_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{10}\n}",
"func (*GetPlayerProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_rs3_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateIngressRuleRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{26}\n}",
"func (*UpdateWebhookRequest) Descriptor() ([]byte, []int) {\n\treturn file_uac_Event_proto_rawDescGZIP(), []int{4}\n}",
"func (*InterfaceUpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{14}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_pb_auth_proto_rawDescGZIP(), []int{2}\n}",
"func (*MemberTagUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{113}\n}",
"func (*UpdateUserRequest) Descriptor() ([]byte, []int) {\n\treturn file_thoughts_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_interservice_license_control_license_control_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateProjectRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{21}\n}",
"func (*UpdateEndpointApiRequest) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{5}\n}",
"func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{13}\n}",
"func (*MemberReceiveAddressUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{86}\n}",
"func (*UpdateEndpointRequest) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*UpdateRefreshRequest) Descriptor() ([]byte, []int) {\n\treturn file_auth_auth_proto_rawDescGZIP(), []int{15}\n}",
"func (*UpdateConversationRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateRoleRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{8}\n}",
"func (*MemberTaskUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{122}\n}",
"func (*UpdateWebhookRequest) Descriptor() ([]byte, []int) {\n\treturn file_events_Event_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateHookRequest) Descriptor() ([]byte, []int) {\n\treturn file_hook_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdatePropertyRequest) Descriptor() ([]byte, []int) {\n\treturn file_property_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{25}\n}",
"func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_subscription_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateAuthorizedCertificateRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{34}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateEntityRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dataplex_v1_metadata_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateLocationRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{2}\n}",
"func (*CBroadcast_UpdateChatMessageFlair_Request) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_broadcast_steamclient_proto_rawDescGZIP(), []int{24}\n}",
"func (*UpdateProvisioningApprovalRequestRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_devices_proto_v1alpha_provisioning_approval_request_service_proto_rawDescGZIP(), []int{10}\n}",
"func (UpdateType) EnumDescriptor() ([]byte, []int) {\n\treturn file_GetUserInfo_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_todo_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateCertificateV1Request) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_certificate_api_ocp_certificate_api_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateTokenRequest) Descriptor() ([]byte, []int) {\n\treturn file_access_service_token_proto_rawDescGZIP(), []int{2}\n}",
"func (*FriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{73}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{13}\n}",
"func (*UpdateModelRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_automl_v1_service_proto_rawDescGZIP(), []int{14}\n}",
"func (*UpdateContactRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_essentialcontacts_v1_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*UpdateAuthProviderRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_elasticsearch_v1_auth_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{70}\n}",
"func (*RegistrationUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_registration_proto_rawDescGZIP(), []int{19}\n}",
"func (*UpdateNSRecordRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_record_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{39}\n}",
"func (*UpdateUserReq) Descriptor() ([]byte, []int) {\n\treturn file_business_ext_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{22}\n}",
"func (*UpdateSecurityGroupRuleRequest) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_security_group_service_proto_rawDescGZIP(), []int{9}\n}"
] | [
"0.74954545",
"0.7078851",
"0.6989186",
"0.69372344",
"0.68729174",
"0.68481904",
"0.6752691",
"0.67132056",
"0.670396",
"0.6703858",
"0.66791666",
"0.66584265",
"0.66438514",
"0.6590524",
"0.65703267",
"0.6568661",
"0.6567429",
"0.6566327",
"0.6562294",
"0.65584624",
"0.6555989",
"0.65539503",
"0.65493387",
"0.6537224",
"0.65365756",
"0.65339595",
"0.65254414",
"0.6523614",
"0.6507838",
"0.65050256",
"0.64839363",
"0.6464822",
"0.6461463",
"0.64607525",
"0.6457913",
"0.64534557",
"0.6447",
"0.6424675",
"0.6415638",
"0.6413596",
"0.6410094",
"0.6402405",
"0.6401226",
"0.64004564",
"0.6398372",
"0.6392954",
"0.63798213",
"0.6379073",
"0.63760525",
"0.6373147",
"0.63651466",
"0.636215",
"0.63583314",
"0.63533956",
"0.6343476",
"0.63429815",
"0.6338962",
"0.6332445",
"0.6328115",
"0.631761",
"0.6315034",
"0.6311423",
"0.63113856",
"0.63066196",
"0.6304206",
"0.6300111",
"0.62985355",
"0.62952363",
"0.6293538",
"0.6283724",
"0.6278106",
"0.627597",
"0.62672204",
"0.6261385",
"0.6260335",
"0.6254465",
"0.6252333",
"0.6251157",
"0.6246452",
"0.62388057",
"0.62382644",
"0.6235792",
"0.62312096",
"0.6225743",
"0.6224279",
"0.6222406",
"0.6219057",
"0.62159127",
"0.6213437",
"0.6210927",
"0.62106764",
"0.62103844",
"0.621003",
"0.6205863",
"0.62037575",
"0.6198248",
"0.6198061",
"0.61963505",
"0.61886406",
"0.6188532"
] | 0.7527409 | 0 |
Deprecated: Use User_Parent.ProtoReflect.Descriptor instead. | func (*User_Parent) Descriptor() ([]byte, []int) {
return file_examplepb_example_proto_rawDescGZIP(), []int{0, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ParentRelation) Descriptor() ([]byte, []int) {\n\treturn file_google_home_enterprise_sdm_v1_device_proto_rawDescGZIP(), []int{1}\n}",
"func (*ParentID) Descriptor() ([]byte, []int) {\n\treturn file_spire_api_registration_registration_proto_rawDescGZIP(), []int{1}\n}",
"func (*McUserProto) Descriptor() ([]byte, []int) {\n\treturn file_pkg_mcclient_mcuser_mcuser_proto_proto_rawDescGZIP(), []int{0}\n}",
"func (*Permission) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{18}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16}\n}",
"func (*FollowerInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{40}\n}",
"func (*Permission) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{6}\n}",
"func (*Friend) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{0}\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*NetMessageSplitscreenUserChanged) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networksystem_protomessages_proto_rawDescGZIP(), []int{0}\n}",
"func (*PermissionData) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{20}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*UserInfo) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_models_proto_rawDescGZIP(), []int{0}\n}",
"func (*ExternalGrpcNode) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (x *fastReflection_Evidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Evidence\n}",
"func (*LevelInfo) Descriptor() ([]byte, []int) {\n\treturn file_myapp_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdatePermissionRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{16, 0}\n}",
"func (*CreatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{17}\n}",
"func (x *fastReflection_Metadata) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Metadata\n}",
"func (x *fastReflection_Input) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Input\n}",
"func (*PermissionAttributes) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{21}\n}",
"func (*GetParentWithStudentUUIDRequest) Descriptor() ([]byte, []int) {\n\treturn file_auth_student_proto_rawDescGZIP(), []int{11}\n}",
"func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_role_pb_request_proto_rawDescGZIP(), []int{9}\n}",
"func (*RoleInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{42}\n}",
"func (x *fastReflection_LightClientAttackEvidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_LightClientAttackEvidence\n}",
"func (x *fastReflection_FlagOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_FlagOptions\n}",
"func ToFileDescriptorProto(file protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto {\n\tp := &descriptorpb.FileDescriptorProto{\n\t\tName: proto.String(file.Path()),\n\t\tOptions: proto.Clone(file.Options()).(*descriptorpb.FileOptions),\n\t}\n\tif file.Package() != \"\" {\n\t\tp.Package = proto.String(string(file.Package()))\n\t}\n\tfor i, imports := 0, file.Imports(); i < imports.Len(); i++ {\n\t\timp := imports.Get(i)\n\t\tp.Dependency = append(p.Dependency, imp.Path())\n\t\tif imp.IsPublic {\n\t\t\tp.PublicDependency = append(p.PublicDependency, int32(i))\n\t\t}\n\t\tif imp.IsWeak {\n\t\t\tp.WeakDependency = append(p.WeakDependency, int32(i))\n\t\t}\n\t}\n\tfor i, locs := 0, file.SourceLocations(); i < locs.Len(); i++ {\n\t\tloc := locs.Get(i)\n\t\tl := &descriptorpb.SourceCodeInfo_Location{}\n\t\tl.Path = append(l.Path, loc.Path...)\n\t\tif loc.StartLine == loc.EndLine {\n\t\t\tl.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndColumn)}\n\t\t} else {\n\t\t\tl.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndLine), int32(loc.EndColumn)}\n\t\t}\n\t\tl.LeadingDetachedComments = append([]string(nil), loc.LeadingDetachedComments...)\n\t\tif loc.LeadingComments != \"\" {\n\t\t\tl.LeadingComments = proto.String(loc.LeadingComments)\n\t\t}\n\t\tif loc.TrailingComments != \"\" {\n\t\t\tl.TrailingComments = proto.String(loc.TrailingComments)\n\t\t}\n\t\tif p.SourceCodeInfo == nil {\n\t\t\tp.SourceCodeInfo = &descriptorpb.SourceCodeInfo{}\n\t\t}\n\t\tp.SourceCodeInfo.Location = append(p.SourceCodeInfo.Location, l)\n\n\t}\n\tfor i, messages := 0, file.Messages(); i < messages.Len(); i++ {\n\t\tp.MessageType = append(p.MessageType, ToDescriptorProto(messages.Get(i)))\n\t}\n\tfor i, enums := 0, file.Enums(); i < enums.Len(); i++ {\n\t\tp.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i)))\n\t}\n\tfor i, services := 0, file.Services(); i < services.Len(); i++ {\n\t\tp.Service = append(p.Service, ToServiceDescriptorProto(services.Get(i)))\n\t}\n\tfor i, exts := 0, file.Extensions(); i < exts.Len(); i++ {\n\t\tp.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i)))\n\t}\n\tif syntax := file.Syntax(); syntax != protoreflect.Proto2 {\n\t\tp.Syntax = proto.String(file.Syntax().String())\n\t}\n\treturn p\n}",
"func (*GetDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{4}\n}",
"func (*MemberLevelUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{50}\n}",
"func (*CMsgDOTADPCUserInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{315}\n}",
"func (*CallHierarchyOptions) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{207}\n}",
"func (*Embed_EmbedField) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{2, 1}\n}",
"func (*GetFriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*CMsgClientToGCPrivateChatInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{5}\n}",
"func (*CMsgProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{275}\n}",
"func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Params\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*InfoUser) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{0}\n}",
"func (*CMsgProfileUpdate) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{277}\n}",
"func (*Nested) Descriptor() ([]byte, []int) {\n\treturn file_proto_ssql_proto_rawDescGZIP(), []int{7}\n}",
"func (*TraceProto) Descriptor() ([]byte, []int) {\n\treturn file_internal_tracing_extended_extended_trace_proto_rawDescGZIP(), []int{0}\n}",
"func (*CancelDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{8}\n}",
"func (*Phone) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{6}\n}",
"func (*PermissionCollection) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{19}\n}",
"func (*MetadataUpdateEventProto) Descriptor() ([]byte, []int) {\n\treturn file_inotify_proto_rawDescGZIP(), []int{7}\n}",
"func (*LoginPhoneReq) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*FriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*LeaderInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{39}\n}",
"func (*NodeGroup) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreatePermissionRequest_Data) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{17, 0}\n}",
"func (*Instance) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*CallHierarchyItem) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{210}\n}",
"func (*PeerInfo) Descriptor() ([]byte, []int) {\n\treturn file_protos_metadata_proto_rawDescGZIP(), []int{10}\n}",
"func (*UserInfo) Descriptor() ([]byte, []int) {\n\treturn file_firebase_auth_v1_data_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{25}\n}",
"func (*Group) Descriptor() ([]byte, []int) {\n\treturn file_proto_fandncloud_service_user_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*PendingFriendRequests) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{20}\n}",
"func (*SocialFollowers) Descriptor() ([]byte, []int) {\n\treturn file_person_person_proto_rawDescGZIP(), []int{0}\n}",
"func (*PeerData) Descriptor() ([]byte, []int) {\n\treturn file_protos_metadata_proto_rawDescGZIP(), []int{11}\n}",
"func (*DescribePermissionRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_role_pb_request_proto_rawDescGZIP(), []int{6}\n}",
"func (*MyProto) Descriptor() ([]byte, []int) {\n\treturn file_my_proto_proto_rawDescGZIP(), []int{0}\n}",
"func (*User) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{2}\n}",
"func (*Participants) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{1}\n}",
"func (*Degree) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{11}\n}",
"func (*CMPrivateChat) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{10}\n}",
"func (*CallHierarchyOutgoingCall) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{214}\n}",
"func (*RecursiveTypeTopMessage) Descriptor() ([]byte, []int) {\n\treturn file_testing_proto_rawDescGZIP(), []int{7}\n}",
"func (*Patent) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_talent_v4beta1_profile_proto_rawDescGZIP(), []int{14}\n}",
"func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{39}\n}",
"func (*CallHierarchyPrepareRequest) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{209}\n}",
"func (*RaftGroupMemberIdProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetDatanodeInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{13}\n}",
"func (*UserInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{1}\n}",
"func (*ProtoUserSchema) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{0}\n}",
"func (*NewUserRelationships) Descriptor() ([]byte, []int) {\n\treturn file_protodef_user_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*Embed) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{2}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*ParentContext) Descriptor() ([]byte, []int) {\n\treturn file_ml_metadata_proto_metadata_store_proto_rawDescGZIP(), []int{11}\n}",
"func (*CallHierarchyRegistrationOptions) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{208}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*MemberLevelListReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{47}\n}",
"func (*ResourceManifest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_gkehub_v1_membership_proto_rawDescGZIP(), []int{4}\n}",
"func (*CallHierarchyIncomingCall) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{212}\n}",
"func (*Persistent) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{2}\n}",
"func (*SMPrivateChat) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{11}\n}",
"func (*MemberLevelUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{51}\n}",
"func (*InstallSnapshotRequestProto_NotificationProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{19, 1}\n}",
"func (*Membership) Descriptor() ([]byte, []int) {\n\treturn file_odpf_meta_User_proto_rawDescGZIP(), []int{2}\n}",
"func (*EACLRecord_Target) Descriptor() ([]byte, []int) {\n\treturn file_v2_acl_grpc_types_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*Peer) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateConversationRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{8}\n}",
"func (*TokenProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{0}\n}",
"func (*ValidatorUpdate) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{9}\n}",
"func (*StackTrace) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{2}\n}",
"func (*RenameEventProto) Descriptor() ([]byte, []int) {\n\treturn file_inotify_proto_rawDescGZIP(), []int{6}\n}",
"func (*CredentialsKVProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{1}\n}",
"func (*RemoveTeamUser) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{9}\n}",
"func (*CMsgDOTAChatMember) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{12}\n}"
] | [
"0.6755127",
"0.6722137",
"0.6599934",
"0.6577971",
"0.6569539",
"0.6496256",
"0.64751905",
"0.64669925",
"0.64604974",
"0.6446343",
"0.6445881",
"0.64435256",
"0.643735",
"0.6419657",
"0.6410813",
"0.6398827",
"0.63982844",
"0.63942087",
"0.63864756",
"0.63854957",
"0.63776493",
"0.63715875",
"0.63647896",
"0.6346959",
"0.63428855",
"0.6335401",
"0.6330281",
"0.6328899",
"0.63175833",
"0.63142526",
"0.6305544",
"0.63048106",
"0.62990034",
"0.6297104",
"0.6291546",
"0.62883544",
"0.62868226",
"0.62851596",
"0.62851006",
"0.6283736",
"0.628265",
"0.6280412",
"0.627625",
"0.62737226",
"0.6266812",
"0.6266201",
"0.6263045",
"0.62599206",
"0.6259721",
"0.62511903",
"0.62468016",
"0.62445027",
"0.62364244",
"0.6234651",
"0.62341464",
"0.62325084",
"0.6221604",
"0.6217836",
"0.62169206",
"0.62116814",
"0.6207558",
"0.6197508",
"0.61958003",
"0.6194999",
"0.6193973",
"0.61918247",
"0.6190621",
"0.61896193",
"0.61883587",
"0.61853874",
"0.6185124",
"0.6184758",
"0.6183393",
"0.6183187",
"0.6181772",
"0.6180564",
"0.6179575",
"0.617928",
"0.6179086",
"0.61783785",
"0.6178005",
"0.6172634",
"0.6170252",
"0.6168865",
"0.61641335",
"0.61624664",
"0.6161903",
"0.61591125",
"0.6155796",
"0.61554843",
"0.6154559",
"0.615445",
"0.61537534",
"0.61487335",
"0.61483",
"0.6146442",
"0.61434877",
"0.61428905",
"0.6142341",
"0.61390615"
] | 0.72709066 | 0 |
Run initializes the one time configurations required for using sessions | func Run() {
GlobalSessions, _ = session.NewManager("memory", "gosessionid", 3600)
go GlobalSessions.GC()
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func Run(c *Config) {\n\tlog.Print(\"Starting Ngao server\")\n\tlog.Printf(\"Listening on '%s', Serving: %s://%s\",\n\t\tc.ListenAddr, c.Scheme, c.Host)\n\tlog.Printf(\"Max sessions: %d. Older sessions cleared every: %d secs\",\n\t\tc.TotalAllowed, c.ClearInterval)\n\n\ttotalAllowed = c.TotalAllowed\n\tclearInterval = c.ClearInterval\n\tinitConf()\n\n\tvar wg sync.WaitGroup\n\twg.Add(1)\n\tgo func() {\n\t\trProxy(c.ListenAddr, c.Host, c.Scheme)\n\t\twg.Done()\n\t}()\n\twg.Add(1)\n\tgo func() {\n\t\t// Launch session queues manager\n\t\tmanager()\n\t\twg.Done()\n\t}()\n\twg.Wait()\n}",
"func InitSession() {\n\tkinli.SessionStore = sessions.NewFilesystemStore(\"./sessions\", []byte(os.Getenv(\"SESSION_STORE\")))\n\tkinli.SessionName = common.Config.SessionName\n\tkinli.IsAuthed = service.IsUserAuthed\n}",
"func InitSession() {\n\tstatCount(\"users.init_session\")\n\tgob.Register(&Authentication{})\n\tkinli.SessionName = \"_git_notify1\"\n\tkinli.HomePathNonAuthed = \"/home\"\n\tkinli.HomePathAuthed = \"/\"\n\n\tvar store = sessions.NewFilesystemStore(\"./sessions\", []byte(os.Getenv(\"SESSION_FS_STORE\")))\n\t// TODO mark session as httpOnly, secure\n\t// http://www.gorillatoolkit.org/pkg/sessions#Options\n\tstore.Options = &sessions.Options{\n\t\tPath: \"/\",\n\t\t// Domain: config.serverHostWithoutPort(), // take from config\n\t\tMaxAge: 86400 * 30, // 30 days\n\t\tHttpOnly: true, // to avoid cookie stealing and session is on server side\n\t\tSecure: (config.ServerProto == \"https\"), // for https\n\t}\n\n\tkinli.SessionStore = store\n\n\t// init Gothic\n\tgothic.Store = store\n\tgothic.GetProviderName = getProviderName\n\n}",
"func init(){\n fmt.Printf(\"init Mongo START\\n\")\n session, err := mgo.Dial(\"localhost\")\n if err != nil {\n panic(err)\n }\n /* defer session.Close() */\n // Optional. Switch the session to a monotonic behavior.\n base_config = &Config{\n session: session,\n }\n fmt.Printf(\"init Mongo DONE\\n\")\n}",
"func (a *App) Run() {\n\tfmt.Println(\"Run\")\n\tdefer a.session.Close()\n\ta.server.Start()\n}",
"func init() {\n\tstore = sessions.NewCookieStore([]byte(\"secret-key\"))\n}",
"func (ini *Server_1To1_Init) Run(f func(*Server_1To1_1) *Server_1To1_End) {\n\n\tst1, err := ini.Init()\n\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to initialise the session: %s\", err)\n\t}\n\n\tf(st1)\n}",
"func init() {\n\tdbconn, err := database.NewPostgreDB(dbType, connStr)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tsesconn, err := database.NewRedisCache(addr, pass)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tconfig.dbconn = dbconn\n\tconfig.sessionconn = sesconn\n}",
"func InitSession() {\n\tsessionManager = session.NewSessionManager(cookieName, 3600)\n}",
"func init() {\n\n\t// Discord Authentication Token\n\tSession.Token = os.Getenv(\"DELUBOT_TOKEN\")\n\tif Session.Token == \"\" {\n\t\tflag.StringVar(&Session.Token, \"t\", \"\", \"Discord Authentication Token\")\n\t}\n}",
"func Run() {\n\tstore = *sessions.NewCookieStore(securecookie.GenerateRandomKey(10))\n\thttp.HandleFunc(serverConfig.CallbackPath, oauthCallbackHandler)\n\thttp.HandleFunc(serverConfig.ProtectPath, genericRequestHandler)\n\n\tdone := make(chan bool)\n\n\tgo func() {\n\t\tif serverConfig.ListenAddress != \"\" {\n\t\t\terr := http.ListenAndServe(serverConfig.ListenAddress, nil)\n\t\t\tif err != nil {\n\t\t\t\tlog.Fatal(err)\n\t\t\t}\n\t\t\tdone <- true\n\t\t}\n\t}()\n\n\tgo func() {\n\t\tif serverConfig.ListenAddressTLS != \"\" {\n\t\t\terr := http.ListenAndServeTLS(serverConfig.ListenAddressTLS, serverConfig.SSLCert, serverConfig.SSLKey, nil)\n\t\t\tif err != nil {\n\t\t\t\tlog.Fatal(err)\n\t\t\t}\n\t\t\tdone <- true\n\t\t}\n\t}()\n\t<-done\n}",
"func Init(url string) {\n\tmgoSession = connect(url)\n\treadOnlySession = mgoSession.Clone()\n\treadOnlySession.SetMode(mgo.Eventual, false)\n\n}",
"func (pool *SessionPool) init() error {\n\t// check the hosts status\n\tif err := checkAddresses(pool.conf.timeOut, pool.conf.serviceAddrs, pool.conf.sslConfig, pool.conf.useHTTP2); err != nil {\n\t\treturn fmt.Errorf(\"failed to initialize the session pool, %s\", err.Error())\n\t}\n\n\t// create sessions to fulfill the min pool size\n\tfor i := 0; i < pool.conf.minSize; i++ {\n\t\tsession, err := pool.newSession()\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to initialize the session pool, %s\", err.Error())\n\t\t}\n\n\t\tsession.returnedAt = time.Now()\n\t\tpool.addSessionToIdle(session)\n\t}\n\n\treturn nil\n}",
"func Initialize(cfg config.WebConfig, ds *data.DataStore) {\n\twebConfig = cfg\n\tsetupWebSocket(cfg, ds)\n\tsetupRoutes(cfg)\n\n\t// NewContext() will use this DataStore for the web handlers\n\tDataStore = ds\n\tsessionStore = sessions.NewCookieStore([]byte(cfg.CookieSecret))\n}",
"func (context *HTTP) Init() {\n\t// Get store key\n\tkey := os.Getenv(\"LMI_KEY\")\n\n\tif key == \"\" {\n\t\tlog.Fatal(\"A key for the session store needs to be defined. 16, 24 or 32 bytes long.\")\n\t}\n\n\tif len(key) != 16 && len(key) != 24 && len(key) != 32 {\n\t\tlog.WithField(\"length\", len(key)).Fatal(\"The key for the session store needs to exactly 16, 24 or 32 bytes long.\")\n\t}\n\n\t// Check if we should set a custom name for the cookie\n\tcookieName := os.Getenv(\"LMI_COOKIE_NAME\")\n\tif cookieName == \"\" {\n\t\tcookieName = \"letmein\"\n\t}\n\n\t// Set custom domain for the cookie if set\n\tcontext.CookieDomain = os.Getenv(\"LMI_COOKIE_DOMAIN\")\n\n\t// Get URL to login view\n\tloginURL := os.Getenv(\"LMI_LOGIN_URL\")\n\tif loginURL == \"\" {\n\t\tloginURL = \"http://localhost:8001/login\"\n\t\tlog.WithField(\"URL\", context.LoginURL).Warn(\"Missing LMI_LOGIN_URL, setting it to default\")\n\t}\n\tcontext.LoginURL = loginURL\n\tlog.WithField(\"login_url\", context.LoginURL).Debug(\"Login URL configured\")\n\n\ttemplateDir := os.Getenv(\"LMI_TEMPLATE_DIR\")\n\tif templateDir == \"\" {\n\t\ttemplateDir = \"./server/templates\"\n\t}\n\n\t// Read HTML template from file\n\ttemplateFilePath := fmt.Sprintf(\"%s/index.html\", templateDir)\n\ttemplateContents, err := ioutil.ReadFile(templateFilePath)\n\tif err != nil {\n\t\tlog.WithError(err).Fatal(\"Failed to read template file\")\n\t}\n\thtmlTemplate := template.New(\"login\")\n\thtmlTemplate.Parse(string(templateContents))\n\n\t// admin template\n\tadminTemplateFilePath := fmt.Sprintf(\"%s/admin.html\", templateDir)\n\tadminTemplateContents, err := ioutil.ReadFile(adminTemplateFilePath)\n\tif err != nil {\n\t\tlog.WithError(err).Fatal(\"Failed to read template file\")\n\t}\n\n\tadminHTMLTemplate := template.New(\"admin\")\n\tadminHTMLTemplate.Parse(string(adminTemplateContents))\n\n\t// profile template\n\tprofileFilePath := fmt.Sprintf(\"%s/profile.html\", templateDir)\n\tprofileContents, err := ioutil.ReadFile(profileFilePath)\n\tif err != nil {\n\t\tlog.WithError(err).Fatal(\"Failed to read template file\")\n\t}\n\n\tprofileHTMLTemplate := template.New(\"profile\")\n\tprofileHTMLTemplate.Parse(string(profileContents))\n\n\t// authorize template\n\tauthorizeFilePath := fmt.Sprintf(\"%s/authorize.html\", templateDir)\n\tauthorizeContents, err := ioutil.ReadFile(authorizeFilePath)\n\tif err != nil {\n\t\tlog.WithError(err).Fatal(\"Failed to read template file\")\n\t}\n\n\tauthorizeHTMLTemplate := template.New(\"authorize\")\n\tauthorizeHTMLTemplate.Parse(string(authorizeContents))\n\tcontext.authorizeHTMLTemplate = authorizeHTMLTemplate\n\n\t// CreateAuthDB()\n\tadb, err := auth.CreateContext()\n\tif err != nil {\n\t\tlog.WithError(err).Fatal(\"Failed to init DB\")\n\t}\n\n\t// Initialize session store\n\tstore := sessions.NewCookieStore([]byte(key))\n\n\t// Set custom domain for cookies if set\n\tif context.CookieDomain != \"\" {\n\t\tstoreOptions := store.Options\n\t\tstoreOptions.Domain = context.CookieDomain\n\t\tstore.Options = storeOptions\n\t}\n\n\tcontext.store = store\n\tcontext.store.Options.Domain = context.CookieDomain\n\tcontext.CookieName = cookieName\n\tcontext.loginHTMLTemplate = htmlTemplate\n\tcontext.adminHTMLTemplate = adminHTMLTemplate\n\tcontext.profileHTMLTemplate = profileHTMLTemplate\n\tcontext.authDB = adb\n\n\tif err := context.fetchGrants(\"\"); err != nil {\n\t\tlog.WithError(err).Fatal(\"failed to fetch grants\")\n\t}\n}",
"func Configure() {\n\tlog = cfg.Logging.Logger\n\tfastlog = cfg.Logging.FastLogger\n\t// http://www.gorillatoolkit.org/pkg/sessions\n\tsessstore = sessions.NewCookieStore([]byte(cfg.Cfg.Session.Key))\n\tsessstore.Options.HttpOnly = cfg.Cfg.Cookie.HTTPOnly\n\tsessstore.Options.Secure = cfg.Cfg.Cookie.Secure\n\tsessstore.Options.SameSite = cookie.SameSite()\n\tsessstore.Options.MaxAge = cfg.Cfg.Session.MaxAge * 60 // convert minutes to seconds\n\n\tprovider = getProvider()\n\tprovider.Configure()\n\tcommon.Configure()\n}",
"func Run() {\n\tsrc.ReadConfig(\"config.json\")\n\terr := src.InitDatabase(\"./\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\terr = src.ReminderInit(\"./\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\n\tsrc.Start()\n\n\t<-make(chan struct{})\n\tdefer src.RemindClient.Close()\n\tdefer src.DB.Client.Close()\n}",
"func (s *Session) Run() {\n\tgo s.run()\n}",
"func (this *SessionController) StartSession() (err error){\n\tdefer func(){\n\t\tif recVal:=recover();recVal!=nil{\n\t\t\t\tswitch v:=recVal.(type){\n\t\t\t\t\tcase error: err=v\n\t\t\t\t\tcase string: err=StringError(v)\n\t\t\t\t\tdefault: err=StringError(\"unknown error\")\n\t\t\t\t}\n\t\t\t\tthis.Configuration.SessionFailed(err.Error())\n\t\t\t\tGLogger.CloseLog(false)\n\t\t}else{\n\t\t\tthis.Configuration.SessionSuccess()\n\t\t\tGLogger.CloseLog(true)\n\t\t}\n\t}()\n\n\tfor _,task:=range this.Configuration.Tasks{\n\t\t//if task is disabled then we skip it\n\t\tif task.Disabled{\n\t\t\tthis.Configuration.TaskDisabled(task.Name)\n\t\t\tcontinue\n\t\t}\n\t\t//\n\t\tthis.Configuration.TaskCounter++\n\n\t\t//blocking, synchronous task\n\t\ttaskData:=this.executeTask(task)\n\n\t\t//on first task failed terminates session\n\t\tif taskData.Failed{\n\t\t\tpanic(StringError(fmt.Sprintf(\"'%s'. Task details %+v\",taskData.LastDroppedJob.LastErrorMsg,taskData)))\n\t\t}\n\n\t\t//should I finish\n\t\tselect{\n\t\t//this channel is used as global flag to finish processing. it is used by main thread and allow user to signal termination\n\t\tcase <-GDone:\n\t\t\t//todo: if there is at least one more task set status as terminated\n\t\t\tpanic(\"session terminated\")\n\t\tcase <-time.After(1* time.Millisecond):\n\t\t}\n\t}\n\treturn nil\n}",
"func Init(sfn string, keep time.Duration) (err error) {\n var si *sessInfo\n sessPool.m.Lock()\n defer sessPool.m.Unlock()\n\n if keep > 0 {\n sessPool.keep = keep\n }\n // sfn == \"\", data keep in memory\n if sfn == \"\" { return }\n\n if sessPool.path == \"\" { // load from disk\n logging.Debug(\"load session from disk\")\n sessPool.path = sfn\n fs, e := filepath.Glob(filepath.Join(sfn, \"*.sess\"))\n if e != nil { return e }\n for _, f := range fs {\n si, err = readOneSessFile(f)\n if err != nil {\n logging.Error(err)\n } else if si != nil {\n sessPool.sess[si.id] = si\n }\n }\n } else { // save to disk\n logging.Debug(\"save session to disk\")\n for _, si = range sessPool.sess {\n err = saveOneSessFile(sfn, si)\n if err != nil {\n logging.Error(si.id, \": \", err)\n }\n }\n }\n _ = time.AfterFunc(time.Minute, func(){ _ = Init(sfn, 0) })\n return nil\n}",
"func (s *Server) Run() error {\n\tif s.cfg.Status.ReportStatus {\n\t\ts.startStatusHTTP()\n\t}\n\tif s.tServer != nil {\n\t\ts.tServer.Run()\n\t}\n\ts.rpcServer.Run()\n\tticker := time.NewTicker(60 * time.Second)\n\tstop := false\n\tfor !stop {\n\t\tselect {\n\t\tcase <-ticker.C:\n\t\t\tlogutil.Logger(context.Background()).Info(\"session count\", zap.Int32(\"sc\", session.SessCount))\n\t\t\ts.Chore()\n\t\tcase <-s.quitCh:\n\t\t\tstop = true\n\t\t\tbreak\n\t\t}\n\t}\n\treturn nil\n}",
"func (m *Milight) initSession() error {\n\tif m.sessionID[0] == 0 && m.sessionID[1] == 0 {\n\t\terr := m.createSession()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgo m.keepAliveLoop()\n\t}\n\treturn nil\n}",
"func Run(env *Env) error {\n\n\te := echo.New()\n\te.SetDebug(true)\n\te.Use(mw.Logger())\n\te.Use(mw.Recover())\n\n\t// Render HTML\n\n\ttemplates, err := template.ParseGlob(filepath.Join(env.TemplateDir, \"*.tmpl\"))\n\tif err != nil {\n\t\treturn err\n\t}\n\te.SetRenderer(&renderer{templates})\n\n\t// add all the application globals we'll need\n\n\tauth := &defaultAuthenticator{}\n\tsession := newSession(env.Config)\n\n\te.Use(func(h echo.HandlerFunc) echo.HandlerFunc {\n\t\treturn func(c *echo.Context) error {\n\t\t\tc.Set(storeContextKey, env.Store)\n\t\t\tc.Set(mailerContextKey, env.Mailer)\n\t\t\tc.Set(feedparserContextKey, env.Feedparser)\n\t\t\tc.Set(cacheContextKey, env.Cache)\n\t\t\tc.Set(configContextKey, env.Config)\n\t\t\tc.Set(sessionContextKey, session)\n\t\t\tc.Set(authenticatorContextKey, auth)\n\t\t\treturn h(c)\n\t\t}\n\t})\n\n\t// catch sql no rows errors and return as a 404\n\te.Use(func(h echo.HandlerFunc) echo.HandlerFunc {\n\t\treturn func(c *echo.Context) error {\n\t\t\terr := h(c)\n\t\t\tif err == store.ErrNoRows {\n\t\t\t\treturn echo.NewHTTPError(http.StatusNotFound)\n\t\t\t}\n\t\t\treturn err\n\t\t}\n\t})\n\n\t// static configuration\n\te.Static(env.StaticURL, env.StaticDir)\n\n\tconfigureRoutes(e)\n\n\t// add CSRF protection\n\ts := e.Server(fmt.Sprintf(\":%v\", env.Port))\n\ts.Handler = nosurf.NewPure(e)\n\thttp2.ConfigureServer(s, nil)\n\treturn s.ListenAndServe()\n\n}",
"func init() {\n\tsetUpConfig()\n\tsetUpUsingEnv()\n}",
"func init() {\n\tconfig.URL = os.Getenv(\"RT_URL\")\n\tconfig.Username = os.Getenv(\"RT_USERNAME\")\n\tconfig.Password = os.Getenv(\"RT_PASSWORD\")\n\tconfig.Queue = os.Getenv(\"RT_QUEUE\")\n}",
"func (u *user) InitSession(w http.ResponseWriter) (*session, error) {\n return InitSession(u, w)\n}",
"func (s *Session) run() (err error) {\n\terr = s.checkTank()\n\tif err != nil {\n\t\treturn\n\t}\n\tif !s.hasName() {\n\t\terr = s.create()\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\t}\n\n\tresp, err := netClient.Get(fmt.Sprintf(\"%v/run?session=%v\", s.Tank.Url, s.Name))\n\tif err != nil {\n\t\terr = fmt.Errorf(\"http.POST failed: %w\", err)\n\t\treturn\n\t}\n\tdefer resp.Body.Close()\n\n\t_, err = checkResponseCode(*resp)\n\tif err != nil {\n\t\ts.setFailed([]string{err.Error()})\n\t\treturn\n\t}\n\n\tfailed, failures := s.isFailed()\n\tif failed {\n\t\terr = fmt.Errorf(\"starting session %v@%v failed %v\", s.Name, s.Tank.Url, s.Failures)\n\t\ts.setFailed(failures)\n\t}\n\treturn\n}",
"func init() {\n\tfmt.Printf(\"short url generator has version %s built from %s on %s\\n\", app.Version, app.Commit, app.BuildTime)\n\tprepareConfig()\n\t// logging is initialized\n\tctx := cu.BuildContext(context.Background(), cu.SetContextOperation(\"00.init\"), errs.SetDefaultErrsSeverity(errs.SeverityCritical))\n\tlogging.Msg(ctx).Infof(\"pid:%d user:%d(%d) group:%d(%d)\", os.Getpid(), os.Getuid(), os.Geteuid(), os.Getgid(), os.Getegid())\n\tif appCfg.Server == nil {\n\t\tlogging.LogError(ctx, errs.KindServer, \"no server config\")\n\t\tlog.Exit(1)\n\t}\n\tif appCfg.Router == nil {\n\t\tlogging.LogError(ctx, errs.KindRouter, \"no router config\")\n\t\tlog.Exit(1)\n\t}\n\tvar err error\n\tappCfg.Router.WebPath, err = fsutils.ResolvePath(appCfg.Router.WebPath, usr)\n\tif err != nil {\n\t\tlogging.LogError(ctx, errs.KindRouter, \"invalid router web path\")\n\t\tlog.Exit(1)\n\t}\n\tif currConfigSaveToPath != \"\" {\n\t\tif currConfigSaveToPath, err = fsutils.SafeParentResolvePath(currConfigSaveToPath, usr, 0700); err != nil {\n\t\t\tlogging.LogError(ctx, errs.KindInvalidValue, fmt.Errorf(\"invalid path [%s] to save config: %w\", currConfigSaveToPath, err))\n\t\t\tlog.Exit(1)\n\t\t}\n\t}\n\tvar tokenizer app.Tokenizer\n\tif appCfg.Tokenizer != nil && appCfg.Tokenizer.Hashid != nil {\n\t\ttokenizer, err = hashid_tokenizer.NewHashidTokenizer(appCfg.Tokenizer.Hashid)\n\t\tif err != nil {\n\t\t\tlogging.LogError(ctx, errs.KindTokenizer, fmt.Errorf(\"init tokenizer failed: %w\", err))\n\t\t\tlog.Exit(1)\n\t\t}\n\t} else {\n\t\tlogging.LogError(ctx, errs.KindTokenizer, \"no tokenizer config\")\n\t\tlog.Exit(1)\n\t}\n\tvar store app.LinkStore\n\tif appCfg.Store != nil { // todo: add store loader\n\t\tif appCfg.Store.Bolt != nil {\n\t\t\tif appCfg.Store.Bolt.FilePath, err = fsutils.SafeParentResolvePath(appCfg.Store.Bolt.FilePath, usr, 0700); err == nil {\n\t\t\t\tstore, err = bolt_store.NewBoltLinkStore(ctx, *appCfg.Store.Bolt)\n\t\t\t}\n\t\t\tif err != nil {\n\t\t\t\tlogging.LogError(ctx, errs.KindStore, fmt.Errorf(\"init bolt store failed: %w\", err))\n\t\t\t\tlog.Exit(1)\n\t\t\t}\n\t\t} else if appCfg.Store.Mem != nil {\n\t\t\tif appCfg.Store.Mem.FilePath != \"\" {\n\t\t\t\tif appCfg.Store.Mem.FilePath, err = fsutils.SafeParentResolvePath(appCfg.Store.Mem.FilePath, usr, 0700); err != nil {\n\t\t\t\t\tlogging.LogError(ctx, errs.KindStore, fmt.Errorf(\"init mem store failed: %w\", err))\n\t\t\t\t\tlog.Exit(1)\n\t\t\t\t}\n\t\t\t}\n\t\t\tif store, err = mem_store.NewMemStore(ctx, *appCfg.Store.Mem); err != nil {\n\t\t\t\tlogging.LogError(ctx, errs.KindStore, fmt.Errorf(\"init mem store failed: %w\", err))\n\t\t\t\tlog.Exit(1)\n\t\t\t}\n\t\t}\n\t} else {\n\t\tlogging.LogError(ctx, errs.KindStore, \"no store config\")\n\t\tlog.Exit(1)\n\t}\n\tif currConfigSaveToPath != \"\" {\n\t\tif err = viper.WriteConfigAs(currConfigSaveToPath); err != nil {\n\t\t\tlogging.LogError(ctx, errs.KindIO, fmt.Errorf(\"saving config to file [%s] failed: %w\", currConfigSaveToPath, err))\n\t\t\t// no exit (or close store)\n\t\t}\n\t}\n\n\ta = app.NewApp(store, tokenizer)\n}",
"func SetupSessionManagers(redisPool *redis.Pool, useSecureCookie bool, idleTimeout time.Duration, lifetime time.Duration) AppSessionManagers {\n\tvar milSession, adminSession, officeSession *scs.SessionManager\n\tgob.Register(Session{})\n\n\t// we need to ensure each session manager has its own store so\n\t// that sessions don't leak between apps. If a redisPool is\n\t// provided, we can use a prefix to ensure sessions are separated.\n\t// If redis is not configured, this would be local testing of some\n\t// kind in which case we can create a separate memory store for\n\t// each app\n\tnewSessionStoreFn := func(prefix string) scs.Store {\n\t\tif redisPool != nil {\n\t\t\treturn redisstore.NewWithPrefix(redisPool, prefix)\n\t\t}\n\t\t// For local testing, we don't need a background thread\n\t\t// cleaning up session\n\t\treturn memstore.NewWithCleanupInterval(time.Duration(0))\n\t}\n\n\tmilSession = scs.New()\n\tmilSession.Store = newSessionStoreFn(\"mil\")\n\tmilSession.Cookie.Name = \"mil_session_token\"\n\n\tadminSession = scs.New()\n\tadminSession.Store = newSessionStoreFn(\"admin\")\n\tadminSession.Cookie.Name = \"admin_session_token\"\n\n\tofficeSession = scs.New()\n\tofficeSession.Store = newSessionStoreFn(\"office\")\n\tofficeSession.Cookie.Name = \"office_session_token\"\n\n\t// IdleTimeout controls the maximum length of time a session can be inactive\n\t// before it expires. The default is 15 minutes. To disable idle timeout in\n\t// a non-production environment, set SESSION_IDLE_TIMEOUT_IN_MINUTES to 0.\n\tmilSession.IdleTimeout = idleTimeout\n\tadminSession.IdleTimeout = idleTimeout\n\tofficeSession.IdleTimeout = idleTimeout\n\n\t// Lifetime controls the maximum length of time that a session is valid for\n\t// before it expires. The lifetime is an 'absolute expiry' which is set when\n\t// the session is first created or renewed (such as when a user signs in)\n\t// and does not change. The default value is 24 hours.\n\tmilSession.Lifetime = lifetime\n\tadminSession.Lifetime = lifetime\n\tofficeSession.Lifetime = lifetime\n\n\tmilSession.Cookie.Path = \"/\"\n\tadminSession.Cookie.Path = \"/\"\n\tofficeSession.Cookie.Path = \"/\"\n\n\t// A value of false means the session cookie will be deleted when the\n\t// browser is closed.\n\tmilSession.Cookie.Persist = false\n\tadminSession.Cookie.Persist = false\n\tofficeSession.Cookie.Persist = false\n\n\tif useSecureCookie {\n\t\tmilSession.Cookie.Secure = true\n\t\tadminSession.Cookie.Secure = true\n\t\tofficeSession.Cookie.Secure = true\n\t}\n\n\treturn AppSessionManagers{\n\t\tMil: ScsSessionManagerWrapper{\n\t\t\tScsSessionManager: milSession,\n\t\t},\n\t\tOffice: ScsSessionManagerWrapper{\n\t\t\tScsSessionManager: officeSession,\n\t\t},\n\t\tAdmin: ScsSessionManagerWrapper{\n\t\t\tScsSessionManager: adminSession,\n\t\t},\n\t}\n}",
"func InitSessionManager(clean, timeout time.Duration, db *sql.DB, debug bool) {\n\tvar err error\n\tSessionManager.ReqSessionMem = make(chan int)\n\tSessionManager.ReqSessionMemAck = make(chan int)\n\tSessionManager.SessionCleanupTime = clean\n\tSessionManager.SessionTimeout = timeout\n\tSessions = make(map[string]*Session)\n\tSessionManager.SecurityDebug = debug\n\tSessionManager.db = db\n\tSessionManager.ZoneUTC, err = time.LoadLocation(\"UTC\")\n\tif err != nil {\n\t\tlib.Ulog(\"InitSessionManager: error reading timezone: \", err.Error())\n\t}\n\tgo SessionDispatcher()\n\tgo SessionCleanup()\n\tgo ExpiredCookieCleaner()\n}",
"func (e *Engine) Run(ctx context.Context) error {\n\tdefer e.dataStores.Close()\n\n\tfor _, cfg := range e.opts.AppConfigs {\n\t\tif err := e.initApp(ctx, cfg); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tclose(e.ready)\n\n\treturn e.run(ctx)\n}",
"func (cfg *Config) init() {\n\tcfg.Version = viper.GetString(\"version\")\n\tcfg.setLogLevel(viper.GetString(\"log_level\"))\n\tcfg.AppName = viper.GetString(\"app_name\")\n\tcfg.AppShortName = viper.GetString(\"app_short_name\")\n\n\tcfg.API.UsingHttps = viper.GetBool(\"api.usingHttps\")\n\tcfg.API.Port = viper.GetInt(\"api.port\")\n\tcfg.API.AllowedMethods = viper.GetStringSlice(\"api.allowed_methods\")\n\tcfg.API.AllowedHeaders = viper.GetStringSlice(\"api.allowed_headers\")\n\tcfg.API.AllowedOrigins = viper.GetStringSlice(\"api.allowed_origins\")\n\n\tcfg.Database.Host = viper.GetString(\"database.host\")\n\tcfg.Database.Port = viper.GetInt(\"database.port\")\n\tcfg.Database.Db = viper.GetString(\"database.database\")\n\tcfg.Database.User = viper.GetString(\"database.user\")\n\tcfg.Database.Password = viper.GetString(\"database.password\")\n\tcfg.Database.SSLMode = viper.GetString(\"database.sslmode\")\n\n\tcfg.Keys.CSRFKey = viper.GetString(\"secrets.csrf\")\n\tcfg.Keys.JWTSecret = viper.GetString(\"secrets.jwtsecret\")\n\tcfg.Keys.ApiLogin = viper.GetString(\"secrets.api_login\")\n}",
"func (s *Session) Initialize(options options.Options) {\n\ts.Options = options\n\ts.InitStateStoreOrFail(\"\")\n\ts.InitLogger()\n\ts.InitStats()\n\ts.InitThreads()\n\ts.Signatures = signatures.LoadSignatures()\n}",
"func init() {\n\tconfig.Read()\n\n\tdao.Server = config.Server\n\tdao.Database = config.Database\n\tdao.Connect()\n}",
"func init() {\n\tconfig.Read()\n\n\tdao.Server = config.Server\n\tdao.Database = config.Database\n\tdao.Connect()\n}",
"func RunConfigs() {\n\tloggingSetup()\n}",
"func init() {\n\truntime.GOMAXPROCS(runtime.NumCPU())\n\tappAddr = os.Getenv(\"APP_ADDR\") // e.g. \"0.0.0.0:8080\" or \"\"\n\n\tconf = new(app.ConfigConode)\n\tif err := app.ReadTomlConfig(conf, defaultConfigFile); err != nil {\n\t\tfmt.Printf(\"Couldn't read configuration file: %v\", err)\n\t\tos.Exit(1)\n\t}\n\n\tsuite = app.GetSuite(conf.Suite)\n\tpub, _ := base64.StdEncoding.DecodeString(conf.AggPubKey)\n\tsuite.Read(bytes.NewReader(pub), &public_X0)\n}",
"func (a *Application) SetupSessionManager() {\n\ts := scs.New()\n\tstore := memstore.NewWithCleanupInterval(24 * time.Hour) // replace this with a different store if desired\n\ts.Store = store\n\tif config.ProxyPath != \"\" {\n\t\ts.Cookie.Path = config.ProxyPath\n\t}\n\tsm := session.NewScsManager(s)\n\tsession.SetSessionManager(sm)\n}",
"func Run() {\n\tcloseDB := db.InitDB()\n\tdefer closeDB()\n\n\trouter := mux.NewRouter()\n\trouter.Use(loggingMiddleware)\n\trouter.Use(mux.CORSMethodMiddleware(router))\n\trouter.HandleFunc(\"/login\", login).Methods(\"POST\")\n\trouter.HandleFunc(\"/refresh-jwt\", refreshJWT).Methods(\"POST\")\n\trouter.HandleFunc(\"/register\", registerUser).Methods(\"POST\")\n\t\n\tprotectedRouter := router.PathPrefix(\"/api\").Subrouter()\n\tprotectedRouter.Use(jwtMiddlware)\n\tprotectedRouter.HandleFunc(\"/records\", getRecords).Methods(\"GET\")\n\tprotectedRouter.HandleFunc(\"/records\", createRecord).Methods(\"POST\")\n\tprotectedRouter.HandleFunc(\"/records\", updateRecord).Methods(\"PATCH\", \"OPTIONS\")\n\tprotectedRouter.HandleFunc(\"/tags\", getTags).Methods(\"GET\")\n\tprotectedRouter.HandleFunc(\"/tags\", createTag).Methods(\"POST\")\n\tprotectedRouter.HandleFunc(\"/\", notFound) // FIXME\n\n\trouter.PathPrefix(\"/\").Handler(&spaHandler{staticPath: \"web/dist\", indexPath: \"index.html\"})\n\n\tsrv := &http.Server{\n\t\tHandler: router,\n\t\tAddr: \"127.0.0.1:\" + config.PORT,\n\t\tWriteTimeout: 15 * time.Second,\n\t\tReadTimeout: 15 * time.Second,\n\t}\n\n\tfmt.Println(\"---\\nServer running on \" + srv.Addr + \"\\n---\")\n\n\tif err := http.ListenAndServe(\":\"+config.PORT, router); err != nil {\n\t\tdefer log.Fatal(err)\n\t}\n}",
"func init() {\n\n\tlog.Println(\"Sitemap init user\", os.Getenv(\"SECRET_USERNAME\"))\n\tmongodbuser = os.Getenv(\"SECRET_USERNAME\")\n\tmongodbpass = os.Getenv(\"SECRET_PASSWORD\")\n\tthemes = \"job\"\n\tlocale = \"fi_FI\"\n\n}",
"func runInit(args []string) int {\n\tif len(args) == 0 {\n\t\tfmt.Fprintln(o.err, \"Database system driver name is required.\")\n\t\treturn 1\n\t}\n\n\tcfg, err := findConfigContent(args[0])\n\tif err != nil {\n\t\tfmt.Fprintln(o.err, err)\n\t\treturn 1\n\t}\n\n\terr = writeConfigContent(cfg)\n\tif err != nil {\n\t\tfmt.Fprintln(o.err, err)\n\t\treturn 1\n\t}\n\n\tfmt.Fprintln(o.out, \"Config file template is created as '.tablarian.config'.\")\n\treturn 0\n}",
"func initSession(tb testing.TB, c *Cmd) {\n\tc.S = expect.NewSession(tb, c.StdoutPipe(), time.Minute)\n\tc.S.SetVerbosity(testing.Verbose())\n\tc.S.SetContinueOnError(c.sh.ContinueOnError)\n}",
"func init() {\n\tsession.Register(\"memcache\", memcProvider)\n}",
"func init() {\n\tinitCfgDir()\n\tinitCreds()\n}",
"func Run(conf *config.Config) {\n\n\tvar eventHandler = ParseEventHandler(conf)\n\tcontroller.Start(conf, eventHandler)\n}",
"func (d *Driver) Init() {\n\tappiumReq := &appiumRequest{\n\t\t\"POST\",\n\t\td.driverCapabilities,\n\t\t\"/wd/hub/session\",\n\t}\n\n\tresp := doAppiumRequest(appiumReq, d.driverClient, \"desiredCapabilities\")\n\n\tstatusCodeErrorHandler(\n\t\tresp.StatusCode, 500,\n\t\t\"appigo: unable to create session. please, check if the specified capabilities are corret\",\n\t)\n\n\tmapBody := jsonutils.JSONToMap(resp.Body)\n\n\terr := json.Unmarshal(*mapBody[\"sessionId\"], &d.sessionID)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}",
"func Init(logger *logging.Logger) *discordgo.Session {\n\t//var err error\n\t// set the config reference\n\tlog = logger\n\n\tlog.Debug(\"Registering message handler\")\n\t// type discordgo.Session (not a ref)\n\tsession = discordgo.Session{\n\t\tOnMessageCreate: handler.MessageHandler,\n\t}\n\n\tgo loginFlow(&session)\n\n\ttime.Sleep(1 * time.Second)\n\tfor {\n\t\tif session.Token != \"\" {\n\t\t\tbreak\n\t\t}\n\t}\n\treturn &session\n}",
"func (a *App) Initialize() {\n\terr := a.session.Open()\n\tif err != nil {\n\t\tlog.Fatalln(\"unable to connect to mongodb\")\n\t}\n\tu := mongo.NewUserService(a.session.Copy())\n\ta.server = server.NewServer(u)\n}",
"func init() {\n\n\tcDir, err := os.Getwd()\n\tappDir := filepath.Dir(filepath.Dir(cDir))\n\n\tos.Setenv(\"IMAIL_WORK_DIR\", appDir)\n\tos.Chdir(appDir)\n\terr = conf.Init(appDir + \"/custom/conf/app.conf\")\n\tif err != nil {\n\t\tfmt.Println(\"TestReceivedMail config fail:\", err.Error())\n\t}\n\n\tconf.Web.Domain = \"cachecha.com\"\n\n\tlogger := log.Init()\n\n\tformat := conf.Log.Format\n\tif strings.EqualFold(format, \"json\") {\n\t\tlogger.SetFormatter(&logrus.JSONFormatter{})\n\t} else if strings.EqualFold(format, \"text\") {\n\t\tlogger.SetFormatter(&logrus.TextFormatter{})\n\t} else {\n\t\tlogger.SetFormatter(&logrus.TextFormatter{})\n\t}\n\n\tif strings.EqualFold(conf.App.RunMode, \"dev\") {\n\t\tlogger.SetLevel(logrus.DebugLevel)\n\t} else {\n\t\tlogger.SetLevel(logrus.InfoLevel)\n\t}\n\n\tgo Start(10110)\n\n\ttime.Sleep(1 * time.Second)\n}",
"func (h *Handler)preHandle(w http.ResponseWriter, r *http.Request){\n\n // Create session\n s := session.NewSession(r)\n\n // get session from data store or create and prompt config\n if !s.LoadSettings() {\n if keys, ok := parseKeys(r); ok{\n s.InitAuth(keys[\"client_id\"][0],keys[\"client_secret\"][0],keys[\"callback\"][0],keys[\"hash\"][0])\n } else {\n s.Save()\n t, e := template.ParseGlob(\"templates/setup.html\")\n if e != nil {\n fmt.Fprint(w, e)\n return\n }\n\n // render with records\n err := t.Execute(w, s)\n if err !=nil{\n panic(err)\n }\n return\n }\n }\n\n if !s.LoadMachine() {\n s.Save()\n }\n\n // Call handler set earlier\n h.handle(w, r, s)\n}",
"func (rp *Provider) SessionInit(ctx context.Context, maxlifetime int64, url string) (err error) {\n\trp.maxlifetime = maxlifetime * int64(time.Second)\n\trp.c, err = redis.New(cache.Options{Address: url, Codec: codec})\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif ctx == nil {\n\t\tctx = context.TODO()\n\t}\n\treturn rp.c.Ping(ctx)\n}",
"func SessionsConfig(secret string) gin.HandlerFunc {\n\tcookieStore := cookie.NewStore([]byte(secret))\n\tcookieStore.Options(sessions.Options{\n\t\tPath: \"/\",\n\t\tMaxAge: 10 * 86400,\n\t\tSecure: true,\n\t\tHttpOnly: true,\n\t})\n\treturn sessions.Sessions(\"btube-session\", cookieStore)\n}",
"func init() {\n\tconfig = &Config{}\n\terr := godotenv.Load(\".env\")\n\n\tif err != nil {\n\t\tconfig.Port = os.Getenv(\"PORT\")\n\n\t\tif config.MySQL.MaxIdleConns == 0 {\n\t\t\tconfig.MySQL.MaxIdleConns = 10\n\t\t}\n\n\t\tif config.MySQL.MaxOpenConns == 0 {\n\t\t\tconfig.MySQL.MaxOpenConns = 10\n\t\t}\n\n\t\tconfig.MySQL.Masters = []string{os.Getenv(\"DB_MASTER_HOSTS\")}\n\t\tconfig.MySQL.Slaves = []string{os.Getenv(\"DB_SLAVE_HOSTS\")}\n\t\tconfig.MySQL.DBName = os.Getenv(\"DB_NAME\")\n\t\tconfig.MySQL.User = os.Getenv(\"DB_USER\")\n\t\tconfig.MySQL.Pass = os.Getenv(\"DB_PASS\")\n\t\tconfig.MySQL.MaxIdleConns, _ = strconv.Atoi(os.Getenv(\"DB_MAX_IDLE_CONNECTIONS\"))\n\t\tconfig.MySQL.MaxOpenConns, _ = strconv.Atoi(os.Getenv(\"DB_MAX_OPEN_CONNECTIONS\"))\n\n\t\tconfig.Jwt.Key = os.Getenv(\"JWT_KEY\")\n\t\tconfig.Jwt.RawTokenExpire, _ = strconv.Atoi(os.Getenv(\"JWT_TOKEN_EXPIRE\"))\n\n\t\tconfig.Jwt.TokenExpire = time.Duration(config.Jwt.RawTokenExpire) * time.Hour\n\n\t} else {\n\n\t\terr = envconfig.Process(\"\", config)\n\n\t\tif err != nil {\n\t\t\tpanic(fmt.Sprintf(\"Failed to decode config env: %v\", err))\n\t\t}\n\n\t\tif len(config.Port) == 0 {\n\t\t\tconfig.Port = \"9000\"\n\t\t}\n\n\t\tif config.MySQL.MaxIdleConns == 0 {\n\t\t\tconfig.MySQL.MaxIdleConns = 10\n\t\t}\n\n\t\tif config.MySQL.MaxOpenConns == 0 {\n\t\t\tconfig.MySQL.MaxOpenConns = 10\n\t\t}\n\n\t\tconfig.Jwt.TokenExpire = time.Duration(config.Jwt.RawTokenExpire) * time.Hour\n\t\tconfig.Jwt.RefreshTokenExpire = time.Duration(config.Jwt.RawRefreshTokenExpire) * time.Hour\n\t}\n}",
"func (m *Motifini) Run() error {\n\tvar err error\n\tm.Info.Println(\"Connecting to SecuritySpy:\", m.Conf.SecuritySpy.URL)\n\tif m.SSpy, err = securityspy.GetServer(m.Conf.SecuritySpy); err != nil {\n\t\treturn err\n\t}\n\tm.ProcessEventStream()\n\tdefer m.SSpy.Events.Stop(true)\n\n\tm.Info.Println(\"Opening Subscriber Database:\", m.Conf.Global.StateFile)\n\tif m.Subs, err = subscribe.GetDB(m.Conf.Global.StateFile); err != nil {\n\t\treturn errors.Wrap(err, \"sub state\")\n\t}\n\n\tm.Msgs = &messenger.Messenger{\n\t\tSSpy: m.SSpy,\n\t\tSubs: m.Subs,\n\t\tConf: m.Conf.Imessage,\n\t\tTempDir: m.Conf.Global.TempDir,\n\t\tInfo: log.New(os.Stdout, \"[MSGS] \", m.Info.Flags()),\n\t\tDebug: m.Debug,\n\t\tError: m.Error,\n\t}\n\tif err := messenger.New(m.Msgs); err != nil {\n\t\treturn err\n\t}\n\n\tm.HTTP = &webserver.Config{\n\t\tSSpy: m.SSpy,\n\t\tSubs: m.Subs,\n\t\tMsgs: m.Msgs,\n\t\tInfo: log.New(os.Stdout, \"[HTTP] \", m.Info.Flags()),\n\t\tDebug: m.Debug,\n\t\tError: m.Error,\n\t\tTempDir: m.Conf.Global.TempDir,\n\t\tAllowedTo: m.Conf.Global.AllowedTo,\n\t\tPort: m.Conf.Global.Port,\n\t}\n\tgo m.waitForSignal()\n\treturn webserver.Start(m.HTTP)\n}",
"func Init() {\n\tr := gin.New()\n\n\tstore := sessions.NewCookieStore([]byte(\"secret\"))\n\tcorsConfig := cors.Config{\n\t\tAllowAllOrigins: true,\n\t\tAllowMethods: []string{\"GET\", \"POST\", \"DELETE\", \"PATCH\", \"PUT\"},\n\t\tAllowHeaders: []string{\"Origin\", \"Content-Length\", \"Content-Type\", \"Authorization\"},\n\t\tAllowCredentials: false,\n\t\tMaxAge: 12 * time.Hour,\n\t}\n\n\tr.Use(cors.New(corsConfig))\n\tr.Use(sessions.Sessions(\"user\", store))\n\n\trouter := r.Group(\"\")\n\troute.SetUpRouter(router)\n\tauth := r.Group(\"\", AuthRequired)\n\troute.SetUpAuthRouter(auth)\n\n\tr.Run(\":80\")\n}",
"func init() {\n\tconfig = Config{DB: make(map[int]models.User, 10), Friends: make(map[int][]int, 10)}\n\n\t// Just to make PrivateKey assign on the next line\n\tvar err error\n\n\tconfig.PrivateKey, err = ioutil.ReadFile(\"./config/keys/key.pem\")\n\tif err != nil {\n\t\tlog.Println(\"Error reading private key\")\n\t\tlog.Println(\"private key reading error: \", err)\n\t\treturn\n\t}\n\n\tconfig.CertKey, err = ioutil.ReadFile(\"./config/keys/cert.pem\")\n\tif err != nil {\n\t\tlog.Println(\"Error reading cert key\")\n\t\tlog.Println(\"cert key error: \", err)\n\t\treturn\n\t}\n\n}",
"func runInBootstrapSession(store kv.Storage, bootstrap func(Session)) {\n\ts, err := createSession(store)\n\tif err != nil {\n\t\t// Bootstrap fail will cause program exit.\n\t\tlogutil.BgLogger().Fatal(\"createSession error\", zap.Error(err))\n\t}\n\n\ts.SetValue(sessionctx.Initing, true)\n\tbootstrap(s)\n\tfinishBootstrap(store)\n\ts.ClearValue(sessionctx.Initing)\n\n\tdom := domain.GetDomain(s)\n\tdom.Close()\n\tdomap.Delete(store)\n}",
"func (pdr *ProviderMySQL) SessionInit(lifetime int64, savePath string) error {\n\tpdr.lifetime = lifetime\n\tpdr.savePath = savePath\n\n\tc := pdr.connectInit()\n\t_, err := c.Exec(sqlInit)\n\tif err == nil || strings.ContainsAny(err.Error(), \"already exists\") {\n\t\treturn nil\n\t}\n\n\treturn err\n}",
"func Init() {\n\n\tconfig = Config{}\n\t//Read in configuration from a file\n\t// configFile, err := ioutil.ReadFile(\"../config.json\")\n\t// if err != nil {\n\t// \tlog.Println(err)\n\t// \tlog.Panic(\"There was an error loading the config file\")\n\t// }\n\n\t// if err := json.Unmarshal(configFile, config); err != nil {\n\t// \tlog.Panic(\"Error decoding into struct. Please check the config file\")\n\t// }\n\n\tconfig.Port = \"8000\"\n\n\tsession, err := mgo.DialWithInfo(&mgo.DialInfo{\n\t\tAddrs: []string{\"127.0.0.1:27017\", \"127.0.0.1:27018\"},\n\t\tUsername: \"\",\n\t\tPassword: \"\",\n\t})\n\tif err != nil {\n\t\tlog.Panic(\"Error connecting to database\")\n\t}\n\tconfig.Session = session\n\n}",
"func init() {\n\tApp = &authConfig{}\n}",
"func run() {\n\tlogs.Start()\n\n\t// Send all data for the centralized database\n\tgo store.push()\n\tstore.Lock()\n\tdefer store.Unlock()\n\n\t// Creating the listener\n\tconfigData := config.GetConfig()\n\twatcher(configData)\n}",
"func Run() {\n\tvar err error\n\n\t//Init Log File\n\tlogFile, err := os.OpenFile(\"user-point.log\", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error opening log file: %v\", err)\n\t}\n\tdefer logFile.Close()\n\tlog.SetOutput(logFile)\n\t//to disable logging => log.SetOutput(ioutil.Discard)\n\n\terr = godotenv.Load()\n\tif err != nil {\n\t\tlog.Fatalf(\"Error populating ENV, %v\", err)\n\t}\n\n\tfmt.Println(\"ENV values has been populated successfully\")\n\n\tserver.Initialize(os.Getenv(\"DB_DRIVER\"), os.Getenv(\"DB_USER\"), os.Getenv(\"DB_PASSWORD\"), os.Getenv(\"DB_PORT\"), os.Getenv(\"DB_HOST\"), os.Getenv(\"DB_NAME\"))\n\n\tapiPort := fmt.Sprintf(\":%s\", os.Getenv(\"API_PORT\"))\n\tfmt.Printf(\"\\nListening to port %s\", apiPort)\n\n\tserver.Run(apiPort)\n}",
"func (pder *MemProvider) SessionInit(maxlifetime int64, savePath string) error {\n\treturn (*session.MemProvider)(pder).SessionInit(context.Background(), maxlifetime, savePath)\n}",
"func (app *CFAuthProxyApp) Run() {\n\ttlsMetricsConfig, err := sharedtls.NewMutualTLSServerConfig(\n\t\tapp.cfg.MetricStoreMetricsTLS.CAPath,\n\t\tapp.cfg.MetricStoreMetricsTLS.CertPath,\n\t\tapp.cfg.MetricStoreMetricsTLS.KeyPath,\n\t)\n\tif err != nil {\n\t\tapp.log.Fatal(\"unable to create metrics TLS config\", err)\n\t}\n\n\tapp.startMetricsServer(tlsMetricsConfig)\n\tapp.startProfilingServer()\n\n\tuaaClient := auth.NewUAAClient(\n\t\tapp.cfg.UAA.Addr,\n\t\tbuildUAAClient(app.cfg, app.log),\n\t\tapp.metrics,\n\t\tapp.log,\n\t)\n\n\t// try to get our first token key, but bail out if we can't talk to UAA\n\terr = uaaClient.RefreshTokenKeys()\n\tif err != nil {\n\t\tapp.log.Fatal(\"failed to fetch token from UAA\", err)\n\t}\n\n\tcapiClient := auth.NewCAPIClient(\n\t\tapp.cfg.CAPI.ExternalAddr,\n\t\tbuildCAPIClient(app.cfg, app.log),\n\t\tapp.metrics,\n\t\tapp.log,\n\t)\n\n\tqueryParser := &QueryParser{}\n\n\tmiddlewareProvider := auth.NewCFAuthMiddlewareProvider(\n\t\tuaaClient,\n\t\tcapiClient,\n\t\tqueryParser,\n\t\tapp.metrics,\n\t\tapp.log,\n\t)\n\n\tproxy := NewCFAuthProxy(\n\t\tapp.cfg.MetricStoreAddr,\n\t\tapp.cfg.Addr,\n\t\tapp.cfg.ProxyCAPath,\n\t\tapp.log,\n\t\tWithAuthMiddleware(middlewareProvider.Middleware),\n\t\tWithClientTLS(\n\t\t\tapp.cfg.ProxyCAPath,\n\t\t\tapp.cfg.MetricStoreClientTLS.CertPath,\n\t\t\tapp.cfg.MetricStoreClientTLS.KeyPath,\n\t\t\tmetric_store.COMMON_NAME,\n\t\t),\n\t\tWithServerTLS(\n\t\t\tapp.cfg.CertPath,\n\t\t\tapp.cfg.KeyPath,\n\t\t),\n\t)\n\n\tif app.cfg.SecurityEventLog != \"\" {\n\t\taccessLog, err := os.OpenFile(app.cfg.SecurityEventLog, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0666)\n\t\tif err != nil {\n\t\t\tapp.log.Panic(\"unable to open access log\", logger.Error(err))\n\t\t}\n\t\tdefer func() {\n\t\t\tif err := accessLog.Sync(); err != nil {\n\t\t\t\tapp.log.Error(\"syncing access log\", err)\n\t\t\t}\n\t\t\tif err := accessLog.Close(); err != nil {\n\t\t\t\tapp.log.Error(\"closing access log\", err)\n\t\t\t}\n\t\t}()\n\n\t\t_, localPort, err := net.SplitHostPort(app.cfg.Addr)\n\t\tif err != nil {\n\t\t\tapp.log.Panic(\"unable to determine local port\", logger.Error(err))\n\t\t}\n\n\t\taccessLogger := auth.NewAccessLogger(accessLog, app.log)\n\t\taccessMiddleware := auth.NewAccessMiddleware(accessLogger, app.cfg.InternalIP, localPort, app.log)\n\t\tWithAccessMiddleware(accessMiddleware)(proxy)\n\t}\n\n\tproxy.Start()\n\n\tsigs := make(chan os.Signal, 1)\n\tdone := make(chan bool, 1)\n\n\tsignal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)\n\n\tgo func() {\n\t\tsig := <-sigs\n\t\tapp.log.Info(\"received signal\", logger.String(\"signal\", sig.String()))\n\t\tapp.Stop()\n\t\tclose(done)\n\t}()\n\n\t<-done\n}",
"func init() {\n\tInitialize(Config{\n\t\tUseKms: true,\n\t\tSource: Auto,\n\t})\n}",
"func (c *CFAuthProxyApp) Run() {\n\ttlsMetricsConfig, err := sharedtls.NewMutualTLSServerConfig(\n\t\tc.cfg.MetricStoreMetricsTLS.CAPath,\n\t\tc.cfg.MetricStoreMetricsTLS.CertPath,\n\t\tc.cfg.MetricStoreMetricsTLS.KeyPath,\n\t)\n\tif err != nil {\n\t\tc.log.Fatal(\"unable to create metrics TLS config\", err)\n\t}\n\n\tc.startDebugServer(tlsMetricsConfig)\n\n\tuaaClient := auth.NewUAAClient(\n\t\tc.cfg.UAA.Addr,\n\t\tbuildUAAClient(c.cfg, c.log),\n\t\tc.debugRegistrar,\n\t\tc.log,\n\t)\n\n\t// try to get our first token key, but bail out if we can't talk to UAA\n\terr = uaaClient.RefreshTokenKeys()\n\tif err != nil {\n\t\tc.log.Fatal(\"failed to fetch token from UAA\", err)\n\t}\n\n\tcapiClient := auth.NewCAPIClient(\n\t\tc.cfg.CAPI.ExternalAddr,\n\t\tbuildCAPIClient(c.cfg, c.log),\n\t\tc.debugRegistrar,\n\t\tc.log,\n\t)\n\n\tqueryParser := &QueryParser{}\n\n\tmiddlewareProvider := auth.NewCFAuthMiddlewareProvider(\n\t\tuaaClient,\n\t\tcapiClient,\n\t\tqueryParser,\n\t\tc.debugRegistrar,\n\t\tc.log,\n\t)\n\n\tproxy := NewCFAuthProxy(\n\t\tc.cfg.MetricStoreAddr,\n\t\tc.cfg.Addr,\n\t\tc.cfg.ProxyCAPath,\n\t\tc.log,\n\t\tWithAuthMiddleware(middlewareProvider.Middleware),\n\t\tWithClientTLS(\n\t\t\tc.cfg.ProxyCAPath,\n\t\t\tc.cfg.MetricStoreClientTLS.CertPath,\n\t\t\tc.cfg.MetricStoreClientTLS.KeyPath,\n\t\t\tmetricstore.COMMON_NAME,\n\t\t),\n\t\tWithServerTLS(\n\t\t\tc.cfg.CertPath,\n\t\t\tc.cfg.KeyPath,\n\t\t),\n\t)\n\n\tif c.cfg.SecurityEventLog != \"\" {\n\t\taccessLog, err := os.OpenFile(c.cfg.SecurityEventLog, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0666)\n\t\tif err != nil {\n\t\t\tc.log.Panic(\"unable to open access log\", logger.Error(err))\n\t\t}\n\t\tdefer func() {\n\t\t\taccessLog.Sync()\n\t\t\taccessLog.Close()\n\t\t}()\n\n\t\t_, localPort, err := net.SplitHostPort(c.cfg.Addr)\n\t\tif err != nil {\n\t\t\tc.log.Panic(\"unable to determine local port\", logger.Error(err))\n\t\t}\n\n\t\taccessLogger := auth.NewAccessLogger(accessLog, c.log)\n\t\taccessMiddleware := auth.NewAccessMiddleware(accessLogger, c.cfg.InternalIP, localPort, c.log)\n\t\tWithAccessMiddleware(accessMiddleware)(proxy)\n\t}\n\n\tproxy.Start()\n\n\tsigs := make(chan os.Signal, 1)\n\tdone := make(chan bool, 1)\n\n\tsignal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)\n\n\tgo func() {\n\t\tsig := <-sigs\n\t\tc.log.Info(\"received signal\", logger.String(\"signal\", sig.String()))\n\t\tc.Stop()\n\t\tclose(done)\n\t}()\n\n\t<-done\n}",
"func (s *Session) Initiate() {\n\ts.updateToken()\n}",
"func init() {\n\t// set default values for tls\n\tviper.SetDefault(\"tls-cert-file\", constants.TLSCertPath)\n\tviper.SetDefault(\"tls-key-file\", constants.TLSKeyPath)\n\tviper.SetDefault(\"san-list\", constants.DefaultTlsSan)\n\n\t// set default values for log\n\tviper.SetDefault(\"log-max-length\", constants.DefaultLogEntryMaxlength)\n\tviper.SetDefault(\"log-enable-stdout\", true)\n\tviper.SetDefault(\"log-level\", \"info\")\n\n\t// set default values for server\n\tviper.SetDefault(\"server-port\", constants.DefaultPort)\n\tviper.SetDefault(\"server-read-timeout\", constants.DefaultReadTimeout)\n\tviper.SetDefault(\"server-read-header-timeout\", constants.DefaultReadHeaderTimeout)\n\tviper.SetDefault(\"server-write-timeout\", constants.DefaultWriteTimeout)\n\tviper.SetDefault(\"server-idle-timeout\", constants.DefaultIdleTimeout)\n\tviper.SetDefault(\"server-max-header-bytes\", constants.DefaultMaxHeaderBytes)\n\n\tviper.SetDefault(\"cms-ca-cert-validity\", constants.DefaultCACertValidity)\n\tviper.SetDefault(\"cms-ca-organization\", constants.DefaultOrganization)\n\tviper.SetDefault(\"cms-ca-locality\", constants.DefaultLocality)\n\tviper.SetDefault(\"cms-ca-province\", constants.DefaultProvince)\n\tviper.SetDefault(\"cms-ca-country\", constants.DefaultCountry)\n\n\tviper.SetDefault(\"aas-tls-cn\", constants.DefaultAasTlsCn)\n\tviper.SetDefault(\"aas-jwt-cn\", constants.DefaultAasJwtCn)\n\tviper.SetDefault(\"aas-tls-san\", constants.DefaultTlsSan)\n\n\tviper.SetDefault(\"token-duration-mins\", constants.DefaultTokenDurationMins)\n}",
"func (server *Server) Run(env string) error {\n\n\t// load configuration\n\tj := config.LoadJWT(env)\n\n\tr := gin.Default()\n\n\t// middleware\n\tmw.Add(r, cors.Default())\n\tjwt := mw.NewJWT(j)\n\tm := mail.NewMail(config.GetMailConfig(), config.GetSiteConfig())\n\tmobile := mobile.NewMobile(config.GetTwilioConfig())\n\tdb := config.GetConnection()\n\tlog, _ := zap.NewDevelopment()\n\tdefer log.Sync()\n\n\t// setup default routes\n\trsDefault := &route.Services{\n\t\tDB: db,\n\t\tLog: log,\n\t\tJWT: jwt,\n\t\tMail: m,\n\t\tMobile: mobile,\n\t\tR: r}\n\trsDefault.SetupV1Routes()\n\n\t// setup all custom/user-defined route services\n\tfor _, rs := range server.RouteServices {\n\t\trs.SetupRoutes()\n\t}\n\n\tport, ok := os.LookupEnv(\"PORT\")\n\tif !ok {\n\t\tport = \"8080\"\n\t}\n\n\t// run with port from config\n\treturn r.Run(\":\" + port)\n}",
"func init() {\n\tconfPath := flag.String(\"conf\", \"conf/wide.json\", \"path of wide.json\")\n\tconfData := flag.String(\"data\", \"\", \"path of data dir\")\n\tconfServer := flag.String(\"server\", \"\", \"this will overwrite Wide.Server if specified\")\n\tconfLogLevel := flag.String(\"log_level\", \"\", \"this will overwrite Wide.LogLevel if specified\")\n\tconfReadOnly := flag.String(\"readonly\", \"\", \"this will overrite Wide.ReadOnly if specified\")\n\tconfSiteStatCode := flag.String(\"site_stat_code\", \"\", \"this will overrite Wide.SiteStatCode if specified\")\n\n\tflag.Parse()\n\n\tgulu.Log.SetLevel(\"warn\")\n\tlogger = gulu.Log.NewLogger(os.Stdout)\n\n\t//wd := gulu.OS.Pwd()\n\t//if strings.HasPrefix(wd, os.TempDir()) {\n\t//\tlogger.Error(\"Don't run Wide in OS' temp directory or with `go run`\")\n\t//\n\t//\tos.Exit(-1)\n\t//}\n\n\ti18n.Load()\n\tevent.Load()\n\tconf.Load(*confPath, *confData, *confServer, *confLogLevel, *confReadOnly, template.HTML(*confSiteStatCode))\n\n\tconf.FixedTimeCheckEnv()\n\tsession.FixedTimeSave()\n\tsession.FixedTimeRelease()\n\tsession.FixedTimeReport()\n\n\tlogger.Debug(\"host [\" + runtime.Version() + \", \" + runtime.GOOS + \"_\" + runtime.GOARCH + \"]\")\n}",
"func InitSession(config RedisConfig) *RedisSession {\r\n\ts := RedisSession{}\r\n\ts.debug = config.Debug\r\n\ts.config = config\r\n\ts.candidates = make(map[string]string)\r\n\tclnt, err := s.getClient()\r\n\tif err != nil {\r\n\t\tpanic(err.Error())\r\n\t}\r\n\ts.client = clnt\r\n\treturn &s\r\n}",
"func init() {\n\ttmpl = template.Must(template.ParseGlob(\"template/*.tmpl\"))\n\n\t// key must be 16, 24 or 32 bytes long (AES-128, AES-192 or AES-256)\n\tkey := make([]byte, 32)\n\trand.Read(key)\n\tstore = sessions.NewCookieStore(key)\n}",
"func (i *Info) SetupConfig() error {\n\t// Check for AuthKey\n\tif len(i.AuthKey) == 0 {\n\t\treturn errors.New(\"session AuthKey is missing and is required as a good practice\")\n\t}\n\n\t// Decode authentication key\n\tauth, err := base64.StdEncoding.DecodeString(i.AuthKey)\n\tif err != nil || len(auth) == 0 {\n\t\treturn err\n\t}\n\n\t// If the auth key is not set, should error\n\tif len(i.EncryptKey) > 0 {\n\t\t// Decode the encrypt key\n\t\tencrypt, err := base64.StdEncoding.DecodeString(i.EncryptKey)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ti.store = sessions.NewCookieStore(auth, encrypt)\n\t} else {\n\t\ti.store = sessions.NewCookieStore(auth)\n\t}\n\n\treturn nil\n}",
"func doInitialSetup() {\n\terr := initLogging(os.Getenv(\"SENTRY_DSN\"))\n\tpanicOnError(err)\n\tconfPath := os.Getenv(\"OJC_CONFIG_PATH\")\n\tif len(confPath) == 0 {\n\t\tconfPath = \"/opt/ojc/ojc.yml\"\n\t}\n\tuserConfig, err = loadConfig(confPath) //userConfig is a global\n\tif ocDebug {\n\t\tlog.Println(userConfig)\n\t}\n\tpanicOnError(err)\n}",
"func ConfigInit(envLookup *env.VarSet, jetstreamConfig *interfaces.PortalConfig) {\n\n\t// Check we are deployed in Cloud Foundry\n\tif !envLookup.IsSet(VCapApplication) {\n\t\treturn\n\t}\n\tisSQLite := jetstreamConfig.DatabaseProviderName == SQLiteProviderName\n\t// If session secret is default, make sure we change it\n\tif jetstreamConfig.SessionStoreSecret == defaultSessionSecret {\n\t\tif isSQLite {\n\t\t\t// If SQLIte - create a random value to use, since each app instance has its own DB\n\t\t\t// and sessions should not be accessible across different instances\n\t\t\tjetstreamConfig.SessionStoreSecret = uuid.NewV4().String()\n\t\t}\n\t\t// If not SQLite then we are using a shared DB\n\t\t// Just drop through and we'll later use a random value and log a warning\n\t\t// This means each instance has a different session secret - this is not a problem\n\t\t// due to session affinity - it means if the instance a user is bound to goes away, their session\n\t\t// will also be lost and they will need to log in again\n\t} else {\n\t\t// Else, if not default and is SQLlite - add the App Index to the secret\n\t\t// This makes sure we use a different Session Secret per App Instance IF using SQLite\n\t\t// Since this is not a shared database across application instances\n\t\tif isSQLite && envLookup.IsSet(\"CF_INSTANCE_INDEX\") {\n\t\t\tappInstanceIndex, ok := envLookup.Lookup(\"CF_INSTANCE_INDEX\")\n\t\t\tif ok {\n\t\t\t\tjetstreamConfig.SessionStoreSecret = jetstreamConfig.SessionStoreSecret + \"_\" + appInstanceIndex\n\t\t\t\tlog.Infof(\"Updated session secret for Cloud Foundry App Instance: %s\", appInstanceIndex)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Update Database migration status depending on app instance index and SQLite\n\tif !isSQLite && envLookup.IsSet(\"CF_INSTANCE_INDEX\") {\n\t\tif appInstanceIndex, ok := envLookup.Lookup(\"CF_INSTANCE_INDEX\"); ok {\n\t\t\tif index, err := strconv.Atoi(appInstanceIndex); err == nil {\n\t\t\t\tjetstreamConfig.CanMigrateDatabaseSchema = (index == 0)\n\t\t\t\tlog.Infof(\"Skipping DB migration => not index 0 (%d)\", index)\n\t\t\t}\n\t\t}\n\t}\n}",
"func init() {\n\tlog.Printf(\"INIT()\")\n\t// This key must be the same across all GAE instances in order to decrypt session data\n\tc := NewContainer(Properties{P_APPLICATIONKEY: \"APPKEY_CHANGEME_________________\"})\n\n\tc.Redirect(\"/\", \"/p/\")\n\n\tsms := NewSharemeService()\n\tc.ExposeInterface(sms, InterfaceName)\n\tc.ExposeInterface(&imgsrv.ImageService{}, \"Image\")\n\tc.EnableFileServer(\"htdocs\", \"p\")\n\n\tub, _ := c.Binding(InterfaceName, \"HandleUpload\")\n\tsms.storageService = &BlobstoreStorageService{ub.Url().Path}\n\n\tc.ExposeYourself()\n\n\tgae.SetupAndStart(c)\n\thttp.HandleFunc(\"/cleanup\", HandleCleanup)\n}",
"func (s *ClientState) Run() error {\n\ts.DetermineInitialMasters()\n\tdefer s.closeRedisConnections()\n\tif err := s.Connect(); err != nil {\n\t\treturn err\n\t}\n\tif err := VerifyMasterFileString(s.GetConfig().RedisMasterFile); err != nil {\n\t\treturn err\n\t}\n\tif err := s.SendClientStarted(); err != nil {\n\t\treturn err\n\t}\n\tif s.opts.ConsulClient != nil {\n\t\tvar err error\n\t\ts.configChanges, err = s.opts.ConsulClient.WatchConfig()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t} else {\n\t\ts.configChanges = make(chan consul.Env)\n\t}\n\tgo s.Reader()\n\ts.Writer()\n\treturn nil\n}",
"func defConfig() Config {\n\treturn Config{\n\t\tAPI: api{\n\t\t\tServiceName: \"token-svc\",\n\t\t\tMetricsPort: \"4001\",\n\t\t\tPort: \"4000\",\n\t\t\tShutdownTimeoutSecs: 120,\n\t\t\tIdleTimeOutSecs: 90,\n\t\t\tWriteTimeOutSecs: 30,\n\t\t\tReadTimeOutSecs: 5,\n\t\t\tTimeoutSecs: 30,\n\t\t\tAllowedHeaders: []string{\"X-Requested-With\", \"X-Request-ID\", \"jaeger-debug-id\", \"Content-Type\", \"Authorization\"},\n\t\t\tAllowedOrigins: []string{\"*\"},\n\t\t\tAllowedMethods: []string{\"GET\", \"HEAD\", \"POST\", \"PUT\", \"OPTIONS\", \"DELETE\"},\n\t\t\tOpenEndPoints: []string{\"/login\", \"/health/ping\", \"/register\"},\n\t\t},\n\t\tLogger: logger{\n\t\t\tLevel: \"debug\",\n\t\t\tEncoding: \"json\",\n\t\t\tOutputPaths: []string{\"stdout\", \"/tmp/logs/tokensvc.logs\"},\n\t\t\tErrorOutputPaths: []string{\"stderr\"},\n\t\t},\n\t\tDB: db{\n\t\t\tUser: \"postgres\",\n\t\t\tPass: \"postgres\",\n\t\t\tHost: \"postgres\",\n\t\t\tPort: \"5432\",\n\t\t\tName: \"postgres\",\n\t\t\tTimeout: \"30\",\n\t\t},\n\t\tToken: token{\n\t\t\tAccessTokenLifeSpanMins: 30, // half hour\n\t\t\tRefreshTokenLifeSpanMins: 10080, // 1 week\n\t\t\tFailedLoginAttemptCacheLifeSpanMins: 30,\n\t\t\tFailedLoginAttemptsMax: 5,\n\t\t\tAuthPrivateKeyPath: \"/tmp/certs/app.rsa\", // TODO: Let's read these in from Vault\n\t\t\tAuthPublicKeyPath: \"/tmp/certs/app.rsa.pub\",\n\t\t\tIssuer: \"homerow.tech\",\n\t\t\tAccessCacheKeyID: \"token-access-user\",\n\t\t\tRefreshCacheKeyID: \"token-refresh-user\",\n\t\t\tFailedLoginCacheKeyID: \"failed-login-user\",\n\t\t},\n\t\tCookie: cookie{\n\t\t\tLifeSpanDays: 7,\n\t\t\tHashKey: \"something-that-is-32-byte-secret\",\n\t\t\tBlockKey: \"something-else-16-24-or-32secret\",\n\t\t\tName: \"homerow.tech\",\n\t\t\tDomain: \"dev.homerow.tech\",\n\t\t\tKeyUserID: \"id\",\n\t\t\tKeyEmail: \"email\",\n\t\t\tKeyJWTAccessID: \"jti-access\",\n\t\t\tKeyJWTRefreshID: \"jti-refresh\",\n\t\t},\n\t\tCache: cache{\n\t\t\tHost: \"redis\",\n\t\t\tPort: \"6379\",\n\t\t\tUserAccountLockedLifeSpanMins: 60,\n\t\t\tUserAccountLockedKeyID: \"account-locked-user\",\n\t\t},\n\t}\n}",
"func (rnr *Runner) Init(c configurer.Configurer, l logger.Logger, s storer.Storer) error {\n\n\trnr.Log = l\n\tif rnr.Log == nil {\n\t\tmsg := \"Logger undefined, cannot init runner\"\n\t\treturn fmt.Errorf(msg)\n\t}\n\n\trnr.Log.Debug(\"** Initialise **\")\n\n\trnr.Config = c\n\tif rnr.Config == nil {\n\t\tmsg := \"Configurer undefined, cannot init runner\"\n\t\trnr.Log.Warn(msg)\n\t\treturn fmt.Errorf(msg)\n\t}\n\n\trnr.Store = s\n\tif rnr.Store == nil {\n\t\tmsg := \"Storer undefined, cannot init runner\"\n\t\trnr.Log.Warn(msg)\n\t\treturn fmt.Errorf(msg)\n\t}\n\n\t// Initialise storer\n\terr := rnr.Store.Init()\n\tif err != nil {\n\t\trnr.Log.Warn(\"Failed store init >%v<\", err)\n\t\treturn err\n\t}\n\n\t// Preparer\n\tif rnr.PreparerFunc == nil {\n\t\trnr.PreparerFunc = rnr.Preparer\n\t}\n\n\tp, err := rnr.PreparerFunc(l)\n\tif err != nil {\n\t\trnr.Log.Warn(\"Failed preparer func >%v<\", err)\n\t\treturn err\n\t}\n\n\trnr.Prepare = p\n\tif rnr.Prepare == nil {\n\t\trnr.Log.Warn(\"Preparer is nil, cannot continue\")\n\t\treturn err\n\t}\n\n\t// run server\n\tif rnr.RunHTTPFunc == nil {\n\t\trnr.RunHTTPFunc = rnr.RunHTTP\n\t}\n\n\t// run daemon\n\tif rnr.RunDaemonFunc == nil {\n\t\trnr.RunDaemonFunc = rnr.RunDaemon\n\t}\n\n\t// prepare\n\tif rnr.PreparerFunc == nil {\n\t\trnr.PreparerFunc = rnr.Preparer\n\t}\n\n\t// model\n\tif rnr.ModellerFunc == nil {\n\t\trnr.ModellerFunc = rnr.Modeller\n\t}\n\n\t// http server - router\n\tif rnr.RouterFunc == nil {\n\t\trnr.RouterFunc = rnr.Router\n\t}\n\n\t// http server - middleware\n\tif rnr.MiddlewareFunc == nil {\n\t\trnr.MiddlewareFunc = rnr.Middleware\n\t}\n\n\t// http server - handler\n\tif rnr.HandlerFunc == nil {\n\t\trnr.HandlerFunc = rnr.Handler\n\t}\n\n\treturn nil\n}",
"func Run(a *config.Args) error {\n\tfor {\n\t\t// copy the baseline config\n\t\tcfg := *a\n\n\t\t// load the config file\n\t\tif err := fetchConfig(&cfg); err != nil {\n\t\t\tif cfg.StartupOptions.ConfigRepo != \"\" {\n\t\t\t\tlog.Errorf(\"Unable to load configuration file, waiting for 1 minute and then will try again: %v\", err)\n\t\t\t\ttime.Sleep(time.Minute)\n\t\t\t\tcontinue\n\t\t\t} else {\n\t\t\t\treturn fmt.Errorf(\"unable to load configuration file: %v\", err)\n\t\t\t}\n\t\t}\n\n\t\tif err := serve(&cfg); err != nil {\n\t\t\tif cfg.StartupOptions.ConfigRepo != \"\" {\n\t\t\t\tlog.Errorf(\"Unable to initialize server likely due to bad config, waiting for 1 minute and then will try again: %v\", err)\n\t\t\t\ttime.Sleep(time.Minute)\n\t\t\t} else {\n\t\t\t\treturn fmt.Errorf(\"unable to initialize server: %v\", err)\n\t\t\t}\n\t\t} else {\n\t\t\tlog.Infof(\"Configuration change detected, attempting to reload configuration\")\n\t\t}\n\t}\n}",
"func init() {\n\tconfig := domain.LoadCfg(\"manga\")\n\tif config == nil {\n\t\tlog.Info(\"用户未设置漫画相关的配置\")\n\t\treturn\n\t}\n\tmangaClockIn.config = config\n\ttaskList = append(taskList, mangaClockIn)\n}",
"func init() {\n\tawsSession := session.Must(session.NewSession(&aws.Config{\n\t\tRegion: aws.String(os.Getenv(\"REGION\")),\n\t}))\n\n\tif len(os.Getenv(\"DYNAMO_URL\")) > 0 {\n\t\tawsSession.Config.Endpoint = aws.String(os.Getenv(\"DYNAMO_URL\"))\n\t}\n\n\tdbs = dynamodb.New(awsSession)\n}",
"func init() {\n\t//initialize log-related functions\n\tcurrentDate := time.Now()\n\tfilename := \"logs/\" + currentDate.Format(\"2006-01-02\") + \"_app.log\"\n\tfile, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)\n\tif err != nil {\n\t\tlog.Fatalln(\"Failed to open error log file:\", err)\n\t}\n\n\tInfoLogger = log.New(io.MultiWriter(file, os.Stdout), \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n\tWarnLogger = log.New(io.MultiWriter(file, os.Stdout), \"WARN: \", log.Ldate|log.Ltime|log.Lshortfile)\n\tErrLogger = log.New(io.MultiWriter(file, os.Stdout), \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n\n\t//initialize list of doctors\n\tdoctors = system.CreateDoctors()\n\tpatients = system.CreatePatients()\n\tdocList := []string{\"ALAN CHEUNG\", \"ANG BENG CHONG\", \"CHUA YI YOU\", \"KARLSSON BENGT GUNNAR\", \"FOO REN HAO\"}\n\t//InitDoctors only returns an error for empty slice passed to it, so we can safely ignore the error\n\t_ = doctors.InitDoctors(docList)\n\tInfoLogger.Println(\"Initialized list of doctors\")\n\n\t//initialize admin credentials\n\tdotErr := godotenv.Load()\n\tif dotErr != nil {\n\t\tErrLogger.Println(\"Error loading .env file\")\n\t}\n\n\tuser := os.Getenv(\"USER\")\n\tps := os.Getenv(\"PS\")\n\tfirst := os.Getenv(\"FIRST\")\n\tlast := os.Getenv(\"LAST\")\n\tbps, _ := bcrypt.GenerateFromPassword([]byte(ps), bcrypt.DefaultCost)\n\tmapUsers[\"admin\"] = userInfo{user, bps, first, last}\n\n\t//loads .gohtml templates\n\ttpl = template.Must(template.ParseGlob(\"templates/*\"))\n}",
"func run() {\n\tlog.Info(\"Maison is starting...\")\n\n\tbus.Init()\n\n\t// TODO: init stores\n\n\tinitPlugins()\n\n\tlog.Info(\"Maison is started\")\n}",
"func init() {\n\tinitconf(configLocation)\n}",
"func Init() {\n\t// Lecture du fichier de configuration\n\t// -----------------------------------\n\tfile, _ := os.Open(\"settings.json\")\n\tdefer file.Close()\n\n\t// Décodage du JSON\n\t// ----------------\n\tdecoder := json.NewDecoder(file)\n\tconfiguration := Configuration{}\n\terr := decoder.Decode(&configuration)\n\ttoolbox.CheckError(err, 0)\n\n\t// Initialisation des variables\n\t// ----------------------------\n\tVersion = configuration.Version\n\n\tDatabaseDriver = configuration.Database.Driver\n\tDatabaseName = configuration.Database.Name\n\tDatabaseUser = configuration.Database.User\n\tDatabasePassword = configuration.Database.Password\n\n\tJWTSecretKey = configuration.JWT.SecretKey\n\tJWTExp = time.Hour * configuration.JWT.Exp\n\n\tMattermostHookURL = configuration.Mattermost.HookURL\n\tMattermostHookPayload = configuration.Mattermost.HookPayload\n\n\tSlackHookURL = configuration.Slack.HookURL\n\tSlackHookPayload = configuration.Slack.HookPayload\n\n\tSMTPHost = configuration.SMTP.Host\n\tSMTPPort = configuration.SMTP.Port\n\tSMTPUsername = configuration.SMTP.Username\n\tSMTPPassword = configuration.SMTP.Password\n}",
"func (application *Application) Init(filename *string) {\n\tapplication.Configuration = &Configuration{}\n\n\t// Load our configuration file\n\terr := application.Configuration.Load(*filename)\n\tif err != nil {\n\t\tlog.Fatalf(\"Can't read configuration file: %s\", err)\n\t\tpanic(err)\n\t}\n\n\t// Set up cookie store\n\tapplication.Store = sessions.NewCookieStore([]byte(application.Configuration.Secret))\n}",
"func init() {\n\tloadTheEnv()\n\tcreateDBInstance()\n\tloadRepDB()\n\tstartKafka()\n}",
"func (srv *Server) Run() error {\n\tvar err error\n\n\t// Initiate a new logger\n\tsrv.log = logrus.New()\n\tif srv.cfg.GetBool(\"debug\") {\n\t\tsrv.log.Level = logrus.DebugLevel\n\t\tsrv.log.Debug(\"Enabling Debug Logging\")\n\t}\n\tif srv.cfg.GetBool(\"trace\") {\n\t\tsrv.log.Level = logrus.TraceLevel\n\t\tsrv.log.Debug(\"Enabling Trace Logging\")\n\t}\n\tif srv.cfg.GetBool(\"disable_logging\") {\n\t\tsrv.log.Level = logrus.FatalLevel\n\t}\n\n\t// Setup Scheduler\n\tsrv.scheduler = tasks.New()\n\tdefer srv.scheduler.Stop()\n\n\t// Config Reload\n\tif srv.cfg.GetInt(\"config_watch_interval\") > 0 {\n\t\t_, err := srv.scheduler.Add(&tasks.Task{\n\t\t\tInterval: time.Duration(srv.cfg.GetInt(\"config_watch_interval\")) * time.Second,\n\t\t\tTaskFunc: func() error {\n\t\t\t\t// Reload config using Viper's Watch capabilities\n\t\t\t\terr := srv.cfg.WatchRemoteConfig()\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\n\t\t\t\t// Support hot enable/disable of debug logging\n\t\t\t\tif srv.cfg.GetBool(\"debug\") {\n\t\t\t\t\tsrv.log.Level = logrus.DebugLevel\n\t\t\t\t}\n\n\t\t\t\t// Support hot enable/disable of trace logging\n\t\t\t\tif srv.cfg.GetBool(\"trace\") {\n\t\t\t\t\tsrv.log.Level = logrus.TraceLevel\n\t\t\t\t}\n\n\t\t\t\t// Support hot enable/disable of all logging\n\t\t\t\tif srv.cfg.GetBool(\"disable_logging\") {\n\t\t\t\t\tsrv.log.Level = logrus.FatalLevel\n\t\t\t\t}\n\n\t\t\t\tsrv.log.Tracef(\"Config reloaded from Consul\")\n\t\t\t\treturn nil\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\tsrv.log.Errorf(\"Error scheduling Config watcher - %s\", err)\n\t\t}\n\t}\n\n\t// Setup the DB Connection\n\tsrv.kv, err = redis.Dial(redis.Config{\n\t\tServer: srv.cfg.GetString(\"kv_server\"),\n\t\tPassword: srv.cfg.GetString(\"kv_password\"),\n\t})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not establish database connection - %s\", err)\n\t}\n\tdefer srv.kv.Close()\n\n\t// Initialize the DB\n\terr = srv.kv.Setup()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not setup database - %s\", err)\n\t}\n\n\t// Setup the HTTP Server\n\tsrv.httpRouter = httprouter.New()\n\tsrv.httpServer = &http.Server{\n\t\tAddr: srv.cfg.GetString(\"listen_addr\"),\n\t\tHandler: srv.httpRouter,\n\t}\n\n\t// Setup TLS Configuration\n\tif srv.cfg.GetBool(\"enable_tls\") {\n\t\tsrv.httpServer.TLSConfig = &tls.Config{\n\t\t\tMinVersion: tls.VersionTLS12,\n\t\t\tCipherSuites: []uint16{\n\t\t\t\ttls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,\n\t\t\t\ttls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,\n\t\t\t},\n\t\t}\n\t}\n\n\t// Kick off Graceful Shutdown Go Routine\n\tgo func() {\n\t\t// Make the Trap\n\t\ttrap := make(chan os.Signal, 1)\n\t\tsignal.Notify(trap, syscall.SIGTERM)\n\n\t\t// Wait for a signal then action\n\t\ts := <-trap\n\t\tsrv.log.Infof(\"Received shutdown signal %s\", s)\n\n\t\t// Shutdown the HTTP Server\n\t\terr := srv.httpServer.Shutdown(context.Background())\n\t\tif err != nil {\n\t\t\tsrv.log.Errorf(\"Received errors when shutting down HTTP sessions %s\", err)\n\t\t}\n\n\t\t// Close DB Sessions\n\t\tsrv.kv.Close()\n\n\t\t// Shutdown the app via runCtx\n\t\tsrv.runCancel()\n\t}()\n\n\t// Register Health Check Handler used for Liveness checks\n\tsrv.httpRouter.GET(\"/health\", srv.middleware(srv.Health))\n\n\t// Register Health Check Handler used for Readiness checks\n\tsrv.httpRouter.GET(\"/ready\", srv.middleware(srv.Ready))\n\n\t// Register Hello World Handler\n\tsrv.httpRouter.GET(\"/hello\", srv.middleware(srv.Hello))\n\tsrv.httpRouter.POST(\"/hello\", srv.middleware(srv.SetHello))\n\tsrv.httpRouter.PUT(\"/hello\", srv.middleware(srv.SetHello))\n\n\t// Start HTTP Listener\n\tsrv.log.Infof(\"Starting Listener on %s\", srv.cfg.GetString(\"listen_addr\"))\n\tif srv.cfg.GetBool(\"enable_tls\") {\n\t\terr := srv.httpServer.ListenAndServeTLS(srv.cfg.GetString(\"cert_file\"), srv.cfg.GetString(\"key_file\"))\n\t\tif err != nil {\n\t\t\tif err == http.ErrServerClosed {\n\t\t\t\t// Wait until all outstanding requests are done\n\t\t\t\t<-srv.runCtx.Done()\n\t\t\t\treturn ErrShutdown\n\t\t\t}\n\t\t\treturn err\n\t\t}\n\t}\n\terr = srv.httpServer.ListenAndServe()\n\tif err != nil {\n\t\tif err == http.ErrServerClosed {\n\t\t\t// Wait until all outstanding requests are done\n\t\t\t<-srv.runCtx.Done()\n\t\t\treturn ErrShutdown\n\t\t}\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func init() {\n\tgob.Register(&models.User{})\n\tgob.Register(&models.Flash{})\n\tStore.Options.HttpOnly = true\n\t// This sets the maxAge to 5 days for all cookies\n\tStore.MaxAge(86400 * 5)\n}",
"func init() {\n\tapp.Parse(os.Args[1:])\n\tif *logging {\n\t\tf, err := os.Create(*logFile)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tlog.SetFlags(0)\n\t\tlog.SetOutput(f)\n\t} else {\n\t\tdis := ioutil.Discard\n\t\tlog.SetOutput(dis)\n\t}\n\tfmt.Println(\"Game starting\\nPoolsize :\\t\", *poolSize)\n\tfmt.Println(\"Generations :\\t\", *generations)\n\tfmt.Println(\"neuronsPL :\\t\", *neuronsPerLayer)\n}",
"func (s Server) Run() {\n\texpectingENVs := []string{\"BROKER_USERNAME\", \"BROKER_PASSWORD\", \"PORT\", \"DIEGO_DRIVER_SPEC\", \"LIBSTORAGE_URI\", \"INSECURE\"}\n\terr := VerifyEnvironmentVariable(expectingENVs)\n\tif err != nil {\n\t\tlog.Panicf(\"error: %s. expecting envs: %s\", err, expectingENVs)\n\t}\n\n\tusername := os.Getenv(\"BROKER_USERNAME\")\n\tpassword := os.Getenv(\"BROKER_PASSWORD\")\n\tport := os.Getenv(\"PORT\")\n\tdriverName = os.Getenv(\"DIEGO_DRIVER_SPEC\")\n\n\tserver := gin.Default()\n\tgin.SetMode(\"release\")\n\tauthorized := server.Group(\"/\", gin.BasicAuth(gin.Accounts{\n\t\tusername: password,\n\t}))\n\n\tauthorized.GET(\"/v2/catalog\", CatalogHandler)\n\tauthorized.PUT(\"/v2/service_instances/:instanceID\", ProvisioningHandler)\n\tauthorized.PUT(\"/v2/service_instances/:instanceID/service_bindings/:bindingId\", BindingHandler)\n\tauthorized.DELETE(\"/v2/service_instances/:instanceID/service_bindings/:bindingId\", UnbindingHandler)\n\tauthorized.DELETE(\"/v2/service_instances/:instanceID\", DeprovisionHandler)\n\n\tserver.Run(\":\" + port)\n\tlog.Info(\"Starting EMC Persistance Service Broker at Port \", port)\n}",
"func setup() *session.Session {\n\n\tif sess == nil {\n\n\t\t// server is the mock server that simply writes a 200 status back to the client\n\t\tserver := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.WriteHeader(http.StatusOK)\n\t\t}))\n\n\t\treturn session.Must(session.NewSession(&aws.Config{\n\t\t\tDisableSSL: aws.Bool(true),\n\t\t\tEndpoint: aws.String(server.URL),\n\t\t\tCredentials: credentials.NewStaticCredentials(\"AKID\", \"SECRET\", \"SESSION\"),\n\t\t\tRegion: aws.String(\"mock-region\"),\n\t\t}))\n\t}\n\n\treturn sess\n}",
"func main() {\n\tdb, err := sql.Open(\"sqlite3\", \"connect-sessions.db?cache=share&mode=twc&_foreign_keys=1&_journal_mode=wal\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tconfig := goconnect.NewDefaultConfig(goconnect.ClientConfig{\n\t\tHost: goconnect.StagingHost,\n\t\tClientID: \"telenordigital-connectexample-web\",\n\t\tPassword: \"\",\n\t\tLoginCompleteRedirectURI: \"/main.html\",\n\t\tLogoutCompleteRedirectURI: \"/\",\n\t})\n\t// Note: Ignoring errors since the store might already exist\n\tgoconnect.SQLStorePrepare(db)\n\n\tdbstore, err := goconnect.NewSQLStorage(db)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tconnect := goconnect.NewConnectIDWithStorage(config, dbstore)\n\n\t// The /css and /images endpoints\n\thttp.Handle(\"/css/\", http.StripPrefix(\"/css/\", http.FileServer(http.Dir(\"html/css\"))))\n\thttp.Handle(\"/images/\", http.StripPrefix(\"/images/\", http.FileServer(http.Dir(\"html/images\"))))\n\n\t// This the default start page\n\thttp.HandleFunc(\"/\", startPageHandler)\n\n\t// Main page - requires authentication\n\thttp.HandleFunc(\"/main.html\", connect.NewAuthHandlerFunc(mainPageHandler))\n\n\t// A protected resource - requires authentication\n\thttp.Handle(\"/extra/\", connect.NewAuthHandler(\n\t\thttp.StripPrefix(\"/extra/\", http.FileServer(http.Dir(\"html/extra\")))))\n\n\t// API endpoint - requires authentication\n\thttp.HandleFunc(\"/api/oneliner\", connect.NewAuthHandlerFunc(OneLinerHandlerFunc))\n\n\t// This isn't required since the /auth/info endpoint provides the same information but\n\t// this is just to show an example of how session information can be used in resources.\n\thttp.HandleFunc(\"/api/userinfo\", connect.NewAuthHandlerFunc(UserInfoHandlerFunc))\n\n\t// The ConnectID endpoints is added to /auth/. The actual endpoint depends on your\n\t// client configuration in ConnectID; ie what redirects are required.\n\thttp.Handle(\"/connect/\", connect.Handler())\n\n\t// Show the logged in user's properties.\n\thttp.HandleFunc(\"/connect/profile\", connect.SessionProfile)\n\n\tfmt.Println(\"Serving data on http://localhost:8080/\")\n\thttp.ListenAndServe(\":8080\", nil)\n}",
"func init() {\n\thome, _ := os.UserHomeDir()\n\n\tGlobalConfig = GlobalOpts{\n\t\tInstallDir: filepath.Join(home, \"probr\"),\n\t\tGodogResultsFormat: \"cucumber\",\n\t\tStartTime: time.Now(),\n\t}\n\tSetTmpDir(filepath.Join(home, \"probr\", \"tmp\")) // TODO: this needs error handling\n}",
"func initConfig() {\n\tif verbose {\n\t\tutils.EnableVerboseMode()\n\t\tt := time.Now()\n\t\tutils.Logf(\"Executed ImportExportCLI (%s) on %v\\n\", utils.MICmd, t.Format(time.RFC1123))\n\t}\n\n\tutils.Logln(utils.LogPrefixInfo+\"Insecure:\", insecure)\n\tif insecure {\n\t\tutils.Insecure = true\n\t}\n}",
"func init() {\n\tglobals.StartTime = time.Now()\n}",
"func init() {\n\n\t// Load the settings\n\tapp.LoadFromConfigFile(&Settings, \"shoutbox.yml\")\n\n\t// Add the discord message handler\n\tapp.Discord.AddHandler(onMessageCreate)\n\n\t// Reqister the job that polls new messages from the shoutbox\n\tgocron.Every(1).Second().Do(checkForNewMessages)\n}",
"func initRunConfig() (*runConfig, error) {\n\t// Find the server binary for each phase\n\tpCmd := flagServerCmd\n\tif flagParseServerCmd != \"\" {\n\t\tpCmd = flagParseServerCmd\n\t}\n\tif pCmd == \"\" {\n\t\treturn nil, fmt.Errorf(\"no parse server defined\")\n\t}\n\n\tcCmd := flagServerCmd\n\tif flagCheckServerCmd != \"\" {\n\t\tcCmd = flagCheckServerCmd\n\t}\n\tif cCmd == \"\" {\n\t\treturn nil, fmt.Errorf(\"no check server defined\")\n\t}\n\n\teCmd := flagServerCmd\n\tif flagEvalServerCmd != \"\" {\n\t\teCmd = flagEvalServerCmd\n\t}\n\tif eCmd == \"\" {\n\t\treturn nil, fmt.Errorf(\"no eval server defined\")\n\t}\n\n\t// Only launch each required binary once\n\tservers := make(map[string]celrpc.ConfClient)\n\tservers[pCmd] = nil\n\tservers[cCmd] = nil\n\tservers[eCmd] = nil\n\tfor cmd := range servers {\n\t\tvar cli celrpc.ConfClient\n\t\tvar err error\n\t\tif flagPipe {\n\t\t\tcli, err = celrpc.NewPipeClient(cmd, flagPipeBase64)\n\t\t} else {\n\t\t\tcli, err = celrpc.NewGrpcClient(cmd)\n\t\t}\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tservers[cmd] = cli\n\t}\n\n\tvar rc runConfig\n\trc.parseClient = servers[pCmd]\n\trc.checkClient = servers[cCmd]\n\trc.evalClient = servers[eCmd]\n\trc.checkedOnly = flagCheckedOnly\n\trc.skipCheck = flagSkipCheck\n\treturn &rc, nil\n}",
"func StartUp() {\n\t// Initialize AppConfig variable\n\tinitConfig()\n}"
] | [
"0.6337273",
"0.6131128",
"0.6090925",
"0.60610276",
"0.5989621",
"0.5919897",
"0.59132653",
"0.59047925",
"0.5844134",
"0.5826517",
"0.5773751",
"0.57609105",
"0.57544315",
"0.57538736",
"0.57394695",
"0.57380635",
"0.5732554",
"0.57275957",
"0.57262295",
"0.5709505",
"0.570857",
"0.56996465",
"0.5666022",
"0.5656288",
"0.5634727",
"0.5634318",
"0.5618562",
"0.56076455",
"0.5600466",
"0.55957633",
"0.55745476",
"0.5552737",
"0.55495733",
"0.5543961",
"0.5543961",
"0.55435723",
"0.55413914",
"0.5523909",
"0.5521935",
"0.55176973",
"0.551152",
"0.5500584",
"0.5487637",
"0.5486205",
"0.54769963",
"0.5469674",
"0.5463784",
"0.5462009",
"0.545549",
"0.54534465",
"0.5451657",
"0.5440631",
"0.5440558",
"0.54345274",
"0.542596",
"0.54213405",
"0.5420262",
"0.541311",
"0.5399185",
"0.5390276",
"0.53741",
"0.53708136",
"0.53511965",
"0.53503543",
"0.5344076",
"0.53412104",
"0.5337894",
"0.53358245",
"0.5327689",
"0.53257984",
"0.5324016",
"0.53207946",
"0.5316485",
"0.531511",
"0.53125596",
"0.53081083",
"0.529891",
"0.52943957",
"0.52916294",
"0.5287025",
"0.52800894",
"0.52800304",
"0.5273492",
"0.5269432",
"0.5266026",
"0.5263731",
"0.52633023",
"0.5249097",
"0.5248018",
"0.5245034",
"0.52427906",
"0.52422154",
"0.523952",
"0.52362376",
"0.5234089",
"0.5232475",
"0.522512",
"0.522237",
"0.5216751",
"0.52113396"
] | 0.6494068 | 0 |
SessionSetUser is used for setting given user's details in given session | func SessionSetUser(user *models.User, session *session.Session, r *http.Request) {
(*session).Set("id", user.Id)
(*session).Set("name", user.Name)
(*session).Set("email", user.Email)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *SessionManager) SetSession(user *User, w http.ResponseWriter, r *http.Request) error {\n\tlog.Printf(\"Saving new session for %s (id: %s)\", user.Username, user.ID)\n\tif user.Username == \"\" || user.PasswordHash == nil || user.ID == \"\" {\n\t\t// Internal sanity check to ensure we are provided valid session\n\t\treturn errors.New(errors.CodeInternal, \"incomplete user session information\")\n\t}\n\tsession, _ := s.Store.Get(r, \"session\")\n\tsession.Values[\"user_id\"] = user.ID\n\tsession.Values[\"username\"] = user.Username\n\terr := session.Save(r, w)\n\tif err != nil {\n\t\tlog.Printf(\"Failed to save session: %s\", err)\n\t\treturn errors.InternalError(err)\n\t}\n\tlog.Printf(\"Saved new session for %s (id: %s)\", user.Username, user.ID)\n\treturn nil\n}",
"func SetSession(id interface{}, user interface{}) gin.HandlerFunc {\n\treturn func(c *gin.Context) {\n\t\tsession := sessions.Default(c)\n\t\tsession.Set(\"id\", id)\n\t\tsession.Set(\"username\", user)\n\t\tsession.Save()\n\t}\n}",
"func SetSessionUser(sessionID string, userID int) error {\n\tkey := stringutil.Build(\"sessionid:\", sessionID, \":userid\")\n\terr := Set(key, userID)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"cannot set key in Redis\")\n\t}\n\treturn nil\n}",
"func (t *SimpleChaincode) SetUserForSession(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {\n\tvar token string\n\tvar err error\n\tfmt.Println(\"running SetUserForSession()\")\n\n\tif len(args) != 1 {\n\t\treturn nil, errors.New(\"Incorrect number of arguments. Expecting 2.\")\n\t}\n\ttoken = args[0]\n\n\tUserAsBytes, err := stub.GetState(\"savesessionvfm\")\n\tif err != nil {\n\t\treturn nil, errors.New(\"failed to get sessions\")\n\t}\n\tvar session Session\n\tjson.Unmarshal(UserAsBytes, &session)\n\tfor i := 0; i < len(session.StoreSession); i++ {\n\t\tif session.StoreSession[i].Token == token {\n\n\t\t\treturn []byte(session.StoreSession[i].Email), nil\n\t\t}\n\t}\n\treturn nil, nil\n}",
"func (mw *htmlAuthMw) SetUser(next http.Handler) http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tsession, err := r.Cookie(\"session\")\n\t\tif err != nil {\n\t\t\t// No user found - time to move on\n\t\t\tnext.ServeHTTP(w, r)\n\t\t\treturn\n\t\t}\n\t\tuser, err := mw.userService.ByToken(session.Value)\n\t\tif err != nil {\n\t\t\t// If you want you can retain the original functionality to call\n\t\t\t// http.Error if any error aside from app.ErrNotFound is returned,\n\t\t\t// but I find that most of the time we can continue on and let later\n\t\t\t// code error if it requires a user, otherwise it can continue without\n\t\t\t// the user.\n\t\t\tnext.ServeHTTP(w, r)\n\t\t\treturn\n\t\t}\n\t\tr = r.WithContext(context.WithUser(r.Context(), user))\n\t\tnext.ServeHTTP(w, r)\n\t}\n}",
"func SetUser(next echo.HandlerFunc) echo.HandlerFunc {\n\treturn func(c echo.Context) error {\n\t\tc.Set(\"userIdFromToken\", \"12345\")\n\t\treturn next(c)\n\t}\n}",
"func (m *SecurityActionState) SetUser(value *string)() {\n err := m.GetBackingStore().Set(\"user\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (hc *httpContext) setSession(userInfo *Authentication) {\n\n\tsession := hc.getSession()\n\tif session == nil {\n\t\treturn\n\t}\n\n\tsession.Values[sv[\"provider\"]] = userInfo.Provider\n\tsession.Values[sv[\"name\"]] = userInfo.Name\n\tsession.Values[sv[\"email\"]] = userInfo.Email\n\tsession.Values[sv[\"user\"]] = userInfo.UserName\n\tsession.Values[sv[\"token\"]] = userInfo.Token\n\thc.clearFlashes()\n\tsession.AddFlash(\"Logged in via \" + userInfo.Provider)\n\n\thc.saveSession(session)\n}",
"func SetUser(stmt *sql.Stmt, device, user string) error {\n\terr := exec(stmt, user, device)\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (sys *IAMSys) SetUser(accessKey string, uinfo madmin.UserInfo) error {\n\tobjectAPI := newObjectLayerFn()\n\tif objectAPI == nil {\n\t\treturn errServerNotInitialized\n\t}\n\n\tidFile := getUserIdentityPath(accessKey, false)\n\tu := newUserIdentity(auth.Credentials{\n\t\tAccessKey: accessKey,\n\t\tSecretKey: uinfo.SecretKey,\n\t\tStatus: string(uinfo.Status),\n\t})\n\n\tsys.Lock()\n\tdefer sys.Unlock()\n\n\tvar err error\n\tif globalEtcdClient != nil {\n\t\terr = saveIAMConfigItemEtcd(context.Background(), u, idFile)\n\t} else {\n\t\terr = saveIAMConfigItem(objectAPI, u, idFile)\n\t}\n\tif err != nil {\n\t\treturn err\n\t}\n\tsys.iamUsersMap[accessKey] = u.Credentials\n\n\t// Set policy if specified.\n\tif uinfo.PolicyName != \"\" {\n\t\treturn sys.policyDBSet(objectAPI, accessKey, uinfo.PolicyName, false)\n\t}\n\treturn nil\n}",
"func (l *Log) SetUser(ctx context.Context, id string) error {\n\tu, err := GetUser(ctx, id)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif u != nil {\n\t\tl.User = *u\n\t}\n\n\treturn nil\n}",
"func (n *Namespace) SetUser(req *acomm.Request) (interface{}, *url.URL, error) {\n\tvar args UserArgs\n\tif err := req.UnmarshalArgs(&args); err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tuidMapPath := fmt.Sprintf(\"/proc/%d/uid_map\", args.PID)\n\tif err := writeIDMapFile(uidMapPath, args.UIDs); err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tgidMapPath := fmt.Sprintf(\"/proc/%d/gid_map\", args.PID)\n\tif err := writeIDMapFile(gidMapPath, args.GIDs); err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\treturn nil, nil, nil\n}",
"func setSession(userName string, response http.ResponseWriter) {\n value := map[string]string{\n \"name\": userName,\n }\n if encoded, err := cookieHandler.Encode(\"session\", value); err == nil {\n cookie := &http.Cookie{\n Name: \"session\",\n Value: encoded,\n Path: \"/\",\n }\n http.SetCookie(response, cookie)\n }\n }",
"func SessionSetValue(ctx context.Context, name string, value interface{}) {\n\ts, ok := ctx.Value(sessionKey).(*Session)\n\tif ok {\n\t\ts.set(name, value)\n\t}\n}",
"func (h *Host) SetUser(u string) {\n}",
"func setSession(userName, token string, response http.ResponseWriter) {\n\tvalue := map[string]string{\n\t\t\"name\": userName,\n\t\t\"token\": token,\n\t}\n\tif encoded, err := cookieHandler.Encode(\"session\", value); err == nil {\n\t\tcookie := &http.Cookie{\n\t\t\tName: \"session\",\n\t\t\tValue: encoded,\n\t\t\tPath: \"/\",\n\t\t}\n\t\thttp.SetCookie(response, cookie)\n\t} else {\n\t\tlog.Println(err)\n\t}\n}",
"func setUser(ctx context.Context, data *User) error {\n\t// clear session_token and API_token for user\n\tk := datastore.NameKey(\"Users\", strings.ToLower(data.Username), nil)\n\n\t// New struct, to not add body, author etc\n\n\tif _, err := dbclient.Put(ctx, k, data); err != nil {\n\t\tlog.Println(err)\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (as *AuthService) UserSetToken(id int, sessionToken string) (*railway.User, error) {\n\tdetails := &MethodInfo{\n\t\tName: \"UserSetToken\",\n\t\tDescription: \"UserSetToken is the DB method used to UserSetToken\",\n\t}\n\tupdatedUser := &railway.User{}\n\tquery := `\n\tUPDATE users SET session_token=$1 WHERE id=$2 \n\tRETURNING\n\t\tid,\n\t\tfirst_name,\n\t\tlast_name,\n\t\temail,\n\t\tpassword,\n\t\trole,\n\t\tsession_token,\n\t\tdata,\n\t\tclient_id,\n\t\tdisabled,\n\t\tdisabled_on,\n\t\tarchived,\n\t\tarchived_on,\n\t\tcreated_at,\n\t\tpassword_reset_token\n\t`\n\terr := as.db.QueryRow(query, sessionToken, id).Scan(updatedUser.Scan()...)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, details.Name)\n\t}\n\n\treturn updatedUser, nil\n}",
"func (m *AadUserConversationMember) SetUser(value Userable)() {\n m.user = value\n}",
"func (us *UserService) UserSetToken(id int, sessionToken string) (*railway.User, error) {\n\tdetails := &MethodInfo{\n\t\tName: \"UserSetToken\",\n\t\tDescription: \"UserSetToken is the DB method used to UserSetToken\",\n\t}\n\ttx, err := us.db.Begin()\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, details.Name)\n\t}\n\n\tupdatedUser := &railway.User{}\n\tquery := fmt.Sprintf(`\n\tUPDATE users\n\tSET session_token=$1 \n\tWHERE id=$2\n\tRETURNING %s\n`, userAllColumns)\n\terr = tx.QueryRow(query, sessionToken, id).Scan(updatedUser.Scan()...)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, details.Name)\n\t}\n\n\ttx.Commit()\n\treturn updatedUser, nil\n}",
"func (m *SmsLogRow) SetUserId(value *string)() {\n err := m.GetBackingStore().Set(\"userId\", value)\n if err != nil {\n panic(err)\n }\n}",
"func SetUser(username string) {\n\tcurrentUser = username\n}",
"func AddUserToSession(user User, c *gin.Context) {\n\ts := sessions.Default(c)\n\t// Clear out password field\n\tuser.Password = \"\"\n\tuser.PasswordConfirm = \"\"\n\ts.Set(defaultUserKeystring, user)\n\ts.Save()\n\n\tlogrus.WithFields(logrus.Fields{\n\t\t\"module\": \"core\",\n\t\t\"action\": \"AddUserToSession\",\n\t\t\"data\": user,\n\t}).Info(\"User added to Session using default key\")\n}",
"func (b *BaseHandler) SetSession(key interface{}, value interface{}) {\n\tb.sessionStore.Set(b, key, value)\n}",
"func SetUser(ctx context.Context, user string) context.Context {\n\treturn context.WithValue(ctx, UserIdentityKey, user)\n}",
"func UserSession(s *session.Manager) userOption {\n\treturn func(u *User) {\n\t\tu.session = s\n\t}\n}",
"func SetSession(client *client.Client, db *db.Database, log *log.Logger) {\n\ts = &Session{client, db, log}\n}",
"func SetCurrentUser(next buffalo.Handler) buffalo.Handler {\n\treturn func(c buffalo.Context) error {\n\t\tif uid := c.Session().Get(\"current_user_id\"); uid != nil {\n\t\t\tu := &models.User{}\n\t\t\ttx := c.Value(\"tx\").(*pop.Connection)\n\t\t\terr := tx.Find(u, uid)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.WithStack(err)\n\t\t\t}\n\t\t\tc.Set(\"current_user\", u)\n\t\t}\n\t\treturn next(c)\n\t}\n}",
"func SetCurrentUser(next buffalo.Handler) buffalo.Handler {\n\treturn func(c buffalo.Context) error {\n\t\tif uid := c.Session().Get(\"current_user_id\"); uid != nil {\n\t\t\tu := &models.User{}\n\t\t\ttx := c.Value(\"tx\").(*pop.Connection)\n\t\t\terr := tx.Find(u, uid)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.WithStack(err)\n\t\t\t}\n\t\t\tc.Set(\"current_user\", u)\n\t\t}\n\t\treturn next(c)\n\t}\n}",
"func SetUser(s Span, id string, opts ...UserMonitoringOption) {\n\tif s == nil {\n\t\treturn\n\t}\n\tsp, ok := s.(*span)\n\tif !ok || sp.context == nil {\n\t\treturn\n\t}\n\tsp = sp.context.trace.root\n\tvar cfg UserMonitoringConfig\n\tfor _, fn := range opts {\n\t\tfn(&cfg)\n\t}\n\tsp.setUser(id, cfg)\n}",
"func (s *StorageBase) SetSession(ctx context.Context, sessionId string, sessionData *gmap.StrAnyMap, ttl time.Duration) error {\n\treturn ErrorDisabled\n}",
"func setSession(email string, writer http.ResponseWriter) {\n\tvalue := map[string]string{\n\t\t\"email\": email,\n\t}\n\tif encoded, err := cookieHandler.Encode(\"session\", value); err == nil {\n\t\tcookie := &http.Cookie{\n\t\t\tName: \"session\",\n\t\t\tValue: encoded,\n\t\t\tPath: \"/\",\n\t\t\tExpires: time.Now().Add(4 * time.Hour),\n\t\t}\n\t\thttp.SetCookie(writer, cookie)\n\t}\n}",
"func SetUserOnContext(param string) gin.HandlerFunc {\n\n\treturn func(c *gin.Context) {\n\n\t\tuid := bson.ObjectIdHex(c.Params.ByName(param))\n\t\tu, err := service.ReadUserByID(uid)\n\t\tif err != nil {\n\t\t\tif err == mgo.ErrNotFound {\n\t\t\t\terrors.Send(c, errors.NotFound())\n\t\t\t} else {\n\t\t\t\tlogger.Error(err)\n\t\t\t\terrors.Send(c, fmt.Errorf(\"failed to get a user\"))\n\t\t\t}\n\t\t\treturn\n\t\t}\n\t\tutils.SetTargetUser(c, u)\n\t}\n}",
"func (config *ConfigUser) SetUser(userId UserID, password UserPassword, client *Client) (err error) {\n\tif config != nil {\n\t\tconfig.User = userId\n\t\tconfig.Password = password\n\t}\n\n\tuserExists, err := CheckUserExistence(userId, client)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif config != nil {\n\t\tif userExists {\n\t\t\terr = config.UpdateUser(client)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t} else {\n\t\t\terr = config.CreateUser(client)\n\t\t}\n\t} else {\n\t\tconfig = &ConfigUser{\n\t\t\tPassword: password,\n\t\t\tUser: userId,\n\t\t}\n\t\tif userExists {\n\t\t\tif config.Password != \"\" {\n\t\t\t\terr = config.UpdateUserPassword(client)\n\t\t\t}\n\t\t} else {\n\t\t\terr = config.CreateUser(client)\n\t\t}\n\t}\n\treturn\n}",
"func (s *Session) Set(args SetSessionArgs) error {\n\ttReq := &Request{\n\t\tArguments: args,\n\t\tMethod: \"session-set\",\n\t}\n\tr := &Response{}\n\terr := s.Client.request(tReq, r)\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (k Keeper) SetUser(ctx sdk.Context, id string, username string, bio string) (*sdk.Result, error) {\n\n\tuser, err := k.GetUser(ctx, id)\n\tif err != nil {\n\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, \"User with address can not be found.\")\n\t}\n\n\tif user.Username != username && username != \"\" {\n\t\tuser.Username = username\n\t}\n\tif user.Bio != bio {\n\t\tuser.Bio = bio\n\t}\n\n\tstore := ctx.KVStore(k.storeKey)\n\tbz := k.cdc.MustMarshalBinaryLengthPrefixed(user)\n\tkey := []byte(types.UserPrefix + id)\n\tstore.Set(key, bz)\n\treturn &sdk.Result{Events: ctx.EventManager().Events()}, nil\n}",
"func (m *WindowsInformationProtectionDeviceRegistration) SetUserId(value *string)() {\n err := m.GetBackingStore().Set(\"userId\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (sys *IAMSys) SetTempUser(accessKey string, cred auth.Credentials, policyName string) error {\n\tobjectAPI := newObjectLayerFn()\n\tif objectAPI == nil {\n\t\treturn errServerNotInitialized\n\t}\n\n\tsys.Lock()\n\tdefer sys.Unlock()\n\n\t// If OPA is not set we honor any policy claims for this\n\t// temporary user which match with pre-configured canned\n\t// policies for this server.\n\tif globalPolicyOPA == nil && policyName != \"\" {\n\t\tp, ok := sys.iamPolicyDocsMap[policyName]\n\t\tif !ok {\n\t\t\treturn errInvalidArgument\n\t\t}\n\t\tif p.IsEmpty() {\n\t\t\tdelete(sys.iamUserPolicyMap, accessKey)\n\t\t\treturn nil\n\t\t}\n\n\t\tmp := newMappedPolicy(policyName)\n\n\t\tmappingPath := getMappedPolicyPath(accessKey, true)\n\t\tvar err error\n\t\tif globalEtcdClient != nil {\n\t\t\terr = saveIAMConfigItemEtcd(context.Background(), mp, mappingPath)\n\t\t} else {\n\t\t\terr = saveIAMConfigItem(objectAPI, mp, mappingPath)\n\t\t}\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tsys.iamUserPolicyMap[accessKey] = mp\n\t}\n\n\tidPath := getUserIdentityPath(accessKey, true)\n\tu := newUserIdentity(cred)\n\n\tvar err error\n\tif globalEtcdClient != nil {\n\t\terr = saveIAMConfigItemEtcd(context.Background(), u, idPath)\n\t} else {\n\t\terr = saveIAMConfigItem(objectAPI, u, idPath)\n\t}\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tsys.iamUsersMap[accessKey] = cred\n\treturn nil\n}",
"func (in *ActionUserSessionIndexInput) SetUser(value int64) *ActionUserSessionIndexInput {\n\tin.User = value\n\n\tif in._selectedParameters == nil {\n\t\tin._selectedParameters = make(map[string]interface{})\n\t}\n\n\tin.SetUserNil(false)\n\tin._selectedParameters[\"User\"] = nil\n\treturn in\n}",
"func SetUser(userin UserAdd) (lastid int64, err error) {\n\t// var user UserOut\n\t// var kontak contact.ContactIn\n\tvar user UserIn\n\tvar userup UserUpdate\n\n\tuser.Uname = userin.Uname\n\n\tusers, err := FindUser(user)\n\tlog.Printf(\"%+v\", users)\n\tlog.Printf(\"%+v\", user)\n\tlog.Printf(\"%+v\", userin)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\tif len(users) < 1 {\n\t\treturn 0, errors.New(\"User not found.\")\n\t}\n\n\tif len(users) < 1 {\n\t\treturn InsertUser(userin)\n\t} else {\n\t\tuserup.ContactType = userin.ContactType\n\t\tuserup.Upass = userin.Upass\n\t\treturn UpdateUser(users[0].Uid, userup)\n\t}\n\n\treturn\n}",
"func SetUserInfo(r *http.Request, user store.User) *http.Request {\n\tctx := r.Context()\n\tctx = context.WithValue(ctx, contextKey(\"user\"), user)\n\treturn r.WithContext(ctx)\n}",
"func (c *Controller) SetSession(name interface{}, value interface{}) error {\n\tif c.CruSession == nil {\n\t\tc.StartSession()\n\t}\n\treturn c.CruSession.Set(context2.Background(), name, value)\n}",
"func (db *MongoDB) PutUserSession(session UserSession) error {\n\tsession.Time = time.Now().UTC()\n\traw, err := bson.Marshal(session)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to marshal: %w\", err)\n\t}\n\tkey := bson.M{\"sid\": session.ID}\n\t_, err = db.instance.Collection(sessionCollection).ReplaceOne(context.Background(), key, raw, upsert)\n\treturn err\n}",
"func setLoggedIn(w http.ResponseWriter, u users.User) {\n\tc := http.Cookie{\n\t\tName: userCookieName,\n\t\tValue: u.Email,\n\t\tPath: \"/\",\n\t\tSecure: false,\n\t}\n\thttp.SetCookie(w, &c)\n}",
"func SetSession(w http.ResponseWriter, sid string) {\n\thttp.SetCookie(w, &http.Cookie{Name: SidName, Value: sid})\n}",
"func (o *Stock) SetUserP(exec boil.Executor, insert bool, related *User) {\n\tif err := o.SetUser(exec, insert, related); err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n}",
"func saveSession(_ http.ResponseWriter, _ *http.Request, sid string, user_id int) {\n\tstmt, err := db.Prepare(\"update users set session_id=? where id=?\")\n\t_, err = stmt.Exec(sid, user_id)\n\tif err != nil {\n\t\tlog.Println(\"Update session_id failed: \", err)\n\t}\n}",
"func (w *Worker) SetSession(s *Session) {\n\tw.mu.Lock()\n\tdefer w.mu.Unlock()\n\tw.s = s\n}",
"func (m *DeviceManagementIntentDeviceState) SetUserName(value *string)() {\n err := m.GetBackingStore().Set(\"userName\", value)\n if err != nil {\n panic(err)\n }\n}",
"func SetUsername(ctx iris.Context, username string) {\n\tctx.Values().Set(usernameContextKey, username)\n}",
"func (s *TrafficOpsSessionThreadsafe) setSession(url, username, password string, insecure bool, userAgent string, useCache bool, timeout time.Duration) error {\n\toptions := cookiejar.Options{\n\t\tPublicSuffixList: publicsuffix.List,\n\t}\n\tjar, err := cookiejar.New(&options)\n\tif err != nil {\n\t\treturn err\n\t}\n\tto := client.NewSession(username, password, url, userAgent, &http.Client{\n\t\tTimeout: timeout,\n\t\tTransport: &http.Transport{\n\t\t\tTLSClientConfig: &tls.Config{InsecureSkipVerify: insecure},\n\t\t},\n\t\tJar: jar,\n\t}, useCache)\n\t*s.session = to\n\treturn nil\n}",
"func (m *BasicAuthentication) SetUsername(value *string)() {\n err := m.GetBackingStore().Set(\"username\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (fb *Facebook) SetUser(response *http.Response) (OauthUser, error) {\n\tfacebookUser := &OauthUser{}\n\tdefer response.Body.Close()\n\tbody, err := ioutil.ReadAll(response.Body)\n\tif err != nil {\n\t\treturn *facebookUser, err\n\t}\n\tjson.Unmarshal(body, &facebookUser)\n\treturn *facebookUser, nil\n}",
"func addSession(user *User) error {\n\trandBytes, err := scrypt.GenerateRandomBytes(32)\n\tif err != nil {\n\t\treturn err\n\t}\n\tsessionId := string(randBytes)\n\t// TODO: store more than the username\n\terr = rd.Set(\"session:\"+sessionId, user.Username, sessionTimeout).Err()\n\tif err != nil {\n\t\treturn err\n\t}\n\tuser.sessionId = url.QueryEscape(sessionId)\n\treturn nil\n}",
"func (o *AuthToken) SetUserP(exec boil.Executor, insert bool, related *User) {\n\tif err := o.SetUser(exec, insert, related); err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n}",
"func SaveUserSession(w http.ResponseWriter, r *http.Request, user *User) error {\n\tsession, err := store.Get(r, sessionName)\n\tif err != nil {\n\t\treturn err\n\t}\n\tsession.Values[\"UserKey\"] = user.Sub\n\treturn session.Save(r, w)\n}",
"func (t *SimpleChaincode) set_user(stub *shim.ChaincodeStub, args []string) ([]byte, error) {\n var err error\n \n // 0 1\n // \"name\", \"bob\"\n if len(args) < 2 {\n return nil, errors.New(\"Incorrect number of arguments. Expecting 2\")\n }\n \n fmt.Println(\"- start set user\")\n fmt.Println(args[0] + \" - \" + args[1])\n termAsBytes, err := stub.GetState(args[0])\n if err != nil {\n return nil, errors.New(\"Failed to get thing\")\n }\n res := SearchTerm{}\n json.Unmarshal(termAsBytes, &res) //un stringify it aka JSON.parse()\n res.User = args[1] //change the user\n \n jsonAsBytes, _ := json.Marshal(res)\n err = stub.PutState(args[0], jsonAsBytes) //rewrite the term with id as key\n if err != nil {\n return nil, err\n }\n \n fmt.Println(\"- end set user\")\n return nil, nil\n}",
"func sessionBecome(s *sess.Session, uid int) {\n\tvar d db.PersonDetail\n\td.Reports = make([]db.Person, 0)\n\td.UID = uid\n\tadminReadDetails(&d)\n\n\ts.Firstname = d.FirstName\n\tif 0 < len(d.PreferredName) {\n\t\ts.Firstname = d.PreferredName\n\t}\n\ts.UID = int64(uid)\n\ts.Username = d.UserName\n\ts.ImageURL = ui.GetImageLocation(uid)\n\tauthz.GetRoleInfo(d.RID, &s.PMap)\n\n\tif authz.Authz.SecurityDebug {\n\t\tfor i := 0; i < len(s.PMap.Urole.Perms); i++ {\n\t\t\tulog(\"f: %s, perm: %02x\\n\", s.PMap.Urole.Perms[i].Field, s.PMap.Urole.Perms[i].Perm)\n\t\t}\n\t}\n\n\tulog(\"user %d to BECOME user %d\", s.UIDorig, s.UID)\n}",
"func (o *Stock) SetUser(exec boil.Executor, insert bool, related *User) error {\n\tvar err error\n\tif insert {\n\t\tif err = related.Insert(exec); err != nil {\n\t\t\treturn errors.Wrap(err, \"failed to insert into foreign table\")\n\t\t}\n\t}\n\n\tupdateQuery := fmt.Sprintf(\n\t\t\"UPDATE `stock` SET %s WHERE %s\",\n\t\tstrmangle.SetParamNames(\"`\", \"`\", 0, []string{\"user_id\"}),\n\t\tstrmangle.WhereClause(\"`\", \"`\", 0, stockPrimaryKeyColumns),\n\t)\n\tvalues := []interface{}{related.UserID, o.StockID}\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, updateQuery)\n\t\tfmt.Fprintln(boil.DebugWriter, values)\n\t}\n\n\tif _, err = exec.Exec(updateQuery, values...); err != nil {\n\t\treturn errors.Wrap(err, \"failed to update local table\")\n\t}\n\n\to.UserID.Int = related.UserID\n\to.UserID.Valid = true\n\n\tif o.R == nil {\n\t\to.R = &stockR{\n\t\t\tUser: related,\n\t\t}\n\t} else {\n\t\to.R.User = related\n\t}\n\n\tif related.R == nil {\n\t\trelated.R = &userR{\n\t\t\tStocks: StockSlice{o},\n\t\t}\n\t} else {\n\t\trelated.R.Stocks = append(related.R.Stocks, o)\n\t}\n\n\treturn nil\n}",
"func SetSession(ctx context.Context, session bool, logoutURL string) context.Context {\n\tctx = context.WithValue(ctx, sessionKey, session)\n\tctx = context.WithValue(ctx, logoutKey, logoutURL)\n\treturn ctx\n}",
"func (t *CookieAuthTransport) setSessionObject() error {\n\treq, err := t.buildAuthRequest()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tvar authClient = &http.Client{\n\t\tTimeout: time.Second * 60,\n\t}\n\tresp, err := authClient.Do(req)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer resp.Body.Close()\n\n\tt.SessionObject = resp.Cookies()\n\treturn nil\n}",
"func SetUserIDInContext(ctx context.Context, userID int) {\n\t// create a header that the gateway will watch for\n\theader := metadata.Pairs(\"gateway-session-userId\", strconv.Itoa(userID))\n\t// send the header back to the gateway\n\tgrpc.SendHeader(ctx, header)\n}",
"func (mgr *SessionMgr) Set(sessionID string, key interface{}, value interface{}) {\n\tmgr.Lock.Lock()\n\tdefer mgr.Lock.Unlock()\n\n\tif session, ok := mgr.Sessions[sessionID]; ok {\n\t\tsession.Values[key] = value\n\t}\n}",
"func (o *AuthToken) SetUser(exec boil.Executor, insert bool, related *User) error {\n\tvar err error\n\tif insert {\n\t\tif err = related.Insert(exec); err != nil {\n\t\t\treturn errors.Wrap(err, \"failed to insert into foreign table\")\n\t\t}\n\t}\n\n\tupdateQuery := fmt.Sprintf(\n\t\t\"UPDATE \\\"auth_tokens\\\" SET %s WHERE %s\",\n\t\tstrmangle.SetParamNames(\"\\\"\", \"\\\"\", 1, []string{\"user_id\"}),\n\t\tstrmangle.WhereClause(\"\\\"\", \"\\\"\", 2, authTokenPrimaryKeyColumns),\n\t)\n\tvalues := []interface{}{related.ID, o.Token}\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, updateQuery)\n\t\tfmt.Fprintln(boil.DebugWriter, values)\n\t}\n\n\tif _, err = exec.Exec(updateQuery, values...); err != nil {\n\t\treturn errors.Wrap(err, \"failed to update local table\")\n\t}\n\n\to.UserID.Int = related.ID\n\to.UserID.Valid = true\n\n\tif o.R == nil {\n\t\to.R = &authTokenR{\n\t\t\tUser: related,\n\t\t}\n\t} else {\n\t\to.R.User = related\n\t}\n\n\tif related.R == nil {\n\t\trelated.R = &userR{\n\t\t\tAuthTokens: AuthTokenSlice{o},\n\t\t}\n\t} else {\n\t\trelated.R.AuthTokens = append(related.R.AuthTokens, o)\n\t}\n\n\treturn nil\n}",
"func (s TrafficOpsSessionThreadsafe) Set(session *to.Session) {\n\ts.m.Lock()\n\t*s.session = session\n\ts.m.Unlock()\n}",
"func (s *Store) Set(session *entities.Session) error {\n\ts.mu.Lock()\n\tdefer s.mu.Unlock()\n\ts.sess[session.ClientID] = session\n\treturn nil\n}",
"func SetUserStatus(c *gin.Context) {\n\ttoken, err := c.Cookie(\"token\")\n\tif err == nil || token != \"\" {\n\t\tc.Set(\"is_logged_in\", true)\n\t} else {\n\t\tc.Set(\"is_logged_in\", false)\n\t}\n}",
"func (s *StorageFile) SetSession(ctx context.Context, sessionId string, sessionData *gmap.StrAnyMap, ttl time.Duration) error {\n\tintlog.Printf(ctx, \"StorageFile.SetSession: %s, %v, %v\", sessionId, sessionData, ttl)\n\tpath := s.sessionFilePath(sessionId)\n\tcontent, err := json.Marshal(sessionData)\n\tif err != nil {\n\t\treturn err\n\t}\n\t// Encrypt with AES.\n\tif s.cryptoEnabled {\n\t\tcontent, err = gaes.Encrypt(content, DefaultStorageFileCryptoKey)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\tfile, err := gfile.OpenWithFlagPerm(\n\t\tpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer file.Close()\n\tif _, err = file.Write(gbinary.EncodeInt64(gtime.TimestampMilli())); err != nil {\n\t\terr = gerror.Wrapf(err, `write data failed to file \"%s\"`, path)\n\t\treturn err\n\t}\n\tif _, err = file.Write(content); err != nil {\n\t\terr = gerror.Wrapf(err, `write data failed to file \"%s\"`, path)\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (s *UserStorageService) SetUser(userDB *models.User) error {\n\tredisUser, err := json.Marshal(userDB)\n\n\tif err != nil {\n\t\treturn err\n\t}\n\tstatus := s.rdb.Set(context.Background(), \"User:\"+userDB.UserID.String(), redisUser, time.Hour*72)\n\n\tif status.Err() != nil {\n\t\treturn status.Err()\n\t}\n\n\treturn nil\n}",
"func (s *Store) Set(user string, m *fsm.FSM) {\n\tmachine := FSMORM{}\n\ts.DB.First(&machine, \"user = ?\", user)\n\tmachine.User = user\n\tmachine.State = m.State\n\tmachine.Slots = slotsToJSONString(m.Slots)\n\tif res := s.DB.Save(&machine); res.Error != nil {\n\t\tlog.Error(res.Error)\n\t}\n}",
"func SetUserUsername(userID int, username string) error {\n\tkey := stringutil.Build(\"userid:\", strconv.Itoa(userID), \":username\")\n\terr := Set(key, username)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"cannot set key in Redis\")\n\t}\n\treturn nil\n}",
"func SetGlobalUser(iq IQ, roleName, user string) error {\n\treturn globalAuth(iq, http.MethodPut, roleName, MemberTypeUser, user)\n}",
"func (m *SmsLogRow) SetUserPrincipalName(value *string)() {\n err := m.GetBackingStore().Set(\"userPrincipalName\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (o *Transaction) SetUserP(exec boil.Executor, insert bool, related *User) {\n\tif err := o.SetUser(exec, insert, related); err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n}",
"func (s UserSet) SetUser(value m.UserSet) {\n\ts.RecordCollection.Set(models.NewFieldName(\"User\", \"user_id\"), value)\n}",
"func (node *DataNode) SetSession(session *sessionutil.Session) {\n\tnode.sessionMu.Lock()\n\tdefer node.sessionMu.Unlock()\n\tnode.session = session\n}",
"func (obj *MessengerUser) SetUsername(username string) {\n\tusernameChar := C.CString(username)\n\tdefer C.free(unsafe.Pointer(usernameChar))\n\tusernameStr := C.vsc_str_from_str(usernameChar)\n\n\tC.vssq_messenger_user_set_username(obj.cCtx, usernameStr)\n\n\truntime.KeepAlive(obj)\n\n\truntime.KeepAlive(username)\n\n\treturn\n}",
"func setOnUser(user string, data *schema.ResourceData, meta interface{}) error {\n\tdb := meta.(*sql.DB)\n\tpolicyName := data.Get(\"network_policy_name\").(string)\n\tuserSql := snowflake.NetworkPolicy(policyName).SetOnUser(user)\n\terr := snowflake.Exec(db, userSql)\n\tif err != nil {\n\t\treturn errors.Wrapf(err, \"error setting network policy %v on user %v\", policyName, user)\n\t}\n\n\treturn nil\n}",
"func (r Virtual_Guest) SetUserMetadata(metadata []string) (resp bool, err error) {\n\tparams := []interface{}{\n\t\tmetadata,\n\t}\n\terr = r.Session.DoRequest(\"SoftLayer_Virtual_Guest\", \"setUserMetadata\", params, &r.Options, &resp)\n\treturn\n}",
"func (dev *Device) SetUser(user unsafe.Pointer) {\n\tC.freenect_set_user(dev.ptr(), user)\n}",
"func (o *Notification) SetUser(exec boil.Executor, insert bool, related *UserProfile) error {\n\tvar err error\n\tif insert {\n\t\tif err = related.Insert(exec, boil.Infer()); err != nil {\n\t\t\treturn errors.Wrap(err, \"failed to insert into foreign table\")\n\t\t}\n\t}\n\n\tupdateQuery := fmt.Sprintf(\n\t\t\"UPDATE \\\"notification\\\" SET %s WHERE %s\",\n\t\tstrmangle.SetParamNames(\"\\\"\", \"\\\"\", 1, []string{\"user_id\"}),\n\t\tstrmangle.WhereClause(\"\\\"\", \"\\\"\", 2, notificationPrimaryKeyColumns),\n\t)\n\tvalues := []interface{}{related.ID, o.ID}\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, updateQuery)\n\t\tfmt.Fprintln(boil.DebugWriter, values)\n\t}\n\n\tif _, err = exec.Exec(updateQuery, values...); err != nil {\n\t\treturn errors.Wrap(err, \"failed to update local table\")\n\t}\n\n\to.UserID = related.ID\n\tif o.R == nil {\n\t\to.R = ¬ificationR{\n\t\t\tUser: related,\n\t\t}\n\t} else {\n\t\to.R.User = related\n\t}\n\n\tif related.R == nil {\n\t\trelated.R = &userProfileR{\n\t\t\tUserNotifications: NotificationSlice{o},\n\t\t}\n\t} else {\n\t\trelated.R.UserNotifications = append(related.R.UserNotifications, o)\n\t}\n\n\treturn nil\n}",
"func (s *session) Set(key string, value interface{}) {\n\ts.mu.Lock()\n\ts.values[key] = value\n\ts.mu.Unlock()\n\ts.provider.update(s.sid)\n}",
"func (m *Middleware) UseContextSetter() {\n\tm.Use(func(w http.ResponseWriter, r *http.Request) {\n\t\tsession := config.GetSession(r)\n\t\tuser := session.Values[\"user\"]\n\t\tif (user != nil) {\n\t\t\tuser = user.(*models.User)\n\t\t\tcontext.Set(r, config.LoggedInUser, user)\n\t\t}\n\t\tlog.Println(\"Found user \", user)\n\t})\n}",
"func (m *VirtualEndpoint) SetUserSettings(value []CloudPcUserSettingable)() {\n err := m.GetBackingStore().Set(\"userSettings\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (p *userActionProps) setUser(user *types.User) *userActionProps {\n\tp.user = user\n\treturn p\n}",
"func (m *ScheduleChangeRequest) SetManagerUserId(value *string)() {\n err := m.GetBackingStore().Set(\"managerUserId\", value)\n if err != nil {\n panic(err)\n }\n}",
"func (o *AuthMessage) SetUser(exec boil.Executor, insert bool, related *AuthUser) error {\n\tvar err error\n\tif insert {\n\t\tif err = related.Insert(exec); err != nil {\n\t\t\treturn errors.Wrap(err, \"failed to insert into foreign table\")\n\t\t}\n\t}\n\n\tupdateQuery := fmt.Sprintf(\n\t\t\"UPDATE `auth_message` SET %s WHERE %s\",\n\t\tstrmangle.SetParamNames(\"`\", \"`\", 0, []string{\"user_id\"}),\n\t\tstrmangle.WhereClause(\"`\", \"`\", 0, authMessagePrimaryKeyColumns),\n\t)\n\tvalues := []interface{}{related.ID, o.ID}\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, updateQuery)\n\t\tfmt.Fprintln(boil.DebugWriter, values)\n\t}\n\n\tif _, err = exec.Exec(updateQuery, values...); err != nil {\n\t\treturn errors.Wrap(err, \"failed to update local table\")\n\t}\n\n\to.UserID = related.ID\n\n\tif o.R == nil {\n\t\to.R = &authMessageR{\n\t\t\tUser: related,\n\t\t}\n\t} else {\n\t\to.R.User = related\n\t}\n\n\tif related.R == nil {\n\t\trelated.R = &authUserR{\n\t\t\tUserAuthMessages: AuthMessageSlice{o},\n\t\t}\n\t} else {\n\t\trelated.R.UserAuthMessages = append(related.R.UserAuthMessages, o)\n\t}\n\n\treturn nil\n}",
"func (m *AgreementAcceptance) SetUserId(value *string)() {\n m.userId = value\n}",
"func setSession(c echo.Context, r *http.Response) {\r\n\r\n\tfor _, cookie := range r.Cookies() {\r\n\r\n\t\tif cookie.Name == \"PHPSESSID\" {\r\n\r\n\t\t\tsess, _ := session.Get(\"Session\", c)\r\n\t\t\tsess.Options = &sessions.Options{\r\n\t\t\t\tPath: \"*\",\r\n\t\t\t\tMaxAge: 60 * 3,\r\n\t\t\t\tHttpOnly: true,\r\n\t\t\t}\r\n\t\t\tsess.Values[\"PHPSESSID\"] = cookie.Value\r\n\r\n\t\t\tsess.Save(c.Request(), c.Response())\r\n\t\t}\r\n\t}\r\n}",
"func (s *SessionStorer) Set(f string, u []byte) {\n\ts.SetInvoked = true\n\ts.SetFn(f, u)\n}",
"func (db *DB) SetSession(sess *Session) error {\n\tif sess == nil {\n\t\treturn errors.New(\"sess is nil\")\n\t}\n\treturn db.db.Save(sess).Error\n}",
"func (o *Transaction) SetUser(exec boil.Executor, insert bool, related *User) error {\n\tvar err error\n\tif insert {\n\t\tif err = related.Insert(exec); err != nil {\n\t\t\treturn errors.Wrap(err, \"failed to insert into foreign table\")\n\t\t}\n\t}\n\n\tupdateQuery := fmt.Sprintf(\n\t\t\"UPDATE `transactions` SET %s WHERE %s\",\n\t\tstrmangle.SetParamNames(\"`\", \"`\", 0, []string{\"user_id\"}),\n\t\tstrmangle.WhereClause(\"`\", \"`\", 0, transactionPrimaryKeyColumns),\n\t)\n\tvalues := []interface{}{related.UserID, o.TransactionID}\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, updateQuery)\n\t\tfmt.Fprintln(boil.DebugWriter, values)\n\t}\n\n\tif _, err = exec.Exec(updateQuery, values...); err != nil {\n\t\treturn errors.Wrap(err, \"failed to update local table\")\n\t}\n\n\to.UserID.Int = related.UserID\n\to.UserID.Valid = true\n\n\tif o.R == nil {\n\t\to.R = &transactionR{\n\t\t\tUser: related,\n\t\t}\n\t} else {\n\t\to.R.User = related\n\t}\n\n\tif related.R == nil {\n\t\trelated.R = &userR{\n\t\t\tTransactions: TransactionSlice{o},\n\t\t}\n\t} else {\n\t\trelated.R.Transactions = append(related.R.Transactions, o)\n\t}\n\n\treturn nil\n}",
"func (in *ActionUserSessionIndexInput) SetUserNil(set bool) *ActionUserSessionIndexInput {\n\tif in._nilParameters == nil {\n\t\tif !set {\n\t\t\treturn in\n\t\t}\n\t\tin._nilParameters = make(map[string]interface{})\n\t}\n\n\tif set {\n\t\tin._nilParameters[\"User\"] = nil\n\t\tin.SelectParameters(\"User\")\n\t} else {\n\t\tdelete(in._nilParameters, \"User\")\n\t}\n\treturn in\n}",
"func Set(redisdb *redis.Client, sessionID, key string, value interface{}) error {\n\n\tif _, err := redisdb.HSet(sessionID, key, value).Result(); err != nil {\n\t\treturn fmt.Errorf(\"failed to write %s to session: %s\", key, err.Error())\n\t}\n\n\treturn nil\n}",
"func (m *DeviceManagementIntentDeviceState) SetUserPrincipalName(value *string)() {\n err := m.GetBackingStore().Set(\"userPrincipalName\", value)\n if err != nil {\n panic(err)\n }\n}",
"func loginTheUser(hc *kinli.HttpContext, userInfo *Authentication, provider string) {\n\thc.SetSessionData(\"user\", userInfo)\n\thc.SetSessionData(\"provider\", provider)\n\thc.AddFlash(\"Logged in via \" + provider)\n}",
"func (o *AuthMessage) SetUserP(exec boil.Executor, insert bool, related *AuthUser) {\n\tif err := o.SetUser(exec, insert, related); err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n}",
"func (s *Client) Set(username string, vars map[string]string) {\n\ts.Init(username)\n\n\ts.lock.Lock()\n\tdefer s.lock.Unlock()\n\n\ttx, _ := s.db.Begin()\n\tstmt, _ := tx.Prepare(`INSERT OR REPLACE INTO user_variables (user_id, key, value) VALUES ((SELECT id FROM users WHERE username = ?), ?, ?);`)\n\tdefer stmt.Close()\n\tfor k, v := range vars {\n\t\tstmt.Exec(username, k, v)\n\t}\n\ttx.Commit()\n}",
"func (sys *IAMSys) SetUserStatus(accessKey string, status madmin.AccountStatus) error {\n\tobjectAPI := newObjectLayerFn()\n\tif objectAPI == nil {\n\t\treturn errServerNotInitialized\n\t}\n\n\tif status != madmin.AccountEnabled && status != madmin.AccountDisabled {\n\t\treturn errInvalidArgument\n\t}\n\n\tsys.Lock()\n\tdefer sys.Unlock()\n\n\tcred, ok := sys.iamUsersMap[accessKey]\n\tif !ok {\n\t\treturn errNoSuchUser\n\t}\n\n\tuinfo := newUserIdentity(auth.Credentials{\n\t\tAccessKey: accessKey,\n\t\tSecretKey: cred.SecretKey,\n\t\tStatus: string(status),\n\t})\n\tidFile := getUserIdentityPath(accessKey, false)\n\tvar err error\n\tif globalEtcdClient != nil {\n\t\terr = saveIAMConfigItemEtcd(context.Background(), uinfo, idFile)\n\t} else {\n\t\terr = saveIAMConfigItem(objectAPI, uinfo, idFile)\n\t}\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tsys.iamUsersMap[accessKey] = uinfo.Credentials\n\treturn nil\n}",
"func (o *BraceletPhoto) SetUserP(exec boil.Executor, insert bool, related *AuthUser) {\n\tif err := o.SetUser(exec, insert, related); err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n}"
] | [
"0.7738868",
"0.7654336",
"0.76508176",
"0.73313093",
"0.71982944",
"0.7109007",
"0.71066713",
"0.6984616",
"0.68290573",
"0.67263746",
"0.6712383",
"0.6707654",
"0.6691538",
"0.66402364",
"0.66397464",
"0.66373986",
"0.6532963",
"0.64544356",
"0.6407145",
"0.63928866",
"0.63260096",
"0.6323819",
"0.6319348",
"0.63185376",
"0.63013667",
"0.6296603",
"0.6292955",
"0.62413186",
"0.62413186",
"0.6239409",
"0.6230171",
"0.62096775",
"0.6178014",
"0.61765486",
"0.61750823",
"0.61734825",
"0.6137817",
"0.61353785",
"0.6130355",
"0.6119302",
"0.61015254",
"0.60887206",
"0.6075031",
"0.60202307",
"0.60180724",
"0.6016107",
"0.60051185",
"0.59961957",
"0.5989592",
"0.5937005",
"0.5936719",
"0.59332514",
"0.59125334",
"0.5881135",
"0.5878588",
"0.5870931",
"0.58691996",
"0.5862807",
"0.5860348",
"0.58501947",
"0.5823078",
"0.58063966",
"0.5770962",
"0.5767831",
"0.5754308",
"0.574895",
"0.5748621",
"0.57378834",
"0.57311714",
"0.57199186",
"0.5712471",
"0.5701187",
"0.5691957",
"0.56750154",
"0.5669638",
"0.5669261",
"0.56567466",
"0.56095994",
"0.5605198",
"0.56024677",
"0.5595329",
"0.5592431",
"0.557708",
"0.5574789",
"0.557408",
"0.5537757",
"0.5537385",
"0.5534212",
"0.5529685",
"0.5529116",
"0.55225927",
"0.5517538",
"0.5516256",
"0.5514343",
"0.55036587",
"0.5502666",
"0.5490418",
"0.548832",
"0.54844815",
"0.54838717"
] | 0.8440054 | 0 |
SessionGetUser returns user details from given session | func SessionGetUser(session *session.Session, r *http.Request) *models.User {
id := (*session).Get("id").(int)
name := (*session).Get("name").(string)
email := (*session).Get("email").(string)
u := models.User{Id: id, Name: name, Email: email}
return &u
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func UserFromSession(s *session) (*user, error) {\n return FetchUser(s.user.username)\n}",
"func getUser(c *gin.Context) user.User {\n\tvar u user.User\n\tif v, ok := c.Get(session); ok {\n\t\tu = v.(user.User)\n\t}\n\treturn u\n}",
"func getUser(s *sessions.Session) User {\n\tval := s.Values[\"user\"]\n\tvar user = User{}\n\tuser, ok := val.(User)\n\tif !ok {\n\t\treturn User{Authenticated: false}\n\t}\n\treturn user\n}",
"func GetUser(w http.ResponseWriter, r *http.Request) GSUser {\n\tvar u GSUser\n\tcookie, err := r.Cookie(\"session\")\n\tif err == nil {\n\t\tif s, ok := gs.sessions[cookie.Value]; ok {\n\t\t\tu = gs.users[s.userName]\n\t\t\treturn u\n\t\t}\n\t}\n\treturn u\n}",
"func getSessionUser(c web.C) *user {\n\tu, ok := c.Env[\"user\"]\n\tif !ok {\n\t\tlog.Fatalln(\"user not found\")\n\t}\n\n\tretu, ok := u.(*user)\n\tif !ok {\n\t\tlog.Fatalln(\"invalid user\")\n\t}\n\n\treturn retu\n}",
"func GetSession(w http.ResponseWriter, r *http.Request) (string, GSUser, bool) {\n\tvar u GSUser\n\tcookie, err := r.Cookie(\"session\")\n\tif err == nil {\n\t\tif s, ok := gs.sessions[cookie.Value]; ok {\n\t\t\tu = gs.users[s.userName]\n\t\t\treturn cookie.Value, u, true\n\t\t}\n\t}\n\treturn \"\", u, false\n}",
"func (d *Service) GetSessionUser(ctx context.Context, SessionId string) (*thunderdome.User, error) {\n\tUser := &thunderdome.User{}\n\n\te := d.DB.QueryRowContext(ctx, `\n\t\tSELECT\n u.id,\n u.name,\n u.email,\n u.type,\n u.avatar,\n u.verified,\n u.notifications_enabled,\n COALESCE(u.country, ''),\n COALESCE(u.locale, ''),\n COALESCE(u.company, ''),\n COALESCE(u.job_title, ''),\n u.created_date,\n u.updated_date,\n u.last_active\n FROM thunderdome.user_session us\n LEFT JOIN thunderdome.users u ON u.id = us.user_id\n WHERE us.session_id = $1 AND NOW() < us.expire_date`,\n\t\tSessionId,\n\t).Scan(\n\t\t&User.Id,\n\t\t&User.Name,\n\t\t&User.Email,\n\t\t&User.Type,\n\t\t&User.Avatar,\n\t\t&User.Verified,\n\t\t&User.NotificationsEnabled,\n\t\t&User.Country,\n\t\t&User.Locale,\n\t\t&User.Company,\n\t\t&User.JobTitle,\n\t\t&User.CreatedDate,\n\t\t&User.UpdatedDate,\n\t\t&User.LastActive)\n\tif e != nil {\n\t\tif !errors.Is(e, sql.ErrNoRows) {\n\t\t\td.Logger.Ctx(ctx).Error(\"user_session_get query error\", zap.Error(e))\n\t\t}\n\t\treturn nil, errors.New(\"active session match not found\")\n\t}\n\n\tUser.GravatarHash = db.CreateGravatarHash(User.Email)\n\n\treturn User, nil\n}",
"func (s *SSO) GetUser(r *http.Request) (u crowd.User, err error) {\n\tcurrentCookie, err := r.Cookie(s.CookieConfig.Name)\n\tif err == http.ErrNoCookie {\n\t\treturn u, errors.New(\"no session cookie\")\n\t}\n\n\tuserSession, err := s.CrowdApp.GetSession(currentCookie.Value)\n\tif err != nil {\n\t\treturn u, errors.New(\"session not valid\")\n\t}\n\n\treturn userSession.User, nil\n}",
"func (s Session) GetUser(ctx context.Context) (middleware.User, error) {\n\tuser, err := loader.Loader.GetUser(ctx, s.UserID)\n\treturn User{Row: user}, err\n}",
"func GetUser(res http.ResponseWriter, req *http.Request) User {\n\t// Request for the 'session' cookie\n\tc, err := req.Cookie(\"session\")\n\tif err != nil {\n\t\t// Return empty user\n\t\treturn User{}\n\t}\n\t// Set cookie path to index\n\tc.Path = \"/\"\n\t// Reset cookie age to the session length everytime this function runs\n\tc.MaxAge = sessions.SessionLength\n\thttp.SetCookie(res, c)\n\n\t// If the cookie exists, get user from the database\n\tvar u User\n\tsqlStmt := `SELECT\n\t\t\t\t\ttblUsers.fldID,\n \t\t\t\ttblUsers.fldFirstName,\n \t\t\t\ttblUsers.fldLastName,\n \t\t\t\ttblUsers.fldEmail,\n \t\t\t\ttblUsers.fldPassword\n\t\t\t\tFROM tblUsers\n\t\t\t\tINNER JOIN tblSessions\n\t\t\t\t\tON tblSessions.fldFKUserID = tblUsers.fldID\n\t\t\t\tWHERE tblSessions.fldSessionID = ?`\n\n\tstmt, err := globals.Db.Prepare(sqlStmt)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\tdefer stmt.Close()\n\n\terr = stmt.QueryRow(c.Value).Scan(&u.UserID, &u.FirstName, &u.LastName, &u.Email, &u.Password)\n\tif err != nil {\n\t\t// No rows found\n\t\tif err == sql.ErrNoRows {\n\t\t\treturn u\n\t\t}\n\t\t// Something else went wrong\n\t\tlog.Fatal(err)\n\t}\n\t// Update the users last active\n\tsessions.UpdateLastActive(c.Value)\n\n\treturn u\n}",
"func getSessionUser(sessionId string) (*User, error) {\n\tsession, err := rd.Get(\"session:\" + sessionId).Result()\n\tif err == redis.Nil {\n\t\treturn nil, nil\n\t} else if err != nil {\n\t\treturn nil, err\n\t} else {\n\t\tvar usr User\n\t\t// TODO: store more than a name\n\t\tusr.Username = session\n\t\treturn &usr, nil\n\t}\n}",
"func (p *PostgresDb) GetUserSession(username string) (model.AuthToken, error) {\n\tvar token model.AuthToken\n\tquery := `\n\t\tSELECT token, username, auth\n\t\tFROM usersession\n\t\tWHERE username=$1\n\t`\n\terr := p.dbConn.Get(&token, query, username)\n\tif err != nil {\n\t\tlog.Println(\"Error getting user session:\", err)\n\t\treturn token, err\n\t}\n\treturn token, nil\n}",
"func getUser(res http.ResponseWriter, req *http.Request) userInfo {\n\t// get current session cookie\n\tloginCookie, err := req.Cookie(\"loginCookie\")\n\tif err != nil {\n\t\tid := uuid.NewV4()\n\t\tvar expireCookie = time.Now().Add(1 * time.Hour)\n\t\tloginCookie = &http.Cookie{\n\t\t\tName: \"loginCookie\",\n\t\t\tValue: id.String(),\n\t\t\tExpires: expireCookie,\n\t\t\tDomain: \"localhost\",\n\t\t\tPath: \"/\",\n\t\t\tSecure: true,\n\t\t\tHttpOnly: true,\n\t\t}\n\n\t}\n\thttp.SetCookie(res, loginCookie)\n\n\t// if the user exists already, get user\n\tvar myUser userInfo\n\tif username, ok := mapSessions[loginCookie.Value]; ok {\n\t\tmyUser = mapUsers[username]\n\t}\n\n\treturn myUser\n}",
"func GetSessionAndUser(sessions *session.Sessions, users *user.Users, writer http.ResponseWriter, request *http.Request) (*session.Session, *user.User) {\n\tsessionId, err := db.ParsePK(request.Header.Get(\"sid\"))\n\tif err != nil {\n\t\thttp.Error(writer, \"invalid session id format\", http.StatusForbidden)\n\t\treturn nil, nil\n\t}\n\n\t//check session\n\tsession, err := sessions.Get(sessionId)\n\tif err != nil {\n\t\thttp.Error(writer, \"invalid session id\", http.StatusForbidden)\n\t\treturn nil, nil\n\t}\n\n\t//re-check if user actually still exists\n\tuser, err := users.Get(session.User)\n\tif err != nil {\n\t\thttp.Error(writer, err.Error(), http.StatusForbidden)\n\t\treturn nil, nil\n\t}\n\n\t//check inactive\n\tif !user.Active {\n\t\thttp.Error(writer, \"user is inactive\", http.StatusForbidden)\n\t\treturn nil, nil\n\t}\n\n\treturn session, user\n}",
"func GetUserSession(r *http.Request) string {\n\tsessionCookie, noCookieError := r.Cookie(\"usersession\")\n\tif noCookieError == nil && sessionCookie.Value != \"\" {\n\t\treturn sessionCookie.Value\n\t}\n\n\tsession, ok := r.Header[\"Usersession\"]\n\tif ok {\n\t\treturn session[0]\n\t}\n\n\treturn \"\"\n}",
"func (db *MongoDB) GetUserSession(id string) (*UserSession, error) {\n\tresult := db.instance.Collection(sessionCollection).FindOne(context.Background(), bson.M{\"sid\": id})\n\tif result.Err() != nil {\n\t\tif result.Err() == mongo.ErrNoDocuments {\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, result.Err()\n\t}\n\tvar session UserSession\n\tif err := result.Decode(&session); err != nil {\n\t\treturn nil, err\n\t}\n\treturn &session, nil\n}",
"func (cc *ClusterController) getUserInfo(sessions *userSessionsStruct, clientAddress uint64) *dataformat.User {\n\tinterSession := cc.metric.MetricInterSessions.calc(sessions)\n\tinterSessionMean, interSessionMin, interSessionMax, interSessionStdDev := utils.GetDistributionStats(interSession)\n\tuserInfo := &dataformat.User{\n\t\tClientAddress: clientAddress,\n\t\tNumSessions: int64(len(sessions.sessions)),\n\t\tInterSession: &dataformat.Distribution{Mean: interSessionMean,\n\t\t\tMin: int64(interSessionMin),\n\t\t\tMax: int64(interSessionMax),\n\t\t\tStdDev: interSessionStdDev,\n\t\t},\n\t}\n\treturn userInfo\n}",
"func GetSessionUser(sessionID string) (userID int, err error) {\n\tkey := stringutil.Build(\"sessionid:\", sessionID, \":userid\")\n\tuserID, err = GetInt(key)\n\tif err != nil {\n\t\terr = errors.Wrap(err, \"cannot get int value from Redis\")\n\t}\n\treturn\n}",
"func identityRetrieverFromSession(ctx *middlewares.AutheliaCtx) (*session.Identity, error) {\n\tuserSession := ctx.GetSession()\n\n\tif len(userSession.Emails) == 0 {\n\t\treturn nil, fmt.Errorf(\"User %s does not have any email address\", userSession.Username)\n\t}\n\n\treturn &session.Identity{\n\t\tUsername: userSession.Username,\n\t\tEmail: userSession.Emails[0],\n\t}, nil\n}",
"func getLoggedInUser(c *gin.Context) (int, string) {\n // get cookie\n val, err := c.Request.Cookie(SessionCookieName)\n if err != nil {\n return 0, \"\"\n }\n \n // search for session\n con := stores.redisPool.Get()\n defer con.Close()\n\n // base64 decode session id\n bytes, err := base64.URLEncoding.DecodeString(val.Value)\n if err != nil {\n return 0, \"\"\n }\n\n // sha256 hash of session id for lookup\n shaSum := sha256.Sum256(bytes)\n sessionHash := base64.URLEncoding.EncodeToString(shaSum[:])\n\n userId, err := redis.Int(con.Do(\"GET\", \"session:\" + sessionHash))\n if err != nil {\n return 0, val.Value\n }\n\n // return the logged in userid\n return userId, val.Value\n}",
"func SessionUserFromRequest(r *http.Request) (*Session, *Entity) {\n\tsession := SessionFromRequest(r)\n\treturn session, session.User()\n}",
"func (m *Session) Get(ctx context.Context, req *proto.SessionRequest, rsp *proto.SessionResponse) error {\n\ts, err := service.GetSession(&model.Account{\n\t\tUsername: req.Account,\n\t\tPassword: req.Password,\n\t})\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn err\n\t}\n\trsp.Account = s.GetInsta().Account.Username\n\treturn nil\n}",
"func GetUser(username string, session *r.Session) ct.User {\n\tvar u ct.User\n\t// var user ct.User\n\tdb := os.Getenv(\"DB\")\n\ttable := os.Getenv(\"USERTABLE\")\n\t// userTable := os.Getenv(\"USERTABLE\")\n\tcur, _ := r.DB(db).Table(table).GetAllByIndex(\"username\", username).Run(session)\n\t_ = cur.One(&u)\n\tcur.Close()\n\t// fmt.Println(u)\n\t// mapstructure.Decode(u, &user)\n\treturn u\n}",
"func GetUser(c *gin.Context) *models.User {\n\tuser, _, _ := cookies.CurrentUser(c)\n\tif user == nil {\n\t\treturn &models.User{}\n\t}\n\treturn user\n}",
"func GetCurrentUser(r *http.Request, ctx *handlers.Context) *users.User {\r\n\tsessionState := &handlers.SessionState{}\r\n\t_, err := sessions.GetState(r, ctx.SessionKey, ctx.SessionStore, sessionState)\r\n\tif err != nil {\r\n\t\tfmt.Printf(\"Error cannot get session state: \"+err.Error(), http.StatusUnauthorized)\r\n\t}\r\n\tsessionUser := sessionState.User\r\n\treturn sessionUser\r\n}",
"func GetUserFromRequest(r *http.Request) *User {\n\ts := getSessionFromRequest(r)\n\tif s != nil {\n\t\tif s.User.ID == 0 {\n\t\t\tGet(&s.User, \"id = ?\", s.UserID)\n\t\t}\n\t\tif s.User.ID != 0 {\n\t\t\treturn &s.User\n\t\t}\n\t}\n\treturn nil\n}",
"func getUser(r *http.Request) string {\n\tsession, _ := store.Get(r, serverConfig.CookieName)\n\tauthenticated, ok := session.Values[\"auth\"]\n\tif ok == true && authenticated == true {\n\t\temail := session.Values[\"email\"]\n\t\tif email != nil {\n\t\t\treturn email.(string)\n\t\t}\n\t}\n\treturn \"\"\n}",
"func (AuthenticationController) GetSessionData(c *gin.Context) {\n\tsession := sessions.Default(c)\n\tuuid := session.Get(\"uuid\")\n\tif uuid != nil {\n\t\tc.JSON(http.StatusOK, gin.H{\"uuid\": uuid, \"username\": session.Get(\"username\"),\n\t\t\t\"email\": session.Get(\"email\")})\n\t} else {\n\t\tutils.CreateError(c, http.StatusBadRequest,\n\t\t\t\"Failed to fetch session data. Make sure to be logged in.\")\n\t}\n}",
"func GetUserFromSession(user *models.User, sess session.SessionStore) bool {\n\tid := GetUserIdFromSession(sess)\n\tif id > 0 {\n\t\tu := models.User{Id: id}\n\t\tif u.Read() == nil {\n\t\t\t*user = u\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}",
"func SessionUser(sess session.Store) *models.User {\n\t// Get user ID\n\tuid := sess.Get(\"uid\")\n\tif uid == nil {\n\t\treturn nil\n\t}\n\tid, ok := uid.(int64)\n\tif !ok {\n\t\treturn nil\n\t}\n\n\t// Get user object\n\tuser, err := models.GetUserByID(id)\n\tif err != nil {\n\t\tif !models.IsErrUserNotExist(err) {\n\t\t\tlog.Error(\"GetUserById: %v\", err)\n\t\t}\n\t\treturn nil\n\t}\n\treturn user\n}",
"func getSession(ctx context.Context, id string) (middleware.Session, error) {\n\tsessionUUID, err := uuid.FromString(id)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tsession, err := loader.Loader.GetSession(ctx, sessionUUID)\n\n\treturn Session{Row: session}, err\n}",
"func getUser(req *http.Request) *grepbook.User {\n\tif rv := context.Get(req, UserKeyName); rv != nil {\n\t\tres := rv.(*grepbook.User)\n\t\treturn res\n\t}\n\treturn nil\n}",
"func (s *RestServer) getProfileFromSessionAndDb(r *http.Request) (*domainuser.Profile, string, error) {\n\tuserId, err := s.getUserIdFromSessionAndDb(r)\n\tif err != nil {\n\t\treturn nil, \"\", fmt.Errorf(\"getUserIdFromSessionAndDb() failed: %v\", err)\n\t}\n\n\tif len(userId) == 0 {\n\t\t// Not an error.\n\t\t// It's just not in the session cookie.\n\t\treturn nil, \"\", nil\n\t}\n\n\tc := r.Context()\n\tprofile, err := s.userDataClient.GetUserProfileById(c, userId)\n\tif err != nil {\n\t\treturn nil, \"\", fmt.Errorf(\"GetUserProfileById() failed: %v\", err)\n\t}\n\n\treturn profile, userId, nil\n}",
"func Session(c *gin.Context) {\n\tuser, err := shared.GetUserAuth(c)\n\n\tif err {\n\t\tc.JSON(http.StatusBadRequest, gin.H{\"success\": false})\n\t\treturn\n\t}\n\n\tc.JSON(http.StatusOK, gin.H{\"success\": true, \"user\": user})\n}",
"func GetUser(context *gin.Context) {\n\t//TODO: implement me uwu\n\tJwtCtx := login.ExtractClaims(context)\n\t// identity claim is the username in the database\n\tusername := JwtCtx[jwt.IdentityKey]\n\tuserData := database.GetUser(username.(string))\n\tpayload := models.UserInfoPayload{\n\t\tUserCommon: userData.UserCommon,\n\t}\n\tcontext.JSON(http.StatusOK, payload)\n}",
"func (db DB) GetUser(login string) (*User, error) {\n\ts := db.session.Copy()\n\tdefer s.Close()\n\tvar u User\n\terr := s.DB(app).C(\"users\").Find(bson.M{\"login\": login}).One(&u)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &u, nil\n}",
"func (l *RemoteProvider) GetUserDetails(req *http.Request) (*User, error) {\n\ttoken, err := l.GetToken(req)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tuser, err := l.fetchUserDetails(token)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn user, nil\n}",
"func (a Authorizer) GetUser(u string, req *http.Request) (user models.User, e error) {\n\t//if username is me, get the currently loggedin user\n\tif u == authprovider.CurrentUser {\n\t\tsession, err := skyring.Store.Get(req, \"session-key\")\n\t\tif err != nil {\n\t\t\tlogger.Get().Error(\"Error getting the session. error: %v\", err)\n\t\t\treturn user, err\n\t\t}\n\t\tif val, ok := session.Values[\"username\"]; ok {\n\t\t\tu = val.(string)\n\t\t} else {\n\t\t\tlogger.Get().Error(\"Unable to identify the user from session\")\n\t\t\treturn user, mkerror(\"Unable to identify the user from session\")\n\t\t}\n\t}\n\tuser, e = a.userDao.User(u)\n\tif e != nil {\n\t\tlogger.Get().Error(\"Error retrieving the user: %s. error: %v\", u, e)\n\t\treturn user, e\n\t}\n\treturn user, nil\n}",
"func (r *redisSessionRegistry) GetUserSession(userId string) (string, string, error) {\n\tredisKey := r.getRegistryKey(userId)\n\tvar sessionRegistry registryObject\n\tif err := redisUtil.GetObject(redisKey, &sessionRegistry); err != nil {\n\t\tLog.Error(\"Failed to Get User Session Registry\", With(\"userId\", userId), WithError(err))\n\t\treturn \"\", \"\", err\n\t}\n\tif sessionRegistry.SessionId == \"\" {\n\t\tLog.Debug(\"No User Session Registry Found\", With(\"userId\", userId))\n\t\treturn \"\", \"\", nil\n\t}\n\treturn sessionRegistry.SessionId, sessionRegistry.ClientId, nil\n}",
"func (this *SessionStorage) GetSession(w http.ResponseWriter, req *http.Request) (*Session,error) {\n //look for session cookie\n sCookie,err := req.Cookie(\"session\")\n var sessionId uint64\n this.mutex.Lock()\n defer this.mutex.Unlock()\n if(err != nil) {\n //if there's no session associated\n return this.CreateSession(w),nil\n } else {\n //if a session already exists\n sessionId,err = strconv.ParseUint(sCookie.Value,10,64)\n if(err != nil) {\n //if conversion failed\n return nil,err;\n }\n }\n session,ok := this.sessions[sessionId]\n if !ok {\n return this.CreateSession(w),nil\n }\n session.lastAccessed = time.Now()\n return session,nil\n}",
"func GetLoggedUser(c *gin.Context) data.User {\n\tif c.Keys == nil {\n\t\treturn data.User{}\n\t}\n\n\tu, ok := c.Keys[\"user\"].(data.User)\n\n\tif !ok {\n\t\treturn data.User{}\n\t}\n\n\treturn u\n}",
"func (client BastionClient) getSession(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {\n\thttpRequest, err := request.HTTPRequest(http.MethodGet, \"/sessions/{sessionId}\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar response GetSessionResponse\n\tvar httpResponse *http.Response\n\thttpResponse, err = client.Call(ctx, &httpRequest)\n\tdefer common.CloseBodyIfValid(httpResponse)\n\tresponse.RawResponse = httpResponse\n\tif err != nil {\n\t\treturn response, err\n\t}\n\n\terr = common.UnmarshalResponse(httpResponse, &response)\n\treturn response, err\n}",
"func GetUserSessionHandleError(w http.ResponseWriter, r *http.Request) *UserSessionData {\n\tsession := UserSessionData{}\n\tbHasSession, _ := webber.GetSession(r, &session)\n\tif ( bHasSession ) {\n\t\treturn &session\n\t} else {\n\t\thttp.Error(w, \"NoSession\", http.StatusUnauthorized)\n\t\treturn nil\n\t}\n}",
"func readSession(key string, w http.ResponseWriter, r *http.Request) (interface{}, error) {\n\tsession, err := store.Get(r, \"user-session\")\n\n\tsession.Options.MaxAge = 3600 // one hour\n\terr = session.Save(r, w)\n\n\treturn session.Values[key], err\n}",
"func (pder *MemSessionProvider) GetSession(sid string) (Session, error) {\r\n\tpder.lock.RLock()\r\n\tdefer pder.lock.RUnlock()\r\n\r\n\tif element, ok := pder.sessions[sid]; ok {\r\n\t\tsw := element.Value.(Session)\r\n\t\tif sw == nil {\r\n\t\t\treturn nil, nil\r\n\t\t}\r\n\t\tattributes := sw.Attributes().(*MemSessionAttributes)\r\n\t\tif attributes != nil {\r\n\t\t\tattributes.timeAccessed = time.Now()\r\n\t\t}\r\n\t\treturn sw, nil\r\n\t} else {\r\n\t\treturn nil, nil\r\n\t}\r\n}",
"func GetUserFromContext(r *http.Request) (*user.User, error) {\n\t//Get the authenticated user.\n\tif authenticated, ok := r.Context().Value(authUserAuthenticatedKey).(bool); ok {\n\t\tif !authenticated {\n\t\t\treturn nil, ErrUserNotInContext\n\t\t}\n\t} else {\n\t\treturn nil, ErrUserNotInContext\n\t}\n\tsesSt, ok := r.Context().Value(authSessionStateKey).(*SessionState)\n\tif sesSt == nil || !ok || sesSt.User == nil {\n\t\treturn nil, ErrUserNotInContext\n\t}\n\treturn sesSt.User, nil\n}",
"func (handler *IdentityProviderHandler) GetSession(sessionID string, userAgent string, remoteAddr string) (r *services.Session, err error) {\n\thandler.log.Printf(\"getSession(%v, %v, %v)\", sessionID, userAgent, remoteAddr)\n\n\tsession, err := handler.SessionInteractor.Find(sessionID)\n\tif err != nil {\n\t\te := err.(*errs.Error)\n\t\treturn nil, errorToServiceError(e)\n\t}\n\n\tif !session.Domain.Enabled || !session.User.Enabled {\n\t\te := services.NewUnauthorizedError()\n\t\te.Msg = \"Domain and/or user disabled\"\n\t\treturn nil, e\n\t}\n\n\tif session.UserAgent != userAgent || session.RemoteAddr != remoteAddr {\n\t\te := services.NewNotFoundError()\n\t\te.Msg = \"Session not found\"\n\t\treturn nil, e\n\t}\n\n\tif session.IsExpired() {\n\t\te := services.NewUnauthorizedError()\n\t\te.Msg = \"Session expired\"\n\t\treturn nil, e\n\t}\n\n\terr = handler.SessionInteractor.Retain(*session)\n\tif err != nil {\n\t\te := err.(*errs.Error)\n\t\treturn nil, errorToServiceError(e)\n\t}\n\n\treturn sessionToResponse(session), nil\n}",
"func GetSession(res http.ResponseWriter, req *http.Request) (string, bool) {\n\tvar name string\n\tvar success bool\n\tcorrectlyLogIn := false\n\tuuid, ok := cookiesManager.GetCookieValue(req, CookieName)\n\tif ok {\n\t\tlog.Debugf(\"Found cookie. Value: %s\", uuid)\n\t\tname, success = authClient.GetRequest(uuid)\n\t\tif name != \"\" && success {\n\t\t\tlog.Debugf(\"Found session for key: %s with value: %s\", uuid, name)\n\t\t\tcorrectlyLogIn = true\n\t\t} else {\n\t\t\tlog.Debugf(\"No session found for key; %s\", uuid)\n\t\t\tcookiesManager.RemoveCookie(res, CookieName)\n\t\t}\n\t}\n\n\tlog.Debug(\"Cookie is missing\")\n\treturn name, correctlyLogIn\n}",
"func (_UserCrud *UserCrudSession) GetUser(userAddress common.Address) (struct {\n\tUserEmail string\n\tUserAge *big.Int\n\tIndex *big.Int\n}, error) {\n\treturn _UserCrud.Contract.GetUser(&_UserCrud.CallOpts, userAddress)\n}",
"func (s *RestServer) getLoginInfoFromSessionAndDb(r *http.Request) (*restuser.LoginInfo, string, error) {\n\tvar loginInfo restuser.LoginInfo\n\n\tprofile, userId, err := s.getProfileFromSessionAndDb(r)\n\tif err != nil {\n\t\tloginInfo.LoggedIn = false\n\t\tloginInfo.ErrorMessage = fmt.Sprintf(\"not logged in (%v)\", err)\n\t}\n\n\ts.updateLoginInfoFromProfile(&loginInfo, profile)\n\n\treturn &loginInfo, userId, err\n}",
"func getLoggedIn(r *http.Request) users.User {\n\tc, err := r.Cookie(userCookieName)\n\tif err != nil {\n\t\treturn users.User{}\n\t}\n\treturn users.GetUser(c.Value)\n}",
"func (a Authorizer) GetUser(u string, req *http.Request) (user models.User, e error) {\n\t// This should search and fetch the user name based on the given value\n\t// and can also check whether the available users are already imported\n\t// into the database or not.\n\n\t//if username is me, get the currently loggedin user\n\tif u == authprovider.CurrentUser {\n\t\tsession, err := skyring.Store.Get(req, \"session-key\")\n\t\tif err != nil {\n\t\t\tlogger.Get().Error(\"Error getting the session for user: %s. error: %v\", u, err)\n\t\t\treturn user, err\n\t\t}\n\t\tif val, ok := session.Values[\"username\"]; ok {\n\t\t\tu = val.(string)\n\t\t} else {\n\t\t\tlogger.Get().Error(\"Unable to identify the user: %s from session\", u)\n\t\t\treturn user, mkerror(\"Unable to identify the user from session\")\n\t\t}\n\t}\n\tuser, e = a.userDao.User(u)\n\tif e != nil {\n\t\tlogger.Get().Error(\"Error retrieving the user: %s. error: %v\", user, e)\n\t\treturn user, e\n\t}\n\treturn user, nil\n}",
"func GetLoggedIn(w http.ResponseWriter, r *http.Request, db *sqlx.DB) {\n\tvar err error\n\n\tsession, err := store.Get(r, \"auth\")\n\tif err != nil {\n\t\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\t\tw.WriteHeader(http.StatusOK)\n\n\t\tif err := json.NewEncoder(w).Encode(\"access denied\"); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t} else {\n\t\t// Convert our session data into an instance of User\n\t\tuser := User{}\n\t\tuser, _ = session.Values[\"user\"].(User)\n\n\t\tif user.Username != \"\" && user.AccessLevel == \"admin\" {\n\t\t\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\t\t\tw.WriteHeader(http.StatusOK)\n\n\t\t\tif err := json.NewEncoder(w).Encode(user); err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t} else {\n\t\t\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\t\t\tw.WriteHeader(http.StatusOK)\n\n\t\t\tif err := json.NewEncoder(w).Encode(\"access denied\"); err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t}\n\t}\n\n\tlogRequest(r)\n}",
"func GetUser(c *fiber.Ctx) error {\n\tclaims, err := utils.ExtractTokenMetadata(c)\n\tusername := claims.Username\n\t// check if the user requested is equel to JWT user\n\tif username != c.Params(\"user_name\") {\n\t\treturn c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{\n\t\t\t\"error\": true,\n\t\t\t\"msg\": \"Forbidden, requested user is different from JWT user\",\n\t\t})\n\t}\n\n\tuser, err := queries.GetUserByUsername(username)\n\tif err != nil {\n\t\treturn c.Status(400).JSON(fiber.Map{\n\t\t\t\"error\": true,\n\t\t\t\"msg\": err.Error(),\n\t\t})\n\t}\n\tif user == nil {\n\t\treturn c.Status(400).JSON(fiber.Map{\n\t\t\t\"error\": true,\n\t\t\t\"msg\": \"Error, apparently we could not find you on the database\",\n\t\t})\n\t}\n\ttype user_simple struct {\n\t\tUsername string `json:\"Username\"`\n\t\tEmail string `json:\"Email\"`\n\t\tCreatedAt time.Time `json:\"CreatedAt\"`\n\t}\n\n\tvar my_user_simple user_simple\n\tmy_user_simple.Username = user.Username\n\tmy_user_simple.Email = user.Email\n\tmy_user_simple.CreatedAt = user.CreatedAt\n\n\treturn c.Status(200).JSON(user) //my_user_simple)\n}",
"func GetSessionKeyUser(sessionKey string, clientCode string, client HttpClient) (*SessionKeyUser, error) {\n\trequestUrl := fmt.Sprintf(common.BaseUrl, clientCode)\n\tparams := url.Values{}\n\tparams.Add(\"sessionKey\", sessionKey)\n\tparams.Add(\"doNotGenerateIdentityToken\", \"1\")\n\tparams.Add(\"request\", \"getSessionKeyUser\")\n\tparams.Add(\"clientCode\", clientCode)\n\n\treq, err := http.NewRequest(\"POST\", requestUrl, nil)\n\tif err != nil {\n\t\treturn nil, sharedCommon.NewFromError(\"failed to build HTTP request\", err, 0)\n\t}\n\n\treq.URL.RawQuery = params.Encode()\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tresp, err := client.Do(req)\n\tif err != nil {\n\t\treturn nil, sharedCommon.NewFromError(\"failed to call getSessionKeyUser request\", err, 0)\n\t}\n\tdefer resp.Body.Close()\n\n\tif resp.StatusCode < 200 || resp.StatusCode > 299 {\n\t\tvar body []byte\n\t\tif resp.Body != nil {\n\t\t\tbody, err = ioutil.ReadAll(resp.Body)\n\t\t\tif err != nil {\n\t\t\t\tbody = []byte{}\n\t\t\t}\n\t\t}\n\n\t\treturn nil, fmt.Errorf(\"wrong response status code: %d, body: %s\", resp.StatusCode, string(body))\n\t}\n\n\tres := &SessionKeyUserResponse{}\n\tif err := json.NewDecoder(resp.Body).Decode(&res); err != nil {\n\t\treturn nil, sharedCommon.NewFromError(\"failed to decode SessionKeyUserResponse\", err, 0)\n\t}\n\tif len(res.Records) < 1 {\n\t\treturn nil, sharedCommon.NewFromError(\"getSessionKeyUser: no records in response\", nil, 0)\n\t}\n\treturn &res.Records[0], nil\n}",
"func (token SessionToken) GetSession() (*Session, error) {\n\tLoadDb()\n\tstmt, err := db.Prepare(\"select username, expires from session where token = ? and expires > ? and deleted is null\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tstmt.Bind(token, time.Now())\n\trows, res, err := stmt.Exec()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif len(rows) == 0 {\n\t\treturn nil, nil\n\t}\n\n\tname := rows[0].Str(res.Map(\"username\"))\n\tuser := &User{name}\n\n\texpires := rows[0].Localtime(res.Map(\"expires\"))\n\tsession := &Session{token, expires, user}\n\n\treturn session, nil\n}",
"func (client *ShorelineClient) GetUser(userID, token string) (*UserData, error) {\n\thost := client.getHost()\n\tif host == nil {\n\t\treturn nil, errors.New(\"No known user-api hosts.\")\n\t}\n\n\thost.Path = path.Join(host.Path, \"user\", userID)\n\n\treq, _ := http.NewRequest(\"GET\", host.String(), nil)\n\treq.Header.Add(\"x-tidepool-session-token\", token)\n\n\tres, err := client.httpClient.Do(req)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"Failure to get a user\")\n\t}\n\tdefer res.Body.Close()\n\n\tswitch res.StatusCode {\n\tcase http.StatusOK:\n\t\tud, err := extractUserData(res.Body)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn ud, nil\n\tcase http.StatusNoContent:\n\t\treturn &UserData{}, nil\n\tdefault:\n\t\treturn nil, &status.StatusError{\n\t\t\tstatus.NewStatusf(res.StatusCode, \"Unknown response code from service[%s]\", req.URL)}\n\t}\n}",
"func GetSessionByUserID(session *Session, userID int64) error {\n\tdb := GetDB()\n\n\tif err := db.Where(Session{UserID: userID}).First(session).Error; err != nil {\n\t\tif err == gorm.ErrRecordNotFound {\n\t\t\treturn err\n\t\t}\n\t\tlog.WithFields(logrus.Fields{\n\t\t\t\"error\": err,\n\t\t}).Warn(\"Failed get session associated to user ID\")\n\t}\n\treturn nil\n}",
"func (ctx *Context) Session(key interface{}) interface{} {\r\n\treturn ctx.CruSession.Get(key)\r\n}",
"func (sc *SessionContext) GetSession() (*sessions.Session, error) {\n\tif sc.request == nil || sc.response == nil {\n\t\treturn nil, errors.New(\"Runtime tried to sccess a session before this SessionContext was fully initialized.\")\n\t}\n\n\t//TODO: Lazy load session here.\n\tsession, _ := sc.store.Get(sc.request, \"user\")\n\n\treturn session, nil\n}",
"func GetSessionMember(r *http.Request) model.Auth {\n\tstore := ConnectToRedis()\n\tdefer store.Close()\n\t//get session info\n\tsession, _ := store.Get(r, \"vista_member\")\n\tval := session.Values[\"member\"]\n\tmember, _ := val.(model.Auth)\n\treturn member\n}",
"func (m *User) GetUser(id int64) (interface{}, error) {\n\tm.ID = id\n\te := m.Read()\n\treturn m, e\n}",
"func (m *User) GetUser(id int64) (interface{}, error) {\n\tm.ID = id\n\te := m.Read()\n\treturn m, e\n}",
"func (s *ServerConnection) SessionWhoAmI() (*UserDetails, error) {\n\tdata, err := s.CallRaw(\"Session.whoAmI\", nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tuserDetails := struct {\n\t\tResult struct {\n\t\t\tUserDetails `json:\"userDetails\"`\n\t\t} `json:\"result\"`\n\t}{}\n\terr = json.Unmarshal(data, &userDetails)\n\treturn &userDetails.Result.UserDetails, err\n}",
"func GetSession(ctx appengine.Context) (session *Session, err error) {\n\treqId := appengine.RequestID(ctx)\n\tsession, ok := authenticatedSessions[reqId]\n\tif ok {\n\t\treturn\n\t}\n\treturn nil, Unauthenticated\n}",
"func luaGetSession(L *lua.LState, sess *core.MilterSession) lua.LValue {\n\tud := L.NewUserData()\n\tud.Value = sess\n\tL.SetMetatable(ud, L.GetTypeMetatable(\"session\"))\n\tL.Push(ud)\n\n\treturn ud\n}",
"func GetSession(w http.ResponseWriter, r *http.Request) {\n\tcookie, err := r.Cookie(\"profile\")\n\tif err != nil {\n\t\tfmt.Println(\"Cookie not set\")\n\t\treturn\n\t}\n\n\tdecoded, err := base64.StdEncoding.DecodeString(cookie.Value)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tprofile := ECBDecrypt(key, decoded)\n\tstripped := StripPadding(profile)\n\tw.Write(stripped)\n}",
"func getSession(r *http.Request) (*sessions.Session, error) {\n\tsession, err := store.Get(r, sessionName)\n\tif err != nil {\n\t\tif session.IsNew {\n\t\t\tglog.V(1).Infof(\"ignoring initial session fetch error since session IsNew: %v\\n\", err)\n\t\t} else {\n\t\t\treturn nil, fmt.Errorf(\"error fetching session: %v\", err)\n\t\t}\n\t}\n\treturn session, nil\n}",
"func GetUserDetails(username string) (*user.User, error) {\n\tvar u *user.User\n\tu, err := user.Lookup(username)\n\tif err != nil {\n\t\treturn u, err\n\t}\n\n\treturn u, nil\n}",
"func (s *Sqlite) GetUser(user string) (*gogios.User, error) {\n\tdata := gogios.User{}\n\tdb, err := s.openConnection()\n\tif err != nil {\n\t\treturn &data, err\n\t}\n\tdefer db.Close()\n\n\tif err := db.Where(\"Username = ?\", user).First(&data).Error; err != nil {\n\t\tfmt.Println(&data)\n\t\treturn &data, err\n\t}\n\n\treturn &data, nil\n}",
"func getSession(ctx context.Context) *session.Session {\n\treturn ctx.Value(sessKey{}).(*session.Session)\n}",
"func (_UserCrud *UserCrudCallerSession) GetUser(userAddress common.Address) (struct {\n\tUserEmail string\n\tUserAge *big.Int\n\tIndex *big.Int\n}, error) {\n\treturn _UserCrud.Contract.GetUser(&_UserCrud.CallOpts, userAddress)\n}",
"func GetFromSession(key string, req *http.Request) (string, error) {\n\tsession, _ := Store.Get(req, SessionName)\n\tvalue, err := getSessionValue(session, key)\n\tif err != nil {\n\t\treturn \"\", errors.New(\"could not find a matching session for this request\")\n\t}\n\n\treturn value, nil\n}",
"func (m *SecurityActionState) GetUser()(*string) {\n val, err := m.GetBackingStore().Get(\"user\")\n if err != nil {\n panic(err)\n }\n if val != nil {\n return val.(*string)\n }\n return nil\n}",
"func (service Service) GetUser(context echo.Context) User {\n\tid := context.Get(\"id\").(int)\n\tuser := context.Get(\"username\").(string)\n\temail := context.Get(\"email\").(string)\n\trole := context.Get(\"role\").(AccessRole)\n\n\treturn User{\n\t\tID: id,\n\t\tUsername: user,\n\t\tEmail: email,\n\t\tRole: role,\n\t}\n}",
"func (r *RouteHandler) getUserProfileInfo(c echo.Context) (*LoggedInUserData, error) {\n\tloggedIn := c.Get(custommiddleware.UserLoggedIn)\n\n\tloggedInBool, ok := loggedIn.(bool)\n\tif !ok || !loggedInBool {\n\t\treturn nil, errors.New(\"User is not logged in\")\n\t}\n\n\tl := LoggedInUserData{}\n\n\tid := c.Get(custommiddleware.UserIDKey)\n\n\tidInt, ok := id.(int64)\n\tif !ok {\n\t\tlog.Error(\"Could not assert id to int64\")\n\t\treturn nil, errors.New(\"could not assert id to int64\")\n\t}\n\n\tgetUserReq := userproto.GetUserFromIDRequest{\n\t\tUserID: idInt,\n\t}\n\n\tuserResp, err := r.u.GetUserFromID(context.TODO(), &getUserReq)\n\tif err != nil {\n\t\tlog.Error(err)\n\t\treturn nil, err\n\t}\n\n\tl.Username = userResp.Username\n\t// l.ProfilePictureURL = userResp. // TODO\n\tl.Rank = int32(userResp.Rank)\n\tl.Email = userResp.Email\n\tl.UserID = idInt\n\treturn &l, nil\n}",
"func GetUser(id bson.ObjectId) User {\n\tsession, _ := mgo.Dial(\"127.0.0.1\")\n\tdefer session.Close()\n\tsession.SetMode(mgo.Monotonic, true)\n\tdb := session.DB(\"reimburse-me\").C(\"user\")\n\tvar result User\n\tdb.FindId(id).One(&result)\n\tresult.Token = \"\"\n\treturn result\n}",
"func Userget(r *http.Request) (models.User, error) {\n\t//id := context.Get(r, \"UserID\")\n\t//u := context.Get(r, \"User\")\n\n\tu := r.Context().Value(\"User\")\n\t// log.Println(u)\n\t// if !ok {\n\t// \treturn models.User{}, errors.New(\"not a value \")\n\t// }\n\t// return *u, nil\n\t//\n\tuser := models.User{}\n\tif u != nil {\n\t\terr := mapstructure.Decode(u, &user)\n\n\t\tif err != nil {\n\t\t\treturn user, err\n\t\t}\n\t\treturn user, nil\n\t}\n\treturn user, nil\n}",
"func GetUser(ctx *gin.Context, req *userparam.GetRequest) (*userparam.GetResponse, error) {\n\tres := userparam.NewGetResponse()\n\tif err := res.Convert(me.Get(ctx)); err != nil {\n\t\treturn nil, err\n\t}\n\treturn res, nil\n}",
"func (c cognitoClient) GetUserDetails(ctx context.Context, accessToken string) (*model.User, error) {\n\tlogger := log.With(c.logger, \"method\", \"GetUserDetails\")\n\n\tui := &cognito.GetUserInput{\n\t\tAccessToken: aws.String(accessToken),\n\t}\n\toutput, err := c.cognitoClient.GetUser(ui)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"Failed to get user\")\n\t}\n\n\tuser := &model.User{\n\t\tUsername: aws.StringValue(output.Username),\n\t}\n\n\t// Put user attributes into user model\n\tfor _, attr := range output.UserAttributes {\n\t\tswitch aws.StringValue(attr.Name) {\n\t\tcase \"phone_number\":\n\t\t\tuser.PhoneNumber = aws.StringValue(attr.Value)\n\t\tcase \"email\":\n\t\t\tuser.Email = aws.StringValue(attr.Value)\n\t\tcase \"email_verified\":\n\t\t\tconfirmed, err := strconv.ParseBool(aws.StringValue(attr.Value))\n\t\t\tif err != nil {\n\t\t\t\tuser.Confirmed = false\n\t\t\t}\n\t\t\tuser.Confirmed = confirmed\n\t\t}\n\t}\n\n\tlogger.Log(\"GetUserDetails output:\", output)\n\treturn user, nil\n}",
"func (kc KeycloakContext) GetUser(username Username) (gocloak.User, error) {\n\tfor _, u := range kc.Users {\n\t\tif u != nil && u.Username != nil && strings.EqualFold(*u.Username, string(username)) {\n\t\t\treturn *u, nil\n\t\t}\n\t}\n\treturn gocloak.User{},\n\t\tfmt.Errorf(\n\t\t\t\"l'utilisateur '%s' n'existe pas dans le contexte Keycloak\",\n\t\t\tusername,\n\t\t)\n}",
"func GetSession(h httprouter.Handle) httprouter.Handle {\n\treturn func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {\n\n\t\tcookie, err := r.Cookie(\"kRtrima\") //Grab the cookie from the header\n\t\tif err != nil {\n\t\t\tswitch err {\n\t\t\tcase http.ErrNoCookie:\n\t\t\t\tLogger.Println(\"No Cookie was Found with Name kRtrima\")\n\t\t\t\t//remove the user ID from the session\n\t\t\t\tr.Header.Del(\"User\")\n\t\t\t\thttp.Redirect(w, r, \"/login\", 302)\n\t\t\t\treturn\n\t\t\tdefault:\n\t\t\t\tLogger.Println(\"No Cookie was Found with Name kRtrima\")\n\t\t\t\t//remove the user ID from the session\n\t\t\t\tr.Header.Del(\"User\")\n\t\t\t\thttp.Redirect(w, r, \"/login\", 302)\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\tLogger.Println(\"Cookie was Found with Name kRtrima\")\n\n\t\t// Create a BSON ObjectID by passing string to ObjectIDFromHex() method\n\t\tdocID, err := primitive.ObjectIDFromHex(cookie.Value)\n\t\tif err != nil {\n\t\t\tLogger.Printf(\"Cannot Convert %T type to object id\", cookie.Value)\n\t\t\tLogger.Println(err)\n\t\t}\n\n\t\tvar SP m.Session\n\t\tif err = m.Sessions.Find(\"_id\", docID, &SP); err != nil {\n\t\t\tLogger.Println(\"Cannot found a valid User Session!!\")\n\t\t\t//session is missing, returns with error code 403 Unauthorized\n\t\t\t//remove the user ID from the session\n\t\t\tr.Header.Del(\"User\")\n\t\t\thttp.Redirect(w, r, \"/login\", 302)\n\t\t\treturn\n\t\t}\n\n\t\tLogger.Println(\"Valid User Session was Found!!\")\n\n\t\tvar UP m.LogInUser\n\n\t\terr = m.Users.Find(\"salt\", SP.Salt, &UP)\n\t\tif err != nil {\n\t\t\tLogger.Println(\"Cannot Find user with salt\")\n\t\t\t//Delete the old session\n\t\t\tif _, err := m.Sessions.DeleteItem(SP.ID); err != nil {\n\t\t\t\tLogger.Printf(\"Not able to Delete the session with ID: %v\", SP.ID)\n\t\t\t\t//remove the user ID from the session\n\t\t\t\tr.Header.Del(\"User\")\n\t\t\t\thttp.Redirect(w, r, \"/login\", 302)\n\t\t\t\treturn\n\t\t\t}\n\t\t\t// reset session and login user\n\t\t\t//remove the user ID from the session\n\t\t\tr.Header.Del(\"User\")\n\t\t\thttp.Redirect(w, r, \"/register\", 302)\n\t\t\treturn\n\t\t}\n\n\t\tvar LIP m.LogInUser\n\n\t\terr = m.GetLogInUser(\"User\", &LIP, r)\n\t\tif err != nil {\n\t\t\tm.AddToHeader(\"User\", UP, r)\n\t\t} else if UP.Email != LIP.Email {\n\t\t\t//remove the user ID from the session\n\t\t\tr.Header.Del(\"User\")\n\t\t\tm.AddToHeader(\"User\", UP, r)\n\t\t}\n\n\t\th(w, r, ps)\n\t}\n}",
"func (a *Auth) Session(w http.ResponseWriter, r *http.Request) {\n\tuser := a.userstate.Username(r)\n\temail, err := a.userstate.Email(user)\n\tif err != nil {\n\t\tutil.Error(\"session: %s\", err.Error())\n\t}\n\tutil.OKWith(w, r, map[string]string{\n\t\t\"serialNumber\": user,\n\t\t\"emailAddress\": email,\n\t})\n}",
"func (s *RestServer) getUserIdFromSessionAndDb(r *http.Request) (string, error) {\n\tuserId, token, err := s.userSessionStore.GetProfileFromSession(r)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"GetProfileFromSession() failed: %v\", err)\n\t}\n\n\tif !token.Valid() {\n\t\t// TODO: Revalidate it.\n\n\t\t// This is not an error\n\t\t// (it is normal for a token to expire.)\n\t\t// (the user is now not logged in.)\n\t\treturn \"\", nil\n\t}\n\n\treturn userId, nil\n}",
"func GetUser(r *http.Request) string {\n\tres, _ := noodle.Value(r, userKey).(string)\n\treturn res\n}",
"func getSessionFromRequest(r *http.Request) *Session {\n\tkey := getSession(r)\n\ts := getSessionByKey(key)\n\n\tif s != nil && s.ID != 0 {\n\t\treturn s\n\t}\n\treturn nil\n}",
"func GetUser(c *gin.Context) {}",
"func (config *CrocConfig) GetUser(userID int) (User, error) {\n\tvar user User\n\tendpoint := fmt.Sprintf(\"users/%d\", userID)\n\n\t// get json bytes from the panel.\n\tubytes, err := config.queryPanelAPI(endpoint, \"get\", nil)\n\tif err != nil {\n\t\treturn user, err\n\t}\n\n\t// Unmarshal the bytes to a usable struct.\n\terr = json.Unmarshal(ubytes, &user)\n\tif err != nil {\n\t\treturn user, err\n\t}\n\n\treturn user, nil\n}",
"func (s *Service) GetUser(c context.Context, username string) (usr *user.User, err error) {\n\tusr = &user.User{}\n\terr = s.DB.Where(\"username = ?\", username).First(usr).Error\n\tif err == gorm.ErrRecordNotFound {\n\t\tusr.UserName = username\n\t\tusr.NickName = username\n\t\terr = s.DB.Create(usr).Error\n\t}\n\tif err != nil {\n\t\tlog.Error(\"apmSvc.GetUser error(%v)\", err)\n\t\treturn\n\t}\n\ts.ranksCache.Lock()\n\tif s.ranksCache.Map[username] != nil {\n\t\tusr.AvatarURL = s.ranksCache.Map[username].AvatarURL\n\t} else {\n\t\tusr.AvatarURL, _ = s.dao.GitLabFace(c, username)\n\t}\n\ts.ranksCache.Unlock()\n\treturn\n}",
"func GetSessionUserName(ctx context.Context, sessionToken string) (string, error) {\n\tconn, err := ODIMService.Client(AccountSession)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(clientConnectionErrMsg, err)\n\t}\n\tdefer conn.Close()\n\tasService := sessionproto.NewSessionClient(conn)\n\tctxt := common.CreateNewRequestContext(ctx)\n\tctxt = common.CreateMetadata(ctxt)\n\tresponse, err := asService.GetSessionUserName(\n\t\tctxt,\n\t\t&sessionproto.SessionRequest{\n\t\t\tSessionToken: sessionToken,\n\t\t},\n\t)\n\tif err != nil && response == nil {\n\t\treturn \"\", fmt.Errorf(\"something went wrong with rpc call: \" + err.Error())\n\t}\n\treturn response.UserName, err\n}",
"func GetSession(token string) (Session, *errors.Error) {\n\tvar session Session\n\tconnPool, err := GetDBConnectionFunc(sessionStore)\n\tif err != nil {\n\t\treturn session, errors.PackError(err.ErrNo(), \"error while trying to connecting to DB: \", err.Error())\n\t}\n\tsessionData, err := connPool.Read(\"session\", token)\n\tif err != nil {\n\t\treturn session, errors.PackError(err.ErrNo(), \"error while trying to get the session from DB: \", err.Error())\n\t}\n\tif jerr := json.Unmarshal([]byte(sessionData), &session); jerr != nil {\n\t\treturn session, errors.PackError(errors.UndefinedErrorType, \"error while trying to unmarshal session data: \", jerr)\n\t}\n\treturn session, nil\n}",
"func (t *SessionManager) GetSession(session_uuid string) (session *Session, err error) {\n\terr = nil\n\n\t// If it wasn't loaded into the cache, check if it's in the database.\n\tin_db, uid, expires, err := t.get_session_from_db(session_uuid)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif in_db {\n\t\t// Load the session back into the cache and return it\n\t\tUserSession := new(Session)\n\t\tUserSession.User, err = GetUserById(t.db, uid)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tUserSession.Expires = expires\n\t\treturn UserSession, nil\n\t}\n\t// If it isn't in cache or DB, return false.\n\treturn nil, errors.New(\"Could not locate session in DB\")\n}",
"func (c *Client) GetUser(login string) (User, error) {\n\tlogger := zerolog.New(os.Stdout).\n\t\tWith().Timestamp().Str(\"service\", \"dice\").Logger().\n\t\tOutput(zerolog.ConsoleWriter{Out: os.Stderr})\n\tvar ret User\n\turi := viper.GetString(\"github_api\") + \"users/\" + login\n\tlogger.Debug().Str(\"uri\", uri).Msg(\"github client called for user\")\n\tresp, err := c.doGet(uri, nil)\n\tif err != nil {\n\t\treturn ret, fmt.Errorf(\"error performing request: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn ret, errorFromResponse(resp)\n\t}\n\tbody, err := ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\treturn ret, err\n\t}\n\tjsonErr := json.Unmarshal(body, &ret)\n\tif jsonErr != nil {\n\t\treturn ret, jsonErr\n\t}\n\treturn ret, nil\n}",
"func (s *Store) GetUser(ctx context.Context, name string) (user *User, err error) {\n\tif name, err = CheckName(name); err != nil {\n\t\treturn nil, err\n\t}\n\tuser, err = s.rawUser(ctx, name)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn secureUser(user), nil\n}",
"func (app *application) getUser(w http.ResponseWriter, r *http.Request) {\n\tid, err := uuid.Parse(r.URL.Query().Get(\":uuid\"))\n\tif err != nil || id == uuid.Nil {\n\t\tapp.notFound(w)\n\t\treturn\n\t}\n\n\tuser, err := app.users.GetByUUID(id)\n\n\tif err == models.ErrNoRecord {\n\t\tapp.notFound(w)\n\t\treturn\n\t} else if err != nil {\n\t\tapp.serverError(w, err)\n\t\treturn\n\t}\n\n\tapp.jsonResponse(w, user)\n}",
"func GetSessionValue(w http.ResponseWriter, r *http.Request) string {\n\tcookie, err := r.Cookie(\"session\")\n\tif err == nil {\n\t\treturn cookie.Value\n\t}\n\treturn \"\"\n}",
"func GetUserName(w http.ResponseWriter, r *http.Request) string {\n\tcookie, err := r.Cookie(\"session\")\n\tif err == nil {\n\t\tif s, ok := gs.sessions[cookie.Value]; ok {\n\t\t\treturn s.userName\n\t\t}\n\t}\n\treturn \"\"\n}",
"func (p *UserPool) GetUser(id string) *store.User {\n\treturn p.users[id]\n}",
"func GetUser(id int) (components.User, error) {\n\treturn getUser(id)\n}",
"func (p *UserStoreClient) GetUser(ctx context.Context, authenticationToken string) (r *User, err error) {\n var _args13 UserStoreGetUserArgs\n _args13.AuthenticationToken = authenticationToken\n var _result14 UserStoreGetUserResult\n if err = p.Client_().Call(ctx, \"getUser\", &_args13, &_result14); err != nil {\n return\n }\n switch {\n case _result14.UserException!= nil:\n return r, _result14.UserException\n case _result14.SystemException!= nil:\n return r, _result14.SystemException\n }\n\n return _result14.GetSuccess(), nil\n}"
] | [
"0.761959",
"0.7401354",
"0.7369178",
"0.729114",
"0.72755146",
"0.7242112",
"0.72095406",
"0.7193147",
"0.71550673",
"0.70894253",
"0.7057285",
"0.7048281",
"0.70001984",
"0.6899647",
"0.68921465",
"0.6884007",
"0.68103373",
"0.6807892",
"0.6806844",
"0.6771977",
"0.67577565",
"0.6698088",
"0.6683824",
"0.6649665",
"0.66449785",
"0.66147757",
"0.66141814",
"0.6597101",
"0.65948427",
"0.6533582",
"0.6513496",
"0.650008",
"0.6469318",
"0.64290947",
"0.64235055",
"0.6397051",
"0.63776195",
"0.6374327",
"0.6373976",
"0.63276917",
"0.6308526",
"0.6299792",
"0.6259579",
"0.62473595",
"0.62430936",
"0.6230394",
"0.62266403",
"0.62229055",
"0.6212319",
"0.6208029",
"0.6203923",
"0.61852187",
"0.6184702",
"0.6182097",
"0.61740917",
"0.6172817",
"0.61688024",
"0.61643565",
"0.61632305",
"0.61554986",
"0.61500883",
"0.61481184",
"0.61481184",
"0.6145362",
"0.61311567",
"0.61202294",
"0.6113962",
"0.6108993",
"0.610668",
"0.61053795",
"0.6103325",
"0.60994196",
"0.60984606",
"0.6096927",
"0.6094808",
"0.60915256",
"0.607829",
"0.60700274",
"0.6064748",
"0.6059323",
"0.60478324",
"0.6047065",
"0.60434836",
"0.6043204",
"0.6031785",
"0.6031089",
"0.6028782",
"0.6027583",
"0.60270625",
"0.60234094",
"0.60205936",
"0.60204303",
"0.6019362",
"0.60144544",
"0.6013067",
"0.60122484",
"0.6009859",
"0.60013634",
"0.60010386",
"0.5994925"
] | 0.82229006 | 0 |
Given a fileName, determine the path of the executable and open the file in the current directory. | func openFile(fileName string) (*os.File, error) {
// Determine the path to where the application is running.
ex, err := os.Executable()
if err != nil {
panic(err)
}
exPath := path.Dir(ex)
// Open the file in the directory where the application is running and the fileName provided.
return os.Open(fmt.Sprintf("%s/%s", exPath, fileName))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func OpenFileInEditor(filename string, resolveEditor PreferredEditorResolver) error {\n\t// Get the full executable path for the editor.\n\texecutable, err := exec.LookPath(resolveEditor())\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tcmd := exec.Command(executable, resolveEditorArguments(executable, filename)...)\n\tcmd.Stdin = os.Stdin\n\tcmd.Stdout = os.Stdout\n\tcmd.Stderr = os.Stderr\n\n\treturn cmd.Run()\n}",
"func executableName() string {\n\t_, file := filepath.Split(os.Args[0])\n\treturn file\n}",
"func (cx *Context) ExecFile(filename string) (err error) {\n\tf, err := os.Open(filename)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer f.Close()\n\treturn cx.execFrom(f, filename)\n}",
"func OpenFileInEditor(filename string) (err error) {\n\teditor := os.Getenv(\"EDITOR\")\n\tif editor == \"\" {\n\t\teditor = \"nvim\"\n\t}\n\texe, err := exec.LookPath(editor)\n\tif err != nil {\n\t\treturn err\n\t}\n\tcmd := exec.Command(exe, filename)\n\tcmd.Stdin = os.Stdin\n\tcmd.Stdout = os.Stdout\n\tcmd.Stderr = os.Stderr\n\treturn cmd.Run()\n}",
"func OpenFileExeDir(pathSupplement string) (*os.File, error) {\n\ted, err := ExeDir()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfp := filepath.Join(ed, pathSupplement)\n\tfyle, err := os.Open(fp)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn fyle, err\n}",
"func OpenedBy(l shell.Logger, debug bool, path string) (string, error) {\n\tpidEntries, err := os.ReadDir(\"/proc\")\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to read /proc: %w\", err)\n\t}\n\n\tabsPath, err := filepath.Abs(path)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"failed to get absolute path: %w\", err)\n\t}\n\n\tfor _, p := range pidEntries {\n\t\tpid := p.Name()\n\n\t\tif !numeric.MatchString(pid) || !openedByPid(l, debug, absPath, pid) {\n\t\t\tcontinue\n\t\t}\n\n\t\t// /proc/<pid>/exe is a symlink to the executable\n\t\texe, err := os.Readlink(fmt.Sprintf(\"/proc/%s/exe\", pid))\n\t\tif err != nil {\n\t\t\tif debug {\n\t\t\t\tl.Warningf(\"Failed to read executable for pid %s: %v\", pid, err)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\treturn exe, nil\n\t}\n\n\treturn \"\", ErrFileNotOpen\n}",
"func OpenFile(root, fileName string) (string, *os.File, error) {\n\t// Create folder if it doesn't exists\n\tjoinedRoot := path.Join(root, fileName)\n\troot, fileName = path.Split(joinedRoot)\n\tif !FileExists(root) {\n\t\t_ = os.MkdirAll(root, os.ModePerm)\n\t}\n\tfileName = path.Join(root, fileName)\n\n\tf, err := os.OpenFile(fileName, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)\n\treturn fileName, f, err\n}",
"func GetExecutableFilename() string {\n\t// try readlink first\n\tpath, err := os.Readlink(\"/proc/self/exe\")\n\tif err == nil {\n\t\treturn path\n\t}\n\t// use argv[0]\n\tpath = os.Args[0]\n\tif !filepath.IsAbs(path) {\n\t\tcwd, _ := os.Getwd()\n\t\tpath = filepath.Join(cwd, path)\n\t}\n\tif FileExists(path) {\n\t\treturn path\n\t}\n\t// Fallback : use \"gosemki\" and assume we are in the PATH...\n\tpath, err = exec.LookPath(\"gosemki\")\n\tif err == nil {\n\t\treturn path\n\t}\n\treturn \"\"\n}",
"func OpenExecutable(path string) (*Executable, error) {\n\tif path == \"\" {\n\t\treturn nil, fmt.Errorf(\"path cannot be empty\")\n\t}\n\n\tf, err := os.Open(path)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"open file '%s': %w\", path, err)\n\t}\n\tdefer f.Close()\n\n\tse, err := internal.NewSafeELFFile(f)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"parse ELF file: %w\", err)\n\t}\n\n\tif se.Type != elf.ET_EXEC && se.Type != elf.ET_DYN {\n\t\t// ELF is not an executable or a shared object.\n\t\treturn nil, errors.New(\"the given file is not an executable or a shared object\")\n\t}\n\n\tex := Executable{\n\t\tpath: path,\n\t\taddresses: make(map[string]uint64),\n\t}\n\n\tif err := ex.load(se); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &ex, nil\n}",
"func Open(name string) (*os.File, error)",
"func OpenFile(fileName string) (*File, error) {\n\tw := NewFile(fileName)\n\terr := w.Read()\n\tif err != nil {\n\t\treturn w, err\n\t}\n\treturn w, nil\n}",
"func (a BuildBlock) openScFile() *string {\n\tvar err error\n\tvar f []byte\n\tf, err = ioutil.ReadFile(a.runpath + a.Filename + a.Extension)\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"Cannot open script file: %s\\n\", err)\n\t\treturn nil\n\t}\n\tfile := string(f)\n\treturn &file\n}",
"func OpenFile(path string, pkgName string) (*jen.File, error) {\n\tpath = Path(path)\n\tf, ok := fileMap[path]\n\tif ok {\n\t\treturn f, nil\n\t}\n\n\tif len(pkgName) == 0 {\n\t\tlog.Fatal(\"pkgName cannot be empty\")\n\t}\n\tjenFile := jen.NewFile(pkgName)\n\tfileMap[path] = jenFile\n\treturn jenFile, nil\n}",
"func getFullPath(fileName string) (string, error) {\n\t//from where i am calling the program\n\tworkingDir, err := os.Getwd()\n\tif err != nil {\n\t\treturn \"\", errors.New(\"Invalid working dir\")\n\t}\n\n\treturn workingDir + \"/\" + fileName, nil\n}",
"func OpenFile(anchor string) (File, error) {\n\treturn get().OpenFile(anchor)\n}",
"func (osh *SystemHandler) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error) {\n\treturn os.OpenFile(name, flag, perm)\n}",
"func (fo FileOperator) Open(file string) {\n\trelPath := mountedFilePath(fo.MountPoint, file)\n\tcmd := getOpenCmd(relPath)\n\n\tlog.Printf(\"Opening file %s\", relPath)\n\n\tif err := cmd.Run(); err != nil {\n\t\tlog.Printf(\"Error Opening file %s: %s\", relPath, err)\n\t}\n}",
"func ExeFile() string {\n rootPath := filepath.Dir(os.Args[0])\n\n if rootPath == \".\" {\n rootPath, err := exec.LookPath(os.Args[0])\n if err != nil {\n return os.Args[0]\n }\n\n rootPath, err = filepath.Abs(rootPath)\n if err != nil {\n return os.Args[0]\n }\n\n return rootPath\n }\n \n return os.Args[0]\n}",
"func Which(filename string) string {\n\tfilePath, err := exec.LookPath(filename)\n\tif err == nil {\n\t\treturn filePath\n\t}\n\treturn globals.EmptyString\n}",
"func OpenFileExplorer(pkg string) {\n\tDefaultRunner.Run(cmdOpenFileExplorer[0], AbsPath(pkg))\n}",
"func OpenFile(fileName string, options ...FileOption) (file *File, err error) {\n\twrap := func(err error) (*File, error) {\n\t\treturn nil, fmt.Errorf(\"OpenFile: %w\", err)\n\t}\n\n\tvar z *zip.ReadCloser\n\tz, err = zip.OpenReader(fileName)\n\tif err != nil {\n\t\treturn wrap(err)\n\t}\n\tdefer z.Close()\n\n\tfile, err = ReadZip(z, options...)\n\tif err != nil {\n\t\treturn wrap(err)\n\t}\n\treturn file, nil\n}",
"func open(path string) {\n\tif err := exec.Command(\"/usr/bin/open\", path).Run(); err != nil {\n\t\tfmt.Printf(\"report.Open err: %x\\n\", err.Error())\n\t}\n}",
"func exe(filename string) string {\n\tif runtime.GOOS == \"windows\" {\n\t\treturn filename + \".exe\"\n\t}\n\treturn filename\n}",
"func openFile(filePath string, flags int) *os.File {\n\tf, err := os.OpenFile(filePath, flags, 0644)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"Error opening file: %s\", err))\n\t}\n\treturn f\n}",
"func OpenFile(filename string) error {\n\treturn openURL(\"file://\" + filename)\n}",
"func (app *parser) File(filePath string) (middle.Program, error) {\n\tins, err := app.parser.ExecuteFile(filePath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif prog, ok := ins.(parsers.Program); ok {\n\t\treturn app.middleAdapter.ToProgram(prog)\n\t}\n\n\tstr := fmt.Sprintf(\"the file (%s) does not contain a valid program\", filePath)\n\treturn nil, errors.New(str)\n}",
"func fileopen(name string) {\n\tf, er := os.Open(name)\n\n\t//er will be nil if the file exists else it returns an error object\n\tif er != nil {\n\t\tfmt.Println(er)\n\t\treturn\n\t} else {\n\t\tfmt.Println(\"file opened\", f.Name())\n\t}\n}",
"func exePath() string {\n\texe, err := os.Executable()\n\n\tif err != nil {\n\t\tpanic(\"Could not get executable path!\")\n\t}\n\n\treturn exe\n}",
"func Executable(path string) error {\n\tif strings.TrimSpace(path) == \"\" {\n\t\treturn fmt.Errorf(\"path is invalid, empty string\")\n\t}\n\n\tmode, err := utils.GetMode(path)\n\tif err != nil {\n\t\treturn err //nolint: wrapcheck // error string formed in external package is styled correctly\n\t}\n\n\tif mode.IsDir() {\n\t\treturn fmt.Errorf(\"path '%s' is directory\", path)\n\t}\n\n\tif !mode.IsRegular() {\n\t\treturn fmt.Errorf(\"path '%s' is not regular file\", path)\n\t}\n\n\tif !utils.IsExecOwner(mode) {\n\t\treturn fmt.Errorf(\"path '%s' has no exec owner bit set\", path)\n\t}\n\n\tif !utils.IsExecGroup(mode) {\n\t\treturn fmt.Errorf(\"path '%s' has no exec group bit set\", path)\n\t}\n\n\tif err := unix.Access(filepath.Clean(path), unix.R_OK); err != nil {\n\t\treturn fmt.Errorf(\"path '%s' is not readable\", path)\n\t}\n\n\tif err := unix.Access(filepath.Clean(path), unix.X_OK); err != nil {\n\t\treturn fmt.Errorf(\"path '%s' is not executable\", path)\n\t}\n\n\treturn nil\n}",
"func (f *FilePicker) OpenFile(fileName string) uiauto.Action {\n\t// For the file picker, opening the file should close the picker.\n\t// We retry opening the file three times to deflake some tests,\n\t// as sometimes the double-click seems to be ignored.\n\treturn uiauto.Retry(3,\n\t\tuiauto.Combine(fmt.Sprintf(\"OpenFile(%s)\", fileName),\n\t\t\tf.filesApp.SelectFile(fileName),\n\t\t\tf.filesApp.OpenFile(fileName),\n\t\t\tf.filesApp.WithTimeout(3*time.Second).WaitUntilGone(filesapp.WindowFinder(vars.FilePickerPseudoAppID)),\n\t\t))\n}",
"func (p *Parser) OpenFile() error {\n\tif p.filepath == \"\" {\n\t\treturn errors.New(\"Filepath not set\")\n\t}\n\n\tif p.filepath[len(p.filepath)-3:] != \".vm\" {\n\t\treturn errors.New(\"File must have a .vm ending\")\n\t}\n\tvar err error\n\tp.file, err = os.Open(p.filepath)\n\tif err != nil {\n\t\treturn err\n\t}\n\tp.fileScanner = bufio.NewScanner(p.file)\n\treturn nil\n}",
"func OpenFile(path string) (*os.File, error) {\n return OpenFilePerm(path, DEFAULT_PERM)\n}",
"func OpenFile(path string) *os.File {\n\tfile, err := os.Open(path)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\treturn file\n}",
"func getCurrentAbPathByExecutable() string {\n\texePath, err := os.Executable()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tres, _ := filepath.EvalSymlinks(filepath.Dir(exePath))\n\treturn res\n}",
"func getCurrentAbPathByExecutable() string {\n\texePath, err := os.Executable()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tres, _ := filepath.EvalSymlinks(filepath.Dir(exePath))\n\treturn res\n}",
"func getExecPath(name string) string {\n\tif name == \"\" {\n\t\tlog.Println(\"invalid executable file name\")\n\t\tos.Exit(-1)\n\t}\n\tout, err := exec.Command(\"which\", name).Output()\n\tif err != nil {\n\t\tlog.Printf(\"executable file %s not found in $PATH\", name)\n\t\tos.Exit(-1)\n\t}\n\treturn string(bytes.TrimSpace(out))\n}",
"func GetFilePath(fileName string) string {\n\tcwd, _ := os.Getwd()\n\treturn filepath.Join(cwd, fileName)\n}",
"func Open(filePath string) *os.File {\n\tfile, err := os.Open(filePath)\n\tif err != nil {\n\t\tfmt.Println(\"Unable to open '\" + filePath + \"', aborting\")\n\t\tpanic(err)\n\t}\n\n\treturn file\n}",
"func RunFile(path string) error {\n\tbytes, err := fetchFile(path)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// free utf-8 support! thanks, go\n\trun(string(bytes))\n\treturn nil\n}",
"func OpenFile(name string, flag int, perm os.FileMode) *os.File {\n\tf, err := os.OpenFile(name, flag, perm)\n\tAbortIf(err)\n\treturn f\n}",
"func OpenFile(name string, flag int, perm os.FileMode,) (*os.File, error)",
"func open(uri string) error {\n\trun, ok := commands[runtime.GOOS]\n\tif !ok {\n\t\treturn fmt.Errorf(\"don't know how to open things on %s platform\", runtime.GOOS)\n\t}\n\n\tcmd := exec.Command(run, uri)\n\treturn cmd.Start()\n}",
"func (d Dir) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error) {\n\tif name = d.resolve(ctx, name); name == \"\" {\n\t\treturn nil, os.ErrNotExist\n\t}\n\tf, err := os.OpenFile(name, flag, perm)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif d.Config.Log.Read {\n\t\tlog.WithFields(log.Fields{\n\t\t\t\"path\": name,\n\t\t\t\"user\": d.resolveUser(ctx),\n\t\t}).Info(\"Opened file\")\n\t}\n\n\treturn f, nil\n}",
"func (d *DiskCatalog) OpenFile(filename string) (io.ReadCloser, error) {\n\tfile, err := os.Open(filename)\n\tif err != nil {\n\t\tif file, errx := os.Open(BackwardsCompatiblePaths(d.templatesDirectory, filename)); errx == nil {\n\t\t\treturn file, nil\n\t\t}\n\t}\n\treturn file, err\n}",
"func (disk Disk) OpenFile(filename string, flags int, perm os.FileMode) (*os.File, *probe.Error) {\n\tdisk.lock.Lock()\n\tdefer disk.lock.Unlock()\n\n\tif filename == \"\" {\n\t\treturn nil, probe.NewError(InvalidArgument{})\n\t}\n\tdataFile, err := os.OpenFile(filepath.Join(disk.path, filename), flags, perm)\n\tif err != nil {\n\t\treturn nil, probe.NewError(err)\n\t}\n\treturn dataFile, nil\n}",
"func execPath() (string, error) {\n\tfile, err := exec.LookPath(os.Args[0])\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn filepath.Abs(file)\n}",
"func (p *Parser) runFromFile(context value.Context, name string) {\n\tfd, err := os.Open(name)\n\tif err != nil {\n\t\tp.errorf(\"%s\", err)\n\t}\n\tp.runFromReader(context, name, fd, true)\n}",
"func (realFS) Open(name string) (File, error) { return os.Open(name) }",
"func Locate(curPath string, fileName string) (filePath string) {\n if fspath := filepath.Join(curPath, fileName); IsFile(fspath) {\n filePath = fspath\n } else if fspath = filepath.Dir(curPath); fspath != curPath {\n filePath = Locate(fspath, fileName)\n }\n return\n}",
"func (driver *TestClientDriver) OpenFile(path string, flag int, perm os.FileMode) (afero.File, error) {\n\tif strings.Contains(path, \"fail-to-open\") {\n\t\treturn nil, errFailOpen\n\t}\n\n\tif strings.Contains(path, \"quota-exceeded\") {\n\t\treturn nil, ErrStorageExceeded\n\t}\n\n\tif strings.Contains(path, \"not-allowed\") {\n\t\treturn nil, ErrFileNameNotAllowed\n\t}\n\n\tfile, err := driver.Fs.OpenFile(path, flag, perm)\n\n\tif err == nil {\n\t\tfile = &testFile{File: file}\n\t}\n\n\treturn file, err\n}",
"func OpenFile(uri string) ([]byte, error) {\n\tfile, err := ioutil.ReadFile(uri)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"Could not open file\")\n\t}\n\treturn file, nil\n}",
"func (ptr *Application) onClickMenuFileOpen() {\n\tfileName, err := dialog.File().Filter(\n\t\t\"Open file\",\n\t).Load()\n\tif err != nil || fileName == \"\" {\n\t\treturn\n\t}\n\n\t// open the file\n\tfileContents, err := ioutil.ReadFile(fileName)\n\tif err != nil {\n\t\treturn\n\t}\n\n\t// update current file information\n\tptr.currentFilename = fileName\n\tptr.currentFileBuffer = fileContents\n\n\t// display the contents\n\tptr.textEditor.SetText(string(ptr.currentFileBuffer))\n}",
"func (launcher *Launcher) RunByFilename(filename string) error {\n\treturn launcher.runByFilenameOrURL(filename, false)\n}",
"func GetProcessByFileName(fileName string) (Process, error) {\n\t// Open the /proc *nix directory.\n\tprocDir, err := os.Open(\"/proc\")\n\tdefer procDir.Close()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn Process{}, errors.New(\"Error on opening /proc\")\n\t}\n\n\t// Read in the directory names. Processes are listed\n\t// as folders within this directory, named by their PID.\n\tdirNames, err := procDir.Readdirnames(0)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn Process{}, errors.New(\"Error on reading dirs from /proc\")\n\t}\n\n\t// Enumerate all directories here.\n\tfor _, dirString := range dirNames {\n\n\t\t// Parse the directory name as a uint.\n\t\tpid, err := strconv.ParseUint(dirString, 0, 64)\n\n\t\t// If it is not a numeric directory name, skip it.\n\t\tif v, ok := err.(*strconv.NumError); ok && v.Err == strconv.ErrSyntax {\n\t\t\tcontinue\n\t\t} else if err != nil {\n\t\t\tfmt.Println(err)\n\t\t\treturn Process{}, errors.New(\"Error on enumerating dirs from /proc\")\n\t\t}\n\n\t\t// TODO: Change this to something better, it is very hacky right now.\n\n\t\t// Read the target program's stats file.\n\t\ttmpFileBytes, err := ioutil.ReadFile(fmt.Sprintf(\"/proc/%d/stat\", pid))\n\t\tif err != nil {\n\t\t\tfmt.Println(err)\n\t\t\treturn Process{}, errors.New(\"Error on enumerating dirs from \" + fmt.Sprintf(\"/proc/%d/stat\", pid))\n\t\t}\n\n\t\t// HACK!\n\t\t// Stat file [1] has the file name surrounded by ()\n\t\tcurProcFileName := strings.Trim(strings.Split(string(tmpFileBytes), \" \")[1], \"()\")\n\n\t\t// Check if this is the process we are looking for.\n\t\tif curProcFileName == fileName {\n\t\t\treturn Process{PID: pid}, nil\n\t\t}\n\t}\n\n\treturn Process{}, errors.New(\"Couldn't find a process with the given file name.\")\n}",
"func Open(peFile []byte) ([]byte, error) {\n\tportableExecutable, err := windows.GetPortableExecutable(peFile)\n\n\tif err != nil {\n\t\treturn []byte{}, err\n\t}\n\n\tvar targetExecutable = windows.TargetExecutable{*portableExecutable}\n\t_, rawPayload, err := targetExecutable.GetPayload()\n\n\tif err != nil {\n\t\treturn []byte{}, err\n\t}\n\n\treturn rawPayload, nil\n}",
"func (fs osFsEval) Open(path string) (*os.File, error) {\n\treturn os.Open(path)\n}",
"func Open(relpath string) (*os.File, error) {\n\terr := validate(relpath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tpath := filepath.Join(rootPath, relpath)\n\treturn os.Open(path)\n}",
"func (localFileDriver) open(file string) (io.ReadCloser, error) {\n\treturn os.Open(file)\n}",
"func openTemplateFile() (fp *os.File, err error) {\n\tfp, err = os.Open(*templateArg)\n\treturn\n}",
"func GetExecutablePath(executableName string) (string, error) {\n\texecutablePath, err := exec.LookPath(executableName)\n\tif err != nil {\n\t\treturn \"\", errorutils.CheckError(err)\n\t}\n\n\tif executablePath == \"\" {\n\t\treturn \"\", errorutils.CheckError(errors.New(fmt.Sprintf(\"Could not find '%s' executable\", executableName)))\n\t}\n\n\tlog.Debug(fmt.Sprintf(\"Found %s executable at: %s\", executableName, executablePath))\n\treturn executablePath, nil\n}",
"func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error) {\n\treturn os.OpenFile(name, flag, perm) // #nosec G304\n}",
"func OpenFile(filename string) *bufio.Scanner {\n\tfile, err := os.Open(filename)\n\tif err != nil {\n\t\tfmt.Println(\"Unable to open file:\", err)\n\t\tos.Exit(1)\n\t}\n\tscanner := bufio.NewScanner(file)\n\treturn scanner\n}",
"func openPath(currentPath string, targetPath string) error {\n\tfullPath := path.Resolve(currentPath, targetPath)\n\n\todir, err := opendir.New(fullPath)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\terr = odir.Open()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func mainFile(table *gosym.Table) (string, error) {\n\tmain := table.LookupFunc(\"main.main\")\n\tif main == nil {\n\t\treturn \"\", fmt.Errorf(\"not found\")\n\t}\n\tfile, _, fn := table.PCToLine(main.Entry)\n\tif fn == nil {\n\t\treturn \"\", fmt.Errorf(\"not found\")\n\t}\n\treturn file, nil\n}",
"func (fs *iofs) OpenFile(name string, flag int, perm os.FileMode) (FileManager, error) {\n\tf, err := os.OpenFile(name, flag, perm)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tiof := &IOFile{f}\n\treturn iof, err\n}",
"func OpenFileByHash(Hash string) {\n\n\tfileInfo, err := dbGetFile(Hash)\n\tif err != nil {\n\t\tpushError(\"Error on open file\", err.Error())\n\t\treturn\n\t}\n\tOpenOSPath(fileInfo.Path)\n}",
"func launchExe(d *Driver, path string, sem chan bool, results chan<- *ChildResult) {\n\tif d.launchExe != nil {\n\t\td.launchExe(path, sem, results)\n\t} else {\n\t\tlaunchExecutable(path, sem, results)\n\t}\n}",
"func GetOpenFile(file string) (*os.File, error) {\n\tvar fullpath = file\n\tif !filepath.IsAbs(fullpath) {\n\t\tdir, err := os.Getwd()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tfullpath = filepath.Join(dir, file)\n\t}\n\treturn os.Open(fullpath)\n}",
"func programName(filename string) string {\n\tfilename = filepath.Base(filename)\n\text := filepath.Ext(filename)\n\treturn filename[:len(filename)-len(ext)]\n}",
"func (r *Repository) FileOpenAtRef(filePath string, ref plumbing.Reference) (io.ReadCloser, int64, error) {\n\treturn r.fileOpenAtHash(filePath, ref.Hash())\n}",
"func openFile(file string, fp func(*os.File) (interface{}, error)) (ret interface{}, err error) {\n\tvar f *os.File\n\tf, err = os.Open(file)\n\tif err != nil {\n\t\treturn\n\t}\n\tdefer f.Close()\n\treturn fp(f)\n}",
"func openTestFile(t *testing.T, fname string) io.Reader {\n\tf, err := os.Open(fname)\n\tassert.NoError(t, err, `Couldn't open file \"%s\"`, fname)\n\treturn f\n}",
"func (fs defaultFS) Open(name string) (File, error) { return os.Open(name) }",
"func (fs *ObjStorFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) {\n\tctx, _ := fs.getOperationContext(\"OpenFile\", deadlineKeyRead)\n\treturn fs.OpenFileEx(ctx, name, flag, perm)\n}",
"func AppFilePath() string {\r\n\tpath, err := exec.LookPath(os.Args[0])\r\n\tif err != nil {\r\n\t\treturn \"\"\r\n\t}\r\n\r\n\tpath, err = filepath.Abs(path)\r\n\tif err != nil {\r\n\t\treturn \"\"\r\n\t}\r\n\treturn path\r\n}",
"func Open(filePath string) (*Spreadsheet, error) {\n\text := filepath.Ext(filePath)\n\tswitch strings.ToLower(ext[1:]) {\n\tcase \"csv\":\n\t\treturn openCSVFile(filePath)\n\tcase \"xlsx\":\n\t\treturn openXLSXFile(filePath)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"input file is not a valid spreadsheet file\")\n\t}\n}",
"func (fs *bundleFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) {\n\treturn nil, ErrReadOnly\n}",
"func Executable() string {\n\tif executable, err := os.Executable(); err != nil {\n\t\treturn \"echo\" // safe fallback that should never happen\n\t} else if filepath.Base(executable) == \"cmd.test\" {\n\t\treturn \"example\" // for `go test -v ./...`\n\t} else {\n\t\treturn filepath.Base(executable)\n\t}\n}",
"func openFile(fpath string) (*os.File, os.FileInfo, error) {\n\t// Open file\n\tf, err := os.Open(fpath)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\t// get file info\n\tfi, err := f.Stat()\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\t// do not serve directory\n\tif fi.IsDir() {\n\t\treturn nil, nil, os.ErrNotExist\n\t}\n\n\treturn f, fi, nil\n}",
"func (fs *Filesystem) Open(name string) (filesystem.File, error) {\n\tfs.RLock()\n\tdefer fs.RUnlock()\n\treturn fs.root.lookupFile(name, name)\n}",
"func getProcPath(pid string, file string) ([]byte, error) {\n\tprocessPath := filepath.Join(\"/proc\", pid, file)\n\tdat, err := ioutil.ReadFile(processPath)\n\tif err != nil {\n\t\t//fmt.Println(\"error occured opening file:\", err)\n\t\treturn nil, err\n\t}\n\treturn dat, nil\n}",
"func onFileOpen(filename string) {\n\t//\n}",
"func OpenFile(filename string) (*ExcelFile, error) {\n\tzipFile, err := zip.OpenReader(filename)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tsharedStrings, err := getSharedStrings(zipFile.File)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tsheets, sheetFiles, err := getWorksheets(zipFile.File)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tdateStyles, err := getDateFormatStyles(zipFile.File)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &ExcelFile{\n\t\tsharedStrings: sharedStrings,\n\t\tSheets: sheets,\n\t\tsheetFiles: *sheetFiles,\n\t\tzipFile: *zipFile,\n\t\tdateStyles: *dateStyles,\n\t}, nil\n}",
"func (fs *FileSystem) Open(name string) (f http.File, err error) {\n\tspawner, ok := fs.Files[name]\n\tif !ok {\n\t\treturn nil, os.ErrNotExist\n\t}\n\n\tbase := filepath.Base(name)\n\treturn spawner.Open(base)\n}",
"func (fs *Mysqlfs) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error) {\n\tf, err := fs.storage.GetFile(filename)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif f == nil {\n\t\tif !isCreate(flag) {\n\t\t\treturn nil, os.ErrNotExist\n\t\t}\n\n\t\tvar err error\n\t\tf, err = fs.storage.NewFile(filename, perm, flag)\n\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t} else {\n\t\tif target, isLink := fs.resolveLink(filename, f); isLink {\n\t\t\treturn fs.OpenFile(target, flag, perm)\n\t\t}\n\t}\n\n\tif f.Mode.IsDir() {\n\t\treturn nil, fmt.Errorf(\"cannot open directory: %s\", filename)\n\t}\n\n\treturn f.Duplicate(perm, flag), nil\n}",
"func loadExecutable(filename string, data []byte) (*Exec, error) {\n\t// Use initMutex to synchronize file operations by this process\n\tinitMutex.Lock()\n\tdefer initMutex.Unlock()\n\n\tvar err error\n\tif !filepath.IsAbs(filename) {\n\t\tfilename, err = inStandardDir(filename)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\tfilename = renameExecutable(filename)\n\n\tif data != nil {\n\t\tlog.Tracef(\"Placing executable in %s\", filename)\n\t\tif err := filepersist.Save(filename, data, NewFileMode); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tlog.Trace(\"File saved, returning new Exec\")\n\t} else {\n\t\tlog.Tracef(\"Loading executable from %s\", filename)\n\t}\n\treturn newExec(filename)\n}",
"func locatedBinaryFile(search, binary string) (string, bool) {\n\tInfof(\"Found & unzip the binary for the version %s: %s\", cmdOptions.Version, binary)\n\tremoveOldBinFiles(search)\n\terr := archiver.Unarchive(binary, Config.DOWNLOAD.DOWNLOADDIR)\n\tif err != nil {\n\t\tFatalf(\"Couldn't unzip the file, err: %v\", err)\n\t}\n\tDebugf(\"Unzipped the file %s completed successfully\", binary)\n\treturn obtainExecutableFilename(search), true\n}",
"func Find(executable, path string) string {\n\text := filepath.Ext(executable)\n\tif runtime.GOOS == \"windows\" && ext != \".exe\" {\n\t\texecutable += \".exe\"\n\t}\n\tif _, err := os.Stat(executable); err == nil {\n\t\treturn executable\n\t}\n\tif path == \"\" {\n\t\tpath = os.Getenv(\"PATH\")\n\t\tif path == \"\" {\n\t\t\treturn \"\"\n\t\t}\n\t}\n\tpaths := strings.Split(path, string(os.PathListSeparator))\n\tfor i := range paths {\n\t\tf := filepath.Join(paths[i], executable)\n\t\tif _, err := os.Stat(f); err == nil {\n\t\t\tabsPath, err := filepath.Abs(f)\n\t\t\tif err != nil {\n\t\t\t\treturn \"\"\n\t\t\t}\n\t\t\treturn absPath\n\t\t}\n\t}\n\treturn \"\"\n}",
"func OpenOSPath(Path string) {\n\topen.Start(Path)\n}",
"func open(url string) error {\n\tvar cmd string\n\tvar args []string\n\n\tswitch runtime.GOOS {\n\tcase \"windows\":\n\t\tcmd = \"cmd\"\n\t\targs = []string{\"/c\", \"start\"}\n\tcase \"darwin\":\n\t\tcmd = \"open\"\n\tdefault: // \"linux\", \"freebsd\", \"openbsd\", \"netbsd\"\n\t\tcmd = \"xdg-open\"\n\t}\n\targs = append(args, url)\n\treturn exec.Command(cmd, args...).Start()\n}",
"func open(url string) error {\n\tvar cmd string\n\tvar args []string\n\n\tswitch runtime.GOOS {\n\tcase \"windows\":\n\t\tcmd = \"cmd\"\n\t\targs = []string{\"/c\", \"start\"}\n\tcase \"darwin\":\n\t\tcmd = \"open\"\n\tdefault: // \"linux\", \"freebsd\", \"openbsd\", \"netbsd\"\n\t\tcmd = \"xdg-open\"\n\t}\n\targs = append(args, url)\n\treturn exec.Command(cmd, args...).Start()\n}",
"func open(url string) error {\n\tvar cmd string\n\tvar args []string\n\n\tswitch runtime.GOOS {\n\tcase \"windows\":\n\t\tcmd = \"cmd\"\n\t\targs = []string{\"/c\", \"start\"}\n\tcase \"darwin\":\n\t\tcmd = \"open\"\n\tdefault: // \"linux\", \"freebsd\", \"openbsd\", \"netbsd\"\n\t\tcmd = \"xdg-open\"\n\t}\n\targs = append(args, url)\n\treturn exec.Command(cmd, args...).Start()\n}",
"func (d Dir) Open(name string) (File, error) {\n\tfullName, err := d.fullName(name)\n\tif nil != err {\n\t\treturn nil, err\n\t}\n\tf, err := os.Open(fullName)\n\tif err != nil {\n\t\treturn nil, mapDirOpenError(err, fullName)\n\t}\n\treturn f, nil\n}",
"func ProcessPathForPid(pid int) string {\n\treadPath := \"/proc/\" + strconv.Itoa(pid) + \"/exe\"\n\n\tresolved, err := filepath.EvalSymlinks(readPath)\n\tif err != nil {\n\t\tlog.Printf(\"Pid %d: Could not resolve path for %s\", pid, readPath)\n\t\treturn \"\"\n\t}\n\n\tif _, err := os.Stat(resolved); err != nil {\n\t\tlog.Printf(\"Pid %d: File %s does not exist\", pid, resolved)\n\t\treturn \"\"\n\t}\n\n\treturn resolved\n}",
"func (d Dir) Open(name string) (*os.File, error) {\n\tif d.env == \"\" {\n\t\treturn nil, errors.New(\"xdgdir: Open on zero Dir\")\n\t}\n\tpaths := d.SearchPaths()\n\tif len(paths) == 0 {\n\t\treturn nil, fmt.Errorf(\"xdgdir: open %s: %s is invalid or not set\", name, d.env)\n\t}\n\tvar firstErr error\n\tfor _, p := range paths {\n\t\tf, err := os.Open(filepath.Join(p, name))\n\t\tif err == nil {\n\t\t\treturn f, nil\n\t\t} else if !os.IsNotExist(err) {\n\t\t\tfirstErr = err\n\t\t}\n\t}\n\tif firstErr != nil {\n\t\treturn nil, firstErr\n\t}\n\treturn nil, &os.PathError{\n\t\tOp: \"Open\",\n\t\tPath: filepath.Join(\"$\"+d.env, name),\n\t\tErr: os.ErrNotExist,\n\t}\n}",
"func getFile(fileName string) string {\n\twd, _ := os.Getwd()\n\n\tif !strings.HasSuffix(wd, \"file\") {\n\t\twd += \"\"\n\t}\n\n\treturn wd + \"/\" + fileName\n}",
"func (fsys *FS) Open(name string) (fs.File, error) {\n\tvalid := fs.ValidPath(name)\n\tif !valid {\n\t\treturn nil, fmt.Errorf(\"path %s invalid\", name)\n\t}\n\n\tfile, err := fsys.internal.Open(name)\n\treturn &File{name, file}, err\n}",
"func (tr *TelegrafRunner) exePath() string {\n\treturn filepath.Join(currentVerLink, binSubpath, \"telegraf\")\n}",
"func openFileAt(realPath string, offset int64, whence int) (fp *os.File, reader *bufio.Reader, err error) {\n\tif fp, err = os.Open(realPath); err != nil {\n\t\treturn\n\t}\n\n\tif _, err = fp.Seek(offset, whence); err != nil {\n\t\terr = errors.New(\"seek file failed: \" + realPath)\n\t\treturn\n\t}\n\n\treader = bufio.NewReaderSize(fp, 16*1024)\n\treturn\n}",
"func executableLocation(updateDirectory string, binary string) string {\n\tswitch runtime.GOOS {\n\tcase \"darwin\":\n\t\tswitch binary {\n\t\tcase \"launcher\":\n\t\t\treturn filepath.Join(updateDirectory, \"Kolide.app\", \"Contents\", \"MacOS\", binary)\n\t\tcase \"osqueryd\":\n\t\t\treturn filepath.Join(updateDirectory, binary)\n\t\tdefault:\n\t\t\treturn \"\"\n\t\t}\n\tcase \"windows\":\n\t\treturn filepath.Join(updateDirectory, fmt.Sprintf(\"%s.exe\", binary))\n\tcase \"linux\":\n\t\treturn filepath.Join(updateDirectory, binary)\n\tdefault:\n\t\treturn filepath.Join(updateDirectory, binary)\n\t}\n}"
] | [
"0.62487584",
"0.60007364",
"0.5974634",
"0.59455234",
"0.5827252",
"0.5814042",
"0.57612526",
"0.5739712",
"0.5738385",
"0.56816673",
"0.5669404",
"0.5666382",
"0.56579435",
"0.5647764",
"0.5644654",
"0.56271005",
"0.5624671",
"0.55886817",
"0.55439836",
"0.5487036",
"0.54843855",
"0.5477196",
"0.5454962",
"0.5444649",
"0.5439487",
"0.54225963",
"0.5416241",
"0.5372581",
"0.5362817",
"0.5362798",
"0.5347623",
"0.533",
"0.53140795",
"0.52995473",
"0.52995473",
"0.52603066",
"0.52568805",
"0.5230844",
"0.5229405",
"0.5209509",
"0.5203497",
"0.51694417",
"0.5158407",
"0.5143664",
"0.5139127",
"0.5110828",
"0.5105039",
"0.51006544",
"0.50626796",
"0.50483906",
"0.5043256",
"0.50148344",
"0.5006554",
"0.5004169",
"0.5001804",
"0.49954164",
"0.49938473",
"0.49923623",
"0.49883395",
"0.4986764",
"0.498363",
"0.49820736",
"0.49734226",
"0.49689227",
"0.49646255",
"0.4932814",
"0.49265015",
"0.4925034",
"0.49213988",
"0.4921286",
"0.49143192",
"0.4913131",
"0.49093783",
"0.48912305",
"0.4891181",
"0.48760736",
"0.48751515",
"0.4873777",
"0.48684177",
"0.48647758",
"0.4859428",
"0.4859401",
"0.48534378",
"0.48505783",
"0.48496175",
"0.4830735",
"0.4830242",
"0.48276126",
"0.48258358",
"0.48193663",
"0.48193663",
"0.48193663",
"0.48172644",
"0.4812295",
"0.47979113",
"0.47961122",
"0.47837526",
"0.47701535",
"0.47699574",
"0.47683364"
] | 0.8145432 | 0 |
Opens the requested url and logs the response. | func openUrl(url string) {
t1 := time.Now()
resp, err := http.Get(url)
t2 := time.Now()
if err != nil {
log.Println(err)
}
response, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatal(fmt.Sprintf("An error occurred opening url: %s\n", err))
}
diff := t2.Sub(t1) // Time passed.
log.Printf("'%s', '%dms'\n", response, diff.Nanoseconds()/int64(time.Millisecond))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func openIncoming(w http.ResponseWriter, r *http.Request) {\n fmt.Fprintf(w, \"Hi there, I am openIncoming !\", r.URL.Path[1:])\n}",
"func Open(resp *crawl.Response) error {\n\tfname := filepath.Join(os.TempDir(), fmt.Sprintf(\"%s.html\", uuid.NewV4().String()))\n\tif err := crawl.WriteResponseFile(resp, fname); err != nil {\n\t\treturn err\n\t}\n\treturn open.Start(fmt.Sprintf(\"file://%s\", fname))\n}",
"func open(url string) error {\n\treturn exec.Command(\"open\", url).Start()\n}",
"func logRequest(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"requested %s\", r.URL.Path)\n\t\tnext.ServeHTTP(w, r)\n\t})\n}",
"func open(url string) error {\n\treturn exec.Command(\"/usr/bin/open\", url).Start()\n}",
"func (*Browser) Open(url string) error {\n\treturn browser.OpenURL(url)\n}",
"func LogHandler(res http.ResponseWriter, req *http.Request) {\n requestURI := req.RequestURI\n log.Printf(\"RequestURI is %s\\n\", requestURI)\n result := strconv.QuoteToASCII(requestURI)\n\n var log_endpoint string\n var err error\n if log_endpoint, err = GetLogEndpoint(); err != nil {\n log.Fatal(err)\n }\n url := \"http://\" + log_endpoint + \"/\" + result\n log.Printf(\"URL is %v\\n\", url)\n\n req, err = http.NewRequest(\"GET\", url, nil)\n\n cli := &http.Client{}\n response, err := cli.Do(req)\n defer response.Body.Close()\n if err != nil {\n log.Fatal(err)\n }\n\n\tif response.StatusCode != 200 {\n\t\tlog.Printf(\"Got Error response: %s\\n\", response.Status)\n\t\terrorMsg := ErrorResponse{Error: response.Status}\n\t\tif err := json.NewEncoder(res).Encode(errorMsg); err != nil {\n\t\t\tlog.Panic(err)\n\t\t}\n\t} else {\n\t\tcontents, err := ioutil.ReadAll(response.Body)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\tlog.Printf(\"Got Successful response: %s\\n\", string(contents))\n\t\tres.Write(contents)\n\t}\n}",
"func logRequest(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"%s %s %s\\n\", r.RemoteAddr, r.Method, r.URL)\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func URL(url string) error {\n\treturn open(url)\n}",
"func logRequest(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Println(r.RequestURI)\n\t\tnext.ServeHTTP(w, r)\n\t})\n}",
"func RequestHandler(w http.ResponseWriter, r *http.Request) {\n\tif r.Method != \"GET\" {\n\t\tw.WriteHeader(http.StatusMethodNotAllowed)\n\t\treturn\n\t}\n\tvar page []byte\n\tvar err error\n\tfmt.Println(\"loading\", r.URL.Path)\n\tif r.URL.Path != \"/\" {\n\t\tpath := strings.TrimLeft(r.URL.Path, \"/\")\n\t\tpage, err = ioutil.ReadFile(path)\n\t} else {\n\t\tpage, err = ioutil.ReadFile(\"view-browser.html\")\n\t}\n\tif err != nil {\n\t\tw.WriteHeader(http.StatusInternalServerError)\n\t\treturn\n\t}\n\tw.Write(page)\n}",
"func Open(url string) error {\n\tswitch runtime.GOOS {\n\tcase \"linux\":\n\t\treturn exec.Command(\"xdg-open\", url).Start()\n\tcase \"windows\":\n\t\treturn exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", url).Start()\n\tcase \"darwin\":\n\t\treturn exec.Command(\"open\", url).Start()\n\tdefault:\n\t\treturn fmt.Errorf(\"unsupported platform could not open browser\")\n\t}\n\n}",
"func (ua geniusLyricsUserAgent) Open(url string) error {\n\t// Request HTML document\n\tres, err := http.Get(url)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer res.Body.Close()\n\n\tif res.StatusCode != 200 {\n\t\treturn fmt.Errorf(\"status code error: %d %s\", res.StatusCode, res.Status)\n\t}\n\n\t// Render HTML document\n\tdoc, err := goquery.NewDocumentFromReader(res.Body)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tlyricsHTML, err := doc.Find(\"div.lyrics\").Html()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tlyricsText, err := html2text.FromString(lyricsHTML)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfmt.Println(lyricsText)\n\treturn nil\n}",
"func (w *worker) requestURL(ctx *URLContext, headRequest bool) {\n\tif res, ok := w.fetchURL(ctx, w.opts.UserAgent, headRequest); ok {\n\t\tvar harvested interface{}\n\t\tvar visited bool\n\n\t\t// Close the body on function end\n\t\tdefer res.Body.Close()\n\n\t\t// Any 2xx status code is good to go\n\t\tif res.StatusCode >= 200 && res.StatusCode < 300 {\n\t\t\t// Success, visit the URL\n\t\t\tharvested = w.visitURL(ctx, res)\n\t\t\tvisited = true\n\t\t} else {\n\t\t\t// Error based on status code received\n\t\t\tw.opts.Extender.Error(newCrawlErrorMessage(ctx, res.Status, CekHttpStatusCode))\n\t\t\tw.logFunc(LogError, \"ERROR status code for %s: %s\", ctx.url, res.Status)\n\t\t}\n\t\tw.sendResponse(ctx, visited, harvested, false)\n\t}\n}",
"func LogRequest(r *http.Request) {\n\tL.Printf(\"%s %s\\n\", r.Method, r.URL)\n}",
"func LogRequest(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"%s %s %s\\n\", r.RemoteAddr, r.Method, r.URL)\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func (app *application) logRequest(next http.Handler) http.Handler {\r\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\r\n\t\tapp.infoLog.Printf(\"%s - %s %s %s\", r.RemoteAddr, r.Proto, r.Method, r.URL.RequestURI())\r\n\r\n\t\tnext.ServeHTTP(w, r)\r\n\t})\r\n}",
"func mainHandler(w http.ResponseWriter, r *http.Request) {\n\t// Use otelhttp to record a span for the outgoing call, and propagate\n\t// context to the destination.\n\tdestination := os.Getenv(\"DESTINATION_URL\")\n\tresp, err := otelhttp.Get(r.Context(), destination)\n\tif err != nil {\n\t\tlog.Fatal(\"could not fetch remote endpoint\")\n\t}\n\tdefer resp.Body.Close()\n\t_, err = ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\tlog.Fatalf(\"could not read response from %v\", destination)\n\t}\n\n\tfmt.Fprint(w, strconv.Itoa(resp.StatusCode))\n}",
"func (srv *WebServer) logRequest(next http.HandlerFunc) http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tfmt.Printf(\"%s %s\\n\", r.Method, r.RequestURI)\n\t\tnext(w, r)\n\t}\n}",
"func Handler(_ context.Context, resp *crawl.Response) error {\n\treturn Open(resp)\n}",
"func Open(printOnly bool, service, resource, userName string) {\n\tspinner.Push(\"Generating sign-in URL\")\n\turi, err := console.GetURI(service, resource, userName)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tspinner.Pop()\n\n\tif !printOnly {\n\t\tswitch runtime.GOOS {\n\t\tcase \"linux\":\n\t\t\terr = exec.Command(\"xdg-open\", uri).Start()\n\t\tcase \"windows\":\n\t\t\terr = exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", uri).Start()\n\t\tcase \"darwin\":\n\t\t\terr = exec.Command(\"open\", uri).Start()\n\t\t}\n\t}\n\n\tif printOnly || err != nil {\n\t\tif tty.IsTTY {\n\t\t\tfmt.Print(\"Open the following URL in your browser: \")\n\t\t}\n\t\tfmt.Println(uri)\n\t}\n}",
"func logRequest(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"%s %s %s\\n\", requestGetRemoteAddress(r), r.Method, r.URL)\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func addStream(w http.ResponseWriter, r *http.Request) {\n fmt.Fprintf(w, \"Hi there, I am addEndPoint !\", r.URL.Path[1:])\n}",
"func Log(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"%s %s %s\", r.RemoteAddr, r.Method, r.URL)\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func (c *Client) Open(path string) error {\n\treturn c.Browser.Open(fmt.Sprintf(\"%s%s\", c.base, path))\n}",
"func Run() {\n\tbrowser.OpenURL(getURL())\n}",
"func (c *ZClient) Open() *ZRequest {\n\tzr := ZRequest{\n\t\tquery: url.Values{},\n\t\theaders: http.Header{},\n\t\tclient: c,\n\t}\n\treturn zr.SetUserAgent(defaultUserAgent)\n}",
"func open(url string) error {\n\tvar cmd string\n\tvar args []string\n\n\tswitch runtime.GOOS {\n\tcase \"windows\":\n\t\tcmd = \"cmd\"\n\t\targs = []string{\"/c\", \"start\"}\n\tcase \"darwin\":\n\t\tcmd = \"open\"\n\tdefault: // \"linux\", \"freebsd\", \"openbsd\", \"netbsd\"\n\t\tcmd = \"xdg-open\"\n\t}\n\targs = append(args, url)\n\treturn exec.Command(cmd, args...).Start()\n}",
"func open(url string) error {\n\tvar cmd string\n\tvar args []string\n\n\tswitch runtime.GOOS {\n\tcase \"windows\":\n\t\tcmd = \"cmd\"\n\t\targs = []string{\"/c\", \"start\"}\n\tcase \"darwin\":\n\t\tcmd = \"open\"\n\tdefault: // \"linux\", \"freebsd\", \"openbsd\", \"netbsd\"\n\t\tcmd = \"xdg-open\"\n\t}\n\targs = append(args, url)\n\treturn exec.Command(cmd, args...).Start()\n}",
"func open(url string) error {\n\tvar cmd string\n\tvar args []string\n\n\tswitch runtime.GOOS {\n\tcase \"windows\":\n\t\tcmd = \"cmd\"\n\t\targs = []string{\"/c\", \"start\"}\n\tcase \"darwin\":\n\t\tcmd = \"open\"\n\tdefault: // \"linux\", \"freebsd\", \"openbsd\", \"netbsd\"\n\t\tcmd = \"xdg-open\"\n\t}\n\targs = append(args, url)\n\treturn exec.Command(cmd, args...).Start()\n}",
"func (f Fetcher) printURL() {\n\tu := f.resp.Request.URL\n\tfmt.Printf(\"Site: %s\\n\", u)\n}",
"func LogRequest(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tstart := time.Now()\n\n\t\tnext.ServeHTTP(w, r)\n\n\t\telapsed := time.Since(start)\n\t\tlog.Println(r.Method, r.URL, elapsed.Truncate(time.Millisecond))\n\t})\n}",
"func Log(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tcclog.Info.Printf(\"%s %s %s\", r.RemoteAddr, r.Method, r.URL)\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func openURL(url string) error {\n\tvar err error\n\tswitch runtime.GOOS {\n\tcase \"linux\":\n\t\terr = exec.Command(\"xdg-open\", url).Start()\n\tcase \"windows\":\n\t\terr = exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", \"http://localhost:4001/\").Start()\n\tcase \"darwin\":\n\t\terr = exec.Command(\"open\", url).Start()\n\tdefault:\n\t\terr = fmt.Errorf(\"Cannot open URL %s on this platform\", url)\n\t}\n\treturn err\n}",
"func LogHTTPRequest(next http.Handler) http.Handler {\n\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlogData := &HTTPLogInfo{\n\t\t\tMethod: r.Method,\n\t\t\tProto: r.Proto,\n\t\t\tURI: r.URL.String(),\n\t\t\tHost: r.Host,\n\t\t\tUserAgent: r.UserAgent(),\n\t\t}\n\t\tlogData.IPAddr = getRemoteAddress(r)\n\n\t\t_, err := r.Cookie(\"cookie-name\")\n\t\tif err == nil {\n\t\t\tlogData.UserID = getUserIDFromSession(w, r)\n\t\t}\n\n\t\thttpResponseData := httpsnoop.CaptureMetrics(next, w, r)\n\n\t\tlogData.StatusCode = httpResponseData.Code\n\t\tlogData.ContentLength = httpResponseData.Written\n\t\tlogData.Date = time.Now().UTC().Format(layout)\n\t\tlogData.Duration = httpResponseData.Duration\n\n\t\tutils.LogHTTP.Println(getFormattedLog(logData))\n\t})\n}",
"func AccessHandler(r *http.Request, code int) {\n\tfile, issue := os.OpenFile(\"log/access.log\", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)\n\tif issue != nil {\n\t\tlog.Printf(\"Error opening file: %v\", issue)\n\t\treturn\n\t}\n\n\tlog.SetOutput(file)\n\ttext := r.Method + \" - \" + r.URL.Path\n\tif len(r.URL.Query()) > 0 {\n\t\ttext += \"?\" + strings.ReplaceAll(r.URL.Query().Encode(), \"%2C\", \",\")\n\t}\n\tlog.Println(text + \" - \" + \"[\" + strconv.Itoa(code) + \"]\")\n\terr := file.Close()\n\tErrorHandler(err)\n\treturn\n}",
"func simpleLog(w http.ResponseWriter, r *http.Request) {\n\t// try to parse the remote address\n\thost, _, err := net.SplitHostPort(r.RemoteAddr)\n\tif err != nil {\n\t\thost = r.RemoteAddr\n\t}\n\n\turi := r.URL.RequestURI()\n\n\treferer := r.Referer()\n\tif referer == \"\" {\n\t\treferer = \"-\"\n\t}\n\n\tuserAgent := r.UserAgent()\n\tif userAgent == \"\" {\n\t\tuserAgent = \"-\"\n\t}\n\n\tusername := \"-\"\n\n\t// Try to get it from the authorization header if set there.\n\tif u, _, ok := r.BasicAuth(); ok {\n\t\tusername = u\n\t}\n\n\tfields := []string{\n\t\thost,\n\t\tusername,\n\t\tr.Method,\n\t\turi,\n\t\tr.Proto,\n\t\treferer,\n\t\tuserAgent,\n\t}\n\n\tlog.Println(strings.Join(fields, \" \"))\n}",
"func (h *Handler) LogRequestURL(r *http.Request) {\n\tif h.Logger != nil {\n\t\th.Logger.Info(h.GetQualifiedName(), zap.String(\"URL Path\", r.URL.Path))\n\t}\n}",
"func openURLInBrowser(url string, browserPath string) {\n\t// Cannot open URL if browser not found\n\tif browserPath == \"\" {\n\t\tlog.Println(\"[-] Browser not found to open URL: \", url)\n\t} else {\n\t\tcmdToExec := fmt.Sprintf(\"\\\"%s\\\" '%s' 2>/dev/null 1>/dev/null &\",\n\t\t\tbrowserPath, url)\n\t\teCmd([]string{cmdToExec}, \"\")\n\t}\n\n}",
"func home(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {\n\tlog.Info(\"Request received.\")\n\tfmt.Fprintf(w, \"Processing URL %s...\\n\", r.URL.Path)\n}",
"func HttpHandler(w http.ResponseWriter, r *http.Request) {\n\tfmt.Fprintf(w, \"Hi there, I love %s!\", r.URL.Path[1:])\n\tlog.Printf(\"handling... %s\", r.URL.Path[1:])\n}",
"func (m *Main) URL() string { return \"http://\" + m.Server.Addr().String() }",
"func OpenURL(u string) error {\n\treturn openURL(u)\n}",
"func LogRequests(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tstart := time.Now()\n\n\t\tnext.ServeHTTP(w, r)\n\n\t\tlog.Printf(\n\t\t\t\"[%s]\\t%s\\t%s\",\n\t\t\tr.Method,\n\t\t\tr.URL.String(),\n\t\t\ttime.Since(start),\n\t\t)\n\t})\n}",
"func (i Novel) URL(ctx context.Context) *url.URL {\n\treturn client.For(ctx).EndpointURL(\"/novel/show.php\", &url.Values{\"id\": {i.ID}})\n}",
"func linkOpen(URL string) (io.ReadCloser, error) {\n\tresp, err := http.Get(URL)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif resp.StatusCode != http.StatusOK {\n\t\treturn nil, fmt.Errorf(\"HTTP Get failed: %v\", resp.StatusCode)\n\t}\n\treturn resp.Body, nil\n}",
"func (c *TLWClient) Open(ctx context.Context, gsURL string) (io.ReadCloser, error) {\n\turl, err := c.Stage(ctx, gsURL)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\thttpReq, err := http.NewRequest(\"GET\", url.String(), nil)\n\tif err != nil {\n\t\treturn nil, errors.Wrapf(err, \"failed to create new HTTP request: %s\", url)\n\t}\n\thttpReq = httpReq.WithContext(ctx)\n\n\tres, err := defaultHTTPClient.Do(httpReq)\n\tif err != nil {\n\t\treturn nil, errors.Wrapf(err, \"failed to get from download URL: %s\", url)\n\t}\n\n\tswitch res.StatusCode {\n\tcase http.StatusOK:\n\t\treturn res.Body, nil\n\tcase http.StatusNotFound:\n\t\tres.Body.Close()\n\t\treturn nil, os.ErrNotExist\n\tdefault:\n\t\tres.Body.Close()\n\t\treturn nil, fmt.Errorf(\"got status %d %v\", res.StatusCode, httpReq)\n\t}\n}",
"func Logging(h http.Handler) http.Handler {\n\tfn := func(w http.ResponseWriter, r *http.Request) {\n\t\tfmt.Printf(\"Received request: %v %v\\n\", r.Method, r.URL)\n\t\th.ServeHTTP(w, r)\n\t}\n\treturn http.HandlerFunc(fn)\n}",
"func homePage(w http.ResponseWriter, r *http.Request){\n fmt.Fprintf(w, \"Welcome in home..\")\n fmt.Println(\"Endpoint hit: homePage\")\n}",
"func Logging(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"%s%s %s\", r.Host, r.RequestURI, r.UserAgent())\n\t\tnext.ServeHTTP(w, r)\n\t})\n}",
"func LogReq(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tnext.ServeHTTP(w, r)\n\t\turi := r.URL.String()\n\t\tmethod := r.Method\n\t\tlog.Println(\"^^\", method, uri)\n\t})\n}",
"func httpLogger(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"%s %s %s\", r.RemoteAddr, r.Method, r.URL)\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func OpenURL(url string) error {\n\treturn exec.Command(\"xdg-open\", url).Start()\n}",
"func loggingHandler(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tp := r.URL.Path\n\t\tnext.ServeHTTP(w, r)\n\t\tlog.Printf(\"%s %s\", r.Method, p)\n\t})\n}",
"func Open(url string) error {\n\treturn exec.Command(\"xdg-open\", url).Start()\n}",
"func (a *App) openbrowser(url string) {\n\tvar err error\n\tif runtime.GOOS == \"windows\" {\n\t\terr = exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", url).Start()\n\t}\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}",
"func RequestLogger(targetMux http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tstart := time.Now()\n\n\t\ttargetMux.ServeHTTP(w, r)\n\n\t\t//log request by who(IP address)\n\t\trequesterIP := r.RemoteAddr\n\n\t\tlogger.Infow(\"Loaded page\",\n\t\t\t\"Method\", r.Method,\n\t\t\t\"RequestURI\", r.RequestURI,\n\t\t\t\"RequesterIP\", requesterIP,\n\t\t\t\"Time\", time.Since(start),\n\t\t)\n\t})\n}",
"func logger(h http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Println(\"request: \" + r.RequestURI)\n\t\th.ServeHTTP(w, r)\n\t})\n}",
"func (c *Client) Open(rawurl, method string, in, out interface{}) (io.ReadCloser, error) {\n\turi, err := url.Parse(rawurl)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq, err := http.NewRequest(method, uri.String(), nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif in != nil {\n\t\tdecoded, derr := json.Marshal(in)\n\t\tif derr != nil {\n\t\t\treturn nil, derr\n\t\t}\n\t\tbuf := bytes.NewBuffer(decoded)\n\t\treq.Body = ioutil.NopCloser(buf)\n\t\treq.ContentLength = int64(len(decoded))\n\t\treq.Header.Set(\"Content-Length\", strconv.Itoa(len(decoded)))\n\t\treq.Header.Set(\"Content-Type\", \"application/json\")\n\t}\n\tresp, err := c.Client.Do(req)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif resp.StatusCode > http.StatusPartialContent {\n\t\tdefer resp.Body.Close()\n\t\tout, _ := ioutil.ReadAll(resp.Body)\n\t\treturn nil, fmt.Errorf(\"client error %d: %s\", resp.StatusCode, string(out))\n\t}\n\treturn resp.Body, nil\n}",
"func (a *MockApp) OpenURL(url *url.URL) error {\n\targs := a.Called(url)\n\treturn args.Error(0)\n}",
"func logging(f http.HandlerFunc) http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Println(r.URL.Path)\n\n\t\t// Calling the original handler\n\t\tf(w, r)\n\t}\n}",
"func (report *Report) open() {\n\n\t// open the report in the default browser\n\terr := open.Start(reportName + \".html\")\n\n\tif err != nil {\n\t\tlog.Println(\"Could not open report\")\n\t}\n\n}",
"func Logging(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"[%v] : %v\\n\", r.Method, r.URL.Path)\n\t\tnext.ServeHTTP(w, r)\n\t})\n}",
"func ReqLogger(rw *http.ResponseWriter, responseStatus *int, URL *url.URL, Method string, start *time.Time) {\n\tif *responseStatus != 200 && *responseStatus != 308 {\n\t\t(*rw).WriteHeader(*responseStatus)\n\t}\n\tlog.Printf(\"%s %s %d %s\\n\", Method, URL, *responseStatus, time.Since(*start))\n}",
"func HandleQuoteRequest(responseWrite http.ResponseWriter, request *http.Request) {\n log.Println(\"Got request!\")\n resp, err := http.Get(\"http://inspireme.ranjithzachariah.com\")\n //resp, err := http.Get(\"https://google.com\")\n if err != nil {\n fmt.Fprintf(responseWrite, \"Error connecting to InspireMe server %s\", err)\n } else {\n htmlData, _ := ioutil.ReadAll(resp.Body)\n fmt.Fprintf(responseWrite, string(htmlData)) \n }\n}",
"func openURL(url string) error {\n\tvar err error\n\tswitch runtime.GOOS {\n\tcase \"linux\":\n\t\terr = exec.Command(\"xdg-open\", url).Start()\n\tcase \"windows\":\n\t\terr = exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", url).Start()\n\tcase \"darwin\":\n\t\terr = exec.Command(\"open\", url).Start()\n\tdefault:\n\t\terr = fmt.Errorf(\"Cannot open URL %s on this platform\", url)\n\t}\n\treturn err\n}",
"func indexHandler(res http.ResponseWriter, req *http.Request) {\n\tfmt.Fprintf(res, \"You requested: \"+req.URL.Path)\n}",
"func (l loggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tlrw := &loggingResponseWriter{ResponseWriter: w}\n\tl.handler.ServeHTTP(lrw, r)\n\tlog.Printf(\"%s - %3d %6db %4s %s\\n\", r.RemoteAddr, lrw.status, lrw.length, r.Method, r.RequestURI)\n}",
"func (log Loggo) LogAccess(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t// Record time that the request was received\n\t\tstart := time.Now()\n\t\tlog.LogHandler(next, func(w LoggedResponse, r *http.Request) {\n\t\t\tremoteAddr := w.Header.Get(\"X-Forwarded-For\")\n\t\t\tuserAgent := w.Header.Get(\"User-Agent\")\n\t\t\ttiming := int(time.Now().Sub(start).Milliseconds())\n\t\t\t_, _ = log.writer.Write([]byte(\"[\" + timeNow() + \"] \" + remoteAddr + \" \" + r.Method + \" \" + r.URL.Path + \" \" + strconv.Itoa(w.StatusCode) + \" \" + userAgent + \" \" + strconv.Itoa(timing) + \"ms\\n\"))\n\t\t}).ServeHTTP(w, r)\n\t})\n}",
"func (p *Plugin) OpenURL(url string) error {\n\treturn p.sendMessage(&OpenURLEventMessage{\n\t\tEvent: \"openUrl\",\n\t\tPayload: OpenURLPayload{\n\t\t\tURL: url,\n\t\t},\n\t})\n}",
"func Logger(w http.ResponseWriter, r *http.Request, next func()) {\n\tstart := time.Now()\n\tnext()\n\tlog.Printf(\"\\x1b[34m%s \\x1b[32m%s \\x1b[0m%v\", r.Method, r.URL.Path, time.Since(start))\n}",
"func echoHandler(w http.ResponseWriter, r *http.Request) {\n\tfmt.Fprintf(w, \"URL.Path = %q\\n\", r.URL.Path)\n}",
"func httpLogger(r *http.Request, created time.Time, status, bytes int) {\n\t//fmt.Println(httpxtra.ApacheCommonLog(r, created, status, bytes))\n\n\tlog.Printf(\"%s %d %s %q (%s) :: %d bytes in %s%s\",\n\t\tlogProto(r),\n\t\tstatus,\n\t\tr.Method,\n\t\tr.URL.Path,\n\t\tremoteIP(r),\n\t\tbytes,\n\t\ttime.Since(created),\n\t\tlogMsg(r),\n\t)\n}",
"func (d Dir) Open(name string) (http.File, error) {\n\tres, err := Get(filepath.Join(string(d), name))\n\treturn res, err\n}",
"func OpenBrowser(url string) {\n\tif !strings.HasPrefix(url, \"http\") {\n\t\turl = \"http://\" + url\n\t}\n\n\tDefaultRunner.Run(cmdOpenBrowser[0], url)\n}",
"func log(h http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request){\n\t\tfmt.Printf(\"Handler called: %T\\n\", h)\n\t\th.ServeHTTP(w, r)\n\t})\n}",
"func openBrowser(url string) {\n\tvar err error\n\tswitch runtime.GOOS {\n\tcase \"linux\":\n\t\terr = exec.Command(\"xdg-open\", url).Start()\n\tcase \"windows\":\n\t\terr = exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", url).Start()\n\tcase \"darwin\":\n\t\terr = exec.Command(\"open\", url).Start()\n\tdefault:\n\t\terr = fmt.Errorf(\"unsupported platform\")\n\t}\n\tmust(err)\n}",
"func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tt := time.Now()\n\tww := buildLoggingWriter(w)\n\tif h.serveHTTP(ww, r) {\n\t\tww.LogAccess(r, time.Now().Sub(t))\n\t}\n}",
"func logRequests(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tvar source string\n\t\tif isExternal(r) {\n\t\t\tsource = \"external\"\n\t\t} else {\n\t\t\tsource = \"internal\"\n\t\t}\n\t\tlog.Println(source, r.Method, r.RequestURI)\n\t\t// Call the next handler, which can be another middleware in the chain, or the final handler.\n\t\tnext.ServeHTTP(w, r)\n\t})\n}",
"func (l *Logger) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t//host := r.Host\n\t//addr := r.RemoteAddr\n\t//url := r.URL\n\n\t// r.URL.Scheme will be empty if you're accessing the HTTP server not from an HTTP proxy,\n\t// a browser can issue a relative HTTP request instead of a absolute URL.\n\t// Additionally, you could check in the server/handler whether you get a\n\t// relative or absolute URL in the request by calling the IsAbs() method.\n\t// Reference: http://stackoverflow.com/questions/6899069/why-are-request-url-host-and-scheme-blank-in-the-development-server\n\t//scheme := r.URL.Scheme\n\t//isAbs := r.URL.IsAbs()\n\n\t//uri := r.RequestURI\n\n\t//log.Printf(\"Before: %v; %v; %v; %v\", host, addr, url, uri)\n\tlog.Printf(\"DEBUG_LOGGER: Inside\")\n\n\tl.handler.ServeHTTP(w, r)\n\n\t//log.Printf(\"After: %v\\t%v\", r.Host, r.URL.Path)\n}",
"func (s Sample) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n fmt.Fprint(w, \"<h1>Welcome to Go.Land Server!</h1>\")\n}",
"func Logger(h http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Printf(\"[%s] [%s] %s\", r.RemoteAddr, r.Method, r.URL.String())\n\t\th.ServeHTTP(w, r)\n\t})\n}",
"func (d *JobManager) openJobExecution(request *restful.Request, response *restful.Response) {\n\n}",
"func openbrowser(url string) {\n\tvar err error\n\n\tswitch runtime.GOOS {\n\tcase \"linux\":\n\t\terr = exec.Command(\"xdg-open\", url).Start()\n\tcase \"windows\":\n\t\terr = exec.Command(\"rundll32\", \"url.dll,FileProtocolHandler\", url).Start()\n\tcase \"darwin\":\n\t\terr = exec.Command(\"open\", url).Start()\n\tdefault:\n\t\terr = fmt.Errorf(\"unsupported platform\")\n\t}\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}",
"func Logger(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {\n\t\tfmt.Printf(\"[ %s ] :: %s :: %v\\n\", req.Method, req.URL, time.Now())\n\t\tnext.ServeHTTP(res, req)\n\t})\n}",
"func Launch(addr string) {\n\tlog.Fatal(http.ListenAndServe(addr, nil))\n}",
"func Open(l *lua.State) {\n\turlOpen := func(l *lua.State) int {\n\t\tlua.NewLibrary(l, urlLibrary)\n\t\treturn 1\n\t}\n\tlua.Require(l, \"goluago/net/url\", urlOpen, false)\n\tl.Pop(1)\n}",
"func Open(location string) error {\n\treturn New(\"open\").WithArgs(location).Run()\n}",
"func GreetRequest(w http.ResponseWriter, r *http.Request) {\n log.Printf(\"First hop of middleware request to %s\\n\", r.URL.Path)\n}",
"func getRequest(w http.ResponseWriter, r *http.Request) {\n\tfileRequested := \"./\" + r.URL.Path\n\thttp.ServeFile(w, r, fileRequested)\n\treturn\n}",
"func Logger(router *chi.Mux) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tfmt.Println(time.Now(), r.Method, r.URL) //example: 2020-07-06 09:32:44.634333 +0200 CEST m=+22.456178180 GET /posts\n\t\trouter.ServeHTTP(w, r) // dispatch the request, we are dispatching the request to the router, which is who has the handlers to serve the request\n\t})\n}",
"func Logging(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tm := httpsnoop.CaptureMetrics(next, w, r)\n\t\tlog.Info().\n\t\t\tStr(\"method\", r.Method).\n\t\t\tStr(\"url\", r.URL.String()).\n\t\t\tInt(\"code\", m.Code).\n\t\t\tDur(\"duration\", m.Duration).\n\t\t\tSend()\n\t})\n}",
"func HitURL2(url string, c chan ResponseResult) {\n\tresp, err := http.Get(url)\n\n\tstatus := \"OK\"\n\n\tcode := resp.StatusCode\n\n\tif err != nil || code >= 400 {\n\t\tstatus = \"FAILED\"\n\t}\n\n\tc <- ResponseResult{url: url, status: status, code: code}\n}",
"func requestHandler(w http.ResponseWriter, r *http.Request) {\n\tw.WriteHeader(200)\n\tfmt.Fprintf(w, \"%s\", buildResponse())\n}",
"func logHandler(handler http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tstart := time.Now()\n\t\twriter := &responseWriter{w, 0, 0}\n\t\thandler.ServeHTTP(writer, r)\n\t\tend := time.Now()\n\t\tlatency := end.Sub(start)\n\t\tlog.Printf(\"%s [%v] \\\"%s %s %s\\\" %d %d \\\"%s\\\" %v\\n\",\n\t\t\tr.RemoteAddr, end.Format(time.RFC1123Z),\n\t\t\tr.Method, r.URL.Path, r.Proto,\n\t\t\twriter.status, writer.size, r.Header.Get(\"User-Agent\"), latency)\n\t})\n}",
"func Browser(url string) error {\n\tvar err error\n\n\tswitch runtime.GOOS {\n\tcase \"linux\":\n\t\terr = execCommand(\"xdg-open\", url).Start()\n\tcase \"windows\":\n\t\terr = execCommand(\"rundll32\", \"url.dll,FileProtocolHandler\", url).Start()\n\tcase \"darwin\":\n\t\terr = execCommand(\"open\", url).Start()\n\tdefault:\n\t\terr = fmt.Errorf(\"unsupported platform\")\n\t}\n\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (handler *Handler) RequestLogger(targetMux http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tstart := time.Now()\n\n\t\ttargetMux.ServeHTTP(w, r)\n\n\t\t// log request by who(IP address)\n\t\trequesterIP := r.RemoteAddr\n\n\t\tlog.Printf(\n\t\t\t\"%s\\t%s\\t%s\\t%v\",\n\t\t\tr.Method,\n\t\t\tr.RequestURI,\n\t\t\trequesterIP,\n\t\t\ttime.Since(start),\n\t\t)\n\t})\n}",
"func handler(w http.ResponseWriter, r *http.Request) {\n\taudit(START)\n\t// localhost:8080/{argument} \n\tfmt.Fprintf(w, \"Welcome, %q!\", html.EscapeString(r.URL.Path[1:]))\n\taudit(END)\n}",
"func (l *ActivityLogger) LogRequest(resp *http.Response, body *gjson.Result, responseTime int64) {\n\tif l.options.Disabled {\n\t\treturn\n\t}\n\n\tif resp == nil {\n\t\treturn\n\t}\n\n\tif !strings.Contains(l.options.Methods, resp.Request.Method) {\n\t\treturn\n\t}\n\n\tquery, err := url.QueryUnescape(resp.Request.URL.RawQuery)\n\tquery = strings.ReplaceAll(query, `\\`, `\\\\`)\n\tif err != nil {\n\t\tquery = resp.Request.URL.RawQuery\n\t}\n\n\tl.mu.Lock()\n\tdefer l.mu.Unlock()\n\tif resp.StatusCode >= 200 && resp.StatusCode <= 299 {\n\t\tcacheTag := resp.Header.Get(\"ETag\")\n\t\tisCachedResponse := cacheTag != \"\"\n\t\tfmt.Fprintf(l.w,\n\t\t\t`{\"time\":\"%s\",\"ctx\":\"%s\",\"type\":\"request\",\"method\":\"%s\",\"host\":\"%s\",\"path\":\"%s\",\"query\":\"%s\",\"accept\":\"%s\",\"processingMode\":\"%s\",\"statusCode\":%d,\"responseTimeMS\":%d,\"responseSelf\":\"%s\",\"etag\":\"%s\",\"cached\":%v}`+\"\\n\",\n\t\t\ttime.Now().Format(time.RFC3339Nano),\n\t\t\tl.contextID,\n\t\t\tresp.Request.Method,\n\t\t\tresp.Request.URL.Host,\n\t\t\tresp.Request.URL.Path,\n\t\t\tquery,\n\t\t\tresp.Request.Header.Get(\"Accept\"),\n\t\t\tresp.Request.Header.Get(\"X-Cumulocity-Processing-Mode\"),\n\t\t\tresp.StatusCode,\n\t\t\tresponseTime,\n\t\t\tbody.Get(\"self\").Str,\n\t\t\tcacheTag,\n\t\t\tisCachedResponse,\n\t\t)\n\t} else {\n\t\terrorResponse := body.Raw\n\t\tif !strings.HasPrefix(errorResponse, \"{\") {\n\t\t\terrorResponse = \"\\\"\" + errorResponse + \"\\\"\"\n\t\t}\n\t\tfmt.Fprintf(l.w,\n\t\t\t`{\"time\":\"%s\",\"ctx\":\"%s\",\"type\":\"request\",\"method\":\"%s\",\"host\":\"%s\",\"path\":\"%s\",\"query\":\"%s\",\"accept\":\"%s\",\"processingMode\":\"%s\",\"statusCode\":%d,\"responseTimeMS\":%d,\"responseSelf\":\"%s\",\"responseError\":%s}`+\"\\n\",\n\t\t\ttime.Now().Format(time.RFC3339Nano),\n\t\t\tl.contextID,\n\t\t\tresp.Request.Method,\n\t\t\tresp.Request.URL.Host,\n\t\t\tresp.Request.URL.Path,\n\t\t\tquery,\n\t\t\tresp.Request.Header.Get(\"Accept\"),\n\t\t\tresp.Request.Header.Get(\"X-Cumulocity-Processing-Mode\"),\n\t\t\tresp.StatusCode,\n\t\t\tresponseTime,\n\t\t\tbody.Get(\"self\").Str,\n\t\t\terrorResponse,\n\t\t)\n\t}\n}",
"func Logging(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc) {\n\tcurrent := time.Now()\n\n\ttempQueryStr, err := json.Marshal(req.URL.Query())\n\tqueryStr := cleanRequestStr(tempQueryStr, err)\n\n\tbody, err := ioutil.ReadAll(req.Body)\n\tbodyStr := cleanRequestStr(body, err)\n\n\tnext(rw, req)\n\n\tres := rw.(negroni.ResponseWriter)\n\n\tfinished := time.Since(current)\n\n\tlog.Printf(\"{ \\\"User-Agent\\\": \\\"%s\\\", \\\"Url\\\": \\\"%s\\\", \\\"Host\\\": \\\"%s\\\", \\\"Uri\\\": \\\"%s\\\", \\\"Method\\\": \\\"%s\\\", \\\"Status Code\\\": %d, \\\"Query\\\": \\\"%s\\\", \\\"Body\\\": \\\"%s\\\", \\\"Response Time\\\": \\\"%s\\\" \\\"Content-Type\\\": \\\"%s\\\", \\\"Content-Length\\\": %d }\",\n\t\treq.Header.Get(\"User-Agent\"), req.Host+req.RequestURI, req.Host, req.RequestURI, req.Method, res.Status(), queryStr, bodyStr, finished, req.Header.Get(\"Content-Type\"), req.ContentLength)\n\n}"
] | [
"0.66159135",
"0.6223695",
"0.5967588",
"0.57355875",
"0.57094103",
"0.5650907",
"0.5594576",
"0.5542455",
"0.5538726",
"0.5525473",
"0.5518715",
"0.5511315",
"0.5500318",
"0.547063",
"0.54615533",
"0.54507023",
"0.5440722",
"0.5422587",
"0.54035157",
"0.5346922",
"0.5345469",
"0.53411424",
"0.5314027",
"0.53074414",
"0.5295958",
"0.52946126",
"0.5292093",
"0.52805823",
"0.52805823",
"0.52805823",
"0.5272397",
"0.5257473",
"0.52473354",
"0.52469367",
"0.52300423",
"0.521037",
"0.5201901",
"0.51995206",
"0.5199251",
"0.51864505",
"0.518154",
"0.517911",
"0.5177937",
"0.51724935",
"0.51711416",
"0.51569045",
"0.5155878",
"0.51428705",
"0.5142775",
"0.5134851",
"0.5129248",
"0.51274115",
"0.5125251",
"0.5118832",
"0.51183057",
"0.5114687",
"0.5112139",
"0.5103391",
"0.50772685",
"0.50645286",
"0.5046451",
"0.504631",
"0.5044754",
"0.50410813",
"0.5032547",
"0.5031867",
"0.5026518",
"0.5026248",
"0.5015247",
"0.5002355",
"0.49995235",
"0.49974078",
"0.49945173",
"0.49870586",
"0.49855846",
"0.4967997",
"0.49636525",
"0.4950094",
"0.4946359",
"0.49425521",
"0.4937684",
"0.4934439",
"0.49305674",
"0.4930369",
"0.492836",
"0.4926325",
"0.49179882",
"0.49169508",
"0.4911977",
"0.4910955",
"0.49064156",
"0.49031374",
"0.49025193",
"0.49010694",
"0.48866436",
"0.48851064",
"0.4880205",
"0.4875247",
"0.4874208",
"0.48741758"
] | 0.6439289 | 1 |
Deprecated: Use DashboardResponse_ValidatorStatus.Descriptor instead. | func (DashboardResponse_ValidatorStatus) EnumDescriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{4, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ValidatorStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{9}\n}",
"func (*MultipleValidatorStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{11}\n}",
"func (*ValidatorActivationResponse_Status) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*ValidatorStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{8}\n}",
"func (*MultipleValidatorStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{10}\n}",
"func (ValidatorStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{0}\n}",
"func (*DoppelGangerResponse_ValidatorResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{28, 0}\n}",
"func (*ValidateResponse) Descriptor() ([]byte, []int) {\n\treturn file_validation_v1_validation_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*ValidatorActivationResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{3}\n}",
"func (*ValidateResponse) Descriptor() ([]byte, []int) {\n\treturn file_cso_v1_validator_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*ValidatorIndexResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetCheckerStatusV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{13}\n}",
"func (*OrgDomainValidationResponse) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{56}\n}",
"func (*BlockResponse_Validator) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{31, 0}\n}",
"func (*ListChecksResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*ProvideValidationFeedbackResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*ValidatorInfo) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{26}\n}",
"func (*HealthCheckStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*ValidatorsResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{69}\n}",
"func (*ValidateResponse) Descriptor() ([]byte, []int) {\n\treturn file_validate_proto_rawDescGZIP(), []int{1}\n}",
"func (*ApiVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (HealthCheckResponse_HealthStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_api_health_service_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (ProvideValidationFeedbackRequest_ValidationConclusion) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*SinglePasswordValidationResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{127}\n}",
"func (OrgDomainValidationType) EnumDescriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetCheckerStatusV1Request) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{12}\n}",
"func (*Validator) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{24}\n}",
"func (*ValidateRequest) Descriptor() ([]byte, []int) {\n\treturn file_cso_v1_validator_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*ValidateRequest) Descriptor() ([]byte, []int) {\n\treturn file_validation_v1_validation_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*HealthCheckStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{2}\n}",
"func (*CheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_api_servicecontrol_v1_service_controller_proto_rawDescGZIP(), []int{1}\n}",
"func (*Validator) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_validators_http_proto_config_proto_rawDescGZIP(), []int{0}\n}",
"func (*DescribeCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{11}\n}",
"func (*ValidatorsResponse_Result) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{69, 0}\n}",
"func (*DoppelGangerRequest_ValidatorRequest) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{27, 0}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_health_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*RunDurationStatus) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{16}\n}",
"func (*DomainResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{1}\n}",
"func (*CheckerStatusV1) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{14}\n}",
"func (*CheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_authzed_api_v0_acl_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{3}\n}",
"func (*ValidationResult) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dialogflow_v2_validation_result_proto_rawDescGZIP(), []int{1}\n}",
"func (*CreateCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{5}\n}",
"func (*CheckResponse_CheckInfo) Descriptor() ([]byte, []int) {\n\treturn file_google_api_servicecontrol_v1_service_controller_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*ValidatorIndexRequest) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{6}\n}",
"func (ClientBatchListResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_protobuf_client_batch_pb2_client_batch_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*ValidateRefResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_flow_grpc_workflows_proto_rawDescGZIP(), []int{32}\n}",
"func (*ValidatorUpdates) Descriptor() ([]byte, []int) {\n\treturn file_core_abci_v1alpha1_abci_proto_rawDescGZIP(), []int{6}\n}",
"func (*ValidateRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{17}\n}",
"func (*ValidateSubscriptionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{100}\n}",
"func (*CreateCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{1}\n}",
"func (*DescribeCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*SelectorVerificationRes) Descriptor() ([]byte, []int) {\n\treturn file_proto_selector_verification_msgs_proto_rawDescGZIP(), []int{1}\n}",
"func (*ValidatorActivationRequest) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{2}\n}",
"func (*GenesisResponse_ConsensusParams_Validator) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{28, 0, 2}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{9}\n}",
"func (*PatchAnnotationsStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*HealthCheckStatus) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{7}\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommissionResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgWithdrawValidatorCommissionResponse\n}",
"func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_service_greeter_proto_health_health_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_greeter_proto_health_health_proto_rawDescGZIP(), []int{1}\n}",
"func (*OrgDomainValidationRequest) Descriptor() ([]byte, []int) {\n\treturn file_management_proto_rawDescGZIP(), []int{55}\n}",
"func (*FindEnabledHTTPFirewallRuleSetResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_http_firewall_rule_set_proto_rawDescGZIP(), []int{6}\n}",
"func (*DescribeCheckersV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{9}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_interservice_license_control_license_control_proto_rawDescGZIP(), []int{7}\n}",
"func (*CheckAliasValidityResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_alias_v1_alias_proto_rawDescGZIP(), []int{3}\n}",
"func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_quota_quota_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*GetCheckerIssuesV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{16}\n}",
"func (*HealthcheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{11}\n}",
"func (*ValidatorUpdate) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{9}\n}",
"func (*GetStatusCodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{26}\n}",
"func (*ChangeStatus) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v8_resources_change_status_proto_rawDescGZIP(), []int{0}\n}",
"func (HealthCheckResult) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_advanced_http_advanced_http_proto_rawDescGZIP(), []int{0}\n}",
"func (*MultiCreateCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{7}\n}",
"func (VerifyResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_crypto_proto_rawDescGZIP(), []int{5, 0}\n}",
"func (ListRequest_Filter_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_rpc_accord_proto_rawDescGZIP(), []int{7, 0, 0}\n}",
"func (*ListChecksRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*DashboardResponse) Descriptor() ([]byte, []int) {\n\treturn file_xsuportal_services_contestant_dashboard_proto_rawDescGZIP(), []int{1}\n}",
"func (*CheckLiveResponse) Descriptor() ([]byte, []int) {\n\treturn file_health_proto_rawDescGZIP(), []int{3}\n}",
"func (*ValidateTokenResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*RemoveCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{11}\n}",
"func (*CheckHealthResult) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{9}\n}",
"func (*CMsgTeamFanContentStatus_TeamStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{382, 0}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_servers_grpc_proto_grpcservice_proto_rawDescGZIP(), []int{2}\n}",
"func (*SharedMemoryControlResponse_Status) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (*ProvisioningApprovalRequest_Status) Descriptor() ([]byte, []int) {\n\treturn edgelq_devices_proto_v1alpha2_provisioning_approval_request_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*CAccountHardware_VRCompatibilityCheck_Response) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_accounthardware_steamclient_proto_rawDescGZIP(), []int{20}\n}",
"func (*MsgSetValidatorUpdates) Descriptor() ([]byte, []int) {\n\treturn file_core_abci_v1alpha1_abci_proto_rawDescGZIP(), []int{13}\n}",
"func (*MedicationAdministration_StatusCode) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_medication_administration_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*ListStatusCodesRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{27}\n}",
"func (*WatchLimitsResponse) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*GuidanceResponse_StatusCode) Descriptor() ([]byte, []int) {\n\treturn file_proto_google_fhir_proto_r5_core_resources_guidance_response_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*FindEnabledHTTPFirewallRuleSetConfigResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_http_firewall_rule_set_proto_rawDescGZIP(), []int{4}\n}",
"func (*ProvideValidationFeedbackRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{2}\n}",
"func (*CMsgSetTeamFanContentStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{384}\n}",
"func (StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_type_http_status_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.71800166",
"0.69377893",
"0.69059837",
"0.68742335",
"0.6651935",
"0.6635736",
"0.652598",
"0.64595276",
"0.6457469",
"0.644973",
"0.6385363",
"0.63366926",
"0.6244665",
"0.6242736",
"0.6214588",
"0.61832035",
"0.6158607",
"0.6150351",
"0.61386824",
"0.6116977",
"0.6109018",
"0.61062366",
"0.60940355",
"0.60933834",
"0.6092798",
"0.60863864",
"0.60834444",
"0.6068983",
"0.60644495",
"0.60606015",
"0.6050206",
"0.60457027",
"0.60253865",
"0.60120577",
"0.6011872",
"0.60019845",
"0.59925437",
"0.59868085",
"0.5984698",
"0.5979507",
"0.59761345",
"0.5975348",
"0.5971457",
"0.5968521",
"0.5965976",
"0.5965469",
"0.5961134",
"0.59514076",
"0.5943561",
"0.59413105",
"0.5940929",
"0.5937881",
"0.59318906",
"0.59309083",
"0.5929167",
"0.5928682",
"0.59224766",
"0.59161514",
"0.59061867",
"0.5899853",
"0.5893451",
"0.5892267",
"0.58904624",
"0.5889141",
"0.5887088",
"0.58860475",
"0.5882365",
"0.5880798",
"0.5879467",
"0.5871127",
"0.5869671",
"0.5868345",
"0.58616453",
"0.58614534",
"0.58589286",
"0.58566993",
"0.58565193",
"0.58524454",
"0.58481586",
"0.5847231",
"0.58469415",
"0.5842883",
"0.5839999",
"0.58376193",
"0.5832343",
"0.5824963",
"0.58246523",
"0.5823492",
"0.5820431",
"0.582021",
"0.58112174",
"0.58110523",
"0.5810728",
"0.5793528",
"0.5792879",
"0.5791826",
"0.5790435",
"0.5787718",
"0.5785243",
"0.5780387"
] | 0.69497836 | 1 |
Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead. | func (*NodeInfo) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*ExternalGrpcNode) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_register_proto_rawDescGZIP(), []int{0}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{3}\n}",
"func (*NodeDetail) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{3}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{0}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_observer_observer_proto_rawDescGZIP(), []int{10}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{3}\n}",
"func (*NodeGroup) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*NodeType) Descriptor() ([]byte, []int) {\n\treturn file_e2sm_mho_go_v2_e2sm_v2_proto_rawDescGZIP(), []int{14}\n}",
"func (*NodeDNSInfo) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{46}\n}",
"func (*GetDatanodeInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{13}\n}",
"func (*UpdateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{6}\n}",
"func (*RefreshNamenodesResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateNodeDNSRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{49}\n}",
"func (*NodeGroupForNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{2}\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{4}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_ravel_cmd_ravel_node_ravel_node_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*TokenProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{11}\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (*SetNodeConfigRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{47}\n}",
"func (*SemanticTokensDelta) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{223}\n}",
"func (*GetDelegationTokenRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{3}\n}",
"func (*RefreshNamenodesRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{2}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25}\n}",
"func (*TraceProto) Descriptor() ([]byte, []int) {\n\treturn file_internal_tracing_extended_extended_trace_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetDatanodeInfoRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{12}\n}",
"func (*Decl) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2}\n}",
"func (x *fastReflection_Metadata) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Metadata\n}",
"func (*Description) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpgradeNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{24}\n}",
"func (*PlanChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*UpdateNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{7}\n}",
"func (*Module) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_ModuleOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_ModuleOptions\n}",
"func (*Reference) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{9}\n}",
"func (x *fastReflection_FlagOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_FlagOptions\n}",
"func (*PeerInfo) Descriptor() ([]byte, []int) {\n\treturn file_protos_metadata_proto_rawDescGZIP(), []int{10}\n}",
"func (*FollowerInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{40}\n}",
"func ProtoFromMethodDescriptor(d protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto {\n\ttype canProto interface {\n\t\tMethodDescriptorProto() *descriptorpb.MethodDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.MethodDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif md, ok := res.AsProto().(*descriptorpb.MethodDescriptorProto); ok {\n\t\t\treturn md\n\t\t}\n\t}\n\treturn protodesc.ToMethodDescriptorProto(d)\n}",
"func (*NodeSelectors) Descriptor() ([]byte, []int) {\n\treturn file_spire_api_registration_registration_proto_rawDescGZIP(), []int{21}\n}",
"func (*NodeAttribute) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{1}\n}",
"func (*Listen) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func (*TelemetryParams) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{62}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*NodeGroupForNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{5}\n}",
"func (*NodeInfo_ProtocolVersion) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25, 0}\n}",
"func (*UpdateNodeStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{19}\n}",
"func (*ValidatorUpdate) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{9}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*RoleInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{42}\n}",
"func (*SemanticTokensLegend) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{215}\n}",
"func (*GetNodesRequest) Descriptor() ([]byte, []int) {\n\treturn file_observer_observer_proto_rawDescGZIP(), []int{8}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_pkg_metadata_metadata_proto_rawDescGZIP(), []int{2}\n}",
"func (*RequestCalcPNL) Descriptor() ([]byte, []int) {\n\treturn file_tradingnode2_proto_rawDescGZIP(), []int{2}\n}",
"func (*RenewDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{6}\n}",
"func (*Discovery) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{0}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*NodeInfo_Other) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25, 1}\n}",
"func (*LeaderInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{39}\n}",
"func (*PortInfo) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{3}\n}",
"func (*SemanticTokens) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{220}\n}",
"func (*FindEnabledNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{12}\n}",
"func ProtoFromFileDescriptor(d protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto {\n\tif imp, ok := d.(protoreflect.FileImport); ok {\n\t\td = imp.FileDescriptor\n\t}\n\ttype canProto interface {\n\t\tFileDescriptorProto() *descriptorpb.FileDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FileDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FileDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFileDescriptorProto(d)\n}",
"func (x *fastReflection_RpcCommandOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_RpcCommandOptions\n}",
"func (*FetchAttestedNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{26}\n}",
"func (info Info) Proto() (*pb.NodeVersion, error) {\n\treturn &pb.NodeVersion{\n\t\tVersion: info.Version.String(),\n\t\tCommitHash: info.CommitHash,\n\t\tTimestamp: info.Timestamp,\n\t\tRelease: info.Release,\n\t}, nil\n}",
"func (*PlanChange_Added) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*FindEnabledNodeDNSRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{47}\n}",
"func (*PlanChange_Modified) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*UpdateAttestedNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{33}\n}",
"func (*NodeSelectors) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{18}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*StandardProtocols) Descriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{54}\n}",
"func (*NodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_flow_grpc_workflows_proto_rawDescGZIP(), []int{1}\n}",
"func (x *fastReflection_Evidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Evidence\n}",
"func (*SemanticTokensDeltaParams) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{222}\n}",
"func (*EvictWritersResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{11}\n}",
"func ProtoFromFieldDescriptor(d protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto {\n\ttype canProto interface {\n\t\tFieldDescriptorProto() *descriptorpb.FieldDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FieldDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FieldDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFieldDescriptorProto(d)\n}",
"func (*NodeInfo_ProtocolVersion) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*UpdateNSNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{12}\n}",
"func (*NodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{7}\n}",
"func (*Graph) Descriptor() ([]byte, []int) {\n\treturn file_graphsrv_proto_rawDescGZIP(), []int{2}\n}",
"func (*FwdInfo) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{7}\n}",
"func (*Code) Descriptor() ([]byte, []int) {\n\treturn file_internal_pkg_pb_ports_proto_rawDescGZIP(), []int{2}\n}",
"func (*CancelDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateNodeCacheRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{59}\n}",
"func (*PlanChange) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0}\n}",
"func (*LabelDescriptor) Descriptor() ([]byte, []int) {\n\treturn edgelq_logging_proto_v1alpha2_common_proto_rawDescGZIP(), []int{0}\n}",
"func (*WatchRequestTypeProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{25}\n}",
"func (NodeType) EnumDescriptor() ([]byte, []int) {\n\treturn file_ory_keto_relation_tuples_v1alpha2_expand_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.69364315",
"0.68144816",
"0.6789619",
"0.67463",
"0.6712229",
"0.66872543",
"0.6686643",
"0.6667479",
"0.6664469",
"0.66378427",
"0.6628896",
"0.66068846",
"0.65921944",
"0.6588621",
"0.65658015",
"0.6564978",
"0.6551887",
"0.6551805",
"0.65387106",
"0.65343565",
"0.6533754",
"0.65265095",
"0.6522486",
"0.652156",
"0.6499963",
"0.6490758",
"0.6479182",
"0.6467291",
"0.6465025",
"0.6464048",
"0.6446737",
"0.6433989",
"0.64301205",
"0.6428118",
"0.6422025",
"0.6417943",
"0.6402224",
"0.63980573",
"0.63730764",
"0.6370271",
"0.6368526",
"0.6364494",
"0.63618964",
"0.63551307",
"0.6351015",
"0.6343992",
"0.63376695",
"0.63374156",
"0.63360524",
"0.63350517",
"0.6329816",
"0.6319422",
"0.63148063",
"0.63134867",
"0.630713",
"0.6306679",
"0.63036764",
"0.630272",
"0.63010776",
"0.62960213",
"0.62953776",
"0.62925494",
"0.6291457",
"0.62868506",
"0.6277637",
"0.62714076",
"0.62670386",
"0.62662697",
"0.62648004",
"0.626452",
"0.6264159",
"0.62638474",
"0.626361",
"0.62627214",
"0.6262373",
"0.62623256",
"0.62577194",
"0.62554485",
"0.62552476",
"0.6247211",
"0.62404794",
"0.6239404",
"0.62351644",
"0.62342674",
"0.6234017",
"0.6233809",
"0.6233672",
"0.622617",
"0.6222951",
"0.6220906",
"0.6217255",
"0.62136805",
"0.62060106",
"0.6205897",
"0.62058955",
"0.62050146",
"0.6203745",
"0.61994725",
"0.6197927",
"0.6196698"
] | 0.63146913 | 53 |
Deprecated: Use NetInfoResponse.ProtoReflect.Descriptor instead. | func (*NetInfoResponse) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{1}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*NetInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{15}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*GetTeamById_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*DeleteTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (*GetTeamByName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*DiagnoseResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{17}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (*GetDatanodeInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{13}\n}",
"func (x *fastReflection_QueryAccountInfoResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoResponse\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_url_proto_rawDescGZIP(), []int{4}\n}",
"func (*GetNetworkResponse) Descriptor() ([]byte, []int) {\n\treturn file_packetbroker_api_iam_v1_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{7}\n}",
"func (*InfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_auth_svr_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetNetContainerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{45}\n}",
"func (*ListMyTeams_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*ShowResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{9}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{11}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_newfindmaxpb_newfindmaxpb_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{29}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{17}\n}",
"func (*CMsgDOTAGetDPCStandingsResponse_TeamInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (*SetTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{5, 0}\n}",
"func (*LookupResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_ip_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{9}\n}",
"func (*DnsResponse) Descriptor() ([]byte, []int) {\n\treturn file_signalling_proto_rawDescGZIP(), []int{19}\n}",
"func (*VersionNetworkResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{17}\n}",
"func (x *fastReflection_AddressStringToBytesResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressStringToBytesResponse\n}",
"func (*InfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_ric_action_ricaction_proto_rawDescGZIP(), []int{14}\n}",
"func (*GetInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_getInfo_proto_rawDescGZIP(), []int{1}\n}",
"func (*ShimInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_runtime_v1_shim_v1_shim_proto_rawDescGZIP(), []int{14}\n}",
"func (*ListNetworkOperationsResponse) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_vpc_v1_network_service_proto_rawDescGZIP(), []int{16}\n}",
"func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{21}\n}",
"func (*DiffResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{3}\n}",
"func (*ApplyResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgGCPlayerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{117}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{13}\n}",
"func (*DropTeamResponse) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{23}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*ApiVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeviceInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_bitbox02_system_proto_rawDescGZIP(), []int{3}\n}",
"func (*IntrospectResp) Descriptor() ([]byte, []int) {\n\treturn file_external_iam_v2_response_introspect_proto_rawDescGZIP(), []int{1}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (*TrainInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*MemberStatisticsInfoUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{105}\n}",
"func (*GetTeamByShortName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*DescribeResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{5}\n}",
"func (*ReferenceResponse) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*MultiModelVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{91}\n}",
"func (*GetInfoReply) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{11}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (*GetResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_comments_proto_rawDescGZIP(), []int{4}\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*ListenResponse) Descriptor() ([]byte, []int) {\n\treturn file_faultinjector_proto_rawDescGZIP(), []int{9}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{1}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*DelResponse) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{9}\n}",
"func (*CodeLensResponse) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{32}\n}",
"func (*GetInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_elastic_proto_rawDescGZIP(), []int{6}\n}",
"func (*ModifyResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{11}\n}",
"func (CMsgClientToGCGiveTipResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{240, 0}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_GetUserInfo_proto_rawDescGZIP(), []int{3}\n}",
"func (*MemberReceiveAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{87}\n}",
"func (x *fastReflection_AddressBytesToStringResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressBytesToStringResponse\n}",
"func (*UpdateTelemetryReportedResponse) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{30}\n}",
"func (*CreateNetworkResponse) Descriptor() ([]byte, []int) {\n\treturn file_packetbroker_api_iam_v1_service_proto_rawDescGZIP(), []int{4}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{8}\n}",
"func (*VodGetOriginalPlayInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_vod_response_response_vod_proto_rawDescGZIP(), []int{1}\n}",
"func (*LevelInfosResponse) Descriptor() ([]byte, []int) {\n\treturn file_myapp_user_proto_rawDescGZIP(), []int{3}\n}",
"func (*MultiStatValueResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{168}\n}",
"func (*CMsgSocialFeedResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{305}\n}",
"func (*DescribeInstanceResponse) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{29}\n}",
"func (x *fastReflection_MsgFundCommunityPoolResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgFundCommunityPoolResponse\n}",
"func (*FetchResponse) Descriptor() ([]byte, []int) {\n\treturn file_protos_namespaces_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_v1_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{10}\n}",
"func (*Description) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{7}\n}",
"func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) {\n\treturn file_remote_proto_rawDescGZIP(), []int{1}\n}",
"func (*ProtoResponse) Descriptor() ([]byte, []int) {\n\treturn file_user_proto_rawDescGZIP(), []int{2}\n}",
"func (*SingleModelVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{90}\n}",
"func (*CodeLensResolveResponse) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{34}\n}",
"func (EUnderDraftResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{11}\n}",
"func (*MultiModelReferenceResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{106}\n}",
"func (*ScheduleDownlinkResponse) Descriptor() ([]byte, []int) {\n\treturn file_ttn_lorawan_v3_gatewayserver_proto_rawDescGZIP(), []int{2}\n}",
"func (*ContractQueryResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{50}\n}",
"func (*CMsgProfileResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{276}\n}",
"func (*RefreshResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{17}\n}",
"func (*GetNodeConfigResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{46}\n}",
"func (*MemberLevelUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{51}\n}"
] | [
"0.7258217",
"0.71316946",
"0.7043435",
"0.70262074",
"0.7007814",
"0.6954733",
"0.6943055",
"0.689854",
"0.6892944",
"0.68705153",
"0.6846235",
"0.6845639",
"0.6838307",
"0.6797707",
"0.67479277",
"0.674687",
"0.673097",
"0.67246544",
"0.67164415",
"0.6713668",
"0.6708295",
"0.67076373",
"0.6702695",
"0.67020714",
"0.66788846",
"0.666286",
"0.6660477",
"0.66503775",
"0.66484094",
"0.6647297",
"0.6639533",
"0.66385365",
"0.6630943",
"0.6618827",
"0.6618697",
"0.66125196",
"0.66119117",
"0.6605228",
"0.6605004",
"0.659896",
"0.6593035",
"0.65913695",
"0.6590438",
"0.65879256",
"0.6587442",
"0.6585176",
"0.65850145",
"0.6582531",
"0.65820354",
"0.6581512",
"0.65807927",
"0.6580425",
"0.65794384",
"0.6578356",
"0.6574869",
"0.65744615",
"0.6572012",
"0.65701306",
"0.6568742",
"0.6568725",
"0.65670913",
"0.656706",
"0.65670377",
"0.6563934",
"0.65634036",
"0.65632725",
"0.6559362",
"0.6557567",
"0.65571237",
"0.65541416",
"0.65523314",
"0.6551341",
"0.65506876",
"0.65458184",
"0.65436965",
"0.65425175",
"0.6541432",
"0.65388834",
"0.6537233",
"0.65364236",
"0.65354997",
"0.65311706",
"0.65276784",
"0.65275",
"0.6524199",
"0.6524098",
"0.65240973",
"0.6522346",
"0.65207034",
"0.651684",
"0.65120333",
"0.65094066",
"0.6505683",
"0.65047276",
"0.6504629",
"0.6502149",
"0.6501399",
"0.6500376",
"0.64953816",
"0.6494325"
] | 0.6962469 | 5 |
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. | func (*StatusResponse) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{2}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_servers_grpc_proto_grpcservice_proto_rawDescGZIP(), []int{2}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_services_grpcPb_grpc_proto_rawDescGZIP(), []int{9}\n}",
"func (*PatchAnnotationsStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_presence_proto_rawDescGZIP(), []int{6}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (*ResponseStatus) Descriptor() ([]byte, []int) {\n\treturn file_response_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*StatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_servers_grpc_proto_grpcservice_proto_rawDescGZIP(), []int{1}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{27}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetCheckerStatusV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{13}\n}",
"func (*SharedMemoryControlResponse_Status) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_type_http_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*HealthCheckStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{3}\n}",
"func (ClientBatchListResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_protobuf_client_batch_pb2_client_batch_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{16}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_interservice_license_control_license_control_proto_rawDescGZIP(), []int{7}\n}",
"func (*ApiVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*PatchAnnotationsStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetStatusCodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{26}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (*SingleStatusCodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{28}\n}",
"func (UnlockResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_runtime_proto_rawDescGZIP(), []int{13, 0}\n}",
"func (InterfaceUpdateResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{13, 0}\n}",
"func (*HealthCheckStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}",
"func (*UpdateFriendStatusRsp) Descriptor() ([]byte, []int) {\n\treturn file_v1_friend_friend_proto_rawDescGZIP(), []int{3}\n}",
"func (HealthCheckResponse_HealthStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_api_health_service_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (PackageVersionStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_udpa_annotations_status_proto_rawDescGZIP(), []int{0}\n}",
"func (ClientBatchGetResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_protobuf_client_batch_pb2_client_batch_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{1}\n}",
"func (VerifyResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_crypto_proto_rawDescGZIP(), []int{5, 0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{15}\n}",
"func (*GetTeamById_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*GetStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{45}\n}",
"func (*CheckLiveResponse) Descriptor() ([]byte, []int) {\n\treturn file_health_proto_rawDescGZIP(), []int{3}\n}",
"func (ResponseStatus_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_response_status_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*ChangeStatus) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v8_resources_change_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{6}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{17}\n}",
"func (*MultiStatusCodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{29}\n}",
"func (*CheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_api_servicecontrol_v1_service_controller_proto_rawDescGZIP(), []int{1}\n}",
"func (*Status) Descriptor() ([]byte, []int) {\n\treturn file_internal_status_v1_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*MetricsResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{25}\n}",
"func (*StatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_url_proto_rawDescGZIP(), []int{4}\n}",
"func (WebhookCall_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_events_Event_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (*GetStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{15}\n}",
"func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*DiagnoseResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{17}\n}",
"func (*SharedMemoryControlRequest_Status) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{6, 3}\n}",
"func (*StatusServiceResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{10}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (*GetStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_ai_proto_rawDescGZIP(), []int{5}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*ValidatorStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{9}\n}",
"func (*RpcStatus) Descriptor() ([]byte, []int) {\n\treturn file_mocking_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetTeamByName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (WebhookCall_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_uac_Event_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (*InstanceStatus) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{29}\n}",
"func (InvitationStatusResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_ProviderService_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_v1_proto_rawDescGZIP(), []int{7}\n}",
"func (InterfaceGetResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{22, 0}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_health_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_service_greeter_proto_health_health_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*WatchResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{24}\n}",
"func (InterfaceDeleteResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{15, 0}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_greeter_proto_health_health_proto_rawDescGZIP(), []int{1}\n}",
"func (*StatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_communication_proto_rawDescGZIP(), []int{4}\n}",
"func (*BotStatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_star_proto_rawDescGZIP(), []int{2}\n}",
"func (AddPersonResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_protos_face_recognition_service_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*UpdateTelemetryReportedResponse) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{30}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetTeamByShortName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (PgsqlResponsePB_RequestStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_yb_common_pgsql_protocol_proto_rawDescGZIP(), []int{12, 0}\n}",
"func (DashboardResponse_ValidatorStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*DeleteTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (REPLY_STATUS) EnumDescriptor() ([]byte, []int) {\n\treturn file_base_request_response_proto_rawDescGZIP(), []int{0}\n}",
"func (OperationMetadata_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_api_servicemanagement_v1_resources_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_drpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*AgentStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_protobuf_api_proto_rawDescGZIP(), []int{17}\n}",
"func (*CBroadcast_GetBroadcastStatus_Response) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_broadcast_steamclient_proto_rawDescGZIP(), []int{12}\n}",
"func (*QueryPlanStatusRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{24}\n}",
"func (*HttpStatus) Descriptor() ([]byte, []int) {\n\treturn file_envoy_type_http_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{9}\n}",
"func (InterfaceAddResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{11, 0}\n}",
"func (StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_FillerGame_proto_rawDescGZIP(), []int{2}\n}",
"func (GenerateTHSResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_crypto_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*HealthCheckStatus) Descriptor() ([]byte, []int) {\n\treturn file_basicpb_unary_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*RequestStatus) Descriptor() ([]byte, []int) {\n\treturn file_request_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{3}\n}",
"func (*RefreshResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{17}\n}",
"func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_internal_proto_files_domain_probes_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*PingResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_crosstest_v1test_cross_proto_rawDescGZIP(), []int{1}\n}",
"func (*IntrospectResp) Descriptor() ([]byte, []int) {\n\treturn file_external_iam_v2_response_introspect_proto_rawDescGZIP(), []int{1}\n}",
"func (*Response) Descriptor() ([]byte, []int) {\n\treturn file_interservice_notifications_service_events_proto_rawDescGZIP(), []int{10}\n}",
"func (Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_rpc_accord_proto_rawDescGZIP(), []int{0}\n}"
] | [
"0.7229218",
"0.71540385",
"0.7147357",
"0.70882374",
"0.7026954",
"0.7024055",
"0.70157313",
"0.6990237",
"0.6984615",
"0.69795465",
"0.6975349",
"0.69579965",
"0.69501495",
"0.69457436",
"0.6935532",
"0.6927902",
"0.6925934",
"0.6902166",
"0.6892351",
"0.6891685",
"0.6889234",
"0.6865953",
"0.6850057",
"0.6833706",
"0.6832204",
"0.6829826",
"0.68291116",
"0.68284404",
"0.6824745",
"0.68246907",
"0.6823082",
"0.68211395",
"0.6816734",
"0.6808322",
"0.68068796",
"0.6806136",
"0.6805261",
"0.6793403",
"0.67900735",
"0.6784448",
"0.6779382",
"0.6779338",
"0.67775476",
"0.6774815",
"0.67735606",
"0.6773444",
"0.6768638",
"0.67668647",
"0.6744894",
"0.6743813",
"0.67424923",
"0.67418677",
"0.67412937",
"0.6737331",
"0.6734841",
"0.6731289",
"0.672997",
"0.67279077",
"0.67267954",
"0.6725585",
"0.6721462",
"0.6714809",
"0.6710649",
"0.67016876",
"0.6699384",
"0.6699097",
"0.6695235",
"0.6693056",
"0.669232",
"0.66922826",
"0.6690788",
"0.66902745",
"0.6690165",
"0.66844815",
"0.6677845",
"0.6677159",
"0.6674414",
"0.6673803",
"0.6669625",
"0.6668697",
"0.66672647",
"0.666556",
"0.6663394",
"0.6662522",
"0.6660985",
"0.6660317",
"0.6659886",
"0.66595906",
"0.6658736",
"0.6658304",
"0.66560245",
"0.6652753",
"0.6652384",
"0.66518724",
"0.6648931",
"0.6645879",
"0.6645738",
"0.6643625",
"0.66408974",
"0.6640336"
] | 0.680842 | 33 |
Deprecated: Use DealPeerRequest.ProtoReflect.Descriptor instead. | func (*DealPeerRequest) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{3}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{3}\n}",
"func (*CMsgGCPlayerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{117}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*MemberReceiveAddressUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{86}\n}",
"func (*MoneyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_swap_swap_proto_rawDescGZIP(), []int{0}\n}",
"func (*CBroadcast_WebRTCStopped_Request) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_broadcast_steamclient_proto_rawDescGZIP(), []int{47}\n}",
"func (*ApplyTransitionRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_rpc_dealer_proto_rawDescGZIP(), []int{3}\n}",
"func (*MemberReceiveAddressDeleteReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{88}\n}",
"func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryParamsRequest\n}",
"func (*CMsgProfileRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{275}\n}",
"func (*UpdateConversationRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{8}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*ConnectRequest) Descriptor() ([]byte, []int) {\n\treturn file_voice_v1_voice_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{12}\n}",
"func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dialogflow_v2beta1_webhook_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{10}\n}",
"func (*CMsgSocialFeedRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{304}\n}",
"func (*FeedbackRequest) Descriptor() ([]byte, []int) {\n\treturn file_ssn_dataservice_v1_dataservice_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteFriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{7}\n}",
"func (*DecodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_videoservice_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteConversationRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*WebhookRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_dialogflow_v2beta1_webhook_proto_rawDescGZIP(), []int{0}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*AddPersonRequest) Descriptor() ([]byte, []int) {\n\treturn file_protos_face_recognition_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetFriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{7}\n}",
"func (*CMsgClientToGCPlayerStatsRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{143}\n}",
"func (*ObservePartyProposalsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_trading_proto_rawDescGZIP(), []int{41}\n}",
"func (*GetMengerRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_menger_menger_proto_rawDescGZIP(), []int{11}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*RevokeJobRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{20}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{7}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*DeleteFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{29}\n}",
"func (*CMsgDOTASubmitPlayerAvoidRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{13}\n}",
"func (*DeleteWalletLedgerRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_QueryAccountsRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountsRequest\n}",
"func (*DeleteTournamentRecordRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{33}\n}",
"func (*PollCredentialOffersRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{30}\n}",
"func (*CMsgRequestOfferings) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{206}\n}",
"func (*FriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{5}\n}",
"func (*PaymentRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_payment_proto_rawDescGZIP(), []int{0}\n}",
"func (*CleanupRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{14}\n}",
"func (*GenerateMessageRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_ai_generativelanguage_v1beta2_discuss_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*ObservePartyVotesRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_trading_proto_rawDescGZIP(), []int{45}\n}",
"func (*CMsgLoadedRequest) Descriptor() ([]byte, []int) {\n\treturn file_steam_htmlmessages_proto_rawDescGZIP(), []int{46}\n}",
"func (*GetCollectorRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{163}\n}",
"func (x *fastReflection_QueryAccountRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountRequest\n}",
"func (*AddFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{11}\n}",
"func (*GenerateProductMixIdeasRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v2_services_reach_plan_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*QueryPassengerRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_passenger_passenger_proto_rawDescGZIP(), []int{2}\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*ModifyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_recordwants_proto_rawDescGZIP(), []int{6}\n}",
"func (*InviteRequest) Descriptor() ([]byte, []int) {\n\treturn file_ProviderService_proto_rawDescGZIP(), []int{0}\n}",
"func (*CodeLensResolveRequest) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{33}\n}",
"func (x *fastReflection_QueryAccountInfoRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoRequest\n}",
"func (*DropTeamRequest) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{22}\n}",
"func (*DeletePeopleRequest) Descriptor() ([]byte, []int) {\n\treturn file_people_proto_rawDescGZIP(), []int{5}\n}",
"func (*UpdateNetworkRequest) Descriptor() ([]byte, []int) {\n\treturn file_packetbroker_api_iam_v1_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*DeviceDecommissioningRequest) Descriptor() ([]byte, []int) {\n\treturn file_arista_inventory_v1_services_gen_proto_rawDescGZIP(), []int{4}\n}",
"func (*MemberReceiveAddressListReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{83}\n}",
"func (*GetPaymentRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_stripe_proto_rawDescGZIP(), []int{12}\n}",
"func (*DebitRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{13}\n}",
"func (*GetServiceRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{6}\n}",
"func (*RequestPresentationRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteFeedbackRequest) Descriptor() ([]byte, []int) {\n\treturn file_feedbackreq_proto_rawDescGZIP(), []int{6}\n}",
"func (*ConnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{28}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{12}\n}",
"func (*RevokeCertificateRequest) Descriptor() ([]byte, []int) {\n\treturn file_majordomo_proto_rawDescGZIP(), []int{18}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_message_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddProducerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{2}\n}",
"func (*CBroadcast_WebRTCAddHostCandidate_Request) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_broadcast_steamclient_proto_rawDescGZIP(), []int{54}\n}",
"func (*InvitationRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{5}\n}",
"func (*SendRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{5}\n}",
"func (*MemberReceiveAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{87}\n}",
"func (*CMsgClientToGCWageringRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{169}\n}",
"func (*MeshCertificateRequest) Descriptor() ([]byte, []int) {\n\treturn file_security_proto_providers_google_meshca_proto_rawDescGZIP(), []int{0}\n}",
"func (*DelRequest) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{8}\n}",
"func (*SendTestMessageRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_essentialcontacts_v1_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*LookupRequest) Descriptor() ([]byte, []int) {\n\treturn file_authzed_api_v0_acl_service_proto_rawDescGZIP(), []int{10}\n}",
"func (*BlockFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{25}\n}",
"func (*MemberReceiveAddressAddReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{81}\n}",
"func (*ApplyRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_calculator_proto_calc_proto_rawDescGZIP(), []int{0}\n}",
"func (*ImportSteamFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{45}\n}",
"func (*FindWebhookCallRequest) Descriptor() ([]byte, []int) {\n\treturn file_uac_Event_proto_rawDescGZIP(), []int{7}\n}",
"func (*HandleInvitationRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{24}\n}",
"func (*ResolveRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*ProofRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{35}\n}",
"func (*GetProposalsByPartyRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_trading_proto_rawDescGZIP(), []int{23}\n}",
"func (*AcceptInvitationRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{7}\n}",
"func (*PlanChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*DeleteLeaderboardRecordRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{31}\n}",
"func (*EstimateFeeRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_trading_proto_rawDescGZIP(), []int{122}\n}"
] | [
"0.73376155",
"0.7197228",
"0.68277454",
"0.66590935",
"0.6639078",
"0.66343933",
"0.662185",
"0.66187435",
"0.66153944",
"0.6612388",
"0.6612016",
"0.6591618",
"0.6587331",
"0.6585104",
"0.6577058",
"0.65687567",
"0.6563789",
"0.6563369",
"0.6554309",
"0.65464664",
"0.65382993",
"0.6526649",
"0.6525148",
"0.6519843",
"0.65195084",
"0.65141904",
"0.6514073",
"0.65096474",
"0.6503723",
"0.6502237",
"0.6500723",
"0.6500379",
"0.6497607",
"0.64936495",
"0.6492478",
"0.6486826",
"0.6486365",
"0.648455",
"0.6481673",
"0.6479888",
"0.64755994",
"0.64734674",
"0.64587075",
"0.6454053",
"0.64521664",
"0.6448837",
"0.64468396",
"0.64391756",
"0.64331305",
"0.6430763",
"0.64210975",
"0.6420146",
"0.6419793",
"0.64184445",
"0.64156145",
"0.64138216",
"0.6412687",
"0.6412533",
"0.6410633",
"0.6405487",
"0.64032114",
"0.6400946",
"0.6400636",
"0.6395976",
"0.639053",
"0.6387977",
"0.63862014",
"0.6385169",
"0.6384187",
"0.63818973",
"0.63799113",
"0.6378409",
"0.6374789",
"0.6374779",
"0.63745993",
"0.63723135",
"0.63713586",
"0.6365236",
"0.6364564",
"0.636414",
"0.63612586",
"0.636089",
"0.636052",
"0.63568205",
"0.6356309",
"0.6356132",
"0.6353719",
"0.6353152",
"0.6347904",
"0.63475275",
"0.6345354",
"0.63453156",
"0.6344263",
"0.6341061",
"0.6340987",
"0.6339783",
"0.6339288",
"0.63361156",
"0.6335629",
"0.6334292"
] | 0.725278 | 1 |
Deprecated: Use DashboardResponse.ProtoReflect.Descriptor instead. | func (*DashboardResponse) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{4}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*DashboardResponse) Descriptor() ([]byte, []int) {\n\treturn file_xsuportal_services_contestant_dashboard_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDashboardResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetDashboardResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*ListDashboardResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{0}\n}",
"func (*MetricsResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{25}\n}",
"func (*DeleteTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*DashboardRequest) Descriptor() ([]byte, []int) {\n\treturn file_xsuportal_services_contestant_dashboard_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{11}\n}",
"func (*DiagnoseResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{17}\n}",
"func (*GetStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{45}\n}",
"func (*ListDashboardsResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateTelemetryReportedResponse) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{30}\n}",
"func (*GetDashboardGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{9}\n}",
"func (*ListMetricsResponse) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_analysis_proto_v1_metrics_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDashboardGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{4}\n}",
"func (*GetTeamById_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*ReportResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_api_servicecontrol_v1_service_controller_proto_rawDescGZIP(), []int{3}\n}",
"func (*ReadTensorboardUsageResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*TelemetryResponse) Descriptor() ([]byte, []int) {\n\treturn file_automate_gateway_api_telemetry_telemetry_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDashboardRequest) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{6}\n}",
"func (*GetTeamByName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*ListMyTeams_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*PerformanceResponse) Descriptor() ([]byte, []int) {\n\treturn file_commissionService_proto_rawDescGZIP(), []int{5}\n}",
"func (*ListDashboardGroupResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{1}\n}",
"func (*ApplyResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDashboardSummaryResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{23}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (x *fastReflection_AddressStringToBytesResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressStringToBytesResponse\n}",
"func (*GetIndexDashboardResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_mindexd_pb_mindexd_proto_rawDescGZIP(), []int{10}\n}",
"func (*CollectResponse) Descriptor() ([]byte, []int) {\n\treturn file_orc8r_cloud_go_services_analytics_protos_collector_proto_rawDescGZIP(), []int{1}\n}",
"func (x *fastReflection_QueryAccountInfoResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoResponse\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (x *fastReflection_MsgWithdrawValidatorCommissionResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgWithdrawValidatorCommissionResponse\n}",
"func (*SingleCollectorResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{166}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_runtime_v1_shim_v1_shim_proto_rawDescGZIP(), []int{2}\n}",
"func (x *fastReflection_QueryAccountResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountResponse\n}",
"func (*ApiVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*ShowResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{9}\n}",
"func (*FailResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_crosstest_v1test_cross_proto_rawDescGZIP(), []int{3}\n}",
"func (*ScheduleDownlinkResponse) Descriptor() ([]byte, []int) {\n\treturn file_ttn_lorawan_v3_gatewayserver_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteEndpointApiResponse) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*MultiTrendingMetricsViewResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{173}\n}",
"func (x *fastReflection_AddressBytesToStringResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressBytesToStringResponse\n}",
"func (*MultiCollectorResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{165}\n}",
"func (*ResponseAssertions) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_advanced_http_advanced_http_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetTeamByShortName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*UnregisterClusterResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_grpc_proto_cluster_cluster_proto_rawDescGZIP(), []int{4}\n}",
"func (*AddProducerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{23}\n}",
"func (*DeregisterResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{9}\n}",
"func (x *fastReflection_QueryAccountsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountsResponse\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{8}\n}",
"func (*TelemetryResponse) Descriptor() ([]byte, []int) {\n\treturn file_interservice_license_control_license_control_proto_rawDescGZIP(), []int{12}\n}",
"func (*WatchResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{24}\n}",
"func (*DeviceDecommissioningResponse) Descriptor() ([]byte, []int) {\n\treturn file_arista_inventory_v1_services_gen_proto_rawDescGZIP(), []int{5}\n}",
"func (*DelResponse) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{9}\n}",
"func (*ReportLoadResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{6}\n}",
"func (StandardPTransforms_DeprecatedPrimitives) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{4, 1}\n}",
"func (*CheckLiveResponse) Descriptor() ([]byte, []int) {\n\treturn file_health_proto_rawDescGZIP(), []int{3}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (x *fastReflection_MsgFundCommunityPoolResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgFundCommunityPoolResponse\n}",
"func (*EvictWritersResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{11}\n}",
"func (*RefreshResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{17}\n}",
"func (*WatchLimitsResponse) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*MeasureDistanceResponse) Descriptor() ([]byte, []int) {\n\treturn file_coolenv_proto_rawDescGZIP(), []int{4}\n}",
"func (*SetTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{5, 0}\n}",
"func (*DiffResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryParamsResponse\n}",
"func (*RecentMessagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{17}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{7}\n}",
"func (*ListDashboardTabsResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{2}\n}",
"func (*DescribeResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (*LoadStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_envoy_service_load_stats_v3_lrs_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListDashboardGroupsResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{3}\n}",
"func (*WatchResponse) Descriptor() ([]byte, []int) {\n\treturn file_authzed_api_v0_watch_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*ValidateResponse) Descriptor() ([]byte, []int) {\n\treturn file_validation_v1_validation_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*SinglePasswordValidationResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{127}\n}",
"func (*GenerateMessageResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_ai_generativelanguage_v1beta2_discuss_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*ListDashboardTabsResponse) Descriptor() ([]byte, []int) {\n\treturn file_data_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetEndpointApisResponse) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{10}\n}",
"func (EUnderDraftResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{11}\n}",
"func (*LoadBalancerStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_test_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_Bech32PrefixResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Bech32PrefixResponse\n}",
"func (*ReportBenchmarkResultResponse) Descriptor() ([]byte, []int) {\n\treturn file_xsuportal_services_bench_reporting_proto_rawDescGZIP(), []int{1}\n}",
"func (*ExportTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{43}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{9}\n}",
"func (*HealthCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_proto_files_domain_probes_proto_rawDescGZIP(), []int{1}\n}",
"func (*AnalyzeIamPolicyLongrunningResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_asset_v1_asset_service_proto_rawDescGZIP(), []int{31}\n}",
"func (*ValidateResponse) Descriptor() ([]byte, []int) {\n\treturn file_cso_v1_validator_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*DiagnoseRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{16}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{11}\n}",
"func (*SendResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{27}\n}",
"func (*MetricsRequest) Descriptor() ([]byte, []int) {\n\treturn file_ssn_dataservice_v1_dataservice_proto_rawDescGZIP(), []int{11}\n}"
] | [
"0.6999396",
"0.6973531",
"0.6952952",
"0.6878943",
"0.6821695",
"0.6797075",
"0.6783201",
"0.67580855",
"0.6749649",
"0.67484057",
"0.67236006",
"0.6694586",
"0.66872805",
"0.6682051",
"0.66790473",
"0.66745466",
"0.6665327",
"0.66522664",
"0.6649984",
"0.66457385",
"0.6612634",
"0.6601494",
"0.6600917",
"0.6591159",
"0.65558136",
"0.6545023",
"0.65387756",
"0.6537452",
"0.65328807",
"0.65313053",
"0.652308",
"0.6521997",
"0.6521608",
"0.6521599",
"0.65211886",
"0.6518083",
"0.6516174",
"0.6508913",
"0.64982414",
"0.64974266",
"0.6494604",
"0.6487879",
"0.6485375",
"0.6483075",
"0.64789027",
"0.6477026",
"0.6476048",
"0.647559",
"0.647538",
"0.64661413",
"0.6461932",
"0.6461208",
"0.6459643",
"0.645616",
"0.6455234",
"0.6447288",
"0.6446655",
"0.6435055",
"0.64278764",
"0.6419474",
"0.6419361",
"0.6418905",
"0.64142853",
"0.64069253",
"0.640039",
"0.6396275",
"0.63932616",
"0.6392584",
"0.63840437",
"0.63809377",
"0.6377767",
"0.6370596",
"0.63692755",
"0.6368756",
"0.6367214",
"0.6366852",
"0.63642585",
"0.6359597",
"0.63576895",
"0.6356657",
"0.6351507",
"0.6345211",
"0.63447726",
"0.6344714",
"0.63423467",
"0.63423014",
"0.6339459",
"0.63392764",
"0.63389236",
"0.6334808",
"0.6334733",
"0.6330117",
"0.63290215",
"0.63265824",
"0.632626",
"0.6324917",
"0.63220423",
"0.6321944",
"0.6321259",
"0.6320621"
] | 0.6660369 | 17 |
Deprecated: Use AvailableVersionsResponse.ProtoReflect.Descriptor instead. | func (*AvailableVersionsResponse) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{5}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListVersionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{10}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (*NewVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_versiontracker_proto_rawDescGZIP(), []int{2}\n}",
"func (*ApiVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{14}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*VersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_provider_v1alpha1_service_proto_rawDescGZIP(), []int{1}\n}",
"func (*VersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{20}\n}",
"func (APIVersion) EnumDescriptor() ([]byte, []int) {\n\treturn file_dapr_proto_internals_v1_apiversion_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListVersionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{9}\n}",
"func (*GetVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{9}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{7}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (*VersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_cubic_proto_rawDescGZIP(), []int{4}\n}",
"func (*GetVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{11}\n}",
"func (VersionView) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{0}\n}",
"func (*VersionNetworkResponse_Version) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{17, 0}\n}",
"func (*UpgradeResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_pb_protobuf_api_proto_rawDescGZIP(), []int{7}\n}",
"func (*ListModelVersionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{88}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_url_proto_rawDescGZIP(), []int{4}\n}",
"func (*VersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_buildserver_proto_rawDescGZIP(), []int{4}\n}",
"func (*VersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_provider_v1alpha1_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*PatchModelVersionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{86}\n}",
"func (*RefreshResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{17}\n}",
"func (DatapathPodMetadata_APIVersion) EnumDescriptor() ([]byte, []int) {\n\treturn file_transport_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{11}\n}",
"func (*ReleaseListResponse) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{17}\n}",
"func (*MultiModelVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{91}\n}",
"func (*ListRequest) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{0}\n}",
"func (*NewVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_versiontracker_proto_rawDescGZIP(), []int{1}\n}",
"func (*CAccountHardware_VRCompatibilityCheck_Response) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_accounthardware_steamclient_proto_rawDescGZIP(), []int{20}\n}",
"func (*ListBranchesRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{24, 0}\n}",
"func (*UpdateTelemetryReportedResponse) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{30}\n}",
"func (*GetUrlForBlobVersioned_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{36, 0}\n}",
"func (*ComputeRepositoryDiffRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{22, 0}\n}",
"func (*VersionNetworkResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{17}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{15}\n}",
"func (*ReleaseListResponseData) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{20}\n}",
"func (*VersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{17}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{7}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{8}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{1}\n}",
"func (StandardPTransforms_DeprecatedPrimitives) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{4, 1}\n}",
"func (*ShowResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{9}\n}",
"func (*GetAvailablePackagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_kubeappsapis_core_packages_v1alpha1_packages_proto_rawDescGZIP(), []int{2}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{17}\n}",
"func (*ReleaseNameListResponse) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{22}\n}",
"func (*SingleModelVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{90}\n}",
"func (*GetAvailableServicesResponse) Descriptor() ([]byte, []int) {\n\treturn file_contract_proto_rawDescGZIP(), []int{15}\n}",
"func (*OutdatedResponse) Descriptor() ([]byte, []int) {\n\treturn file_cc_arduino_cli_commands_v1_commands_proto_rawDescGZIP(), []int{13}\n}",
"func (*ListTagsRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{28, 0}\n}",
"func (*CheckNodeLatestVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{54}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_v1_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetListResponse) Descriptor() ([]byte, []int) {\n\treturn file_parser_company_proto_rawDescGZIP(), []int{15}\n}",
"func (*CreateResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{14}\n}",
"func (*UpdateVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_appengine_v1_appengine_proto_rawDescGZIP(), []int{13}\n}",
"func (*GetTagRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{29, 0}\n}",
"func (*GetTeamByName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*GetBranchRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{25, 0}\n}",
"func (*GetLatestReleasesResponse) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{24}\n}",
"func (*OrderVersionsByIDResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_trading_proto_rawDescGZIP(), []int{121}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{5}\n}",
"func (VodPlayInfoModelVersion) EnumDescriptor() ([]byte, []int) {\n\treturn file_vod_business_vod_play_proto_rawDescGZIP(), []int{0}\n}",
"func (*ApplyResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateVersion) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{6}\n}",
"func (*ReleaseUpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{7}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetDefinedRevisionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_sequencer_api_proto_rawDescGZIP(), []int{4}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_bucketsd_pb_bucketsd_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetTeamById_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetModelVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{87}\n}",
"func (*ListReleaseNameResponse) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{19}\n}",
"func (*SetBranchRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*ListWorkflowVersionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{140}\n}",
"func (*ListMyTeams_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*MultiWorkflowVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{144}\n}",
"func (EUnderDraftResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{11}\n}",
"func (*CheckNSNodeLatestVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{22}\n}",
"func (*FlagsListResponse) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_sql_v1beta4_cloud_sql_resources_proto_rawDescGZIP(), []int{22}\n}",
"func (*SetTagRequest_Response) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{30, 0}\n}",
"func (*UpdateServicesResponse) Descriptor() ([]byte, []int) {\n\treturn file_contract_proto_rawDescGZIP(), []int{6}\n}",
"func (*ListTeamsResponse) Descriptor() ([]byte, []int) {\n\treturn file_xsuportal_services_audience_team_list_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetEndpointApisResponse) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{10}\n}",
"func (*CandidatesResponse_Deleted) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{44, 0}\n}",
"func (*GetLatestReleasesResponseData) Descriptor() ([]byte, []int) {\n\treturn file_release_proto_rawDescGZIP(), []int{25}\n}",
"func (*ServerVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_marketstore_proto_rawDescGZIP(), []int{18}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{6}\n}",
"func (*MultiScopeDepsResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{110}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_user_user_proto_rawDescGZIP(), []int{4}\n}",
"func (*ProductsListResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_proto_productslist_products_list_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateEndpointApiResponse) Descriptor() ([]byte, []int) {\n\treturn file_endpoint_api_proto_rawDescGZIP(), []int{4}\n}",
"func (*PollCredentialOffersResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{31}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_interservice_license_control_license_control_proto_rawDescGZIP(), []int{10}\n}",
"func (*GetModelVersionMetricsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{94}\n}",
"func (*CAccountHardware_VRCompatibilityCheck_Response_Pair) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_accounthardware_steamclient_proto_rawDescGZIP(), []int{20, 0}\n}",
"func (*UpdateCheckerV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{3}\n}",
"func (*MultiModelVersionInputExampleResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{104}\n}"
] | [
"0.71421933",
"0.6930731",
"0.69130707",
"0.68842393",
"0.68671834",
"0.6864869",
"0.6852539",
"0.68342406",
"0.68193495",
"0.678234",
"0.6744445",
"0.6696269",
"0.6625595",
"0.6603432",
"0.65934813",
"0.6582633",
"0.6544451",
"0.65355897",
"0.6534219",
"0.6527577",
"0.6513352",
"0.6513194",
"0.65110713",
"0.6505045",
"0.6495748",
"0.64924157",
"0.64794236",
"0.6476615",
"0.64757645",
"0.64629346",
"0.64483976",
"0.6445517",
"0.6441879",
"0.644123",
"0.6436513",
"0.643495",
"0.6423164",
"0.6422044",
"0.6420047",
"0.64149445",
"0.6409554",
"0.63987863",
"0.6396196",
"0.6393988",
"0.638695",
"0.6382535",
"0.6380869",
"0.6372322",
"0.637072",
"0.6355565",
"0.6351716",
"0.6337342",
"0.6332501",
"0.6328524",
"0.63202816",
"0.6318054",
"0.6310939",
"0.6309184",
"0.6309027",
"0.6308211",
"0.6307789",
"0.6306806",
"0.630633",
"0.6306037",
"0.6304949",
"0.6301492",
"0.6298081",
"0.6297651",
"0.629748",
"0.6285777",
"0.62846875",
"0.62833005",
"0.6281106",
"0.62800604",
"0.6272426",
"0.6265001",
"0.62606746",
"0.6257395",
"0.6248791",
"0.62476957",
"0.62465805",
"0.6243005",
"0.62425566",
"0.623979",
"0.623977",
"0.6239705",
"0.62376225",
"0.62342715",
"0.6232157",
"0.623074",
"0.62272376",
"0.622301",
"0.6222224",
"0.6221759",
"0.6219461",
"0.6217093",
"0.62147415",
"0.62098837",
"0.6207827",
"0.6207485"
] | 0.7096883 | 1 |
Deprecated: Use PruneBlocksRequest.ProtoReflect.Descriptor instead. | func (*PruneBlocksRequest) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{6}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*MissedBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{64}\n}",
"func (*GetBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteBlockPoolRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{4}\n}",
"func (*BlockRejectRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{18}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{3}\n}",
"func (*CMsgDOTASubmitPlayerAvoidRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{13}\n}",
"func (*PruneBlocksResponse) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{7}\n}",
"func (*DropTeamRequest) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{22}\n}",
"func (*GroupRemoveRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{34}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{10}\n}",
"func (*BlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{10}\n}",
"func (*GetBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{14}\n}",
"func (*RemoveItemFromGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_apps_mconf_pb_request_proto_rawDescGZIP(), []int{7}\n}",
"func (*ParseBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{10}\n}",
"func (*MemberReceiveAddressDeleteReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{88}\n}",
"func (*RemoveRemindRequest) Descriptor() ([]byte, []int) {\n\treturn file_ocp_remind_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{7}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{12}\n}",
"func (*DeleteWalletLedgerRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteLeaderboardRecordRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{31}\n}",
"func (*DeleteLimitRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteBlockPoolResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{5}\n}",
"func (*BuildBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetLastIrreversibleBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{19}\n}",
"func (*ModifyRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{10}\n}",
"func (*BlockVerifyRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{15}\n}",
"func (*BlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{30}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{13}\n}",
"func (*BlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_eth_v1alpha1_validator_proto_rawDescGZIP(), []int{14}\n}",
"func (*DeleteFriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{7}\n}",
"func (*RemoveSnippetV1Request) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_snippet_api_ocp_snippet_api_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_vote_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{8}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{13}\n}",
"func (*RevokeJobRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{20}\n}",
"func (*DeactivateFlowsRequest) Descriptor() ([]byte, []int) {\n\treturn file_pipelined_proto_rawDescGZIP(), []int{7}\n}",
"func (*GetBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{12}\n}",
"func (*CancelPlanRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{22}\n}",
"func (*DeleteFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{29}\n}",
"func (*BlockFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{25}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_dictybase_api_jsonapi_request_proto_rawDescGZIP(), []int{7}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_todo_proto_rawDescGZIP(), []int{7}\n}",
"func (*StopBroadcastRequest) Descriptor() ([]byte, []int) {\n\treturn file_services_core_protobuf_servers_proto_rawDescGZIP(), []int{4}\n}",
"func (*PlanChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*DeleteMicroRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_micro_pb_request_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_apps_mconf_pb_request_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteFeedbackRequest) Descriptor() ([]byte, []int) {\n\treturn file_feedbackreq_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateLimitRequest) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{9}\n}",
"func (*UnthrottleRequest) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{27}\n}",
"func (*PatchTasksRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{154}\n}",
"func (*DeleteAllSlotsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{8}\n}",
"func (*PropagateBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{10}\n}",
"func (*CUserAccount_RevokeFriendInviteToken_Request) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_useraccount_steamclient_proto_rawDescGZIP(), []int{14}\n}",
"func (*BulkDeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{16}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{5}\n}",
"func (*BatchedParseBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{32}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_message_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*BlockRequestPayload) Descriptor() ([]byte, []int) {\n\treturn file_message_proto_rawDescGZIP(), []int{10}\n}",
"func (*RemoveCheckRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{10}\n}",
"func (*RemoveRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_bucketsd_pb_bucketsd_proto_rawDescGZIP(), []int{27}\n}",
"func (*DeleteJobRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{18}\n}",
"func (*CDOTABroadcastMsg_LANLobbyRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_broadcastmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_threads_proto_rawDescGZIP(), []int{31}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*StopExposeRequest) Descriptor() ([]byte, []int) {\n\treturn file_v1_proto_rawDescGZIP(), []int{3}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_order_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteBulkStateRequest) Descriptor() ([]byte, []int) {\n\treturn file_runtime_proto_rawDescGZIP(), []int{33}\n}",
"func (*DeleteConversationRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteSlotRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{4}\n}",
"func (*RemovePermissionFromRoleRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_role_pb_request_proto_rawDescGZIP(), []int{8}\n}",
"func (*DeleteRevisionRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_flow_grpc_workflows_proto_rawDescGZIP(), []int{25}\n}",
"func (*ApplyRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{0}\n}",
"func (*DelRequest) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{8}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_githubcard_proto_rawDescGZIP(), []int{11}\n}",
"func (*EvictWritersRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{10}\n}",
"func (*DeleteTournamentRecordRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{33}\n}",
"func (*MemberAddressDeleteReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{16}\n}",
"func (*DeletePeopleRequest) Descriptor() ([]byte, []int) {\n\treturn file_people_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{162}\n}",
"func (*DeleteGroupRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{30}\n}",
"func (*RevokeTokensRequest) Descriptor() ([]byte, []int) {\n\treturn file_token_proto_rawDescGZIP(), []int{17}\n}",
"func (*UpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_todo_proto_rawDescGZIP(), []int{5}\n}",
"func (*PruneJoinTokensRequest) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{61}\n}",
"func (*DeleteCheckerV1Request) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{4}\n}",
"func (*CAccountHardware_DeRegisterSteamController_Request) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_accounthardware_steamclient_proto_rawDescGZIP(), []int{13}\n}",
"func (*DeleteTasksRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{155}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_ric_action_ricaction_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteWorkflowVersionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{142}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_storage_server_proto_rawDescGZIP(), []int{2}\n}",
"func (*MemberReceiveAddressUpdateReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{86}\n}",
"func (*NodeGroupDecreaseTargetSizeRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{24}\n}",
"func (*Request) Descriptor() ([]byte, []int) {\n\treturn file_Trd_ModifyOrder_proto_rawDescGZIP(), []int{2}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_ssn_dataservice_v1_dataservice_proto_rawDescGZIP(), []int{14}\n}",
"func (*DeleteJobRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_proto_rawDescGZIP(), []int{3}\n}",
"func (*LeaveRequest) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteWorkflowsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{133}\n}",
"func (*CBroadcast_WebRTCStopped_Request) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_broadcast_steamclient_proto_rawDescGZIP(), []int{47}\n}"
] | [
"0.6712287",
"0.66684425",
"0.6635518",
"0.6594498",
"0.6583105",
"0.6581344",
"0.65810823",
"0.6550781",
"0.6547421",
"0.65445024",
"0.6509983",
"0.64804125",
"0.64341146",
"0.64019775",
"0.6400386",
"0.63948405",
"0.63891363",
"0.63682574",
"0.63599366",
"0.6337954",
"0.63376087",
"0.6314651",
"0.631108",
"0.6310476",
"0.63104665",
"0.6302992",
"0.62942034",
"0.6290052",
"0.62875956",
"0.62863076",
"0.6283478",
"0.62738746",
"0.62690645",
"0.6268908",
"0.6254628",
"0.6244596",
"0.62340856",
"0.62332135",
"0.6232118",
"0.622947",
"0.62291986",
"0.62232757",
"0.6222088",
"0.6221052",
"0.6202917",
"0.62026864",
"0.6202425",
"0.61968744",
"0.6196163",
"0.6182531",
"0.6180901",
"0.6176726",
"0.617504",
"0.61714256",
"0.61709505",
"0.61688995",
"0.6166771",
"0.61654425",
"0.61607534",
"0.6160534",
"0.61599237",
"0.61588526",
"0.61585116",
"0.615769",
"0.6157662",
"0.61560017",
"0.6147088",
"0.6145335",
"0.61413723",
"0.6134451",
"0.6133419",
"0.61040723",
"0.61034334",
"0.6101215",
"0.6100149",
"0.6098038",
"0.6094933",
"0.6091502",
"0.6089881",
"0.6078859",
"0.6077593",
"0.60775864",
"0.6076845",
"0.6068696",
"0.60659593",
"0.6063933",
"0.60638684",
"0.6063577",
"0.6059812",
"0.6059554",
"0.60555404",
"0.6052923",
"0.6050629",
"0.60496324",
"0.6048286",
"0.60459286",
"0.6033412",
"0.6029094",
"0.6026155",
"0.6026079"
] | 0.7422345 | 0 |
Deprecated: Use PruneBlocksResponse.ProtoReflect.Descriptor instead. | func (*PruneBlocksResponse) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{7}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*PruneBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{6}\n}",
"func (*GetBlocksResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{33}\n}",
"func (*MissedBlocksResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{65}\n}",
"func (*DeleteBlockPoolResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{5}\n}",
"func (*GetBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetBlocksResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{15}\n}",
"func (*BlockRejectRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{18}\n}",
"func (*MissedBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{64}\n}",
"func (*GetLastIrreversibleBlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{43}\n}",
"func (*DeleteBlockPoolRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{4}\n}",
"func (*DropTeamRequest) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{22}\n}",
"func (*ParseBlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{11}\n}",
"func (*BlocksResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{4}\n}",
"func (*GetLastIrreversibleBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{19}\n}",
"func (*DropTeamResponse) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{23}\n}",
"func (*BuildBlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{9}\n}",
"func (*CMsgDOTASubmitPlayerAvoidRequestResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{14}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{11}\n}",
"func (*GroupRemoveRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{34}\n}",
"func (*BlockVerifyResponse) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{16}\n}",
"func (*CMsgGCToClientRemoveFilteredPlayerResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{329}\n}",
"func (*BatchedParseBlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{33}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{4}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{10}\n}",
"func (*CancelPlanResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{23}\n}",
"func (*GetBlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{14}\n}",
"func (*EvictWritersResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetBlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{13}\n}",
"func (*ParseBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{10}\n}",
"func (*BlocksRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetBlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (*MemberReceiveAddressDeleteResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{89}\n}",
"func (*TriggerBlockReportResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{17}\n}",
"func (*PlanChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*BlockResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{31}\n}",
"func (*DeleteLeaderboardRecordRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{31}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{3}\n}",
"func (*RemoveSnippetV1Response) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_snippet_api_ocp_snippet_api_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{10}\n}",
"func (*CandidatesResponse_Deleted) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{44, 0}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_wallet_proto_rawDescGZIP(), []int{8}\n}",
"func (*ApplyResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{1}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*BlockVerifyRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{15}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgDOTASubmitPlayerAvoidRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{13}\n}",
"func (*BlockParams) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{11}\n}",
"func (*ModifyResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{11}\n}",
"func (*StopBroadcastResponse) Descriptor() ([]byte, []int) {\n\treturn file_services_core_protobuf_servers_proto_rawDescGZIP(), []int{5}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{9}\n}",
"func (*BlockResponsePayload) Descriptor() ([]byte, []int) {\n\treturn file_message_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{8}\n}",
"func (*BlockFriendsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{25}\n}",
"func (*GetBalancerBandwidthResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{19}\n}",
"func (*RemoveRemindRequest) Descriptor() ([]byte, []int) {\n\treturn file_ocp_remind_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*BulkDeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{17}\n}",
"func (*RemoveCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_ocp_check_api_ocp_check_api_proto_rawDescGZIP(), []int{11}\n}",
"func (*NodeGroupDecreaseTargetSizeResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{25}\n}",
"func (*DeleteFeedbackResponse) Descriptor() ([]byte, []int) {\n\treturn file_feedbackreq_proto_rawDescGZIP(), []int{7}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_engine_proto_rawDescGZIP(), []int{13}\n}",
"func (*DeleteWalletLedgerRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{10}\n}",
"func (*ShutdownDatanodeResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{9}\n}",
"func (*UnthrottleResponse) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*DeleteFriendRequest) Descriptor() ([]byte, []int) {\n\treturn file_console_proto_rawDescGZIP(), []int{7}\n}",
"func (*BlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{30}\n}",
"func (*BatchedParseBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{32}\n}",
"func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{35}\n}",
"func (*MemberReceiveAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{87}\n}",
"func (*RemoveResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_bucketsd_pb_bucketsd_proto_rawDescGZIP(), []int{28}\n}",
"func (*RemoveTeamUser_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{9, 0}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{7}\n}",
"func (*CancelPlanRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{22}\n}",
"func (*BuildBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{8}\n}",
"func (*DevAddrBlocksValue) Descriptor() ([]byte, []int) {\n\treturn file_packetbroker_api_iam_v1_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*EvictWritersRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{10}\n}",
"func (*DecreaseAllowance) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{6}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*GetBlockRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{12}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_v1_task_proto_rawDescGZIP(), []int{14}\n}",
"func (*SubmitDiskBalancerPlanResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{21}\n}",
"func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{29}\n}",
"func (*ShutdownDatanodeRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{8}\n}",
"func (*StopBroadcastRequest) Descriptor() ([]byte, []int) {\n\treturn file_services_core_protobuf_servers_proto_rawDescGZIP(), []int{4}\n}",
"func (*DelResponse) Descriptor() ([]byte, []int) {\n\treturn file_patrol_proto_rawDescGZIP(), []int{9}\n}",
"func (*UnthrottleRequest) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{27}\n}",
"func (*GetBlockByHashResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{34}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_vote_proto_rawDescGZIP(), []int{5}\n}",
"func (*MemberReceiveAddressDeleteReq) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{88}\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{1}\n}",
"func (*BlockResponse_Validator) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{31, 0}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_grpc_exercicio_proto_rawDescGZIP(), []int{7}\n}",
"func (*VodDeleteTranscodesResponse) Descriptor() ([]byte, []int) {\n\treturn file_vod_response_response_vod_proto_rawDescGZIP(), []int{14}\n}",
"func (*ApplyRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_versions_v1_versions_proto_rawDescGZIP(), []int{11}\n}",
"func (*DeleteRequest) Descriptor() ([]byte, []int) {\n\treturn file_weather_proto_rawDescGZIP(), []int{8}\n}",
"func (*RefreshNamenodesResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetBlockLocalPathInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{7}\n}"
] | [
"0.7164857",
"0.7060283",
"0.69364023",
"0.68549263",
"0.68131334",
"0.6811786",
"0.67821634",
"0.6763106",
"0.676111",
"0.6751022",
"0.6732498",
"0.6720747",
"0.67076147",
"0.66866887",
"0.6664229",
"0.661898",
"0.66184443",
"0.6610144",
"0.6597406",
"0.6588694",
"0.65864354",
"0.6563054",
"0.65451336",
"0.65384364",
"0.6538404",
"0.6513797",
"0.6508568",
"0.6502164",
"0.6491948",
"0.64915675",
"0.6484953",
"0.6474392",
"0.64693767",
"0.64648426",
"0.64517695",
"0.644539",
"0.64417326",
"0.64285797",
"0.6426222",
"0.64207387",
"0.64197785",
"0.63992804",
"0.63955975",
"0.6389096",
"0.63839996",
"0.6383332",
"0.63802445",
"0.6371112",
"0.6357836",
"0.63546515",
"0.6353566",
"0.6348788",
"0.6347641",
"0.6344766",
"0.6342061",
"0.63390744",
"0.6337579",
"0.6329422",
"0.6319465",
"0.6319113",
"0.63152707",
"0.6314364",
"0.63060635",
"0.6304009",
"0.63020253",
"0.62977606",
"0.6295691",
"0.6292302",
"0.6290776",
"0.6287879",
"0.62871724",
"0.6287122",
"0.6284141",
"0.62839824",
"0.6283382",
"0.62769103",
"0.627459",
"0.62742674",
"0.62679756",
"0.62663",
"0.62660533",
"0.626166",
"0.62601405",
"0.62599283",
"0.6259927",
"0.62599194",
"0.62535894",
"0.6248228",
"0.6246457",
"0.6243291",
"0.6242408",
"0.62416995",
"0.6241108",
"0.6240798",
"0.6240024",
"0.6235172",
"0.6234807",
"0.6233793",
"0.62302345",
"0.6228345"
] | 0.74172634 | 0 |
Deprecated: Use NodeInfo_ProtocolVersion.ProtoReflect.Descriptor instead. | func (*NodeInfo_ProtocolVersion) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{0, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*NodeInfo_ProtocolVersion) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25, 0}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*UpdateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{6}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_register_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpgradeNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{24}\n}",
"func (*UpdateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{11}\n}",
"func (*RefreshNamenodesResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{3}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{0}\n}",
"func (*ExternalGrpcNode) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{7}\n}",
"func (*NodeDetail) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateNodeDNSRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{49}\n}",
"func (*RefreshNamenodesRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{2}\n}",
"func (*NodeGroup) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*NodeDNSInfo) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{46}\n}",
"func (*GetDatanodeInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{13}\n}",
"func (*NodeGroupForNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func (info Info) Proto() (*pb.NodeVersion, error) {\n\treturn &pb.NodeVersion{\n\t\tVersion: info.Version.String(),\n\t\tCommitHash: info.CommitHash,\n\t\tTimestamp: info.Timestamp,\n\t\tRelease: info.Release,\n\t}, nil\n}",
"func (*UpdateNodeStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{19}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*CheckNSNodeLatestVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{21}\n}",
"func (*NodeType) Descriptor() ([]byte, []int) {\n\treturn file_e2sm_mho_go_v2_e2sm_v2_proto_rawDescGZIP(), []int{14}\n}",
"func (*UpgradeNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{25}\n}",
"func (*CheckNodeLatestVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{53}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{3}\n}",
"func (*UpdateNSNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{12}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{3}\n}",
"func (*SetNodeConfigRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{47}\n}",
"func (*UpdateNSNodeStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{18}\n}",
"func (*GetVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{9}\n}",
"func (*NodeGroupForNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{5}\n}",
"func (*Description) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{7}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetDatanodeInfoRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{12}\n}",
"func (*UpdateNodeConnectedAPINodesRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{30}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{2}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_observer_observer_proto_rawDescGZIP(), []int{10}\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*PeerInfo) Descriptor() ([]byte, []int) {\n\treturn file_protos_metadata_proto_rawDescGZIP(), []int{10}\n}",
"func (*LeaderInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{39}\n}",
"func (*SemanticTokensDelta) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{223}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_ravel_cmd_ravel_node_ravel_node_proto_rawDescGZIP(), []int{0}\n}",
"func (Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*CheckNodeLatestVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{54}\n}",
"func (*UpdateNodeSystemRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{58}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*CheckNSNodeLatestVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{22}\n}",
"func (*FindAllUpgradeNodesWithNodeClusterIdRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{38}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{0}\n}",
"func (*DeleteNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{9}\n}",
"func (*FindAllUpgradeNodesWithNodeClusterIdResponse) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{39}\n}",
"func (*FindAllUpgradeNodesWithNodeClusterIdResponse_NodeUpgrade) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{39, 0}\n}",
"func (*ComposeNSBoardResponse_NodeStat) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_proto_rawDescGZIP(), []int{1, 2}\n}",
"func (*PortInfo) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateAttestedNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{34}\n}",
"func (*UpdateAttestedNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_spire_server_datastore_datastore_proto_rawDescGZIP(), []int{33}\n}",
"func (*UpdateNSNodeConnectedAPINodesRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_ns_node_proto_rawDescGZIP(), []int{26}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*NodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{7}\n}",
"func (*NodeSelectors) Descriptor() ([]byte, []int) {\n\treturn file_spire_api_registration_registration_proto_rawDescGZIP(), []int{21}\n}",
"func (*TelemetryParams) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{62}\n}",
"func (*FindEnabledNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{12}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (*ValidatorUpdate) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{9}\n}",
"func (*NodeInfo_Other) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25, 1}\n}",
"func (x *fastReflection_ModuleOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_ModuleOptions\n}",
"func (*TokenProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateNodeCacheRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{59}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*FollowerInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{40}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (*RequestCalcPNL) Descriptor() ([]byte, []int) {\n\treturn file_tradingnode2_proto_rawDescGZIP(), []int{2}\n}",
"func (*SemanticTokensDeltaParams) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{222}\n}",
"func (*NewEpoch_RemoteEpochChange) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{25, 0}\n}",
"func (*NodeAttribute) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetDelegationTokenRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{3}\n}",
"func (*RoleInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{42}\n}",
"func (*NewVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_versiontracker_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetNodesRequest) Descriptor() ([]byte, []int) {\n\treturn file_observer_observer_proto_rawDescGZIP(), []int{8}\n}",
"func (StandardPTransforms_DeprecatedPrimitives) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{4, 1}\n}",
"func (NodeType) EnumDescriptor() ([]byte, []int) {\n\treturn file_ory_keto_relation_tuples_v1alpha2_expand_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*StandardProtocols) Descriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{54}\n}",
"func (*NodeGroupNodesRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{26}\n}",
"func (*RenewDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{6}\n}",
"func (*DeleteNodeFromNodeClusterRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{10}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_pkg_metadata_metadata_proto_rawDescGZIP(), []int{2}\n}",
"func (*FindEnabledNodeDNSRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{47}\n}",
"func (Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_ameliaikeda_protoc_gen_router_proto_router_proto_rawDescGZIP(), []int{0}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*NodeInfo_Other) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*SemanticTokens) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{220}\n}",
"func (*EpochChange) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{21}\n}",
"func (*NodeGroupsRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{2}\n}",
"func (*VersionParams) Descriptor() ([]byte, []int) {\n\treturn file_tm_replay_proto_rawDescGZIP(), []int{18}\n}"
] | [
"0.70231503",
"0.6974284",
"0.6699534",
"0.6698667",
"0.667441",
"0.66616344",
"0.6653639",
"0.6638551",
"0.65840435",
"0.6578531",
"0.65762794",
"0.657594",
"0.655451",
"0.65534824",
"0.6551982",
"0.6525005",
"0.651444",
"0.65068525",
"0.65056646",
"0.64860517",
"0.64814746",
"0.64642763",
"0.6464211",
"0.64438653",
"0.64429957",
"0.6424285",
"0.6414081",
"0.6413005",
"0.6405423",
"0.64015573",
"0.63978523",
"0.6392057",
"0.638781",
"0.63875335",
"0.6377506",
"0.63644177",
"0.6362202",
"0.6350008",
"0.63471156",
"0.6331519",
"0.63285327",
"0.632514",
"0.63185024",
"0.63169783",
"0.6310661",
"0.63040394",
"0.62978226",
"0.62901455",
"0.6287883",
"0.62844664",
"0.6282799",
"0.62804693",
"0.62753433",
"0.6269233",
"0.6263268",
"0.62507343",
"0.6250458",
"0.62497747",
"0.62418664",
"0.6232678",
"0.62323695",
"0.6222862",
"0.62228477",
"0.6219638",
"0.6209982",
"0.6208504",
"0.62078315",
"0.62043273",
"0.6201612",
"0.61995226",
"0.619706",
"0.61951035",
"0.6189088",
"0.618875",
"0.61868536",
"0.6185828",
"0.6182975",
"0.6182702",
"0.6178979",
"0.6176138",
"0.617352",
"0.6172705",
"0.6172561",
"0.6168927",
"0.61682045",
"0.61676025",
"0.6159733",
"0.6159254",
"0.6158452",
"0.61563236",
"0.61559665",
"0.6154383",
"0.6151948",
"0.6148661",
"0.61477757",
"0.6144642",
"0.6141905",
"0.61353767",
"0.6132751",
"0.61317784"
] | 0.6930071 | 2 |
Deprecated: Use NodeInfo_Other.ProtoReflect.Descriptor instead. | func (*NodeInfo_Other) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{0, 1}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*NodeInfo_Other) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25, 1}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*ExternalGrpcNode) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*NodeDetail) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{3}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_proto_register_proto_rawDescGZIP(), []int{0}\n}",
"func (*NodeGroup) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{0}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{3}\n}",
"func (*NodeType) Descriptor() ([]byte, []int) {\n\treturn file_e2sm_mho_go_v2_e2sm_v2_proto_rawDescGZIP(), []int{14}\n}",
"func (*TokenProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetDatanodeInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{13}\n}",
"func (*PlanChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_observer_observer_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_FlagOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_FlagOptions\n}",
"func (*RefreshNamenodesResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{2}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{3}\n}",
"func (*NodeGroupForNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{4}\n}",
"func (*GetDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{4}\n}",
"func (*UpdateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{6}\n}",
"func (*NodeDNSInfo) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{46}\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*TraceProto) Descriptor() ([]byte, []int) {\n\treturn file_internal_tracing_extended_extended_trace_proto_rawDescGZIP(), []int{0}\n}",
"func (x *fastReflection_Metadata) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Metadata\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFieldDescriptor(d)\n\tcase protoreflect.OneofDescriptor:\n\t\treturn ProtoFromOneofDescriptor(d)\n\tcase protoreflect.EnumDescriptor:\n\t\treturn ProtoFromEnumDescriptor(d)\n\tcase protoreflect.EnumValueDescriptor:\n\t\treturn ProtoFromEnumValueDescriptor(d)\n\tcase protoreflect.ServiceDescriptor:\n\t\treturn ProtoFromServiceDescriptor(d)\n\tcase protoreflect.MethodDescriptor:\n\t\treturn ProtoFromMethodDescriptor(d)\n\tdefault:\n\t\t// WTF??\n\t\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\t\treturn res.AsProto()\n\t\t}\n\t\treturn nil\n\t}\n}",
"func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (x *fastReflection_LightClientAttackEvidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_LightClientAttackEvidence\n}",
"func (x *fastReflection_ModuleOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_ModuleOptions\n}",
"func (*Description) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{7}\n}",
"func (*PeerInfo) Descriptor() ([]byte, []int) {\n\treturn file_protos_metadata_proto_rawDescGZIP(), []int{10}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{25}\n}",
"func (*PlanChange_Modified) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*SemanticTokensDelta) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{223}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_ravel_cmd_ravel_node_ravel_node_proto_rawDescGZIP(), []int{0}\n}",
"func (StandardPTransforms_DeprecatedPrimitives) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{4, 1}\n}",
"func (*SomeOtherMessage) Descriptor() ([]byte, []int) {\n\treturn file_exampleTwo_proto_rawDescGZIP(), []int{0}\n}",
"func (*NodeGroupForNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{5}\n}",
"func (RefType) EnumDescriptor() ([]byte, []int) {\n\treturn file_common_trace_common_proto_rawDescGZIP(), []int{1}\n}",
"func (*UpdateNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{7}\n}",
"func ProtoFromFieldDescriptor(d protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto {\n\ttype canProto interface {\n\t\tFieldDescriptorProto() *descriptorpb.FieldDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FieldDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FieldDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFieldDescriptorProto(d)\n}",
"func (Span_Link_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 3, 0}\n}",
"func (*FollowerInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{40}\n}",
"func (*Module) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{3}\n}",
"func (NodeType) EnumDescriptor() ([]byte, []int) {\n\treturn file_ory_keto_relation_tuples_v1alpha2_expand_service_proto_rawDescGZIP(), []int{0}\n}",
"func (*UpdateNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{11}\n}",
"func (*GetDelegationTokenRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_Evidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_Evidence\n}",
"func (*TelemetryParams) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{62}\n}",
"func (*NewEpoch_RemoteEpochChange) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{25, 0}\n}",
"func (*CMsgDOTARealtimeGameStats_TeamDetails) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{27, 0}\n}",
"func (*PlanChange) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetDatanodeInfoRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{12}\n}",
"func (*DistributionChange_Removed) Descriptor() ([]byte, []int) {\n\treturn edgelq_applications_proto_v1alpha2_distribution_change_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*RefreshNamenodesRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*LeaderInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{39}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*PlanChange_Current) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 2}\n}",
"func (*PlanChange_Added) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*NodeInfo) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{0}\n}",
"func (*SetNodeConfigRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{47}\n}",
"func (*RequestCalcPNL) Descriptor() ([]byte, []int) {\n\treturn file_tradingnode2_proto_rawDescGZIP(), []int{2}\n}",
"func (*Instance) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*FwdInfo) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{7}\n}",
"func (SetNodeConfigRequest_ConfigType) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{47, 0}\n}",
"func ProtoFromMethodDescriptor(d protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto {\n\ttype canProto interface {\n\t\tMethodDescriptorProto() *descriptorpb.MethodDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.MethodDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif md, ok := res.AsProto().(*descriptorpb.MethodDescriptorProto); ok {\n\t\t\treturn md\n\t\t}\n\t}\n\treturn protodesc.ToMethodDescriptorProto(d)\n}",
"func (*SemanticTokensLegend) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{215}\n}",
"func (*BodyOldPeer) Descriptor() ([]byte, []int) {\n\treturn file_github_com_getamis_alice_crypto_tss_addshare_message_proto_rawDescGZIP(), []int{1}\n}",
"func (*ListenerTracingSettings) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_v1_options_tracing_tracing_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListenerTracingSettings) Descriptor() ([]byte, []int) {\n\treturn file_github_com_solo_io_gloo_projects_gloo_api_v1_options_tracing_tracing_proto_rawDescGZIP(), []int{0}\n}",
"func (*NodeAttribute) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{1}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*EpochChange) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{21}\n}",
"func (*UpdateNodeDNSRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{49}\n}",
"func (*Real) Descriptor() ([]byte, []int) {\n\treturn file_jsonpb_proto_test2_proto_rawDescGZIP(), []int{6}\n}",
"func ProtoFromFileDescriptor(d protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto {\n\tif imp, ok := d.(protoreflect.FileImport); ok {\n\t\td = imp.FileDescriptor\n\t}\n\ttype canProto interface {\n\t\tFileDescriptorProto() *descriptorpb.FileDescriptorProto\n\t}\n\tif res, ok := d.(canProto); ok {\n\t\treturn res.FileDescriptorProto()\n\t}\n\tif res, ok := d.(DescriptorProtoWrapper); ok {\n\t\tif fd, ok := res.AsProto().(*descriptorpb.FileDescriptorProto); ok {\n\t\t\treturn fd\n\t\t}\n\t}\n\treturn protodesc.ToFileDescriptorProto(d)\n}",
"func (Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*Demo5Request_Other) Descriptor() ([]byte, []int) {\n\treturn file_example_demo5_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*Span_Link) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 3}\n}",
"func (*ReplyCalcPNL) Descriptor() ([]byte, []int) {\n\treturn file_tradingnode2_proto_rawDescGZIP(), []int{3}\n}",
"func (x *fastReflection_RpcCommandOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_RpcCommandOptions\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (*Reference) Descriptor() ([]byte, []int) {\n\treturn file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{3}\n}",
"func (*RenewDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{6}\n}",
"func (*Link) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{2}\n}",
"func (*DistributionChange_Current) Descriptor() ([]byte, []int) {\n\treturn edgelq_applications_proto_v1alpha2_distribution_change_proto_rawDescGZIP(), []int{0, 2}\n}",
"func (*MetricInfo) Descriptor() ([]byte, []int) {\n\treturn file_msgType_proto_rawDescGZIP(), []int{15}\n}",
"func (*AnalysisMessageWeakSchema) Descriptor() ([]byte, []int) {\n\treturn file_analysis_v1alpha1_message_proto_rawDescGZIP(), []int{1}\n}",
"func (*RoleInfoProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{42}\n}",
"func (*StrategyChange) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*CancelDelegationTokenResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_Security_proto_rawDescGZIP(), []int{8}\n}",
"func (*Node) Descriptor() ([]byte, []int) {\n\treturn file_pkg_metadata_metadata_proto_rawDescGZIP(), []int{2}\n}",
"func (*UpgradeNodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_service_node_proto_rawDescGZIP(), []int{24}\n}",
"func (x *fastReflection_DelegatorWithdrawInfo) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_DelegatorWithdrawInfo\n}",
"func (Host_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_clickhouse_v1_cluster_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}"
] | [
"0.7139093",
"0.6629182",
"0.6543184",
"0.641069",
"0.63494414",
"0.634422",
"0.6343555",
"0.625032",
"0.6246697",
"0.62324184",
"0.6230805",
"0.6219852",
"0.62170714",
"0.61934257",
"0.6190685",
"0.6176584",
"0.6170566",
"0.6161578",
"0.61609554",
"0.6156575",
"0.6152747",
"0.6151292",
"0.6145132",
"0.6134371",
"0.6133449",
"0.61276495",
"0.6126949",
"0.6115237",
"0.6114138",
"0.6113625",
"0.6104857",
"0.6099212",
"0.6096027",
"0.6095445",
"0.60912055",
"0.60901874",
"0.6086826",
"0.60813075",
"0.6075449",
"0.6075237",
"0.6058473",
"0.60566366",
"0.6055886",
"0.60549015",
"0.60524446",
"0.60456103",
"0.6039012",
"0.6038097",
"0.6033931",
"0.60241103",
"0.60238606",
"0.60189307",
"0.60188556",
"0.60187525",
"0.601393",
"0.60121024",
"0.6002282",
"0.60008794",
"0.5998973",
"0.5998704",
"0.5990158",
"0.5989828",
"0.59887385",
"0.5988",
"0.59778047",
"0.59773874",
"0.59725857",
"0.59707075",
"0.59692687",
"0.595786",
"0.59561855",
"0.59436756",
"0.594108",
"0.594108",
"0.59406585",
"0.5940635",
"0.59395105",
"0.5937009",
"0.59328914",
"0.5932756",
"0.5931119",
"0.5928392",
"0.59282523",
"0.5926899",
"0.5925762",
"0.592124",
"0.5921227",
"0.59191084",
"0.591216",
"0.5911912",
"0.59114593",
"0.59070474",
"0.5906724",
"0.59047216",
"0.59021163",
"0.59019655",
"0.5901401",
"0.5899482",
"0.58980626",
"0.589372"
] | 0.6999033 | 1 |
Deprecated: Use NetInfoResponse_Peer.ProtoReflect.Descriptor instead. | func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{1, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*PeerInfo) Descriptor() ([]byte, []int) {\n\treturn file_protos_metadata_proto_rawDescGZIP(), []int{10}\n}",
"func (x *fastReflection_QueryAccountInfoResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoResponse\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}",
"func (*GetTeamById_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*DeleteTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (*NetInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (*MemberReceiveAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{87}\n}",
"func (*GetDatanodeInfoResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{13}\n}",
"func (*CMsgDOTAGetDPCStandingsResponse_TeamInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (*GetTeamByName_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*CMsgGCToClientPrivateChatInfoResponse_Member) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (x *fastReflection_AddressStringToBytesResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressStringToBytesResponse\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{7}\n}",
"func (CMsgGCToClientRemoveFilteredPlayerResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{329, 0}\n}",
"func (*SetTeam_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{5, 0}\n}",
"func (*CMsgProfileUpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278}\n}",
"func (x *fastReflection_RpcCommandOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_RpcCommandOptions\n}",
"func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) {\n\treturn file_remote_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgDOTAGetRecentPlayTimeFriendsResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{260}\n}",
"func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{29}\n}",
"func (x *fastReflection_AddressBytesToStringResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_AddressBytesToStringResponse\n}",
"func (x *fastReflection_MsgFundCommunityPoolResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgFundCommunityPoolResponse\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{1}\n}",
"func (*NetInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1}\n}",
"func (CMsgProfileResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{276, 0}\n}",
"func (*CMsgGCToClientPrivateChatInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{6}\n}",
"func (x *fastReflection_QueryAccountResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountResponse\n}",
"func (*ListResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{15}\n}",
"func (*ListMyTeams_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*NetProtoTalker) Descriptor() ([]byte, []int) {\n\treturn file_pkg_smgrpc_smgrpc_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgProfileResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{276}\n}",
"func (CMsgClientToGCRecyclePlayerCardResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{215, 0}\n}",
"func (*GetStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{45}\n}",
"func (CMsgClientToGCGiveTipResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{240, 0}\n}",
"func (*DeleteResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{11}\n}",
"func (*CMsgPrivateMetadataKeyResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{286}\n}",
"func (*PeerDesc) Descriptor() ([]byte, []int) {\n\treturn file_pkt_proto_rawDescGZIP(), []int{4}\n}",
"func (CMsgDOTADestroyLobbyResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{258, 0}\n}",
"func (*UpdateConversationResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{9}\n}",
"func (x *fastReflection_QueryAccountsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountsResponse\n}",
"func (CMsgSocialFeedResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{305, 0}\n}",
"func (*GetPinnedMessagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{26}\n}",
"func (*CMsgSocialFeedResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{305}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (CMsgGCToClientPrivateChatResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*RemoveTeamUser_Response) Descriptor() ([]byte, []int) {\n\treturn file_uac_Team_proto_rawDescGZIP(), []int{9, 0}\n}",
"func (*ShowResponse) Descriptor() ([]byte, []int) {\n\treturn file_teams_v1_teams_proto_rawDescGZIP(), []int{9}\n}",
"func (CMsgGCToClientGetFavoritePlayersResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{341, 0}\n}",
"func (*CMsgGCPlayerInfoRequest_PlayerInfo) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{117, 0}\n}",
"func (*UpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_contact_proto_rawDescGZIP(), []int{13}\n}",
"func (*GetNetworkResponse) Descriptor() ([]byte, []int) {\n\treturn file_packetbroker_api_iam_v1_service_proto_rawDescGZIP(), []int{5}\n}",
"func (*Peer) Descriptor() ([]byte, []int) {\n\treturn file_service_proto_rawDescGZIP(), []int{4}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (ReplyType) EnumDescriptor() ([]byte, []int) {\n\treturn file_fk_atlas_proto_rawDescGZIP(), []int{13}\n}",
"func (*MemberLevelUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{51}\n}",
"func (*CodeLensResolveResponse) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{34}\n}",
"func (*FindPersonResponse) Descriptor() ([]byte, []int) {\n\treturn file_protos_face_recognition_service_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_uber_cadence_api_v1_service_workflow_proto_rawDescGZIP(), []int{21}\n}",
"func (EUnderDraftResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{11}\n}",
"func (CMsgClientToGCGetFavoriteAllStarPlayerResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{364, 0}\n}",
"func (*ContractQueryResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{50}\n}",
"func (CMsgSocialFeedCommentsResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{307, 0}\n}",
"func (*DecodeReply) Descriptor() ([]byte, []int) {\n\treturn file_proto_videoservice_proto_rawDescGZIP(), []int{1}\n}",
"func (*LookupResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_ip_proto_rawDescGZIP(), []int{1}\n}",
"func (*FriendResponse) Descriptor() ([]byte, []int) {\n\treturn file_grpc_user_proto_rawDescGZIP(), []int{10}\n}",
"func (*MemberStatisticsInfoUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{105}\n}",
"func (*UpdateNodeResponse) Descriptor() ([]byte, []int) {\n\treturn file_pkg_noderpc_proto_feeds_manager_proto_rawDescGZIP(), []int{7}\n}",
"func (*DiffResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_api_services_diff_v1_diff_proto_rawDescGZIP(), []int{3}\n}",
"func (CMsgClientToGCSetFavoriteAllStarPlayerResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{362, 0}\n}",
"func (*MemberUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{6}\n}",
"func (*MemberReceiveAddressDeleteResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{89}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0}\n}",
"func (CMsgServerToGCRequestPlayerRecentAccomplishmentsResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{59, 0}\n}",
"func (*PollCredentialOffersResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{31}\n}",
"func (*VodGetOriginalPlayInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_vod_response_response_vod_proto_rawDescGZIP(), []int{1}\n}",
"func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryParamsResponse\n}",
"func (*ShimInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_containerd_containerd_runtime_v1_shim_v1_shim_proto_rawDescGZIP(), []int{14}\n}",
"func (*RaftRpcReplyProto) Descriptor() ([]byte, []int) {\n\treturn file_raft_proto_rawDescGZIP(), []int{12}\n}",
"func (x *fastReflection_QueryAccountInfoRequest) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoRequest\n}",
"func (*CMsgDOTASetProfilePrivacyResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{57}\n}",
"func (*DropTeamResponse) Descriptor() ([]byte, []int) {\n\treturn file_mods_v1_mods_proto_rawDescGZIP(), []int{23}\n}",
"func (*ReferenceResponse) Descriptor() ([]byte, []int) {\n\treturn file_protocol_rpc_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*DiagnoseResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_api_proto_rawDescGZIP(), []int{17}\n}",
"func (CMsgGCToClientGetFilteredPlayersResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{327, 0}\n}",
"func (x *fastReflection_MsgSetWithdrawAddressResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgSetWithdrawAddressResponse\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*MemberAddressUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{15}\n}",
"func (*CMsgClientToGCHasPlayerVotedForMVPResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{180}\n}",
"func (*GetInfoReply) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{11}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetNodeConfigResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{46}\n}"
] | [
"0.7720509",
"0.7625685",
"0.73649263",
"0.7346305",
"0.7018351",
"0.7013589",
"0.68728596",
"0.6818311",
"0.6808547",
"0.6772348",
"0.67720854",
"0.67656475",
"0.6719669",
"0.67061055",
"0.66959524",
"0.6686506",
"0.6686382",
"0.6675787",
"0.6656791",
"0.66376364",
"0.6629689",
"0.66249585",
"0.6624388",
"0.66207486",
"0.6605562",
"0.6605102",
"0.6603992",
"0.6591877",
"0.65890735",
"0.6587223",
"0.65834004",
"0.65660983",
"0.6565266",
"0.65651244",
"0.6562672",
"0.65621835",
"0.65602",
"0.6559791",
"0.6555675",
"0.6545824",
"0.6541113",
"0.6534219",
"0.6529817",
"0.6529786",
"0.65284085",
"0.65282637",
"0.6527799",
"0.65237284",
"0.6521157",
"0.6517953",
"0.65149933",
"0.65122163",
"0.650781",
"0.65058213",
"0.650544",
"0.65041316",
"0.6500461",
"0.64919144",
"0.6489352",
"0.6488166",
"0.64849514",
"0.6479626",
"0.6476505",
"0.6475292",
"0.64742434",
"0.6471607",
"0.6469538",
"0.6466844",
"0.6466792",
"0.6463945",
"0.64615214",
"0.6460055",
"0.64574677",
"0.64562166",
"0.6454497",
"0.64527816",
"0.645129",
"0.64448357",
"0.6443956",
"0.64379936",
"0.64348394",
"0.6433142",
"0.6432542",
"0.64322203",
"0.6431808",
"0.6431698",
"0.6429618",
"0.6427304",
"0.6418762",
"0.6416662",
"0.6415085",
"0.6414809",
"0.6414069",
"0.64133865",
"0.6411888",
"0.64109415",
"0.6409541",
"0.6402978",
"0.64023954",
"0.64003605"
] | 0.75221556 | 2 |
Deprecated: Use NetInfoResponse_Peer_ConnectionStatus.ProtoReflect.Descriptor instead. | func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{1, 0, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Monitor) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Monitor) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Channel) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0, 1}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Channel) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0, 0, 1}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (Connector_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_kafka_v1_connector_proto_rawDescGZIP(), []int{10, 1}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*FetchNumberOfNewConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{23}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (ConnectionStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_nb_identity_proto_rawDescGZIP(), []int{0}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*ListConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{21}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (*AreConnectedResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{19}\n}",
"func (CMsgClientToGCRecyclePlayerCardResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{215, 0}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*FetchConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{8}\n}",
"func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*CMsgTeamFanContentStatus_TeamStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{382, 0}\n}",
"func (*ConnectStatus) Descriptor() ([]byte, []int) {\n\treturn file_Notify_proto_rawDescGZIP(), []int{2}\n}",
"func (Connector_Health) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_kafka_v1_connector_proto_rawDescGZIP(), []int{10, 0}\n}",
"func (*OnlineStatus) Descriptor() ([]byte, []int) {\n\treturn file_chat_chat_proto_rawDescGZIP(), []int{3}\n}",
"func (*FetchNumberOfTotalConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{27}\n}",
"func (CMsgClientToGCCavernCrawlRequestMapStateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{298, 0}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (InterfaceUpdateResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{13, 0}\n}",
"func (CMsgClientToGCGiveTipResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{240, 0}\n}",
"func (Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (ProbeConf_ProtocolType) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_probes_http_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*CreateConnectionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{13}\n}",
"func (*MarConnectionAsSeenRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{25}\n}",
"func (CMsgSocialFeedCommentsResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{307, 0}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*InstanceStatus) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{29}\n}",
"func (*ChangeStatus) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v8_resources_change_status_proto_rawDescGZIP(), []int{0}\n}",
"func (CMsgDOTAJoinChatChannelResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{13, 0}\n}",
"func (ProbeConf_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*UpdateFriendStatusRsp) Descriptor() ([]byte, []int) {\n\treturn file_v1_friend_friend_proto_rawDescGZIP(), []int{3}\n}",
"func (CMsgSocialFeedResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{305, 0}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*FetchNumberOfNewConnectionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{22}\n}",
"func (ProtocolType) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_filter_network_jres_proxy_v2alpha1_jres_proxy_proto_rawDescGZIP(), []int{0}\n}",
"func (NetworkLoadBalancer_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (CLC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (PgsqlResponsePB_RequestStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_yb_common_pgsql_protocol_proto_rawDescGZIP(), []int{12, 0}\n}",
"func (CMsgGCToClientPrivateChatResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*QueryPlanStatusRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{24}\n}",
"func (CMsgClientToGCCreatePlayerCardPackResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{217, 0}\n}",
"func (CandidatesRequest_CandidateStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{43, 0}\n}",
"func (CMsgDOTADestroyLobbyResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{258, 0}\n}",
"func (x *fastReflection_QueryAccountInfoResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoResponse\n}",
"func (PackageVersionStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_udpa_annotations_status_proto_rawDescGZIP(), []int{0}\n}",
"func (CMsgClientToGCOpenPlayerCardPackResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{213, 0}\n}",
"func (*CUserAccount_GetAccountLinkStatus_Response) Descriptor() ([]byte, []int) {\n\treturn file_steammessages_useraccount_steamclient_proto_rawDescGZIP(), []int{3}\n}",
"func (CMsgClientToGCRecycleHeroRelicResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{268, 0}\n}",
"func (AddPersonResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_protos_face_recognition_service_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (StandardProtocols_Enum) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{54, 0}\n}",
"func (Layer_LayerStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_spacemesh_v1_types_proto_rawDescGZIP(), []int{15, 0}\n}",
"func (InterfaceGetResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{22, 0}\n}",
"func (CMsgServerToGCRequestPlayerRecentAccomplishmentsResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{59, 0}\n}",
"func (VerifyResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_crypto_proto_rawDescGZIP(), []int{5, 0}\n}",
"func (CLC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*IsConnectionRequestSentResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{20}\n}",
"func (CMsgGCToClientRemoveFilteredPlayerResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{329, 0}\n}",
"func (*GetServicesResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{21}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (*PollConnectionResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{27}\n}",
"func (TargetState_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{3, 0}\n}",
"func (*NetInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26}\n}",
"func (FriendStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_v1_friend_friend_proto_rawDescGZIP(), []int{0}\n}",
"func (PeerState) EnumDescriptor() ([]byte, []int) {\n\treturn file_raft_serverpb_raft_serverpb_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetTabletStatusRequestPB) Descriptor() ([]byte, []int) {\n\treturn file_yb_tserver_tserver_proto_rawDescGZIP(), []int{12}\n}",
"func (*GetStatusCodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{26}\n}",
"func (NET_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{0}\n}",
"func (*ConnectResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{4}\n}",
"func (*PingResponse) Descriptor() ([]byte, []int) {\n\treturn file_internal_crosstest_v1test_cross_proto_rawDescGZIP(), []int{1}\n}",
"func (Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_drpc_proto_rawDescGZIP(), []int{0}\n}",
"func (SVC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{4}\n}",
"func (*StatusResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_servers_grpc_proto_grpcservice_proto_rawDescGZIP(), []int{2}\n}",
"func (PolicyBasedRoute_Filter_ProtocolVersion) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_cloud_networkconnectivity_v1_policy_based_routing_proto_rawDescGZIP(), []int{0, 2, 0}\n}",
"func (CMsgClientToGCVoteForArcanaResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{190, 0}\n}",
"func (*GameServerClusterConnectionInfo) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{12}\n}",
"func (CMsgProfileResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{276, 0}\n}",
"func (Gateway_Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_mesh_v1alpha1_gateway_proto_rawDescGZIP(), []int{0, 1, 0}\n}",
"func (*ConnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{28}\n}",
"func (Cluster_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_clickhouse_v1_cluster_proto_rawDescGZIP(), []int{0, 2}\n}",
"func (*CMsgProfileUpdateResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278}\n}",
"func (WebhookCall_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_uac_Event_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (OracleSpec_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_oracles_v1_oracle_spec_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetPinnedMessagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{26}\n}",
"func (CMsgClientToGCRequestPlayerRecentAccomplishmentsResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{346, 0}\n}",
"func (*AreConnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{16}\n}",
"func (*S2CStatusChange) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{11}\n}"
] | [
"0.7582559",
"0.71144164",
"0.70530164",
"0.704228",
"0.69927704",
"0.69235235",
"0.6775396",
"0.6715232",
"0.6704952",
"0.6600862",
"0.6584247",
"0.6581724",
"0.6525318",
"0.64970976",
"0.64953136",
"0.6480459",
"0.64668584",
"0.64628935",
"0.6455383",
"0.64240134",
"0.6422702",
"0.64206356",
"0.6417177",
"0.6403687",
"0.6399966",
"0.6372837",
"0.6368168",
"0.63346",
"0.6333493",
"0.63298273",
"0.6329806",
"0.6325105",
"0.6309754",
"0.63060784",
"0.62985253",
"0.62977856",
"0.6284657",
"0.6284554",
"0.6280686",
"0.6280383",
"0.62764376",
"0.6275703",
"0.6272926",
"0.6271941",
"0.62565553",
"0.6252943",
"0.62502646",
"0.62477946",
"0.62475175",
"0.6244531",
"0.62432665",
"0.6238308",
"0.623687",
"0.6230247",
"0.6226944",
"0.6225612",
"0.6223882",
"0.6221931",
"0.6221013",
"0.6218744",
"0.6214546",
"0.6214134",
"0.62121236",
"0.62100947",
"0.62087584",
"0.6204471",
"0.6202383",
"0.6202281",
"0.61966705",
"0.61948127",
"0.6192344",
"0.61888045",
"0.618796",
"0.6187462",
"0.6176859",
"0.61700577",
"0.616981",
"0.6169084",
"0.61683697",
"0.61660564",
"0.6160397",
"0.6159297",
"0.6158867",
"0.6157447",
"0.61485344",
"0.61387885",
"0.6137421",
"0.61358476",
"0.61336607",
"0.6133149",
"0.61302143",
"0.61292493",
"0.61291885",
"0.6128384",
"0.61280715",
"0.6126255",
"0.6125257",
"0.6124111",
"0.61217856",
"0.612039"
] | 0.7538137 | 1 |
Deprecated: Use NetInfoResponse_Peer_ConnectionStatus_Monitor.ProtoReflect.Descriptor instead. | func (*NetInfoResponse_Peer_ConnectionStatus_Monitor) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{1, 0, 0, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*NetInfoResponse_Peer_ConnectionStatus_Monitor) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Channel) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0, 1}\n}",
"func (Connector_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_kafka_v1_connector_proto_rawDescGZIP(), []int{10, 1}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Channel) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0, 0, 1}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*ConnectStatus) Descriptor() ([]byte, []int) {\n\treturn file_Notify_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (*MarConnectionAsSeenRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{25}\n}",
"func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) {\n\treturn edgelq_monitoring_proto_v3_monitored_resource_descriptor_proto_rawDescGZIP(), []int{0}\n}",
"func (Connector_Health) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_kafka_v1_connector_proto_rawDescGZIP(), []int{10, 0}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*OnlineStatus) Descriptor() ([]byte, []int) {\n\treturn file_chat_chat_proto_rawDescGZIP(), []int{3}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (*QueryHostMonitorDataResp) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{8}\n}",
"func (*FetchNumberOfNewConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{23}\n}",
"func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (*CMsgTeamFanContentStatus_TeamStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{382, 0}\n}",
"func (*ChangeStatus) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v8_resources_change_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*ConnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{28}\n}",
"func (ConnectionStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_nb_identity_proto_rawDescGZIP(), []int{0}\n}",
"func (*ListConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{21}\n}",
"func (*UpdateDisconnectedServicesConfigRes) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{14}\n}",
"func (*QueryPlanStatusRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{24}\n}",
"func (Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (*GetMetricsInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{44}\n}",
"func (*CP2P_WatchSynchronization) Descriptor() ([]byte, []int) {\n\treturn file_c_peer2peer_netmessages_proto_rawDescGZIP(), []int{5}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*MemberStatisticsInfoUpdateResp) Descriptor() ([]byte, []int) {\n\treturn file_ums_proto_rawDescGZIP(), []int{105}\n}",
"func (*InstanceStatus) Descriptor() ([]byte, []int) {\n\treturn file_cloudprovider_externalgrpc_protos_externalgrpc_proto_rawDescGZIP(), []int{29}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (ProbeConf_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*NewEpoch_RemoteEpochChange) Descriptor() ([]byte, []int) {\n\treturn file_msgs_msgs_proto_rawDescGZIP(), []int{25, 0}\n}",
"func (CLC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*GetPinnedMessagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{26}\n}",
"func (*CNETMsg_Disconnect) Descriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{10}\n}",
"func (*PollConnectionRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{26}\n}",
"func (x *fastReflection_LightClientAttackEvidence) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_LightClientAttackEvidence\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetVersionRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{9}\n}",
"func (*PollStatsRequest) Descriptor() ([]byte, []int) {\n\treturn file_ligato_configurator_statspoller_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgScreenInformationChanged) Descriptor() ([]byte, []int) {\n\treturn file_steam_htmlmessages_proto_rawDescGZIP(), []int{112}\n}",
"func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_index_proto_rawDescGZIP(), []int{0}\n}",
"func (*SharedMemoryControlRequest_Status) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{6, 3}\n}",
"func (*CheckLiveRequest) Descriptor() ([]byte, []int) {\n\treturn file_health_proto_rawDescGZIP(), []int{2}\n}",
"func (*GetTabletStatusRequestPB) Descriptor() ([]byte, []int) {\n\treturn file_yb_tserver_tserver_proto_rawDescGZIP(), []int{12}\n}",
"func (*CMsgGCToClientEventStatusChanged) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{142}\n}",
"func (NetworkLoadBalancer_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (*FetchNumberOfNewConnectionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{22}\n}",
"func (*S2CStatusChange) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{11}\n}",
"func (*WatchLimitResponse) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{6}\n}",
"func (*PollConnectionResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{27}\n}",
"func (*ListConnectionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{20}\n}",
"func (*CNETMsg_Disconnect) Descriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{10}\n}",
"func (*WatchLimitsResponse) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{8}\n}",
"func (*GetStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_rpc_proto_rawDescGZIP(), []int{15}\n}",
"func (*RunDurationStatus) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{16}\n}",
"func (CLC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*CheckResponse_CheckInfo) Descriptor() ([]byte, []int) {\n\treturn file_google_api_servicecontrol_v1_service_controller_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (CMsgClientToGCCavernCrawlRequestMapStateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{298, 0}\n}",
"func (*GetBalancerBandwidthResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{19}\n}",
"func (*UpdateFriendStatusRsp) Descriptor() ([]byte, []int) {\n\treturn file_v1_friend_friend_proto_rawDescGZIP(), []int{3}\n}",
"func (*GetDisconnectedServicesConfigReq) Descriptor() ([]byte, []int) {\n\treturn file_external_applications_applications_proto_rawDescGZIP(), []int{13}\n}",
"func (*StatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_servers_grpc_proto_grpcservice_proto_rawDescGZIP(), []int{1}\n}",
"func (*CheckLiveResponse) Descriptor() ([]byte, []int) {\n\treturn file_health_proto_rawDescGZIP(), []int{3}\n}",
"func (SVC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{4}\n}",
"func (*CMsgTeamFanContentStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{382}\n}",
"func (*SharedMemoryControlResponse_Status) Descriptor() ([]byte, []int) {\n\treturn file_grpc_service_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (*GetStatisticsBroadcastResponse) Descriptor() ([]byte, []int) {\n\treturn file_services_core_protobuf_servers_proto_rawDescGZIP(), []int{3}\n}",
"func (NET_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{0}\n}",
"func (*GetVersionResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{31}\n}",
"func (Gateway_Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_mesh_v1alpha1_gateway_proto_rawDescGZIP(), []int{0, 1, 0}\n}",
"func (*RefreshNamenodesResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{3}\n}",
"func (*Monitoring) Descriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_clickhouse_v1_cluster_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgDOTAUpdateMatchManagementStats) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{52}\n}",
"func (*GetCheckerStatusV1Response) Descriptor() ([]byte, []int) {\n\treturn file_checker_v1_proto_rawDescGZIP(), []int{13}\n}",
"func (*BatchGetGatewayConnectionStatsRequest) Descriptor() ([]byte, []int) {\n\treturn file_ttn_lorawan_v3_gatewayserver_proto_rawDescGZIP(), []int{4}\n}",
"func (*WinRMListener) Descriptor() ([]byte, []int) {\n\treturn file_moc_common_computecommon_proto_rawDescGZIP(), []int{0}\n}",
"func (Cluster_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_clickhouse_v1_cluster_proto_rawDescGZIP(), []int{0, 2}\n}",
"func (QueryMonitorTime) EnumDescriptor() ([]byte, []int) {\n\treturn file_api_proto_rawDescGZIP(), []int{0}\n}",
"func (*ServerStatusRequest) Descriptor() ([]byte, []int) {\n\treturn file_observer_observer_proto_rawDescGZIP(), []int{0}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{45}\n}",
"func (CMsgDOTADestroyLobbyResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{258, 0}\n}",
"func (*PlanChange_Modified) Descriptor() ([]byte, []int) {\n\treturn edgelq_limits_proto_v1alpha2_plan_change_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (*BatchGetGatewayConnectionStatsResponse) Descriptor() ([]byte, []int) {\n\treturn file_ttn_lorawan_v3_gatewayserver_proto_rawDescGZIP(), []int{5}\n}",
"func (*NetMessageConnectionClosed) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networksystem_protomessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*CMsgGCToClientPlaytestStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{230}\n}",
"func (*CDOTABroadcastMsg_LANLobbyRequest) Descriptor() ([]byte, []int) {\n\treturn file_dota_broadcastmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*FetchConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{8}\n}",
"func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParams\n}",
"func (ProbeConf_ProtocolType) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_probes_http_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*CNETMsg_Disconnect) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networkbasetypes_proto_rawDescGZIP(), []int{7}\n}"
] | [
"0.77993214",
"0.7024845",
"0.69798213",
"0.66229516",
"0.6595024",
"0.6576593",
"0.6547243",
"0.6533606",
"0.64512223",
"0.64488095",
"0.64341307",
"0.6390702",
"0.63636154",
"0.6350546",
"0.6337412",
"0.6321992",
"0.6270059",
"0.62671864",
"0.62546766",
"0.6233916",
"0.62232774",
"0.622001",
"0.62121964",
"0.6211025",
"0.6204671",
"0.6174759",
"0.6168479",
"0.6162233",
"0.61569244",
"0.61499923",
"0.6149396",
"0.6145745",
"0.6132598",
"0.61298215",
"0.6127303",
"0.61202115",
"0.61183065",
"0.61042017",
"0.61001754",
"0.6099727",
"0.60992956",
"0.60904753",
"0.6087086",
"0.60870713",
"0.60864633",
"0.60805213",
"0.6078664",
"0.6077835",
"0.6074849",
"0.60735446",
"0.6072342",
"0.60679734",
"0.6066082",
"0.60637957",
"0.6063682",
"0.60532564",
"0.60530746",
"0.60515314",
"0.6051525",
"0.60505956",
"0.6046858",
"0.60436976",
"0.60434026",
"0.6036883",
"0.60354996",
"0.60332566",
"0.60272616",
"0.60270613",
"0.6025904",
"0.6024812",
"0.6015021",
"0.6013336",
"0.60116917",
"0.6001958",
"0.59990346",
"0.59989005",
"0.59943783",
"0.59910196",
"0.5988234",
"0.5986114",
"0.5983138",
"0.59802854",
"0.5979816",
"0.597579",
"0.5975611",
"0.59739053",
"0.59732383",
"0.5972458",
"0.5971686",
"0.59702367",
"0.59699285",
"0.59669715",
"0.5964561",
"0.59568685",
"0.5953647",
"0.5953294",
"0.5953131",
"0.5951564",
"0.5950466",
"0.59504616"
] | 0.7742436 | 1 |
Deprecated: Use NetInfoResponse_Peer_ConnectionStatus_Channel.ProtoReflect.Descriptor instead. | func (*NetInfoResponse_Peer_ConnectionStatus_Channel) Descriptor() ([]byte, []int) {
return file_manager_proto_rawDescGZIP(), []int{1, 0, 0, 1}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*NetInfoResponse_Peer_ConnectionStatus_Channel) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0, 1}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Monitor) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0, 0, 0}\n}",
"func (*NetInfoResponse_Peer_ConnectionStatus_Monitor) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0, 0, 0}\n}",
"func (Connector_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_kafka_v1_connector_proto_rawDescGZIP(), []int{10, 1}\n}",
"func (*GetPeerInfoResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{28}\n}",
"func (*FetchNumberOfNewConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{23}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{26, 0}\n}",
"func (CMsgDOTAJoinChatChannelResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{13, 0}\n}",
"func (*GetPeerInfoRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{6}\n}",
"func (Connector_Health) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_kafka_v1_connector_proto_rawDescGZIP(), []int{10, 0}\n}",
"func (ConnectionStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_nb_identity_proto_rawDescGZIP(), []int{0}\n}",
"func (*NetInfoResponse_Peer) Descriptor() ([]byte, []int) {\n\treturn file_manager_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (CMsgClientToGCRecyclePlayerCardResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{215, 0}\n}",
"func (CMsgProfileUpdateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{278, 0}\n}",
"func (SocketAddress_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_core_v3_address_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (StatusMessage_Reference) EnumDescriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (*GetChannelMessagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{10}\n}",
"func (*ConnectStatus) Descriptor() ([]byte, []int) {\n\treturn file_Notify_proto_rawDescGZIP(), []int{2}\n}",
"func (*ListConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{21}\n}",
"func (CLC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*QueryPlanStatusResponseProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{25}\n}",
"func (*AddPeerResponse) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{30}\n}",
"func (*FetchConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{8}\n}",
"func (CMsgSocialFeedCommentsResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{307, 0}\n}",
"func (*CMsgTeamFanContentStatus_TeamStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{382, 0}\n}",
"func (InterfaceUpdateResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{13, 0}\n}",
"func (GetChannelMessagesRequest_Direction) EnumDescriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{9, 0}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (CLC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{1}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (*OnlineStatus) Descriptor() ([]byte, []int) {\n\treturn file_chat_chat_proto_rawDescGZIP(), []int{3}\n}",
"func (CandidatesRequest_CandidateStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_resources_proto_rawDescGZIP(), []int{43, 0}\n}",
"func (CMsgGCToClientRemoveFilteredPlayerResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{329, 0}\n}",
"func (CMsgGCToClientPrivateChatResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{4, 0}\n}",
"func (ProbeConf_ProtocolType) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_probes_http_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (*FetchNumberOfTotalConnectionsResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{27}\n}",
"func (*CSVCMsg_ServerInfo) Descriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{24}\n}",
"func (ProtocolType) EnumDescriptor() ([]byte, []int) {\n\treturn file_envoy_config_filter_network_jres_proxy_v2alpha1_jres_proxy_proto_rawDescGZIP(), []int{0}\n}",
"func (*AreConnectedResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{19}\n}",
"func (CMsgSocialFeedResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{305, 0}\n}",
"func (ProbeConf_Type) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescGZIP(), []int{0, 0}\n}",
"func (NET_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{0}\n}",
"func (StandardProtocols_Enum) EnumDescriptor() ([]byte, []int) {\n\treturn file_org_apache_beam_model_pipeline_v1_beam_runner_api_proto_rawDescGZIP(), []int{54, 0}\n}",
"func (*FetchNumberOfNewConnectionsRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{22}\n}",
"func (SetNodeConfigRequest_ConfigType) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{47, 0}\n}",
"func (CMsgClientToGCCreatePlayerCardPackResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{217, 0}\n}",
"func (CMsgClientToGCGiveTipResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{240, 0}\n}",
"func (WebhookCall_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_uac_Event_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (CMsgDOTADestroyLobbyResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{258, 0}\n}",
"func (*MarConnectionAsSeenRequest) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{25}\n}",
"func (SVC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{4}\n}",
"func (CMsgClientToGCOpenPlayerCardPackResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{213, 0}\n}",
"func (Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_loadbalancer_v1_network_load_balancer_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (CMsgClientToGCCavernCrawlRequestMapStateResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{298, 0}\n}",
"func (*CMsgDOTARequestChatChannelListResponse) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{19}\n}",
"func (WebhookCall_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_events_Event_proto_rawDescGZIP(), []int{7, 0}\n}",
"func (PackageVersionStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_udpa_annotations_status_proto_rawDescGZIP(), []int{0}\n}",
"func (*PollConnectionResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{27}\n}",
"func (CMsgClientToGCRecycleHeroRelicResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{268, 0}\n}",
"func (*ChangeStatus) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v8_resources_change_status_proto_rawDescGZIP(), []int{0}\n}",
"func (NET_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{0}\n}",
"func (*CMsgDOTARequestChatChannelListResponse_ChatChannel) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{19, 0}\n}",
"func (P2P_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_c_peer2peer_netmessages_proto_rawDescGZIP(), []int{0}\n}",
"func (*AddPeerRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_yahuizhan_dappley_metrics_go_api_rpc_pb_rpc_proto_rawDescGZIP(), []int{8}\n}",
"func (*CMsgGCToClientPrivateChatInfoResponse_Member) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_chat_proto_rawDescGZIP(), []int{6, 0}\n}",
"func (CMsgServerToGCRequestPlayerRecentAccomplishmentsResponse_EResponse) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_common_proto_rawDescGZIP(), []int{59, 0}\n}",
"func (*NetMessageConnectionClosed) Descriptor() ([]byte, []int) {\n\treturn file_artifact_networksystem_protomessages_proto_rawDescGZIP(), []int{1}\n}",
"func (Cluster_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_yandex_cloud_mdb_clickhouse_v1_cluster_proto_rawDescGZIP(), []int{0, 2}\n}",
"func (InterfaceGetResponse_StatusCode) EnumDescriptor() ([]byte, []int) {\n\treturn file_jnx_interfaces_service_proto_rawDescGZIP(), []int{22, 0}\n}",
"func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_MsgUpdateParamsResponse\n}",
"func (*GameServerClusterConnectionInfo) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{12}\n}",
"func (PeerState) EnumDescriptor() ([]byte, []int) {\n\treturn file_raft_serverpb_raft_serverpb_proto_rawDescGZIP(), []int{0}\n}",
"func (Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_drpc_proto_rawDescGZIP(), []int{0}\n}",
"func (*CreateConnectionResponse) Descriptor() ([]byte, []int) {\n\treturn file_api_protobuf_spec_connection_user_v1_proto_rawDescGZIP(), []int{13}\n}",
"func (*UpdateConversationResponse) Descriptor() ([]byte, []int) {\n\treturn file_proto_threads_proto_rawDescGZIP(), []int{9}\n}",
"func (Gateway_Listener_Protocol) EnumDescriptor() ([]byte, []int) {\n\treturn file_mesh_v1alpha1_gateway_proto_rawDescGZIP(), []int{0, 1, 0}\n}",
"func (ClusterStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_common_proto_rawDescGZIP(), []int{2}\n}",
"func (SVC_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_netmessages_proto_rawDescGZIP(), []int{4}\n}",
"func (x *fastReflection_RpcCommandOptions) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_RpcCommandOptions\n}",
"func (*GetPinnedMessagesResponse) Descriptor() ([]byte, []int) {\n\treturn file_chat_v1_messages_proto_rawDescGZIP(), []int{26}\n}",
"func (Layer_LayerStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_spacemesh_v1_types_proto_rawDescGZIP(), []int{15, 0}\n}",
"func (Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_rpc_accord_proto_rawDescGZIP(), []int{0}\n}",
"func (*DisconnectedRequest) Descriptor() ([]byte, []int) {\n\treturn file_vm_vm_proto_rawDescGZIP(), []int{29}\n}",
"func (*GetStatusCodeRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{26}\n}",
"func (*CNETMsg_Disconnect) Descriptor() ([]byte, []int) {\n\treturn file_csgo_netmessages_proto_rawDescGZIP(), []int{10}\n}",
"func (*UpdateFriendStatusRsp) Descriptor() ([]byte, []int) {\n\treturn file_v1_friend_friend_proto_rawDescGZIP(), []int{3}\n}",
"func (AddPersonResponse_Status) EnumDescriptor() ([]byte, []int) {\n\treturn file_protos_face_recognition_service_proto_rawDescGZIP(), []int{1, 0}\n}",
"func (x *fastReflection_QueryAccountInfoResponse) Descriptor() protoreflect.MessageDescriptor {\n\treturn md_QueryAccountInfoResponse\n}",
"func (*QueryPlanStatusRequestProto) Descriptor() ([]byte, []int) {\n\treturn file_ClientDatanodeProtocol_proto_rawDescGZIP(), []int{24}\n}",
"func (NET_Messages) EnumDescriptor() ([]byte, []int) {\n\treturn file_artifact_networkbasetypes_proto_rawDescGZIP(), []int{0}\n}",
"func (*CMsgTeamFanContentStatus) Descriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{382}\n}",
"func (CMsgClientToGCVoteForArcanaResponse_Result) EnumDescriptor() ([]byte, []int) {\n\treturn file_dota_gcmessages_client_proto_rawDescGZIP(), []int{190, 0}\n}",
"func (ProbeConf_Method) EnumDescriptor() ([]byte, []int) {\n\treturn file_github_com_google_cloudprober_probes_http_proto_config_proto_rawDescGZIP(), []int{0, 1}\n}",
"func (ConstantSampler_ConstantDecision) EnumDescriptor() ([]byte, []int) {\n\treturn file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{2, 0}\n}",
"func (PgsqlResponsePB_RequestStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_yb_common_pgsql_protocol_proto_rawDescGZIP(), []int{12, 0}\n}",
"func (*S2CStatusChange) Descriptor() ([]byte, []int) {\n\treturn file_chat_proto_rawDescGZIP(), []int{11}\n}",
"func (DeviceConfigurationStatus) EnumDescriptor() ([]byte, []int) {\n\treturn file_pkg_pb_protobuf_api_proto_rawDescGZIP(), []int{1}\n}",
"func (*ConnectResponse) Descriptor() ([]byte, []int) {\n\treturn file_messages_proto_rawDescGZIP(), []int{4}\n}"
] | [
"0.7622403",
"0.7420429",
"0.73622704",
"0.7022907",
"0.69479156",
"0.6919246",
"0.6860647",
"0.6689844",
"0.6688613",
"0.6659104",
"0.66024184",
"0.6585928",
"0.6584401",
"0.6566814",
"0.65313596",
"0.6510836",
"0.6510231",
"0.6495249",
"0.6489179",
"0.64868295",
"0.6474746",
"0.64703095",
"0.645481",
"0.64543146",
"0.6444376",
"0.6442601",
"0.6430089",
"0.64268696",
"0.64149785",
"0.6414481",
"0.64124453",
"0.64080995",
"0.64030534",
"0.6398906",
"0.63954353",
"0.639161",
"0.63745195",
"0.63728315",
"0.6363168",
"0.6360578",
"0.6357082",
"0.63566685",
"0.63563144",
"0.63523084",
"0.633759",
"0.6329732",
"0.6329419",
"0.63288593",
"0.63234323",
"0.6321414",
"0.6320884",
"0.6317291",
"0.63148224",
"0.63143563",
"0.631193",
"0.6308411",
"0.6305607",
"0.63040113",
"0.6303157",
"0.6302578",
"0.6300031",
"0.6280599",
"0.6280487",
"0.62733924",
"0.6266832",
"0.6266684",
"0.62660646",
"0.62654006",
"0.6264911",
"0.62636906",
"0.6260557",
"0.62603086",
"0.6253248",
"0.62515277",
"0.6250352",
"0.62470895",
"0.6245324",
"0.62434196",
"0.62430435",
"0.6242697",
"0.6239752",
"0.6235364",
"0.62291825",
"0.62262505",
"0.62252665",
"0.6224937",
"0.6222353",
"0.6217539",
"0.6214941",
"0.6213031",
"0.6210327",
"0.620844",
"0.6208134",
"0.6208059",
"0.62039465",
"0.62024444",
"0.6202205",
"0.6199359",
"0.6195442",
"0.61953735"
] | 0.75629544 | 1 |
NewMockStorageMetrics creates a new mock instance | func NewMockStorageMetrics(ctrl *gomock.Controller) *MockStorageMetrics {
mock := &MockStorageMetrics{ctrl: ctrl}
mock.recorder = &MockStorageMetricsMockRecorder{mock}
return mock
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewMock() *MockMetrics {\n\treturn &MockMetrics{}\n}",
"func NewStorageMock(t minimock.Tester) *StorageMock {\n\tm := &StorageMock{t: t}\n\tif controller, ok := t.(minimock.MockController); ok {\n\t\tcontroller.RegisterMocker(m)\n\t}\n\n\tm.AllMock = mStorageMockAll{mock: m}\n\tm.AllMock.callArgs = []*StorageMockAllParams{}\n\n\tm.CloneMock = mStorageMockClone{mock: m}\n\tm.CloneMock.callArgs = []*StorageMockCloneParams{}\n\n\tm.ForIDMock = mStorageMockForID{mock: m}\n\tm.ForIDMock.callArgs = []*StorageMockForIDParams{}\n\n\tm.SplitMock = mStorageMockSplit{mock: m}\n\tm.SplitMock.callArgs = []*StorageMockSplitParams{}\n\n\tm.UpdateMock = mStorageMockUpdate{mock: m}\n\tm.UpdateMock.callArgs = []*StorageMockUpdateParams{}\n\n\treturn m\n}",
"func NewStorage(t mockConstructorTestingTNewStorage) *Storage {\n\tmock := &Storage{}\n\tmock.Mock.Test(t)\n\n\tt.Cleanup(func() { mock.AssertExpectations(t) })\n\n\treturn mock\n}",
"func NewStorage(t mockConstructorTestingTNewStorage) *Storage {\n\tmock := &Storage{}\n\tmock.Mock.Test(t)\n\n\tt.Cleanup(func() { mock.AssertExpectations(t) })\n\n\treturn mock\n}",
"func NewStorageMock(t minimock.Tester) *StorageMock {\n\tm := &StorageMock{t: t}\n\tif controller, ok := t.(minimock.MockController); ok {\n\t\tcontroller.RegisterMocker(m)\n\t}\n\n\tm.GetUserMock = mStorageMockGetUser{mock: m}\n\tm.GetUserMock.callArgs = []*StorageMockGetUserParams{}\n\n\tm.GetUserLocationMock = mStorageMockGetUserLocation{mock: m}\n\tm.GetUserLocationMock.callArgs = []*StorageMockGetUserLocationParams{}\n\n\tm.SaveUserMock = mStorageMockSaveUser{mock: m}\n\tm.SaveUserMock.callArgs = []*StorageMockSaveUserParams{}\n\n\tm.SaveUserLocationMock = mStorageMockSaveUserLocation{mock: m}\n\tm.SaveUserLocationMock.callArgs = []*StorageMockSaveUserLocationParams{}\n\n\treturn m\n}",
"func newMetrics() *metrics {\n\treturn new(metrics)\n}",
"func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {\n\tmock := &MockMetrics{ctrl: ctrl}\n\tmock.recorder = &MockMetricsMockRecorder{mock}\n\treturn mock\n}",
"func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {\n\tmock := &MockMetrics{ctrl: ctrl}\n\tmock.recorder = &MockMetricsMockRecorder{mock}\n\treturn mock\n}",
"func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {\n\tmock := &MockMetrics{ctrl: ctrl}\n\tmock.recorder = &MockMetricsMockRecorder{mock}\n\treturn mock\n}",
"func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {\n\tmock := &MockMetrics{ctrl: ctrl}\n\tmock.recorder = &MockMetricsMockRecorder{mock}\n\treturn mock\n}",
"func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {\n\tmock := &MockMetrics{ctrl: ctrl}\n\tmock.recorder = &MockMetricsMockRecorder{mock}\n\treturn mock\n}",
"func FakeNewStorage() *fakeStorage {\n\treturn &fakeStorage{}\n}",
"func newMetrics() *Metrics {\n\treturn newMetricsFrom(DefaultMetricsOpts)\n}",
"func newTestMetricsBackend() *testMetricsBackend {\n\treturn &testMetricsBackend{\n\t\tcounters: make(map[metricsLabels]int64),\n\t\tdurations: make(map[metricsLabels][]float64),\n\t}\n}",
"func NewMockedMetrics() *MockedMetrics {\n\treturn &MockedMetrics{}\n}",
"func NewMockedMetrics() *MockedMetrics {\n\treturn &MockedMetrics{}\n}",
"func NewMetrics() *Metrics {\n\tm := &Metrics{}\n\tm.Reset()\n\treturn m\n}",
"func NewMetrics() *Metrics {\n\treturn &Metrics{items: make(map[string]*metric), rm: &sync.RWMutex{}}\n}",
"func MockMetrics() []telegraf.Metric {\n\tmetrics := make([]telegraf.Metric, 0)\n\t// Create a new point batch\n\tmetrics = append(metrics, TestMetric(1.0))\n\treturn metrics\n}",
"func NewStorage(l log.Logger, reg prometheus.Registerer, stCallback startTimeCallback, walDir string, flushDeadline time.Duration, sm ReadyScrapeManager) *Storage {\n\tif l == nil {\n\t\tl = log.NewNopLogger()\n\t}\n\tlogger := logging.Dedupe(l, 1*time.Minute)\n\n\ts := &Storage{\n\t\tlogger: logger,\n\t\tlocalStartTimeCallback: stCallback,\n\t}\n\ts.rws = NewWriteStorage(s.logger, reg, walDir, flushDeadline, sm)\n\treturn s\n}",
"func NewMetrics(consume ConsumeMetricsFunc, options ...Option) (Metrics, error) {\n\tif consume == nil {\n\t\treturn nil, errNilFunc\n\t}\n\treturn &baseMetrics{\n\t\tbaseImpl: newBaseImpl(options...),\n\t\tConsumeMetricsFunc: consume,\n\t}, nil\n}",
"func NewMetrics(app, metricsPrefix, version, hash, date string) *Metrics {\n\tlabels := map[string]string{\n\t\t\"app\": app,\n\t\t\"version\": version,\n\t\t\"hash\": hash,\n\t\t\"buildTime\": date,\n\t}\n\n\tif metricsPrefix != \"\" {\n\t\tmetricsPrefix += \"_\"\n\t}\n\n\tpm := &Metrics{\n\t\tresponseTime: prometheus.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tName: metricsPrefix + \"response_time_seconds\",\n\t\t\t\tHelp: \"Description\",\n\t\t\t\tConstLabels: labels,\n\t\t\t},\n\t\t\t[]string{\"endpoint\"},\n\t\t),\n\t\ttotalRequests: prometheus.NewCounterVec(prometheus.CounterOpts{\n\t\t\tName: metricsPrefix + \"requests_total\",\n\t\t\tHelp: \"number of requests\",\n\t\t\tConstLabels: labels,\n\t\t}, []string{\"code\", \"method\", \"endpoint\"}),\n\t\tduration: prometheus.NewHistogramVec(prometheus.HistogramOpts{\n\t\t\tName: metricsPrefix + \"requests_duration_seconds\",\n\t\t\tHelp: \"duration of a requests in seconds\",\n\t\t\tConstLabels: labels,\n\t\t}, []string{\"code\", \"method\", \"endpoint\"}),\n\t\tresponseSize: prometheus.NewHistogramVec(prometheus.HistogramOpts{\n\t\t\tName: metricsPrefix + \"response_size_bytes\",\n\t\t\tHelp: \"size of the responses in bytes\",\n\t\t\tConstLabels: labels,\n\t\t}, []string{\"code\", \"method\"}),\n\t\trequestSize: prometheus.NewHistogramVec(prometheus.HistogramOpts{\n\t\t\tName: metricsPrefix + \"requests_size_bytes\",\n\t\t\tHelp: \"size of the requests in bytes\",\n\t\t\tConstLabels: labels,\n\t\t}, []string{\"code\", \"method\"}),\n\t\thandlerStatuses: prometheus.NewCounterVec(prometheus.CounterOpts{\n\t\t\tName: metricsPrefix + \"requests_statuses_total\",\n\t\t\tHelp: \"count number of responses per status\",\n\t\t\tConstLabels: labels,\n\t\t}, []string{\"method\", \"status_bucket\"}),\n\t}\n\n\terr := prometheus.Register(pm)\n\tif e := new(prometheus.AlreadyRegisteredError); errors.As(err, e) {\n\t\treturn pm\n\t} else if err != nil {\n\t\tpanic(err)\n\t}\n\n\tgrpcPrometheus.EnableHandlingTimeHistogram()\n\n\treturn pm\n}",
"func NewMetrics() *Metrics {\n\tmtrcs := &Metrics{\n\t\tcounters: make(map[MetricName]int),\n\t\tSidecarSyncErrors: SidecarSyncErrors,\n\t\tSidecarVaultTokenErrors: SidecarVaultTokenErrors,\n\t\tSidecarSecretErrors: SidecarSecretErrors,\n\t}\n\n\treturn mtrcs\n}",
"func NewTelemetryStorage() (*TelemetryStorage, error) {\n\ttreatmentLatencies, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\ttreatmentWithConfigLatencies, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\ttreatmentsLatencies, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\ttreatmentsWithConfigLatencies, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\ttrack, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\n\tsplits, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\tsegments, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\timpressions, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\timpressionsCount, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\tevents, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\ttelemetry, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\ttoken, err := NewAtomicInt64Slice(constants.LatencyBucketCount)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"could not create InMemory Storage, %w\", err)\n\t}\n\n\treturn &TelemetryStorage{\n\t\tcounters: counters{},\n\t\thttpErrors: dtos.HTTPErrors{\n\t\t\tSplits: make(map[int]int64),\n\t\t\tSegments: make(map[int]int64),\n\t\t\tImpressions: make(map[int]int64),\n\t\t\tImpressionsCount: make(map[int]int64),\n\t\t\tEvents: make(map[int]int64),\n\t\t\tToken: make(map[int]int64),\n\t\t\tTelemetry: make(map[int]int64),\n\t\t},\n\t\tmutexHTTPErrors: sync.RWMutex{},\n\t\tlatencies: latencies{\n\t\t\ttreatment: treatmentLatencies,\n\t\t\ttreatmentWithConfig: treatmentWithConfigLatencies,\n\t\t\ttreatments: treatmentsLatencies,\n\t\t\ttreatmentsWithConfig: treatmentsWithConfigLatencies,\n\t\t\ttrack: track,\n\n\t\t\tsplits: splits,\n\t\t\tsegments: segments,\n\t\t\timpressions: impressions,\n\t\t\timpressionsCount: impressionsCount,\n\t\t\tevents: events,\n\t\t\ttoken: token,\n\t\t\ttelemetry: telemetry,\n\t\t},\n\t\trecords: records{},\n\t\tstreamingEvents: make([]dtos.StreamingEvent, 0, constants.MaxStreamingEvents),\n\t\tmutexStreamingEvents: sync.RWMutex{},\n\t\ttags: make([]string, 0, constants.MaxTags),\n\t\tmutexTags: sync.RWMutex{},\n\t}, nil\n}",
"func NewMetrics(component string, sampleRate float64, client metrics.Client) BaseMetrics {\n\treturn BaseMetrics{\n\t\tcomponent: component,\n\t\trate: sampleRate,\n\t\tmetrics: client,\n\t\tmetMap: map[string]string{\n\t\t\t\"latency\": \"comp.\" + component + \".requests.latency\",\n\t\t\t\"request\": \"comp.\" + component + \".requests.%d\",\n\t\t\t\"mLatency\": \"comp.\" + component + \".requests.%s.latency\",\n\t\t\t\"mRequest\": \"comp.\" + component + \".requests.%s.%d\",\n\t\t},\n\t}\n}",
"func newStorage() *storage {\n\treturn &storage{\n\t\tsto: make(map[uint16]mqtt.Message),\n\t\tmux: new(sync.RWMutex),\n\t}\n}",
"func NewMetrics(p fabricmetrics.Provider) *Metrics {\n\treturn &Metrics{\n\t\tRefreshTimer: p.NewHistogram(refreshTimer),\n\t}\n}",
"func NewMock() *Mock {\n\treturn &Mock{VolumesMock: &VolumesServiceMock{}}\n}",
"func NewMetricsWrapper(registry metrics.Registry, service string) *MetricsWrapper {\n\tvar metricsWrapper = MetricsWrapper{\n\t\tregistry: registry,\n\t\tserviceName: service,\n\t}\n\n\treturn &metricsWrapper\n}",
"func NewMetrics(ctx context.Context, output string, tenant string, refreshRate time.Duration) Metrics {\n\treturn Metrics{\n\t\tDaemonSupport: utils.NewDaemonSupport(ctx, \"metrics\"),\n\t\tstorage: localfs.NewPlaintextStorage(output),\n\t\ttenant: tenant,\n\t\trefreshRate: refreshRate,\n\t\tpromisesAccepted: metrics.NewCounter(),\n\t\tcommitsAccepted: metrics.NewCounter(),\n\t\trollbacksAccepted: metrics.NewCounter(),\n\t\tcreatedAccounts: metrics.NewCounter(),\n\t\tupdatedSnapshots: metrics.NewMeter(),\n\t\tsnapshotCronLatency: metrics.NewTimer(),\n\t}\n}",
"func NewMetrics(factory promutil.Factory) *Metrics {\n\treturn &Metrics{\n\t\tImporterEngineCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"importer_engine\",\n\t\t\t\tHelp: \"counting open and closed importer engines\",\n\t\t\t}, []string{\"type\"}),\n\n\t\tIdleWorkersGauge: factory.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"idle_workers\",\n\t\t\t\tHelp: \"counting idle workers\",\n\t\t\t}, []string{\"name\"}),\n\n\t\tKvEncoderCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"kv_encoder\",\n\t\t\t\tHelp: \"counting kv open and closed kv encoder\",\n\t\t\t}, []string{\"type\"}),\n\n\t\tTableCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"tables\",\n\t\t\t\tHelp: \"count number of tables processed\",\n\t\t\t}, []string{\"state\", \"result\"}),\n\n\t\tProcessedEngineCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"engines\",\n\t\t\t\tHelp: \"count number of engines processed\",\n\t\t\t}, []string{\"state\", \"result\"}),\n\n\t\tChunkCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"chunks\",\n\t\t\t\tHelp: \"count number of chunks processed\",\n\t\t\t}, []string{\"state\"}),\n\n\t\tBytesCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"bytes\",\n\t\t\t\tHelp: \"count of total bytes\",\n\t\t\t}, []string{\"state\"}),\n\t\t// state can be one of:\n\t\t// - estimated (an estimation derived from the file size)\n\t\t// - pending\n\t\t// - running\n\t\t// - finished\n\t\t// - failed\n\n\t\tRowsCounter: factory.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"rows\",\n\t\t\t\tHelp: \"count of total rows\",\n\t\t\t}, []string{\"state\", \"table\"}),\n\n\t\tImportSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"import_seconds\",\n\t\t\t\tHelp: \"time needed to import a table\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.125, 2, 6),\n\t\t\t}),\n\n\t\tChunkParserReadBlockSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"chunk_parser_read_block_seconds\",\n\t\t\t\tHelp: \"time needed for chunk parser read a block\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.001, 3.1622776601683795, 10),\n\t\t\t}),\n\n\t\tApplyWorkerSecondsHistogram: factory.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"apply_worker_seconds\",\n\t\t\t\tHelp: \"time needed to apply a worker\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.001, 3.1622776601683795, 10),\n\t\t\t}, []string{\"name\"}),\n\n\t\tRowReadSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"row_read_seconds\",\n\t\t\t\tHelp: \"time needed to parse a row\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.001, 3.1622776601683795, 7),\n\t\t\t}),\n\n\t\tRowReadBytesHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"row_read_bytes\",\n\t\t\t\tHelp: \"number of bytes being read out from data source\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(1024, 2, 8),\n\t\t\t}),\n\n\t\tRowEncodeSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"row_encode_seconds\",\n\t\t\t\tHelp: \"time needed to encode a row\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.001, 3.1622776601683795, 10),\n\t\t\t}),\n\t\tRowKVDeliverSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"row_kv_deliver_seconds\",\n\t\t\t\tHelp: \"time needed to deliver kvs of a single row\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.001, 3.1622776601683795, 10),\n\t\t\t}),\n\n\t\tBlockDeliverSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"block_deliver_seconds\",\n\t\t\t\tHelp: \"time needed to deliver a block\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(0.001, 3.1622776601683795, 10),\n\t\t\t}),\n\t\tBlockDeliverBytesHistogram: factory.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"block_deliver_bytes\",\n\t\t\t\tHelp: \"number of bytes being sent out to importer\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(512, 2, 10),\n\t\t\t}, []string{\"kind\"}),\n\t\tBlockDeliverKVPairsHistogram: factory.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"block_deliver_kv_pairs\",\n\t\t\t\tHelp: \"number of KV pairs being sent out to importer\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(1, 2, 10),\n\t\t\t}, []string{\"kind\"}),\n\t\tChecksumSecondsHistogram: factory.NewHistogram(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"checksum_seconds\",\n\t\t\t\tHelp: \"time needed to complete the checksum stage\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(1, 2.2679331552660544, 10),\n\t\t\t}),\n\t\tSSTSecondsHistogram: factory.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"sst_seconds\",\n\t\t\t\tHelp: \"time needed to complete the sst operations\",\n\t\t\t\tBuckets: prometheus.ExponentialBuckets(1, 2.2679331552660544, 10),\n\t\t\t}, []string{\"kind\"}),\n\n\t\tLocalStorageUsageBytesGauge: factory.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"local_storage_usage_bytes\",\n\t\t\t\tHelp: \"disk/memory size currently occupied by intermediate files in local backend\",\n\t\t\t}, []string{\"medium\"}),\n\n\t\tProgressGauge: factory.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"lightning\",\n\t\t\t\tName: \"progress\",\n\t\t\t\tHelp: \"progress of lightning phase\",\n\t\t\t}, []string{\"phase\"}),\n\t}\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMockStorage(ctrl *gomock.Controller) *MockStorage {\n\tmock := &MockStorage{ctrl: ctrl}\n\tmock.recorder = &MockStorageMockRecorder{mock}\n\treturn mock\n}",
"func NewMock(now time.Time) *Mock {\n\treturn &Mock{\n\t\tnow: now,\n\t\tmockTimers: &timerHeap{},\n\t}\n}",
"func newServiceStorage() *ServiceStorage {\n\ts := new(ServiceStorage)\n\ts.cache = cache.NewCache(24 * time.Hour)\n\treturn s\n}",
"func newStorage(\n\tmachineName,\n\ttablename,\n\tdatabase,\n\tretentionPolicy,\n\tusername,\n\tpassword,\n\tinfluxdbHost string,\n\tisSecure bool,\n\tbufferDuration time.Duration,\n) (*influxdbStorage, error) {\n\turl := &url.URL{\n\t\tScheme: \"http\",\n\t\tHost: influxdbHost,\n\t}\n\tif isSecure {\n\t\turl.Scheme = \"https\"\n\t}\n\n\tconfig := &influxdb.Config{\n\t\tURL: *url,\n\t\tUsername: username,\n\t\tPassword: password,\n\t\tUserAgent: fmt.Sprintf(\"%v/%v\", \"cAdvisor\", version.Info[\"version\"]),\n\t}\n\tclient, err := influxdb.NewClient(*config)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tret := &influxdbStorage{\n\t\tclient: client,\n\t\tmachineName: machineName,\n\t\tdatabase: database,\n\t\tretentionPolicy: retentionPolicy,\n\t\tbufferDuration: bufferDuration,\n\t\tlastWrite: time.Now(),\n\t\tpoints: make([]*influxdb.Point, 0),\n\t}\n\tret.readyToFlush = ret.defaultReadyToFlush\n\treturn ret, nil\n}",
"func TestNewResizeService(t *testing.T) {\n\tmockCtrl := gomock.NewController(t)\n\tdefer mockCtrl.Finish()\n\n\tmockResizeStorage := mocks.NewMockResizeStorage(mockCtrl)\n\tmockConverter := mocks.NewMockConverter(mockCtrl)\n\tmockPubSub := mocks.NewMockPublisherConsumer(mockCtrl)\n\n\trs := NewResizeService(mockResizeStorage, mockConverter, mockPubSub)\n\tassert.Equal(t, mockConverter, rs.Converter)\n\tassert.Equal(t, mockResizeStorage, rs.Storage)\n}",
"func newTestModel() *Storage {\n\treturn &Storage{}\n}",
"func newStorageMetricQuery(\n\tqueryFlow flow.StorageQueryFlow,\n\tdatabase tsdb.Database,\n\tstorageExecuteCtx StorageExecuteContext,\n) storageMetricQuery {\n\tctx := storageExecuteCtx.(*storageExecuteContext)\n\treturn &storageExecutor{\n\t\tdatabase: database,\n\t\tctx: ctx,\n\t\tqueryFlow: queryFlow,\n\t}\n}",
"func NewMetrics() *Metrics {\n\treturn &Metrics{\n\t\tPath: defaultPath,\n\t\tAddr: defaultAddr,\n\t\textraLabels: []extraLabel{},\n\t}\n}",
"func NewMetrics(namespace string, logger Logger) Metrics {\n\tlog := logger.GetLogger()\n\n\treturn &metricsImpl{\n\t\tinternalMetrics: metrics.NewMetrics(\"\", log),\n\t\texternalMetrics: metrics.NewMetrics(strings.ToLower(namespace), log),\n\t}\n}",
"func NewMetrics(ns string) *Metrics {\n\tres := &Metrics{\n\t\tInfo: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: ns,\n\t\t\t\tName: \"info\",\n\t\t\t\tHelp: \"Informations about given repository, value always 1\",\n\t\t\t},\n\t\t\t[]string{\"module\", \"goversion\"},\n\t\t),\n\t\tDeprecated: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: ns,\n\t\t\t\tName: \"deprecated\",\n\t\t\t\tHelp: \"Number of days since given dependency of repository is out-of-date\",\n\t\t\t},\n\t\t\t[]string{\"module\", \"dependency\", \"type\", \"current\", \"latest\"},\n\t\t),\n\t\tReplaced: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: ns,\n\t\t\t\tName: \"replaced\",\n\t\t\t\tHelp: \"Give information about module replacements\",\n\t\t\t},\n\t\t\t[]string{\"module\", \"dependency\", \"type\", \"replacement\", \"version\"},\n\t\t),\n\t\tStatus: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: ns,\n\t\t\t\tName: \"status\",\n\t\t\t\tHelp: \"Status of last analysis of given repository, 0 for error\",\n\t\t\t},\n\t\t\t[]string{\"repository\"},\n\t\t),\n\t\tDuration: promauto.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: ns,\n\t\t\t\tName: \"duration\",\n\t\t\t\tHelp: \"Duration of last analysis in second\",\n\t\t\t},\n\t\t),\n\t\tRegistry: prometheus.NewRegistry(),\n\t}\n\n\tres.Registry.Register(res.Info)\n\tres.Registry.Register(res.Deprecated)\n\tres.Registry.Register(res.Replaced)\n\tres.Registry.Register(res.Status)\n\tres.Registry.Register(res.Duration)\n\treturn res\n}",
"func NewMetrics(scope tally.Scope) *Metrics {\n\tsuccessScope := scope.Tagged(map[string]string{\"result\": \"success\"})\n\tfailScope := scope.Tagged(map[string]string{\"result\": \"fail\"})\n\ttimeoutScope := scope.Tagged(map[string]string{\"result\": \"timeout\"})\n\tapiScope := scope.SubScope(\"api\")\n\tserverScope := scope.SubScope(\"server\")\n\tplacement := scope.SubScope(\"placement\")\n\trecovery := scope.SubScope(\"recovery\")\n\n\treturn &Metrics{\n\t\tAPIEnqueueGangs: apiScope.Counter(\"enqueue_gangs\"),\n\t\tEnqueueGangSuccess: successScope.Counter(\"enqueue_gang\"),\n\t\tEnqueueGangFail: failScope.Counter(\"enqueue_gang\"),\n\n\t\tAPIDequeueGangs: apiScope.Counter(\"dequeue_gangs\"),\n\t\tDequeueGangSuccess: successScope.Counter(\"dequeue_gangs\"),\n\t\tDequeueGangTimeout: timeoutScope.Counter(\"dequeue_gangs\"),\n\n\t\tAPIGetPreemptibleTasks: apiScope.Counter(\"get_preemptible_tasks\"),\n\t\tGetPreemptibleTasksSuccess: successScope.Counter(\"get_preemptible_tasks\"),\n\t\tGetPreemptibleTasksTimeout: timeoutScope.Counter(\"get_preemptible_tasks\"),\n\n\t\tAPISetPlacements: apiScope.Counter(\"set_placements\"),\n\t\tSetPlacementSuccess: successScope.Counter(\"set_placements\"),\n\t\tSetPlacementFail: failScope.Counter(\"set_placements\"),\n\n\t\tAPIGetPlacements: apiScope.Counter(\"get_placements\"),\n\t\tGetPlacementSuccess: successScope.Counter(\"get_placements\"),\n\t\tGetPlacementFail: failScope.Counter(\"get_placements\"),\n\n\t\tAPILaunchedTasks: apiScope.Counter(\"launched_tasks\"),\n\n\t\tRecoverySuccess: successScope.Counter(\"recovery\"),\n\t\tRecoveryFail: failScope.Counter(\"recovery\"),\n\t\tRecoveryRunningSuccessCount: successScope.Counter(\"task_count\"),\n\t\tRecoveryRunningFailCount: failScope.Counter(\"task_count\"),\n\t\tRecoveryEnqueueFailedCount: failScope.Counter(\"enqueue_task_count\"),\n\t\tRecoveryEnqueueSuccessCount: successScope.Counter(\"enqueue_task_count\"),\n\t\tRecoveryTimer: recovery.Timer(\"running_tasks\"),\n\n\t\tPlacementQueueLen: placement.Gauge(\"placement_queue_length\"),\n\t\tPlacementFailed: placement.Counter(\"fail\"),\n\n\t\tElected: serverScope.Gauge(\"elected\"),\n\t}\n}",
"func NewMetricsRecorder(clock *hlc.Clock) *MetricsRecorder {\n\tmr := &MetricsRecorder{\n\t\tnodeRegistry: metric.NewRegistry(),\n\t}\n\tmr.mu.storeRegistries = make(map[roachpb.StoreID]*metric.Registry)\n\tmr.mu.stores = make(map[roachpb.StoreID]storeMetrics)\n\tmr.mu.clock = clock\n\treturn mr\n}",
"func newMetrics() metrics {\n\treturn metrics{\n\t\tsize: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"pool_size\",\n\t\t\t\tHelp: \"Size of pool\",\n\t\t\t},\n\t\t),\n\n\t\tstatus: prometheus.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"pool_status\",\n\t\t\t\tHelp: `Status of pool (0, 1, 2, 3, 4, 5, 6)= {\"Offline\", \"Online\", \"Degraded\", \"Faulted\", \"Removed\", \"Unavail\", \"NoPoolsAvailable\"}`,\n\t\t\t},\n\t\t\t[]string{\"pool\"},\n\t\t),\n\n\t\tusedCapacity: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"used_pool_capacity\",\n\t\t\t\tHelp: \"Capacity used by pool\",\n\t\t\t},\n\t\t),\n\n\t\tfreeCapacity: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"free_pool_capacity\",\n\t\t\t\tHelp: \"Free capacity in pool\",\n\t\t\t},\n\t\t),\n\n\t\tusedCapacityPercent: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"used_pool_capacity_percent\",\n\t\t\t\tHelp: \"Capacity used by pool in percent\",\n\t\t\t},\n\t\t),\n\n\t\tzpoolListparseErrorCounter: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"zpool_list_parse_error_count\",\n\t\t\t\tHelp: \"Total no of parsing errors\",\n\t\t\t},\n\t\t),\n\n\t\tzpoolRejectRequestCounter: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"zpool_reject_request_count\",\n\t\t\t\tHelp: \"Total no of rejected requests of zpool command\",\n\t\t\t},\n\t\t),\n\n\t\tzpoolCommandErrorCounter: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"zpool_command_error\",\n\t\t\t\tHelp: \"Total no of zpool command errors\",\n\t\t\t},\n\t\t),\n\n\t\tnoPoolAvailableErrorCounter: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"no_pool_available_error\",\n\t\t\t\tHelp: \"Total no of no pool available errors\",\n\t\t\t},\n\t\t),\n\n\t\tincompleteOutputErrorCounter: prometheus.NewGauge(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tNamespace: \"openebs\",\n\t\t\t\tName: \"zpool_list_incomplete_stdout_error\",\n\t\t\t\tHelp: \"Total no of incomplete stdout of zpool list command errors\",\n\t\t\t},\n\t\t),\n\t}\n}",
"func NewMetrics() *Metrics {\n\tm := &Metrics{\n\t\tTimeMetrics: make(map[string]*TimeStats),\n\t\tNumberMetrics: make(map[string]*NumberStats),\n\t\tBoolMetrics: make(map[string]*BoolStats),\n\t}\n\treturn m\n}",
"func newPodStorage() *PodStorage {\n\ts := new(PodStorage)\n\treturn s\n}",
"func newMetricsFrom(opts *MetricsOpts) *Metrics {\n\tmetrics := &Metrics{\n\t\tcounters: make(map[string]prometheus.Counter, 512),\n\t\tgauges: make(map[string]prometheus.Gauge, 512),\n\t\thistorams: make(map[string]prometheus.Histogram, 512),\n\t\tsummaries: make(map[string]prometheus.Summary, 512),\n\t\tdefBuckets: opts.DefBuckets,\n\t\tdefQuantile: opts.DefQuantile,\n\t\tregistry: prometheus.NewRegistry(),\n\t}\n\treturn metrics\n}",
"func newStorage(\n\tmachineName,\n\ttablename,\n\tdatabase,\n\tusername,\n\tpassword,\n\tinfluxdbHost string,\n\tisSecure bool,\n\tbufferDuration time.Duration,\n) (*influxdbStorage, error) {\n\tconfig := &influxdb.ClientConfig{\n\t\tHost: influxdbHost,\n\t\tUsername: username,\n\t\tPassword: password,\n\t\tDatabase: database,\n\t\tIsSecure: isSecure,\n\t}\n\tclient, err := influxdb.NewClient(config)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\t// TODO(monnand): With go 1.3, we cannot compress data now.\n\tclient.DisableCompression()\n\n\tret := &influxdbStorage{\n\t\tclient: client,\n\t\tmachineName: machineName,\n\t\ttableName: tablename,\n\t\tbufferDuration: bufferDuration,\n\t\tlastWrite: time.Now(),\n\t\tseries: make([]*influxdb.Series, 0),\n\t}\n\tret.readyToFlush = ret.defaultReadyToFlush\n\treturn ret, nil\n}",
"func NewMetrics(consume ConsumeMetricsFunc, options ...Option) (consumer.Metrics, error) {\n\tif consume == nil {\n\t\treturn nil, errNilFunc\n\t}\n\treturn &baseMetrics{\n\t\tbaseConsumer: newBaseConsumer(options...),\n\t\tConsumeMetricsFunc: consume,\n\t}, nil\n}",
"func New(o *Options) *Storage {\n\ts := &Storage{}\n\tif o.GraphiteAddress != \"\" {\n\t\tc := graphite.NewClient(\n\t\t\to.GraphiteAddress, o.GraphiteTransport,\n\t\t\to.StorageTimeout, o.GraphitePrefix)\n\t\ts.queues = append(s.queues, NewStorageQueueManager(c, defaultConfig))\n\t}\n\tif o.OpentsdbURL != \"\" {\n\t\tc := opentsdb.NewClient(o.OpentsdbURL, o.StorageTimeout)\n\t\ts.queues = append(s.queues, NewStorageQueueManager(c, defaultConfig))\n\t}\n\tif o.InfluxdbURL != nil {\n\t\tconf := influx.Config{\n\t\t\tURL: *o.InfluxdbURL,\n\t\t\tUsername: o.InfluxdbUsername,\n\t\t\tPassword: o.InfluxdbPassword,\n\t\t\tTimeout: o.StorageTimeout,\n\t\t}\n\t\tc := influxdb.NewClient(conf, o.InfluxdbDatabase, o.InfluxdbRetentionPolicy)\n\t\tprometheus.MustRegister(c)\n\t\ts.queues = append(s.queues, NewStorageQueueManager(c, defaultConfig))\n\t}\n\tif o.GenericURL != \"\" {\n\t\theaders := http.Header{}\n\t\tif o.GenericHeaderName != \"\" {\n\t\t\theaders.Add(o.GenericHeaderName, o.GenericHeaderValue)\n\t\t}\n\t\tc := generic.NewClient(o.GenericURL, headers, o.StorageTimeout)\n\t\ts.queues = append(s.queues, NewStorageQueueManager(c, defaultConfig))\n\t}\n\tif len(s.queues) == 0 {\n\t\treturn nil\n\t}\n\treturn s\n}",
"func (m *MockStorageMetrics) EXPECT() *MockStorageMetricsMockRecorder {\n\treturn m.recorder\n}",
"func MockMetrics() []optic.Metric {\n\tmetricsEvents := make([]optic.Metric, 0)\n\tmetricsEvents = append(metricsEvents, TestMetric(1.0))\n\treturn metricsEvents\n}",
"func New(subsystem string) Metrics {\n\treturn Metrics{\n\t\tPersistentVolumeClaimProvisionTotal: prometheus.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tSubsystem: subsystem,\n\t\t\t\tName: \"persistentvolumeclaim_provision_total\",\n\t\t\t\tHelp: \"Total number of persistent volumes provisioned succesfully. Broken down by storage class name.\",\n\t\t\t},\n\t\t\t[]string{\"class\"},\n\t\t),\n\t\tPersistentVolumeClaimProvisionFailedTotal: prometheus.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tSubsystem: subsystem,\n\t\t\t\tName: \"persistentvolumeclaim_provision_failed_total\",\n\t\t\t\tHelp: \"Total number of persistent volume provision failed attempts. Broken down by storage class name.\",\n\t\t\t},\n\t\t\t[]string{\"class\"},\n\t\t),\n\t\tPersistentVolumeClaimProvisionDurationSeconds: prometheus.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tSubsystem: subsystem,\n\t\t\t\tName: \"persistentvolumeclaim_provision_duration_seconds\",\n\t\t\t\tHelp: \"Latency in seconds to provision persistent volumes. Failed provisioning attempts are ignored. Broken down by storage class name.\",\n\t\t\t\tBuckets: prometheus.DefBuckets,\n\t\t\t},\n\t\t\t[]string{\"class\"},\n\t\t),\n\t\tPersistentVolumeDeleteTotal: prometheus.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tSubsystem: subsystem,\n\t\t\t\tName: \"persistentvolume_delete_total\",\n\t\t\t\tHelp: \"Total number of persistent volumes deleted succesfully. Broken down by storage class name.\",\n\t\t\t},\n\t\t\t[]string{\"class\"},\n\t\t),\n\t\tPersistentVolumeDeleteFailedTotal: prometheus.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tSubsystem: subsystem,\n\t\t\t\tName: \"persistentvolume_delete_failed_total\",\n\t\t\t\tHelp: \"Total number of persistent volume delete failed attempts. Broken down by storage class name.\",\n\t\t\t},\n\t\t\t[]string{\"class\"},\n\t\t),\n\t\tPersistentVolumeDeleteDurationSeconds: prometheus.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tSubsystem: subsystem,\n\t\t\t\tName: \"persistentvolume_delete_duration_seconds\",\n\t\t\t\tHelp: \"Latency in seconds to delete persistent volumes. Failed deletion attempts are ignored. Broken down by storage class name.\",\n\t\t\t\tBuckets: prometheus.DefBuckets,\n\t\t\t},\n\t\t\t[]string{\"class\"},\n\t\t),\n\t}\n}",
"func newStorage() *storage {\n\tr := make(map[string][]byte)\n\treturn &storage{\n\t\trepository: r,\n\t}\n}",
"func NewRecentIndexStorageMock(t minimock.Tester) *RecentIndexStorageMock {\n\tm := &RecentIndexStorageMock{t: t}\n\n\tif controller, ok := t.(minimock.MockController); ok {\n\t\tcontroller.RegisterMocker(m)\n\t}\n\n\tm.AddObjectMock = mRecentIndexStorageMockAddObject{mock: m}\n\tm.AddObjectWithTLLMock = mRecentIndexStorageMockAddObjectWithTLL{mock: m}\n\tm.DecreaseIndexTTLMock = mRecentIndexStorageMockDecreaseIndexTTL{mock: m}\n\tm.FilterNotExistWithLockMock = mRecentIndexStorageMockFilterNotExistWithLock{mock: m}\n\tm.GetObjectsMock = mRecentIndexStorageMockGetObjects{mock: m}\n\n\treturn m\n}",
"func newCustomMetrics() ICustomMetrics {\n\n\tcounters := make(map[string]prometheus.Counter)\n\tgauges := make(map[string]prometheus.Gauge)\n\tsummaries := make(map[string]prometheus.Summary)\n\thistograms := make(map[string]prometheus.Histogram)\n\n\treturn &customMetrics{\n\t\tcounters: counters,\n\t\tgauges: gauges,\n\t\tsummaries: summaries,\n\t\thistograms: histograms,\n\t}\n}",
"func New(timeout time.Duration) (*Storage, error) {\n\tif timeout <= 0 {\n\t\treturn nil, errors.New(\"timeout must be positive\")\n\t}\n\treturn &Storage{\n\t\tdata: make(map[string]interface{}),\n\t\tcancelFuncs: make(map[string]context.CancelFunc),\n\t\ttimeout: timeout,\n\t}, nil\n}",
"func NewMetrics(period time.Duration, maxQueueSize int) (*Metrics, error) {\n\tmetrics := &Metrics{\n\t\tmaxQueueSize: maxQueueSize,\n\t\tperiod: period,\n\t\tinitialized: true,\n\t\tqueue: make([]Measurement, 0),\n\t\tlastSendingDate: -1,\n\t}\n\n\tif UseGlobalEngine {\n\t\tmetrics.Engine = Engine\n\t} else {\n\t\tmetrics.Engine = &req.Engine{}\n\t}\n\n\terr := validateMetrics(metrics)\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif sources == nil {\n\t\tsources = make([]DataSource, 0)\n\t\tgo sendingLoop()\n\t}\n\n\tsources = append(sources, metrics)\n\n\treturn metrics, nil\n}",
"func NewMock() *Mock {\n\treturn &Mock{\n\t\tData: MockData{\n\t\t\tUptime: true,\n\t\t\tFile: true,\n\t\t\tTCPResponse: true,\n\t\t\tHTTPStatus: true,\n\t\t},\n\t}\n}",
"func NewStorage(size int, hash HashFunc) *Storage {\n\ts := &Storage{n: size, h: hash}\n\ts.Reset()\n\treturn s\n}",
"func TestCalculateStorageUsage(t *testing.T) {\n\tt.Skip()\n\tdefer leaktest.AfterTest(t)()\n\tif testing.Short() {\n\t\tt.Skip(\"skipping in short mode.\")\n\t\treturn\n\t}\n\tctx := context.Background()\n\n\t// initialize cluster\n\topt := service.DefaultOptions()\n\tc, err := service.NewCluster(ctx, t, opt.WithLogLevel(zap.ErrorLevel))\n\trequire.NoError(t, err)\n\t// close the cluster\n\tdefer func(c service.Cluster) {\n\t\trequire.NoError(t, c.Close())\n\t}(c)\n\t// start the cluster\n\trequire.NoError(t, c.Start())\n\n\tctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)\n\tdefer cancel()\n\n\tc.WaitCNStoreTaskServiceCreatedIndexed(ctx, 0)\n\tc.WaitTNStoreTaskServiceCreatedIndexed(ctx, 0)\n\tc.WaitLogStoreTaskServiceCreatedIndexed(ctx, 0)\n\n\tctrl := gomock.NewController(t)\n\ttxnOperator := mock_frontend.NewMockTxnOperator(ctrl)\n\ttxnOperator.EXPECT().Txn().Return(txn.TxnMeta{}).AnyTimes()\n\ttxnOperator.EXPECT().Commit(gomock.Any()).Return(nil).AnyTimes()\n\ttxnOperator.EXPECT().Rollback(gomock.Any()).Return(nil).AnyTimes()\n\ttxnClient := mock_frontend.NewMockTxnClient(ctrl)\n\ttxnClient.EXPECT().New(gomock.Any(), gomock.Any()).Return(txnOperator, nil).AnyTimes()\n\ttable := mock_frontend.NewMockRelation(ctrl)\n\ttable.EXPECT().Ranges(gomock.Any(), gomock.Any()).Return(nil, nil).AnyTimes()\n\ttable.EXPECT().TableDefs(gomock.Any()).Return(nil, nil).AnyTimes()\n\ttable.EXPECT().GetPrimaryKeys(gomock.Any()).Return(nil, nil).AnyTimes()\n\ttable.EXPECT().GetHideKeys(gomock.Any()).Return(nil, nil).AnyTimes()\n\ttable.EXPECT().TableColumns(gomock.Any()).Return(nil, nil).AnyTimes()\n\ttable.EXPECT().GetTableID(gomock.Any()).Return(uint64(10)).AnyTimes()\n\tdb := mock_frontend.NewMockDatabase(ctrl)\n\tdb.EXPECT().Relations(gomock.Any()).Return(nil, nil).AnyTimes()\n\tdb.EXPECT().Relation(gomock.Any(), gomock.Any(), gomock.Any()).Return(table, nil).AnyTimes()\n\teng := mock_frontend.NewMockEngine(ctrl)\n\teng.EXPECT().New(gomock.Any(), gomock.Any()).Return(nil).AnyTimes()\n\teng.EXPECT().Database(gomock.Any(), gomock.Any(), txnOperator).Return(db, nil).AnyTimes()\n\teng.EXPECT().Hints().Return(engine.Hints{CommitOrRollbackTimeout: time.Second}).AnyTimes()\n\tpu := config.NewParameterUnit(&config.FrontendParameters{}, eng, txnClient, nil)\n\tpu.SV.SetDefaultValues()\n\n\t// Mock autoIncrCache\n\taicm := &defines.AutoIncrCacheManager{}\n\n\tieFactory := func() ie.InternalExecutor {\n\t\treturn frontend.NewInternalExecutor(pu, aicm)\n\t}\n\n\terr = mometric.CalculateStorageUsage(ctx, ieFactory)\n\trequire.Nil(t, err)\n\n\ts := metric.StorageUsage(\"sys\")\n\tdm := &dto.Metric{}\n\ts.Write(dm)\n\tlogutil.Infof(\"size: %f\", dm.GetGauge().GetValue())\n\tt.Logf(\"size: %f\", dm.GetGauge().GetValue())\n}",
"func NewMockDataRegistryService_CreateOrUpdateMetricsServer(t mockConstructorTestingTNewMockDataRegistryService_CreateOrUpdateMetricsServer) *MockDataRegistryService_CreateOrUpdateMetricsServer {\n\tmock := &MockDataRegistryService_CreateOrUpdateMetricsServer{}\n\tmock.Mock.Test(t)\n\n\tt.Cleanup(func() { mock.AssertExpectations(t) })\n\n\treturn mock\n}",
"func NewMetrics() *MetricsHolder {\n\tm := &MetricsHolder{\n\t\tlines: make(map[string]*Reading),\n\t\tchannel: make(chan interface{}),\n\t}\n\tgo func() {\n\t\tfor {\n\t\t\tw, ok := <-m.channel\n\t\t\treading := w.(*Reading)\n\t\t\tif !ok {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif val, ok := m.lines[reading.Key]; ok {\n\t\t\t\tm.lines[reading.Key] = val.Accept(reading)\n\t\t\t} else {\n\t\t\t\tm.lines[reading.Key] = reading\n\t\t\t}\n\t\t}\n\t}()\n\treturn m\n}",
"func NewMock(t *testing.T) *MockT { return &MockT{t: t} }",
"func NewMock() *Mock {\n\treturn &Mock{now: time.Unix(0, 0)}\n}",
"func NewMock() Cache {\n\treturn &mock{}\n}",
"func TestMetricsRecorder(t *testing.T) {\n\tdefer leaktest.AfterTest(t)()\n\n\t// Fake descriptors and stats for status summaries.\n\tnodeDesc := roachpb.NodeDescriptor{\n\t\tNodeID: roachpb.NodeID(1),\n\t}\n\tstoreDesc1 := roachpb.StoreDescriptor{\n\t\tStoreID: roachpb.StoreID(1),\n\t\tCapacity: roachpb.StoreCapacity{\n\t\t\tCapacity: 100,\n\t\t\tAvailable: 50,\n\t\t},\n\t}\n\tstoreDesc2 := roachpb.StoreDescriptor{\n\t\tStoreID: roachpb.StoreID(2),\n\t\tCapacity: roachpb.StoreCapacity{\n\t\t\tCapacity: 200,\n\t\t\tAvailable: 75,\n\t\t},\n\t}\n\tstats := engine.MVCCStats{\n\t\tLiveBytes: 1,\n\t\tKeyBytes: 2,\n\t\tValBytes: 3,\n\t\tIntentBytes: 4,\n\t\tLiveCount: 5,\n\t\tKeyCount: 6,\n\t\tValCount: 7,\n\t\tIntentCount: 8,\n\t\tIntentAge: 9,\n\t\tGCBytesAge: 10,\n\t\tLastUpdateNanos: 1 * 1E9,\n\t}\n\n\t// Create some registries and add them to the recorder (two at node-level,\n\t// two at store-level).\n\treg1 := metric.NewRegistry()\n\treg2 := metric.NewRegistry()\n\tstore1 := fakeStore{\n\t\tstoreID: roachpb.StoreID(1),\n\t\tstats: stats,\n\t\tdesc: storeDesc1,\n\t\tregistry: metric.NewRegistry(),\n\t}\n\tstore2 := fakeStore{\n\t\tstoreID: roachpb.StoreID(2),\n\t\tstats: stats,\n\t\tdesc: storeDesc2,\n\t\tregistry: metric.NewRegistry(),\n\t}\n\tmanual := hlc.NewManualClock(100)\n\trecorder := NewMetricsRecorder(hlc.NewClock(manual.UnixNano))\n\trecorder.AddNodeRegistry(\"one.%s\", reg1)\n\trecorder.AddNodeRegistry(\"two.%s\", reg1)\n\trecorder.AddStore(store1)\n\trecorder.AddStore(store2)\n\trecorder.NodeStarted(nodeDesc, 50)\n\n\t// Ensure the metric system's view of time does not advance during this test\n\t// as the test expects time to not advance too far which would age the actual\n\t// data (e.g. in histogram's) unexpectedly.\n\tdefer metric.TestingSetNow(func() time.Time {\n\t\treturn time.Unix(0, manual.UnixNano()).UTC()\n\t})()\n\n\t// Create a flat array of registries, along with metadata for each, to help\n\t// generate expected results.\n\tregList := []struct {\n\t\treg *metric.Registry\n\t\tprefix string\n\t\tsource int64\n\t}{\n\t\t{\n\t\t\treg: reg1,\n\t\t\tprefix: \"cr.node.one.\",\n\t\t\tsource: 1,\n\t\t},\n\t\t{\n\t\t\treg: reg2,\n\t\t\tprefix: \"cr.node.two.\",\n\t\t\tsource: 1,\n\t\t},\n\t\t{\n\t\t\treg: store1.registry,\n\t\t\tprefix: \"cr.store.\",\n\t\t\tsource: int64(store1.storeID),\n\t\t},\n\t\t{\n\t\t\treg: store2.registry,\n\t\t\tprefix: \"cr.store.\",\n\t\t\tsource: int64(store2.storeID),\n\t\t},\n\t}\n\n\t// Every registry will have the following metrics.\n\tmetricNames := []struct {\n\t\tname string\n\t\ttyp string\n\t\tval int64\n\t}{\n\t\t{\"testGauge\", \"gauge\", 20},\n\t\t{\"testCounter\", \"counter\", 5},\n\t\t{\"testRate\", \"rate\", 2},\n\t\t{\"testHistogram\", \"histogram\", 10},\n\t\t{\"testLatency\", \"latency\", 10},\n\n\t\t// Stats needed for store summaries.\n\t\t{\"ranges\", \"counter\", 1},\n\t\t{\"ranges.leader\", \"gauge\", 1},\n\t\t{\"ranges.replicated\", \"gauge\", 1},\n\t\t{\"ranges.available\", \"gauge\", 1},\n\t}\n\n\t// Add the above metrics to each registry. At the same time, generate\n\t// expected time series results.\n\tvar expected []ts.TimeSeriesData\n\taddExpected := func(prefix, name string, source, time, val int64) {\n\t\texpect := ts.TimeSeriesData{\n\t\t\tName: prefix + name,\n\t\t\tSource: strconv.FormatInt(source, 10),\n\t\t\tDatapoints: []*ts.TimeSeriesDatapoint{\n\t\t\t\t{\n\t\t\t\t\tTimestampNanos: time,\n\t\t\t\t\tValue: float64(val),\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t\texpected = append(expected, expect)\n\t}\n\n\tfor _, data := range metricNames {\n\t\tfor _, reg := range regList {\n\t\t\tswitch data.typ {\n\t\t\tcase \"gauge\":\n\t\t\t\treg.reg.Gauge(data.name).Update(data.val)\n\t\t\t\taddExpected(reg.prefix, data.name, reg.source, 100, data.val)\n\t\t\tcase \"counter\":\n\t\t\t\treg.reg.Counter(data.name).Inc(data.val)\n\t\t\t\taddExpected(reg.prefix, data.name, reg.source, 100, data.val)\n\t\t\tcase \"rate\":\n\t\t\t\treg.reg.Rates(data.name).Add(data.val)\n\t\t\t\taddExpected(reg.prefix, data.name+\"-count\", reg.source, 100, data.val)\n\t\t\t\tfor _, scale := range metric.DefaultTimeScales {\n\t\t\t\t\t// Rate data is subject to timing errors in tests. Zero out\n\t\t\t\t\t// these values.\n\t\t\t\t\taddExpected(reg.prefix, data.name+sep+scale.Name(), reg.source, 100, 0)\n\t\t\t\t}\n\t\t\tcase \"histogram\":\n\t\t\t\treg.reg.Histogram(data.name, time.Second, 1000, 2).RecordValue(data.val)\n\t\t\t\tfor _, q := range recordHistogramQuantiles {\n\t\t\t\t\taddExpected(reg.prefix, data.name+q.suffix, reg.source, 100, data.val)\n\t\t\t\t}\n\t\t\tcase \"latency\":\n\t\t\t\treg.reg.Latency(data.name).RecordValue(data.val)\n\t\t\t\t// Latency is simply three histograms (at different resolution\n\t\t\t\t// time scales).\n\t\t\t\tfor _, scale := range metric.DefaultTimeScales {\n\t\t\t\t\tfor _, q := range recordHistogramQuantiles {\n\t\t\t\t\t\taddExpected(reg.prefix, data.name+sep+scale.Name()+q.suffix, reg.source, 100, data.val)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tactual := recorder.GetTimeSeriesData()\n\n\t// Zero-out timing-sensitive rate values from actual data.\n\tfor _, act := range actual {\n\t\tmatch, err := regexp.MatchString(`testRate-\\d+m`, act.Name)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tif match {\n\t\t\tact.Datapoints[0].Value = 0.0\n\t\t}\n\t}\n\n\t// Actual comparison is simple: sort the resulting arrays by time and name,\n\t// and use reflect.DeepEqual.\n\tsort.Sort(byTimeAndName(actual))\n\tsort.Sort(byTimeAndName(expected))\n\tif a, e := actual, expected; !reflect.DeepEqual(a, e) {\n\t\tt.Errorf(\"recorder did not yield expected time series collection; diff:\\n %v\", pretty.Diff(e, a))\n\t}\n\n\t// **** STATUS SUMMARY TESTING\n\t// Generate an expected node summary and two store summaries. The\n\t// information here is relatively simple in our test.\n\texpectedNodeSummary := &NodeStatus{\n\t\tDesc: nodeDesc,\n\t\tStartedAt: 50,\n\t\tUpdatedAt: 100,\n\t\tStoreIDs: []roachpb.StoreID{\n\t\t\troachpb.StoreID(1),\n\t\t\troachpb.StoreID(2),\n\t\t},\n\t\tRangeCount: 2,\n\t\tLeaderRangeCount: 2,\n\t\tAvailableRangeCount: 2,\n\t\tReplicatedRangeCount: 2,\n\t}\n\texpectedStoreSummaries := []storage.StoreStatus{\n\t\t{\n\t\t\tDesc: storeDesc1,\n\t\t\tNodeID: roachpb.NodeID(1),\n\t\t\tStartedAt: 50,\n\t\t\tUpdatedAt: 100,\n\t\t\tRangeCount: 1,\n\t\t\tLeaderRangeCount: 1,\n\t\t\tAvailableRangeCount: 1,\n\t\t\tReplicatedRangeCount: 1,\n\t\t\tStats: stats,\n\t\t},\n\t\t{\n\t\t\tDesc: storeDesc2,\n\t\t\tNodeID: roachpb.NodeID(1),\n\t\t\tStartedAt: 50,\n\t\t\tUpdatedAt: 100,\n\t\t\tRangeCount: 1,\n\t\t\tLeaderRangeCount: 1,\n\t\t\tAvailableRangeCount: 1,\n\t\t\tReplicatedRangeCount: 1,\n\t\t\tStats: stats,\n\t\t},\n\t}\n\tfor _, ss := range expectedStoreSummaries {\n\t\texpectedNodeSummary.Stats.Add(ss.Stats)\n\t}\n\n\tnodeSummary, storeSummaries := recorder.GetStatusSummaries()\n\tif nodeSummary == nil {\n\t\tt.Fatalf(\"recorder did not return nodeSummary.\")\n\t}\n\tif storeSummaries == nil {\n\t\tt.Fatalf(\"recorder did not return storeSummaries.\")\n\t}\n\n\tsort.Sort(byStoreDescID(storeSummaries))\n\tsort.Sort(byStoreID(nodeSummary.StoreIDs))\n\tif a, e := nodeSummary, expectedNodeSummary; !reflect.DeepEqual(a, e) {\n\t\tt.Errorf(\"recorder did not produce expected NodeSummary; diff:\\n %v\", pretty.Diff(e, a))\n\t}\n\tif a, e := storeSummaries, expectedStoreSummaries; !reflect.DeepEqual(a, e) {\n\t\tt.Errorf(\"recorder did not produce expected StoreSummaries; diff:\\n %v\", pretty.Diff(e, a))\n\t}\n}",
"func NewMetrics(subsystem string) *Metrics {\n\tbase := metrics.NewBase(subsystem, \"\")\n\treturn &Metrics{\n\t\tBase: base,\n\t\tFailedDatabaseMethods: promauto.NewCounterVec(prometheus.CounterOpts{\n\t\t\tName: \"failed_database_operations\",\n\t\t\tHelp: \"Tracks the number of database failures\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}, []string{methodLabel}),\n\t\tDepositIDMismatch: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"deposit_id_mismatch\",\n\t\t\tHelp: \"Set to 1 when the postgres and the disrburser contract \" +\n\t\t\t\t\"disagree on the next deposit id, and 0 otherwise\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tMissingDisbursements: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"missing_disbursements\",\n\t\t\tHelp: \"Number of deposits that are missing disbursements in \" +\n\t\t\t\t\"postgres below our supposed next deposit id\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tSuccessfulDisbursements: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"successful_disbursements\",\n\t\t\tHelp: \"Number of disbursements that emit a success event \" +\n\t\t\t\t\"from a given tx\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tFailedDisbursements: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"failed_disbursements\",\n\t\t\tHelp: \"Number of disbursements that emit a failed event \" +\n\t\t\t\t\"from a given tx\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tPostgresLastDisbursedID: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"postgres_last_disbursed_id\",\n\t\t\tHelp: \"Latest recorded disbursement id in postgres\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tContractNextDisbursementID: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"contract_next_disbursement_id\",\n\t\t\tHelp: \"Next disbursement id expected by the disburser contract\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tContractNextDepositID: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"contract_next_deposit_id\",\n\t\t\tHelp: \"next deposit id expected by the deposit contract\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tDisburserBalance: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"disburser_balance\",\n\t\t\tHelp: \"Balance in Wei of Teleportr's disburser wallet\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tDepositContractBalance: promauto.NewGauge(prometheus.GaugeOpts{\n\t\t\tName: \"deposit_contract_balance\",\n\t\t\tHelp: \"Balance in Wei of Teleportr's deposit contract\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}),\n\t\tFailedTXSubmissions: promauto.NewCounterVec(prometheus.CounterOpts{\n\t\t\tName: \"failed_tx_submissions\",\n\t\t\tHelp: \"Number of failed transaction submissions\",\n\t\t\tSubsystem: base.SubsystemName(),\n\t\t}, []string{\n\t\t\t\"type\",\n\t\t}),\n\t}\n}",
"func New() *Metrics {\n\treturn &Metrics{\n\t\tSectionCounts: make(map[string]int),\n\t}\n}",
"func New() *CloudMetrics {\n\treturn &CloudMetrics{\n\t\tAPIRequestsCounter: promauto.NewCounter(prometheus.CounterOpts{\n\t\t\tNamespace: provisionerNamespace,\n\t\t\tSubsystem: provisionerSubsystemAPI,\n\t\t\tName: \"requests_total\",\n\t\t\tHelp: \"The total number of http API requests\",\n\t\t}),\n\n\t\tAPITimesHistograms: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemAPI,\n\t\t\t\tName: \"requests_duration\",\n\t\t\t\tHelp: \"The duration of http API requests\",\n\t\t\t},\n\t\t\t[]string{\"handler\", \"method\", \"status_code\"},\n\t\t),\n\n\t\tInstallationCreationDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"installation_creation_duration_seconds\",\n\t\t\t\tHelp: \"The duration of installation creation tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"group\"},\n\t\t),\n\n\t\tInstallationUpdateDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"installation_update_duration_seconds\",\n\t\t\t\tHelp: \"The duration of installation update tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"group\"},\n\t\t),\n\n\t\tInstallationHibernationDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"installation_hibernation_duration_seconds\",\n\t\t\t\tHelp: \"The duration of installation hibernation tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"group\"},\n\t\t),\n\n\t\tInstallationWakeUpDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"installation_wakeup_duration_seconds\",\n\t\t\t\tHelp: \"The duration of installation wake up tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"group\"},\n\t\t),\n\n\t\tInstallationDeletionDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"installation_deletion_duration_seconds\",\n\t\t\t\tHelp: \"The duration of installation deletion tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"group\"},\n\t\t),\n\n\t\tClusterInstallationReconcilingDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_installation_reconciling_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster installation reconciliation tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"cluster\"},\n\t\t),\n\n\t\tClusterInstallationDeletionDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_installation_deletion_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster installation deletion tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{\"cluster\"},\n\t\t),\n\t\tClusterCreationDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_creation_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster creation tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{},\n\t\t),\n\t\tClusterUpgradeDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_upgrade_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster upgrade tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{},\n\t\t),\n\t\tClusterProvisioningDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_provisioning_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster provisioning tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{},\n\t\t),\n\t\tClusterResizeDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_resize_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster resize tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{},\n\t\t),\n\t\tClusterDeletionDurationHist: promauto.NewHistogramVec(\n\t\t\tprometheus.HistogramOpts{\n\t\t\t\tNamespace: provisionerNamespace,\n\t\t\t\tSubsystem: provisionerSubsystemApp,\n\t\t\t\tName: \"cluster_deletion_duration_seconds\",\n\t\t\t\tHelp: \"The duration of cluster deletion tasks\",\n\t\t\t\tBuckets: standardDurationBuckets(),\n\t\t\t},\n\t\t\t[]string{},\n\t\t),\n\t}\n}",
"func NewMetricsWrapper(ctx context.Context, base api.Backend) api.Backend {\n\tmetricsOnce.Do(func() {\n\t\tprometheus.MustRegister(registeryCollectors...)\n\t})\n\n\t// XXX: When the registry backends support node deregistration,\n\t// handle this on the metrics side.\n\n\twrapper := &metricsWrapper{\n\t\tBackend: base,\n\t\tcloseCh: make(chan struct{}),\n\t\tclosedCh: make(chan struct{}),\n\t}\n\n\twrapper.updatePeriodicMetrics(ctx)\n\tgo wrapper.worker(ctx)\n\n\treturn wrapper\n}",
"func New() *SystemMetrics {\n\treturn &SystemMetrics{}\n}",
"func NewMetrics() *Metrics {\n\treturn &Metrics{\n\t\tInputBytesTotal: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_input_bytes_total\",\n\t\t\t\tHelp: \"Total number of bytes received\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tOutputBytesTotal: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_output_bytes_total\",\n\t\t\t\tHelp: \"Total number of bytes sent.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tInputPacketsTotal: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_input_pkts_total\",\n\t\t\t\tHelp: \"Total number of packets received\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tOutputPacketsTotal: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_output_pkts_total\",\n\t\t\t\tHelp: \"Total number of packets sent.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tDroppedPacketsTotal: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_dropped_pkts_total\",\n\t\t\t\tHelp: \"Total number of packets dropped by the router. This metric reports \" +\n\t\t\t\t\t\"the number of packets that were dropped because of errors.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tInterfaceUp: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tName: \"router_interface_up\",\n\t\t\t\tHelp: \"Either zero or one depending on whether the interface is up.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tBFDInterfaceStateChanges: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_bfd_state_changes_total\",\n\t\t\t\tHelp: \"Total number of BFD state changes.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tBFDPacketsSent: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_bfd_sent_packets_total\",\n\t\t\t\tHelp: \"Number of BFD packets sent.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tBFDPacketsReceived: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_bfd_received_packets_total\",\n\t\t\t\tHelp: \"Number of BFD packets received.\",\n\t\t\t},\n\t\t\t[]string{\"interface\", \"isd_as\", \"neighbor_isd_as\"},\n\t\t),\n\t\tServiceInstanceCount: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tName: \"router_service_instance_count\",\n\t\t\t\tHelp: \"Number of service instances known by the data plane.\",\n\t\t\t},\n\t\t\t[]string{\"service\", \"isd_as\"},\n\t\t),\n\t\tServiceInstanceChanges: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_service_instance_changes_total\",\n\t\t\t\tHelp: \"Number of total service instance changes. Both addition and removal of a \" +\n\t\t\t\t\t\"service instance is accumulated.\",\n\t\t\t},\n\t\t\t[]string{\"service\", \"isd_as\"},\n\t\t),\n\t\tSiblingReachable: promauto.NewGaugeVec(\n\t\t\tprometheus.GaugeOpts{\n\t\t\t\tName: \"router_sibling_reachable\",\n\t\t\t\tHelp: \"Either zero or one depending on whether a sibling router \" +\n\t\t\t\t\t\"instance is reachable.\",\n\t\t\t},\n\t\t\t[]string{\"sibling\", \"isd_as\"},\n\t\t),\n\t\tSiblingBFDPacketsSent: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_bfd_sent_sibling_packets_total\",\n\t\t\t\tHelp: \"Number of BFD packets sent to sibling router instance.\",\n\t\t\t},\n\t\t\t[]string{\"sibling\", \"isd_as\"},\n\t\t),\n\t\tSiblingBFDPacketsReceived: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_bfd_received_sibling_packets_total\",\n\t\t\t\tHelp: \"Number of BFD packets received from sibling router instance.\",\n\t\t\t},\n\t\t\t[]string{\"sibling\", \"isd_as\"},\n\t\t),\n\t\tSiblingBFDStateChanges: promauto.NewCounterVec(\n\t\t\tprometheus.CounterOpts{\n\t\t\t\tName: \"router_bfd_sibling_state_changes_total\",\n\t\t\t\tHelp: \"Total number of BFD state changes for sibling router instances\",\n\t\t\t},\n\t\t\t[]string{\"sibling\", \"isd_as\"},\n\t\t),\n\t}\n}",
"func New(items map[storage.Key]*storage.Value, opts ...func(*Storage)) *Storage {\n\tstrg := &Storage{\n\t\tmeta: make(map[storage.MetaKey]storage.MetaValue),\n\t}\n\tstrg.setItems(items)\n\n\tfor _, f := range opts {\n\t\tf(strg)\n\t}\n\n\tif strg.clck == nil {\n\t\tstrg.clck = clock.New()\n\t}\n\n\treturn strg\n}",
"func New() (*mock, error) {\n\treturn &mock{\n\t\tConfigService: ConfigService{},\n\t\tContainerService: ContainerService{},\n\t\tDistributionService: DistributionService{},\n\t\tImageService: ImageService{},\n\t\tNetworkService: NetworkService{},\n\t\tNodeService: NodeService{},\n\t\tPluginService: PluginService{},\n\t\tSecretService: SecretService{},\n\t\tServiceService: ServiceService{},\n\t\tSystemService: SystemService{},\n\t\tSwarmService: SwarmService{},\n\t\tVolumeService: VolumeService{},\n\t\tVersion: Version,\n\t}, nil\n}",
"func newListMetrics() *listMetrics {\n\treturn new(listMetrics)\n}",
"func NewMetrics(scope tally.Scope) *Metrics {\n\treadyScope := scope.SubScope(\"ready\")\n\ttrackerScope := scope.SubScope(\"tracker\")\n\ttaskStateScope := scope.SubScope(\"tasks_state\")\n\n\treconcilerScope := scope.SubScope(\"reconciler\")\n\tleakScope := reconcilerScope.SubScope(\"leaks\")\n\tsuccessScope := reconcilerScope.Tagged(map[string]string{\"result\": \"success\"})\n\tfailScope := reconcilerScope.Tagged(map[string]string{\"result\": \"fail\"})\n\n\treturn &Metrics{\n\t\tReadyQueueLen: readyScope.Gauge(\"ready_queue_length\"),\n\t\tTasksCountInTracker: trackerScope.Gauge(\"task_len_tracker\"),\n\t\tTaskStatesGauge: map[task.TaskState]tally.Gauge{\n\t\t\ttask.TaskState_PENDING: taskStateScope.Gauge(\n\t\t\t\t\"task_state_pending\"),\n\t\t\ttask.TaskState_READY: taskStateScope.Gauge(\n\t\t\t\t\"task_state_ready\"),\n\t\t\ttask.TaskState_PLACING: taskStateScope.Gauge(\n\t\t\t\t\"task_state_placing\"),\n\t\t\ttask.TaskState_PLACED: taskStateScope.Gauge(\n\t\t\t\t\"task_state_placed\"),\n\t\t\ttask.TaskState_LAUNCHING: taskStateScope.Gauge(\n\t\t\t\t\"task_state_launching\"),\n\t\t\ttask.TaskState_LAUNCHED: taskStateScope.Gauge(\n\t\t\t\t\"task_state_launched\"),\n\t\t\ttask.TaskState_RUNNING: taskStateScope.Gauge(\n\t\t\t\t\"task_state_running\"),\n\t\t\ttask.TaskState_SUCCEEDED: taskStateScope.Gauge(\n\t\t\t\t\"task_state_succeeded\"),\n\t\t\ttask.TaskState_FAILED: taskStateScope.Gauge(\n\t\t\t\t\"task_state_failed\"),\n\t\t\ttask.TaskState_KILLED: taskStateScope.Gauge(\n\t\t\t\t\"task_state_killed\"),\n\t\t\ttask.TaskState_LOST: taskStateScope.Gauge(\n\t\t\t\t\"task_state_lost\"),\n\t\t\ttask.TaskState_PREEMPTING: taskStateScope.Gauge(\n\t\t\t\t\"task_state_preempting\"),\n\t\t},\n\t\tResourcesHeldByTaskState: map[task.TaskState]scalar.GaugeMaps{\n\t\t\ttask.TaskState_READY: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_ready\"),\n\t\t\t),\n\t\t\ttask.TaskState_PLACING: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_placing\"),\n\t\t\t),\n\t\t\ttask.TaskState_PLACED: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_placed\"),\n\t\t\t),\n\t\t\ttask.TaskState_LAUNCHING: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_launching\"),\n\t\t\t),\n\t\t\ttask.TaskState_LAUNCHED: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_launched\"),\n\t\t\t),\n\t\t\ttask.TaskState_RUNNING: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_running\"),\n\t\t\t),\n\t\t\ttask.TaskState_STARTING: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_starting\"),\n\t\t\t),\n\t\t\ttask.TaskState_PREEMPTING: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_preempting\"),\n\t\t\t),\n\t\t\ttask.TaskState_KILLING: scalar.NewGaugeMaps(\n\t\t\t\tscope.SubScope(\"task_state_killing\"),\n\t\t\t),\n\t\t},\n\t\tLeakedResources: scalar.NewGaugeMaps(leakScope),\n\t\tReconciliationSuccess: successScope.Counter(\"run\"),\n\t\tReconciliationFail: failScope.Counter(\"run\"),\n\t\tOrphanTasks: scope.Gauge(\"orphan_tasks\"),\n\t}\n}",
"func NewMockFileStorage() *FileStorage {\n\treturn &FileStorage{\n\t\tFileStorage: &mocks.FileStorage{},\n\t}\n}",
"func MockGetMetricStatistics(t *testing.T, mockMatcher *sdk.MockCloudWatchAPI, metric float64, statistic string, numberOfMetrics int) {\n\tlog.Logger.Warningf(\"Mocking AWS iface: GetMetricStatistics\")\n\tif numberOfMetrics == 0 {\n\t\tnumberOfMetrics = 1\n\t}\n\n\tresult := &cloudwatch.GetMetricStatisticsOutput{}\n\tresult.Label = aws.String(\"fake\")\n\tresult.Datapoints = make([]*cloudwatch.Datapoint, numberOfMetrics)\n\tfor i := 0; i < numberOfMetrics; i++ {\n\t\td := &cloudwatch.Datapoint{}\n\n\t\tswitch statistic {\n\t\tcase cloudwatch.StatisticMaximum:\n\t\t\td.Maximum = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticMinimum:\n\t\t\td.Minimum = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticSum:\n\t\t\td.Sum = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticSampleCount:\n\t\t\td.SampleCount = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticAverage:\n\t\t\td.Average = aws.Float64(metric)\n\t\tdefault:\n\t\t\tt.Fatalf(\"Wrong metric statistic: %s\", statistic)\n\t\t}\n\t\td.Timestamp = aws.Time(time.Now().UTC())\n\t\td.Unit = aws.String(cloudwatch.StandardUnitPercent)\n\t\tresult.Datapoints[i] = d\n\t}\n\n\t// Mock as expected with our result\n\tmockMatcher.EXPECT().GetMetricStatistics(gomock.Any()).Do(func(input interface{}) {\n\t\tgotInput := input.(*cloudwatch.GetMetricStatisticsInput)\n\t\t// Check API received parameters are fine\n\t\tif aws.StringValue(gotInput.Namespace) == \"\" {\n\t\t\tt.Fatalf(\"Expected namespace, got nothing\")\n\t\t}\n\n\t\tif aws.StringValue(gotInput.MetricName) == \"\" {\n\t\t\tt.Fatalf(\"Expected metric name, got nothing\")\n\t\t}\n\n\t\tif aws.StringValue(gotInput.Unit) == \"\" {\n\t\t\tt.Fatalf(\"Expected unit, got nothing\")\n\t\t}\n\n\t\tif len(gotInput.Statistics) != 1 {\n\t\t\tt.Fatalf(\"Wrong statistics name\")\n\t\t}\n\n\t}).AnyTimes().Return(result, nil)\n\n}",
"func newHttpMetrics() *httpMetrics {\n\treturn &httpMetrics{\n\t\tRequestsTotal: promauto.NewCounterVec(prometheus.CounterOpts{\n\t\t\tSubsystem: \"provider\",\n\t\t\tName: \"http_requests_total\",\n\t\t\tHelp: \"Total number of HTTP requests.\",\n\t\t}, []string{\"code\", \"method\", \"path\"}),\n\t\tRequestDurationHistogram: promauto.NewHistogramVec(prometheus.HistogramOpts{\n\t\t\tSubsystem: \"provider\",\n\t\t\tName: \"http_request_duration_seconds\",\n\t\t\tHelp: \"Seconds spent serving HTTP requests.\",\n\t\t\tBuckets: prometheus.DefBuckets,\n\t\t}, []string{\"code\", \"method\", \"path\"}),\n\t}\n}",
"func NewStorage() Storage {\n\tmemtable := memtable.NewRollingMemtable()\n\n\tstorage := Storage{memtable: memtable, wal: wal.Wal{Memtable: &memtable}}\n\tstorage.wal.Start()\n\treturn storage\n}",
"func newOfferStorage() *offerStorage {\n\treturn &offerStorage{\n\t\tcidMap: make(map[string]*digestOffer),\n\t\tlock: sync.RWMutex{},\n\t}\n}",
"func NewBaseMetrics() (*BaseMetrics, error) {\n\tm, err := metrics.NewBaseMemoryStats(nil, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &BaseMetrics{innerMetrics: m}, nil\n}",
"func NewMockResizeStorage(ctrl *gomock.Controller) *MockResizeStorage {\n\tmock := &MockResizeStorage{ctrl: ctrl}\n\tmock.recorder = &MockResizeStorageMockRecorder{mock}\n\treturn mock\n}",
"func (m *podMetrics) New() runtime.Object {\n\treturn &metrics.PodMetrics{}\n}",
"func NewMockDefault() *Mock {\n\tmgr := new(Mock)\n\tvar pluginsMap = make(map[string]managerContracts.Plugin)\n\tvar cwPlugin = managerContracts.Plugin{\n\t\tHandler: cloudwatch.NewMockDefault(),\n\t}\n\tpluginsMap[CloudWatchId] = cwPlugin\n\n\tmgr.On(\"GetRegisteredPlugins\").Return(pluginsMap)\n\tmgr.On(\"Name\").Return(CloudWatchId)\n\tmgr.On(\"Execute\", mock.AnythingOfType(\"context.T\")).Return(nil)\n\tmgr.On(\"RequestStop\", mock.AnythingOfType(\"string\")).Return(nil)\n\tmgr.On(\"StopPlugin\", mock.AnythingOfType(\"string\"), mock.Anything).Return(nil)\n\tmgr.On(\"StartPlugin\", mock.AnythingOfType(\"string\"), mock.AnythingOfType(\"string\"), mock.AnythingOfType(\"string\"), mock.AnythingOfType(\"task.CancelFlag\")).Return(nil)\n\treturn mgr\n}",
"func NewStorage() *InMemoryHashStorage {\n\treturn &InMemoryHashStorage{\n\t\tmake(map[int64]string),\n\t\t0,\n\t\t&sync.RWMutex{},\n\t}\n}",
"func NewMockPromMetrics(ctrl *gomock.Controller) *MockPromMetrics {\n\tmock := &MockPromMetrics{ctrl: ctrl}\n\tmock.recorder = &MockPromMetricsMockRecorder{mock}\n\treturn mock\n}",
"func NewMetrics(factory metrics.Factory, globalTags map[string]string) *Metrics {\n\tm := &Metrics{}\n\tmetrics.Init(m, factory.Namespace(\"jaeger\", nil), globalTags)\n\treturn m\n}",
"func NewMetrics(registry metrics.Registry) Metrics {\n\treturn &defaultMetrics{registry: registry}\n}",
"func NewMetrics(name string, r prometheus.Registerer) *Metrics {\n\treg := prometheus.WrapRegistererWith(prometheus.Labels{\"controller\": name}, r)\n\tm := Metrics{\n\t\treg: reg,\n\t\treconcileErrorsCounter: prometheus.NewCounter(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_reconcile_errors_total\",\n\t\t\tHelp: \"Number of errors that occurred while reconciling the statefulset\",\n\t\t}),\n\t\ttriggerByCounter: prometheus.NewCounterVec(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_triggered_total\",\n\t\t\tHelp: \"Number of times a Kubernetes object add, delete or update event\" +\n\t\t\t\t\" triggered the Prometheus Operator to reconcile an object\",\n\t\t}, []string{\"triggered_by\", \"action\"}),\n\t\tstsDeleteCreateCounter: prometheus.NewCounter(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_reconcile_sts_delete_create_total\",\n\t\t\tHelp: \"Number of times that reconciling a statefulset required deleting and re-creating it\",\n\t\t}),\n\t\tlistCounter: prometheus.NewCounter(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_list_operations_total\",\n\t\t\tHelp: \"Total number of list operations\",\n\t\t}),\n\t\tlistFailedCounter: prometheus.NewCounter(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_list_operations_failed_total\",\n\t\t\tHelp: \"Total number of list operations that failed\",\n\t\t}),\n\t\twatchCounter: prometheus.NewCounter(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_watch_operations_total\",\n\t\t\tHelp: \"Total number of watch operations\",\n\t\t}),\n\t\twatchFailedCounter: prometheus.NewCounter(prometheus.CounterOpts{\n\t\t\tName: \"prometheus_operator_watch_operations_failed_total\",\n\t\t\tHelp: \"Total number of watch operations that failed\",\n\t\t}),\n\t}\n\tm.reg.MustRegister(\n\t\tm.reconcileErrorsCounter,\n\t\tm.triggerByCounter,\n\t\tm.stsDeleteCreateCounter,\n\t\tm.listCounter,\n\t\tm.listFailedCounter,\n\t\tm.watchCounter,\n\t\tm.watchFailedCounter,\n\t)\n\treturn &m\n}",
"func New() *Mock {\n\treturn &Mock{\n\t\tm: mockMap{},\n\t\toldTransport: http.DefaultTransport,\n\t}\n}",
"func NewStorage(\n\tlogger *zerolog.Logger,\n\tcfg *config.TSDBStorageConfig,\n\tmetadataStorage metadata.Storage,\n) (data.Storage, error) {\n\tgoKitWrapper, err := NewGoKitLogWrapper(logger)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// create data directory if not exists\n\tif _, err = os.Stat(cfg.DataDir); err != nil {\n\t\tif os.IsNotExist(err) {\n\t\t\tif err = os.MkdirAll(cfg.DataDir, 0750); err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t} else {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\t// create storage\n\tstor, err := prometheus.OpenTSDB(cfg.DataDir, goKitWrapper)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tctx, cancel := context.WithCancel(context.Background())\n\n\ts := &storage{\n\t\tcodec: newB64Codec(),\n\t\tmetadataStorage: metadataStorage,\n\t\tcfg: cfg,\n\t\tctx: ctx,\n\t\tcancel: cancel,\n\t\twg: sync.WaitGroup{},\n\t\tlogger: logger,\n\t\ttsdbStorage: stor,\n\t}\n\treturn s, nil\n}"
] | [
"0.72809017",
"0.67273206",
"0.6696773",
"0.6696773",
"0.66020596",
"0.64353716",
"0.62905747",
"0.62905747",
"0.62905747",
"0.62905747",
"0.62905747",
"0.6169446",
"0.6083583",
"0.60826516",
"0.6076789",
"0.6076789",
"0.6011755",
"0.59640616",
"0.5956145",
"0.59502697",
"0.5948578",
"0.59441054",
"0.5927615",
"0.59190375",
"0.58794856",
"0.5878953",
"0.5851891",
"0.58451116",
"0.5843591",
"0.5834961",
"0.5832785",
"0.58299",
"0.58299",
"0.58299",
"0.58299",
"0.58299",
"0.58299",
"0.58299",
"0.58299",
"0.5820318",
"0.58074397",
"0.57870185",
"0.5775091",
"0.5766891",
"0.57639086",
"0.57268536",
"0.57253927",
"0.572128",
"0.5713068",
"0.5691262",
"0.5686232",
"0.5675176",
"0.56696004",
"0.5662255",
"0.56565547",
"0.56542206",
"0.5641654",
"0.56401986",
"0.5633381",
"0.5623217",
"0.56019133",
"0.5596646",
"0.5584383",
"0.5579663",
"0.5566723",
"0.5561645",
"0.55596435",
"0.5552768",
"0.5540184",
"0.5538342",
"0.5532362",
"0.55200636",
"0.55161583",
"0.5506866",
"0.5500522",
"0.5495699",
"0.54946774",
"0.54874945",
"0.54718053",
"0.5471673",
"0.54711616",
"0.5469677",
"0.54663926",
"0.54638416",
"0.54597193",
"0.5455511",
"0.54534334",
"0.5445396",
"0.5445272",
"0.542532",
"0.54078716",
"0.540559",
"0.54000974",
"0.5398166",
"0.5394567",
"0.5388266",
"0.53869635",
"0.53849125",
"0.53759205",
"0.53735125"
] | 0.70443726 | 1 |
EXPECT returns an object that allows the caller to indicate expected use | func (m *MockStorageMetrics) EXPECT() *MockStorageMetricsMockRecorder {
return m.recorder
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (mmGetObject *mClientMockGetObject) Expect(ctx context.Context, head insolar.Reference) *mClientMockGetObject {\n\tif mmGetObject.mock.funcGetObject != nil {\n\t\tmmGetObject.mock.t.Fatalf(\"ClientMock.GetObject mock is already set by Set\")\n\t}\n\n\tif mmGetObject.defaultExpectation == nil {\n\t\tmmGetObject.defaultExpectation = &ClientMockGetObjectExpectation{}\n\t}\n\n\tmmGetObject.defaultExpectation.params = &ClientMockGetObjectParams{ctx, head}\n\tfor _, e := range mmGetObject.expectations {\n\t\tif minimock.Equal(e.params, mmGetObject.defaultExpectation.params) {\n\t\t\tmmGetObject.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetObject.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetObject\n}",
"func (r Requester) Assert(actual, expected interface{}) Requester {\n\t//r.actualResponse = actual\n\t//r.expectedResponse = expected\n\treturn r\n}",
"func (r *Request) Expect(t *testing.T) *Response {\n\tr.apiTest.t = t\n\treturn r.apiTest.response\n}",
"func (m *MockNotary) Notarize(arg0 string) (map[string]interface{}, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Notarize\", arg0)\n\tret0, _ := ret[0].(map[string]interface{})\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (tc TestCases) expect() {\n\tfmt.Println(cnt)\n\tcnt++\n\tif !reflect.DeepEqual(tc.resp, tc.respExp) {\n\t\ttc.t.Error(fmt.Sprintf(\"\\nRequested: \", tc.req, \"\\nExpected: \", tc.respExp, \"\\nFound: \", tc.resp))\n\t}\n}",
"func (r *Request) Expect(t TestingT) *Response {\n\tr.apiTest.t = t\n\treturn r.apiTest.response\n}",
"func Expect(t cbtest.T, actual interface{}, matcher matcher.Matcher, labelAndArgs ...interface{}) {\n\tt.Helper()\n\tres := ExpectE(t, actual, matcher, labelAndArgs...)\n\tif !res {\n\t\tt.FailNow()\n\t}\n}",
"func (m *MockisObject_Obj) EXPECT() *MockisObject_ObjMockRecorder {\n\treturn m.recorder\n}",
"func Expect(t *testing.T, v, m interface{}) {\n\tvt, vok := v.(Equaler)\n\tmt, mok := m.(Equaler)\n\n\tvar state bool\n\tif vok && mok {\n\t\tstate = vt.Equal(mt)\n\t} else {\n\t\tstate = reflect.DeepEqual(v, m)\n\t}\n\n\tif state {\n\t\tflux.FatalFailed(t, \"Value %+v and %+v are not a match\", v, m)\n\t\treturn\n\t}\n\tflux.LogPassed(t, \"Value %+v and %+v are a match\", v, m)\n}",
"func (mmState *mClientMockState) Expect() *mClientMockState {\n\tif mmState.mock.funcState != nil {\n\t\tmmState.mock.t.Fatalf(\"ClientMock.State mock is already set by Set\")\n\t}\n\n\tif mmState.defaultExpectation == nil {\n\t\tmmState.defaultExpectation = &ClientMockStateExpectation{}\n\t}\n\n\treturn mmState\n}",
"func (mmProvide *mContainerMockProvide) Expect(constructor interface{}) *mContainerMockProvide {\n\tif mmProvide.mock.funcProvide != nil {\n\t\tmmProvide.mock.t.Fatalf(\"ContainerMock.Provide mock is already set by Set\")\n\t}\n\n\tif mmProvide.defaultExpectation == nil {\n\t\tmmProvide.defaultExpectation = &ContainerMockProvideExpectation{}\n\t}\n\n\tmmProvide.defaultExpectation.params = &ContainerMockProvideParams{constructor}\n\tfor _, e := range mmProvide.expectations {\n\t\tif minimock.Equal(e.params, mmProvide.defaultExpectation.params) {\n\t\t\tmmProvide.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmProvide.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmProvide\n}",
"func Mock() Env {\n\treturn mock.New()\n}",
"func (mmGetCode *mClientMockGetCode) Expect(ctx context.Context, ref insolar.Reference) *mClientMockGetCode {\n\tif mmGetCode.mock.funcGetCode != nil {\n\t\tmmGetCode.mock.t.Fatalf(\"ClientMock.GetCode mock is already set by Set\")\n\t}\n\n\tif mmGetCode.defaultExpectation == nil {\n\t\tmmGetCode.defaultExpectation = &ClientMockGetCodeExpectation{}\n\t}\n\n\tmmGetCode.defaultExpectation.params = &ClientMockGetCodeParams{ctx, ref}\n\tfor _, e := range mmGetCode.expectations {\n\t\tif minimock.Equal(e.params, mmGetCode.defaultExpectation.params) {\n\t\t\tmmGetCode.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetCode.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetCode\n}",
"func expect(t *testing.T, method, url string, testieOptions ...func(*http.Request)) *testie {\n\treq, err := http.NewRequest(method, url, nil)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tfor _, opt := range testieOptions {\n\t\topt(req)\n\t}\n\n\treturn testReq(t, req)\n}",
"func (_m *MockOStream) EXPECT() *MockOStreamMockRecorder {\n\treturn _m.recorder\n}",
"func (mmGetUser *mStorageMockGetUser) Expect(ctx context.Context, userID int64) *mStorageMockGetUser {\n\tif mmGetUser.mock.funcGetUser != nil {\n\t\tmmGetUser.mock.t.Fatalf(\"StorageMock.GetUser mock is already set by Set\")\n\t}\n\n\tif mmGetUser.defaultExpectation == nil {\n\t\tmmGetUser.defaultExpectation = &StorageMockGetUserExpectation{}\n\t}\n\n\tmmGetUser.defaultExpectation.params = &StorageMockGetUserParams{ctx, userID}\n\tfor _, e := range mmGetUser.expectations {\n\t\tif minimock.Equal(e.params, mmGetUser.defaultExpectation.params) {\n\t\t\tmmGetUser.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetUser.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetUser\n}",
"func (mmGetObject *mClientMockGetObject) Return(o1 ObjectDescriptor, err error) *ClientMock {\n\tif mmGetObject.mock.funcGetObject != nil {\n\t\tmmGetObject.mock.t.Fatalf(\"ClientMock.GetObject mock is already set by Set\")\n\t}\n\n\tif mmGetObject.defaultExpectation == nil {\n\t\tmmGetObject.defaultExpectation = &ClientMockGetObjectExpectation{mock: mmGetObject.mock}\n\t}\n\tmmGetObject.defaultExpectation.results = &ClientMockGetObjectResults{o1, err}\n\treturn mmGetObject.mock\n}",
"func (mmGather *mGathererMockGather) Expect() *mGathererMockGather {\n\tif mmGather.mock.funcGather != nil {\n\t\tmmGather.mock.t.Fatalf(\"GathererMock.Gather mock is already set by Set\")\n\t}\n\n\tif mmGather.defaultExpectation == nil {\n\t\tmmGather.defaultExpectation = &GathererMockGatherExpectation{}\n\t}\n\n\treturn mmGather\n}",
"func (m *MockParser) EXPECT() *MockParserMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockParser) EXPECT() *MockParserMockRecorder {\n\treturn m.recorder\n}",
"func (mmWriteTo *mDigestHolderMockWriteTo) Expect(w io.Writer) *mDigestHolderMockWriteTo {\n\tif mmWriteTo.mock.funcWriteTo != nil {\n\t\tmmWriteTo.mock.t.Fatalf(\"DigestHolderMock.WriteTo mock is already set by Set\")\n\t}\n\n\tif mmWriteTo.defaultExpectation == nil {\n\t\tmmWriteTo.defaultExpectation = &DigestHolderMockWriteToExpectation{}\n\t}\n\n\tmmWriteTo.defaultExpectation.params = &DigestHolderMockWriteToParams{w}\n\tfor _, e := range mmWriteTo.expectations {\n\t\tif minimock.Equal(e.params, mmWriteTo.defaultExpectation.params) {\n\t\t\tmmWriteTo.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmWriteTo.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmWriteTo\n}",
"func (rb *RequestBuilder) EXPECT() *ResponseAsserter {\n\treq := httptest.NewRequest(rb.method, rb.path, rb.body)\n\tfor k, v := range rb.hdr {\n\t\treq.Header[k] = v\n\t}\n\n\trec := httptest.NewRecorder()\n\trb.cas.h.ServeHTTP(rec, req)\n\n\treturn &ResponseAsserter{\n\t\trec: rec,\n\t\treq: req,\n\t\tb: rb,\n\t\tfail: rb.fail.\n\t\t\tCopy().\n\t\t\tWithRequest(req).\n\t\t\tWithResponse(rec),\n\t}\n}",
"func (mmGetState *mGatewayMockGetState) Expect() *mGatewayMockGetState {\n\tif mmGetState.mock.funcGetState != nil {\n\t\tmmGetState.mock.t.Fatalf(\"GatewayMock.GetState mock is already set by Set\")\n\t}\n\n\tif mmGetState.defaultExpectation == nil {\n\t\tmmGetState.defaultExpectation = &GatewayMockGetStateExpectation{}\n\t}\n\n\treturn mmGetState\n}",
"func (m *mParcelMockGetSign) Expect() *mParcelMockGetSign {\n\tm.mock.GetSignFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &ParcelMockGetSignExpectation{}\n\t}\n\n\treturn m\n}",
"func (mmCreateTag *mTagCreatorMockCreateTag) Expect(t1 semantic.Tag) *mTagCreatorMockCreateTag {\n\tif mmCreateTag.mock.funcCreateTag != nil {\n\t\tmmCreateTag.mock.t.Fatalf(\"TagCreatorMock.CreateTag mock is already set by Set\")\n\t}\n\n\tif mmCreateTag.defaultExpectation == nil {\n\t\tmmCreateTag.defaultExpectation = &TagCreatorMockCreateTagExpectation{}\n\t}\n\n\tmmCreateTag.defaultExpectation.params = &TagCreatorMockCreateTagParams{t1}\n\tfor _, e := range mmCreateTag.expectations {\n\t\tif minimock.Equal(e.params, mmCreateTag.defaultExpectation.params) {\n\t\t\tmmCreateTag.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmCreateTag.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmCreateTag\n}",
"func (m *MockActorUsecase) EXPECT() *MockActorUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *mParcelMockGetCaller) Expect() *mParcelMockGetCaller {\n\tm.mock.GetCallerFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &ParcelMockGetCallerExpectation{}\n\t}\n\n\treturn m\n}",
"func mockAlwaysRun() bool { return true }",
"func (m *MockArg) EXPECT() *MockArgMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder {\n\treturn m.recorder\n}",
"func (st *SDKTester) Test(resp interface{}) {\n\tif resp == nil || st.respWant == nil {\n\t\tst.t.Logf(\"response want/got is nil, abort\\n\")\n\t\treturn\n\t}\n\n\trespMap := st.getFieldMap(resp)\n\tfor i, v := range st.respWant {\n\t\tif reflect.DeepEqual(v, respMap[i]) {\n\t\t\tcontinue\n\t\t}\n\t\tswitch x := respMap[i].(type) {\n\t\tcase Stringer:\n\t\t\tif !assert.Equal(st.t, v, x.String()) {\n\t\t\t\tst.t.Errorf(\"%s want %v, got %v\", i, v, respMap[i])\n\t\t\t}\n\t\tcase map[string]interface{}:\n\t\t\tif value, ok := x[\"Value\"]; ok {\n\t\t\t\tif !assert.Equal(st.t, v, value) {\n\t\t\t\t\tst.t.Errorf(\"%s want %v, got %v\", i, v, respMap[i])\n\t\t\t\t}\n\t\t\t}\n\t\tcase Inter:\n\t\t\tif !assert.Equal(st.t, v, x.Int()) {\n\t\t\t\tst.t.Errorf(\"%s want %v, got %v\", i, v, respMap[i])\n\t\t\t}\n\t\tdefault:\n\t\t\tif !assert.Equal(st.t, v, respMap[i]) {\n\t\t\t\tst.t.Errorf(\"%s want %v, got %v\", i, v, respMap[i])\n\t\t\t}\n\t\t}\n\t}\n}",
"func (m *MockCreator) EXPECT() *MockCreatorMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockCreator) EXPECT() *MockCreatorMockRecorder {\n\treturn m.recorder\n}",
"func TestCallFunc_arguments(t *testing.T) {\n\n}",
"func TestGetNone4A(t *testing.T) {\n}",
"func (m *mParcelMockGetSender) Expect() *mParcelMockGetSender {\n\tm.mock.GetSenderFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &ParcelMockGetSenderExpectation{}\n\t}\n\n\treturn m\n}",
"func expectEqual(value, expected interface{}) {\n\tif value != expected {\n\t\tfmt.Printf(\"Fehler: %v bekommen, erwartet war aber %v.\\n\", value, expected)\n\t} else {\n\t\tfmt.Printf(\"OK: %v bekommen, erwartet war aber %v.\\n\", value, expected)\n\t}\n}",
"func (mmHasPendings *mClientMockHasPendings) Expect(ctx context.Context, object insolar.Reference) *mClientMockHasPendings {\n\tif mmHasPendings.mock.funcHasPendings != nil {\n\t\tmmHasPendings.mock.t.Fatalf(\"ClientMock.HasPendings mock is already set by Set\")\n\t}\n\n\tif mmHasPendings.defaultExpectation == nil {\n\t\tmmHasPendings.defaultExpectation = &ClientMockHasPendingsExpectation{}\n\t}\n\n\tmmHasPendings.defaultExpectation.params = &ClientMockHasPendingsParams{ctx, object}\n\tfor _, e := range mmHasPendings.expectations {\n\t\tif minimock.Equal(e.params, mmHasPendings.defaultExpectation.params) {\n\t\t\tmmHasPendings.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmHasPendings.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmHasPendings\n}",
"func (mmGetPacketSignature *mPacketParserMockGetPacketSignature) Expect() *mPacketParserMockGetPacketSignature {\n\tif mmGetPacketSignature.mock.funcGetPacketSignature != nil {\n\t\tmmGetPacketSignature.mock.t.Fatalf(\"PacketParserMock.GetPacketSignature mock is already set by Set\")\n\t}\n\n\tif mmGetPacketSignature.defaultExpectation == nil {\n\t\tmmGetPacketSignature.defaultExpectation = &PacketParserMockGetPacketSignatureExpectation{}\n\t}\n\n\treturn mmGetPacketSignature\n}",
"func Run(t testing.TB, cloud cloud.Client, src string, opts ...RunOption) {\n\n\tif cloud == nil {\n\t\tcloud = mockcloud.Client(nil)\n\t}\n\n\tvm := otto.New()\n\n\tpkg, err := godotto.Apply(context.Background(), vm, cloud)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tvm.Set(\"cloud\", pkg)\n\tvm.Set(\"equals\", func(call otto.FunctionCall) otto.Value {\n\t\tvm := call.Otto\n\t\tgot, err := call.Argument(0).Export()\n\t\tif err != nil {\n\t\t\tottoutil.Throw(vm, err.Error())\n\t\t}\n\t\twant, err := call.Argument(1).Export()\n\t\tif err != nil {\n\t\t\tottoutil.Throw(vm, err.Error())\n\t\t}\n\t\tok, cause := deepEqual(got, want)\n\t\tif ok {\n\t\t\treturn otto.UndefinedValue()\n\t\t}\n\t\tmsg := \"assertion failed!\\n\" + cause\n\n\t\tif len(call.ArgumentList) > 2 {\n\t\t\tformat, err := call.ArgumentList[2].ToString()\n\t\t\tif err != nil {\n\t\t\t\tottoutil.Throw(vm, err.Error())\n\t\t\t}\n\t\t\tmsg += \"\\n\" + format\n\t\t}\n\t\tottoutil.Throw(vm, msg)\n\t\treturn otto.UndefinedValue()\n\t})\n\tvm.Set(\"assert\", func(call otto.FunctionCall) otto.Value {\n\t\tvm := call.Otto\n\t\tv, err := call.Argument(0).ToBoolean()\n\t\tif err != nil {\n\t\t\tottoutil.Throw(vm, err.Error())\n\t\t}\n\t\tif v {\n\t\t\treturn otto.UndefinedValue()\n\t\t}\n\t\tmsg := \"assertion failed!\"\n\t\tif len(call.ArgumentList) > 1 {\n\t\t\tformat, err := call.ArgumentList[1].ToString()\n\t\t\tif err != nil {\n\t\t\t\tottoutil.Throw(vm, err.Error())\n\t\t\t}\n\t\t\tmsg += \"\\n\" + format\n\t\t}\n\t\tottoutil.Throw(vm, msg)\n\t\treturn otto.UndefinedValue()\n\t})\n\tscript, err := vm.Compile(\"\", src)\n\tif err != nil {\n\t\tt.Fatalf(\"invalid code: %v\", err)\n\t}\n\n\tfor _, opt := range opts {\n\t\tif err := opt(vm); err != nil {\n\t\t\tt.Fatalf(\"can't apply option: %v\", err)\n\t\t}\n\t}\n\n\tif _, err := vm.Run(script); err != nil {\n\t\tif oe, ok := err.(*otto.Error); ok {\n\t\t\tt.Fatal(oe.String())\n\t\t} else {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}\n}",
"func TestSetGoodArgs(t *testing.T) {\n\tfmt.Println(\"Entering the test method for SetGoodArgs\")\n\tprovcc := new(SimpleAsset)\n\tstub := shim.NewMockStub(\"ANY_PARAM\", provcc)\n\n\t// Testing the init. It always return true. No parameters in init. \n\t\n\tcheckInit(t, stub, [][]byte{[]byte(\"init\")})\n\n\tres := stub.MockInvoke(\"1\", [][]byte{[]byte(\"set\"), []byte(\"S52fkpF2rCEArSuwqyDA9tVjawUdrkGzbNQLaa7xJfA=\"),\n\t[]byte(\"agentInfo.atype\"),[]byte(\"1.2.3.4\"),\n\t[]byte(\"agentInfo.id\"),[]byte(\"agentidentifier\"),\n\t[]byte(\"agentinfo.name\"),[]byte(\"7.8.9\"),\n\t[]byte(\"agentinfo.idp\"),[]byte(\"urn:tiani-spirit:sts\"),\n\t[]byte(\"locationInfo.id\"),[]byte(\"urn:oid:1.2.3\"),\n\t[]byte(\"locationInfo.name\"),[]byte(\"General Hospital\"),\n\t[]byte(\"locationInfo.locality\"),[]byte(\"Nashville, TN\"),\n\t[]byte(\"locationInfo.docid\"),[]byte(\"1.2.3\"),\n\t[]byte(\"action\"),[]byte(\"ex:CREATE\"),\n\t[]byte(\"date\"),[]byte(\"2018-11-10T12:15:55.028Z\")})\n\n\tif res.Status != shim.OK {\n\t\tfmt.Println(\"Invoke failed\", string(res.Message))\n\t\tt.FailNow()\n\t}\n\t\n}",
"func (mmRegisterResult *mClientMockRegisterResult) Expect(ctx context.Context, request insolar.Reference, result RequestResult) *mClientMockRegisterResult {\n\tif mmRegisterResult.mock.funcRegisterResult != nil {\n\t\tmmRegisterResult.mock.t.Fatalf(\"ClientMock.RegisterResult mock is already set by Set\")\n\t}\n\n\tif mmRegisterResult.defaultExpectation == nil {\n\t\tmmRegisterResult.defaultExpectation = &ClientMockRegisterResultExpectation{}\n\t}\n\n\tmmRegisterResult.defaultExpectation.params = &ClientMockRegisterResultParams{ctx, request, result}\n\tfor _, e := range mmRegisterResult.expectations {\n\t\tif minimock.Equal(e.params, mmRegisterResult.defaultExpectation.params) {\n\t\t\tmmRegisterResult.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmRegisterResult.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmRegisterResult\n}",
"func Mock() Cluster { return mockCluster{} }",
"func (m *MockS3API) EXPECT() *MockS3APIMockRecorder {\n\treturn m.recorder\n}",
"func mockedGranter(kubeutil *kube.Kube, app *v1.RadixRegistration, namespace string, serviceAccount *corev1.ServiceAccount) error {\n\treturn nil\n}",
"func (mmGetPendings *mClientMockGetPendings) Expect(ctx context.Context, objectRef insolar.Reference) *mClientMockGetPendings {\n\tif mmGetPendings.mock.funcGetPendings != nil {\n\t\tmmGetPendings.mock.t.Fatalf(\"ClientMock.GetPendings mock is already set by Set\")\n\t}\n\n\tif mmGetPendings.defaultExpectation == nil {\n\t\tmmGetPendings.defaultExpectation = &ClientMockGetPendingsExpectation{}\n\t}\n\n\tmmGetPendings.defaultExpectation.params = &ClientMockGetPendingsParams{ctx, objectRef}\n\tfor _, e := range mmGetPendings.expectations {\n\t\tif minimock.Equal(e.params, mmGetPendings.defaultExpectation.params) {\n\t\t\tmmGetPendings.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetPendings.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetPendings\n}",
"func (m *MockOrg) EXPECT() *MockOrgMockRecorder {\n\treturn m.recorder\n}",
"func (mmGetUserLocation *mStorageMockGetUserLocation) Expect(ctx context.Context, userID int64) *mStorageMockGetUserLocation {\n\tif mmGetUserLocation.mock.funcGetUserLocation != nil {\n\t\tmmGetUserLocation.mock.t.Fatalf(\"StorageMock.GetUserLocation mock is already set by Set\")\n\t}\n\n\tif mmGetUserLocation.defaultExpectation == nil {\n\t\tmmGetUserLocation.defaultExpectation = &StorageMockGetUserLocationExpectation{}\n\t}\n\n\tmmGetUserLocation.defaultExpectation.params = &StorageMockGetUserLocationParams{ctx, userID}\n\tfor _, e := range mmGetUserLocation.expectations {\n\t\tif minimock.Equal(e.params, mmGetUserLocation.defaultExpectation.params) {\n\t\t\tmmGetUserLocation.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetUserLocation.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetUserLocation\n}",
"func (mmCreate *mPaymentRepositoryMockCreate) Expect(ctx context.Context, from int64, to int64, amount int64) *mPaymentRepositoryMockCreate {\n\tif mmCreate.mock.funcCreate != nil {\n\t\tmmCreate.mock.t.Fatalf(\"PaymentRepositoryMock.Create mock is already set by Set\")\n\t}\n\n\tif mmCreate.defaultExpectation == nil {\n\t\tmmCreate.defaultExpectation = &PaymentRepositoryMockCreateExpectation{}\n\t}\n\n\tmmCreate.defaultExpectation.params = &PaymentRepositoryMockCreateParams{ctx, from, to, amount}\n\tfor _, e := range mmCreate.expectations {\n\t\tif minimock.Equal(e.params, mmCreate.defaultExpectation.params) {\n\t\t\tmmCreate.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmCreate.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmCreate\n}",
"func (mmAuther *mGatewayMockAuther) Expect() *mGatewayMockAuther {\n\tif mmAuther.mock.funcAuther != nil {\n\t\tmmAuther.mock.t.Fatalf(\"GatewayMock.Auther mock is already set by Set\")\n\t}\n\n\tif mmAuther.defaultExpectation == nil {\n\t\tmmAuther.defaultExpectation = &GatewayMockAutherExpectation{}\n\t}\n\n\treturn mmAuther\n}",
"func (mmInvoke *mContainerMockInvoke) Expect(function interface{}) *mContainerMockInvoke {\n\tif mmInvoke.mock.funcInvoke != nil {\n\t\tmmInvoke.mock.t.Fatalf(\"ContainerMock.Invoke mock is already set by Set\")\n\t}\n\n\tif mmInvoke.defaultExpectation == nil {\n\t\tmmInvoke.defaultExpectation = &ContainerMockInvokeExpectation{}\n\t}\n\n\tmmInvoke.defaultExpectation.params = &ContainerMockInvokeParams{function}\n\tfor _, e := range mmInvoke.expectations {\n\t\tif minimock.Equal(e.params, mmInvoke.defaultExpectation.params) {\n\t\t\tmmInvoke.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmInvoke.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmInvoke\n}",
"func TestObjectsMeetReq(t *testing.T) {\n\tvar kr verifiable.StorageReader\n\tvar kw verifiable.StorageWriter\n\n\tvar m verifiable.MutatorService\n\n\tvar o verifiable.AuthorizationOracle\n\n\tkr = &memory.TransientStorage{}\n\tkw = &memory.TransientStorage{}\n\n\tkr = &bolt.Storage{}\n\tkw = &bolt.Storage{}\n\n\tkr = &badger.Storage{}\n\tkw = &badger.Storage{}\n\n\tm = &instant.Mutator{}\n\tm = (&batch.Mutator{}).MustCreate()\n\n\to = policy.Open\n\to = &policy.Static{}\n\n\tlog.Println(kr, kw, m, o) // \"use\" these so that go compiler will be quiet\n}",
"func (mmGetPosition *mStoreMockGetPosition) Expect(account string, contractID string) *mStoreMockGetPosition {\n\tif mmGetPosition.mock.funcGetPosition != nil {\n\t\tmmGetPosition.mock.t.Fatalf(\"StoreMock.GetPosition mock is already set by Set\")\n\t}\n\n\tif mmGetPosition.defaultExpectation == nil {\n\t\tmmGetPosition.defaultExpectation = &StoreMockGetPositionExpectation{}\n\t}\n\n\tmmGetPosition.defaultExpectation.params = &StoreMockGetPositionParams{account, contractID}\n\tfor _, e := range mmGetPosition.expectations {\n\t\tif minimock.Equal(e.params, mmGetPosition.defaultExpectation.params) {\n\t\t\tmmGetPosition.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetPosition.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetPosition\n}",
"func (mmGetAbandonedRequest *mClientMockGetAbandonedRequest) Expect(ctx context.Context, objectRef insolar.Reference, reqRef insolar.Reference) *mClientMockGetAbandonedRequest {\n\tif mmGetAbandonedRequest.mock.funcGetAbandonedRequest != nil {\n\t\tmmGetAbandonedRequest.mock.t.Fatalf(\"ClientMock.GetAbandonedRequest mock is already set by Set\")\n\t}\n\n\tif mmGetAbandonedRequest.defaultExpectation == nil {\n\t\tmmGetAbandonedRequest.defaultExpectation = &ClientMockGetAbandonedRequestExpectation{}\n\t}\n\n\tmmGetAbandonedRequest.defaultExpectation.params = &ClientMockGetAbandonedRequestParams{ctx, objectRef, reqRef}\n\tfor _, e := range mmGetAbandonedRequest.expectations {\n\t\tif minimock.Equal(e.params, mmGetAbandonedRequest.defaultExpectation.params) {\n\t\t\tmmGetAbandonedRequest.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmGetAbandonedRequest.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmGetAbandonedRequest\n}",
"func (mmSend *mSenderMockSend) Expect(ctx context.Context, email Email) *mSenderMockSend {\n\tif mmSend.mock.funcSend != nil {\n\t\tmmSend.mock.t.Fatalf(\"SenderMock.Send mock is already set by Set\")\n\t}\n\n\tif mmSend.defaultExpectation == nil {\n\t\tmmSend.defaultExpectation = &SenderMockSendExpectation{}\n\t}\n\n\tmmSend.defaultExpectation.params = &SenderMockSendParams{ctx, email}\n\tfor _, e := range mmSend.expectations {\n\t\tif minimock.Equal(e.params, mmSend.defaultExpectation.params) {\n\t\t\tmmSend.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmSend.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmSend\n}",
"func callAndVerify(msg string, client pb.GreeterClient, shouldFail bool) error {\n\tctx, cancel := context.WithTimeout(context.Background(), time.Second)\n\tdefer cancel()\n\t_, err := client.SayHello(ctx, &pb.HelloRequest{Name: msg})\n\tif want, got := shouldFail == true, err != nil; got != want {\n\t\treturn fmt.Errorf(\"want and got mismatch, want shouldFail=%v, got fail=%v, rpc error: %v\", want, got, err)\n\t}\n\treturn nil\n}",
"func expectEqual(actual interface{}, extra interface{}, explain ...interface{}) {\n\tgomega.ExpectWithOffset(1, actual).To(gomega.Equal(extra), explain...)\n}",
"func (m *Mockrequester) EXPECT() *MockrequesterMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockstackDescriber) EXPECT() *MockstackDescriberMockRecorder {\n\treturn m.recorder\n}",
"func (req *outgoingRequest) Assert(t *testing.T, fixture *fixture) {\n\tassert.Equal(t, req.path, fixture.calledPath, \"called path not as expected\")\n\tassert.Equal(t, req.method, fixture.calledMethod, \"called path not as expected\")\n\tassert.Equal(t, req.body, fixture.requestBody, \"call body no as expected\")\n}",
"func (mmVerify *mDelegationTokenFactoryMockVerify) Expect(parcel mm_insolar.Parcel) *mDelegationTokenFactoryMockVerify {\n\tif mmVerify.mock.funcVerify != nil {\n\t\tmmVerify.mock.t.Fatalf(\"DelegationTokenFactoryMock.Verify mock is already set by Set\")\n\t}\n\n\tif mmVerify.defaultExpectation == nil {\n\t\tmmVerify.defaultExpectation = &DelegationTokenFactoryMockVerifyExpectation{}\n\t}\n\n\tmmVerify.defaultExpectation.params = &DelegationTokenFactoryMockVerifyParams{parcel}\n\tfor _, e := range mmVerify.expectations {\n\t\tif minimock.Equal(e.params, mmVerify.defaultExpectation.params) {\n\t\t\tmmVerify.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmVerify.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmVerify\n}",
"func (mmRead *mDigestHolderMockRead) Expect(p []byte) *mDigestHolderMockRead {\n\tif mmRead.mock.funcRead != nil {\n\t\tmmRead.mock.t.Fatalf(\"DigestHolderMock.Read mock is already set by Set\")\n\t}\n\n\tif mmRead.defaultExpectation == nil {\n\t\tmmRead.defaultExpectation = &DigestHolderMockReadExpectation{}\n\t}\n\n\tmmRead.defaultExpectation.params = &DigestHolderMockReadParams{p}\n\tfor _, e := range mmRead.expectations {\n\t\tif minimock.Equal(e.params, mmRead.defaultExpectation.params) {\n\t\t\tmmRead.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmRead.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmRead\n}",
"func (mmAsByteString *mDigestHolderMockAsByteString) Expect() *mDigestHolderMockAsByteString {\n\tif mmAsByteString.mock.funcAsByteString != nil {\n\t\tmmAsByteString.mock.t.Fatalf(\"DigestHolderMock.AsByteString mock is already set by Set\")\n\t}\n\n\tif mmAsByteString.defaultExpectation == nil {\n\t\tmmAsByteString.defaultExpectation = &DigestHolderMockAsByteStringExpectation{}\n\t}\n\n\treturn mmAsByteString\n}",
"func (mmSend *mClientMockSend) Expect(ctx context.Context, n *Notification) *mClientMockSend {\n\tif mmSend.mock.funcSend != nil {\n\t\tmmSend.mock.t.Fatalf(\"ClientMock.Send mock is already set by Set\")\n\t}\n\n\tif mmSend.defaultExpectation == nil {\n\t\tmmSend.defaultExpectation = &ClientMockSendExpectation{}\n\t}\n\n\tmmSend.defaultExpectation.params = &ClientMockSendParams{ctx, n}\n\tfor _, e := range mmSend.expectations {\n\t\tif minimock.Equal(e.params, mmSend.defaultExpectation.params) {\n\t\t\tmmSend.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmSend.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmSend\n}",
"func Expect(msg string) error {\n\tif msg != \"\" {\n\t\treturn errors.New(msg)\n\t} else {\n\t\treturn nil\n\t}\n}",
"func (mmEncrypt *mRingMockEncrypt) Expect(t1 secrets.Text) *mRingMockEncrypt {\n\tif mmEncrypt.mock.funcEncrypt != nil {\n\t\tmmEncrypt.mock.t.Fatalf(\"RingMock.Encrypt mock is already set by Set\")\n\t}\n\n\tif mmEncrypt.defaultExpectation == nil {\n\t\tmmEncrypt.defaultExpectation = &RingMockEncryptExpectation{}\n\t}\n\n\tmmEncrypt.defaultExpectation.params = &RingMockEncryptParams{t1}\n\tfor _, e := range mmEncrypt.expectations {\n\t\tif minimock.Equal(e.params, mmEncrypt.defaultExpectation.params) {\n\t\t\tmmEncrypt.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmEncrypt.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmEncrypt\n}",
"func (mmBootstrapper *mGatewayMockBootstrapper) Expect() *mGatewayMockBootstrapper {\n\tif mmBootstrapper.mock.funcBootstrapper != nil {\n\t\tmmBootstrapper.mock.t.Fatalf(\"GatewayMock.Bootstrapper mock is already set by Set\")\n\t}\n\n\tif mmBootstrapper.defaultExpectation == nil {\n\t\tmmBootstrapper.defaultExpectation = &GatewayMockBootstrapperExpectation{}\n\t}\n\n\treturn mmBootstrapper\n}",
"func (m *MockNotary) EXPECT() *MockNotaryMockRecorder {\n\treturn m.recorder\n}",
"func (m *mParcelMockSetSender) Expect(p insolar.Reference) *mParcelMockSetSender {\n\tm.mock.SetSenderFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &ParcelMockSetSenderExpectation{}\n\t}\n\tm.mainExpectation.input = &ParcelMockSetSenderInput{p}\n\treturn m\n}",
"func (mmGetPacketType *mPacketParserMockGetPacketType) Expect() *mPacketParserMockGetPacketType {\n\tif mmGetPacketType.mock.funcGetPacketType != nil {\n\t\tmmGetPacketType.mock.t.Fatalf(\"PacketParserMock.GetPacketType mock is already set by Set\")\n\t}\n\n\tif mmGetPacketType.defaultExpectation == nil {\n\t\tmmGetPacketType.defaultExpectation = &PacketParserMockGetPacketTypeExpectation{}\n\t}\n\n\treturn mmGetPacketType\n}",
"func (mmParsePacketBody *mPacketParserMockParsePacketBody) Expect() *mPacketParserMockParsePacketBody {\n\tif mmParsePacketBody.mock.funcParsePacketBody != nil {\n\t\tmmParsePacketBody.mock.t.Fatalf(\"PacketParserMock.ParsePacketBody mock is already set by Set\")\n\t}\n\n\tif mmParsePacketBody.defaultExpectation == nil {\n\t\tmmParsePacketBody.defaultExpectation = &PacketParserMockParsePacketBodyExpectation{}\n\t}\n\n\treturn mmParsePacketBody\n}",
"func (mmAsBytes *mDigestHolderMockAsBytes) Expect() *mDigestHolderMockAsBytes {\n\tif mmAsBytes.mock.funcAsBytes != nil {\n\t\tmmAsBytes.mock.t.Fatalf(\"DigestHolderMock.AsBytes mock is already set by Set\")\n\t}\n\n\tif mmAsBytes.defaultExpectation == nil {\n\t\tmmAsBytes.defaultExpectation = &DigestHolderMockAsBytesExpectation{}\n\t}\n\n\treturn mmAsBytes\n}",
"func (mmKey *mIteratorMockKey) Expect() *mIteratorMockKey {\n\tif mmKey.mock.funcKey != nil {\n\t\tmmKey.mock.t.Fatalf(\"IteratorMock.Key mock is already set by Set\")\n\t}\n\n\tif mmKey.defaultExpectation == nil {\n\t\tmmKey.defaultExpectation = &IteratorMockKeyExpectation{}\n\t}\n\n\treturn mmKey\n}",
"func (m *MockArticleLogic) EXPECT() *MockArticleLogicMockRecorder {\n\treturn m.recorder\n}",
"func (m *mOutboundMockCanAccept) Expect(p Inbound) *mOutboundMockCanAccept {\n\tm.mock.CanAcceptFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &OutboundMockCanAcceptExpectation{}\n\t}\n\tm.mainExpectation.input = &OutboundMockCanAcceptInput{p}\n\treturn m\n}",
"func (m *MockFactory) EXPECT() *MockFactoryMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockFactory) EXPECT() *MockFactoryMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockFactory) EXPECT() *MockFactoryMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockLoaderFactory) EXPECT() *MockLoaderFactoryMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockPKG) EXPECT() *MockPKGMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockbucketDescriber) EXPECT() *MockbucketDescriberMockRecorder {\n\treturn m.recorder\n}",
"func (m *mParcelMockType) Expect() *mParcelMockType {\n\tm.mock.TypeFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &ParcelMockTypeExpectation{}\n\t}\n\n\treturn m\n}",
"func (m *MockKeystore) EXPECT() *MockKeystoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockKeystore) EXPECT() *MockKeystoreMockRecorder {\n\treturn m.recorder\n}",
"func (mmExchange *mMDNSClientMockExchange) Expect(msg *mdns.Msg, address string) *mMDNSClientMockExchange {\n\tif mmExchange.mock.funcExchange != nil {\n\t\tmmExchange.mock.t.Fatalf(\"MDNSClientMock.Exchange mock is already set by Set\")\n\t}\n\n\tif mmExchange.defaultExpectation == nil {\n\t\tmmExchange.defaultExpectation = &MDNSClientMockExchangeExpectation{}\n\t}\n\n\tmmExchange.defaultExpectation.params = &MDNSClientMockExchangeParams{msg, address}\n\tfor _, e := range mmExchange.expectations {\n\t\tif minimock.Equal(e.params, mmExchange.defaultExpectation.params) {\n\t\t\tmmExchange.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmExchange.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmExchange\n}",
"func (m *MockStream) EXPECT() *MockStreamMockRecorder {\n\treturn m.recorder\n}",
"func (c Chkr) Expect(v validator, args ...interface{}) {\n\tif c.runTest(v, args...) {\n\t\tc.Fail()\n\t}\n}",
"func (mmClone *mStorageMockClone) Expect(ctx context.Context, from insolar.PulseNumber, to insolar.PulseNumber, keepActual bool) *mStorageMockClone {\n\tif mmClone.mock.funcClone != nil {\n\t\tmmClone.mock.t.Fatalf(\"StorageMock.Clone mock is already set by Set\")\n\t}\n\n\tif mmClone.defaultExpectation == nil {\n\t\tmmClone.defaultExpectation = &StorageMockCloneExpectation{}\n\t}\n\n\tmmClone.defaultExpectation.params = &StorageMockCloneParams{ctx, from, to, keepActual}\n\tfor _, e := range mmClone.expectations {\n\t\tif minimock.Equal(e.params, mmClone.defaultExpectation.params) {\n\t\t\tmmClone.mock.t.Fatalf(\"Expectation set by When has same params: %#v\", *mmClone.defaultExpectation.params)\n\t\t}\n\t}\n\n\treturn mmClone\n}",
"func (m *MockCodeGenerator) EXPECT() *MockCodeGeneratorMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockNodeAttestor) EXPECT() *MockNodeAttestorMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockNodeAttestor) EXPECT() *MockNodeAttestorMockRecorder {\n\treturn m.recorder\n}",
"func (_m *MockIStream) EXPECT() *MockIStreamMockRecorder {\n\treturn _m.recorder\n}",
"func (m *mOutboundMockGetEndpointType) Expect() *mOutboundMockGetEndpointType {\n\tm.mock.GetEndpointTypeFunc = nil\n\tm.expectationSeries = nil\n\n\tif m.mainExpectation == nil {\n\t\tm.mainExpectation = &OutboundMockGetEndpointTypeExpectation{}\n\t}\n\n\treturn m\n}",
"func (m *MockAZInfoProvider) EXPECT() *MockAZInfoProviderMockRecorder {\n\treturn m.recorder\n}"
] | [
"0.5815397",
"0.57143974",
"0.56725854",
"0.5639077",
"0.56274676",
"0.5572859",
"0.55670524",
"0.5528207",
"0.5506503",
"0.5487272",
"0.54727125",
"0.54635566",
"0.54597855",
"0.54408085",
"0.54405725",
"0.54054415",
"0.5402292",
"0.53894377",
"0.5382592",
"0.5382592",
"0.53696996",
"0.53681684",
"0.5358358",
"0.53398687",
"0.533827",
"0.53267777",
"0.5321921",
"0.5313045",
"0.5305753",
"0.5305642",
"0.5305642",
"0.5305642",
"0.5305642",
"0.5305642",
"0.5305642",
"0.5305642",
"0.5305642",
"0.53027195",
"0.529451",
"0.529451",
"0.52903044",
"0.5282591",
"0.5281647",
"0.5276203",
"0.527299",
"0.5272982",
"0.52650267",
"0.52597135",
"0.52566195",
"0.52561265",
"0.5254324",
"0.5247953",
"0.52412164",
"0.5240126",
"0.52379537",
"0.5235673",
"0.5235177",
"0.52266264",
"0.5226349",
"0.5221944",
"0.52139676",
"0.52120507",
"0.5211747",
"0.5211636",
"0.52109045",
"0.52077955",
"0.5194704",
"0.5189915",
"0.51884294",
"0.51871526",
"0.51869",
"0.5183753",
"0.5182162",
"0.51755923",
"0.5172452",
"0.5168865",
"0.51663095",
"0.5162576",
"0.5161076",
"0.5159577",
"0.5159168",
"0.51436263",
"0.51433814",
"0.51433814",
"0.51433814",
"0.5143238",
"0.51383585",
"0.51338136",
"0.513376",
"0.513302",
"0.513302",
"0.51302624",
"0.5129337",
"0.5129106",
"0.5123541",
"0.5121262",
"0.51156384",
"0.51156384",
"0.5114856",
"0.51141196",
"0.5107878"
] | 0.0 | -1 |
MeasureGetIterator mocks base method | func (m *MockStorageMetrics) MeasureGetIterator(arg0 func() (storage.EventsIterator, error)) (storage.EventsIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MeasureGetIterator", arg0)
ret0, _ := ret[0].(storage.EventsIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (_m *MockReaderIteratorPool) Get() ReaderIterator {\n\tret := _m.ctrl.Call(_m, \"Get\")\n\tret0, _ := ret[0].(ReaderIterator)\n\treturn ret0\n}",
"func (_m *MockIteratorArrayPool) Get(size int) []Iterator {\n\tret := _m.ctrl.Call(_m, \"Get\", size)\n\tret0, _ := ret[0].([]Iterator)\n\treturn ret0\n}",
"func (_m *MockMultiReaderIteratorPool) Get() MultiReaderIterator {\n\tret := _m.ctrl.Call(_m, \"Get\")\n\tret0, _ := ret[0].(MultiReaderIterator)\n\treturn ret0\n}",
"func (_m *MockSeriesIteratorPool) Get() SeriesIterator {\n\tret := _m.ctrl.Call(_m, \"Get\")\n\tret0, _ := ret[0].(SeriesIterator)\n\treturn ret0\n}",
"func TestMeasurementIterator(t *testing.T) {\n\telems := []MeasurementElem{\n\t\tMeasurementElem{name: []byte(\"cpu\"), deleted: true},\n\t\tMeasurementElem{name: []byte(\"mem\")},\n\t}\n\n\titr := MeasurementIterator{Elems: elems}\n\tif e := itr.Next(); !reflect.DeepEqual(&elems[0], e) {\n\t\tt.Fatalf(\"unexpected elem(0): %#v\", e)\n\t} else if e := itr.Next(); !reflect.DeepEqual(&elems[1], e) {\n\t\tt.Fatalf(\"unexpected elem(1): %#v\", e)\n\t} else if e := itr.Next(); e != nil {\n\t\tt.Fatalf(\"expected nil elem: %#v\", e)\n\t}\n}",
"func (m *MockStore) Iterator(arg0, arg1 string) storage.StoreIterator {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Iterator\", arg0, arg1)\n\tret0, _ := ret[0].(storage.StoreIterator)\n\treturn ret0\n}",
"func (m *MockMutableList) Iterator() Iterator {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Iterator\")\n\tret0, _ := ret[0].(Iterator)\n\treturn ret0\n}",
"func (m *MockList) Iterator() Iterator {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Iterator\")\n\tret0, _ := ret[0].(Iterator)\n\treturn ret0\n}",
"func (_m *MockReaderIteratorPool) Put(iter ReaderIterator) {\n\t_m.ctrl.Call(_m, \"Put\", iter)\n}",
"func (_m *MockMutableSeriesIteratorsPool) Get(size int) MutableSeriesIterators {\n\tret := _m.ctrl.Call(_m, \"Get\", size)\n\tret0, _ := ret[0].(MutableSeriesIterators)\n\treturn ret0\n}",
"func (m *MockGCS) GetObjectIterator(arg0 string) iterator.Pageable {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetObjectIterator\", arg0)\n\tret0, _ := ret[0].(iterator.Pageable)\n\treturn ret0\n}",
"func (_m *MockMultiReaderIteratorPool) Put(iter MultiReaderIterator) {\n\t_m.ctrl.Call(_m, \"Put\", iter)\n}",
"func (_m *MockMultiReaderIteratorPool) Init(alloc ReaderIteratorAllocate) {\n\t_m.ctrl.Call(_m, \"Init\", alloc)\n}",
"func (_m *MockReaderIteratorPool) Init(alloc ReaderIteratorAllocate) {\n\t_m.ctrl.Call(_m, \"Init\", alloc)\n}",
"func mockIter(rowID RowID, val Persistent) Iterator {\n\tb, err := val.Marshal()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn NewSingleValueIterator(rowID, b)\n}",
"func (_m *MockENotifyingList) Iterator() EIterator {\n\tret := _m.Called()\n\n\tvar r0 EIterator\n\tif rf, ok := ret.Get(0).(func() EIterator); ok {\n\t\tr0 = rf()\n\t} else {\n\t\tif ret.Get(0) != nil {\n\t\t\tr0 = ret.Get(0).(EIterator)\n\t\t}\n\t}\n\n\treturn r0\n}",
"func (m *MockMempool) Size() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockStore) Query(arg0 string, arg1 ...storage.QueryOption) (storage.Iterator, error) {\n\tm.ctrl.T.Helper()\n\tvarargs := []interface{}{arg0}\n\tfor _, a := range arg1 {\n\t\tvarargs = append(varargs, a)\n\t}\n\tret := m.ctrl.Call(m, \"Query\", varargs...)\n\tret0, _ := ret[0].(storage.Iterator)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (mr *MockStorageMetricsMockRecorder) MeasureGetIterator(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"MeasureGetIterator\", reflect.TypeOf((*MockStorageMetrics)(nil).MeasureGetIterator), arg0)\n}",
"func (_m *MockSeriesIteratorPool) Put(iter SeriesIterator) {\n\t_m.ctrl.Call(_m, \"Put\", iter)\n}",
"func (_m *MockMultiReaderIterator) Next() bool {\n\tret := _m.ctrl.Call(_m, \"Next\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}",
"func (_m *MockIterator) Close() {\n\t_m.ctrl.Call(_m, \"Close\")\n}",
"func (_m *MockReaderIterator) Close() {\n\t_m.ctrl.Call(_m, \"Close\")\n}",
"func (_m *MockReaderIterator) Next() bool {\n\tret := _m.ctrl.Call(_m, \"Next\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}",
"func (m *MockServiceEntrySet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockReaderIterator) Reset(reader io.Reader) {\n\t_m.ctrl.Call(_m, \"Reset\", reader)\n}",
"func (m *MockCandidatePropertyGetter) TotalMemorySize(arg0 bool) int64 {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"TotalMemorySize\", arg0)\n\tret0, _ := ret[0].(int64)\n\treturn ret0\n}",
"func (_m *MockReaderIterator) Err() error {\n\tret := _m.ctrl.Call(_m, \"Err\")\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (m *MockLevelDB) NewIterator(arg0 *util.Range, arg1 *opt.ReadOptions) iterator.Iterator {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"NewIterator\", arg0, arg1)\n\tret0, _ := ret[0].(iterator.Iterator)\n\treturn ret0\n}",
"func (m *MockServerCache) Count() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Count\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockMultiReaderIterator) Close() {\n\t_m.ctrl.Call(_m, \"Close\")\n}",
"func (m *MockEventLogger) MetadataLen() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"MetadataLen\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func MockGetMetricStatistics(t *testing.T, mockMatcher *sdk.MockCloudWatchAPI, metric float64, statistic string, numberOfMetrics int) {\n\tlog.Logger.Warningf(\"Mocking AWS iface: GetMetricStatistics\")\n\tif numberOfMetrics == 0 {\n\t\tnumberOfMetrics = 1\n\t}\n\n\tresult := &cloudwatch.GetMetricStatisticsOutput{}\n\tresult.Label = aws.String(\"fake\")\n\tresult.Datapoints = make([]*cloudwatch.Datapoint, numberOfMetrics)\n\tfor i := 0; i < numberOfMetrics; i++ {\n\t\td := &cloudwatch.Datapoint{}\n\n\t\tswitch statistic {\n\t\tcase cloudwatch.StatisticMaximum:\n\t\t\td.Maximum = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticMinimum:\n\t\t\td.Minimum = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticSum:\n\t\t\td.Sum = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticSampleCount:\n\t\t\td.SampleCount = aws.Float64(metric)\n\t\tcase cloudwatch.StatisticAverage:\n\t\t\td.Average = aws.Float64(metric)\n\t\tdefault:\n\t\t\tt.Fatalf(\"Wrong metric statistic: %s\", statistic)\n\t\t}\n\t\td.Timestamp = aws.Time(time.Now().UTC())\n\t\td.Unit = aws.String(cloudwatch.StandardUnitPercent)\n\t\tresult.Datapoints[i] = d\n\t}\n\n\t// Mock as expected with our result\n\tmockMatcher.EXPECT().GetMetricStatistics(gomock.Any()).Do(func(input interface{}) {\n\t\tgotInput := input.(*cloudwatch.GetMetricStatisticsInput)\n\t\t// Check API received parameters are fine\n\t\tif aws.StringValue(gotInput.Namespace) == \"\" {\n\t\t\tt.Fatalf(\"Expected namespace, got nothing\")\n\t\t}\n\n\t\tif aws.StringValue(gotInput.MetricName) == \"\" {\n\t\t\tt.Fatalf(\"Expected metric name, got nothing\")\n\t\t}\n\n\t\tif aws.StringValue(gotInput.Unit) == \"\" {\n\t\t\tt.Fatalf(\"Expected unit, got nothing\")\n\t\t}\n\n\t\tif len(gotInput.Statistics) != 1 {\n\t\t\tt.Fatalf(\"Wrong statistics name\")\n\t\t}\n\n\t}).AnyTimes().Return(result, nil)\n\n}",
"func (m *MockEnvoyFilterSet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockMultiReaderIterator) Err() error {\n\tret := _m.ctrl.Call(_m, \"Err\")\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (_m *MockIteratorArrayPool) Init() {\n\t_m.ctrl.Call(_m, \"Init\")\n}",
"func (m *MockMutableList) AddIterator(iter Iterator) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"AddIterator\", iter)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (m *MockMetrics) MeasureSince(arg0 []string, arg1 time.Time) {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"MeasureSince\", arg0, arg1)\n}",
"func (_m *MockIterator) Next() bool {\n\tret := _m.ctrl.Call(_m, \"Next\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}",
"func (m *MockMutantStorage) Count(isMutant bool) (int64, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Count\", isMutant)\n\tret0, _ := ret[0].(int64)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (_m *MockSeriesIterator) End() time.Time {\n\tret := _m.ctrl.Call(_m, \"End\")\n\tret0, _ := ret[0].(time.Time)\n\treturn ret0\n}",
"func (_m *MockIterator) Err() error {\n\tret := _m.ctrl.Call(_m, \"Err\")\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (m *MockCandidatePropertyGetter) RunningMemorySize() int64 {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"RunningMemorySize\")\n\tret0, _ := ret[0].(int64)\n\treturn ret0\n}",
"func (m *MockReader) Int() (int32, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Int\")\n\tret0, _ := ret[0].(int32)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockServiceDependencySet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockisObject_Obj) Size() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockVirtualServiceSet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockOpenStorageNodeServer) Enumerate(arg0 context.Context, arg1 *api.SdkNodeEnumerateRequest) (*api.SdkNodeEnumerateResponse, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Enumerate\", arg0, arg1)\n\tret0, _ := ret[0].(*api.SdkNodeEnumerateResponse)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (_m *MockOStream) Len() int {\n\tret := _m.ctrl.Call(_m, \"Len\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockMetrics) CountStart() {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"CountStart\")\n}",
"func (_m *MockMultiReaderIterator) Current() (ts.Datapoint, time0.Unit, ts.Annotation) {\n\tret := _m.ctrl.Call(_m, \"Current\")\n\tret0, _ := ret[0].(ts.Datapoint)\n\tret1, _ := ret[1].(time0.Unit)\n\tret2, _ := ret[2].(ts.Annotation)\n\treturn ret0, ret1, ret2\n}",
"func NewIteratorMock(t minimock.Tester) *IteratorMock {\n\tm := &IteratorMock{t: t}\n\tif controller, ok := t.(minimock.MockController); ok {\n\t\tcontroller.RegisterMocker(m)\n\t}\n\n\tm.CloseMock = mIteratorMockClose{mock: m}\n\n\tm.KeyMock = mIteratorMockKey{mock: m}\n\n\tm.NextMock = mIteratorMockNext{mock: m}\n\n\tm.ValueMock = mIteratorMockValue{mock: m}\n\n\treturn m\n}",
"func (f *IndexFile) MeasurementIterator() MeasurementIterator {\n\treturn f.mblk.Iterator()\n}",
"func (m *MockSource) Read(ctx context.Context, namespaces Namespaces, cache Cache) (NamespaceResults, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Read\", ctx, namespaces, cache)\n\tret0, _ := ret[0].(NamespaceResults)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (_m *MockReaderIterator) Current() (ts.Datapoint, time0.Unit, ts.Annotation) {\n\tret := _m.ctrl.Call(_m, \"Current\")\n\tret0, _ := ret[0].(ts.Datapoint)\n\tret1, _ := ret[1].(time0.Unit)\n\tret2, _ := ret[2].(ts.Annotation)\n\treturn ret0, ret1, ret2\n}",
"func (m *MockVirtualMeshSet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockSeriesIteratorPool) Init() {\n\t_m.ctrl.Call(_m, \"Init\")\n}",
"func (_m *MockSeriesIterator) Next() bool {\n\tret := _m.ctrl.Call(_m, \"Next\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}",
"func (m *MockIterator) Err() error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Err\")\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (m *MockRepository) Count(network string, ptr int64) (int64, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Count\", network, ptr)\n\tret0, _ := ret[0].(int64)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (_m *MockIteratorArrayPool) Put(iters []Iterator) {\n\t_m.ctrl.Call(_m, \"Put\", iters)\n}",
"func (_m *MockOptions) ReaderIteratorPool() ReaderIteratorPool {\n\tret := _m.ctrl.Call(_m, \"ReaderIteratorPool\")\n\tret0, _ := ret[0].(ReaderIteratorPool)\n\treturn ret0\n}",
"func (m *MockFailoverServiceSet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockSeriesIterators) Iters() []SeriesIterator {\n\tret := _m.ctrl.Call(_m, \"Iters\")\n\tret0, _ := ret[0].([]SeriesIterator)\n\treturn ret0\n}",
"func (m *MockisKey_KeyInfo) Size() int {\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockisWRingGetEntriesResponse_WRingSlotInfo) Size() int {\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockNodeAttestor_FetchAttestationData_Stream) Context() context.Context {\n\tret := m.ctrl.Call(m, \"Context\")\n\tret0, _ := ret[0].(context.Context)\n\treturn ret0\n}",
"func (_m *MockSeriesIterators) Len() int {\n\tret := _m.ctrl.Call(_m, \"Len\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func TestFileSet_MeasurementIterator(t *testing.T) {\n\tidx := MustOpenIndex(1)\n\tdefer idx.Close()\n\n\t// Create initial set of series.\n\tif err := idx.CreateSeriesSliceIfNotExists([]Series{\n\t\t{Name: []byte(\"cpu\")},\n\t\t{Name: []byte(\"mem\")},\n\t}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify initial set of series.\n\tidx.Run(t, func(t *testing.T) {\n\t\tfs, err := idx.PartitionAt(0).RetainFileSet()\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tdefer fs.Release()\n\n\t\titr := fs.MeasurementIterator()\n\t\tif itr == nil {\n\t\t\tt.Fatal(\"expected iterator\")\n\t\t}\n\n\t\texpectedNames := []string{\"cpu\", \"mem\", \"\"} // Empty string implies end\n\t\tfor _, name := range expectedNames {\n\t\t\te := itr.Next()\n\t\t\tif name == \"\" && e != nil {\n\t\t\t\tt.Errorf(\"got measurement %s, expected nil measurement\", e.Name())\n\t\t\t} else if e == nil && name != \"\" {\n\t\t\t\tt.Errorf(\"got nil measurement, expected %s\", name)\n\t\t\t} else if e != nil && string(e.Name()) != name {\n\t\t\t\tt.Errorf(\"got measurement %s, expected %s\", e.Name(), name)\n\t\t\t}\n\t\t}\n\t})\n\n\t// Add more series.\n\tif err := idx.CreateSeriesSliceIfNotExists([]Series{\n\t\t{Name: []byte(\"disk\"), Tags: models.NewTags(map[string]string{\"foo\": \"bar\"})},\n\t\t{Name: []byte(\"cpu\"), Tags: models.NewTags(map[string]string{\"region\": \"north\", \"x\": \"y\"})},\n\t}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify additional series.\n\tidx.Run(t, func(t *testing.T) {\n\t\tfs, err := idx.PartitionAt(0).RetainFileSet()\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tdefer fs.Release()\n\n\t\titr := fs.MeasurementIterator()\n\t\tif itr == nil {\n\t\t\tt.Fatal(\"expected iterator\")\n\t\t}\n\n\t\texpectedNames := []string{\"cpu\", \"disk\", \"mem\", \"\"} // Empty string implies end\n\t\tfor _, name := range expectedNames {\n\t\t\te := itr.Next()\n\t\t\tif name == \"\" && e != nil {\n\t\t\t\tt.Errorf(\"got measurement %s, expected nil measurement\", e.Name())\n\t\t\t} else if e == nil && name != \"\" {\n\t\t\t\tt.Errorf(\"got nil measurement, expected %s\", name)\n\t\t\t} else if e != nil && string(e.Name()) != name {\n\t\t\t\tt.Errorf(\"got measurement %s, expected %s\", e.Name(), name)\n\t\t\t}\n\t\t}\n\t})\n}",
"func (m *MockReader) Long() (int64, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Long\")\n\tret0, _ := ret[0].(int64)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (_m *MockMultiReaderIterator) Reset(readers []io.Reader) {\n\t_m.ctrl.Call(_m, \"Reset\", readers)\n}",
"func TestGetMemPages(t *testing.T) {\n\ttype testcase struct {\n\t\tname string\n\t\tmr *MemoryReader\n\t\tstart uint64\n\t\tend uint64\n\t\texpectedError error\n\t}\n\n\tpid, err := getTestImgPID()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create a temporary empty memory pages file for testing\n\ttmpFilePath := filepath.Join(os.TempDir(), \"pages-0.img\")\n\ttmpFile, err := os.Create(tmpFilePath)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tdefer func() {\n\t\ttmpFile.Close()\n\t\tif err := os.Remove(tmpFile.Name()); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}()\n\n\tmr, err := NewMemoryReader(testImgsDir, pid, sysPageSize)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\ttestCases := []testcase{\n\t\t{\n\t\t\tname: \"Zero memory area size\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: 0,\n\t\t\tend: 0,\n\t\t\texpectedError: nil,\n\t\t},\n\t\t{\n\t\t\tname: \"Valid pagemap entry 1\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[0].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[0].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[0].GetNrPages()),\n\t\t\texpectedError: nil,\n\t\t},\n\t\t{\n\t\t\tname: \"Valid pagemap entry 2\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[1].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[1].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[1].GetNrPages()),\n\t\t\texpectedError: nil,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid pages file\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID + 1,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[0].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[0].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[0].GetNrPages()),\n\t\t\texpectedError: errors.New(\"no such file or directory\"),\n\t\t},\n\t\t{\n\t\t\tname: \"Empty pages file\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: os.TempDir(),\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: 0,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[1].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[1].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[1].GetNrPages()),\n\t\t\texpectedError: errors.New(\"EOF\"),\n\t\t},\n\t}\n\n\tfor _, tc := range testCases {\n\t\tt.Run(tc.name, func(t *testing.T) {\n\t\t\tbuff, err := tc.mr.GetMemPages(tc.start, tc.end)\n\t\t\tif err != nil && tc.expectedError != nil {\n\t\t\t\tif !strings.Contains(err.Error(), tc.expectedError.Error()) {\n\t\t\t\t\tt.Errorf(\"Expected error: %v, got error: %v\", tc.expectedError, err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif tc.expectedError == nil && buff == nil {\n\t\t\t\tt.Errorf(\"Returned memory chunk is expected to be non-empty\")\n\t\t\t}\n\t\t})\n\t}\n}",
"func (m *MockFileInfo) Size() int64 {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int64)\n\treturn ret0\n}",
"func (m *MockisCryptoApiResponse_CryptoApiResp) Size() int {\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockIterator) Current() ID {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Current\")\n\tret0, _ := ret[0].(ID)\n\treturn ret0\n}",
"func (m *MockMetrics) IncrCounter(arg0 []string, arg1 float32) {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"IncrCounter\", arg0, arg1)\n}",
"func (m *MockStream) ID() uint64 {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"ID\")\n\tret0, _ := ret[0].(uint64)\n\treturn ret0\n}",
"func (m *MockCache) ReadInfoFiles() InfoFilesByNamespace {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"ReadInfoFiles\")\n\tret0, _ := ret[0].(InfoFilesByNamespace)\n\treturn ret0\n}",
"func (m *MockisCryptoAsymApiRespSetupPrivateKey_KeyInfo) Size() int {\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockSeriesIterator) Err() error {\n\tret := _m.ctrl.Call(_m, \"Err\")\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (_m *MockMutableSeriesIterators) Iters() []SeriesIterator {\n\tret := _m.ctrl.Call(_m, \"Iters\")\n\tret0, _ := ret[0].([]SeriesIterator)\n\treturn ret0\n}",
"func (m *MockClient) GetOffset(arg0 string, arg1 int32, arg2 int64) (int64, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetOffset\", arg0, arg1, arg2)\n\tret0, _ := ret[0].(int64)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockCache) OrderBookRowsLength() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"OrderBookRowsLength\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *MockDecoder) Decode(reader io.Reader) ReaderIterator {\n\tret := _m.ctrl.Call(_m, \"Decode\", reader)\n\tret0, _ := ret[0].(ReaderIterator)\n\treturn ret0\n}",
"func (m *MockBookKeeping) FetchPaginated(arg0 context.Context, arg1 string, arg2, arg3 int, arg4 string) ([]models.BookKeeping, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"FetchPaginated\", arg0, arg1, arg2, arg3, arg4)\n\tret0, _ := ret[0].([]models.BookKeeping)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockIterator) Next() bool {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Next\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}",
"func (_m *MockSeriesIterator) Close() {\n\t_m.ctrl.Call(_m, \"Close\")\n}",
"func (m *MockIApi) MetricsRetrieveARR(arg0 *chartmogul.MetricsFilter) (*chartmogul.ARRResult, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"MetricsRetrieveARR\", arg0)\n\tret0, _ := ret[0].(*chartmogul.ARRResult)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockFlushTimesManager) Get() (*flush.ShardSetFlushTimes, error) {\n\tret := m.ctrl.Call(m, \"Get\")\n\tret0, _ := ret[0].(*flush.ShardSetFlushTimes)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (_m *MockMutableSeriesIterators) Len() int {\n\tret := _m.ctrl.Call(_m, \"Len\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (_m *Database) BlocksIter(blockno uint64) *mgo.Iter {\n\tret := _m.Called(blockno)\n\n\tvar r0 *mgo.Iter\n\tif rf, ok := ret.Get(0).(func(uint64) *mgo.Iter); ok {\n\t\tr0 = rf(blockno)\n\t} else {\n\t\tif ret.Get(0) != nil {\n\t\t\tr0 = ret.Get(0).(*mgo.Iter)\n\t\t}\n\t}\n\n\treturn r0\n}",
"func (m *MockISubKeyBucket) Count() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Count\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func (m *MockBatch) Get(keys ...dynamo.Keyed) dynamodb.BatchGet {\n\tm.ctrl.T.Helper()\n\tvarargs := []interface{}{}\n\tfor _, a := range keys {\n\t\tvarargs = append(varargs, a)\n\t}\n\tret := m.ctrl.Call(m, \"Get\", varargs...)\n\tret0, _ := ret[0].(dynamodb.BatchGet)\n\treturn ret0\n}",
"func (m *MockTaskManager) GetMetrics() handler.Metric {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetMetrics\")\n\tret0, _ := ret[0].(handler.Metric)\n\treturn ret0\n}",
"func (m *MockCache) GetEntries() []*models.CacheEntry {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetEntries\")\n\tret0, _ := ret[0].([]*models.CacheEntry)\n\treturn ret0\n}",
"func (m *MockSession) Int64(arg0 string) int64 {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Int64\", arg0)\n\tret0, _ := ret[0].(int64)\n\treturn ret0\n}",
"func (m *MockNamespaceKeeper) Get(name string, blockNum ...uint64) *state.Namespace {\n\tm.ctrl.T.Helper()\n\tvarargs := []interface{}{name}\n\tfor _, a := range blockNum {\n\t\tvarargs = append(varargs, a)\n\t}\n\tret := m.ctrl.Call(m, \"Get\", varargs...)\n\tret0, _ := ret[0].(*state.Namespace)\n\treturn ret0\n}",
"func (m *MockFile) Size() int64 {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Size\")\n\tret0, _ := ret[0].(int64)\n\treturn ret0\n}",
"func (_m *MockIterator) Current() (ts.Datapoint, time0.Unit, ts.Annotation) {\n\tret := _m.ctrl.Call(_m, \"Current\")\n\tret0, _ := ret[0].(ts.Datapoint)\n\tret1, _ := ret[1].(time0.Unit)\n\tret2, _ := ret[2].(ts.Annotation)\n\treturn ret0, ret1, ret2\n}",
"func (m *MockVirtualDestinationSet) Length() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Length\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}"
] | [
"0.6555112",
"0.64661",
"0.64031786",
"0.63212794",
"0.6160761",
"0.6148684",
"0.6146746",
"0.60653365",
"0.5994346",
"0.59902865",
"0.5959922",
"0.5939256",
"0.58848476",
"0.58228946",
"0.5756975",
"0.5753834",
"0.57158643",
"0.57085156",
"0.5696482",
"0.5671945",
"0.56492084",
"0.56438285",
"0.56390774",
"0.55926603",
"0.5540181",
"0.5513821",
"0.5499365",
"0.54906195",
"0.5465351",
"0.5458685",
"0.5458046",
"0.54503584",
"0.54361635",
"0.5429579",
"0.5415513",
"0.5411377",
"0.54055345",
"0.54044664",
"0.54020035",
"0.53996456",
"0.539111",
"0.53803736",
"0.5376696",
"0.53697747",
"0.5368526",
"0.53544474",
"0.53521913",
"0.5348054",
"0.53475535",
"0.53443074",
"0.53426296",
"0.5332934",
"0.5326581",
"0.5317542",
"0.53075653",
"0.5303736",
"0.5300092",
"0.52968335",
"0.52924556",
"0.5283814",
"0.52816296",
"0.5269173",
"0.5259793",
"0.5254649",
"0.52518034",
"0.52491343",
"0.5244154",
"0.5239789",
"0.5234318",
"0.5232961",
"0.52092844",
"0.5201932",
"0.5185393",
"0.5183739",
"0.5178336",
"0.5176882",
"0.5173545",
"0.5169663",
"0.516548",
"0.5163102",
"0.51600623",
"0.51599884",
"0.5159234",
"0.51553565",
"0.5147901",
"0.51475704",
"0.5147338",
"0.51462215",
"0.5131663",
"0.5129719",
"0.51292515",
"0.512755",
"0.5127101",
"0.5124775",
"0.51246536",
"0.5122912",
"0.5122218",
"0.5116845",
"0.51115066",
"0.5108341"
] | 0.73580337 | 0 |
MeasureGetIterator indicates an expected call of MeasureGetIterator | func (mr *MockStorageMetricsMockRecorder) MeasureGetIterator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MeasureGetIterator", reflect.TypeOf((*MockStorageMetrics)(nil).MeasureGetIterator), arg0)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func TestMeasurementIterator(t *testing.T) {\n\telems := []MeasurementElem{\n\t\tMeasurementElem{name: []byte(\"cpu\"), deleted: true},\n\t\tMeasurementElem{name: []byte(\"mem\")},\n\t}\n\n\titr := MeasurementIterator{Elems: elems}\n\tif e := itr.Next(); !reflect.DeepEqual(&elems[0], e) {\n\t\tt.Fatalf(\"unexpected elem(0): %#v\", e)\n\t} else if e := itr.Next(); !reflect.DeepEqual(&elems[1], e) {\n\t\tt.Fatalf(\"unexpected elem(1): %#v\", e)\n\t} else if e := itr.Next(); e != nil {\n\t\tt.Fatalf(\"expected nil elem: %#v\", e)\n\t}\n}",
"func (m *MockStorageMetrics) MeasureGetIterator(arg0 func() (storage.EventsIterator, error)) (storage.EventsIterator, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"MeasureGetIterator\", arg0)\n\tret0, _ := ret[0].(storage.EventsIterator)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func TestFileSet_MeasurementIterator(t *testing.T) {\n\tidx := MustOpenIndex(1)\n\tdefer idx.Close()\n\n\t// Create initial set of series.\n\tif err := idx.CreateSeriesSliceIfNotExists([]Series{\n\t\t{Name: []byte(\"cpu\")},\n\t\t{Name: []byte(\"mem\")},\n\t}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify initial set of series.\n\tidx.Run(t, func(t *testing.T) {\n\t\tfs, err := idx.PartitionAt(0).RetainFileSet()\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tdefer fs.Release()\n\n\t\titr := fs.MeasurementIterator()\n\t\tif itr == nil {\n\t\t\tt.Fatal(\"expected iterator\")\n\t\t}\n\n\t\texpectedNames := []string{\"cpu\", \"mem\", \"\"} // Empty string implies end\n\t\tfor _, name := range expectedNames {\n\t\t\te := itr.Next()\n\t\t\tif name == \"\" && e != nil {\n\t\t\t\tt.Errorf(\"got measurement %s, expected nil measurement\", e.Name())\n\t\t\t} else if e == nil && name != \"\" {\n\t\t\t\tt.Errorf(\"got nil measurement, expected %s\", name)\n\t\t\t} else if e != nil && string(e.Name()) != name {\n\t\t\t\tt.Errorf(\"got measurement %s, expected %s\", e.Name(), name)\n\t\t\t}\n\t\t}\n\t})\n\n\t// Add more series.\n\tif err := idx.CreateSeriesSliceIfNotExists([]Series{\n\t\t{Name: []byte(\"disk\"), Tags: models.NewTags(map[string]string{\"foo\": \"bar\"})},\n\t\t{Name: []byte(\"cpu\"), Tags: models.NewTags(map[string]string{\"region\": \"north\", \"x\": \"y\"})},\n\t}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify additional series.\n\tidx.Run(t, func(t *testing.T) {\n\t\tfs, err := idx.PartitionAt(0).RetainFileSet()\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tdefer fs.Release()\n\n\t\titr := fs.MeasurementIterator()\n\t\tif itr == nil {\n\t\t\tt.Fatal(\"expected iterator\")\n\t\t}\n\n\t\texpectedNames := []string{\"cpu\", \"disk\", \"mem\", \"\"} // Empty string implies end\n\t\tfor _, name := range expectedNames {\n\t\t\te := itr.Next()\n\t\t\tif name == \"\" && e != nil {\n\t\t\t\tt.Errorf(\"got measurement %s, expected nil measurement\", e.Name())\n\t\t\t} else if e == nil && name != \"\" {\n\t\t\t\tt.Errorf(\"got nil measurement, expected %s\", name)\n\t\t\t} else if e != nil && string(e.Name()) != name {\n\t\t\t\tt.Errorf(\"got measurement %s, expected %s\", e.Name(), name)\n\t\t\t}\n\t\t}\n\t})\n}",
"func (f *IndexFile) MeasurementIterator() MeasurementIterator {\n\treturn f.mblk.Iterator()\n}",
"func (mr *MockGCSMockRecorder) GetObjectIterator(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetObjectIterator\", reflect.TypeOf((*MockGCS)(nil).GetObjectIterator), arg0)\n}",
"func testItrWithoutClose(t *testing.T, itr ledger.QueryResultsIterator, expectedKeys []string) {\n\tfor _, expectedKey := range expectedKeys {\n\t\tqueryResult, err := itr.Next()\n\t\trequire.NoError(t, err, \"An unexpected error was thrown during iterator Next()\")\n\t\tvkv := queryResult.(*queryresult.KV)\n\t\tkey := vkv.Key\n\t\trequire.Equal(t, expectedKey, key)\n\t}\n\tqueryResult, err := itr.Next()\n\trequire.NoError(t, err, \"An unexpected error was thrown during iterator Next()\")\n\trequire.Nil(t, queryResult)\n}",
"func (mr *MockStoreMockRecorder) Iterator(arg0, arg1 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Iterator\", reflect.TypeOf((*MockStore)(nil).Iterator), arg0, arg1)\n}",
"func (mr *MockMutableListMockRecorder) Iterator() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Iterator\", reflect.TypeOf((*MockMutableList)(nil).Iterator))\n}",
"func (mr *MockTestClientMockRecorder) GetTestIterations(arg0, arg1 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetTestIterations\", reflect.TypeOf((*MockTestClient)(nil).GetTestIterations), arg0, arg1)\n}",
"func (mr *MockListMockRecorder) Iterator() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Iterator\", reflect.TypeOf((*MockList)(nil).Iterator))\n}",
"func (iter IotHubQuotaMetricInfoListResultIterator) NotDone() bool {\n\treturn iter.page.NotDone() && iter.i < len(iter.page.Values())\n}",
"func TestMergeMeasurementIterators(t *testing.T) {\n\titr := tsi1.MergeMeasurementIterators(\n\t\t&MeasurementIterator{Elems: []MeasurementElem{\n\t\t\t{name: []byte(\"aaa\")},\n\t\t\t{name: []byte(\"bbb\"), deleted: true},\n\t\t\t{name: []byte(\"ccc\")},\n\t\t}},\n\t\t&MeasurementIterator{},\n\t\t&MeasurementIterator{Elems: []MeasurementElem{\n\t\t\t{name: []byte(\"bbb\")},\n\t\t\t{name: []byte(\"ccc\"), deleted: true},\n\t\t\t{name: []byte(\"ddd\")},\n\t\t}},\n\t)\n\n\tif e := itr.Next(); !bytes.Equal(e.Name(), []byte(\"aaa\")) || e.Deleted() {\n\t\tt.Fatalf(\"unexpected elem(0): %s/%v\", e.Name(), e.Deleted())\n\t} else if e := itr.Next(); !bytes.Equal(e.Name(), []byte(\"bbb\")) || !e.Deleted() {\n\t\tt.Fatalf(\"unexpected elem(1): %s/%v\", e.Name(), e.Deleted())\n\t} else if e := itr.Next(); !bytes.Equal(e.Name(), []byte(\"ccc\")) || e.Deleted() {\n\t\tt.Fatalf(\"unexpected elem(2): %s/%v\", e.Name(), e.Deleted())\n\t} else if e := itr.Next(); !bytes.Equal(e.Name(), []byte(\"ddd\")) || e.Deleted() {\n\t\tt.Fatalf(\"unexpected elem(3): %s/%v\", e.Name(), e.Deleted())\n\t} else if e := itr.Next(); e != nil {\n\t\tt.Fatalf(\"expected nil elem: %#v\", e)\n\t}\n}",
"func TestIteratorNext(t *testing.T) {\n\tconst n = 100\n\tl := NewSkiplist(NewArena(arenaSize))\n\n\tvar it Iterator\n\tit.Init(l)\n\n\trequire.False(t, it.Valid())\n\n\tit.SeekToFirst()\n\trequire.False(t, it.Valid())\n\n\tfor i := n - 1; i >= 0; i-- {\n\t\tit.Add([]byte(fmt.Sprintf(\"%05d\", i)), newValue(i), 0)\n\t}\n\n\tit.SeekToFirst()\n\tfor i := 0; i < n; i++ {\n\t\trequire.True(t, it.Valid())\n\t\trequire.EqualValues(t, newValue(i), it.Value())\n\t\tit.Next()\n\t}\n\trequire.False(t, it.Valid())\n}",
"func (m *IteratorMock) MinimockNextInspect() {\n\tfor _, e := range m.NextMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\tm.t.Error(\"Expected call to IteratorMock.Next\")\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.NextMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterNextCounter) < 1 {\n\t\tm.t.Error(\"Expected call to IteratorMock.Next\")\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcNext != nil && mm_atomic.LoadUint64(&m.afterNextCounter) < 1 {\n\t\tm.t.Error(\"Expected call to IteratorMock.Next\")\n\t}\n}",
"func TestRequiresIterator(t *testing.T) {\r\n\tT := New(Of(Int), WithBacking([]int{1, 2, 3, 4}))\r\n\tsliced, _ := T.Slice(makeRS(1, 3))\r\n\tif sliced.RequiresIterator() {\r\n\t\tt.Errorf(\"Slicing on rows should not require Iterator\")\r\n\t}\r\n}",
"func (mr *MockMutableListMockRecorder) AddIterator(iter interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"AddIterator\", reflect.TypeOf((*MockMutableList)(nil).AddIterator), iter)\n}",
"func (it *emptyIterator) AtT() int64 { return 0 }",
"func (UintSliceIterator) Err() error { return nil }",
"func (mr *MockTestClientMockRecorder) GetTestIteration(arg0, arg1 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetTestIteration\", reflect.TypeOf((*MockTestClient)(nil).GetTestIteration), arg0, arg1)\n}",
"func (i Iterator) Inspect(in Inspection) {\n\tin.Properties[\"index\"] = i.Index + 1\n\tin.Properties[\"length\"] = len(i.Target)\n}",
"func (_m *MockIteratorArrayPool) Get(size int) []Iterator {\n\tret := _m.ctrl.Call(_m, \"Get\", size)\n\tret0, _ := ret[0].([]Iterator)\n\treturn ret0\n}",
"func (it *MsmsintmsMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func testCounterMetric(t *testing.T, reporter *Reporter, m *stats.Int64Measure) {\n\ttotalNumberOfOperations := 2\n\treporter.Report(m.M(1))\n\treporter.Report(m.M(1))\n\trow, err := view.RetrieveData(m.Name())\n\tif err != nil {\n\t\tt.Errorf(\"Error when retrieving data: %v from %v\", err, m.Name())\n\t}\n\n\tcount, ok := row[0].Data.(*view.CountData)\n\tif !ok {\n\t\tt.Error(\"ReportRequest should have aggregation Count()\")\n\t}\n\tif count.Value != int64(totalNumberOfOperations) {\n\t\tt.Errorf(\"Metric: %v - Expected %v, got %v. \", m.Name(), count.Value, totalNumberOfOperations)\n\t}\n}",
"func (it *Mcmc0mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (m *IndexCollectionAccessorMock) ValidateCallCounters() {\n\n\tif !m.ForJetFinished() {\n\t\tm.t.Fatal(\"Expected call to IndexCollectionAccessorMock.ForJet\")\n\t}\n\n\tif !m.ForPulseAndJetFinished() {\n\t\tm.t.Fatal(\"Expected call to IndexCollectionAccessorMock.ForPulseAndJet\")\n\t}\n\n}",
"func (it *Mcmc0intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (Int32SliceIterator) Err() error { return nil }",
"func Test_CollectMetrics21(t *testing.T) {\n\tassert := assert.New(t)\n\tconfig := getTestConfig(2, 1)\n\tconfig.DataFunc = config.GetTestData1\n\n\tres := config.CollectMetrics()\n\tfmt.Println(\"21: \", res)\n\tfmt.Println(\"21: \", []cmd.MetricData{{Name: \"m1\", Help: \"h1\", MetricType: \"gauge\", Stats: []cmd.MetricRecord{{Value: 999, Labels: []string{\"l00\"}, LabelValues: []string{\"lv00\"}}}}, {Name: \"m2\", Help: \"h2\", MetricType: \"gauge\", Stats: []cmd.MetricRecord{{Value: 999, Labels: []string{\"l10\"}, LabelValues: []string{\"lv10\"}}}}})\n\tassert.Equal(true, cmp.Equal(res, []cmd.MetricData{{Name: \"m1\", Help: \"h1\", MetricType: \"gauge\", Stats: []cmd.MetricRecord{{Value: 999, Labels: []string{\"l00\"}, LabelValues: []string{\"lv00\"}}}}, {Name: \"m2\", Help: \"h2\", MetricType: \"gauge\", Stats: []cmd.MetricRecord{{Value: 999, Labels: []string{\"l10\"}, LabelValues: []string{\"lv10\"}}}}}))\n}",
"func (it *Mcmc4mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (it *Dppdpp0intsramseccMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func TestGetMemPages(t *testing.T) {\n\ttype testcase struct {\n\t\tname string\n\t\tmr *MemoryReader\n\t\tstart uint64\n\t\tend uint64\n\t\texpectedError error\n\t}\n\n\tpid, err := getTestImgPID()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Create a temporary empty memory pages file for testing\n\ttmpFilePath := filepath.Join(os.TempDir(), \"pages-0.img\")\n\ttmpFile, err := os.Create(tmpFilePath)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tdefer func() {\n\t\ttmpFile.Close()\n\t\tif err := os.Remove(tmpFile.Name()); err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}()\n\n\tmr, err := NewMemoryReader(testImgsDir, pid, sysPageSize)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\ttestCases := []testcase{\n\t\t{\n\t\t\tname: \"Zero memory area size\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: 0,\n\t\t\tend: 0,\n\t\t\texpectedError: nil,\n\t\t},\n\t\t{\n\t\t\tname: \"Valid pagemap entry 1\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[0].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[0].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[0].GetNrPages()),\n\t\t\texpectedError: nil,\n\t\t},\n\t\t{\n\t\t\tname: \"Valid pagemap entry 2\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[1].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[1].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[1].GetNrPages()),\n\t\t\texpectedError: nil,\n\t\t},\n\t\t{\n\t\t\tname: \"Invalid pages file\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: testImgsDir,\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: mr.pagesID + 1,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[0].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[0].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[0].GetNrPages()),\n\t\t\texpectedError: errors.New(\"no such file or directory\"),\n\t\t},\n\t\t{\n\t\t\tname: \"Empty pages file\",\n\t\t\tmr: &MemoryReader{\n\t\t\t\tcheckpointDir: os.TempDir(),\n\t\t\t\tpid: pid,\n\t\t\t\tpageSize: sysPageSize,\n\t\t\t\tpagesID: 0,\n\t\t\t\tpagemapEntries: mr.GetPagemapEntries(),\n\t\t\t},\n\t\t\tstart: mr.pagemapEntries[1].GetVaddr(),\n\t\t\tend: mr.pagemapEntries[1].GetVaddr() + uint64(uint32(sysPageSize)*mr.pagemapEntries[1].GetNrPages()),\n\t\t\texpectedError: errors.New(\"EOF\"),\n\t\t},\n\t}\n\n\tfor _, tc := range testCases {\n\t\tt.Run(tc.name, func(t *testing.T) {\n\t\t\tbuff, err := tc.mr.GetMemPages(tc.start, tc.end)\n\t\t\tif err != nil && tc.expectedError != nil {\n\t\t\t\tif !strings.Contains(err.Error(), tc.expectedError.Error()) {\n\t\t\t\t\tt.Errorf(\"Expected error: %v, got error: %v\", tc.expectedError, err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif tc.expectedError == nil && buff == nil {\n\t\t\t\tt.Errorf(\"Returned memory chunk is expected to be non-empty\")\n\t\t\t}\n\t\t})\n\t}\n}",
"func (it *Mxmx0inteccMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (_mr *MockMultiReaderIteratorMockRecorder) Next() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Next\", reflect.TypeOf((*MockMultiReaderIterator)(nil).Next))\n}",
"func (_m *MockSeriesIteratorPool) Get() SeriesIterator {\n\tret := _m.ctrl.Call(_m, \"Get\")\n\tret0, _ := ret[0].(SeriesIterator)\n\treturn ret0\n}",
"func (it *Mcmc2intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func BenchmarkReader_Read(b *testing.B) {\n\texpected := mock.ShowqMessageGen(b.N)()\n\tvar buf []byte\n\tfor i := 0; i < b.N; i++ {\n\t\tbuf = append(buf, expected[i].Bytes()...)\n\t}\n\treader := showq.NewReader(bytes.NewReader(append(buf, 0)))\n\n\tb.ResetTimer()\n\tfor {\n\t\t_, err := reader.Read()\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tb.Fatal(err)\n\t\t}\n\t}\n}",
"func (it *Mcmc4intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (m *IteratorMock) MinimockKeyInspect() {\n\tfor _, e := range m.KeyMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\tm.t.Error(\"Expected call to IteratorMock.Key\")\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.KeyMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterKeyCounter) < 1 {\n\t\tm.t.Error(\"Expected call to IteratorMock.Key\")\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcKey != nil && mm_atomic.LoadUint64(&m.afterKeyCounter) < 1 {\n\t\tm.t.Error(\"Expected call to IteratorMock.Key\")\n\t}\n}",
"func TestMetrics(t *testing.T) {\n\t// Notes that ReadPairsExamined, ReadPairDups, and\n\t// ReadPairOpticalDups below are doubled because they are halved\n\t// when written to the metrics file.\n\ttests := []struct {\n\t\trecords []*sam.Record\n\t\tmetrics *MetricsCollection\n\t}{\n\t\t{\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, r1F, 10, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 10, r2R, 0, chr1, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 0,\n\t\t\t\t\t\tReadPairsExamined: 2,\n\t\t\t\t\t\tSecondarySupplementary: 0,\n\t\t\t\t\t\tUnmappedReads: 0,\n\t\t\t\t\t\tUnpairedDups: 0,\n\t\t\t\t\t\tReadPairDups: 0,\n\t\t\t\t\t\tReadPairOpticalDups: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, r1F, 10, chr1, cigar0),\n\t\t\t\tNewRecord(\"B:::2:10:1:1\", chr1, 0, r1F, 10, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 10, r2R, 0, chr1, cigar0),\n\t\t\t\tNewRecord(\"B:::2:10:1:1\", chr1, 10, r2R, 0, chr1, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 0,\n\t\t\t\t\t\tReadPairsExamined: 4,\n\t\t\t\t\t\tSecondarySupplementary: 0,\n\t\t\t\t\t\tUnmappedReads: 0,\n\t\t\t\t\t\tUnpairedDups: 0,\n\t\t\t\t\t\tReadPairDups: 2,\n\t\t\t\t\t\tReadPairOpticalDups: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, r1F, 10, chr1, cigar0),\n\t\t\t\tNewRecord(\"B:::2:11:1:1\", chr1, 0, r1F, 10, chr1, cigar0),\n\t\t\t\tNewRecord(\"C:::2:11:1:1\", chr1, 0, r1F, 10, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 10, r2R, 0, chr1, cigar0),\n\t\t\t\tNewRecord(\"B:::2:11:1:1\", chr1, 10, r2R, 0, chr1, cigar0),\n\t\t\t\tNewRecord(\"C:::2:11:1:1\", chr1, 10, r2R, 0, chr1, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 0,\n\t\t\t\t\t\tReadPairsExamined: 6,\n\t\t\t\t\t\tSecondarySupplementary: 0,\n\t\t\t\t\t\tUnmappedReads: 0,\n\t\t\t\t\t\tUnpairedDups: 0,\n\t\t\t\t\t\tReadPairDups: 4,\n\t\t\t\t\t\tReadPairOpticalDups: 2,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, s1F, 0, nil, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, u2, 0, nil, cigar0),\n\t\t\t\tNewRecord(\"B:::2:10:1:1\", chr1, 0, s1F, 0, nil, cigar0),\n\t\t\t\tNewRecord(\"B:::2:10:1:1\", chr1, 0, u2, 0, nil, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 2,\n\t\t\t\t\t\tReadPairsExamined: 0,\n\t\t\t\t\t\tSecondarySupplementary: 0,\n\t\t\t\t\t\tUnmappedReads: 2,\n\t\t\t\t\t\tUnpairedDups: 1,\n\t\t\t\t\t\tReadPairDups: 0,\n\t\t\t\t\t\tReadPairOpticalDups: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\t// Cross-shard pairs\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, r1F, 105, chr1, cigar0),\n\t\t\t\tNewRecord(\"B:::1:10:1:1\", chr1, 0, r1F, 105, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 105, r2R, 0, chr1, cigar0),\n\t\t\t\tNewRecord(\"B:::1:10:1:1\", chr1, 105, r2R, 0, chr1, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 0,\n\t\t\t\t\t\tReadPairsExamined: 4,\n\t\t\t\t\t\tSecondarySupplementary: 0,\n\t\t\t\t\t\tUnmappedReads: 0,\n\t\t\t\t\t\tUnpairedDups: 0,\n\t\t\t\t\t\tReadPairDups: 2,\n\t\t\t\t\t\tReadPairOpticalDups: 2,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\t// Secondary alignments.\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, r1F, 105, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 105, r2R, 0, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr2, 12, sec, 105, chr1, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 0,\n\t\t\t\t\t\tReadPairsExamined: 2,\n\t\t\t\t\t\tSecondarySupplementary: 1,\n\t\t\t\t\t\tUnmappedReads: 0,\n\t\t\t\t\t\tUnpairedDups: 0,\n\t\t\t\t\t\tReadPairDups: 0,\n\t\t\t\t\t\tReadPairOpticalDups: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\t// Verify that we're counting dual-unmapped pairs\n\t\t\t[]*sam.Record{\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 0, r1F, 105, chr1, cigar0),\n\t\t\t\tNewRecord(\"A:::1:10:1:1\", chr1, 105, r2R, 0, chr1, cigar0),\n\t\t\t\tNewRecord(\"U:::2:11:1:1\", nil, -1, up1, -1, nil, cigar0),\n\t\t\t\tNewRecord(\"U:::2:11:1:1\", nil, -1, up2, -1, nil, cigar0),\n\t\t\t},\n\t\t\t&MetricsCollection{\n\t\t\t\tLibraryMetrics: map[string]*Metrics{\n\t\t\t\t\t\"Unknown Library\": &Metrics{\n\t\t\t\t\t\tUnpairedReads: 0,\n\t\t\t\t\t\tReadPairsExamined: 2,\n\t\t\t\t\t\tSecondarySupplementary: 0,\n\t\t\t\t\t\tUnmappedReads: 2,\n\t\t\t\t\t\tUnpairedDups: 0,\n\t\t\t\t\t\tReadPairDups: 0,\n\t\t\t\t\t\tReadPairOpticalDups: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\ttempDir, cleanup := testutil.TempDir(t, \"\", \"\")\n\tdefer cleanup()\n\tfor testIdx, test := range tests {\n\t\tfor _, tagDups := range []bool{true, false} {\n\t\t\tfor _, format := range []string{\"bam\", \"pam\"} {\n\t\t\t\tt.Logf(\"---- starting tests[%d, %v] ----\", testIdx, tagDups)\n\t\t\t\tprovider := bamprovider.NewFakeProvider(header, test.records)\n\t\t\t\toutputPath := NewTestOutput(tempDir, testIdx, format)\n\t\t\t\topts := Opts{\n\t\t\t\t\tShardSize: 100,\n\t\t\t\t\tPadding: 10,\n\t\t\t\t\tParallelism: 1,\n\t\t\t\t\tQueueLength: 10,\n\t\t\t\t\tClearExisting: false,\n\t\t\t\t\tRemoveDups: false,\n\t\t\t\t\tTagDups: tagDups,\n\t\t\t\t\tEmitUnmodifiedFields: true,\n\t\t\t\t\tOutputPath: outputPath,\n\t\t\t\t\tFormat: format,\n\t\t\t\t\tOpticalDetector: &TileOpticalDetector{\n\t\t\t\t\t\tOpticalDistance: 2500,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\tmarkDuplicates := &MarkDuplicates{\n\t\t\t\t\tProvider: provider,\n\t\t\t\t\tOpts: &opts,\n\t\t\t\t}\n\t\t\t\tactualMetrics, err := markDuplicates.Mark(nil)\n\t\t\t\tassert.NoError(t, err)\n\n\t\t\t\tfor i, r := range ReadRecords(t, outputPath) {\n\t\t\t\t\tt.Logf(\"output[%v]: %v\", i, r)\n\t\t\t\t}\n\t\t\t\tassert.Equal(t, len(test.metrics.LibraryMetrics), len(actualMetrics.LibraryMetrics))\n\t\t\t\tfor k, m := range actualMetrics.LibraryMetrics {\n\t\t\t\t\tassert.Equal(t, *(test.metrics.LibraryMetrics[k]), *m)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"func testMetrics(expected map[string]int, m *Metrics) error {\n\te := &firstErr{}\n\tfor name, cnt := range expected {\n\t\tswitch name {\n\t\tcase \"incoming\":\n\t\t\te.testCounter(m.Incoming, name, cnt)\n\t\tcase \"fragments\":\n\t\t\te.testCounter(m.Fragments, name, cnt)\n\t\tcase \"defrag\":\n\t\t\te.testCounter(m.Defrag, name, cnt)\n\t\tcase \"invalid\":\n\t\t\te.testCounter(m.Invalid, name, cnt)\n\t\tcase \"seen:udp\":\n\t\t\te.testCounter(m.Seen.WithLabelValues(\"udp\"), name, cnt)\n\t\tcase \"seen:tcp\":\n\t\t\te.testCounter(m.Seen.WithLabelValues(\"tcp\"), name, cnt)\n\t\tcase \"captured:udp\":\n\t\t\te.testCounter(m.Captured.WithLabelValues(\"udp\"), name, cnt)\n\t\tcase \"captured:tcp\":\n\t\t\te.testCounter(m.Captured.WithLabelValues(\"tcp\"), name, cnt)\n\t\tdefault:\n\t\t\te.err = fmt.Errorf(\"don't know field %v\", name)\n\t\t}\n\t}\n\treturn e.err\n}",
"func (_mr *MockIteratorMockRecorder) Next() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Next\", reflect.TypeOf((*MockIterator)(nil).Next))\n}",
"func TestFileSet_MeasurementSeriesIDIterator(t *testing.T) {\n\tidx := MustOpenIndex(1)\n\tdefer idx.Close()\n\n\t// Create initial set of series.\n\tif err := idx.CreateSeriesSliceIfNotExists([]Series{\n\t\t{Name: []byte(\"cpu\"), Tags: models.NewTags(map[string]string{\"region\": \"east\"})},\n\t\t{Name: []byte(\"cpu\"), Tags: models.NewTags(map[string]string{\"region\": \"west\"})},\n\t\t{Name: []byte(\"mem\"), Tags: models.NewTags(map[string]string{\"region\": \"east\"})},\n\t}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify initial set of series.\n\tidx.Run(t, func(t *testing.T) {\n\t\tfs, err := idx.PartitionAt(0).RetainFileSet()\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tdefer fs.Release()\n\n\t\titr := fs.MeasurementSeriesIDIterator([]byte(\"cpu\"))\n\t\tif itr == nil {\n\t\t\tt.Fatal(\"expected iterator\")\n\t\t}\n\n\t\tif result := MustReadAllSeriesIDIteratorString(fs.SeriesFile(), itr); !reflect.DeepEqual(result, []string{\n\t\t\t\"cpu,[{region east}]\",\n\t\t\t\"cpu,[{region west}]\",\n\t\t}) {\n\t\t\tt.Fatalf(\"unexpected keys: %s\", result)\n\t\t}\n\t})\n\n\t// Add more series.\n\tif err := idx.CreateSeriesSliceIfNotExists([]Series{\n\t\t{Name: []byte(\"disk\")},\n\t\t{Name: []byte(\"cpu\"), Tags: models.NewTags(map[string]string{\"region\": \"north\"})},\n\t}); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify additional series.\n\tidx.Run(t, func(t *testing.T) {\n\t\tfs, err := idx.PartitionAt(0).RetainFileSet()\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\tdefer fs.Release()\n\n\t\titr := fs.MeasurementSeriesIDIterator([]byte(\"cpu\"))\n\t\tif itr == nil {\n\t\t\tt.Fatalf(\"expected iterator\")\n\t\t}\n\n\t\tif result := MustReadAllSeriesIDIteratorString(fs.SeriesFile(), itr); !reflect.DeepEqual(result, []string{\n\t\t\t\"cpu,[{region east}]\",\n\t\t\t\"cpu,[{region north}]\",\n\t\t\t\"cpu,[{region west}]\",\n\t\t}) {\n\t\t\tt.Fatalf(\"unexpected keys: %s\", result)\n\t\t}\n\t})\n}",
"func (it *Mxmx0intmacMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (it *Mcmc1mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (_m *MockReaderIteratorPool) Get() ReaderIterator {\n\tret := _m.ctrl.Call(_m, \"Get\")\n\tret0, _ := ret[0].(ReaderIterator)\n\treturn ret0\n}",
"func (it *Mcmc2mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (InvertingInt32SliceIterator) Err() error { return nil }",
"func (it *MsmsintmiscMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func TestCollectorOK(t *testing.T) {\n\tc := collector.New()\n\tctx := context.Background()\n\tmpa := NewStubMeterPoints(\"a\", 0, 100*time.Millisecond)\n\tmpb := NewStubMeterPoints(\"b\", 5, 200*time.Millisecond)\n\tmpc := NewStubMeterPoints(\"c\", 10, 50*time.Millisecond)\n\terr := c.Register(mpa, mpb, mpc)\n\tif err != nil {\n\t\tt.Errorf(\"collector register error: %v\", err)\n\t}\n\tmetrics := c.Retrieve(ctx, time.Second)\n\tif a, ok := metrics.Get(\"a.count\"); !ok || a != \"1\" {\n\t\tt.Errorf(\"illegal value a: %q\", a)\n\t}\n\tmetrics = c.Retrieve(ctx, time.Second)\n\tif b, ok := metrics.Get(\"b.count\"); !ok || b != \"7\" {\n\t\tt.Errorf(\"illegal value b: %q\", b)\n\t}\n\tmetrics = c.Retrieve(ctx, time.Second)\n\tif c, ok := metrics.Get(\"c.count\"); !ok || c != \"13\" {\n\t\tt.Errorf(\"illegal value c: %q\", c)\n\t}\n}",
"func (it *Mcmc1intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func Test_CollectMetrics10(t *testing.T) {\n\tassert := assert.New(t)\n\tconfig := getTestConfig(1, 0)\n\tconfig.DataFunc = config.GetTestData1\n\n\tres := config.CollectMetrics()\n\tassert.Nil(res)\n}",
"func (it *Mcmc5mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (_mr *MockReaderIteratorMockRecorder) Next() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Next\", reflect.TypeOf((*MockReaderIterator)(nil).Next))\n}",
"func (it *Msmsintprp2MetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (ss *standaloneSelector) getCapacityFromIterClaims(which string, numParcelsNeeded int64) (*ClaimData, int64) {\n\tcd := ss.iterClaims[ss.iterPos]\n\tavailP := ss.TD.SizeBytesToParcels(cd.RemainingBytes)\n\tnp := numParcelsNeeded\n\tif np > availP {\n\t\tnp = availP\n\t}\n\tss.CS.Log.Debugf(\"iter(%s): P:[%s] SR:[%s] N:[%s] (Ask:%d Avail:%d Took:%d)\", which, ss.TD.PoolID, cd.StorageRequest.Meta.ID, cd.NodeID, numParcelsNeeded, availP, np)\n\treturn cd, np\n}",
"func TestOutOfRangeEstimationAfterDelete(t *testing.T) {\n\tstore, dom := testkit.CreateMockStoreAndDomain(t)\n\ttestKit := testkit.NewTestKit(t, store)\n\th := dom.StatsHandle()\n\ttestKit.MustExec(\"use test\")\n\ttestKit.MustExec(\"drop table if exists t\")\n\ttestKit.MustExec(\"create table t(a int unsigned)\")\n\trequire.NoError(t, h.HandleDDLEvent(<-h.DDLEventCh()))\n\tfor i := 0; i < 3000; i++ {\n\t\ttestKit.MustExec(fmt.Sprintf(\"insert into t values (%v)\", i/5+300)) // [300, 900)\n\t}\n\trequire.Nil(t, h.DumpStatsDeltaToKV(handle.DumpAll))\n\ttestKit.MustExec(\"analyze table t with 1 samplerate, 0 topn\")\n\ttestKit.MustExec(\"delete from t where a < 500\")\n\trequire.Nil(t, h.DumpStatsDeltaToKV(handle.DumpAll))\n\trequire.Nil(t, h.Update(dom.InfoSchema()))\n\tvar (\n\t\tinput []string\n\t\toutput []struct {\n\t\t\tSQL string\n\t\t\tResult []string\n\t\t}\n\t)\n\tstatsSuiteData := cardinality.GetCardinalitySuiteData()\n\tstatsSuiteData.LoadTestCases(t, &input, &output)\n\tfor i := range input {\n\t\ttestdata.OnRecord(func() {\n\t\t\toutput[i].SQL = input[i]\n\t\t\toutput[i].Result = testdata.ConvertRowsToStrings(testKit.MustQuery(input[i]).Rows())\n\t\t})\n\t\ttestKit.MustQuery(input[i]).Check(testkit.Rows(output[i].Result...))\n\t}\n}",
"func (_mr *MockIteratorMockRecorder) Err() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Err\", reflect.TypeOf((*MockIterator)(nil).Err))\n}",
"func TestFilterIterator_Interface(t *testing.T) {\n\tvar _ ResultIterator = &FilterIterator{}\n}",
"func (it *Mcmc5intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (InvertingUintSliceIterator) Err() error { return nil }",
"func (it *Dppdpp1intsramseccMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (mr *MockIteratorMockRecorder) Next() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Next\", reflect.TypeOf((*MockIterator)(nil).Next))\n}",
"func (it *Mxmx1inteccMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (it *Msmsintprp1MetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (_mr *MockMultiReaderIteratorPoolMockRecorder) Get() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Get\", reflect.TypeOf((*MockMultiReaderIteratorPool)(nil).Get))\n}",
"func (_mr *MockReaderIteratorPoolMockRecorder) Get() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Get\", reflect.TypeOf((*MockReaderIteratorPool)(nil).Get))\n}",
"func validateNewIterator(iterator ItemIterator) (err error) {\n\tif !iterator.Next() && iterator.Err() != nil {\n\t\terr = iterator.Err()\n\t\titerator.Reset()\n\t\treturn err\n\t}\n\terr = iterator.Reset()\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (it *emptyIterator) Err() error { return nil }",
"func (it *Mcmc6mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func Test_CollectMetrics01(t *testing.T) {\n\tassert := assert.New(t)\n\tconfig := getTestConfig(0, 1)\n\tconfig.DataFunc = config.GetTestData1\n\n\tres := config.CollectMetrics()\n\tassert.Nil(res)\n}",
"func (it *Mxmx1intmacMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (s *Iterator) Next() {\n\ts.i.Next()\n\tif s.spans.CheckAllowed(SpanReadOnly, roachpb.Span{Key: s.UnsafeKey().Key}) != nil {\n\t\ts.invalid = true\n\t}\n}",
"func (iter MonitorResourceListResponseIterator) NotDone() bool {\n\treturn iter.page.NotDone() && iter.i < len(iter.page.Values())\n}",
"func (mr *MockIApiMockRecorder) MetricsRetrieveARR(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"MetricsRetrieveARR\", reflect.TypeOf((*MockIApi)(nil).MetricsRetrieveARR), arg0)\n}",
"func (_mr *MockIteratorArrayPoolMockRecorder) Get(arg0 interface{}) *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Get\", reflect.TypeOf((*MockIteratorArrayPool)(nil).Get), arg0)\n}",
"func Test_CollectMetrics12(t *testing.T) {\n\tassert := assert.New(t)\n\tconfig := getTestConfig(1, 2)\n\tconfig.DataFunc = config.GetTestData1\n\n\tres := config.CollectMetrics()\n\tfmt.Println(\"12: \", res)\n\tfmt.Println(\"12: \", []cmd.MetricData{{Name: \"m1\", Help: \"h1\", MetricType: \"gauge\", Stats: []cmd.MetricRecord{{Value: 999, Labels: []string{\"l01\"}, LabelValues: []string{\"lv01\"}}, {Value: 999, Labels: []string{\"l00\"}, LabelValues: []string{\"lv00\"}}}}})\n\tassert.Equal(true, cmp.Equal(res, []cmd.MetricData{{Name: \"m1\", Help: \"h1\", MetricType: \"gauge\", Stats: []cmd.MetricRecord{{Value: 999, Labels: []string{\"l01\"}, LabelValues: []string{\"lv01\"}}, {Value: 999, Labels: []string{\"l00\"}, LabelValues: []string{\"lv00\"}}}}}))\n}",
"func TestBasic(t *testing.T) {\n\tl := NewSkiplist(NewArena(arenaSize))\n\n\tvar it Iterator\n\tit.Init(l)\n\n\tval1 := newValue(42)\n\tval2 := newValue(52)\n\tval3 := newValue(62)\n\tval4 := newValue(72)\n\n\t// Try adding values.\n\tit.Add([]byte(\"key1\"), val1, 0)\n\tit.Add([]byte(\"key3\"), val3, 0xffff)\n\tit.Add([]byte(\"key2\"), val2, 100)\n\n\trequire.False(t, it.Seek([]byte(\"key\")))\n\n\trequire.True(t, it.Seek([]byte(\"key1\")))\n\trequire.EqualValues(t, \"00042\", it.Value())\n\trequire.EqualValues(t, 0, it.Meta())\n\n\trequire.True(t, it.Seek([]byte(\"key2\")))\n\trequire.EqualValues(t, \"00052\", it.Value())\n\trequire.EqualValues(t, 100, it.Meta())\n\n\trequire.True(t, it.Seek([]byte(\"key3\")))\n\trequire.EqualValues(t, \"00062\", it.Value())\n\trequire.EqualValues(t, 0xffff, it.Meta())\n\n\trequire.True(t, it.Seek([]byte(\"key2\")))\n\trequire.Nil(t, it.Set(val4, 101))\n\trequire.EqualValues(t, \"00072\", it.Value())\n\trequire.EqualValues(t, 101, it.Meta())\n\n\trequire.True(t, it.Seek([]byte(\"key3\")))\n\trequire.Nil(t, it.Delete())\n\trequire.True(t, !it.Valid())\n}",
"func (iter ProviderOperationsMetadataListResultIterator) NotDone() bool {\n\treturn iter.page.NotDone() && iter.i < len(iter.page.Values())\n}",
"func (it *Mcmc3mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func TestSeriesIDIterator(t *testing.T) {\n\telems := []tsdb.SeriesIDElem{\n\t\t{SeriesID: 1},\n\t\t{SeriesID: 2},\n\t}\n\n\titr := SeriesIDIterator{Elems: elems}\n\tif e := itr.Next(); !reflect.DeepEqual(elems[0], e) {\n\t\tt.Fatalf(\"unexpected elem(0): %#v\", e)\n\t} else if e := itr.Next(); !reflect.DeepEqual(elems[1], e) {\n\t\tt.Fatalf(\"unexpected elem(1): %#v\", e)\n\t} else if e := itr.Next(); e.SeriesID != 0 {\n\t\tt.Fatalf(\"expected nil elem: %#v\", e)\n\t}\n}",
"func (it *Msmsintprp4MetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (it *Mcmc6intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (_mr *MockReaderIteratorMockRecorder) Err() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Err\", reflect.TypeOf((*MockReaderIterator)(nil).Err))\n}",
"func (_m *MockENotifyingList) Iterator() EIterator {\n\tret := _m.Called()\n\n\tvar r0 EIterator\n\tif rf, ok := ret.Get(0).(func() EIterator); ok {\n\t\tr0 = rf()\n\t} else {\n\t\tif ret.Get(0) != nil {\n\t\t\tr0 = ret.Get(0).(EIterator)\n\t\t}\n\t}\n\n\treturn r0\n}",
"func TestGet1024(t *testing.T) {\n\thm, _ := NewHashMap(1024)\n\ttestGetN(testN, hm)\n}",
"func (it *Dprdpr1intsramseccMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (_mr *MockMultiReaderIteratorMockRecorder) Err() *gomock.Call {\n\treturn _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, \"Err\", reflect.TypeOf((*MockMultiReaderIterator)(nil).Err))\n}",
"func (it *Mcmc3intmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func TestPeekerStop(t *testing.T) {\n\tpeek := NewPeeker(bytes.NewBuffer(testData[:6]))\n\n\tbuf := make([]byte, 6)\n\n\tn, err := peek.Read(buf)\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\n\tif !reflect.DeepEqual(buf[:n], testData[:n]) {\n\t\tt.Errorf(\"peeker returned invalid data (1): %v != %v\", buf[:n], testData[:n])\n\t}\n\n\tpeek.Reset()\n\tpeek.Stop()\n\n\tn, err = peek.Read(buf)\n\tif err != nil {\n\t\tt.Errorf(\"peeker returned unexpected error: %v\", err)\n\t} else if string(buf) != string(testData[:n]) {\n\t\tt.Errorf(\"peeker returned invalid data (2): %v != %v\", string(buf), string(testData[:n]))\n\t}\n\n\tn, err = peek.Read(buf)\n\tif err != io.EOF {\n\t\tt.Logf(\"peeker dump: %+v\", peek.(*PeekReader))\n\t\tt.Errorf(\"peeker did not stop reading after Stop: %v (%d %v)\", buf, n, err)\n\t}\n}",
"func (it *Msmsintprp5MetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func TestIteratorPrev(t *testing.T) {\n\tconst n = 100\n\tl := NewSkiplist(NewArena(arenaSize))\n\n\tvar it Iterator\n\tit.Init(l)\n\n\trequire.False(t, it.Valid())\n\n\tit.SeekToLast()\n\trequire.False(t, it.Valid())\n\n\tfor i := 0; i < n; i++ {\n\t\tit.Add([]byte(fmt.Sprintf(\"%05d\", i)), newValue(i), 0)\n\t}\n\n\tit.SeekToLast()\n\tfor i := n - 1; i >= 0; i-- {\n\t\trequire.True(t, it.Valid())\n\t\trequire.EqualValues(t, newValue(i), it.Value())\n\t\tit.Prev()\n\t}\n\trequire.False(t, it.Valid())\n}",
"func (it *Mcmc7mchintmcMetricsIterator) HasNext() bool {\n\treturn it.iter.HasNext()\n}",
"func (it *Mcmc0intmcMetricsIterator) Next() *Mcmc0intmcMetrics {\n\tmtr := it.iter.Next()\n\tif mtr == nil {\n\t\treturn nil\n\t}\n\n\ttmtr := &Mcmc0intmcMetrics{metrics: mtr}\n\ttmtr.Unmarshal()\n\treturn tmtr\n}",
"func (m *HeavySyncMock) ValidateCallCounters() {\n\n\tif !m.ResetFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.Reset\")\n\t}\n\n\tif !m.StartFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.Start\")\n\t}\n\n\tif !m.StopFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.Stop\")\n\t}\n\n\tif !m.StoreBlobsFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.StoreBlobs\")\n\t}\n\n\tif !m.StoreDropFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.StoreDrop\")\n\t}\n\n\tif !m.StoreIndicesFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.StoreIndices\")\n\t}\n\n\tif !m.StoreRecordsFinished() {\n\t\tm.t.Fatal(\"Expected call to HeavySyncMock.StoreRecords\")\n\t}\n\n}",
"func (mr *MockTaskManagerMockRecorder) GetMetrics() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetMetrics\", reflect.TypeOf((*MockTaskManager)(nil).GetMetrics))\n}",
"func (iter StorageInsightListResultIterator) NotDone() bool {\n\treturn iter.page.NotDone() && iter.i < len(iter.page.Values())\n}",
"func (iter StorageInsightListResultIterator) NotDone() bool {\n\treturn iter.page.NotDone() && iter.i < len(iter.page.Values())\n}",
"func (_m *MockReaderIterator) Err() error {\n\tret := _m.ctrl.Call(_m, \"Err\")\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (m *SignatureKeyHolderMock) ValidateCallCounters() {\n\n\tif !m.AsByteStringFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.AsByteString\")\n\t}\n\n\tif !m.AsBytesFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.AsBytes\")\n\t}\n\n\tif !m.EqualsFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.Equals\")\n\t}\n\n\tif !m.FixedByteSizeFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.FixedByteSize\")\n\t}\n\n\tif !m.FoldToUint64Finished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.FoldToUint64\")\n\t}\n\n\tif !m.GetSignMethodFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.GetSignMethod\")\n\t}\n\n\tif !m.GetSignatureKeyMethodFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.GetSignatureKeyMethod\")\n\t}\n\n\tif !m.GetSignatureKeyTypeFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.GetSignatureKeyType\")\n\t}\n\n\tif !m.ReadFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.Read\")\n\t}\n\n\tif !m.WriteToFinished() {\n\t\tm.t.Fatal(\"Expected call to SignatureKeyHolderMock.WriteTo\")\n\t}\n\n}",
"func (it *Dppdpp0intsramseccMetricsIterator) Next() *Dppdpp0intsramseccMetrics {\n\tmtr := it.iter.Next()\n\tif mtr == nil {\n\t\treturn nil\n\t}\n\n\ttmtr := &Dppdpp0intsramseccMetrics{metrics: mtr}\n\ttmtr.Unmarshal()\n\treturn tmtr\n}"
] | [
"0.6785206",
"0.60664725",
"0.56321025",
"0.55855495",
"0.5486318",
"0.5456885",
"0.53686374",
"0.534684",
"0.5292005",
"0.52803516",
"0.52679646",
"0.52651143",
"0.5211457",
"0.5197304",
"0.5185816",
"0.5179471",
"0.5092586",
"0.50857335",
"0.5075945",
"0.5063641",
"0.5048541",
"0.50474197",
"0.5024913",
"0.4992299",
"0.49842846",
"0.49780455",
"0.49720886",
"0.4955854",
"0.49419418",
"0.49299955",
"0.49165455",
"0.49086866",
"0.4906633",
"0.49048325",
"0.49013966",
"0.48973736",
"0.48961854",
"0.4892251",
"0.48912975",
"0.4887916",
"0.48805568",
"0.48791745",
"0.4868564",
"0.48682433",
"0.48661545",
"0.48647058",
"0.48593068",
"0.4856956",
"0.4854969",
"0.48548093",
"0.48533577",
"0.48505488",
"0.48488513",
"0.4846815",
"0.48447126",
"0.48446965",
"0.48430604",
"0.4841973",
"0.48390678",
"0.483591",
"0.48355505",
"0.48310548",
"0.4828324",
"0.48279345",
"0.48199856",
"0.48174775",
"0.48129478",
"0.4810599",
"0.48064175",
"0.48033717",
"0.4801738",
"0.48016548",
"0.47979188",
"0.47970504",
"0.47962224",
"0.47958606",
"0.4794398",
"0.47906622",
"0.47889397",
"0.4788146",
"0.477856",
"0.47718033",
"0.4767583",
"0.47653687",
"0.4760925",
"0.47509775",
"0.47505784",
"0.4739464",
"0.47373566",
"0.47313893",
"0.47269526",
"0.4726951",
"0.47233993",
"0.47198954",
"0.4709118",
"0.47078064",
"0.47078064",
"0.4706032",
"0.4705682",
"0.47043982"
] | 0.7354972 | 0 |
MeasurePersistEvent mocks base method | func (m *MockStorageMetrics) MeasurePersistEvent(arg0 func() (*spec.Event, error)) (*spec.Event, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MeasurePersistEvent", arg0)
ret0, _ := ret[0].(*spec.Event)
ret1, _ := ret[1].(error)
return ret0, ret1
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (mr *MockStorageMetricsMockRecorder) MeasurePersistEvent(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"MeasurePersistEvent\", reflect.TypeOf((*MockStorageMetrics)(nil).MeasurePersistEvent), arg0)\n}",
"func TestProcessEventHandling(t *testing.T) {\n\tctx := context.Background()\n\n\tclient := mocks.NewEventMonitoringModuleClient(t)\n\tstream := mocks.NewEventMonitoringModule_GetProcessEventsClient(t)\n\tclient.On(\"GetProcessEvents\", ctx, &api.GetProcessEventParams{TimeoutSeconds: 1}).Return(stream, nil)\n\n\tevents := make([]*model.ProcessEvent, 0)\n\tevents = append(events, model.NewMockedExecEvent(time.Now().Add(-10*time.Second), 32, \"/usr/bin/ls\", []string{\"ls\", \"-lah\"}))\n\tevents = append(events, model.NewMockedExitEvent(time.Now().Add(-9*time.Second), 32, \"/usr/bin/ls\", []string{\"ls\", \"-lah\"}, 0))\n\tevents = append(events, model.NewMockedExecEvent(time.Now().Add(-5*time.Second), 32, \"/usr/bin/ls\", []string{\"ls\", \"invalid-path\"}))\n\tevents = append(events, model.NewMockedExitEvent(time.Now().Add(-5*time.Second), 32, \"/usr/bin/ls\", []string{\"ls\", \"invalid-path\"}, 2))\n\n\tfor _, e := range events {\n\t\tdata, err := e.MarshalMsg(nil)\n\t\trequire.NoError(t, err)\n\n\t\tstream.On(\"Recv\").Once().Return(&api.ProcessEventMessage{Data: data}, nil)\n\t}\n\tstream.On(\"Recv\").Return(nil, io.EOF)\n\n\trcvMessage := make(chan bool)\n\ti := 0\n\thandler := func(e *model.ProcessEvent) {\n\t\tif i > len(events)-1 {\n\t\t\tt.Error(\"should not have received more process events\")\n\t\t}\n\n\t\tAssertProcessEvents(t, events[i], e)\n\t\t// all message have been consumed\n\t\tif i == len(events)-1 {\n\t\t\tclose(rcvMessage)\n\t\t}\n\n\t\ti++\n\t}\n\tl, err := NewSysProbeListener(nil, client, handler)\n\trequire.NoError(t, err)\n\tl.Run()\n\n\t<-rcvMessage\n\tl.Stop()\n\tclient.AssertExpectations(t)\n\tstream.AssertExpectations(t)\n}",
"func (m *MockHandler) Process(arg0 *models.Event) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Reduce\", arg0)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func TestEventListener(t *testing.T) {\n\tvar d *DB\n\tvar memLog base.InMemLogger\n\tmem := vfs.NewMem()\n\trequire.NoError(t, mem.MkdirAll(\"ext\", 0755))\n\n\tdatadriven.RunTest(t, \"testdata/event_listener\", func(t *testing.T, td *datadriven.TestData) string {\n\t\tswitch td.Cmd {\n\t\tcase \"open\":\n\t\t\tmemLog.Reset()\n\t\t\tlel := MakeLoggingEventListener(&memLog)\n\t\t\tflushBegin, flushEnd := lel.FlushBegin, lel.FlushEnd\n\t\t\tlel.FlushBegin = func(info FlushInfo) {\n\t\t\t\t// Make deterministic.\n\t\t\t\tinfo.InputBytes = 100\n\t\t\t\tflushBegin(info)\n\t\t\t}\n\t\t\tlel.FlushEnd = func(info FlushInfo) {\n\t\t\t\t// Make deterministic.\n\t\t\t\tinfo.InputBytes = 100\n\t\t\t\tflushEnd(info)\n\t\t\t}\n\t\t\topts := &Options{\n\t\t\t\tFS: vfs.WithLogging(mem, memLog.Infof),\n\t\t\t\tFormatMajorVersion: internalFormatNewest,\n\t\t\t\tEventListener: &lel,\n\t\t\t\tMaxManifestFileSize: 1,\n\t\t\t\tL0CompactionThreshold: 10,\n\t\t\t\tWALDir: \"wal\",\n\t\t\t}\n\t\t\t// The table stats collector runs asynchronously and its\n\t\t\t// timing is less predictable. It increments nextJobID, which\n\t\t\t// can make these tests flaky. The TableStatsLoaded event is\n\t\t\t// tested separately in TestTableStats.\n\t\t\topts.private.disableTableStats = true\n\t\t\tvar err error\n\t\t\td, err = Open(\"db\", opts)\n\t\t\tif err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tt := time.Now()\n\t\t\td.timeNow = func() time.Time {\n\t\t\t\tt = t.Add(time.Second)\n\t\t\t\treturn t\n\t\t\t}\n\t\t\td.testingAlwaysWaitForCleanup = true\n\t\t\treturn memLog.String()\n\n\t\tcase \"close\":\n\t\t\tmemLog.Reset()\n\t\t\tif err := d.Close(); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn memLog.String()\n\n\t\tcase \"flush\":\n\t\t\tmemLog.Reset()\n\t\t\tif err := d.Set([]byte(\"a\"), nil, nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Flush(); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn memLog.String()\n\n\t\tcase \"compact\":\n\t\t\tmemLog.Reset()\n\t\t\tif err := d.Set([]byte(\"a\"), nil, nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Compact([]byte(\"a\"), []byte(\"b\"), false); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn memLog.String()\n\n\t\tcase \"checkpoint\":\n\t\t\tmemLog.Reset()\n\t\t\tif err := d.Checkpoint(\"checkpoint\"); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn memLog.String()\n\n\t\tcase \"disable-file-deletions\":\n\t\t\tmemLog.Reset()\n\t\t\td.mu.Lock()\n\t\t\td.disableFileDeletions()\n\t\t\td.mu.Unlock()\n\t\t\treturn memLog.String()\n\n\t\tcase \"enable-file-deletions\":\n\t\t\tmemLog.Reset()\n\t\t\tfunc() {\n\t\t\t\tdefer func() {\n\t\t\t\t\tif r := recover(); r != nil {\n\t\t\t\t\t\tmemLog.Infof(\"%v\", r)\n\t\t\t\t\t}\n\t\t\t\t}()\n\t\t\t\td.mu.Lock()\n\t\t\t\tdefer d.mu.Unlock()\n\t\t\t\td.enableFileDeletions()\n\t\t\t}()\n\t\t\td.TestOnlyWaitForCleaning()\n\t\t\treturn memLog.String()\n\n\t\tcase \"ingest\":\n\t\t\tmemLog.Reset()\n\t\t\tf, err := mem.Create(\"ext/0\")\n\t\t\tif err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tw := sstable.NewWriter(objstorageprovider.NewFileWritable(f), sstable.WriterOptions{\n\t\t\t\tTableFormat: d.FormatMajorVersion().MaxTableFormat(),\n\t\t\t})\n\t\t\tif err := w.Add(base.MakeInternalKey([]byte(\"a\"), 0, InternalKeyKindSet), nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := w.Close(); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Ingest([]string{\"ext/0\"}); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn memLog.String()\n\n\t\tcase \"ingest-flushable\":\n\t\t\tmemLog.Reset()\n\n\t\t\t// Prevent flushes during this test to ensure determinism.\n\t\t\td.mu.Lock()\n\t\t\td.mu.compact.flushing = true\n\t\t\td.mu.Unlock()\n\n\t\t\tb := d.NewBatch()\n\t\t\tif err := b.Set([]byte(\"a\"), nil, nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Apply(b, nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\twriteTable := func(name string, key byte) error {\n\t\t\t\tf, err := mem.Create(name)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tw := sstable.NewWriter(objstorageprovider.NewFileWritable(f), sstable.WriterOptions{\n\t\t\t\t\tTableFormat: d.FormatMajorVersion().MaxTableFormat(),\n\t\t\t\t})\n\t\t\t\tif err := w.Add(base.MakeInternalKey([]byte{key}, 0, InternalKeyKindSet), nil); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tif err := w.Close(); err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\ttableA, tableB := \"ext/a\", \"ext/b\"\n\t\t\tif err := writeTable(tableA, 'a'); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := writeTable(tableB, 'b'); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Ingest([]string{tableA, tableB}); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\n\t\t\t// Re-enable flushes, to allow the subsequent flush to proceed.\n\t\t\td.mu.Lock()\n\t\t\td.mu.compact.flushing = false\n\t\t\td.mu.Unlock()\n\t\t\tif err := d.Flush(); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn memLog.String()\n\n\t\tcase \"metrics\":\n\t\t\t// The asynchronous loading of table stats can change metrics, so\n\t\t\t// wait for all the tables' stats to be loaded.\n\t\t\td.mu.Lock()\n\t\t\td.waitTableStats()\n\t\t\td.mu.Unlock()\n\n\t\t\treturn d.Metrics().String()\n\n\t\tcase \"sstables\":\n\t\t\tvar buf bytes.Buffer\n\t\t\ttableInfos, _ := d.SSTables()\n\t\t\tfor i, level := range tableInfos {\n\t\t\t\tif len(level) == 0 {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tfmt.Fprintf(&buf, \"%d:\\n\", i)\n\t\t\t\tfor _, m := range level {\n\t\t\t\t\tfmt.Fprintf(&buf, \" %d:[%s-%s]\\n\",\n\t\t\t\t\t\tm.FileNum, m.Smallest.UserKey, m.Largest.UserKey)\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buf.String()\n\n\t\tdefault:\n\t\t\treturn fmt.Sprintf(\"unknown command: %s\", td.Cmd)\n\t\t}\n\t})\n}",
"func TestTrimMeasurementHistory(t *testing.T) {\n\tf := newFixture(t)\n\tdefer f.Close()\n\tc, _, _ := f.newController(noResyncPeriodFunc)\n\n\tf.provider.On(\"GarbageCollect\", mock.Anything, mock.Anything, mock.Anything).Return(nil)\n\n\t{\n\t\trun := newRun()\n\t\terr := c.garbageCollectMeasurements(run, map[string]*v1alpha1.MeasurementRetention{}, 2)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 2)\n\t\tassert.Equal(t, \"2\", run.Status.MetricResults[1].Measurements[0].Value)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[1].Value)\n\t}\n\t{\n\t\trun := newRun()\n\t\terr := c.garbageCollectMeasurements(run, map[string]*v1alpha1.MeasurementRetention{}, 1)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 1)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[0].Value)\n\t}\n\t{\n\t\trun := newRun()\n\t\tvar measurementRetentionMetricsMap = map[string]*v1alpha1.MeasurementRetention{}\n\t\tmeasurementRetentionMetricsMap[\"metric2\"] = &v1alpha1.MeasurementRetention{MetricName: \"*\", Limit: 2}\n\t\terr := c.garbageCollectMeasurements(run, measurementRetentionMetricsMap, 1)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 2)\n\t\tassert.Equal(t, \"2\", run.Status.MetricResults[1].Measurements[0].Value)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[1].Value)\n\t}\n\t{\n\t\trun := newRun()\n\t\tvar measurementRetentionMetricsMap = map[string]*v1alpha1.MeasurementRetention{}\n\t\tmeasurementRetentionMetricsMap[\"metric2\"] = &v1alpha1.MeasurementRetention{MetricName: \"metric2\", Limit: 2}\n\t\terr := c.garbageCollectMeasurements(run, measurementRetentionMetricsMap, 1)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 2)\n\t\tassert.Equal(t, \"2\", run.Status.MetricResults[1].Measurements[0].Value)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[1].Value)\n\t}\n}",
"func TestStatePersist(t *testing.T) {\n\tsetup(t)\n\n\tstate, err := NewState(startC)\n\trequire.NoError(t, err)\n\n\tstartTime, errt := state.GetStartTime()\n\tcursor, errc := state.GetCursor()\n\tid, erri := state.GetID()\n\n\trequire.NoError(t, errt)\n\trequire.NoError(t, errc)\n\trequire.NoError(t, erri)\n\n\tassert.Nil(t, startTime)\n\tassert.Equal(t, \"\", cursor)\n\tassert.Equal(t, \"\", id)\n\n\terrc = state.SetCursor(\"testCursor\")\n\terri = state.SetID(\"testId\")\n\terrt = state.SetStartTime(¤tTime)\n\trequire.NoError(t, errc)\n\trequire.NoError(t, erri)\n\trequire.NoError(t, errt)\n\n\tstate, err = NewState(startC)\n\trequire.NoError(t, err)\n\n\tstartTime, errt = state.GetStartTime()\n\trequire.NoError(t, errt)\n\tassert.NotNil(t, startTime)\n\tassert.Equal(t, currentTime, *startTime)\n\n\tcursor, errc = state.GetCursor()\n\tid, erri = state.GetID()\n\n\trequire.NoError(t, errc)\n\trequire.NoError(t, erri)\n\n\tassert.Equal(t, \"testCursor\", cursor)\n\tassert.Equal(t, \"testId\", id)\n}",
"func (_m *MockAggregate) StoreEvent(_a0 EventData) {\n\t_m.Called(_a0)\n}",
"func (s *InMemorySuite) TestRecordEvents(c *C) {\n\ttimeline := s.newTimeline()\n\tevents := []*pb.TimelineEvent{pb.NewNodeHealthy(s.clock.Now(), node)}\n\texpected := []*pb.TimelineEvent{pb.NewNodeHealthy(s.clock.Now(), node)}\n\tcomment := Commentf(\"Expected the a node recovered event to be recorded.\")\n\n\ttest.WithTimeout(func(ctx context.Context) {\n\t\tc.Assert(timeline.RecordEvents(ctx, events), IsNil, comment)\n\n\t\tactual, err := timeline.GetEvents(ctx, nil)\n\t\tc.Assert(err, IsNil, comment)\n\t\tc.Assert(actual, test.DeepCompare, expected, comment)\n\t})\n}",
"func (m *MockTChanNode) GetPersistRateLimit(ctx thrift.Context) (*NodePersistRateLimitResult_, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetPersistRateLimit\", ctx)\n\tret0, _ := ret[0].(*NodePersistRateLimitResult_)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func TestBatchOnUploadEvent(t *testing.T) {\n\tsw := &mocks.SavingWriter{}\n\tbatch := Batch{sw}\n\terr := batch.OnUploadEvent(&spec.Measurement{\n\t\tAppInfo: spec.AppInfo{\n\t\t\tNumBytes: 100000000,\n\t\t},\n\t\tDirection: \"upload\",\n\t\tElapsed: 3.0,\n\t\tOrigin: \"client\",\n\t})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif len(sw.Data) != 1 {\n\t\tt.Fatal(\"invalid length\")\n\t}\n\tvar event struct {\n\t\tKey string `json:\"key\"`\n\t\tValue struct {\n\t\t\tAppInfo struct {\n\t\t\t\tNumBytes int64 `json:\"num_bytes\"`\n\t\t\t} `json:\"app_info\"`\n\t\t\tDirection string `json:\"direction\"`\n\t\t\tElapsed float64 `json:\"elapsed\"`\n\t\t\tOrigin string `json:\"origin\"`\n\t\t} `json:\"value\"`\n\t}\n\terr = json.Unmarshal(sw.Data[0], &event)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif event.Key != \"measurement\" {\n\t\tt.Fatal(\"Unexpected event key\")\n\t}\n\tif event.Value.AppInfo.NumBytes != 100000000 {\n\t\tt.Fatal(\"Unexpected num bytes field value\")\n\t}\n\tif event.Value.Direction != \"upload\" {\n\t\tt.Fatal(\"Unexpected direction field value\")\n\t}\n\tif event.Value.Elapsed != 3.0 {\n\t\tt.Fatal(\"Unexpected elapsed field value\")\n\t}\n\tif event.Value.Origin != \"client\" {\n\t\tt.Fatal(\"Unexpected elapsed field value\")\n\t}\n}",
"func (m *MockEventRepository) Store(arg0 *sweeper.Event) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Store\", arg0)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (_m *SourceTarget) Persist(ctx context.Context, name string) error {\n\tret := _m.Called(ctx, name)\n\n\tvar r0 error\n\tif rf, ok := ret.Get(0).(func(context.Context, string) error); ok {\n\t\tr0 = rf(ctx, name)\n\t} else {\n\t\tr0 = ret.Error(0)\n\t}\n\n\treturn r0\n}",
"func TestPersistTransactionCreated(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\tt.Parallel()\n\n\t// Create fee manager\n\tfm, err := newTestingFeeManager(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Add a random number of fees\n\tfeeUIDs, err := addRandomFeesN(fm, fastrand.Intn(100)+1)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Submit a persist event for a transaction being created\n\ttxn := types.Transaction{}\n\terr = fm.staticCommon.staticPersist.callPersistTransaction(txn)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\ttxnID := txn.ID()\n\terr = fm.staticCommon.staticPersist.callPersistTxnCreated(feeUIDs, txnID)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Close the FeeManager\n\terr = fm.Close()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Reopen the FeeManager to load the persistence\n\tfm, err = New(fm.staticCommon.staticCS, fm.staticCommon.staticTpool, fm.staticCommon.staticWallet, fm.staticCommon.staticPersist.staticPersistDir)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify all the fees are now marked as TransactionCreate true\n\tfm.mu.Lock()\n\tfor _, fee := range fm.fees {\n\t\tif !fee.TransactionCreated {\n\t\t\tt.Fatal(\"fee found with TransactionCreate False\")\n\t\t}\n\t}\n\tfm.mu.Unlock()\n\n\tttxns := fm.staticCommon.staticWatchdog.managedTrackedTxns()\n\tif len(ttxns) != 1 {\n\t\tt.Fatal(\"Expected 1 tracked transaction but got\", len(ttxns))\n\t}\n}",
"func TestBaseAggregateDefineReplayMethod(t *testing.T) {\n\tinstance := &SimpleAggregate{}\n\tstore := NewNullStore()\n\tinstance.Initialize(\"dummy-key\", counterRegistry, store)\n\tinstance.Refresh()\n\n\t// Nothing should happen yet. Define the event type in our registry, but it should still not change\n\t// anything state-wise.\n\tinstance.ApplyEvent(UnknownEventTypeExample{})\n\teventType := counterRegistry.RegisterEvent(UnknownEventTypeExample{})\n\tassert.Equal(t, int64(1), instance.SequenceNumber(), \"The aggregate sequence number should be 1\")\n\tassert.Equal(t, 0, instance.TargetValue, \"The aggregate target value should be 0\")\n\n\tinstance.DefineReplayMethod(eventType, func(evt Event) {\n\t\tinstance.TargetValue *= 2\n\t})\n\n\t// Set target value\n\tinstance.ApplyEvent(InitializeEvent{\n\t\tTargetValue: 3,\n\t})\n\n\t// Apply our unknown event\n\tinstance.ApplyEvent(UnknownEventTypeExample{})\n\n\tassert.Equal(t, int64(3), instance.SequenceNumber(), \"The aggregate sequence number should be 3\")\n\tassert.Equal(t, 6, instance.TargetValue, \"The aggregate target value should be 6\")\n}",
"func TestBatchOnUploadEventFailure(t *testing.T) {\n\tbatch := Batch{&mocks.FailingWriter{}}\n\terr := batch.OnUploadEvent(&spec.Measurement{\n\t\tElapsed: 1.0,\n\t})\n\tif err != mocks.ErrMocked {\n\t\tt.Fatal(\"Not the error we expected\")\n\t}\n}",
"func (m *MockRunOptions) PersistConfig() PersistConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"PersistConfig\")\n\tret0, _ := ret[0].(PersistConfig)\n\treturn ret0\n}",
"func (m *MockEventLogger) Append(event eventlog.EventData) (uint64, uint64, time.Time, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Append\", event)\n\tret0, _ := ret[0].(uint64)\n\tret1, _ := ret[1].(uint64)\n\tret2, _ := ret[2].(time.Time)\n\tret3, _ := ret[3].(error)\n\treturn ret0, ret1, ret2, ret3\n}",
"func TestBaseAggregateEventCommit(t *testing.T) {\n\tinstance := &SimpleAggregate{}\n\tstore := NewNullStore()\n\tinstance.Initialize(\"dummy-key\", counterRegistry, store)\n\tinstance.Refresh()\n\tassert.False(t, instance.isDirty(), \"The aggregate should not be dirty before any events.\")\n\n\tinstance.ApplyEvent(InitializeEvent{\n\t\tTargetValue: 3,\n\t})\n\tassert.True(t, instance.isDirty(), \"The aggregate should be dirty, after applying an event\")\n\n\tinstance.Commit()\n\tassert.False(t, instance.isDirty(), \"The aggregate should not be dirty after committing events.\")\n}",
"func TestComputeEvents(t *testing.T) {\n\tcontainerdCheck := &ContainerdCheck{\n\t\tinstance: &ContainerdConfig{},\n\t\tCheckBase: corechecks.NewCheckBase(\"containerd\"),\n\t}\n\tmocked := mocksender.NewMockSender(containerdCheck.ID())\n\tvar err error\n\tdefer containers.ResetSharedFilter()\n\tcontainerdCheck.containerFilter, err = containers.GetSharedMetricFilter()\n\trequire.NoError(t, err)\n\n\ttests := []struct {\n\t\tname string\n\t\tevents []containerdEvent\n\t\texpectedTitle string\n\t\texpectedTags []string\n\t\tnumberEvents int\n\t}{\n\t\t{\n\t\t\tname: \"No events\",\n\t\t\tevents: []containerdEvent{},\n\t\t\texpectedTitle: \"\",\n\t\t\tnumberEvents: 0,\n\t\t},\n\t\t{\n\t\t\tname: \"Events on wrong type\",\n\t\t\tevents: []containerdEvent{\n\t\t\t\t{\n\t\t\t\t\tTopic: \"/containers/delete/extra\",\n\t\t\t\t}, {\n\t\t\t\t\tTopic: \"containers/delete\",\n\t\t\t\t},\n\t\t\t},\n\t\t\texpectedTitle: \"\",\n\t\t\tnumberEvents: 0,\n\t\t},\n\t\t{\n\t\t\tname: \"High cardinality Events with one invalid\",\n\t\t\tevents: []containerdEvent{\n\t\t\t\t{\n\t\t\t\t\tTopic: \"/containers/delete\",\n\t\t\t\t\tTimestamp: time.Now(),\n\t\t\t\t\tExtra: map[string]string{\"foo\": \"bar\"},\n\t\t\t\t\tMessage: \"Container xxx deleted\",\n\t\t\t\t\tID: \"xxx\",\n\t\t\t\t}, {\n\t\t\t\t\tTopic: \"containers/delete\",\n\t\t\t\t},\n\t\t\t},\n\t\t\texpectedTitle: \"Event on containers from Containerd\",\n\t\t\texpectedTags: []string{\"foo:bar\", \"event_type:destroy\"},\n\t\t\tnumberEvents: 1,\n\t\t},\n\t\t{\n\t\t\tname: \"Low cardinality Event\",\n\t\t\tevents: []containerdEvent{\n\t\t\t\t{\n\t\t\t\t\tTopic: \"/images/update\",\n\t\t\t\t\tTimestamp: time.Now(),\n\t\t\t\t\tExtra: map[string]string{\"foo\": \"baz\"},\n\t\t\t\t\tMessage: \"Image yyy updated\",\n\t\t\t\t\tID: \"yyy\",\n\t\t\t\t},\n\t\t\t},\n\t\t\texpectedTitle: \"Event on images from Containerd\",\n\t\t\texpectedTags: []string{\"foo:baz\"},\n\t\t\tnumberEvents: 1,\n\t\t},\n\t\t{\n\t\t\tname: \"Filtered event\",\n\t\t\tevents: []containerdEvent{\n\t\t\t\t{\n\t\t\t\t\tTopic: \"/images/create\",\n\t\t\t\t\tTimestamp: time.Now(),\n\t\t\t\t\tExtra: map[string]string{},\n\t\t\t\t\tMessage: \"Image kubernetes/pause created\",\n\t\t\t\t\tID: \"kubernetes/pause\",\n\t\t\t\t},\n\t\t\t},\n\t\t\texpectedTitle: \"Event on images from Containerd\",\n\t\t\texpectedTags: nil,\n\t\t\tnumberEvents: 0,\n\t\t},\n\t}\n\tfor _, test := range tests {\n\t\tt.Run(test.name, func(t *testing.T) {\n\t\t\tcomputeEvents(test.events, mocked, containerdCheck.containerFilter)\n\t\t\tmocked.On(\"Event\", mock.AnythingOfType(\"event.Event\"))\n\t\t\tif len(mocked.Calls) > 0 {\n\t\t\t\tres := (mocked.Calls[0].Arguments.Get(0)).(event.Event)\n\t\t\t\tassert.Contains(t, res.Title, test.expectedTitle)\n\t\t\t\tassert.ElementsMatch(t, res.Tags, test.expectedTags)\n\t\t\t}\n\t\t\tmocked.AssertNumberOfCalls(t, \"Event\", test.numberEvents)\n\t\t\tmocked.ResetCalls()\n\t\t})\n\t}\n}",
"func (m *MockMetrics) MeasureSince(arg0 []string, arg1 time.Time) {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"MeasureSince\", arg0, arg1)\n}",
"func TestEventCreate(t *testing.T) {\n\ta := assert.New(t)\n\tctx := context.Background()\n\tpostgresC, db, err := setupPostgresContainer(ctx)\n\tif postgresC != nil {\n\t\tdefer postgresC.Terminate(ctx)\n\t}\n\tif err != nil {\n\t\tt.Error(err)\n\t\treturn\n\t}\n\n\teventsStorage := NewEvents(db)\n\tvar wg sync.WaitGroup\n\n\tassumeTotal := 0.\n\tvar tl sync.Mutex\n\n\tfor i := 0; i < 100; i++ {\n\t\twg.Add(1)\n\t\tgo func(i int) {\n\t\t\tdefer wg.Done()\n\t\t\tamount := float64(rand.Intn(100))\n\t\t\tvar e models.Event\n\t\t\tif i%5 == 0 { // StateWin\n\t\t\t\te = genTestEvent(amount)\n\t\t\t} else { // StateLoss\n\t\t\t\tamount = amount * -1\n\t\t\t\te = genTestEvent(amount)\n\t\t\t}\n\t\t\terr = eventsStorage.Create(ctx, e)\n\t\t\tif err != nil && errors.Cause(err) != errNegativeBalance {\n\t\t\t\tt.Error(err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif err == nil {\n\t\t\t\ttl.Lock()\n\t\t\t\tassumeTotal += e.Amount\n\t\t\t\ttl.Unlock()\n\t\t\t}\n\t\t}(i)\n\t\tt := time.Duration(rand.Int63n(5))\n\t\ttime.Sleep(t * time.Millisecond)\n\t}\n\n\twg.Wait()\n\n\tbal, err := getBalanceWithLock(ctx, db)\n\ta.NoError(err)\n\n\tt.Logf(\"Total balance: %f\", bal)\n\n\ta.Equal(assumeTotal, bal)\n\n\tif bal < 0 {\n\t\tt.Error(\"Negative balance\")\n\t}\n}",
"func AssertProcessEvents(t *testing.T, expected, actual *model.ProcessEvent) {\n\tt.Helper()\n\n\tassert.Equal(t, expected.EventType, actual.EventType)\n\tassert.WithinDuration(t, expected.CollectionTime, actual.CollectionTime, 0)\n\tassert.Equal(t, expected.Pid, actual.Pid)\n\tassert.Equal(t, expected.ContainerID, actual.ContainerID)\n\tassert.Equal(t, expected.Ppid, actual.Ppid)\n\tassert.Equal(t, expected.UID, actual.UID)\n\tassert.Equal(t, expected.GID, actual.GID)\n\tassert.Equal(t, expected.Username, actual.Username)\n\tassert.Equal(t, expected.Group, actual.Group)\n\tassert.Equal(t, expected.Exe, actual.Exe)\n\tassert.Equal(t, expected.Cmdline, actual.Cmdline)\n\tassert.WithinDuration(t, expected.ForkTime, actual.ForkTime, 0)\n\tassert.WithinDuration(t, expected.ExecTime, actual.ExecTime, 0)\n\tassert.WithinDuration(t, expected.ExitTime, actual.ExitTime, 0)\n\tassert.Equal(t, expected.ExitCode, actual.ExitCode)\n}",
"func (mmSavePosition *mStoreMockSavePosition) When(t1 pb.TotalPosition) *StoreMockSavePositionExpectation {\n\tif mmSavePosition.mock.funcSavePosition != nil {\n\t\tmmSavePosition.mock.t.Fatalf(\"StoreMock.SavePosition mock is already set by Set\")\n\t}\n\n\texpectation := &StoreMockSavePositionExpectation{\n\t\tmock: mmSavePosition.mock,\n\t\tparams: &StoreMockSavePositionParams{t1},\n\t}\n\tmmSavePosition.expectations = append(mmSavePosition.expectations, expectation)\n\treturn expectation\n}",
"func (m *MockHandler) EventQuery() (*models.SearchQuery, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"EventQuery\")\n\tret0, _ := ret[0].(*models.SearchQuery)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func TestEventListener(t *testing.T) {\n\tvar d *DB\n\tvar buf syncedBuffer\n\tmem := vfs.NewMem()\n\terr := mem.MkdirAll(\"ext\", 0755)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tdatadriven.RunTest(t, \"testdata/event_listener\", func(td *datadriven.TestData) string {\n\t\tswitch td.Cmd {\n\t\tcase \"open\":\n\t\t\tbuf.Reset()\n\t\t\tvar err error\n\t\t\td, err = Open(\"db\", &Options{\n\t\t\t\tFS: loggingFS{mem, &buf},\n\t\t\t\tEventListener: MakeLoggingEventListener(&buf),\n\t\t\t\tMaxManifestFileSize: 1,\n\t\t\t\tWALDir: \"wal\",\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn buf.String()\n\n\t\tcase \"flush\":\n\t\t\tbuf.Reset()\n\t\t\tif err := d.Set([]byte(\"a\"), nil, nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Flush(); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn buf.String()\n\n\t\tcase \"compact\":\n\t\t\tbuf.Reset()\n\t\t\tif err := d.Set([]byte(\"a\"), nil, nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Compact([]byte(\"a\"), []byte(\"b\")); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn buf.String()\n\n\t\tcase \"ingest\":\n\t\t\tbuf.Reset()\n\t\t\tf, err := mem.Create(\"ext/0\")\n\t\t\tif err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tw := sstable.NewWriter(f, nil, LevelOptions{})\n\t\t\tif err := w.Add(base.MakeInternalKey([]byte(\"a\"), 0, InternalKeyKindSet), nil); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := w.Close(); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := d.Ingest([]string{\"ext/0\"}); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\tif err := mem.Remove(\"ext/0\"); err != nil {\n\t\t\t\treturn err.Error()\n\t\t\t}\n\t\t\treturn buf.String()\n\n\t\tcase \"metrics\":\n\t\t\treturn d.Metrics().String()\n\n\t\tdefault:\n\t\t\treturn fmt.Sprintf(\"unknown command: %s\", td.Cmd)\n\t\t}\n\t})\n}",
"func (m *MockMachine) PublishLifecycleEvent(arg0 lifecycle.Type, arg1 ...lifecycle.Option) {\n\tm.ctrl.T.Helper()\n\tvarargs := []interface{}{arg0}\n\tfor _, a := range arg1 {\n\t\tvarargs = append(varargs, a)\n\t}\n\tm.ctrl.Call(m, \"PublishLifecycleEvent\", varargs...)\n}",
"func (mmSavePosition *mStoreMockSavePosition) Inspect(f func(t1 pb.TotalPosition)) *mStoreMockSavePosition {\n\tif mmSavePosition.mock.inspectFuncSavePosition != nil {\n\t\tmmSavePosition.mock.t.Fatalf(\"Inspect function is already set for StoreMock.SavePosition\")\n\t}\n\n\tmmSavePosition.mock.inspectFuncSavePosition = f\n\n\treturn mmSavePosition\n}",
"func TestProcessEventFiltering(t *testing.T) {\n\trawEvents := make([]*model.ProcessEvent, 0)\n\thandlers := make([]EventHandler, 0)\n\n\t// The listener should drop unexpected events and not call the EventHandler for it\n\trawEvents = append(rawEvents, model.NewMockedForkEvent(time.Now(), 23, \"/usr/bin/ls\", []string{\"ls\", \"-lah\"}))\n\n\t// Verify that expected events are correctly consumed\n\trawEvents = append(rawEvents, model.NewMockedExecEvent(time.Now(), 23, \"/usr/bin/ls\", []string{\"ls\", \"-lah\"}))\n\thandlers = append(handlers, func(e *model.ProcessEvent) {\n\t\trequire.Equal(t, model.Exec, e.EventType)\n\t\trequire.Equal(t, uint32(23), e.Pid)\n\t})\n\n\trawEvents = append(rawEvents, model.NewMockedExitEvent(time.Now(), 23, \"/usr/bin/ls\", []string{\"ls\", \"-lah\"}, 0))\n\thandlers = append(handlers, func(e *model.ProcessEvent) {\n\t\trequire.Equal(t, model.Exit, e.EventType)\n\t\trequire.Equal(t, uint32(23), e.Pid)\n\t})\n\n\t// To avoid race conditions, all handlers should be assigned during the creation of SysProbeListener\n\tcalledHandlers := 0\n\thandler := func(e *model.ProcessEvent) {\n\t\thandlers[calledHandlers](e)\n\t\tcalledHandlers++\n\t}\n\n\tl, err := NewSysProbeListener(nil, nil, handler)\n\trequire.NoError(t, err)\n\n\tfor _, e := range rawEvents {\n\t\tdata, err := e.MarshalMsg(nil)\n\t\trequire.NoError(t, err)\n\t\tl.consumeData(data)\n\t}\n\tassert.Equal(t, len(handlers), calledHandlers)\n}",
"func (m *StoreMock) MinimockSavePositionInspect() {\n\tfor _, e := range m.SavePositionMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.SavePosition with params: %#v\", *e.params)\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.SavePositionMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterSavePositionCounter) < 1 {\n\t\tif m.SavePositionMock.defaultExpectation.params == nil {\n\t\t\tm.t.Error(\"Expected call to StoreMock.SavePosition\")\n\t\t} else {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.SavePosition with params: %#v\", *m.SavePositionMock.defaultExpectation.params)\n\t\t}\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcSavePosition != nil && mm_atomic.LoadUint64(&m.afterSavePositionCounter) < 1 {\n\t\tm.t.Error(\"Expected call to StoreMock.SavePosition\")\n\t}\n}",
"func (_m *DB) SaveEvent(topic string, eventData interface{}, inTx func() error) error {\n\tret := _m.Called(topic, eventData, inTx)\n\n\tvar r0 error\n\tif rf, ok := ret.Get(0).(func(string, interface{}, func() error) error); ok {\n\t\tr0 = rf(topic, eventData, inTx)\n\t} else {\n\t\tr0 = ret.Error(0)\n\t}\n\n\treturn r0\n}",
"func (m *MockHandler) AddMetricsEvent(ctx context.Context, clusterID strfmt.UUID, hostID *strfmt.UUID, severity, msg string, eventTime time.Time, props ...interface{}) {\n\tm.ctrl.T.Helper()\n\tvarargs := []interface{}{ctx, clusterID, hostID, severity, msg, eventTime}\n\tfor _, a := range props {\n\t\tvarargs = append(varargs, a)\n\t}\n\tm.ctrl.Call(m, \"AddMetricsEvent\", varargs...)\n}",
"func RecordMeasureExistsP(exec boil.Executor, id int) bool {\n\te, err := RecordMeasureExists(exec, id)\n\tif err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n\n\treturn e\n}",
"func (m *MockTChanNode) SetPersistRateLimit(ctx thrift.Context, req *NodeSetPersistRateLimitRequest) (*NodePersistRateLimitResult_, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"SetPersistRateLimit\", ctx, req)\n\tret0, _ := ret[0].(*NodePersistRateLimitResult_)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockBaseStore) EXPECT() *MockBaseStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockSender) AddMetricsEvent(ctx context.Context, clusterID strfmt.UUID, hostID *strfmt.UUID, severity, msg string, eventTime time.Time, props ...interface{}) {\n\tm.ctrl.T.Helper()\n\tvarargs := []interface{}{ctx, clusterID, hostID, severity, msg, eventTime}\n\tfor _, a := range props {\n\t\tvarargs = append(varargs, a)\n\t}\n\tm.ctrl.Call(m, \"AddMetricsEvent\", varargs...)\n}",
"func (_m *MockAggregate) clearUncommittedEvents() {\n\t_m.Called()\n}",
"func (m *MockEventLogger) MetadataLen() int {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"MetadataLen\")\n\tret0, _ := ret[0].(int)\n\treturn ret0\n}",
"func TestEventStore(t *testing.T) {\n\tstartEventstore(t)\n\trabbitEventStore, err := NewRabbitEventStoreClient(&rabbit.CreateClientOption{URL: \"amqp://guest:guest@localhost:5672/\", Queue: \"EventStore\", TimeoutRequest: time.Second})\n\tassertNilError(t, err)\n\n\tid := rabbit.RandomID()\n\tresult, err := rabbitEventStore.RetrieveEvents(&framework.RetrieveEventsOption{AggregateID: id})\n\n\n\tassertNilError(t, err)\n\tif len(result) == 0 {\n\t\tt.Fatal(\"expecting return `result` to be more than 1\")\n\t}\n\n\tif result[0].AggregateID != id {\n\t\tt.Fatalf(\"expecting arrived event an event[0] to have an aggregate id of %s instead got %s\", id, result[0].AggregateID)\n\t}\n\n\tevent, err := rabbitEventStore.CreateEvent(framework.Event{AggregateID: rabbit.RandomID(), AggregateType: 2})\n\tif event.ID == \"\" {\n\t\tt.Fatal(\"expecting `ID` field to exists instead got `nil`\")\n\t}\n\n\tsuccess, err := rabbitEventStore.CreateSnapshot(&framework.CreateSnapshotOption{AggregateID: rabbit.RandomID(), AggregateVersion: 1, AggregateType: 100})\n\tif success != true {\n\t\tt.Fatalf(\"expecting `success` to be `true` but got %v\", success)\n\t}\n\n\tsnapshot, err := rabbitEventStore.RetrieveSnapshot(&framework.RetrieveSnapshotOption{AggregateType: 100, AggregateID: id})\n\tif snapshot.AggregateID != id {\n\t\tt.Fatalf(\"expecting aggregate id to equal to %q instead got %q\", id, snapshot.AggregateID)\n\t}\n}",
"func (m *MockBaseEvent) EXPECT() *MockBaseEventMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStreamEventListener) OnDestroyStream() {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"OnDestroyStream\")\n}",
"func Test_Stat(t *testing.T) {\n\tConvey(\"AddIncrStatistics\", t, func() {\n\t\tvar (\n\t\t\tc = context.TODO()\n\t\t\terr error\n\t\t)\n\t\tstat := &model.Statistics{\n\t\t\tTargetMid: 1,\n\t\t\tTargetID: 1,\n\t\t\tEventID: 1,\n\t\t\tState: 0,\n\t\t\tType: 1,\n\t\t\tQuantity: 1,\n\t\t\tCtime: time.Now(),\n\t\t}\n\t\t_, err = d.AddIncrStatistics(c, stat)\n\t\tSo(err, ShouldBeNil)\n\t})\n\tConvey(\"AddStatistics\", t, func() {\n\t\tvar (\n\t\t\tc = context.TODO()\n\t\t\terr error\n\t\t)\n\t\tstat := &model.Statistics{\n\t\t\tTargetMid: 1,\n\t\t\tTargetID: 1,\n\t\t\tEventID: 2,\n\t\t\tState: 0,\n\t\t\tType: 1,\n\t\t\tQuantity: 1,\n\t\t\tCtime: time.Now(),\n\t\t}\n\t\tstat.Quantity = 3\n\t\t_, err = d.AddStatistics(c, stat)\n\t\tSo(err, ShouldBeNil)\n\t})\n}",
"func (m *MockEventDao) EXPECT() *MockEventDaoMockRecorder {\n\treturn m.recorder\n}",
"func TestProtoStreamLargeEvent(t *testing.T) {\n\ttests := []struct {\n\t\tname string\n\t\tevent apievents.AuditEvent\n\t\terrAssertion require.ErrorAssertionFunc\n\t}{\n\t\t{\n\t\t\tname: \"large trimmable event is trimmed\",\n\t\t\tevent: makeQueryEvent(\"1\", strings.Repeat(\"A\", events.MaxProtoMessageSizeBytes)),\n\t\t\terrAssertion: require.NoError,\n\t\t},\n\t\t{\n\t\t\tname: \"large untrimmable event returns error\",\n\t\t\tevent: makeAccessRequestEvent(\"1\", strings.Repeat(\"A\", events.MaxProtoMessageSizeBytes)),\n\t\t\terrAssertion: require.Error,\n\t\t},\n\t}\n\n\tctx := context.Background()\n\n\tstreamer, err := events.NewProtoStreamer(events.ProtoStreamerConfig{\n\t\tUploader: eventstest.NewMemoryUploader(nil),\n\t})\n\trequire.NoError(t, err)\n\n\tstream, err := streamer.CreateAuditStream(ctx, session.ID(\"1\"))\n\trequire.NoError(t, err)\n\n\tfor _, test := range tests {\n\t\tt.Run(test.name, func(t *testing.T) {\n\t\t\ttest.errAssertion(t, stream.RecordEvent(ctx, eventstest.PrepareEvent(test.event)))\n\t\t})\n\t}\n\trequire.NoError(t, stream.Complete(ctx))\n}",
"func MockEvents() []optic.Event {\n\tevents := make([]optic.Event, 0)\n\tevents = append(events, TestRaw([]byte(\"raw\")))\n\tevents = append(events, TestMetric(1.0))\n\tevents = append(events, TestLogLine(\"logline\"))\n\treturn events\n}",
"func (m *MockTracks) Store(t app.Track) (int64, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Store\", t)\n\tret0, _ := ret[0].(int64)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func TestEvents(t *testing.T) {\n\tti := tInfo{}\n\tAssertOk(t, ti.setup(t), \"failed to setup test\")\n\tdefer ti.teardown()\n\n\t// uuid to make each source unique\n\tcomponentID := uuid.NewV4().String()\n\n\t// create recorder events directory\n\trecorderEventsDir, err := ioutil.TempDir(\"\", \"\")\n\tAssertOk(t, err, \"failed to create recorder events directory\")\n\tdefer os.RemoveAll(recorderEventsDir)\n\n\t// create recorder\n\tevtsRecorder, err := recorder.NewRecorder(&recorder.Config{\n\t\tComponent: componentID,\n\t\tEvtsProxyURL: ti.evtProxyServices.EvtsProxy.RPCServer.GetListenURL(),\n\t\tBackupDir: recorderEventsDir}, ti.logger)\n\tAssertOk(t, err, \"failed to create events recorder\")\n\tdefer evtsRecorder.Close()\n\n\t// send events (recorder -> proxy -> dispatcher -> writer -> evtsmgr -> elastic)\n\tevtsRecorder.Event(eventtypes.SERVICE_STARTED, \"test event - 1\", nil)\n\tevtsRecorder.Event(eventtypes.SERVICE_RUNNING, \"test event - 2\", nil)\n\n\ttime.Sleep(1 * time.Second)\n\n\t// verify that it has reached elasticsearch; these are the first occurrences of an event\n\t// so it should have reached elasticsearch without being de-duped.\n\tquery := es.NewBoolQuery().Must(es.NewMatchQuery(\"source.component\", componentID),\n\t\tes.NewTermQuery(\"type.keyword\", eventtypes.SERVICE_STARTED.String()))\n\tti.assertElasticUniqueEvents(t, query, true, 1, \"4s\") // unique == 1\n\tti.assertElasticTotalEvents(t, query, true, 1, \"4s\") // total == 1\n\tquery = es.NewBoolQuery().Must(es.NewMatchQuery(\"source.component\", componentID),\n\t\tes.NewMatchQuery(\"message\", \"test event -2\").Operator(\"and\"))\n\tti.assertElasticUniqueEvents(t, query, true, 1, \"4s\") // unique == 1\n\tti.assertElasticTotalEvents(t, query, true, 1, \"4s\") // total == 1\n\n\t// send duplicates and check whether they're compressed\n\tnumDuplicates := 25\n\tfor i := 0; i < numDuplicates; i++ {\n\t\tevtsRecorder.Event(eventtypes.SERVICE_STARTED, \"test dup event - 1\", nil)\n\t\tevtsRecorder.Event(eventtypes.SERVICE_RUNNING, \"test dup event - 2\", nil)\n\t}\n\n\t// ensure the de-duped events reached elasticsearch\n\t// test duplicate event - 1\n\tquery = es.NewBoolQuery().Must(es.NewMatchQuery(\"source.component\", componentID),\n\t\tes.NewMatchQuery(\"message\", \"test dup event - 1\").Operator(\"and\"))\n\tti.assertElasticUniqueEvents(t, query, true, 1, \"4s\") // unique == 1\n\tti.assertElasticTotalEvents(t, query, true, numDuplicates, \"2s\") // total == numDuplicates\n\n\t// test duplicate event - 2\n\tquery = es.NewBoolQuery().Must(es.NewMatchQuery(\"source.component\", componentID),\n\t\tes.NewMatchQuery(\"message\", \"test dup event - 2\").Operator(\"and\"))\n\tti.assertElasticUniqueEvents(t, query, true, 1, \"4s\") // unique == 1\n\tti.assertElasticTotalEvents(t, query, true, numDuplicates, \"2s\") // total == numDuplicates\n\n\t// create test NIC object\n\ttestNIC := policygen.CreateSmartNIC(\"00-14-22-01-23-45\",\n\t\tcluster.DistributedServiceCardStatus_ADMITTED.String(),\n\t\t\"esx-1\",\n\t\t&cluster.DSCCondition{\n\t\t\tType: cluster.DSCCondition_HEALTHY.String(),\n\t\t\tStatus: cluster.ConditionStatus_FALSE.String(),\n\t\t})\n\n\t// record events with reference object\n\tfor i := 0; i < numDuplicates; i++ {\n\t\tevtsRecorder.Event(eventtypes.SERVICE_STARTED, \"test dup event - 1\", testNIC)\n\t\tevtsRecorder.Event(eventtypes.SERVICE_RUNNING, \"test dup event - 2\", testNIC)\n\t}\n\n\t// query by kind\n\tqueryByKind := es.NewTermQuery(\"object-ref.kind.keyword\", testNIC.GetKind())\n\tti.assertElasticUniqueEvents(t, queryByKind, true, 2, \"4s\") // unique == 2 (eventType1 and eventType2)\n\tti.assertElasticTotalEvents(t, queryByKind, true, numDuplicates*2, \"4s\") // total == numDuplicates\n}",
"func (m *MockStreamEventListener) EXPECT() *MockStreamEventListenerMockRecorder {\n\treturn m.recorder\n}",
"func (_m *MockTimelineProvider) EXPECT() *MockTimelineProviderMockRecorder {\n\treturn _m.recorder\n}",
"func (m *MockEventRepository) EXPECT() *MockEventRepositoryMockRecorder {\n\treturn m.recorder\n}",
"func TestBenchmarkBatchReadSize(t *testing.T) {\n\tif !*benchTest {\n\t\tt.Skip(\"-benchtest not enabled\")\n\t}\n\n\tlog, err := initLog(providerName, sourceName, eventCreateMsgFile)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tdefer func() {\n\t\terr := uninstallLog(providerName, sourceName, log)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t}()\n\n\t// Increase the log size so that it can hold these large events.\n\toutput, err := exec.Command(\"wevtutil.exe\", \"sl\", \"/ms:1073741824\", providerName).CombinedOutput()\n\tif err != nil {\n\t\tt.Fatal(err, string(output))\n\t}\n\n\t// Publish test messages:\n\tfor i := 0; i < *injectAmount; i++ {\n\t\terr = log.Report(elog.Info, uint32(rng.Int63()%1000), []string{strconv.Itoa(i) + \" \" + randString(256)})\n\t\tif err != nil {\n\t\t\tt.Fatal(\"ReportEvent error\", err)\n\t\t}\n\t}\n\n\tsetup := func(t testing.TB, batchReadSize int) (EventLog, func()) {\n\t\teventlog, err := newWinEventLog(map[string]interface{}{\"name\": providerName, \"batch_read_size\": batchReadSize})\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\terr = eventlog.Open(0)\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t}\n\t\treturn eventlog, func() {\n\t\t\terr := eventlog.Close()\n\t\t\tif err != nil {\n\t\t\t\tt.Fatal(err)\n\t\t\t}\n\t\t}\n\t}\n\n\tbenchTest := func(batchSize int) {\n\t\tvar err error\n\t\tresult := testing.Benchmark(func(b *testing.B) {\n\t\t\teventlog, tearDown := setup(b, batchSize)\n\t\t\tdefer tearDown()\n\t\t\tb.ResetTimer()\n\n\t\t\t// Each iteration reads one batch.\n\t\t\tfor i := 0; i < b.N; i++ {\n\t\t\t\t_, err = eventlog.Read()\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\tif err != nil {\n\t\t\tt.Fatal(err)\n\t\t\treturn\n\t\t}\n\n\t\tt.Logf(\"batch_size=%v, total_events=%v, batch_time=%v, events_per_sec=%v, bytes_alloced_per_event=%v, total_allocs=%v\",\n\t\t\tbatchSize,\n\t\t\tresult.N*batchSize,\n\t\t\ttime.Duration(result.NsPerOp()),\n\t\t\tfloat64(batchSize)/time.Duration(result.NsPerOp()).Seconds(),\n\t\t\thumanize.Bytes(result.MemBytes/(uint64(result.N)*uint64(batchSize))),\n\t\t\tresult.MemAllocs)\n\t}\n\n\tbenchTest(10)\n\tbenchTest(100)\n\tbenchTest(500)\n\tbenchTest(1000)\n}",
"func (m *MockEventManager) EXPECT() *MockEventManagerMockRecorder {\n\treturn m.recorder\n}",
"func (suite *EventLogTestSuite) TestWrite_GetEventCountWithAuditSuccess() {\n\ttimeStamp := \"15:04:05\"\n\n\tinputFiles := []string{\n\t\tsuite.EventLog.eventLogName + suite.EventLog.fileDelimiter + \"2020-03-01\",\n\t\tsuite.EventLog.eventLogName + suite.EventLog.fileDelimiter + \"2020-03-02\",\n\t}\n\tdefer func() {\n\t\tfor _, fileName := range inputFiles {\n\t\t\tos.Remove(filepath.Join(suite.EventLog.eventLogPath, fileName))\n\t\t}\n\t}()\n\tinput := \"SchemaVersion=1\\nEventType1 TestEvent1 2.0.0.1 \" + timeStamp + \"\\nEventType1 TestEvent1\\nEventType1 TestEvent1 2.0.0.1 \" + timeStamp + \"\\n\"\n\tfor _, fileName := range inputFiles {\n\t\tsuite.EventLog.fileSystem.AppendToFile(filepath.Join(suite.EventLog.eventLogPath, fileName), input, 0600)\n\t}\n\tbyteMarker := fmt.Sprintf(\"%0\"+strconv.Itoa(BytePatternLen)+\"d\", len(input))\n\tsuite.EventLog.fileSystem.AppendToFile(filepath.Join(suite.EventLog.eventLogPath, inputFiles[0]), AuditSentSuccessFooter+byteMarker, 0600)\n\teventCounts, err := GetEventCounter()\n\tassert.Equal(suite.T(), 1, len(eventCounts))\n\tassert.Nil(suite.T(), err)\n\tassert.Equal(suite.T(), 2, eventCounts[0].CountMap[\"TestEvent1\"])\n}",
"func handleTestEvent(c *Consumer, mt *msgtracker, expCnt int, ev Event) bool {\n\tswitch e := ev.(type) {\n\tcase *Message:\n\t\tif e.TopicPartition.Error != nil {\n\t\t\tmt.t.Errorf(\"Error: %v\", e.TopicPartition)\n\t\t}\n\t\tmt.msgs[mt.msgcnt] = e\n\t\tmt.msgcnt++\n\t\tif mt.msgcnt >= int64(expCnt) {\n\t\t\treturn false\n\t\t}\n\tcase PartitionEOF:\n\t\tbreak // silence\n\tdefault:\n\t\tmt.t.Fatalf(\"Consumer error: %v\", e)\n\t}\n\treturn true\n\n}",
"func (m *MockTimeLogStore) EXPECT() *MockTimeLogStoreMockRecorder {\n\treturn m.recorder\n}",
"func (_m *RunInterface) CreateLastEvent() (int, error) {\n\tret := _m.Called()\n\n\tvar r0 int\n\tif rf, ok := ret.Get(0).(func() int); ok {\n\t\tr0 = rf()\n\t} else {\n\t\tr0 = ret.Get(0).(int)\n\t}\n\n\tvar r1 error\n\tif rf, ok := ret.Get(1).(func() error); ok {\n\t\tr1 = rf()\n\t} else {\n\t\tr1 = ret.Error(1)\n\t}\n\n\treturn r0, r1\n}",
"func (m *MockListener) Modify(listener api.Listener) (api.Listener, error) {\n\tret := m.ctrl.Call(m, \"Modify\", listener)\n\tret0, _ := ret[0].(api.Listener)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockVolumeMgr) EXPECT() *MockVolumeMgrMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockPersister) EXPECT() *MockPersisterMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockNotificationEventDao) EXPECT() *MockNotificationEventDaoMockRecorder {\n\treturn m.recorder\n}",
"func (suite *EventLogTestSuite) TestWrite_GetEventCount() {\n\ttimeStamp := \"15:04:05\"\n\tinputFiles := []string{\n\t\tsuite.EventLog.eventLogName + suite.EventLog.fileDelimiter + \"2020-03-01\",\n\t\tsuite.EventLog.eventLogName + suite.EventLog.fileDelimiter + \"2020-03-02\",\n\t}\n\tdefer func() {\n\t\tfor _, fileName := range inputFiles {\n\t\t\tos.Remove(filepath.Join(suite.EventLog.eventLogPath, fileName))\n\t\t}\n\t}()\n\tfor _, fileName := range inputFiles {\n\t\tsuite.EventLog.fileSystem.AppendToFile(filepath.Join(suite.EventLog.eventLogPath, fileName), \"SchemaVersion=1\\nEventType1 TestEvent1 2.0.0.1 \"+timeStamp+\"\\nEventType1 TestEvent1\\nEventType1 TestEvent1 2.0.0.2 \"+timeStamp+\"\\n\", 0600)\n\t}\n\teventCounts, err := GetEventCounter()\n\tassert.Equal(suite.T(), 4, len(eventCounts))\n\tassert.Nil(suite.T(), err)\n\tassert.Equal(suite.T(), 1, eventCounts[0].CountMap[\"TestEvent1\"])\n\tassert.Equal(suite.T(), 1, eventCounts[1].CountMap[\"TestEvent1\"])\n}",
"func TestPodDeletionEvent(t *testing.T) {\n\tf := func(path cmp.Path) bool {\n\t\tswitch path.String() {\n\t\t// These fields change at runtime, so ignore it\n\t\tcase \"LastTimestamp\", \"FirstTimestamp\", \"ObjectMeta.Name\":\n\t\t\treturn true\n\t\t}\n\t\treturn false\n\t}\n\n\tt.Run(\"emitPodDeletionEvent\", func(t *testing.T) {\n\t\tcontroller := &NoExecuteTaintManager{}\n\t\trecorder := testutil.NewFakeRecorder()\n\t\tcontroller.recorder = recorder\n\t\tcontroller.emitPodDeletionEvent(types.NamespacedName{\n\t\t\tName: \"test\",\n\t\t\tNamespace: \"test\",\n\t\t})\n\t\twant := []*v1.Event{\n\t\t\t{\n\t\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t},\n\t\t\t\tInvolvedObject: v1.ObjectReference{\n\t\t\t\t\tKind: \"Pod\",\n\t\t\t\t\tAPIVersion: \"v1\",\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t\tName: \"test\",\n\t\t\t\t},\n\t\t\t\tReason: \"TaintManagerEviction\",\n\t\t\t\tType: \"Normal\",\n\t\t\t\tCount: 1,\n\t\t\t\tMessage: \"Marking for deletion Pod test/test\",\n\t\t\t\tSource: v1.EventSource{Component: \"nodeControllerTest\"},\n\t\t\t},\n\t\t}\n\t\tif diff := cmp.Diff(want, recorder.Events, cmp.FilterPath(f, cmp.Ignore())); len(diff) > 0 {\n\t\t\tt.Errorf(\"emitPodDeletionEvent() returned data (-want,+got):\\n%s\", diff)\n\t\t}\n\t})\n\n\tt.Run(\"emitCancelPodDeletionEvent\", func(t *testing.T) {\n\t\tcontroller := &NoExecuteTaintManager{}\n\t\trecorder := testutil.NewFakeRecorder()\n\t\tcontroller.recorder = recorder\n\t\tcontroller.emitCancelPodDeletionEvent(types.NamespacedName{\n\t\t\tName: \"test\",\n\t\t\tNamespace: \"test\",\n\t\t})\n\t\twant := []*v1.Event{\n\t\t\t{\n\t\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t},\n\t\t\t\tInvolvedObject: v1.ObjectReference{\n\t\t\t\t\tKind: \"Pod\",\n\t\t\t\t\tAPIVersion: \"v1\",\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t\tName: \"test\",\n\t\t\t\t},\n\t\t\t\tReason: \"TaintManagerEviction\",\n\t\t\t\tType: \"Normal\",\n\t\t\t\tCount: 1,\n\t\t\t\tMessage: \"Cancelling deletion of Pod test/test\",\n\t\t\t\tSource: v1.EventSource{Component: \"nodeControllerTest\"},\n\t\t\t},\n\t\t}\n\t\tif diff := cmp.Diff(want, recorder.Events, cmp.FilterPath(f, cmp.Ignore())); len(diff) > 0 {\n\t\t\tt.Errorf(\"emitPodDeletionEvent() returned data (-want,+got):\\n%s\", diff)\n\t\t}\n\t})\n}",
"func (m *MockCallback) OnPublish(arg0 *pubdata.Paragraph) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"OnPublish\", arg0)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func (m *MockLifecycle) EXPECT() *MockLifecycleMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockTenantServiceVolumeDao) EXPECT() *MockTenantServiceVolumeDaoMockRecorder {\n\treturn m.recorder\n}",
"func (mmSaveOrderWithExpiration *mStoreMockSaveOrderWithExpiration) Inspect(f func(order pb.Order, expiration time.Duration)) *mStoreMockSaveOrderWithExpiration {\n\tif mmSaveOrderWithExpiration.mock.inspectFuncSaveOrderWithExpiration != nil {\n\t\tmmSaveOrderWithExpiration.mock.t.Fatalf(\"Inspect function is already set for StoreMock.SaveOrderWithExpiration\")\n\t}\n\n\tmmSaveOrderWithExpiration.mock.inspectFuncSaveOrderWithExpiration = f\n\n\treturn mmSaveOrderWithExpiration\n}",
"func (m *MockParticipantStore) EXPECT() *MockParticipantStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockMutantStorage) Save(val *storage.MutantDoc) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Save\", val)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}",
"func MockConsensusEvent(hash []byte, round uint64, step uint8, keys []key.ConsensusKeys, p *user.Provisioners, i ...int) consensus.Event {\n\taev := MockAgreementEvent(hash, round, step, keys, p, i...)\n\thdr := aev.Header\n\n\tbuf := new(bytes.Buffer)\n\t_ = Marshal(buf, *aev)\n\n\treturn consensus.Event{\n\t\tHeader: hdr,\n\t\tPayload: *buf,\n\t}\n}",
"func (m *MockFlushTimesManager) EXPECT() *MockFlushTimesManagerMockRecorder {\n\treturn m.recorder\n}",
"func TestBatchOnDownloadEventFailure(t *testing.T) {\n\tbatch := Batch{&mocks.FailingWriter{}}\n\terr := batch.OnDownloadEvent(&spec.Measurement{})\n\tif err != mocks.ErrMocked {\n\t\tt.Fatal(\"Not the error we expected\")\n\t}\n}",
"func (p *Policy) OnPersist(ic *interop.Context) error {\n\treturn nil\n}",
"func MockOnInsertVirtualMedia(ctx context.Context, mockAPI *redfishMocks.RedfishAPI,\n\tmanagerID string, virtualMediaID string, redfishErr redfishClient.RedfishError,\n\thttpResponse *http.Response, err error) {\n\tmediaRequest := redfishClient.ApiInsertVirtualMediaRequest{}\n\tmockAPI.On(\"InsertVirtualMedia\", ctx, managerID, virtualMediaID).Return(mediaRequest).Times(1)\n\tmockAPI.On(\"InsertVirtualMediaExecute\", mock.Anything).Return(redfishErr, httpResponse, err).Times(1)\n}",
"func TestContainerConsumedStats(t *testing.T) {\n\tt.Logf(\"Create a pod config and run sandbox container\")\n\tsb, sbConfig := PodSandboxConfigWithCleanup(t, \"sandbox1\", \"stats\")\n\n\ttestImage := images.Get(images.ResourceConsumer)\n\tEnsureImageExists(t, testImage)\n\n\tt.Logf(\"Create a container config and run container in a pod\")\n\tcontainerConfig := ContainerConfig(\n\t\t\"container1\",\n\t\ttestImage,\n\t\tWithTestLabels(),\n\t\tWithTestAnnotations(),\n\t)\n\tcn, err := runtimeService.CreateContainer(sb, containerConfig, sbConfig)\n\trequire.NoError(t, err)\n\tdefer func() {\n\t\tassert.NoError(t, runtimeService.RemoveContainer(cn))\n\t}()\n\trequire.NoError(t, runtimeService.StartContainer(cn))\n\tdefer func() {\n\t\tassert.NoError(t, runtimeService.StopContainer(cn, 10))\n\t}()\n\n\tt.Logf(\"Fetch initial stats for container\")\n\tvar s *runtime.ContainerStats\n\trequire.NoError(t, Eventually(func() (bool, error) {\n\t\ts, err = runtimeService.ContainerStats(cn)\n\t\tif err != nil {\n\t\t\treturn false, err\n\t\t}\n\t\tif goruntime.GOOS == \"windows\" {\n\t\t\tif s.GetMemory().GetWorkingSetBytes().GetValue() > 0 {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t} else {\n\t\t\tif s.GetWritableLayer().GetTimestamp() > 0 {\n\t\t\t\treturn true, nil\n\t\t\t}\n\t\t}\n\t\treturn false, nil\n\t}, time.Second, 30*time.Second))\n\n\tinitialMemory := s.GetMemory().GetWorkingSetBytes().GetValue()\n\tt.Logf(\"Initial container memory consumption is %f MB. Consume 100 MB and expect the reported stats to increase accordingly\", float64(initialMemory)/(1024*1024))\n\n\t// consume 100 MB memory for 30 seconds.\n\tvar command []string\n\tif goruntime.GOOS == \"windows\" {\n\t\t// -d: Leak and touch memory in specified MBs\n\t\t// -c: Count of number of objects to allocate\n\t\tcommand = []string{\"testlimit.exe\", \"-accepteula\", \"-d\", \"25\", \"-c\", \"4\"}\n\t} else {\n\t\tcommand = []string{\"stress\", \"-m\", \"1\", \"--vm-bytes\", \"100M\", \"--vm-hang\", \"0\", \"-t\", \"30\"}\n\t}\n\n\tgo func() {\n\t\t_, _, err = runtimeService.ExecSync(cn, command, 30*time.Second)\n\t}()\n\n\trequire.NoError(t, Eventually(func() (bool, error) {\n\t\ts, err = runtimeService.ContainerStats(cn)\n\t\tif err != nil {\n\t\t\treturn false, err\n\t\t}\n\t\tif s.GetMemory().GetWorkingSetBytes().GetValue() > initialMemory+100*1024*1024 {\n\t\t\treturn true, nil\n\t\t}\n\t\treturn false, nil\n\t}, time.Second, 30*time.Second))\n}",
"func TestBatchOnDownloadEvent(t *testing.T) {\n\tsw := &mocks.SavingWriter{}\n\tbatch := Batch{sw}\n\terr := batch.OnDownloadEvent(&spec.Measurement{\n\t\tBBRInfo: spec.BBRInfo{\n\t\t\tMaxBandwidth: 6400000,\n\t\t\tMinRTT: 71,\n\t\t},\n\t\tDirection: \"download\",\n\t\tElapsed: 4,\n\t\tOrigin: \"server\",\n\t\tTCPInfo: spec.TCPInfo{\n\t\t\tRTTVar: 11,\n\t\t\tSmoothedRTT: 150,\n\t\t},\n\t})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif len(sw.Data) != 1 {\n\t\tt.Fatal(\"invalid length\")\n\t}\n\tvar event struct {\n\t\tKey string `json:\"key\"`\n\t\tValue struct {\n\t\t\tBBRInfo struct {\n\t\t\t\tMaxBandwidth int64 `json:\"max_bandwidth\"`\n\t\t\t\tMinRTT float64 `json:\"min_rtt\"`\n\t\t\t} `json:\"bbr_info\"`\n\t\t\tDirection string `json:\"direction\"`\n\t\t\tElapsed float64 `json:\"elapsed\"`\n\t\t\tOrigin string `json:\"origin\"`\n\t\t\tTCPInfo struct {\n\t\t\t\tSmoothedRTT float64 `json:\"smoothed_rtt\"`\n\t\t\t\tRTTVar float64 `json:\"rtt_var\"`\n\t\t\t} `json:\"tcp_info\"`\n\t\t} `json:\"value\"`\n\t}\n\terr = json.Unmarshal(sw.Data[0], &event)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif event.Key != \"measurement\" {\n\t\tt.Fatal(\"Unexpected event key\")\n\t}\n\tif event.Value.BBRInfo.MaxBandwidth != 6400000 {\n\t\tt.Fatal(\"Unexpected max bandwidth field value\")\n\t}\n\tif event.Value.BBRInfo.MinRTT != 71 {\n\t\tt.Fatal(\"Unexpected min rtt field value\")\n\t}\n\tif event.Value.Direction != \"download\" {\n\t\tt.Fatal(\"Unexpected direction field value\")\n\t}\n\tif event.Value.Elapsed != 4.0 {\n\t\tt.Fatal(\"Unexpected elapsed field value\")\n\t}\n\tif event.Value.Origin != \"server\" {\n\t\tt.Fatal(\"Unexpected origin field value\")\n\t}\n\tif event.Value.TCPInfo.SmoothedRTT != 150.0 {\n\t\tt.Fatal(\"Unexpected smoothed rtt field value\")\n\t}\n\tif event.Value.TCPInfo.RTTVar != 11.0 {\n\t\tt.Fatal(\"Unexpected rtt var value\")\n\t}\n}",
"func (m *MockStorageMetrics) EXPECT() *MockStorageMetricsMockRecorder {\n\treturn m.recorder\n}",
"func MockEmitter(consTimeout time.Duration) *Emitter {\n\teb := eventbus.New()\n\trpc := rpcbus.New()\n\tkeys := key.NewRandKeys()\n\n\treturn &Emitter{\n\t\tEventBus: eb,\n\t\tRPCBus: rpc,\n\t\tKeys: keys,\n\t\tTimerLength: consTimeout,\n\t}\n}",
"func (m *MockStream) AddEventListener(streamEventListener types.StreamEventListener) {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"AddEventListener\", streamEventListener)\n}",
"func TestBaseAggregateIgnoreUnmappedEvents(t *testing.T) {\n\tinstance := &SimpleAggregate{}\n\tstore := NewNullStore()\n\tinstance.Initialize(\"dummy-key\", counterRegistry, store)\n\tinstance.Refresh()\n\n\t// Apply our unknown event\n\tinstance.ApplyEvent(UnknownEventTypeExample{})\n\n\tassert.Equal(t, int64(1), instance.SequenceNumber(), \"The aggregate sequence number should be 1\")\n\tassert.Equal(t, 0, instance.TargetValue, \"The aggregate target value should be 0\")\n}",
"func MockOnEjectVirtualMedia(ctx context.Context, mockAPI *redfishMocks.RedfishAPI,\n\tmanagerID string, virtualMediaID string, redfishErr redfishClient.RedfishError,\n\thttpResponse *http.Response, err error) {\n\tmediaRequest := redfishClient.ApiEjectVirtualMediaRequest{}\n\tmockAPI.On(\"EjectVirtualMedia\", ctx, managerID, virtualMediaID).Return(mediaRequest).Times(1)\n\tmockAPI.On(\"EjectVirtualMediaExecute\", mock.Anything).Return(redfishErr, httpResponse, err).Times(1)\n}",
"func (m *MockWindowItem) EventTime() time.Time {\n\tret := m.ctrl.Call(m, \"EventTime\")\n\tret0, _ := ret[0].(time.Time)\n\treturn ret0\n}",
"func (mmUpdate *mStorageMockUpdate) When(ctx context.Context, pulse insolar.PulseNumber, actual bool, ids ...insolar.JetID) *StorageMockUpdateExpectation {\n\tif mmUpdate.mock.funcUpdate != nil {\n\t\tmmUpdate.mock.t.Fatalf(\"StorageMock.Update mock is already set by Set\")\n\t}\n\n\texpectation := &StorageMockUpdateExpectation{\n\t\tmock: mmUpdate.mock,\n\t\tparams: &StorageMockUpdateParams{ctx, pulse, actual, ids},\n\t}\n\tmmUpdate.expectations = append(mmUpdate.expectations, expectation)\n\treturn expectation\n}",
"func (m *StoreMock) MinimockGetPositionInspect() {\n\tfor _, e := range m.GetPositionMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.GetPosition with params: %#v\", *e.params)\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.GetPositionMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterGetPositionCounter) < 1 {\n\t\tif m.GetPositionMock.defaultExpectation.params == nil {\n\t\t\tm.t.Error(\"Expected call to StoreMock.GetPosition\")\n\t\t} else {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.GetPosition with params: %#v\", *m.GetPositionMock.defaultExpectation.params)\n\t\t}\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcGetPosition != nil && mm_atomic.LoadUint64(&m.afterGetPositionCounter) < 1 {\n\t\tm.t.Error(\"Expected call to StoreMock.GetPosition\")\n\t}\n}",
"func (mmGetPosition *mStoreMockGetPosition) When(account string, contractID string) *StoreMockGetPositionExpectation {\n\tif mmGetPosition.mock.funcGetPosition != nil {\n\t\tmmGetPosition.mock.t.Fatalf(\"StoreMock.GetPosition mock is already set by Set\")\n\t}\n\n\texpectation := &StoreMockGetPositionExpectation{\n\t\tmock: mmGetPosition.mock,\n\t\tparams: &StoreMockGetPositionParams{account, contractID},\n\t}\n\tmmGetPosition.expectations = append(mmGetPosition.expectations, expectation)\n\treturn expectation\n}",
"func (m *MockTimeLogStore) Save(ctx context.Context, timelog domain.TimeLog) (domain.TimeLog, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Save\", ctx, timelog)\n\tret0, _ := ret[0].(domain.TimeLog)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (m *MockEvent) EXPECT() *MockEventMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockCache) Evict() {\n\tm.ctrl.T.Helper()\n\tm.ctrl.Call(m, \"Evict\")\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockStore) EXPECT() *MockStoreMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockTenantServiceScalingRecordsDao) EXPECT() *MockTenantServiceScalingRecordsDaoMockRecorder {\n\treturn m.recorder\n}",
"func (m *MockEventRepository) Find(arg0 sweeper.Snowflake) (*sweeper.Event, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Find\", arg0)\n\tret0, _ := ret[0].(*sweeper.Event)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (suite *HostCacheTestSuite) TestMesosHostSummaryHandlePodEvent() {\n\tms := newMesosHostSummary(_hostname, _version).(*mesosHostSummary)\n\tsuite.NoError(ms.HandlePodEvent(nil))\n}",
"func (mmForID *mStorageMockForID) Inspect(f func(ctx context.Context, pulse insolar.PulseNumber, recordID insolar.ID)) *mStorageMockForID {\n\tif mmForID.mock.inspectFuncForID != nil {\n\t\tmmForID.mock.t.Fatalf(\"Inspect function is already set for StorageMock.ForID\")\n\t}\n\n\tmmForID.mock.inspectFuncForID = f\n\n\treturn mmForID\n}"
] | [
"0.6254497",
"0.5508428",
"0.54259765",
"0.5408251",
"0.52503395",
"0.5178116",
"0.51308846",
"0.5128791",
"0.51211876",
"0.50813055",
"0.50492454",
"0.5046617",
"0.50455886",
"0.5041541",
"0.5028739",
"0.5026563",
"0.5023276",
"0.5001246",
"0.5001242",
"0.4974072",
"0.4971868",
"0.496758",
"0.49412936",
"0.493465",
"0.490389",
"0.4888933",
"0.48672798",
"0.48532167",
"0.48452875",
"0.48366097",
"0.48363107",
"0.48088834",
"0.48047718",
"0.47904375",
"0.47866106",
"0.47809067",
"0.4777122",
"0.4752711",
"0.47504574",
"0.47425923",
"0.47204527",
"0.4707343",
"0.47013775",
"0.4698096",
"0.4697952",
"0.46966332",
"0.46948856",
"0.4687357",
"0.4680491",
"0.4678149",
"0.46769008",
"0.46707755",
"0.46682584",
"0.46615633",
"0.46564782",
"0.46557498",
"0.46443418",
"0.4641598",
"0.4639109",
"0.4633924",
"0.46299562",
"0.46205127",
"0.46167037",
"0.46150872",
"0.46135047",
"0.4607031",
"0.46056014",
"0.46008494",
"0.45991218",
"0.4597983",
"0.45860052",
"0.45764196",
"0.45723617",
"0.45675305",
"0.4563116",
"0.45629445",
"0.45621228",
"0.45605224",
"0.45597714",
"0.45572105",
"0.45553538",
"0.45505324",
"0.4548181",
"0.45432818",
"0.4542894",
"0.4534126",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45325652",
"0.45299014",
"0.45297113",
"0.45208275",
"0.45205492"
] | 0.7764278 | 0 |
MeasurePersistEvent indicates an expected call of MeasurePersistEvent | func (mr *MockStorageMetricsMockRecorder) MeasurePersistEvent(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MeasurePersistEvent", reflect.TypeOf((*MockStorageMetrics)(nil).MeasurePersistEvent), arg0)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m *MockStorageMetrics) MeasurePersistEvent(arg0 func() (*spec.Event, error)) (*spec.Event, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"MeasurePersistEvent\", arg0)\n\tret0, _ := ret[0].(*spec.Event)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}",
"func (mr *MockTChanNodeMockRecorder) GetPersistRateLimit(ctx interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetPersistRateLimit\", reflect.TypeOf((*MockTChanNode)(nil).GetPersistRateLimit), ctx)\n}",
"func RecordMeasureExistsP(exec boil.Executor, id int) bool {\n\te, err := RecordMeasureExists(exec, id)\n\tif err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n\n\treturn e\n}",
"func (mr *MockUserRepositoryMockRecorder) Persist(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Persist\", reflect.TypeOf((*MockUserRepository)(nil).Persist), arg0)\n}",
"func (mr *MockTChanNodeMockRecorder) SetPersistRateLimit(ctx, req interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SetPersistRateLimit\", reflect.TypeOf((*MockTChanNode)(nil).SetPersistRateLimit), ctx, req)\n}",
"func (e *Engine) shouldPersist() bool {\n\treturn e.isLeader == 1\n}",
"func RecordMeasureExistsGP(id int) bool {\n\te, err := RecordMeasureExists(boil.GetDB(), id)\n\tif err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n\n\treturn e\n}",
"func (mr *MockRunOptionsMockRecorder) PersistConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"PersistConfig\", reflect.TypeOf((*MockRunOptions)(nil).PersistConfig))\n}",
"func (p *Policy) OnPersist(ic *interop.Context) error {\n\treturn nil\n}",
"func (mr *MockRunOptionsMockRecorder) SetPersistConfig(value interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SetPersistConfig\", reflect.TypeOf((*MockRunOptions)(nil).SetPersistConfig), value)\n}",
"func TestTrimMeasurementHistory(t *testing.T) {\n\tf := newFixture(t)\n\tdefer f.Close()\n\tc, _, _ := f.newController(noResyncPeriodFunc)\n\n\tf.provider.On(\"GarbageCollect\", mock.Anything, mock.Anything, mock.Anything).Return(nil)\n\n\t{\n\t\trun := newRun()\n\t\terr := c.garbageCollectMeasurements(run, map[string]*v1alpha1.MeasurementRetention{}, 2)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 2)\n\t\tassert.Equal(t, \"2\", run.Status.MetricResults[1].Measurements[0].Value)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[1].Value)\n\t}\n\t{\n\t\trun := newRun()\n\t\terr := c.garbageCollectMeasurements(run, map[string]*v1alpha1.MeasurementRetention{}, 1)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 1)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[0].Value)\n\t}\n\t{\n\t\trun := newRun()\n\t\tvar measurementRetentionMetricsMap = map[string]*v1alpha1.MeasurementRetention{}\n\t\tmeasurementRetentionMetricsMap[\"metric2\"] = &v1alpha1.MeasurementRetention{MetricName: \"*\", Limit: 2}\n\t\terr := c.garbageCollectMeasurements(run, measurementRetentionMetricsMap, 1)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 2)\n\t\tassert.Equal(t, \"2\", run.Status.MetricResults[1].Measurements[0].Value)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[1].Value)\n\t}\n\t{\n\t\trun := newRun()\n\t\tvar measurementRetentionMetricsMap = map[string]*v1alpha1.MeasurementRetention{}\n\t\tmeasurementRetentionMetricsMap[\"metric2\"] = &v1alpha1.MeasurementRetention{MetricName: \"metric2\", Limit: 2}\n\t\terr := c.garbageCollectMeasurements(run, measurementRetentionMetricsMap, 1)\n\t\tassert.Nil(t, err)\n\t\tassert.Len(t, run.Status.MetricResults[0].Measurements, 1)\n\t\tassert.Equal(t, \"1\", run.Status.MetricResults[0].Measurements[0].Value)\n\t\tassert.Len(t, run.Status.MetricResults[1].Measurements, 2)\n\t\tassert.Equal(t, \"2\", run.Status.MetricResults[1].Measurements[0].Value)\n\t\tassert.Equal(t, \"3\", run.Status.MetricResults[1].Measurements[1].Value)\n\t}\n}",
"func (msink *MetricsSink) UpdatePersisted(addr string, totalWritten int,\n\tserverDropped int) {\n\tmsink.lock.Lock()\n\tdefer msink.lock.Unlock()\n\tmsink.WrittenSpans += uint64(totalWritten)\n\tmsink.ServerDropped += uint64(serverDropped)\n\tmsink.updateSpanMetrics(addr, totalWritten, serverDropped)\n}",
"func RecordMeasureExistsG(id int) (bool, error) {\n\treturn RecordMeasureExists(boil.GetDB(), id)\n}",
"func (mr *MockManagerMockRecorder) LoadPersisted(arg0, arg1, arg2 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"LoadPersisted\", reflect.TypeOf((*MockManager)(nil).LoadPersisted), arg0, arg1, arg2)\n}",
"func (s *MemorySeriesStorage) calculatePersistUrgency(ms *runtime.MemStats) int {\n\tvar (\n\t\toldUrgency = atomic.LoadInt32(&s.persistUrgency)\n\t\tnewUrgency int32\n\t\tnumChunksToPersist = s.getNumChunksToPersist()\n\t)\n\tdefer func() {\n\t\tif newUrgency > 1000 {\n\t\t\tnewUrgency = 1000\n\t\t}\n\t\tatomic.StoreInt32(&s.persistUrgency, newUrgency)\n\t}()\n\n\t// Take the NextGC as the relevant heap size because the heap will grow\n\t// to that size before GC kicks in. However, at times the current heap\n\t// is already larger than NextGC, in which case we take that worse case.\n\theapSize := ms.NextGC\n\tif ms.HeapAlloc > ms.NextGC {\n\t\theapSize = ms.HeapAlloc\n\t}\n\n\tif numChunksToPersist > 0 {\n\t\tnewUrgency = int32(1000 * uint64(numChunksToPersist) / uint64(numChunksToPersist+s.evictList.Len()) * heapSize / s.targetHeapSize)\n\t}\n\n\t// Only continue if a GC has happened since we were here last time.\n\tif ms.NumGC == s.lastNumGC {\n\t\tif oldUrgency > newUrgency {\n\t\t\t// Never reduce urgency without a GC run.\n\t\t\tnewUrgency = oldUrgency\n\t\t}\n\t\treturn 0\n\t}\n\ts.lastNumGC = ms.NumGC\n\n\tif heapSize <= s.targetHeapSize {\n\t\treturn 0 // Heap still small enough, don't evict.\n\t}\n\tif s.evictList.Len() == 0 {\n\t\t// We want to reduce heap size but there is nothing to evict.\n\t\tnewUrgency = 1000\n\t\treturn 0\n\t}\n\tnumChunksToEvict := int((heapSize - s.targetHeapSize) / chunk.ChunkLen)\n\tif numChunksToEvict > s.evictList.Len() {\n\t\tnumChunksToEvict = s.evictList.Len()\n\t}\n\tif u := int32(numChunksToEvict * 1000 / s.evictList.Len()); u > newUrgency {\n\t\tnewUrgency = u\n\t}\n\treturn numChunksToEvict\n}",
"func TestPersistTransactionCreated(t *testing.T) {\n\tif testing.Short() {\n\t\tt.SkipNow()\n\t}\n\tt.Parallel()\n\n\t// Create fee manager\n\tfm, err := newTestingFeeManager(t.Name())\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Add a random number of fees\n\tfeeUIDs, err := addRandomFeesN(fm, fastrand.Intn(100)+1)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Submit a persist event for a transaction being created\n\ttxn := types.Transaction{}\n\terr = fm.staticCommon.staticPersist.callPersistTransaction(txn)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\ttxnID := txn.ID()\n\terr = fm.staticCommon.staticPersist.callPersistTxnCreated(feeUIDs, txnID)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Close the FeeManager\n\terr = fm.Close()\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Reopen the FeeManager to load the persistence\n\tfm, err = New(fm.staticCommon.staticCS, fm.staticCommon.staticTpool, fm.staticCommon.staticWallet, fm.staticCommon.staticPersist.staticPersistDir)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\t// Verify all the fees are now marked as TransactionCreate true\n\tfm.mu.Lock()\n\tfor _, fee := range fm.fees {\n\t\tif !fee.TransactionCreated {\n\t\t\tt.Fatal(\"fee found with TransactionCreate False\")\n\t\t}\n\t}\n\tfm.mu.Unlock()\n\n\tttxns := fm.staticCommon.staticWatchdog.managedTrackedTxns()\n\tif len(ttxns) != 1 {\n\t\tt.Fatal(\"Expected 1 tracked transaction but got\", len(ttxns))\n\t}\n}",
"func (d *Driver) Measure() error {\n\tif d.IsImporting() {\n\t\treturn errors.New(\"importing\")\n\t}\n\t// write measure request\n\treturn d.write(newMeasureRequest())\n}",
"func (mr *MockMetricsMockRecorder) MeasureSince(arg0, arg1 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"MeasureSince\", reflect.TypeOf((*MockMetrics)(nil).MeasureSince), arg0, arg1)\n}",
"func TestStatePersist(t *testing.T) {\n\tsetup(t)\n\n\tstate, err := NewState(startC)\n\trequire.NoError(t, err)\n\n\tstartTime, errt := state.GetStartTime()\n\tcursor, errc := state.GetCursor()\n\tid, erri := state.GetID()\n\n\trequire.NoError(t, errt)\n\trequire.NoError(t, errc)\n\trequire.NoError(t, erri)\n\n\tassert.Nil(t, startTime)\n\tassert.Equal(t, \"\", cursor)\n\tassert.Equal(t, \"\", id)\n\n\terrc = state.SetCursor(\"testCursor\")\n\terri = state.SetID(\"testId\")\n\terrt = state.SetStartTime(¤tTime)\n\trequire.NoError(t, errc)\n\trequire.NoError(t, erri)\n\trequire.NoError(t, errt)\n\n\tstate, err = NewState(startC)\n\trequire.NoError(t, err)\n\n\tstartTime, errt = state.GetStartTime()\n\trequire.NoError(t, errt)\n\tassert.NotNil(t, startTime)\n\tassert.Equal(t, currentTime, *startTime)\n\n\tcursor, errc = state.GetCursor()\n\tid, erri = state.GetID()\n\n\trequire.NoError(t, errc)\n\trequire.NoError(t, erri)\n\n\tassert.Equal(t, \"testCursor\", cursor)\n\tassert.Equal(t, \"testId\", id)\n}",
"func (o *StoragePhysicalDisk) HasPredictedMediaLifeLeftPercent() bool {\n\tif o != nil && o.PredictedMediaLifeLeftPercent != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (m *StoreMock) MinimockSavePositionInspect() {\n\tfor _, e := range m.SavePositionMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.SavePosition with params: %#v\", *e.params)\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.SavePositionMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterSavePositionCounter) < 1 {\n\t\tif m.SavePositionMock.defaultExpectation.params == nil {\n\t\t\tm.t.Error(\"Expected call to StoreMock.SavePosition\")\n\t\t} else {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.SavePosition with params: %#v\", *m.SavePositionMock.defaultExpectation.params)\n\t\t}\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcSavePosition != nil && mm_atomic.LoadUint64(&m.afterSavePositionCounter) < 1 {\n\t\tm.t.Error(\"Expected call to StoreMock.SavePosition\")\n\t}\n}",
"func RecordMeasureExists(exec boil.Executor, id int) (bool, error) {\n\tvar exists bool\n\n\tquery := \"select exists(select 1 from \\\"record_measures\\\" where \\\"id\\\"=$1 limit 1)\"\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, query)\n\t\tfmt.Fprintln(boil.DebugWriter, id)\n\t}\n\n\trow := exec.QueryRow(query, id)\n\n\terr := row.Scan(&exists)\n\tif err != nil {\n\t\treturn false, errors.Wrap(err, \"public: unable to check if record_measures exists\")\n\t}\n\n\treturn exists, nil\n}",
"func (m *DataStore) Persist(txid string, privateSimulationResultsWithConfig *proto.TxPvtReadWriteSetWithConfigInfo) error {\n\treturn m.err\n}",
"func (c *Checkpoint) persist() bool {\n\tif c.numUpdates == 0 {\n\t\treturn false\n\t}\n\n\terr := c.flush()\n\tif err != nil {\n\t\treturn false\n\t}\n\n\tlogp.Debug(\"checkpoint\", \"Checkpoint saved to disk. numUpdates=%d\",\n\t\tc.numUpdates)\n\tc.numUpdates = 0\n\treturn true\n}",
"func (o *RecordMeasure) Insert(exec boil.Executor, whitelist ...string) error {\n\tif o == nil {\n\t\treturn errors.New(\"public: no record_measures provided for insertion\")\n\t}\n\n\tvar err error\n\n\tif err := o.doBeforeInsertHooks(exec); err != nil {\n\t\treturn err\n\t}\n\n\tnzDefaults := queries.NonZeroDefaultSet(recordMeasureColumnsWithDefault, o)\n\n\tkey := makeCacheKey(whitelist, nzDefaults)\n\trecordMeasureInsertCacheMut.RLock()\n\tcache, cached := recordMeasureInsertCache[key]\n\trecordMeasureInsertCacheMut.RUnlock()\n\n\tif !cached {\n\t\twl, returnColumns := strmangle.InsertColumnSet(\n\t\t\trecordMeasureColumns,\n\t\t\trecordMeasureColumnsWithDefault,\n\t\t\trecordMeasureColumnsWithoutDefault,\n\t\t\tnzDefaults,\n\t\t\twhitelist,\n\t\t)\n\n\t\tcache.valueMapping, err = queries.BindMapping(recordMeasureType, recordMeasureMapping, wl)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcache.retMapping, err = queries.BindMapping(recordMeasureType, recordMeasureMapping, returnColumns)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif len(wl) != 0 {\n\t\t\tcache.query = fmt.Sprintf(\"INSERT INTO \\\"record_measures\\\" (\\\"%s\\\") VALUES (%s)\", strings.Join(wl, \"\\\",\\\"\"), strmangle.Placeholders(dialect.IndexPlaceholders, len(wl), 1, 1))\n\t\t} else {\n\t\t\tcache.query = \"INSERT INTO \\\"record_measures\\\" DEFAULT VALUES\"\n\t\t}\n\n\t\tif len(cache.retMapping) != 0 {\n\t\t\tcache.query += fmt.Sprintf(\" RETURNING \\\"%s\\\"\", strings.Join(returnColumns, \"\\\",\\\"\"))\n\t\t}\n\t}\n\n\tvalue := reflect.Indirect(reflect.ValueOf(o))\n\tvals := queries.ValuesFromMapping(value, cache.valueMapping)\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, cache.query)\n\t\tfmt.Fprintln(boil.DebugWriter, vals)\n\t}\n\n\tif len(cache.retMapping) != 0 {\n\t\terr = exec.QueryRow(cache.query, vals...).Scan(queries.PtrsFromMapping(value, cache.retMapping)...)\n\t} else {\n\t\t_, err = exec.Exec(cache.query, vals...)\n\t}\n\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"public: unable to insert into record_measures\")\n\t}\n\n\tif !cached {\n\t\trecordMeasureInsertCacheMut.Lock()\n\t\trecordMeasureInsertCache[key] = cache\n\t\trecordMeasureInsertCacheMut.Unlock()\n\t}\n\n\treturn o.doAfterInsertHooks(exec)\n}",
"func (m *StoreMock) MinimockSavePositionDone() bool {\n\tfor _, e := range m.SavePositionMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\treturn false\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.SavePositionMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterSavePositionCounter) < 1 {\n\t\treturn false\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcSavePosition != nil && mm_atomic.LoadUint64(&m.afterSavePositionCounter) < 1 {\n\t\treturn false\n\t}\n\treturn true\n}",
"func (mr *MockEventLoggerMockRecorder) MetadataLen() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"MetadataLen\", reflect.TypeOf((*MockEventLogger)(nil).MetadataLen))\n}",
"func AddRecordMeasureHook(hookPoint boil.HookPoint, recordMeasureHook RecordMeasureHook) {\n\tswitch hookPoint {\n\tcase boil.BeforeInsertHook:\n\t\trecordMeasureBeforeInsertHooks = append(recordMeasureBeforeInsertHooks, recordMeasureHook)\n\tcase boil.BeforeUpdateHook:\n\t\trecordMeasureBeforeUpdateHooks = append(recordMeasureBeforeUpdateHooks, recordMeasureHook)\n\tcase boil.BeforeDeleteHook:\n\t\trecordMeasureBeforeDeleteHooks = append(recordMeasureBeforeDeleteHooks, recordMeasureHook)\n\tcase boil.BeforeUpsertHook:\n\t\trecordMeasureBeforeUpsertHooks = append(recordMeasureBeforeUpsertHooks, recordMeasureHook)\n\tcase boil.AfterInsertHook:\n\t\trecordMeasureAfterInsertHooks = append(recordMeasureAfterInsertHooks, recordMeasureHook)\n\tcase boil.AfterSelectHook:\n\t\trecordMeasureAfterSelectHooks = append(recordMeasureAfterSelectHooks, recordMeasureHook)\n\tcase boil.AfterUpdateHook:\n\t\trecordMeasureAfterUpdateHooks = append(recordMeasureAfterUpdateHooks, recordMeasureHook)\n\tcase boil.AfterDeleteHook:\n\t\trecordMeasureAfterDeleteHooks = append(recordMeasureAfterDeleteHooks, recordMeasureHook)\n\tcase boil.AfterUpsertHook:\n\t\trecordMeasureAfterUpsertHooks = append(recordMeasureAfterUpsertHooks, recordMeasureHook)\n\t}\n}",
"func RecordMeasures(exec boil.Executor, mods ...qm.QueryMod) recordMeasureQuery {\n\tmods = append(mods, qm.From(\"\\\"record_measures\\\"\"))\n\treturn recordMeasureQuery{NewQuery(exec, mods...)}\n}",
"func (mr *MockMutantStorageMockRecorder) Save(val interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Save\", reflect.TypeOf((*MockMutantStorage)(nil).Save), val)\n}",
"func (p *PersistableEvent) Update(objectstorage.StorableObject) {\n\tpanic(\"should not be updated\")\n}",
"func TestProtoStreamLargeEvent(t *testing.T) {\n\ttests := []struct {\n\t\tname string\n\t\tevent apievents.AuditEvent\n\t\terrAssertion require.ErrorAssertionFunc\n\t}{\n\t\t{\n\t\t\tname: \"large trimmable event is trimmed\",\n\t\t\tevent: makeQueryEvent(\"1\", strings.Repeat(\"A\", events.MaxProtoMessageSizeBytes)),\n\t\t\terrAssertion: require.NoError,\n\t\t},\n\t\t{\n\t\t\tname: \"large untrimmable event returns error\",\n\t\t\tevent: makeAccessRequestEvent(\"1\", strings.Repeat(\"A\", events.MaxProtoMessageSizeBytes)),\n\t\t\terrAssertion: require.Error,\n\t\t},\n\t}\n\n\tctx := context.Background()\n\n\tstreamer, err := events.NewProtoStreamer(events.ProtoStreamerConfig{\n\t\tUploader: eventstest.NewMemoryUploader(nil),\n\t})\n\trequire.NoError(t, err)\n\n\tstream, err := streamer.CreateAuditStream(ctx, session.ID(\"1\"))\n\trequire.NoError(t, err)\n\n\tfor _, test := range tests {\n\t\tt.Run(test.name, func(t *testing.T) {\n\t\t\ttest.errAssertion(t, stream.RecordEvent(ctx, eventstest.PrepareEvent(test.event)))\n\t\t})\n\t}\n\trequire.NoError(t, stream.Complete(ctx))\n}",
"func (p *Policy) OnPersistEnd(dao dao.DAO) error {\n\tif p.isValid {\n\t\treturn nil\n\t}\n\tp.lock.Lock()\n\tdefer p.lock.Unlock()\n\n\tmaxTxPerBlock := p.getUint32WithKey(dao, maxTransactionsPerBlockKey)\n\tp.maxTransactionsPerBlock = maxTxPerBlock\n\n\tmaxBlockSize := p.getUint32WithKey(dao, maxBlockSizeKey)\n\tp.maxBlockSize = maxBlockSize\n\n\tfeePerByte := p.getInt64WithKey(dao, feePerByteKey)\n\tp.feePerByte = feePerByte\n\n\tmaxBlockSystemFee := p.getInt64WithKey(dao, maxBlockSystemFeeKey)\n\tp.maxBlockSystemFee = maxBlockSystemFee\n\n\tp.maxVerificationGas = defaultMaxVerificationGas\n\n\tsi := dao.GetStorageItem(p.ContractID, blockedAccountsKey)\n\tif si == nil {\n\t\treturn errors.New(\"BlockedAccounts uninitialized\")\n\t}\n\tba, err := BlockedAccountsFromBytes(si.Value)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to decode BlockedAccounts from bytes: %w\", err)\n\t}\n\tp.blockedAccounts = ba\n\n\tp.isValid = true\n\treturn nil\n}",
"func (mr *MockSpaceStorageMockRecorder) StoredIds() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"StoredIds\", reflect.TypeOf((*MockSpaceStorage)(nil).StoredIds))\n}",
"func (s *MemorySeriesStorage) getPersistenceUrgencyScore() (float64, bool) {\n\ts.rushedMtx.Lock()\n\tdefer s.rushedMtx.Unlock()\n\n\tscore := float64(atomic.LoadInt32(&s.persistUrgency)) / 1000\n\tif score > 1 {\n\t\tscore = 1\n\t}\n\n\tif s.rushed {\n\t\t// We are already in rushed mode. If the score is still above\n\t\t// persintenceUrgencyScoreForLeavingRushedMode, return the score\n\t\t// and leave things as they are.\n\t\tif score > persintenceUrgencyScoreForLeavingRushedMode {\n\t\t\treturn score, true\n\t\t}\n\t\t// We are out of rushed mode!\n\t\ts.rushed = false\n\t\tlog.\n\t\t\tWith(\"urgencyScore\", score).\n\t\t\tWith(\"chunksToPersist\", s.getNumChunksToPersist()).\n\t\t\tWith(\"memoryChunks\", atomic.LoadInt64(&chunk.NumMemChunks)).\n\t\t\tInfo(\"Storage has left rushed mode.\")\n\t\treturn score, false\n\t}\n\tif score > persintenceUrgencyScoreForEnteringRushedMode {\n\t\t// Enter rushed mode.\n\t\ts.rushed = true\n\t\tlog.\n\t\t\tWith(\"urgencyScore\", score).\n\t\t\tWith(\"chunksToPersist\", s.getNumChunksToPersist()).\n\t\t\tWith(\"memoryChunks\", atomic.LoadInt64(&chunk.NumMemChunks)).\n\t\t\tWarn(\"Storage has entered rushed mode.\")\n\t}\n\treturn score, s.rushed\n}",
"func (q *queue) persistMetaOfMessage(dataPageIndex int64, dataLen, messageOffset int) error {\n\tq.rwMutex.Lock()\n\tdefer q.rwMutex.Unlock()\n\n\tseq := q.appendedSeq.Load() + 1 // append sequence\n\tindexPageIndex := seq / indexItemsPerPage\n\tif indexPageIndex != q.indexPageIndex {\n\t\t// check size limit before index page acquire\n\t\tif err := q.checkDataSize(); err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// sync previous data page\n\t\tif err := q.indexPage.Sync(); err != nil {\n\t\t\tqueueLogger.Error(\"sync index page err when alloc\",\n\t\t\t\tlogger.String(\"queue\", q.dirPath), logger.Error(err))\n\t\t}\n\t\tindexPage, err := q.indexPageFct.AcquirePage(indexPageIndex)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tq.indexPage = indexPage\n\t\tq.indexPageIndex = indexPageIndex\n\t}\n\n\t// save index data\n\tindexOffset := int((seq % indexItemsPerPage) * indexItemLength)\n\tq.indexPage.PutUint64(uint64(dataPageIndex), indexOffset+queueDataPageIndexOffset)\n\tq.indexPage.PutUint32(uint32(messageOffset), indexOffset+messageOffsetOffset)\n\tq.indexPage.PutUint32(uint32(dataLen), indexOffset+messageLengthOffset)\n\n\t// save metadata\n\tq.metaPage.PutUint64(uint64(seq), queueAppendedSeqOffset)\n\tq.appendedSeq.Store(seq)\n\n\t// new data written, notify all waiting consumer groups can consume data\n\tq.notEmpty.Broadcast()\n\treturn nil\n}",
"func (mr *MockManagerMockRecorder) Save(arg0 interface{}) *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Save\", reflect.TypeOf((*MockManager)(nil).Save), arg0)\n}",
"func (c *CachedPersistableEvent) Consume(consumer func(pbm *PersistableEvent)) bool {\n\treturn c.CachedObject.Consume(func(object objectstorage.StorableObject) {\n\t\tconsumer(object.(*PersistableEvent))\n\t})\n}",
"func (mr *MockListenerMockRecorder) Modify(listener interface{}) *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Modify\", reflect.TypeOf((*MockListener)(nil).Modify), listener)\n}",
"func TestOutOfRangeEstimationAfterDelete(t *testing.T) {\n\tstore, dom := testkit.CreateMockStoreAndDomain(t)\n\ttestKit := testkit.NewTestKit(t, store)\n\th := dom.StatsHandle()\n\ttestKit.MustExec(\"use test\")\n\ttestKit.MustExec(\"drop table if exists t\")\n\ttestKit.MustExec(\"create table t(a int unsigned)\")\n\trequire.NoError(t, h.HandleDDLEvent(<-h.DDLEventCh()))\n\tfor i := 0; i < 3000; i++ {\n\t\ttestKit.MustExec(fmt.Sprintf(\"insert into t values (%v)\", i/5+300)) // [300, 900)\n\t}\n\trequire.Nil(t, h.DumpStatsDeltaToKV(handle.DumpAll))\n\ttestKit.MustExec(\"analyze table t with 1 samplerate, 0 topn\")\n\ttestKit.MustExec(\"delete from t where a < 500\")\n\trequire.Nil(t, h.DumpStatsDeltaToKV(handle.DumpAll))\n\trequire.Nil(t, h.Update(dom.InfoSchema()))\n\tvar (\n\t\tinput []string\n\t\toutput []struct {\n\t\t\tSQL string\n\t\t\tResult []string\n\t\t}\n\t)\n\tstatsSuiteData := cardinality.GetCardinalitySuiteData()\n\tstatsSuiteData.LoadTestCases(t, &input, &output)\n\tfor i := range input {\n\t\ttestdata.OnRecord(func() {\n\t\t\toutput[i].SQL = input[i]\n\t\t\toutput[i].Result = testdata.ConvertRowsToStrings(testKit.MustQuery(input[i]).Rows())\n\t\t})\n\t\ttestKit.MustQuery(input[i]).Check(testkit.Rows(output[i].Result...))\n\t}\n}",
"func (mdb *memdbSlice) waitPersist() {\n\n\tif !mdb.checkAllWorkersDone() {\n\t\t//every SLICE_COMMIT_POLL_INTERVAL milliseconds,\n\t\t//check for outstanding mutations. If there are\n\t\t//none, proceed with the commit.\n\t\tmdb.confLock.RLock()\n\t\tcommitPollInterval := mdb.sysconf[\"storage.moi.commitPollInterval\"].Uint64()\n\t\tmdb.confLock.RUnlock()\n\n\t\tfor {\n\t\t\tif mdb.checkAllWorkersDone() {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\ttime.Sleep(time.Millisecond * time.Duration(commitPollInterval))\n\t\t}\n\t}\n\n}",
"func TestBaseAggregateEventCommit(t *testing.T) {\n\tinstance := &SimpleAggregate{}\n\tstore := NewNullStore()\n\tinstance.Initialize(\"dummy-key\", counterRegistry, store)\n\tinstance.Refresh()\n\tassert.False(t, instance.isDirty(), \"The aggregate should not be dirty before any events.\")\n\n\tinstance.ApplyEvent(InitializeEvent{\n\t\tTargetValue: 3,\n\t})\n\tassert.True(t, instance.isDirty(), \"The aggregate should be dirty, after applying an event\")\n\n\tinstance.Commit()\n\tassert.False(t, instance.isDirty(), \"The aggregate should not be dirty after committing events.\")\n}",
"func (m Measurement) Measure() Measure {\n\treturn m.m\n}",
"func TestEventCreate(t *testing.T) {\n\ta := assert.New(t)\n\tctx := context.Background()\n\tpostgresC, db, err := setupPostgresContainer(ctx)\n\tif postgresC != nil {\n\t\tdefer postgresC.Terminate(ctx)\n\t}\n\tif err != nil {\n\t\tt.Error(err)\n\t\treturn\n\t}\n\n\teventsStorage := NewEvents(db)\n\tvar wg sync.WaitGroup\n\n\tassumeTotal := 0.\n\tvar tl sync.Mutex\n\n\tfor i := 0; i < 100; i++ {\n\t\twg.Add(1)\n\t\tgo func(i int) {\n\t\t\tdefer wg.Done()\n\t\t\tamount := float64(rand.Intn(100))\n\t\t\tvar e models.Event\n\t\t\tif i%5 == 0 { // StateWin\n\t\t\t\te = genTestEvent(amount)\n\t\t\t} else { // StateLoss\n\t\t\t\tamount = amount * -1\n\t\t\t\te = genTestEvent(amount)\n\t\t\t}\n\t\t\terr = eventsStorage.Create(ctx, e)\n\t\t\tif err != nil && errors.Cause(err) != errNegativeBalance {\n\t\t\t\tt.Error(err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif err == nil {\n\t\t\t\ttl.Lock()\n\t\t\t\tassumeTotal += e.Amount\n\t\t\t\ttl.Unlock()\n\t\t\t}\n\t\t}(i)\n\t\tt := time.Duration(rand.Int63n(5))\n\t\ttime.Sleep(t * time.Millisecond)\n\t}\n\n\twg.Wait()\n\n\tbal, err := getBalanceWithLock(ctx, db)\n\ta.NoError(err)\n\n\tt.Logf(\"Total balance: %f\", bal)\n\n\ta.Equal(assumeTotal, bal)\n\n\tif bal < 0 {\n\t\tt.Error(\"Negative balance\")\n\t}\n}",
"func (mr *MockAnalyticsDMockRecorder) Destroy() *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Destroy\", reflect.TypeOf((*MockAnalyticsD)(nil).Destroy))\n}",
"func (c *AverageDuration) Observe(d time.Duration) {\n\tc.count.Add(1)\n\tc.sum.Add(int64(d / c.units))\n}",
"func TestBatchOnUploadEventFailure(t *testing.T) {\n\tbatch := Batch{&mocks.FailingWriter{}}\n\terr := batch.OnUploadEvent(&spec.Measurement{\n\t\tElapsed: 1.0,\n\t})\n\tif err != mocks.ErrMocked {\n\t\tt.Fatal(\"Not the error we expected\")\n\t}\n}",
"func (omq *OutcomeMeasureQuery) Exist(ctx context.Context) (bool, error) {\n\tif err := omq.prepareQuery(ctx); err != nil {\n\t\treturn false, err\n\t}\n\treturn omq.sqlExist(ctx)\n}",
"func Record(ctx context.Context, ms stats.Measurement) {\n\tmc := getCurMetricsConfig()\n\n\t// Condition 1)\n\tif mc == nil {\n\t\tstats.Record(ctx, ms)\n\t\treturn\n\t}\n\n\t// Condition 2) and 3)\n\tif !mc.isStackdriverBackend || mc.allowStackdriverCustomMetrics {\n\t\tstats.Record(ctx, ms)\n\t\treturn\n\t}\n\n\t// Condition 4)\n\tmetricType := path.Join(mc.stackdriverMetricTypePrefix, ms.Measure().Name())\n\tif metricskey.KnativeRevisionMetrics.Has(metricType) {\n\t\tstats.Record(ctx, ms)\n\t}\n}",
"func (s *InMemorySuite) TestRecordEvents(c *C) {\n\ttimeline := s.newTimeline()\n\tevents := []*pb.TimelineEvent{pb.NewNodeHealthy(s.clock.Now(), node)}\n\texpected := []*pb.TimelineEvent{pb.NewNodeHealthy(s.clock.Now(), node)}\n\tcomment := Commentf(\"Expected the a node recovered event to be recorded.\")\n\n\ttest.WithTimeout(func(ctx context.Context) {\n\t\tc.Assert(timeline.RecordEvents(ctx, events), IsNil, comment)\n\n\t\tactual, err := timeline.GetEvents(ctx, nil)\n\t\tc.Assert(err, IsNil, comment)\n\t\tc.Assert(actual, test.DeepCompare, expected, comment)\n\t})\n}",
"func handleTestEvent(c *Consumer, mt *msgtracker, expCnt int, ev Event) bool {\n\tswitch e := ev.(type) {\n\tcase *Message:\n\t\tif e.TopicPartition.Error != nil {\n\t\t\tmt.t.Errorf(\"Error: %v\", e.TopicPartition)\n\t\t}\n\t\tmt.msgs[mt.msgcnt] = e\n\t\tmt.msgcnt++\n\t\tif mt.msgcnt >= int64(expCnt) {\n\t\t\treturn false\n\t\t}\n\tcase PartitionEOF:\n\t\tbreak // silence\n\tdefault:\n\t\tmt.t.Fatalf(\"Consumer error: %v\", e)\n\t}\n\treturn true\n\n}",
"func (l *Libvirt) DomainEventPmsuspendDisk() (err error) {\n\tvar buf []byte\n\n\n\t_, err = l.requestStream(292, constants.Program, buf, nil, nil)\n\tif err != nil {\n\t\treturn\n\t}\n\n\treturn\n}",
"func (mr *MockHandlerMockRecorder) EventQuery() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"EventQuery\", reflect.TypeOf((*MockHandler)(nil).EventQuery))\n}",
"func (mr *MockStoreMockRecorder) Flush() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Flush\", reflect.TypeOf((*MockStore)(nil).Flush))\n}",
"func (mr *MockMempoolMockRecorder) Size() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Size\", reflect.TypeOf((*MockMempool)(nil).Size))\n}",
"func TestBatchOnUploadEvent(t *testing.T) {\n\tsw := &mocks.SavingWriter{}\n\tbatch := Batch{sw}\n\terr := batch.OnUploadEvent(&spec.Measurement{\n\t\tAppInfo: spec.AppInfo{\n\t\t\tNumBytes: 100000000,\n\t\t},\n\t\tDirection: \"upload\",\n\t\tElapsed: 3.0,\n\t\tOrigin: \"client\",\n\t})\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif len(sw.Data) != 1 {\n\t\tt.Fatal(\"invalid length\")\n\t}\n\tvar event struct {\n\t\tKey string `json:\"key\"`\n\t\tValue struct {\n\t\t\tAppInfo struct {\n\t\t\t\tNumBytes int64 `json:\"num_bytes\"`\n\t\t\t} `json:\"app_info\"`\n\t\t\tDirection string `json:\"direction\"`\n\t\t\tElapsed float64 `json:\"elapsed\"`\n\t\t\tOrigin string `json:\"origin\"`\n\t\t} `json:\"value\"`\n\t}\n\terr = json.Unmarshal(sw.Data[0], &event)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\tif event.Key != \"measurement\" {\n\t\tt.Fatal(\"Unexpected event key\")\n\t}\n\tif event.Value.AppInfo.NumBytes != 100000000 {\n\t\tt.Fatal(\"Unexpected num bytes field value\")\n\t}\n\tif event.Value.Direction != \"upload\" {\n\t\tt.Fatal(\"Unexpected direction field value\")\n\t}\n\tif event.Value.Elapsed != 3.0 {\n\t\tt.Fatal(\"Unexpected elapsed field value\")\n\t}\n\tif event.Value.Origin != \"client\" {\n\t\tt.Fatal(\"Unexpected elapsed field value\")\n\t}\n}",
"func (fgs *FakeGraphSync) AssertPauseReceived(ctx context.Context, t *testing.T) graphsync.RequestID {\n\tvar pauseReceived graphsync.RequestID\n\tselect {\n\tcase <-ctx.Done():\n\t\tt.Fatal(\"did not receive message sent\")\n\tcase pauseReceived = <-fgs.pauses:\n\t}\n\treturn pauseReceived\n}",
"func (_m *MockAggregate) StoreEvent(_a0 EventData) {\n\t_m.Called(_a0)\n}",
"func (mr *MockPersistentVolumesGetterMockRecorder) PersistentVolumes() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"PersistentVolumes\", reflect.TypeOf((*MockPersistentVolumesGetter)(nil).PersistentVolumes))\n}",
"func (mr *MockServiceEntrySetMockRecorder) Has(serviceEntry interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Has\", reflect.TypeOf((*MockServiceEntrySet)(nil).Has), serviceEntry)\n}",
"func (mr *MockUserStoreMockRecorder) Alter(arg0, arg1, arg2 interface{}) *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Alter\", reflect.TypeOf((*MockUserStore)(nil).Alter), arg0, arg1, arg2)\n}",
"func (mr *MockisAclStatus_QosClassPdStatusMockRecorder) Size() *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Size\", reflect.TypeOf((*MockisAclStatus_QosClassPdStatus)(nil).Size))\n}",
"func (fgs *FakeGraphSync) AssertDoesNotHavePersistenceOption(t *testing.T, name string) {\n\tfgs.persistenceOptionsLk.RLock()\n\tdefer fgs.persistenceOptionsLk.RUnlock()\n\t_, ok := fgs.persistenceOptions[name]\n\trequire.Falsef(t, ok, \"persistence option %s should be registered\", name)\n}",
"func (r *RollingStoreStats) Observe(stats *pdpb.StoreStats) {\n\tstatInterval := stats.GetInterval()\n\tinterval := time.Duration(statInterval.GetEndTimestamp()-statInterval.GetStartTimestamp()) * time.Second\n\tlog.Debug(\"update store stats\",\n\t\tzap.Uint64(\"key-write\", stats.KeysWritten),\n\t\tzap.Uint64(\"bytes-write\", stats.BytesWritten),\n\t\tzap.Uint64(\"key-read\", stats.KeysRead),\n\t\tzap.Uint64(\"bytes-read\", stats.BytesRead),\n\t\tzap.Uint64(\"query-write\", core.GetWriteQueryNum(stats.QueryStats)),\n\t\tzap.Uint64(\"query-read\", core.GetReadQueryNum(stats.QueryStats)),\n\t\tzap.Duration(\"interval\", interval),\n\t\tzap.Uint64(\"store-id\", stats.GetStoreId()))\n\tr.Lock()\n\tdefer r.Unlock()\n\treadQueryNum, writeQueryNum := core.GetReadQueryNum(stats.QueryStats), core.GetWriteQueryNum(stats.QueryStats)\n\tr.timeMedians[utils.StoreWriteBytes].Add(float64(stats.BytesWritten), interval)\n\tr.timeMedians[utils.StoreWriteKeys].Add(float64(stats.KeysWritten), interval)\n\tr.timeMedians[utils.StoreWriteQuery].Add(float64(writeQueryNum), interval)\n\tr.timeMedians[utils.StoreReadBytes].Add(float64(stats.BytesRead), interval)\n\tr.timeMedians[utils.StoreReadKeys].Add(float64(stats.KeysRead), interval)\n\tr.timeMedians[utils.StoreReadQuery].Add(float64(readQueryNum), interval)\n\n\t// Updates the cpu usages and disk rw rates of store.\n\tr.movingAvgs[utils.StoreCPUUsage].Add(collect(stats.GetCpuUsages()))\n\tr.movingAvgs[utils.StoreDiskReadRate].Add(collect(stats.GetReadIoRates()))\n\tr.movingAvgs[utils.StoreDiskWriteRate].Add(collect(stats.GetWriteIoRates()))\n}",
"func RegisterSkippedScaleUpMemory() {\n\tskippedScaleEventsCount.WithLabelValues(DirectionScaleUp, MemoryResourceLimit).Add(1.0)\n}",
"func (ad *AgentRunCommandReplyType) ShouldPersistData() bool {\n\treturn ad.shouldPersist\n}",
"func (u Phone) ValidatePersisted() error {\n\treturn nil\n}",
"func (obj *GenericMeasure) Publish(ctx context.Context) error {\n\terr := obj.RPC(ctx, \"Publish\", nil)\n\treturn err\n}",
"func (mr *MockEventRepositoryMockRecorder) Store(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Store\", reflect.TypeOf((*MockEventRepository)(nil).Store), arg0)\n}",
"func (mr *MockisAclSelector_SegSelectorMockRecorder) Size() *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Size\", reflect.TypeOf((*MockisAclSelector_SegSelector)(nil).Size))\n}",
"func (d Document) Persisted() bool {\n\tvar (\n\t\tpValues = d.PrimaryValues()\n\t)\n\n\tfor i := range pValues {\n\t\tif !isZero(pValues[i]) {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}",
"func TestBaseAggregateIgnoreUnmappedEvents(t *testing.T) {\n\tinstance := &SimpleAggregate{}\n\tstore := NewNullStore()\n\tinstance.Initialize(\"dummy-key\", counterRegistry, store)\n\tinstance.Refresh()\n\n\t// Apply our unknown event\n\tinstance.ApplyEvent(UnknownEventTypeExample{})\n\n\tassert.Equal(t, int64(1), instance.SequenceNumber(), \"The aggregate sequence number should be 1\")\n\tassert.Equal(t, 0, instance.TargetValue, \"The aggregate target value should be 0\")\n}",
"func (mr *MockStorageManagerMockRecorder) RecommendStoragePoolUpdate(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"RecommendStoragePoolUpdate\", reflect.TypeOf((*MockStorageManager)(nil).RecommendStoragePoolUpdate), arg0)\n}",
"func (cm *ConsumptionMetadata) Store(msg messagebroker.ReceivedMessage, deadline int64) {\n\tcm.consumedMessages[msg.MessageID] = msg\n\n\tmsg1 := &customheap.AckMessageWithOffset{\n\t\tMsgID: msg.MessageID,\n\t\tOffset: msg.Offset,\n\t}\n\tcm.offsetBasedMinHeap.Indices = append(cm.offsetBasedMinHeap.Indices, msg1)\n\tcm.offsetBasedMinHeap.MsgIDToIndexMapping[msg.MessageID] = len(cm.offsetBasedMinHeap.Indices) - 1\n\theap.Init(&cm.offsetBasedMinHeap)\n\n\tmsg2 := &customheap.AckMessageWithDeadline{\n\t\tMsgID: msg.MessageID,\n\t\tAckDeadline: int32(deadline),\n\t}\n\tcm.deadlineBasedMinHeap.Indices = append(cm.deadlineBasedMinHeap.Indices, msg2)\n\tcm.deadlineBasedMinHeap.MsgIDToIndexMapping[msg.MessageID] = len(cm.deadlineBasedMinHeap.Indices) - 1\n\theap.Init(&cm.deadlineBasedMinHeap)\n}",
"func (l *Libvirt) DomainEventCallbackPmsuspendDisk() (err error) {\n\tvar buf []byte\n\n\n\t_, err = l.requestStream(332, constants.Program, buf, nil, nil)\n\tif err != nil {\n\t\treturn\n\t}\n\n\treturn\n}",
"func RegisterSkippedScaleDownMemory() {\n\tskippedScaleEventsCount.WithLabelValues(DirectionScaleDown, MemoryResourceLimit).Add(1.0)\n}",
"func AssertProcessEvents(t *testing.T, expected, actual *model.ProcessEvent) {\n\tt.Helper()\n\n\tassert.Equal(t, expected.EventType, actual.EventType)\n\tassert.WithinDuration(t, expected.CollectionTime, actual.CollectionTime, 0)\n\tassert.Equal(t, expected.Pid, actual.Pid)\n\tassert.Equal(t, expected.ContainerID, actual.ContainerID)\n\tassert.Equal(t, expected.Ppid, actual.Ppid)\n\tassert.Equal(t, expected.UID, actual.UID)\n\tassert.Equal(t, expected.GID, actual.GID)\n\tassert.Equal(t, expected.Username, actual.Username)\n\tassert.Equal(t, expected.Group, actual.Group)\n\tassert.Equal(t, expected.Exe, actual.Exe)\n\tassert.Equal(t, expected.Cmdline, actual.Cmdline)\n\tassert.WithinDuration(t, expected.ForkTime, actual.ForkTime, 0)\n\tassert.WithinDuration(t, expected.ExecTime, actual.ExecTime, 0)\n\tassert.WithinDuration(t, expected.ExitTime, actual.ExitTime, 0)\n\tassert.Equal(t, expected.ExitCode, actual.ExitCode)\n}",
"func (_m *HostMemoryManager) ReportUnmanagedSpaceUsageChange(bytes int64) {\n\t_m.Called(bytes)\n}",
"func (es *FakeEventStore) Save(event entity.Event) (entity.ID, error) {\n\tes.init()\n\n\tif es.idleCapacity() == 0 {\n\t\treturn event.ID, &adapter.ErrOutOfCapacity{Capacity: es.Capacity}\n\t}\n\tevent.ID = entity.ID(len(es.events) + 1)\n\tes.events = append(es.events, event)\n\treturn event.ID, nil\n}",
"func (mr *MockFirecrackerMockRecorder) PutMmds(ctx, metadata interface{}) *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"PutMmds\", reflect.TypeOf((*MockFirecracker)(nil).PutMmds), ctx, metadata)\n}",
"func (c *Checkpoint) Persist(path, cursor string, realTs, monotonicTs uint64) {\n\tc.PersistState(JournalState{\n\t\tPath: path,\n\t\tCursor: cursor,\n\t\tRealtimeTimestamp: realTs,\n\t\tMonotonicTimestamp: monotonicTs,\n\t})\n}",
"func TestTrackProcess(t *testing.T) {\n\trequire := require.New(t)\n\tprovider := sql.NewDatabaseProvider()\n\ta := analyzer.NewDefault(provider)\n\n\tnode := plan.NewInnerJoin(\n\t\tplan.NewResolvedTable(&nonIndexableTable{memory.NewPartitionedTable(\"foo\", sql.PrimaryKeySchema{}, nil, 2)}, nil, nil),\n\t\tplan.NewResolvedTable(memory.NewPartitionedTable(\"bar\", sql.PrimaryKeySchema{}, nil, 4), nil, nil),\n\t\texpression.NewLiteral(int64(1), types.Int64),\n\t)\n\n\tpl := sqle.NewProcessList()\n\n\tctx := sql.NewContext(context.Background(), sql.WithPid(1), sql.WithProcessList(pl))\n\tpl.AddConnection(ctx.Session.ID(), \"localhost\")\n\tpl.ConnectionReady(ctx.Session)\n\tctx, err := ctx.ProcessList.BeginQuery(ctx, \"SELECT foo\")\n\trequire.NoError(err)\n\n\trule := getRuleFrom(analyzer.OnceAfterAll, analyzer.TrackProcessId)\n\tresult, _, err := rule.Apply(ctx, a, node, nil, analyzer.DefaultRuleSelector)\n\trequire.NoError(err)\n\n\tprocesses := ctx.ProcessList.Processes()\n\trequire.Len(processes, 1)\n\trequire.Equal(\"SELECT foo\", processes[0].Query)\n\trequire.Equal(\n\t\tmap[string]sql.TableProgress{\n\t\t\t\"foo\": sql.TableProgress{\n\t\t\t\tProgress: sql.Progress{Name: \"foo\", Done: 0, Total: 2},\n\t\t\t\tPartitionsProgress: map[string]sql.PartitionProgress{}},\n\t\t\t\"bar\": sql.TableProgress{\n\t\t\t\tProgress: sql.Progress{Name: \"bar\", Done: 0, Total: 4},\n\t\t\t\tPartitionsProgress: map[string]sql.PartitionProgress{}},\n\t\t},\n\t\tprocesses[0].Progress)\n\n\tproc, ok := result.(*plan.QueryProcess)\n\trequire.True(ok)\n\n\tjoin, ok := proc.Child().(*plan.JoinNode)\n\trequire.True(ok)\n\trequire.Equal(join.JoinType(), plan.JoinTypeInner)\n\n\tlhs, ok := join.Left().(*plan.ResolvedTable)\n\trequire.True(ok)\n\t_, ok = lhs.Table.(*plan.ProcessTable)\n\trequire.True(ok)\n\n\trhs, ok := join.Right().(*plan.ResolvedTable)\n\trequire.True(ok)\n\t_, ok = rhs.Table.(*plan.ProcessIndexableTable)\n\trequire.True(ok)\n\n\titer, err := rowexec.DefaultBuilder.Build(ctx, proc, nil)\n\trequire.NoError(err)\n\t_, err = sql.RowIterToRows(ctx, nil, iter)\n\trequire.NoError(err)\n\n\tprocs := ctx.ProcessList.Processes()\n\trequire.Len(procs, 1)\n\trequire.Equal(procs[0].Command, sql.ProcessCommandSleep)\n\trequire.Error(ctx.Err())\n}",
"func partitionShouldBeInspected(part sgdisk.Partition) bool {\n\tif part.Number == 0 {\n\t\treturn false\n\t}\n\treturn (part.StartSector != nil && *part.StartSector == 0) ||\n\t\t(part.SizeInSectors != nil && *part.SizeInSectors == 0)\n}",
"func (o *RecordMeasure) Delete(exec boil.Executor) error {\n\tif o == nil {\n\t\treturn errors.New(\"public: no RecordMeasure provided for delete\")\n\t}\n\n\tif err := o.doBeforeDeleteHooks(exec); err != nil {\n\t\treturn err\n\t}\n\n\targs := queries.ValuesFromMapping(reflect.Indirect(reflect.ValueOf(o)), recordMeasurePrimaryKeyMapping)\n\tquery := \"DELETE FROM \\\"record_measures\\\" WHERE \\\"id\\\"=$1\"\n\n\tif boil.DebugMode {\n\t\tfmt.Fprintln(boil.DebugWriter, query)\n\t\tfmt.Fprintln(boil.DebugWriter, args...)\n\t}\n\n\t_, err := exec.Exec(query, args...)\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"public: unable to delete from record_measures\")\n\t}\n\n\tif err := o.doAfterDeleteHooks(exec); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func (s WorkerSnapshot) Persist(sink raft.SnapshotSink) error {return nil}",
"func (o *RecordMeasure) doBeforeInsertHooks(exec boil.Executor) (err error) {\n\tfor _, hook := range recordMeasureBeforeInsertHooks {\n\t\tif err := hook(exec, o); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (mr *GoMockDiskStorageMockRecorder) Write(chunk interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Write\", reflect.TypeOf((*GoMockDiskStorage)(nil).Write), chunk)\n}",
"func (fgs *FakeGraphSync) AssertNoPauseReceived(t *testing.T) {\n\trequire.Empty(t, fgs.pauses, \"should not receive pause request\")\n}",
"func (omq *OutcomeMeasureQuery) ExistX(ctx context.Context) bool {\n\texist, err := omq.Exist(ctx)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn exist\n}",
"func (q recordMeasureQuery) ExistsP() bool {\n\te, err := q.Exists()\n\tif err != nil {\n\t\tpanic(boil.WrapErr(err))\n\t}\n\n\treturn e\n}",
"func (m *StoreMock) MinimockGetPositionInspect() {\n\tfor _, e := range m.GetPositionMock.expectations {\n\t\tif mm_atomic.LoadUint64(&e.Counter) < 1 {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.GetPosition with params: %#v\", *e.params)\n\t\t}\n\t}\n\n\t// if default expectation was set then invocations count should be greater than zero\n\tif m.GetPositionMock.defaultExpectation != nil && mm_atomic.LoadUint64(&m.afterGetPositionCounter) < 1 {\n\t\tif m.GetPositionMock.defaultExpectation.params == nil {\n\t\t\tm.t.Error(\"Expected call to StoreMock.GetPosition\")\n\t\t} else {\n\t\t\tm.t.Errorf(\"Expected call to StoreMock.GetPosition with params: %#v\", *m.GetPositionMock.defaultExpectation.params)\n\t\t}\n\t}\n\t// if func was set then invocations count should be greater than zero\n\tif m.funcGetPosition != nil && mm_atomic.LoadUint64(&m.afterGetPositionCounter) < 1 {\n\t\tm.t.Error(\"Expected call to StoreMock.GetPosition\")\n\t}\n}",
"func TestConsumerQueryWatermarkOffsets(t *testing.T) {\n\tif !testconfRead() {\n\t\tt.Skipf(\"Missing testconf.json\")\n\t}\n\n\t// getMessageCountInTopic() uses consumer QueryWatermarkOffsets() API to\n\t// get the number of messages in a topic\n\tmsgcnt, err := getMessageCountInTopic(testconf.Topic)\n\tif err != nil {\n\t\tt.Errorf(\"Cannot get message size. Error: %s\\n\", err)\n\t}\n\n\t// Prime topic with test messages\n\tcreateTestMessages()\n\tproducerTest(t, \"Priming producer\", p0TestMsgs, producerCtrl{silent: true},\n\t\tfunc(p *Producer, m *Message, drChan chan Event) {\n\t\t\tp.ProduceChannel() <- m\n\t\t})\n\n\t// getMessageCountInTopic() uses consumer QueryWatermarkOffsets() API to\n\t// get the number of messages in a topic\n\tnewmsgcnt, err := getMessageCountInTopic(testconf.Topic)\n\tif err != nil {\n\t\tt.Errorf(\"Cannot get message size. Error: %s\\n\", err)\n\t}\n\n\tif newmsgcnt-msgcnt != len(p0TestMsgs) {\n\t\tt.Errorf(\"Incorrect offsets. Expected message count %d, got %d\\n\", len(p0TestMsgs), newmsgcnt-msgcnt)\n\t}\n\n}",
"func (o *StoragePhysicalDisk) HasFailurePredicted() bool {\n\tif o != nil && o.FailurePredicted != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (mr *MockStorageMetricsMockRecorder) MeasureGetIterator(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"MeasureGetIterator\", reflect.TypeOf((*MockStorageMetrics)(nil).MeasureGetIterator), arg0)\n}",
"func (n *Note) measure() {\n\tvar samples int\n\tlength := wholeNote + (wholeNote / 100 * 4 * (4 - n.tempo)) // 4% per tempo unit\n\tswitch n.duration {\n\tcase 'W':\n\t\tsamples = length\n\tcase 'H':\n\t\tsamples = length / 2\n\tcase 'Q':\n\t\tsamples = length / 4\n\tcase 'E':\n\t\tsamples = length / 8\n\tcase 'S':\n\t\tsamples = length / 16\n\tcase 'T':\n\t\tsamples = length / 32\n\tcase 'I':\n\t\tsamples = length / 64\n\t}\n\n\tif samples > 0 {\n\t\t// Apply dot measure\n\t\tif n.dotted {\n\t\t\tsamples += samples / 2\n\t\t}\n\t}\n\n\tn.samples = samples\n}",
"func (mr *MockVirtualServiceSetMockRecorder) Has(virtualService interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Has\", reflect.TypeOf((*MockVirtualServiceSet)(nil).Has), virtualService)\n}",
"func (r *RcvBufAutoTuneParams) saveMeasureTime() unixTime {\n\treturn unixTime{r.MeasureTime.Unix(), r.MeasureTime.UnixNano()}\n}",
"func (mmSavePosition *StoreMock) SavePositionBeforeCounter() uint64 {\n\treturn mm_atomic.LoadUint64(&mmSavePosition.beforeSavePositionCounter)\n}",
"func TestPodDeletionEvent(t *testing.T) {\n\tf := func(path cmp.Path) bool {\n\t\tswitch path.String() {\n\t\t// These fields change at runtime, so ignore it\n\t\tcase \"LastTimestamp\", \"FirstTimestamp\", \"ObjectMeta.Name\":\n\t\t\treturn true\n\t\t}\n\t\treturn false\n\t}\n\n\tt.Run(\"emitPodDeletionEvent\", func(t *testing.T) {\n\t\tcontroller := &NoExecuteTaintManager{}\n\t\trecorder := testutil.NewFakeRecorder()\n\t\tcontroller.recorder = recorder\n\t\tcontroller.emitPodDeletionEvent(types.NamespacedName{\n\t\t\tName: \"test\",\n\t\t\tNamespace: \"test\",\n\t\t})\n\t\twant := []*v1.Event{\n\t\t\t{\n\t\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t},\n\t\t\t\tInvolvedObject: v1.ObjectReference{\n\t\t\t\t\tKind: \"Pod\",\n\t\t\t\t\tAPIVersion: \"v1\",\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t\tName: \"test\",\n\t\t\t\t},\n\t\t\t\tReason: \"TaintManagerEviction\",\n\t\t\t\tType: \"Normal\",\n\t\t\t\tCount: 1,\n\t\t\t\tMessage: \"Marking for deletion Pod test/test\",\n\t\t\t\tSource: v1.EventSource{Component: \"nodeControllerTest\"},\n\t\t\t},\n\t\t}\n\t\tif diff := cmp.Diff(want, recorder.Events, cmp.FilterPath(f, cmp.Ignore())); len(diff) > 0 {\n\t\t\tt.Errorf(\"emitPodDeletionEvent() returned data (-want,+got):\\n%s\", diff)\n\t\t}\n\t})\n\n\tt.Run(\"emitCancelPodDeletionEvent\", func(t *testing.T) {\n\t\tcontroller := &NoExecuteTaintManager{}\n\t\trecorder := testutil.NewFakeRecorder()\n\t\tcontroller.recorder = recorder\n\t\tcontroller.emitCancelPodDeletionEvent(types.NamespacedName{\n\t\t\tName: \"test\",\n\t\t\tNamespace: \"test\",\n\t\t})\n\t\twant := []*v1.Event{\n\t\t\t{\n\t\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t},\n\t\t\t\tInvolvedObject: v1.ObjectReference{\n\t\t\t\t\tKind: \"Pod\",\n\t\t\t\t\tAPIVersion: \"v1\",\n\t\t\t\t\tNamespace: \"test\",\n\t\t\t\t\tName: \"test\",\n\t\t\t\t},\n\t\t\t\tReason: \"TaintManagerEviction\",\n\t\t\t\tType: \"Normal\",\n\t\t\t\tCount: 1,\n\t\t\t\tMessage: \"Cancelling deletion of Pod test/test\",\n\t\t\t\tSource: v1.EventSource{Component: \"nodeControllerTest\"},\n\t\t\t},\n\t\t}\n\t\tif diff := cmp.Diff(want, recorder.Events, cmp.FilterPath(f, cmp.Ignore())); len(diff) > 0 {\n\t\t\tt.Errorf(\"emitPodDeletionEvent() returned data (-want,+got):\\n%s\", diff)\n\t\t}\n\t})\n}",
"func (dahree DeployedApplicationHealthReportExpiredEvent) AsPartitionAnalysisEvent() (*PartitionAnalysisEvent, bool) {\n\treturn nil, false\n}"
] | [
"0.66746604",
"0.5679185",
"0.5603602",
"0.54718727",
"0.5469066",
"0.53701395",
"0.5283247",
"0.5211623",
"0.514331",
"0.51111245",
"0.5086899",
"0.50617135",
"0.5045454",
"0.49924067",
"0.4975119",
"0.48764288",
"0.48322082",
"0.4809844",
"0.48009396",
"0.47904846",
"0.47883278",
"0.4745966",
"0.47264653",
"0.47170606",
"0.47114718",
"0.4700677",
"0.46652254",
"0.46564957",
"0.46457708",
"0.45982954",
"0.4591983",
"0.45870662",
"0.45798218",
"0.4569377",
"0.45646203",
"0.45623305",
"0.45511007",
"0.4532901",
"0.4515842",
"0.44908586",
"0.44886574",
"0.4479756",
"0.4478042",
"0.4468729",
"0.44549876",
"0.44483677",
"0.4448123",
"0.44458267",
"0.44414723",
"0.4437657",
"0.4435824",
"0.4435529",
"0.44343284",
"0.44281948",
"0.44225615",
"0.4419886",
"0.4417704",
"0.44164097",
"0.44093913",
"0.44003364",
"0.4380324",
"0.43734464",
"0.4372922",
"0.43599033",
"0.43597287",
"0.43597114",
"0.43563482",
"0.43560326",
"0.4352162",
"0.43504167",
"0.43501553",
"0.4349452",
"0.43485764",
"0.43476042",
"0.43472856",
"0.43468365",
"0.43448952",
"0.43442005",
"0.43429986",
"0.43385288",
"0.43380597",
"0.4319721",
"0.43173105",
"0.43142745",
"0.43124703",
"0.43097818",
"0.43021205",
"0.4301027",
"0.42978227",
"0.4295031",
"0.42926764",
"0.42865282",
"0.42817485",
"0.42814246",
"0.42800817",
"0.42790946",
"0.42786843",
"0.42781314",
"0.42743063",
"0.42723083"
] | 0.76325077 | 0 |
SetResponse : set template of the return | func SetResponse(s bool, m string, d interface{}) OutStruct {
out := OutStruct{
IsSuccess: s,
Message: m,
Data: d,
}
return out
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func setResponse(data interface{}, w http.ResponseWriter) {\n\tmarshalResp, _ := json.Marshal(data)\n\n\t_, err := w.Write(marshalResp)\n\tif err != nil {\n\t\tw.WriteHeader(http.StatusInternalServerError)\n\t\tlog.Print(err)\n\t}\n}",
"func setResponseHeader(w http.ResponseWriter) http.ResponseWriter {\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\tw.WriteHeader(http.StatusOK)\n\treturn w\n}",
"func (resource *billingInfoList) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func set(w http.ResponseWriter, req *http.Request) {\n\tresponse := \"\"\n\tswitch req.RequestURI {\n\tcase \"/get/accounts\":\n\t\tmapD := map[string]int{\"apple\": 5, \"lettuce\": 7}\n\t\tmapB, _ := json.Marshal(mapD)\n\t\tresponse = string(mapB)\n\t\tbreak\n\tdefault:\n\t\tr, _ := json.Marshal(\"Request not found\")\n\t\tresponse = string(r)\n\t\tbreak\n\t}\n\n\tcontext := Context{Title: response}\n\trender(w, \"api\", context)\n}",
"func (r *Response) SetWriter(w http.ResponseWriter) { r.ResponseWriter = w }",
"func normalResponse(w http.ResponseWriter, r *http.Request){\n\trespStr := `<html>\n<head><title> My Custom Response </title> </head>\n<body> <h1> Testing the response headers ...... </h1></body>\n</html>`\nw.Write([]byte(respStr))\n}",
"func (resource *BillingInfo) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func (resource *TransactionPaymentGateway) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func (resource *transactionPaymentGatewayList) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func (resource *Account) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func (resource *SubscriptionAddOn) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func (resource *subscriptionAddOnList) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func (s *IdeaStorage) SetResponse(number int, text string, userID, status int) error {\n\tfor _, idea := range s.ideas {\n\t\tif idea.Number == number {\n\t\t\tidea.Response = &models.IdeaResponse{\n\t\t\t\tText: text,\n\t\t\t\tUser: &models.User{ID: userID},\n\t\t\t\tRespondedOn: time.Now(),\n\t\t\t}\n\t\t}\n\t}\n\treturn nil\n}",
"func (app *Configurable) SetResponseData(parameters map[string]string) interfaces.AppFunction {\n\ttransform := transforms.ResponseData{}\n\n\tvalue, ok := parameters[ResponseContentType]\n\tif ok && len(value) > 0 {\n\t\ttransform.ResponseContentType = value\n\t}\n\n\treturn transform.SetResponseData\n}",
"func ResponseWriter(customResponse model.CustomResponse, transform string, cc *model.CustomContext) error {\n\tvar statusCode int\n\tstatusCode = customResponse.StatusCode\n\n\tresponseBody := customResponse.Body\n\tresponseHeader := customResponse.Header\n\n\tif customResponse.Error != nil {\n\t\tlog.Error(\"response error : \", customResponse.Error.Error())\n\t\tresponseBody[\"error\"] = customResponse.Error.Error()\n\t}\n\n\tSetHeaderResponse(responseHeader, cc)\n\tif statusCode == 0 {\n\t\tlog.Warn(\"Status Code is not defined, set Status code to 4000\")\n\t\tstatusCode = 400\n\t}\n\n\tswitch strings.ToLower(transform) {\n\tcase strings.ToLower(\"ToJson\"):\n\t\treturn cc.JSON(statusCode, responseBody)\n\tcase strings.ToLower(\"ToXml\"):\n\n\t\tresByte, err := service.ToXml(responseBody)\n\n\t\tif err != nil {\n\t\t\tlog.Error(err.Error())\n\t\t\tres := make(map[string]interface{})\n\t\t\tres[\"message\"] = err.Error()\n\t\t\treturn cc.XML(500, res)\n\t\t}\n\t\treturn cc.XMLBlob(statusCode, resByte)\n\tdefault:\n\t\treturn cc.JSON(statusCode, responseBody)\n\t}\n}",
"func (resource *accountList) setResponse(res *ResponseMetadata) {\n\tresource.recurlyResponse = res\n}",
"func CreateResponse(w *gin.Context, payload interface{}) {\n\tw.JSON(200, payload)\n}",
"func (bstr BlobsSetTierResponse) Response() *http.Response {\n\treturn bstr.rawResponse\n}",
"func Response(c *routing.Context, response string, statuscode int, service string, contentType string) {\n\tutils.LogMessage(\"RESPONSE ==> \"+response, utils.DebugLogType)\n\n\tc.Response.SetBody([]byte(response))\n\tc.Response.Header.SetContentType(contentType)\n\tc.Response.Header.Set(\"service\", service)\n\tc.Response.Header.SetStatusCode(statuscode)\n}",
"func (ccr ContainersCreateResponse) Response() *http.Response {\n\treturn ccr.rawResponse\n}",
"func (sspr ServiceSetPropertiesResponse) Response() *http.Response {\n\treturn sspr.rawResponse\n}",
"func (ctx *RequestContext) TemplateResponse(template *template.Template, templateName string, data interface{}) ResponseFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tif err := template.ExecuteTemplate(w, templateName, data); err != nil {\n\t\t\tctx.NotifyError(err, http.StatusInternalServerError)\n\t\t\thttp.Error(w, ctx.CustomErrorMessage(err, ctx.framework.DefaultErrorText), http.StatusInternalServerError)\n\t\t}\n\t}\n}",
"func (r *tee) Response(filters.FilterContext) {}",
"func RenderTemplateResponse(t *template.Template, vars interface{}) *OkResponse {\n\tresponse := NewResponse()\n\tresponse.SetContent(RenderTemplate(t, vars))\n\treturn response\n}",
"func (csmr ContainersSetMetadataResponse) Response() *http.Response {\n\treturn csmr.rawResponse\n}",
"func (o *GetGitignoreTemplatesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.WriteHeader(200)\n\tpayload := o.Payload\n\tif payload == nil {\n\t\tpayload = make(models.Gitignore, 0, 50)\n\t}\n\n\tif err := producer.Produce(rw, payload); err != nil {\n\t\tpanic(err) // let the recovery middleware deal with this\n\t}\n\n}",
"func PlainResponse(contentType string, val interface{}) Response {\n\treturn SimpleResponse(http.StatusOK, contentType, val)\n}",
"func (rd *MasterScheduleResponse) Render(w http.ResponseWriter, r *http.Request) error {\n\t// Pre-processing before a response is marshalled and sent across the wire\n\treturn nil\n}",
"func SetTemplate(w http.ResponseWriter, r *http.Request) {\n\tfmt.Fprintf(w, \"URL PATH - %s!\", r.URL.Path[1:])\n}",
"func (_m *AppFunctionContext) SetResponseContentType(_a0 string) {\n\t_m.Called(_a0)\n}",
"func (r *Reflector) SetJSONResponse(o *Operation, output interface{}, httpStatus int) error {\n\treturn r.SetupResponse(OperationContext{\n\t\tOperation: o,\n\t\tOutput: output,\n\t\tHTTPStatus: httpStatus,\n\t})\n}",
"func (o *UpdateProviderTypeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(201)\n}",
"func SetHeaderResponse(header map[string]interface{}, cc *model.CustomContext) *model.CustomContext {\n\tfor key, val := range header {\n\t\tif val == nil {\n\t\t\tlog.Warn(\"set header response for key : \", key, \" val is : \", val, \" is equal to nil\")\n\t\t} else {\n\t\t\trt := reflect.TypeOf(val)\n\t\t\t//* only add if interface type is string\n\t\t\tif key != \"Content-Length\" && key != \"Content-Type\" {\n\t\t\t\tif rt.Kind() == reflect.String {\n\t\t\t\t\tcc.Response().Header().Set(key, val.(string))\n\n\t\t\t\t} else if rt.Kind() == reflect.Int {\n\t\t\t\t\tvalString := strconv.Itoa(val.(int))\n\t\t\t\t\tcc.Response().Header().Set(key, valString)\n\t\t\t\t} else {\n\t\t\t\t\tlog.Warn(\" set header response for key \", key, \" val : \", val, \" is not a string or int. type is \", rt.Kind())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn cc\n\n}",
"func (h *Handler) responseRenderStep(context Context, response interface{}) {\n\tswitch response.(type) {\n\tcase *RenderResponse:\n\t\t// In this step, the inner template is rendered and written to the context\n\t\t// where it's output is available from context.Content()\n\t\tr := response.(*RenderResponse)\n\t\th.execTemplate(r.Template, context, context)\n\tcase *NotFoundResponse:\n\t\tr := response.(*NotFoundResponse)\n\t\th.execTemplate(r.Template, context, context)\n\t}\n}",
"func (c *CaptureResponse) Render(w http.ResponseWriter, r *http.Request) error {\n\tc.Price = c.c.Price\n\tc.Status = c.c.Status.String()\n\n\treturn nil\n}",
"func MockSetMetadataResponse(t *testing.T) {\n\tth.Mux.HandleFunc(shareEndpoint+\"/\"+shareID+\"/metadata\", func(w http.ResponseWriter, r *http.Request) {\n\t\tth.TestMethod(t, r, \"POST\")\n\t\tth.TestHeader(t, r, \"X-Auth-Token\", fake.TokenID)\n\t\tth.TestHeader(t, r, \"Content-Type\", \"application/json\")\n\t\tth.TestHeader(t, r, \"Accept\", \"application/json\")\n\t\tth.TestJSONRequest(t, r, setMetadataRequest)\n\t\tw.Header().Add(\"Content-Type\", \"application/json\")\n\t\tw.WriteHeader(http.StatusOK)\n\t\tfmt.Fprint(w, setMetadataResponse)\n\t})\n}",
"func (DefaultDispatcher) Write(rw http.ResponseWriter, resp Response) error {\n\tswitch x := resp.(type) {\n\tcase JSONResponse:\n\t\trw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\t\tio.WriteString(rw, \")]}',\\n\") // Break parsing of JavaScript in order to prevent XSSI.\n\t\treturn json.NewEncoder(rw).Encode(x.Data)\n\tcase *TemplateResponse:\n\t\tt, ok := (x.Template).(*template.Template)\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"%T is not a safe template and it cannot be parsed and written\", t)\n\t\t}\n\t\trw.Header().Set(\"Content-Type\", \"text/html; charset=utf-8\")\n\t\tif len(x.FuncMap) == 0 {\n\t\t\tif x.Name == \"\" {\n\t\t\t\treturn t.Execute(rw, x.Data)\n\t\t\t}\n\t\t\treturn t.ExecuteTemplate(rw, x.Name, x.Data)\n\t\t}\n\t\tcloned, err := t.Clone()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcloned = cloned.Funcs(x.FuncMap)\n\t\tif x.Name == \"\" {\n\t\t\treturn cloned.Execute(rw, x.Data)\n\t\t}\n\t\treturn cloned.ExecuteTemplate(rw, x.Name, x.Data)\n\tcase safehtml.HTML:\n\t\trw.Header().Set(\"Content-Type\", \"text/html; charset=utf-8\")\n\t\t_, err := io.WriteString(rw, x.String())\n\t\treturn err\n\tcase FileServerResponse:\n\t\trw.Header().Set(\"Content-Type\", x.ContentType())\n\t\t// The http package will take care of writing the file body.\n\t\treturn nil\n\tcase RedirectResponse:\n\t\thttp.Redirect(rw, x.Request.req, x.Location, int(x.Code))\n\t\treturn nil\n\tcase NoContentResponse:\n\t\trw.WriteHeader(int(StatusNoContent))\n\t\treturn nil\n\tdefault:\n\t\treturn fmt.Errorf(\"%T is not a safe response type and it cannot be written\", resp)\n\t}\n}",
"func (r *syncResponse) Render(w http.ResponseWriter) error {\n\t// Set an appropriate ETag header\n\tif r.eTag != nil {\n\t\tif eTag, err := etag.Hash(r.eTag); err == nil {\n\t\t\tw.Header().Set(\"ETag\", eTag)\n\t\t}\n\t}\n\n\tstatus := http.StatusOK\n\tif !r.success {\n\t\tstatus = http.StatusBadRequest\n\t}\n\n\tif r.headers != nil {\n\t\tfor h, v := range r.headers {\n\t\t\tw.Header().Set(h, v)\n\t\t}\n\t}\n\n\tif r.location != \"\" {\n\t\tw.Header().Set(\"Location\", r.location)\n\t\tif r.code == 0 {\n\t\t\tw.WriteHeader(201)\n\t\t} else {\n\t\t\tw.WriteHeader(r.code)\n\t\t}\n\t}\n\n\treturn json.Write(w, client.ResponseRaw{\n\t\tType: client.SyncResponse,\n\t\tStatus: http.StatusText(status),\n\t\tStatusCode: status,\n\t\tMetadata: r.metadata,\n\t}, false, r.logger)\n}",
"func basicResponseWrapper(toEmbed string, template string) (string, error) {\n\treturn toEmbed, nil\n}",
"func CreateSetCasterConfigResponse() (response *SetCasterConfigResponse) {\n\tresponse = &SetCasterConfigResponse{\n\t\tBaseResponse: &responses.BaseResponse{},\n\t}\n\treturn\n}",
"func (csapr ContainersSetAccessPolicyResponse) Response() *http.Response {\n\treturn csapr.rawResponse\n}",
"func restResponse(handler http.HandlerFunc) http.HandlerFunc {\n\treturn func (w http.ResponseWriter, r *http.Request){\n\t\tw.Header().Set(\"Content-Type\",\"application/json\")\n\t\thandler(w,r)\n\t}\n}",
"func (c *Context) Response(code int, body interface{}, message string, v ...interface{}) {\n\tc.JSON(200, ResponseWriter(code, fmt.Sprintf(message, v...), body))\n}",
"func (bsmr BlobsSetMetadataResponse) Response() *http.Response {\n\treturn bsmr.rawResponse\n}",
"func (tr *TradeResponse) Render(w http.ResponseWriter, r *http.Request) error {\n\treturn nil\n}",
"func MockCreateResponse(t *testing.T) {\n\tth.Mux.HandleFunc(shareEndpoint, func(w http.ResponseWriter, r *http.Request) {\n\t\tth.TestMethod(t, r, \"POST\")\n\t\tth.TestHeader(t, r, \"X-Auth-Token\", fake.TokenID)\n\t\tth.TestHeader(t, r, \"Content-Type\", \"application/json\")\n\t\tth.TestHeader(t, r, \"Accept\", \"application/json\")\n\t\tth.TestJSONRequest(t, r, createRequest)\n\t\tw.Header().Add(\"Content-Type\", \"application/json\")\n\t\tw.WriteHeader(http.StatusOK)\n\t\tfmt.Fprintf(w, createResponse)\n\t})\n}",
"func (o *CreateSpoeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\t// response header Configuration-Version\n\n\tconfigurationVersion := o.ConfigurationVersion\n\tif configurationVersion != \"\" {\n\t\trw.Header().Set(\"Configuration-Version\", configurationVersion)\n\t}\n\n\trw.WriteHeader(o._statusCode)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func (o *PutMeetupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(o._statusCode)\n}",
"func (o *CreateTaskCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\t// response header Location\n\n\tlocation := o.Location.String()\n\tif location != \"\" {\n\t\trw.Header().Set(\"Location\", location)\n\t}\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(201)\n}",
"func (c *Controller) Render(templateStr string, vars interface{}) *OkResponse {\n\tresponse := NewResponse()\n\tresponse.SetContent(c.RenderView(templateStr, vars))\n\treturn response\n}",
"func htmlResponseWrapper(toEmbed string, template string) (string, error) {\n\tif strings.Contains(template, embedPlaceholder) {\n\t\tformattedEmbed := fmt.Sprintf(embedFormat, toEmbed)\n\t\treturn strings.Replace(template, embedPlaceholder, formattedEmbed, 1), nil\n\t}\n\treturn \"\", errors.New(\"Invalid template - missing the placeholder for the embedded response\")\n}",
"func CreateValuateTemplateResponse() (response *ValuateTemplateResponse) {\n\tresponse = &ValuateTemplateResponse{\n\t\tBaseResponse: &responses.BaseResponse{},\n\t}\n\treturn\n}",
"func response(r *http.Request, w http.ResponseWriter, resp interface{}) {\n\twriteResponse(r, w, http.StatusOK, resp)\n}",
"func (o *UserEditOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(200)\n}",
"func (l *Lambda) ResponseHeaderSet(header, value string) {\n\tl.w.Header().Set(header, value)\n}",
"func Response(c *gin.Context, status int, body interface{}) {\n\taccType := c.GetHeader(\"Accept\")\n\tif accType == \"application/xml\" {\n\t\tc.XML(status, body)\n\t\treturn\n\t}\n\tc.JSON(status, body)\n}",
"func (r *Response) Reset(w http.ResponseWriter) {\n\t*r = Response{ResponseWriter: w, Status: http.StatusOK}\n}",
"func (o *CreateTaskDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\t// response header X-Error-Code\n\n\txErrorCode := o.XErrorCode\n\tif xErrorCode != \"\" {\n\t\trw.Header().Set(\"X-Error-Code\", xErrorCode)\n\t}\n\n\trw.WriteHeader(o._statusCode)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func encodeGetTagResponse(ctx context.Context, w http.ResponseWriter, response interface{}) (err error) {\n\tif f, ok := response.(endpoint.Failure); ok && f.Failed() != nil {\n\t\tErrorEncoder(ctx, f.Failed(), w)\n\t\treturn nil\n\t}\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\terr = json.NewEncoder(w).Encode(response)\n\tif err != nil {\n\t\t\tlogrus.Warn(err.Error())\n\t\t}\n\treturn\n}",
"func (f *Frontend) Respond(w http.ResponseWriter, r *http.Request, resp *HTMLResponse) {\n\tsettings := f.Modules.Settings\n\tt, err := f.prepareTemplates(settings.TemplatesDirectory) // TODO(henvic): cache in production.\n\tif err != nil {\n\t\tlog.Printf(\"cannot parse template files: %v\\n\", err)\n\t\thttp.Error(w, fmt.Sprintf(\"%v: template error\", http.StatusText(http.StatusInternalServerError)), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tresp.Params = &HTMLResponseParams{\n\t\tSettings: &f.Modules.Settings,\n\t\tCSRFField: csrfField(r),\n\t\tRequest: r,\n\t\tUser: services.UserFromRequest(r),\n\t}\n\n\tvar writer io.Writer = w // If response doesn't use layout, do not buffer.\n\tvar buf bytes.Buffer\n\tif !resp.SkipLayout {\n\t\twriter = &buf\n\t}\n\tif err := t.ExecuteTemplate(writer, resp.Template, resp); err != nil {\n\t\tlog.Printf(\"cannot print template %q: %v\\n\", resp.Template, err)\n\t\thttp.Error(w, fmt.Sprintf(\"%v: %q template execution error\", http.StatusText(http.StatusInternalServerError), resp.Template), http.StatusInternalServerError)\n\t\treturn\n\t}\n\tif !resp.SkipLayout {\n\t\twrapLayout(w, t, &buf, resp)\n\t\tbuf.WriteTo(w)\n\t}\n}",
"func (o *CreateTCPCheckDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\t// response header Configuration-Version\n\n\tconfigurationVersion := o.ConfigurationVersion\n\tif configurationVersion != \"\" {\n\t\trw.Header().Set(\"Configuration-Version\", configurationVersion)\n\t}\n\n\trw.WriteHeader(o._statusCode)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func encodeGetByCreteriaResponse(ctx context.Context, w http1.ResponseWriter, response interface{}) (err error) {\n\tif f, ok := response.(endpoint.Failure); ok && f.Failed() != nil {\n\t\tErrorEncoder(ctx, f.Failed(), w)\n\t\treturn nil\n\t}\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\terr = json.NewEncoder(w).Encode(response)\n\treturn\n}",
"func newResponse(r *http.Response) *Response {\n\tresponse := &Response{Response: r}\n\tresponse.populatePageValues()\n\treturn response\n}",
"func generateResponse(ps []params) *plugin.CodeGeneratorResponse {\n\tvar resp plugin.CodeGeneratorResponse\n\n\tfor _, p := range ps {\n\t\tw := &bytes.Buffer{}\n\t\tif err := tmpl.Execute(w, p); err != nil {\n\t\t\tlog.Fatal(\"unable to execute template: \" + err.Error())\n\t\t}\n\n\t\tfmted, err := format.Source([]byte(w.String()))\n\t\tif err != nil {\n\t\t\tlog.Fatal(\"unable to go-fmt output: \" + err.Error())\n\t\t}\n\n\t\tfileName := \"service.go\"\n\t\tfileContent := string(fmted)\n\t\tresp.File = append(resp.File, &plugin.CodeGeneratorResponse_File{\n\t\t\tName: &fileName,\n\t\t\tContent: &fileContent,\n\t\t})\n\t}\n\n\treturn &resp\n}",
"func (o *GetServiceInstanceByNameDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.WriteHeader(o._statusCode)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func newResponse(w http.ResponseWriter) *response {\n\treturn &response{\n\t\tResponseWriter: w,\n\t\tsize: 0,\n\t\tstatus: http.StatusOK,\n\t\theadersSend: false,\n\t}\n}",
"func encodeCreateTagResponse(ctx context.Context, w http.ResponseWriter, response interface{}) (err error) {\n\tif f, ok := response.(endpoint.Failure); ok && f.Failed() != nil {\n\t\tErrorEncoder(ctx, f.Failed(), w)\n\t\treturn nil\n\t}\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\terr = json.NewEncoder(w).Encode(response)\n\tif err != nil {\n\t\t\tlogrus.Warn(err.Error())\n\t\t}\n\treturn\n}",
"func (h *HttpResponse) Response(resp http.ResponseWriter) {\n\tresp.WriteHeader(http.StatusOK)\n\tdata, _ := json.Marshal(h)\n\tresp.Write(data)\n}",
"func ResponseSetHeader(key, value string) ResponseModifier {\n\treturn func(resp *http.Response, err error) (*http.Response, error) {\n\t\tif resp != nil {\n\t\t\tif resp.Header == nil {\n\t\t\t\tresp.Header = make(http.Header)\n\t\t\t}\n\t\t\tresp.Header.Set(key, value)\n\t\t}\n\t\treturn resp, err\n\t}\n}",
"func writeResponse(data []byte, size int64, ctype string, w http.ResponseWriter) {\n\tw.Header().Set(\"Content-Type\", ctype)\n\tw.Header().Set(\"Content-Length\", fmt.Sprintf(\"%d\", size))\n\tw.Header().Set(\"Cache-Control\", \"no-transform,public,max-age=86400,s-maxage=2592000\")\n\tw.WriteHeader(http.StatusOK)\n\tw.Write(data)\n}",
"func (sfpr SetFilesystemPropertiesResponse) Response() *http.Response {\n\treturn sfpr.rawResponse\n}",
"func (c *Context) WriteResponse(obj interface{}, statusCode int) os.Error {\n\n\tvar error os.Error\n\n\t// get the formatter\n\tformatter, error := GetFormatter(c.Format)\n\n\tif error != nil {\n\t\tc.writeInternalServerError(error, http.StatusNotFound)\n\t\treturn error\n\t} else {\n\n\t\t// set the content type\n\t\tc.ResponseWriter.Header()[\"Content-Type\"] = []string{formatter.ContentType()}\n\n\t\t// format the output\n\t\toutput, error := formatter.Format(obj)\n\n\t\tif error != nil {\n\t\t\tc.writeInternalServerError(error, http.StatusInternalServerError)\n\t\t\treturn error\n\t\t} else {\n\n\t\t\toutputString := string(output)\n\n\t\t\t/*\n\t\t\t\tJSONP\n\t\t\t*/\n\t\t\tcallback := c.GetCallback()\n\t\t\tif callback != \"\" {\n\n\t\t\t\t// wrap with function call\n\n\t\t\t\trequestContext := c.GetRequestContext()\n\n\t\t\t\toutputString = callback + \"(\" + outputString\n\n\t\t\t\tif requestContext != \"\" {\n\t\t\t\t\toutputString = outputString + \", \\\"\" + requestContext + \"\\\")\"\n\t\t\t\t} else {\n\t\t\t\t\toutputString = outputString + \")\"\n\t\t\t\t}\n\n\t\t\t\t// set the new content type\n\t\t\t\tc.ResponseWriter.Header()[\"Content-Type\"] = []string{JSONP_CONTENT_TYPE}\n\n\t\t\t}\n\n\t\t\t// write the status code\n\t\t\tif strings.Index(c.Request.URL.Raw, REQUEST_ALWAYS200_PARAMETER) > -1 {\n\n\t\t\t\t// \"always200\"\n\t\t\t\t// write a fake 200 status code (regardless of what the actual code was)\n\t\t\t\tc.ResponseWriter.WriteHeader(http.StatusOK)\n\n\t\t\t} else {\n\n\t\t\t\t// write the actual status code\n\t\t\t\tc.ResponseWriter.WriteHeader(statusCode)\n\n\t\t\t}\n\n\t\t\t// write the output\n\t\t\tc.ResponseWriter.Write([]uint8(outputString))\n\n\t\t}\n\n\t}\n\n\t// success - no errors\n\treturn nil\n\n}",
"func Response(ctx *gin.Context, httpStatus int, code int, msg string, data interface{}) {\n\tctx.JSON(httpStatus, &Body{Code: code, Msg: msg, Data: data})\n}",
"func response(w http.ResponseWriter, s, c int) {\n\tw.Header().Set(\"Content-Type\", \"application/json\")\n\n\tresult, err := rollDice(s, c)\n\tif err != nil {\n\t\tsidesErrResponse(w)\n\t\treturn\n\t}\n\n\tresponse := rollResponse{c, s, result}\n\tw.WriteHeader(http.StatusOK)\n\tenc := json.NewEncoder(w)\n\tjsonEncode(w, enc, response)\n}",
"func (o *CreateMailerEntryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\t// response header Configuration-Version\n\n\tconfigurationVersion := o.ConfigurationVersion\n\tif configurationVersion != \"\" {\n\t\trw.Header().Set(\"Configuration-Version\", configurationVersion)\n\t}\n\n\trw.WriteHeader(o._statusCode)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func writeResponse(w http.ResponseWriter, h int, p interface{}) {\n\t// I set the content type...\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\t// ... I write the specified status code...\n\tw.WriteHeader(h)\n\t// ... and I write the response\n\tb, _ := json.Marshal(p)\n\tw.Write(b)\n}",
"func (cclr ContainersChangeLeaseResponse) Response() *http.Response {\n\treturn cclr.rawResponse\n}",
"func responseList (w http.ResponseWriter, response *model.Response, invoices *model.InvoicesResponse) {\n\tw.Header().Set(\"Access-Control-Allow-Origin\", \"*\")\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\tvar err error\n\tif response.Code < 0{\n\t\tw.WriteHeader(http.StatusInternalServerError)\n\t\terr = json.NewEncoder(w).Encode(&response)\n\t}else{\n\t\tw.WriteHeader(http.StatusOK)\n\t\terr = json.NewEncoder(w).Encode(&invoices)\n\t}\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}",
"func writeResponse(w http.ResponseWriter, authZRes *authorization.Response) {\n\n\tdata, err := json.Marshal(authZRes)\n\tif err != nil {\n\t\tlog.Fatal(\"Failed to marshel authz response %q\", err.Error())\n\t} else {\n\t\tw.Write(data)\n\t}\n\n\tif authZRes == nil || authZRes.Err != \"\" {\n\t\tw.WriteHeader(http.StatusInternalServerError)\n\t}\n}",
"func (o *GetMeetupsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(o._statusCode)\n}",
"func Set() http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tbody, err := ioutil.ReadAll(r.Body)\n\n\t\t// Default to NOT OK response\n\t\tresponse := core.JSONResponse{OK: false}\n\n\t\tif err != nil {\n\t\t\tlog.Error().Msgf(\"Error reading body: %v\", err)\n\t\t\thttp.Error(w, \"can't read body\", http.StatusBadRequest)\n\t\t\treturn\n\t\t}\n\n\t\t// Put body back\n\t\tr.Body.Close() // must close\n\t\tr.Body = ioutil.NopCloser(bytes.NewBuffer(body))\n\n\t\tif len(body) == 0 {\n\t\t\tresponse.Output = \"Error: Empty body\"\n\t\t\tresponse.Write(&w, r)\n\t\t\treturn\n\t\t}\n\n\t\tparams := mux.Vars(r)\n\t\tvar newdata Package\n\n\t\tif err = json.NewDecoder(r.Body).Decode(&newdata); err != nil {\n\t\t\tlog.Error().Err(err).Msg(\"Error decoding incoming JSON\")\n\t\t\tresponse.Output = err.Error()\n\t\t\tresponse.Write(&w, r)\n\t\t\treturn\n\t\t}\n\n\t\t// Call the setter\n\t\tnewdata.Name = params[\"name\"]\n\t\tcore.Session.Publish(params[\"name\"], newdata.Value)\n\n\t\t// Craft OK response\n\t\tresponse.OK = true\n\t\tresponse.Output = newdata\n\n\t\tresponse.Write(&w, r)\n\t}\n}",
"func Response(w http.ResponseWriter, httpStatus int, data interface{}) {\n\tif httpStatus == 0 {\n\t\thttpStatus = http.StatusOK\n\t}\n\tw.Header().Set(\"Content-Type\", \"application/json\")\n\tw.WriteHeader(httpStatus)\n\tjson.NewEncoder(w).Encode(data)\n}",
"func (o *ReplaceAppsV1NamespacedReplicaSetScaleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(401)\n}",
"func writeResponse(w *http.ResponseWriter, res responseData, status int) {\n\tresJSON, err := json.Marshal(res)\n\tif err != nil {\n\t\thttp.Error(*w, \"Failed to parse struct `responseData` into JSON object\", http.StatusInternalServerError)\n\t}\n\n\t(*w).Header().Set(\"Content-Type\", \"application/json\")\n\t(*w).WriteHeader(status)\n\t(*w).Write(resJSON)\n}",
"func (cfr CreateFilesystemResponse) Response() *http.Response {\n\treturn cfr.rawResponse\n}",
"func cacheResponse(next echo.HandlerFunc) echo.HandlerFunc {\n\treturn func(c echo.Context) error {\n\t\tc.Response().Writer = cache.NewWriter(c.Response().Writer, c.Request())\n\t\treturn next(c)\n\t}\n}",
"func encodePutDealStateResponse(ctx context.Context, w http1.ResponseWriter, response interface{}) (err error) {\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\terr = json.NewEncoder(w).Encode(response)\n\treturn\n}",
"func (_m *AppFunctionContext) SetResponseData(data []byte) {\n\t_m.Called(data)\n}",
"func (client *OutputsClient) createOrReplaceHandleResponse(resp *http.Response) (OutputsCreateOrReplaceResponse, error) {\n\tresult := OutputsCreateOrReplaceResponse{RawResponse: resp}\n\tif val := resp.Header.Get(\"ETag\"); val != \"\" {\n\t\tresult.ETag = &val\n\t}\n\tif err := runtime.UnmarshalAsJSON(resp, &result.Output); err != nil {\n\t\treturn OutputsCreateOrReplaceResponse{}, runtime.NewResponseError(err, resp)\n\t}\n\treturn result, nil\n}",
"func (o *GetQuestionFromTeamInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(500)\n}",
"func SetJSONResp(res http.ResponseWriter, httpCode int, resMessage []byte) {\n\tres.Header().Set(\"Content-type\", \"application/json\")\n\tres.WriteHeader(httpCode)\n\tres.Write(resMessage)\n}",
"func (o *UpdateHostIgnitionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses\n\n\trw.WriteHeader(201)\n}",
"func (rd *ScheduleResponse) Render(w http.ResponseWriter, r *http.Request) error {\n\t// Pre-processing before a response is marshalled and sent across the wire\n\treturn nil\n}",
"func Response(h **http.Response) CallOption {\n\treturn afterCall(func(resp *http.Response) {\n\t\t*h = resp\n\t})\n}",
"func generateResponseFile(templFP string, data *gengokit.Data, prevFile io.Reader) (io.Reader, error) {\n\tvar genCode io.Reader\n\tvar err error\n\n\t// Get the actual path to the file rather than the template file path\n\tactualFP := templatePathToActual(templFP, data.Service.Name)\n\n\tswitch templFP {\n\tcase service.ServicePath:\n\t\th, err := service.NewService(data.Service, prevFile)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot parse previous handler: %q\", actualFP)\n\t\t}\n\n\t\tif genCode, err = h.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render service template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(h, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.ServiceWrapperPath:\n\t\tw := service.NewServiceWrapper(prevFile)\n\t\tif genCode, err = w.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render middleware template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(w, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.CmdServerPath:\n\t\tr := service.NewCmdServer(prevFile)\n\t\tif genCode, err = r.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render cmd server template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(r, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.CmdClientPath:\n\t\tif data.Config.GenClient {\n\t\t\tr := service.NewCmdClient(prevFile)\n\t\t\tif genCode, err = r.Render(templFP, data); err != nil {\n\t\t\t\treturn nil, errors.Wrapf(err, \"cannot render cmd client template: %s\", templFP)\n\t\t\t}\n\t\t\tresponseInfo(r, filepath.Join(data.Config.ServicePath, actualFP))\n\t\t} else {\n\t\t\treturn nil, ErrGenIgnored\n\t\t}\n\tcase service.ServerPath:\n\t\tr := service.NewServer(nil) // override server.go\n\t\tif genCode, err = r.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render server template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(nil, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.ServerEndpointsPath:\n\t\tedp := service.NewServerEndpoints(prevFile)\n\t\tif genCode, err = edp.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render endpoints template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(edp, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.ServerInterruptPath:\n\t\tintrpt := service.NewServerInterrupt(prevFile)\n\t\tif genCode, err = intrpt.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render interrupt template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(intrpt, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.ServerWrapperPath:\n\t\tr := service.NewServerWrapper(prevFile)\n\t\tif genCode, err = r.Render(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render server template: %s\", templFP)\n\t\t}\n\t\tresponseInfo(r, filepath.Join(data.Config.ServicePath, actualFP))\n\tcase service.BaronPath:\n\t\tif genCode, err = applyTemplateFromPath(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render baron template: %s\", templFP)\n\t\t}\n\t\tactualFP = strings.TrimPrefix(actualFP, \"baron\")\n\t\tactualFP = filepath.Join(data.Config.PBPath, actualFP)\n\t\tresponseInfo(nil, actualFP)\n\tdefault:\n\t\tif genCode, err = applyTemplateFromPath(templFP, data); err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"cannot render template: %s\", templFP)\n\t\t}\n\t\tactualFP = filepath.Join(data.Config.ServicePath, actualFP)\n\t\tresponseInfo(nil, actualFP)\n\t}\n\n\tcodeBytes, err := ioutil.ReadAll(genCode)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// ignore error as we want to write the code either way to inspect after\n\t// writing to disk\n\tformattedCode := formatCode(codeBytes)\n\n\treturn bytes.NewReader(formattedCode), nil\n}",
"func (o *WeaviateThingTemplatesCreateNotImplemented) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.WriteHeader(501)\n}",
"func (o *WeaviateThingTemplatesCreateAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.WriteHeader(202)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func (o *CreateMailersSectionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\t// response header Configuration-Version\n\n\tconfigurationVersion := o.ConfigurationVersion\n\tif configurationVersion != \"\" {\n\t\trw.Header().Set(\"Configuration-Version\", configurationVersion)\n\t}\n\n\trw.WriteHeader(o._statusCode)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func (o *UpdateVMTempOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {\n\n\trw.WriteHeader(200)\n\tif o.Payload != nil {\n\t\tpayload := o.Payload\n\t\tif err := producer.Produce(rw, payload); err != nil {\n\t\t\tpanic(err) // let the recovery middleware deal with this\n\t\t}\n\t}\n}",
"func Response(res http.ResponseWriter, data map[string]interface{}) {\n\tres.Header().Add(\"Content-Type\", \"application/json\")\n\tjson.NewEncoder(res).Encode(data)\n}"
] | [
"0.712461",
"0.63913685",
"0.63061607",
"0.62987214",
"0.6259357",
"0.6249237",
"0.6242928",
"0.61497545",
"0.6149293",
"0.6142394",
"0.61227125",
"0.6095323",
"0.6039147",
"0.6038147",
"0.5995187",
"0.5979313",
"0.5964842",
"0.5907378",
"0.5899197",
"0.58737046",
"0.58706087",
"0.58272994",
"0.5804923",
"0.57769716",
"0.57534456",
"0.5737168",
"0.5734282",
"0.57331437",
"0.5728945",
"0.57208717",
"0.5713458",
"0.5704178",
"0.5683279",
"0.567908",
"0.5664453",
"0.56556934",
"0.5651947",
"0.5644811",
"0.5632007",
"0.56210726",
"0.5610185",
"0.5608918",
"0.55964917",
"0.55940163",
"0.5593503",
"0.5592644",
"0.5591588",
"0.5590946",
"0.55875766",
"0.55835533",
"0.5581457",
"0.5568952",
"0.5563234",
"0.5562707",
"0.5561292",
"0.55599093",
"0.5558632",
"0.55579907",
"0.5548624",
"0.55458796",
"0.5544924",
"0.5543013",
"0.55317485",
"0.5518465",
"0.5516736",
"0.551661",
"0.55142665",
"0.5510222",
"0.54988015",
"0.54924303",
"0.5487644",
"0.54875827",
"0.54826003",
"0.54820657",
"0.5477809",
"0.5471431",
"0.54693705",
"0.5467177",
"0.54671186",
"0.54663914",
"0.54659253",
"0.54648566",
"0.545962",
"0.54583913",
"0.5451274",
"0.54488593",
"0.54473275",
"0.5447259",
"0.54468197",
"0.54468155",
"0.54459465",
"0.54408556",
"0.54295987",
"0.54259324",
"0.542389",
"0.54227847",
"0.54219455",
"0.542086",
"0.5420303",
"0.5416618"
] | 0.6370501 | 2 |
tell the server to shut itself down. please do not change this function. | func (kv *KVRaft) kill() {
DPrintf("Kill(%d): die\n", kv.me)
kv.dead = true
close(kv.srvStopc)
//remove socket file
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *Controller) Down(wg *sync.WaitGroup, timeout time.Duration) {\n\tdefer wg.Done()\n\n\tcs := c.wrapper.CurrentState()\n\n\tif cs == ServerOffline {\n\t\tlogrus.Info(\"Minecraft Server already stopped\")\n\t\treturn\n\t}\n\n\tif cs == ServerStarting || cs == ServerOnline {\n\t\tif err := c.wrapper.Stop(); err != nil {\n\t\t\tlogrus.Errorf(\"Server Shutdown Failed:%+v\", err)\n\t\t\treturn\n\t\t}\n\t}\n\n\tif err := c.wrapper.WaitUntilOffline(timeout); err != nil {\n\t\tlogrus.Errorf(\"Server Shutdown Failed:%+v\", err)\n\t\treturn\n\t}\n\n\tlogrus.Info(\"Minecraft Server Exited Properly\")\n}",
"func shutDown(ctx context.Context, logger *log.Logger, srv *http.Server) {\n\tquit := make(chan os.Signal, 1)\n\tsignal.Notify(quit, os.Interrupt)\n\t<-quit\n\n\tlogger.Info(\"msg\", \"Shutting down HTTP/REST gateway server...\")\n\n\tctx, cancel := context.WithTimeout(ctx, 5*time.Second)\n\tdefer cancel()\n\n\tif err := srv.Shutdown(ctx); err != nil {\n\t\tlogger.Error(\"err\", fmt.Sprintf(\"Shutdown HTTP/REST gateway server: %s\", err.Error()))\n\t}\n\n\tlogger.Info(\"msg\", \"Shutdown done HTTP/REST gateway server\")\n}",
"func (s *Server) Shutdown() {\n\tclose(stop)\n}",
"func (d *DynamicSelect) shutDown() {\n\tif r := recover(); r != nil {\n\t\tlog.Printf(\"Recovered from panic in main DynamicSelect: %v\\n\", r)\n\t\tlog.Println(\"Attempting normal shutdown.\")\n\t}\n\n\t// just making sure.\n\td.killHeard = true\n\td.alive = false\n\td.running = false\n\tclose(d.done)\n\n\t// Tell the outside world we're done.\n\td.onKillAction()\n\n\t// Handle outstanding requests / a flood of closed messages.\n\tgo d.drainChannels()\n\n\t// Wait for internal listeners to halt.\n\td.listenerWG.Wait()\n\n\t// Make it painfully clear to the GC.\n\tclose(d.aggregator)\n\tclose(d.priorityAggregator)\n\tclose(d.onClose)\n}",
"func (s *SWIM) ShutDown() {\n\tatomic.CompareAndSwapInt32(&s.stopFlag, AVAILABLE, DIE)\n\ts.messageEndpoint.Shutdown()\n\ts.quitFD <- struct{}{}\n}",
"func (s *server) shutdown(ctx context.Context) error {\n\treturn s.server.Shutdown(ctx)\n}",
"func (s *Server) ShutDown(ctx context.Context) error {\n\treturn s.HTTPServer.Shutdown(ctx)\n}",
"func (this *ReceiverHolder) Shutdown() error {\n\tfmt.Println(\"Shutting down Server...please wait.\")\n\tfmt.Println(\"######################################\")\n\tthis.receiver.Stop()\n\tfmt.Println(\"######################################\")\n\treturn nil\n}",
"func (hd *Downloader) shutdown() {\n\textendDeadline(hd.conn, modules.NegotiateSettingsTime)\n\t// don't care about these errors\n\t_, _ = verifySettings(hd.conn, hd.host)\n\t_ = modules.WriteNegotiationStop(hd.conn)\n\tclose(hd.closeChan)\n}",
"func (s *server) shutdown() {\n\tif s.isShutdown {\n\t\treturn\n\t}\n\ts.mu.Lock()\n\tfmt.Printf(\"Shutting down server...\\n\")\n\ts.isShutdown = true\n\tif s.listener != nil {\n\t\ts.listener.Close()\n\t}\n\ts.mu.Unlock()\n}",
"func (s *Server) Shutdown(ctx context.Context) error {\n\t// logInfo(\"%v %v Shutdown...\", s.Handler.LogTag(), s.Listener.Addr())\n\tdefer logInfo(\"%v %v Shutdown\", s.Handler.LogTag(), s.Listener.Addr())\n\ts.running = false\n\ts.Listener.Close()\n\tselect {\n\tcase <-s.chStop:\n\tcase <-ctx.Done():\n\t\treturn ErrTimeout\n\t}\n\treturn nil\n}",
"func shutdownServer() {\n\tshutdownDelay := time.NewTimer(SHUTDOWN_DELAY)\n\t<-shutdownDelay.C\n\tsrv.Shutdown(context.Background())\n}",
"func Stop() {\n\t// /bin/dbus-send --system --dest=org.ganesha.nfsd --type=method_call /org/ganesha/nfsd/admin org.ganesha.nfsd.admin.shutdown\n}",
"func (s *testDoQServer) Shutdown() {\n\t_ = s.listener.Close()\n}",
"func (srv *Server) Stop() {\n Warn(fmt.Sprintf(\"stopping server %s\", srv.addrURL.String()))\n srv.mu.Lock()\n if srv.httpServer == nil {\n srv.mu.Unlock()\n return\n }\n graceTimeOut := time.Duration(50)\n ctx, cancel := context.WithTimeout(context.Background(), graceTimeOut)\n defer cancel()\n if err := srv.httpServer.Shutdown(ctx); err != nil {\n Debug(\"Wait is over due to error\")\n if err := srv.httpServer.Close(); err != nil {\n Debug(err.Error())\n }\n Debug(err.Error())\n }\n close(srv.stopc)\n <-srv.donec\n srv.mu.Unlock()\n Warn(fmt.Sprintf(\"stopped server %s\", srv.addrURL.String()))\n}",
"func (s *server) Stop() error {\n\t// Make sure this only happens once.\n\tif atomic.AddInt32(&s.shutdown, 1) != 1 {\n\t\tlogging.CPrint(logging.INFO, \"server is already in the process of shutting down\", logging.LogFormat{})\n\t\treturn nil\n\t}\n\n\ts.syncManager.Stop()\n\n\t// Signal the remaining goroutines to quit.\n\tclose(s.quit)\n\n\ts.wg.Done()\n\n\treturn nil\n}",
"func (s *Server) Stop() {\n\tclose(s.channelQuit)\n}",
"func (p *grpcPort) shutdown(ctx context.Context) {\n\tp.m.Lock()\n\tserver := p.server\n\tif p.healthSrv != nil {\n\t\tp.healthSrv.Shutdown() // announce we are going away\n\t}\n\tp.m.Unlock()\n\tif server != nil {\n\t\tserver.GracefulStop()\n\t}\n}",
"func (sc *ServerConn) Shutdown() {\n\tsc.cancel()\n}",
"func (s *Server) Stop() {\n\ts.logger.Notice(\"Shutting down %v server...\", s.name)\n\ts.killChan <- true\n\ts.logger.Notice(\"Server %v shutdown complete.\", s.name)\n}",
"func (s *server) Stop() {\n\tctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)\n\tdefer cancel()\n\n\ts.httpServer.SetKeepAlivesEnabled(false)\n\terr := s.httpServer.Shutdown(ctx)\n\tif err != nil {\n\t\ts.logger.Fatalf(\"could not gracefully shutdown the server: %v\\n\", err)\n\t}\n\n\t<-s.done\n}",
"func (m *Manager) shutdownServer() {\n\t// returns an error but ignoring for now\n\tm.srv.Shutdown(context.Background())\n}",
"func ShutDown() {\n\tC.shout_shutdown()\n}",
"func Teardown() {\n\tinitController()\n\tc.tm.Teardown()\n\tlog.Println(\"Server stopped.\")\n}",
"func (s *Server) Stop() error {\n\tif err := s.conn.Close(); err != nil {\n\t\treturn fmt.Errorf(\"Could not close connection. Err: %s\", err)\n\t}\n\n\terr := s.agonesSDK.Shutdown()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Could not shutdown Agones. Err: %s\", err)\n\t}\n\n\treturn nil\n}",
"func (s *Server) Shutdown() error {\n\ts.ctxCancel()\n\treturn nil\n}",
"func (h *healthcheckManager) shutdown() {\n\th.quit <- true\n\t<-h.stopped\n}",
"func (s *Server) Shutdown() {\n\ts.log.Info(\"shutting down server\", zap.Int(\"peers\", s.PeerCount()))\n\ts.transport.Close()\n\ts.discovery.Close()\n\ts.consensus.Shutdown()\n\tfor _, p := range s.getPeers(nil) {\n\t\tp.Disconnect(errServerShutdown)\n\t}\n\ts.bQueue.discard()\n\ts.bSyncQueue.discard()\n\tif s.StateRootCfg.Enabled {\n\t\ts.stateRoot.Shutdown()\n\t}\n\tif s.oracle != nil {\n\t\ts.oracle.Shutdown()\n\t}\n\tif s.notaryModule != nil {\n\t\ts.notaryModule.Stop()\n\t}\n\tif s.chain.P2PSigExtensionsEnabled() {\n\t\ts.notaryRequestPool.StopSubscriptions()\n\t}\n\tclose(s.quit)\n}",
"func (srv *Server) Stop() error {\n\tif err := srv.app.Shutdown(); err != nil {\n\t\treturn err\n\t}\n\tif err := srv.config.StorageDriver.Disconnect(); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func (n *Network) ShutDown() {\n\tdefer n.CancelFunc()\n\terr := n.H.Close()\n\tif err != nil {\n\t\tlog.Error(err)\n\t\tpanic(err)\n\t}\n}",
"func (s *SrvSession) Shutdown(ctx context.Context) {\n\tif s.srv != nil {\n\t\tif err := s.srv.Shutdown(ctx); err != nil && err != http.ErrServerClosed {\n\t\t\tlog.Warningf(\"Shutdown for [%v] %v\", s.listenAddr, err)\n\t\t}\n\t}\n}",
"func (s *PingServer) Shutdown() {\n\ts.srv.GracefulStop()\n}",
"func (s *server) Stop() error {\n\t// Bail if we're already shutting down.\n\tif atomic.AddInt32(&s.shutdown, 1) != 1 {\n\t\treturn nil\n\t}\n\n\t// Shutdown the wallet, funding manager, and the rpc server.\n\ts.chainNotifier.Stop()\n\ts.rpcServer.Stop()\n\ts.fundingMgr.Stop()\n\ts.chanRouter.Stop()\n\ts.htlcSwitch.Stop()\n\ts.utxoNursery.Stop()\n\ts.breachArbiter.Stop()\n\ts.discoverSrv.Stop()\n\ts.lnwallet.Shutdown()\n\n\t// Signal all the lingering goroutines to quit.\n\tclose(s.quit)\n\ts.wg.Wait()\n\n\treturn nil\n}",
"func (server *Server) Stop() {\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)\n\tif cancel != nil {\n\t\tserver.srv.Shutdown(ctx)\n\t\tserver.srv = nil\n\t}\n\tif server.hub != nil {\n\t\tserver.hub.stop()\n\t}\n}",
"func (sw *SimpleWebServer) Shutdown(ctx context.Context) error {\n\tif !sw.running {\n\t\treturn fmt.Errorf(\"not started\")\n\t}\n\tsw.running = false\n\treturn sw.Server.Shutdown(ctx)\n}",
"func (s *Server) Shutdown(ctx context.Context) error {\n\twg := &sync.WaitGroup{}\n\tc := make(chan struct{})\n\n\tgo func() {\n\t\tdefer close(c)\n\t\ts.GracefulStop()\n\t\twg.Wait()\n\t}()\n\n\tselect {\n\tcase <-c:\n\t\treturn nil\n\tcase <-ctx.Done():\n\t\treturn ctx.Err()\n\t}\n}",
"func (s *Server) Shutdown() error {\n\treturn s.Provider().Stop()\n}",
"func (s *Server) Stop() error {\n\ts.logger.Log(\"msg\", \"stopping\")\n\tctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)\n\tdefer cancelFn()\n\n\terr := s.encoder.(system.Stoppable).Stop()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\terr = s.mqtt.(system.Stoppable).Stop()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\terr = s.db.Stop()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn s.srv.Shutdown(ctx)\n}",
"func (a *App) Stop() {\n\t// Create a context to attempt a graceful 5 second shutdown.\n\tconst timeout = 5 * time.Second\n\tctx, cancel := context.WithTimeout(context.Background(), timeout)\n\tdefer cancel()\n\n\t// Attempt the graceful shutdown by closing the listener and\n\t// completing all inflight requests.\n\tif err := a.server.Shutdown(ctx); err != nil {\n\t\ta.logger.Printf(\"Could not stop server gracefully: %v\", err)\n\t\ta.logger.Printf(\"Initiating hard shutdown\")\n\t\tif err := a.server.Close(); err != nil {\n\t\t\ta.logger.Printf(\"Could not stop http server: %v\", err)\n\t\t}\n\t}\n}",
"func (sr *sapmReceiver) Shutdown(context.Context) error {\n\tif sr.server == nil {\n\t\treturn nil\n\t}\n\terr := sr.server.Close()\n\tsr.shutdownWG.Wait()\n\treturn err\n}",
"func (s *Server) Shutdown() error {\n\ts.api.ServerShutdown()\n\treturn nil\n}",
"func (g *Group) Shutdown(ctx context.Context) error {\n\tif g.transition(started, stopping) {\n\t\tdefer g.transition(stopping, stopped)\n\t\treturn g.execute(func(s Server) error {\n\t\t\treturn s.Shutdown(ctx)\n\t\t}, nil)\n\t}\n\n\treturn errors.New(\"server is already stopped or shutting down\")\n}",
"func (s *Server) Stop() {\n\ts.server.Stop()\n}",
"func (ms *MarvinServer) Stop() {\n\n}",
"func (s *Server) Shutdown() (err error) {\n\tlog.Info().Msg(\"gracefully shutting down\")\n\ts.srv.GracefulStop()\n\tif err = s.trisa.Shutdown(); err != nil {\n\t\tlog.Error().Err(err).Msg(\"could not shutdown trisa server\")\n\t\treturn err\n\t}\n\tlog.Debug().Msg(\"successful shutdown\")\n\treturn nil\n}",
"func (s *tcpServerBase) Shutdown() {\n\tlog.WithField(\"name\", s.name).Debug(\"shutting down\")\n\tclose(s.quit)\n\t_ = s.listener.Close()\n}",
"func (s *Server) shutdown() error {\n\ts.shutdownLock.Lock()\n\tdefer s.shutdownLock.Unlock()\n\n\ts.unregister(s.initialEntry)\n\n\tif s.shouldShutdown {\n\t\treturn nil\n\t}\n\ts.shouldShutdown = true\n\n\ts.shutdownChan <- true\n\t//s.shutdownChanProbe <- true\n\n\tif s.ipv4conn != nil {\n\t\ts.ipv4conn.Close()\n\t}\n\tif s.ipv6conn != nil {\n\t\ts.ipv6conn.Close()\n\t}\n\n\tlog.Println(\"Waiting for goroutines to finish\")\n\ts.waitGroup.Wait()\n\n\treturn nil\n}",
"func (s *SimpleServer) Stop() {\n\tif s != nil {\n\t\ts.shutdownReq <- true\n\t}\n}",
"func (s *Server) Stop() error {\n\t// Check if the server is running\n\tif !s.IsRunning() {\n\t\treturn errors.New(\"Attempted to stop a non-running server\")\n\t}\n\n\t// Shut down server gracefully, but wait no longer than a configured amount of seconds before halting\n\tctx, _ := context.WithTimeout(context.Background(), time.Duration(config.GetInstance().Server.Timeouts.ShutDown)*time.Second)\n\tif err := s.instance.Shutdown(ctx); err != nil {\n\t\treturn err\n\t}\n\n\ts.running = false\n\n\treturn nil\n}",
"func (s *Server) Shutdown() error {\n\ts.server.GracefulStop()\n\treturn nil\n}",
"func (s *Server) Shutdown(graceful bool) {\n\ts.yorkieServiceCancel()\n\n\tif graceful {\n\t\ts.grpcServer.GracefulStop()\n\t} else {\n\t\ts.grpcServer.Stop()\n\t}\n}",
"func (s *Server) Stop() {\n\ts.quit <- true\n\t<-s.quit\n}",
"func (s *Server) Stop() {\n\ts.stopAPIServer()\n\ts.stopFUSEServer()\n\ts.shutdown()\n}",
"func (s *Server) Stop(ctx context.Context) {\n\ts.shutdownFuncsM.Lock()\n\tdefer s.shutdownFuncsM.Unlock()\n\ts.shutdownOnce.Do(func() {\n\t\tclose(s.shuttingDown)\n\t\t// Shut down the HTTP server in parallel to calling any custom shutdown functions\n\t\twg := sync.WaitGroup{}\n\t\twg.Add(1)\n\t\tgo func() {\n\t\t\tdefer wg.Done()\n\t\t\tif err := s.srv.Shutdown(ctx); err != nil {\n\t\t\t\tslog.Debug(ctx, \"Graceful shutdown failed; forcibly closing connections 👢\")\n\t\t\t\tif err := s.srv.Close(); err != nil {\n\t\t\t\t\tslog.Critical(ctx, \"Forceful shutdown failed, exiting 😱: %v\", err)\n\t\t\t\t\tpanic(err) // Something is super hosed here\n\t\t\t\t}\n\t\t\t}\n\t\t}()\n\t\tfor _, f := range s.shutdownFuncs {\n\t\t\tf := f // capture range variable\n\t\t\twg.Add(1)\n\t\t\tgo func() {\n\t\t\t\tdefer wg.Done()\n\t\t\t\tf(ctx)\n\t\t\t}()\n\t\t}\n\t\twg.Wait()\n\t})\n}",
"func (ts *Server) Stop() error {\n\tif ts.Server == nil {\n\t\treturn nil\n\t}\n\tif err := ts.Server.Shutdown(context.Background()); err != nil {\n\t\treturn err\n\t}\n\tts.Server = nil\n\treturn nil\n}",
"func (srv *Server) Shutdown() {\n\tsrv.opsLock.Lock()\n\tsrv.shutdown = true\n\t// Don't block if there's no currently processed operations\n\tif srv.currentOps < 1 {\n\t\treturn\n\t}\n\tsrv.opsLock.Unlock()\n\t<-srv.shutdownRdy\n}",
"func (m *Server) Shutdown() error {\n\tm.Listener.Close()\n\treturn nil\n}",
"func (r *server) Stop() {\n\t// TODO: pass context in as a parameter.\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)\n\tdefer cancel()\n\n\tif err := r.stopHTTPServers(ctx); err != nil {\n\t\tlog.WithError(err).Error(\"Some HTTP servers failed to shutdown.\")\n\t}\n\n\tr.Server.Stop()\n}",
"func (s *Server) Shutdown() {\n\ts.candidate.endCampaign()\n\n\t// Shutdown the RPC listener.\n\tif s.rpcListener != nil {\n\t\tlogging.Info(\"core/server: shutting down RPC server at %v\", s.rpcListener.Addr())\n\t\ts.rpcListener.Close()\n\t}\n\n\tclose(s.shutdownChan)\n}",
"func (p *Proxy) Shutdown() {\n\tlog.Info(\"Shutting down server gracefully\")\n\tclose(p.shutdown)\n\tgraceful.Shutdown()\n\tp.gRPCStop()\n}",
"func (p *PrivNegAPI) Stop() {\n\tif err := p.server.Shutdown(nil); err != nil {\n\t\tpanic(err)\n\t}\n}",
"func (o *OmahaServer) Shutdown(ctx context.Context) {\n\to.server.Shutdown(ctx)\n\tclose(o.shuttingDown)\n}",
"func (ui *GUI) Shutdown() {\n\tctx, cl := context.WithTimeout(ui.cfg.Ctx, time.Second*5)\n\tdefer cl()\n\tif err := ui.server.Shutdown(ctx); err != nil {\n\t\tlog.Error(err)\n\t}\n}",
"func (s *Server) Stop() {\n\t// TODO write to `s.stop` channel\n}",
"func stopServer(w http.ResponseWriter, r *http.Request) {\n\tgo localServer.Shutdown(context.Background())\n}",
"func (w *Webserver) Stop() error {\n\tw.logger.Infof(\"gracefully shutting down http server at %d...\", w.config.Port)\n\n\terr := w.Server.Shutdown(context.Background())\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tclose(w.jobs)\n\treturn nil\n}",
"func (s *Server) Shutdown() {\n\tlog.Printf(\"server Shutdown 1\")\n\n\tif s.cancel != nil {\n\t\ts.cancel()\n\t}\n\n\t// Wait until interfaces shut down\n\ts.grpcStopped.Wait()\n\ts.restStopped.Wait()\n}",
"func (s *Server) Shutdown() {\n\ts.serverLock.Lock()\n\tdefer s.serverLock.Unlock()\n\ts.server.Stop()\n\ts.cancel()\n}",
"func (ser *Server) Stop() {\n\tmanners.Close()\n}",
"func (s *Server) Stop() {\n\tctx, cancel := context.WithTimeout(context.Background(), time.Second*10)\n\tdefer cancel()\n\n\ts.logger.Info(\"Shutting down\")\n\tif err := s.server.Shutdown(ctx); err != nil {\n\t\ts.logger.Errorw(\"HTTP server shutdown\",\n\t\t\t\"error\", err,\n\t\t)\n\t}\n}",
"func (srv *Server) Shutdown(ctx context.Context, wg *sync.WaitGroup) error {\n\tdefer wg.Done()\n\treturn srv.Server.Shutdown(ctx)\n}",
"func (s *Server) Stop() error {\n\treturn nil\n}",
"func (ws *WebServer) Shutdown() error {\n\terr := ws.server.Shutdown(context.Background())\n\tws.server = nil\n\treturn err\n}",
"func (t *TcpServer) Stop() {\n\tt.isRunning = false\n}",
"func serverShutdown(finalConn net.Conn) {\n\tvar shutdown string\n\t// If all clients have left... (Note this is never called when the server is started because no client has disconnected even though there are no clients)\n\tif len(connMap) == 0 {\n\t\tif err := finalConn.Close(); err == nil {\n\t\t\tfmt.Println(\"Closing final connection...\") // Close the connection of the last client\n\t\t\tfinalConn.Close()\n\t\t}\n\t\tfmt.Println(\"All users have left the chat\")\n\t\tfmt.Print(\"Do you wish to shut down the server ? yes/no : \")\n\t\tfmt.Scanln(&shutdown) // Put the message typed into shutdown\n\t\tif shutdown == \"yes\" {\n\t\t\tfmt.Print(\"Shutting down server...\")\n\t\t\tos.Exit(0) // Server shutdown with no error\n\t\t}\n\t}\n}",
"func (he *Editor) shutdown() {\n\textendDeadline(he.conn, modules.NegotiateSettingsTime)\n\t// don't care about these errors\n\t_, _ = verifySettings(he.conn, he.host)\n\t_ = modules.WriteNegotiationStop(he.conn)\n\tclose(he.closeChan)\n}",
"func (s *Server) Shutdown() {\n\ts.Registry.Deregister(s.uuid)\n}",
"func (s *Server) Shutdown() {\n\ts.Registry.Deregister(s.uuid)\n}",
"func WorkerShutDown(workerID int){\n\tworkerMsg := WorkerMessage{}\n\tworkerMsg.ID = workerID\n\n\tcall(\"Master.WorkerShutDown\", &workerMsg, &workerMsg)\n}",
"func (s *Server) Shutdown() {\n\tlog.Println(\"Shutting down\")\n\ts.shutdown()\n}",
"func (sc *serverConfig) Shutdown() {\n\tlog.Println(\"shutting down http server...\")\n\tsc.Shutdown()\n}",
"func (htmlServer *HTMLServer) Stop() error {\n\n\tconst timeout = 5 * time.Second\n\tctx, cancel := context.WithTimeout(context.Background(), timeout)\n\tdefer cancel()\n\n\tlog.Println(Detail(\"SERVER : Service stopping.\"))\n\n\tif e := htmlServer.server.Shutdown(ctx); e != nil {\n\n\t\tif e := htmlServer.server.Close(); e != nil {\n\t\t\tlog.Printf(Warn(\"SERVER : Service stopping : Error=%s\"), e)\n\t\t\treturn e\n\t\t}\n\t}\n\n\thtmlServer.wg.Wait()\n\tlog.Println(Detail(\"SERVER : Stopped\"))\n\treturn nil\n}",
"func (gate *Gate) Shutdown() {\n\tctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)\n\tdefer cancel()\n\n\tif err := gate.srv.Shutdown(ctx); err != nil {\n\t\tpanic(\"Server Shutdown Error : \" + err.Error())\n\t}\n\tfmt.Println(\"Server Exit\")\n}",
"func (s *DefaultServer) Shutdown() error {\n\terr := s.cmd.Wait()\n\tif err != nil {\n\t\treturn s.cmd.Process.Kill()\n\t}\n\n\treturn err\n}",
"func (as *AdminServer) Shutdown() error {\n\tctx, cancel := context.WithTimeout(context.Background(), time.Second*10)\n\tdefer cancel()\n\treturn as.server.Shutdown(ctx)\n}",
"func (s *Server) Stop() {\n\ts.g.Stop()\n}",
"func (e *Engine) Shutdown() error {\n\treturn e.server.Shutdown(context.TODO())\n}",
"func (d *Driver) Shutdown(ctx context.Context) error {\n\treturn d.Server.Shutdown(ctx)\n}",
"func (o *Object) StopHttpServer() {\n\t_ = o.server.Shutdown(context.Background())\n}",
"func (s *Server) OnStop() {}",
"func (s Server) Shutdown() {\n\ts.logger.Error(s.server.Shutdown(context.Background()))\n}",
"func (s *Server) Shutdown(ctx context.Context) error {\n\treturn s.service.Stop(ctx)\n}",
"func (c *Client) Shutdown() error {\n\tif _, err := c.httpPost(\"system/shutdown\", \"\"); err != nil {\n\t\treturn maskAny(err)\n\t}\n\treturn nil\n}",
"func (dd *DefaultDriver) Shutdown(ctx context.Context) error {\n\treturn dd.Server.Shutdown(ctx)\n}",
"func (s *WiringServer) Shutdown() {\n\ts.cacheServer.hs.Close()\n}",
"func (g GrpcServer) Stop() {\n\tg.server.GracefulStop()\n}",
"func (c *client) Shutdown(ctx context.Context, goodbye bool) error {\n\tq := url.Values{}\n\tif goodbye {\n\t\tq.Set(\"mode\", \"goodbye\")\n\t}\n\turl := c.createURL(\"/shutdown\", q)\n\n\treq, err := http.NewRequest(\"POST\", url, nil)\n\tif err != nil {\n\t\treturn maskAny(err)\n\t}\n\tif ctx != nil {\n\t\treq = req.WithContext(ctx)\n\t}\n\tresp, err := c.client.Do(req)\n\tif err != nil {\n\t\treturn maskAny(err)\n\t}\n\tif err := c.handleResponse(resp, \"POST\", url, nil); err != nil {\n\t\treturn maskAny(err)\n\t}\n\n\treturn nil\n}",
"func (s *callbackServer) Shutdown() {\n\tif err := s.server.Shutdown(context.Background()); err != nil {\n\t\tlog.Printf(\"HTTP server Shutdown error: %v\", err)\n\t}\n}",
"func (k *KeKahu) Shutdown() (err error) {\n\tinfo(\"shutting down the kekahu service\")\n\n\t// Shutdown the server\n\tif err = k.server.Shutdown(); err != nil {\n\t\tk.echan <- err\n\t}\n\n\t// Notify the run method we're done\n\t// NOTE: do this last or the cleanup proceedure won't be done.\n\tk.done <- true\n\treturn nil\n}",
"func (s *Server) Stop() {\n\ts.changeState(Stopping)\n\ts.shutdown()\n\ts.changeState(Stopped)\n}",
"func (srv *Server) Shutdown(ctx context.Context) error {\n\tif srv.Config.Stats != nil {\n\t\tif err := srv.Config.Stats.Shutdown(ctx); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\tif err := srv.ssh.Shutdown(ctx); err != nil {\n\t\treturn err\n\t}\n\treturn srv.http.Shutdown(ctx)\n}"
] | [
"0.73572785",
"0.70207286",
"0.6917515",
"0.6893283",
"0.68449605",
"0.68273586",
"0.68272525",
"0.6794633",
"0.67945284",
"0.67764705",
"0.67746544",
"0.6763797",
"0.67432606",
"0.6742723",
"0.6719656",
"0.66715115",
"0.6656428",
"0.6655946",
"0.66423935",
"0.664106",
"0.6592905",
"0.65808934",
"0.6578361",
"0.655352",
"0.65486485",
"0.65425485",
"0.6542433",
"0.65364015",
"0.6532539",
"0.6509797",
"0.65086615",
"0.65059865",
"0.6498564",
"0.648916",
"0.64880306",
"0.64649177",
"0.6463344",
"0.6438839",
"0.64369965",
"0.6430978",
"0.6422481",
"0.6422157",
"0.6421561",
"0.64174664",
"0.64066756",
"0.6403279",
"0.6400394",
"0.639441",
"0.63872164",
"0.6384622",
"0.63841593",
"0.6382596",
"0.6382509",
"0.6379903",
"0.63775814",
"0.6375238",
"0.6373477",
"0.63731736",
"0.63716394",
"0.6366486",
"0.6359201",
"0.6359195",
"0.63537353",
"0.63488525",
"0.63471055",
"0.6344549",
"0.6344369",
"0.63438267",
"0.63313746",
"0.6328713",
"0.63272846",
"0.63257766",
"0.63226044",
"0.6320141",
"0.6318098",
"0.63105035",
"0.6306543",
"0.6306543",
"0.6306216",
"0.6304217",
"0.63028425",
"0.6301801",
"0.6293736",
"0.6292113",
"0.62843424",
"0.628253",
"0.62814045",
"0.6280194",
"0.6272186",
"0.6267068",
"0.62561756",
"0.6254878",
"0.62507206",
"0.6247858",
"0.6246354",
"0.6237887",
"0.623097",
"0.62304723",
"0.62303174",
"0.62274134",
"0.62265253"
] | 0.0 | -1 |
NewFakeKT returns a new fake Key Transparency server listening on a random port. Returns the started server and a close function. | func NewFakeKT(ktServer pb.KeyTransparencyServer) (*FakeKT, func(), error) {
grpcServer := grpc.NewServer()
pb.RegisterKeyTransparencyServer(grpcServer, ktServer)
lis, err := net.Listen("tcp", "localhost:0")
if err != nil {
return nil, nil, err
}
go grpcServer.Serve(lis)
cc, err := grpc.Dial(lis.Addr().String(), grpc.WithInsecure())
if err != nil {
grpcServer.Stop()
lis.Close()
return nil, nil, err
}
stopFn := func() {
cc.Close()
grpcServer.Stop()
lis.Close()
}
return &FakeKT{
Server: ktServer,
Client: pb.NewKeyTransparencyClient(cc),
Addr: lis.Addr().String(),
}, stopFn, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func newDummyKeyServer() *server {\n\tdummy, _ := storagetest.DummyStorage(nil)\n\treturn &server{storage: dummy}\n}",
"func newServer(cert *shared.CertInfo, handler http.Handler) *httptest.Server {\n\tserver := httptest.NewUnstartedServer(handler)\n\tserver.TLS = util.ServerTLSConfig(cert)\n\tserver.StartTLS()\n\treturn server\n}",
"func newTestServer(logStore logstore.LogStore) *HTTPServer {\n\t// note: address doesn't matter since we will use httptest server\n\tserver := NewHTTP(&Config{BindAddress: \"127.0.0.1:8080\"}, logStore)\n\treturn server\n}",
"func newMockAuthServer(t *testing.T) string {\n\tl, err := Listen(\"tcp\", \"127.0.0.1:0\", serverConfig)\n\tif err != nil {\n\t\tt.Fatalf(\"unable to newMockAuthServer: %s\", err)\n\t}\n\tgo func() {\n\t\tdefer l.Close()\n\t\tc, err := l.Accept()\n\t\tdefer c.Close()\n\t\tif err != nil {\n\t\t\tt.Errorf(\"Unable to accept incoming connection: %v\", err)\n\t\t\treturn\n\t\t}\n\t\tif err := c.Handshake(); err != nil {\n\t\t\t// not Errorf because this is expected to\n\t\t\t// fail for some tests.\n\t\t\tt.Logf(\"Handshaking error: %v\", err)\n\t\t\treturn\n\t\t}\n\t}()\n\treturn l.Addr().String()\n}",
"func NewTestServer(port, ctlPort int, cmdlineArgs ...string) (*TestServer, error) {\n\n\tmdz := os.Getenv(\"MEDUZA_BIN\")\n\tif mdz == \"\" {\n\t\tmdz = mdzCommand\n\t}\n\n\tcmdlineArgs = append(cmdlineArgs, \"-test\",\n\t\tfmt.Sprintf(\"-port=%d\", port), fmt.Sprintf(\"-ctl_port=%d\", ctlPort))\n\n\tcmd := exec.Command(mdz, cmdlineArgs...)\n\n\tlog.Println(\"start args: \", cmd.Args)\n\n\ts := &TestServer{\n\t\tcmd: cmd,\n\t\trunning: false,\n\t\tport: port,\n\t\tctlPort: ctlPort,\n\t}\n\n\terr := s.run()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\ts.running = true\n\n\treturn s, nil\n\n}",
"func NewTestServer(t *testing.T, debug bool) *FtpServer {\n\treturn NewTestServerWithDriver(t, &TestServerDriver{Debug: debug})\n}",
"func NewTestServer() *Server {\n\n\ts := &Server{\n\t\treceivedPayloads: &payloadCollection{},\n\t}\n\thttpserver := httptest.NewUnstartedServer(s)\n\taddr := httpserver.Listener.Addr().String()\n\ts.ServerAddr = addr\n\ts.server = httpserver\n\treturn s\n}",
"func newFakeACMEServer() (*fakeACMEServer, *httptest.Server) {\n\tas := &fakeACMEServer{}\n\tmux := http.NewServeMux()\n\thts := httptest.NewServer(mux)\n\tu, err := url.Parse(hts.URL)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tRegisterBoulderHTTP(mux, u, as, newIntNonceSource())\n\n\treturn as, hts\n}",
"func New() KeyValueServer {\n\treturn &keyValueServer{\n\t\tnil,\n\t\tmake([]*client, 0),\n\t\tmake(chan *request),\n\t\tmake(chan *request),\n\t\tmake(chan []byte),\n\t\tmake(chan net.Conn),\n\t\tmake(chan int),\n\t\tmake(chan int),\n\t\tmake(chan *client),\n\t\tmake(chan int),\n\t\tmake(chan int)}\n}",
"func New(store kvstore.KVStore) KeyValueServer {\n\t// TODO: implement this!\n\tvar server keyValueServer\n\t\n\tserver.clientNum = 0\n\tserver.listener = nil\n\tserver.readChan = make(chan []byte)\n\tserver.channelMap = make(map[net.Conn]chan []byte)\n\t\n\t// 使用接口时,返回接口类型变量, 参考 book p113\n\treturn &server\n}",
"func newServer(notifier *notifier, key string) *server {\n\treturn &server{\n\t\tnotifier: notifier,\n\t\tkey: key,\n\t}\n}",
"func NewServer(\n\tctx context.Context,\n\taddr string,\n\tk8sAPI *k8s.API,\n\tgrpcTapServer pb.TapServer,\n\tdisableCommonNames bool,\n) (*Server, error) {\n\tupdateEvent := make(chan struct{})\n\terrEvent := make(chan error)\n\twatcher := pkgTls.NewFsCredsWatcher(pkgk8s.MountPathTLSBase, updateEvent, errEvent).\n\t\tWithFilePaths(pkgk8s.MountPathTLSCrtPEM, pkgk8s.MountPathTLSKeyPEM)\n\tgo func() {\n\t\tif err := watcher.StartWatching(ctx); err != nil {\n\t\t\tlog.Fatalf(\"Failed to start creds watcher: %s\", err)\n\t\t}\n\t}()\n\n\tclientCAPem, allowedNames, usernameHeader, groupHeader, err := serverAuth(ctx, k8sAPI)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// for development\n\tif disableCommonNames {\n\t\tallowedNames = []string{}\n\t}\n\n\tlog := log.WithFields(log.Fields{\n\t\t\"component\": \"tap\",\n\t\t\"addr\": addr,\n\t})\n\n\tclientCertPool := x509.NewCertPool()\n\tclientCertPool.AppendCertsFromPEM([]byte(clientCAPem))\n\n\thttpServer := &http.Server{\n\t\tAddr: addr,\n\t\tReadHeaderTimeout: 15 * time.Second,\n\t\tTLSConfig: &tls.Config{\n\t\t\tClientAuth: tls.VerifyClientCertIfGiven,\n\t\t\tClientCAs: clientCertPool,\n\t\t\tMinVersion: tls.VersionTLS12,\n\t\t},\n\t}\n\n\tvar emptyCert atomic.Value\n\th := &handler{\n\t\tk8sAPI: k8sAPI,\n\t\tusernameHeader: usernameHeader,\n\t\tgroupHeader: groupHeader,\n\t\tgrpcTapServer: grpcTapServer,\n\t\tlog: log,\n\t}\n\n\tlis, err := net.Listen(\"tcp\", addr)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"net.Listen failed with: %w\", err)\n\t}\n\n\ts := &Server{\n\t\tServer: httpServer,\n\t\tlistener: lis,\n\t\trouter: initRouter(h),\n\t\tallowedNames: allowedNames,\n\t\tcertValue: &emptyCert,\n\t\tlog: log,\n\t}\n\ts.Handler = prometheus.WithTelemetry(s)\n\thttpServer.TLSConfig.GetCertificate = s.getCertificate\n\n\tif err := watcher.UpdateCert(s.certValue); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to initialized certificate: %w\", err)\n\t}\n\n\tgo watcher.ProcessEvents(log, s.certValue, updateEvent, errEvent)\n\n\treturn s, nil\n}",
"func New(client *steam.Client) *TF2 {\n\tt := &TF2{client}\n\tclient.GC.RegisterPacketHandler(t)\n\treturn t\n}",
"func NewServer() *Server {}",
"func NewServer(am *autocert.Manager) *Server {\n\tkey := make([]byte, 64)\n\tif _, err := rand.Read(key); err != nil {\n\t\tpanic(err)\n\t}\n\treturn &Server{\n\t\tam: am,\n\t\tkey: key,\n\t}\n}",
"func newServer(ctx context.Context, dexDir string, port int32, environment string, ldap *ldaptest.TestLDAP) (*TestDex, error) {\n\tcertFile, keyFile := ssltest.CreateCertificates(\"localhost\", dexDir)\n\treturn newServerWithTLS(ctx, certFile, keyFile, port, environment, ldap)\n}",
"func MakeTestServer(t *testing.T, opts ...TestServerOptFunc) (process *service.TeleportProcess) {\n\tt.Helper()\n\n\tvar options TestServersOpts\n\tfor _, opt := range opts {\n\t\topt(&options)\n\t}\n\n\t// Set up a test auth server with default config.\n\tcfg := servicecfg.MakeDefaultConfig()\n\tcfg.CircuitBreakerConfig = breaker.NoopBreakerConfig()\n\tcfg.CachePolicy.Enabled = false\n\t// Disables cloud auto-imported labels when running tests in cloud envs\n\t// such as Github Actions.\n\t//\n\t// This is required otherwise Teleport will import cloud instance\n\t// labels, and use them for example as labels in Kubernetes Service and\n\t// cause some tests to fail because the output includes unexpected\n\t// labels.\n\t//\n\t// It is also found that Azure metadata client can throw \"Too many\n\t// requests\" during CI which fails services.NewTeleport.\n\tcfg.InstanceMetadataClient = cloud.NewDisabledIMDSClient()\n\n\tcfg.Hostname = \"server01\"\n\tcfg.DataDir = t.TempDir()\n\tcfg.Log = utils.NewLoggerForTests()\n\tauthAddr := utils.NetAddr{AddrNetwork: \"tcp\", Addr: NewTCPListener(t, service.ListenerAuth, &cfg.FileDescriptors)}\n\tcfg.SetToken(staticToken)\n\tcfg.SetAuthServerAddress(authAddr)\n\n\tcfg.Auth.ListenAddr = authAddr\n\tcfg.Auth.BootstrapResources = options.Bootstrap\n\tcfg.Auth.StorageConfig.Params = backend.Params{defaults.BackendPath: filepath.Join(cfg.DataDir, defaults.BackendDir)}\n\tstaticToken, err := types.NewStaticTokens(types.StaticTokensSpecV2{\n\t\tStaticTokens: []types.ProvisionTokenV1{{\n\t\t\tRoles: []types.SystemRole{types.RoleProxy, types.RoleDatabase, types.RoleTrustedCluster, types.RoleNode, types.RoleApp},\n\t\t\tExpires: time.Now().Add(time.Minute),\n\t\t\tToken: staticToken,\n\t\t}},\n\t})\n\trequire.NoError(t, err)\n\tcfg.Auth.StaticTokens = staticToken\n\n\tcfg.Proxy.WebAddr = utils.NetAddr{AddrNetwork: \"tcp\", Addr: NewTCPListener(t, service.ListenerProxyWeb, &cfg.FileDescriptors)}\n\tcfg.Proxy.SSHAddr = utils.NetAddr{AddrNetwork: \"tcp\", Addr: NewTCPListener(t, service.ListenerProxySSH, &cfg.FileDescriptors)}\n\tcfg.Proxy.ReverseTunnelListenAddr = utils.NetAddr{AddrNetwork: \"tcp\", Addr: NewTCPListener(t, service.ListenerProxyTunnel, &cfg.FileDescriptors)}\n\tcfg.Proxy.DisableWebInterface = true\n\n\tcfg.SSH.Addr = utils.NetAddr{AddrNetwork: \"tcp\", Addr: NewTCPListener(t, service.ListenerNodeSSH, &cfg.FileDescriptors)}\n\tcfg.SSH.DisableCreateHostUser = true\n\n\t// Apply options\n\tfor _, fn := range options.ConfigFuncs {\n\t\tfn(cfg)\n\t}\n\n\tprocess, err = service.NewTeleport(cfg)\n\trequire.NoError(t, err, trace.DebugReport(err))\n\trequire.NoError(t, process.Start())\n\tt.Cleanup(func() {\n\t\trequire.NoError(t, process.Close())\n\t\trequire.NoError(t, process.Wait())\n\t})\n\n\twaitForServices(t, process, cfg)\n\n\treturn process\n}",
"func newTLSServer(handler http.Handler) *httptest.Server {\n\tts := httptest.NewUnstartedServer(handler)\n\tts.TLS = new(tls.Config)\n\tts.TLS.NextProtos = []string{\"h2\"}\n\tts.StartTLS()\n\treturn ts\n}",
"func TestNewServer(t *testing.T) {\n\tsPK, sSK := cipher.GenerateKeyPair()\n\tdc := disc.NewMock()\n\n\tl, err := net.Listen(\"tcp\", \"\")\n\trequire.NoError(t, err)\n\n\t// When calling 'NewServer', if the provided net.Listener is already a noise.Listener,\n\t// An error should be returned.\n\tt.Run(\"fail_on_wrapped_listener\", func(t *testing.T) {\n\t\twrappedL := noise.WrapListener(l, sPK, sSK, false, noise.HandshakeXK)\n\t\ts, err := NewServer(sPK, sSK, \"\", wrappedL, dc)\n\t\tassert.Equal(t, ErrListenerAlreadyWrappedToNoise, err)\n\t\tassert.Nil(t, s)\n\t})\n\n\ts, err := NewServer(sPK, sSK, \"\", l, dc)\n\trequire.NoError(t, err)\n\n\tgo s.Serve() //nolint:errcheck\n\n\ttime.Sleep(time.Second)\n\n\tassert.NoError(t, s.Close())\n}",
"func New(iface string, port int, protocol string, key string, certificate string, psk string) (Server, error) {\n\ts := Server{\n\t\tID: uuid.NewV4(),\n\t\tProtocol: protocol,\n\t\tInterface: iface,\n\t\tPort: port,\n\t\tMux: http.NewServeMux(),\n\t\tjwtKey: []byte(core.RandStringBytesMaskImprSrc(32)), // Used to sign and encrypt JWT\n\t\tpsk: psk,\n\t}\n\t// OPAQUE Server Public/Private keys; Can be used with every agent\n\ts.opaqueKey = gopaque.CryptoDefault.NewKey(nil)\n\n\tvar cer tls.Certificate\n\tvar err error\n\t// Check if certificate exists on disk\n\t_, errCrt := os.Stat(certificate)\n\tif os.IsNotExist(errCrt) {\n\t\t// generate a new ephemeral certificate\n\t\tm := fmt.Sprintf(\"No certificate found at %s\", certificate)\n\t\tlogging.Server(m)\n\t\tmessage(\"note\", m)\n\t\tt := \"Creating in-memory x.509 certificate used for this session only.\"\n\t\tlogging.Server(t)\n\t\tmessage(\"note\", t)\n\t\tmessage(\"info\", \"Additional details: https://github.com/Ne0nd0g/reaper/wiki/TLS-Certificates\")\n\t\tcerp, err := util.GenerateTLSCert(nil, nil, nil, nil, nil, nil, true) //ec certs not supported (yet) :(\n\t\tif err != nil {\n\t\t\tm := fmt.Sprintf(\"There was an error generating the SSL/TLS certificate:\\r\\n%s\", err.Error())\n\t\t\tlogging.Server(m)\n\t\t\tmessage(\"warn\", m)\n\t\t\treturn s, err\n\t\t}\n\t\tcer = *cerp\n\t} else {\n\t\tif errCrt != nil {\n\t\t\tm := fmt.Sprintf(\"There was an error importing the SSL/TLS x509 certificate:\\r\\n%s\", errCrt.Error())\n\t\t\tlogging.Server(m)\n\t\t\tmessage(\"warn\", m)\n\t\t\treturn s, errCrt\n\t\t}\n\t\ts.Certificate = certificate\n\n\t\t_, errKey := os.Stat(key)\n\t\tif errKey != nil {\n\t\t\tm := fmt.Sprintf(\"There was an error importing the SSL/TLS x509 key:\\r\\n%s\", errKey.Error())\n\t\t\tlogging.Server(m)\n\t\t\tmessage(\"warn\", m)\n\t\t\treturn s, errKey\n\t\t}\n\t\ts.Key = key\n\n\t\tcer, err = tls.LoadX509KeyPair(certificate, key)\n\t\tif err != nil {\n\t\t\tm := fmt.Sprintf(\"There was an error importing the SSL/TLS x509 key pair\\r\\n%s\", err.Error())\n\t\t\tlogging.Server(m)\n\t\t\tmessage(\"warn\", m)\n\t\t\tmessage(\"warn\", \"Ensure a keypair is located in the data/x509 directory\")\n\t\t\treturn s, err\n\t\t}\n\t}\n\n\tif len(cer.Certificate) < 1 || cer.PrivateKey == nil {\n\t\tm := \"Unable to import certificate for use in reaper: empty certificate structure.\"\n\t\tlogging.Server(m)\n\t\tmessage(\"warn\", m)\n\t\treturn s, errors.New(\"empty certificate structure\")\n\t}\n\n\t// Parse into X.509 format\n\tx, errX509 := x509.ParseCertificate(cer.Certificate[0])\n\tif errX509 != nil {\n\t\tm := fmt.Sprintf(\"There was an error parsing the tls.Certificate structure into a x509.Certificate\"+\n\t\t\t\" structure:\\r\\n%s\", errX509.Error())\n\t\tlogging.Server(m)\n\t\tmessage(\"warn\", m)\n\t\treturn s, errX509\n\t}\n\t// Create fingerprint\n\tS256 := sha256.Sum256(x.Raw)\n\tsha256Fingerprint := hex.EncodeToString(S256[:])\n\n\t// reaperCRT is the string representation of the SHA1 fingerprint for the public x.509 certificate distributed with reaper\n\treaperCRT := \"4af9224c77821bc8a46503cfc2764b94b1fc8aa2521afc627e835f0b3c449f50\"\n\n\t// Check to see if the Public Key SHA1 finger print matches the certificate distributed with reaper for testing\n\tif reaperCRT == sha256Fingerprint {\n\t\tmessage(\"warn\", \"Insecure publicly distributed reaper x.509 testing certificate in use\")\n\t\tmessage(\"info\", \"Additional details: https://github.com/Ne0nd0g/reaper/wiki/TLS-Certificates\")\n\t}\n\n\t// Log certificate information\n\tlogging.Server(fmt.Sprintf(\"Starting reaper Server using an X.509 certificate with a %s signature of %s\",\n\t\tx.SignatureAlgorithm.String(), hex.EncodeToString(x.Signature)))\n\tlogging.Server(fmt.Sprintf(\"Starting reaper Server using an X.509 certificate with a public key of %v\", x.PublicKey))\n\tlogging.Server(fmt.Sprintf(\"Starting reaper Server using an X.509 certificate with a serial number of %d\", x.SerialNumber))\n\tlogging.Server(fmt.Sprintf(\"Starting reaper Server using an X.509 certifcate with a subject of %s\", x.Subject.String()))\n\tlogging.Server(fmt.Sprintf(\"Starting reaper Server using an X.509 certificate with a SHA256 hash, \"+\n\t\t\"calculated by reaper, of %s\", sha256Fingerprint))\n\n\t// Configure TLS\n\tTLSConfig := &tls.Config{\n\t\tCertificates: []tls.Certificate{cer},\n\t\tMinVersion: tls.VersionTLS12,\n\t\tCurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},\n\t\tPreferServerCipherSuites: true,\n\t\tCipherSuites: []uint16{\n\t\t\ttls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,\n\t\t\ttls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,\n\t\t\ttls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,\n\t\t},\n\t\t//NextProtos: []string{protocol}, //Dont need to specify because server will pick\n\t}\n\n\ts.Mux.HandleFunc(\"/\", s.agentHandler)\n\n\tsrv := &http.Server{\n\t\tAddr: s.Interface + \":\" + strconv.Itoa(s.Port),\n\t\tHandler: s.Mux,\n\t\tReadTimeout: 10 * time.Second,\n\t\tWriteTimeout: 10 * time.Second,\n\t\tMaxHeaderBytes: 1 << 20,\n\t\tTLSConfig: TLSConfig,\n\t\t//TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler), 0), // <- Disables HTTP/2\n\t}\n\n\tif s.Protocol == \"h2\" {\n\t\ts.Server = srv\n\t} else if s.Protocol == \"hq\" {\n\t\ts.Server = &h2quic.Server{\n\t\t\tServer: srv,\n\t\t\tQuicConfig: &quic.Config{\n\t\t\t\tKeepAlive: false,\n\t\t\t\tIdleTimeout: 168 * time.Hour,\n\t\t\t\tRequestConnectionIDOmission: false,\n\t\t\t},\n\t\t}\n\n\t} else {\n\t\treturn s, fmt.Errorf(\"%s is an invalid server protocol\", s.Protocol)\n\t}\n\treturn s, nil\n}",
"func NewFake() *Fake {\n\treturn &Fake{\n\t\tSettings: make(map[string]int),\n\t}\n}",
"func New(addr string, host app.HostService, collector *metrics.Collector) app.Server {\n\treturn &server{\n\t\tsrv: telnet.Server{Addr: addr, Handler: nil},\n\t\thost: host,\n\t\tcollector: collector,\n\t}\n}",
"func InitTestServer() *Server {\n\ts := Init()\n\ts.SkipLog = true\n\ts.GoServer.KSclient = *keystoreclient.GetTestClient(\".test\")\n\ts.GoServer.KSclient.Save(context.Background(), CONFIG, &pb.Config{})\n\treturn s\n}",
"func NewFakeTransport() *FakeTransport {\n\treturn &FakeTransport{\n\t\tresponses: make(map[string]*responseCollection),\n\t}\n}",
"func NewFake(namespace types.StreamName) FakeClient {\n\treturn FakeClient{\n\t\tClient: &Client{\n\t\t\t&fakeDialer{streams: map[types.StreamName]*fakeStream{}},\n\t\t\tnamespace,\n\t\t},\n\t}\n}",
"func newKeyServerWithMocking(user upspin.UserName, ref string, data []byte) (*server, *storagetest.ExpectDownloadCapturePut) {\n\tmockGCP := &storagetest.ExpectDownloadCapturePut{\n\t\tRef: []string{ref},\n\t\tData: [][]byte{data},\n\t\tPutContents: make([][]byte, 0, 1),\n\t\tPutRef: make([]string, 0, 1),\n\t}\n\ts := &server{\n\t\tstorage: mockGCP,\n\t\tuser: user,\n\t\tlookupTXT: mockLookupTXT,\n\t\tlogger: &noopLogger{},\n\t\tcache: cache.NewLRU(10),\n\t\tnegCache: cache.NewLRU(10),\n\t}\n\treturn s, mockGCP\n}",
"func NewFake(force bool) (m starlark.HasAttrs, closeFn func(), err error) {\n\t// Create a fake API store with some endpoints pre-populated\n\tcm := corev1.ConfigMap{\n\t\tTypeMeta: metav1.TypeMeta{\n\t\t\tAPIVersion: \"v1\",\n\t\t\tKind: \"ConfigMap\",\n\t\t},\n\t\tData: map[string]string{\n\t\t\t\"client-ca-file\": \"contents\",\n\t\t},\n\t}\n\tcmData, err := apiruntime.Encode(unstructured.UnstructuredJSONScheme, &cm)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\tfm := map[string][]byte{\n\t\t\"/api/v1/namespaces/kube-system/configmaps/extension-apiserver-authentication\": cmData,\n\t}\n\n\ts := httptest.NewTLSServer(&fakeKube{m: fm})\n\n\tu, err := url.Parse(s.URL)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\th := \"https://\" + u.Host\n\ttlsConfig := rest.TLSClientConfig{\n\t\tInsecure: true,\n\t}\n\trConf := &rest.Config{Host: h, TLSClientConfig: tlsConfig}\n\n\tt, err := rest.TransportFor(rConf)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tk := New(\n\t\th,\n\t\tfakeDiscovery(),\n\t\tdynamic.NewForConfigOrDie(rConf),\n\t\t&http.Client{Transport: t},\n\t\tfalse, /* dryRun */\n\t\tforce,\n\t\tfalse, /* diff */\n\t\tnil, /* diffFilters */\n\t)\n\n\treturn newFakeModule(k.(*kubePackage)), s.Close, nil\n}",
"func NewFake(t time.Time) *FakeTimeSource {\n\ttimers := make(map[int]*fakeTimer)\n\treturn &FakeTimeSource{now: t, timers: timers}\n}",
"func NewTestServerFunc(handler func(w http.ResponseWriter, r *http.Request)) *httptest.Server {\n\treturn httptest.NewServer(http.HandlerFunc(handler))\n}",
"func NewServer(authFunc, cmdFunc func(io.ReadWriter, []byte) error) (*Server, error) {\n\tvar err error\n\ts := new(Server)\n\ts.ln, err = nettest.NewLocalListener(\"tcp\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tgo s.serve(authFunc, cmdFunc)\n\treturn s, nil\n}",
"func New(h *handler.Handler, c *config.Config) {\n\ttokenAuth = jwtauth.New(\"HS256\", []byte(c.Token), nil)\n\tr := chi.NewRouter()\n\ts := &server{\n\t\thand: h,\n\t\trouter: r,\n\t\taddress: c.Address,\n\t}\n\ts.makeHandlers()\n\ts.startServer()\n}",
"func NewServer() *Server {\n return &Server{\n Addr: DefaultAddr,\n }\n}",
"func newSrvCtx(ctx context.Context, t *testing.T) *SrvCtx {\n\ts := &SrvCtx{}\n\n\tt.Cleanup(func() {\n\t\tif s.srv != nil {\n\t\t\trequire.NoError(t, s.srv.Close())\n\t\t}\n\t\tif s.server != nil {\n\t\t\trequire.NoError(t, s.server.Shutdown(ctx))\n\t\t}\n\t})\n\n\ts.clock = clockwork.NewFakeClock()\n\ttempdir := t.TempDir()\n\n\tvar err error\n\ts.server, err = auth.NewTestServer(auth.TestServerConfig{\n\t\tAuth: auth.TestAuthServerConfig{\n\t\t\tClusterName: \"localhost\",\n\t\t\tDir: tempdir,\n\t\t\tClock: s.clock,\n\t\t},\n\t})\n\trequire.NoError(t, err)\n\n\t// set up host private key and certificate\n\tpriv, pub, err := testauthority.New().GenerateKeyPair()\n\trequire.NoError(t, err)\n\n\ttlsPub, err := auth.PrivateKeyToPublicKeyTLS(priv)\n\trequire.NoError(t, err)\n\n\tcerts, err := s.server.Auth().GenerateHostCerts(ctx,\n\t\t&proto.HostCertsRequest{\n\t\t\tHostID: hostID,\n\t\t\tNodeName: s.server.ClusterName(),\n\t\t\tRole: types.RoleNode,\n\t\t\tPublicSSHKey: pub,\n\t\t\tPublicTLSKey: tlsPub,\n\t\t})\n\trequire.NoError(t, err)\n\n\t// set up user CA and set up a user that has access to the server\n\ts.signer, err = sshutils.NewSigner(priv, certs.SSH)\n\trequire.NoError(t, err)\n\n\ts.nodeID = uuid.New().String()\n\ts.nodeClient, err = s.server.NewClient(auth.TestIdentity{\n\t\tI: authz.BuiltinRole{\n\t\t\tRole: types.RoleNode,\n\t\t\tUsername: s.nodeID,\n\t\t},\n\t})\n\trequire.NoError(t, err)\n\n\tuaccDir := t.TempDir()\n\tutmpPath := path.Join(uaccDir, \"utmp\")\n\twtmpPath := path.Join(uaccDir, \"wtmp\")\n\terr = TouchFile(utmpPath)\n\trequire.NoError(t, err)\n\terr = TouchFile(wtmpPath)\n\trequire.NoError(t, err)\n\ts.utmpPath = utmpPath\n\n\tlockWatcher, err := services.NewLockWatcher(ctx, services.LockWatcherConfig{\n\t\tResourceWatcherConfig: services.ResourceWatcherConfig{\n\t\t\tComponent: teleport.ComponentNode,\n\t\t\tClient: s.nodeClient,\n\t\t},\n\t})\n\trequire.NoError(t, err)\n\tt.Cleanup(lockWatcher.Close)\n\n\tnodeSessionController, err := srv.NewSessionController(srv.SessionControllerConfig{\n\t\tSemaphores: s.nodeClient,\n\t\tAccessPoint: s.nodeClient,\n\t\tLockEnforcer: lockWatcher,\n\t\tEmitter: s.nodeClient,\n\t\tComponent: teleport.ComponentNode,\n\t\tServerID: s.nodeID,\n\t})\n\trequire.NoError(t, err)\n\n\tnodeDir := t.TempDir()\n\tsrv, err := regular.New(\n\t\tctx,\n\t\tutils.NetAddr{AddrNetwork: \"tcp\", Addr: \"127.0.0.1:0\"},\n\t\ts.server.ClusterName(),\n\t\t[]ssh.Signer{s.signer},\n\t\ts.nodeClient,\n\t\tnodeDir,\n\t\t\"\",\n\t\tutils.NetAddr{},\n\t\ts.nodeClient,\n\t\tregular.SetUUID(s.nodeID),\n\t\tregular.SetNamespace(apidefaults.Namespace),\n\t\tregular.SetEmitter(s.nodeClient),\n\t\tregular.SetShell(\"/bin/sh\"),\n\t\tregular.SetPAMConfig(&servicecfg.PAMConfig{Enabled: false}),\n\t\tregular.SetLabels(\n\t\t\tmap[string]string{\"foo\": \"bar\"},\n\t\t\tservices.CommandLabels{\n\t\t\t\t\"baz\": &types.CommandLabelV2{\n\t\t\t\t\tPeriod: types.NewDuration(time.Millisecond),\n\t\t\t\t\tCommand: []string{\"expr\", \"1\", \"+\", \"3\"},\n\t\t\t\t},\n\t\t\t}, nil,\n\t\t),\n\t\tregular.SetBPF(&bpf.NOP{}),\n\t\tregular.SetRestrictedSessionManager(&restricted.NOP{}),\n\t\tregular.SetClock(s.clock),\n\t\tregular.SetUtmpPath(utmpPath, utmpPath),\n\t\tregular.SetLockWatcher(lockWatcher),\n\t\tregular.SetSessionController(nodeSessionController),\n\t)\n\trequire.NoError(t, err)\n\ts.srv = srv\n\trequire.NoError(t, s.srv.Start())\n\treturn s\n}",
"func New() *Server {\n\tdlog.Server.Info(\"Starting server\", version.String())\n\n\ts := Server{\n\t\tsshServerConfig: &gossh.ServerConfig{\n\t\t\tConfig: gossh.Config{\n\t\t\t\tKeyExchanges: config.Server.KeyExchanges,\n\t\t\t\tCiphers: config.Server.Ciphers,\n\t\t\t\tMACs: config.Server.MACs,\n\t\t\t},\n\t\t},\n\t\tcatLimiter: make(chan struct{}, config.Server.MaxConcurrentCats),\n\t\ttailLimiter: make(chan struct{}, config.Server.MaxConcurrentTails),\n\t\tsched: newScheduler(),\n\t\tcont: newContinuous(),\n\t}\n\n\ts.sshServerConfig.PasswordCallback = s.Callback\n\ts.sshServerConfig.PublicKeyCallback = server.PublicKeyCallback\n\n\tprivate, err := gossh.ParsePrivateKey(server.PrivateHostKey())\n\tif err != nil {\n\t\tdlog.Server.FatalPanic(err)\n\t}\n\ts.sshServerConfig.AddHostKey(private)\n\n\treturn &s\n}",
"func New(addr string) *Server {\n if addr == \"\" {\n addr = DefaultAddr\n }\n return &Server{\n addr: DefaultAddr,\n ds: newDataStore(),\n done: make(chan struct{}),\n }\n}",
"func InitTestServer() *Server {\n\ts := Init()\n\ts.SkipLog = true\n\ts.Registry = &dpb.RegistryEntry{Name: \"testserver\"}\n\ts.GoServer.KSclient = *keystoreclient.GetTestClient(\".test\")\n\ts.GoServer.KSclient.Save(context.Background(), CONFIG, &pb.Config{})\n\treturn s\n}",
"func NewServer() networkservice.NetworkServiceServer {\n\treturn &sendFDServer{}\n}",
"func NewFake() (*FakeClient, error) {\n\treturn &FakeClient{}, nil\n}",
"func newTestChain(tc testChain) *Chain {\n\t_, port, err := server.FreeTCPAddr()\n\tif err != nil {\n\t\treturn nil\n\t}\n\treturn &Chain{\n\t\tKey: \"testkey\",\n\t\tChainID: tc.chainID,\n\t\tRPCAddr: fmt.Sprintf(\"http://localhost:%s\", port),\n\t\tAccountPrefix: tc.t.accountPrefix,\n\t\tGas: tc.t.gas,\n\t\tGasPrices: tc.t.gasPrices,\n\t\tDefaultDenom: tc.t.defaultDenom,\n\t\tTrustingPeriod: tc.t.trustingPeriod,\n\t}\n}",
"func New() KeyValueServer {\n\tinit_db()\n\tkvs := &keyValueServer{\n\t\tclienter: make(map[int]*Clienter),\n\t\tconnectedClients: -1,\n\t\tconnChannel: make(chan net.Conn),\n\t\tclose_signal: make(chan bool),\n\t\tcnt_signal_in: make(chan bool),\n\t\tcnt_signal_out: make(chan int),\n\t\tdelete: make(chan *Clienter),\n\t\treq: make(chan *Request),\n\t}\n\treturn kvs\n}",
"func newDNSTestServer(server *dns.Server) *dnsTestServer {\n\treturn &dnsTestServer{Server: server, DNSDatabase: make(dnsDatabase), DNSDatabaseRetry: make(dnsDatabase)}\n}",
"func NewServer(name string, port int) Server {\n\ts := new(serv)\n\ts.name = name\n\ts.ip = Here()\n\ts.port = port\n\n\ts.running = false\n\n\ts.pks = make(chan network.Packet)\n\n\treturn s\n}",
"func New(host, port string, handlers handler.Param) *Kyma {\n\tsrv := server.New(host, port, handlers)\n\treturn &Kyma{\n\t\tServing: srv,\n\t\tConnector: connector.New(srv, \"/kyma\"),\n\t}\n}",
"func (f *FactoryFake) New(address string) (client.Interface, error) {\n\tc, _ := f.Clients[address]\n\treturn c, nil\n}",
"func NewServer(c *support.ConfigT) *ServerT {\n\trenderer := multitemplate.NewRenderer()\n\t// Initialize the error templates.\n\trenderer.AddFromString(\"error/404\", html.ErrorTpl404())\n\trenderer.AddFromString(\"error/500\", html.ErrorTpl500())\n\trenderer.AddFromString(\"default/welcome\", html.WelcomeTpl())\n\n\tr := newRouter(c)\n\tr.HTMLRender = renderer\n\n\ts := &http.Server{\n\t\tAddr: c.HTTPHost + \":\" + c.HTTPPort,\n\t\tHandler: r,\n\t\tMaxHeaderBytes: c.HTTPMaxHeaderBytes,\n\t\tReadTimeout: c.HTTPReadTimeout,\n\t\tReadHeaderTimeout: c.HTTPReadHeaderTimeout,\n\t\tWriteTimeout: c.HTTPWriteTimeout,\n\t\tIdleTimeout: c.HTTPIdleTimeout,\n\t}\n\ts.ErrorLog = zap.NewStdLog(support.Logger.Desugar())\n\n\tif c.HTTPSSLEnabled == true {\n\t\ts.Addr = c.HTTPHost + \":\" + c.HTTPSSLPort\n\t}\n\n\treturn &ServerT{\n\t\tConfig: c,\n\t\tGRPC: nil, // to be implemented\n\t\tHTTP: s,\n\t\tHTMLRenderer: renderer,\n\t\tRouter: r,\n\t}\n}",
"func newGRPCServer(t *testing.T, srv transportv1pb.TransportServiceServer) *fakeGRPCServer {\n\t// gRPC testPack.\n\tlis := bufconn.Listen(100)\n\tt.Cleanup(func() { require.NoError(t, lis.Close()) })\n\n\ts := grpc.NewServer()\n\tt.Cleanup(s.Stop)\n\n\t// Register service.\n\tif srv != nil {\n\t\ttransportv1pb.RegisterTransportServiceServer(s, srv)\n\t}\n\n\t// Start.\n\tgo func() {\n\t\tif err := s.Serve(lis); err != nil && !errors.Is(err, grpc.ErrServerStopped) {\n\t\t\tpanic(fmt.Sprintf(\"Serve returned err = %v\", err))\n\t\t}\n\t}()\n\n\treturn &fakeGRPCServer{Listener: lis}\n}",
"func New(body string, statusCode int) *FakeHTTPServer {\n\treturn &FakeHTTPServer{\n\t\tserver: httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.Write([]byte(body))\n\t\t\tw.WriteHeader(statusCode)\n\t\t})),\n\t}\n}",
"func StartNewServer() (*MockServer, error) {\n\tserver := &MockServer{}\n\treturn server, server.Start()\n}",
"func New() HelloServer {\n\thttp.DefaultServeMux = new(http.ServeMux)\n\treturn HelloServer{\n\t\t&http.Server{\n\t\t\tAddr: \":7100\",\n\t\t},\n\t}\n}",
"func Factory() (net.PacketConn, error) {\n\tfrpc := &FakeRandomPacketConn{\n\t\tFakePacketConn: FakePacketConn{\n\t\t\tclosedChan: make(chan struct{}),\n\t\t},\n\t}\n\treturn frpc, nil\n}",
"func newTractServer(name, binDir, rootDir string, disksPerTractserver uint, loggers []Logger) *TractServer {\n\tt := &TractServer{\n\t\tprocBase: newProcBase(name, join(binDir, \"tractserver\"), genLocalAddr(), loggers),\n\t\ttsRoot: join(rootDir, name),\n\t}\n\tfor i := uint(0); i < disksPerTractserver; i++ {\n\t\tpath := join(t.tsRoot, fmt.Sprintf(\"disk%d\", i))\n\t\tt.diskPaths = append(t.diskPaths, path)\n\t}\n\treturn t\n}",
"func NewServer(\n\tctx context.Context,\n\tapi *pkgk8s.KubernetesAPI,\n\tmetadataAPI *k8s.MetadataAPI,\n\taddr, certPath string,\n\thandler Handler,\n\tcomponent string,\n) (*Server, error) {\n\tupdateEvent := make(chan struct{})\n\terrEvent := make(chan error)\n\twatcher := pkgTls.NewFsCredsWatcher(certPath, updateEvent, errEvent).\n\t\tWithFilePaths(pkgk8s.MountPathTLSCrtPEM, pkgk8s.MountPathTLSKeyPEM)\n\tgo func() {\n\t\tif err := watcher.StartWatching(ctx); err != nil {\n\t\t\tlog.Fatalf(\"Failed to start creds watcher: %s\", err)\n\t\t}\n\t}()\n\n\tserver := &http.Server{\n\t\tAddr: addr,\n\t\tReadHeaderTimeout: 15 * time.Second,\n\t\tTLSConfig: &tls.Config{\n\t\t\tMinVersion: tls.VersionTLS12,\n\t\t},\n\t}\n\n\teventBroadcaster := record.NewBroadcaster()\n\teventBroadcaster.StartRecordingToSink(&typedcorev1.EventSinkImpl{\n\t\t// In order to send events to all namespaces, we need to use an empty string here\n\t\t// re: client-go's event_expansion.go CreateWithEventNamespace()\n\t\tInterface: api.CoreV1().Events(\"\"),\n\t})\n\trecorder := eventBroadcaster.NewRecorder(scheme.Scheme, v1.EventSource{Component: component})\n\n\ts := getConfiguredServer(server, metadataAPI, handler, recorder)\n\tif err := watcher.UpdateCert(s.certValue); err != nil {\n\t\tlog.Fatalf(\"Failed to initialized certificate: %s\", err)\n\t}\n\n\tlog := log.WithFields(log.Fields{\n\t\t\"component\": \"proxy-injector\",\n\t\t\"addr\": addr,\n\t})\n\n\tgo watcher.ProcessEvents(log, s.certValue, updateEvent, errEvent)\n\n\treturn s, nil\n}",
"func New(options Options) (TKGClient, error) { //nolint:gocritic\n\tvar err error\n\n\t// configure log options for tkg library\n\tconfigureLogging(options.LogOptions)\n\n\tif options.ConfigDir == \"\" {\n\t\treturn nil, errors.New(\"config directory cannot be empty. Please provide config directory when creating tkgctl client\")\n\t}\n\n\tif options.ProviderGetter == nil {\n\t\toptions.ProviderGetter = getDefaultProviderGetter()\n\t}\n\n\tif options.CustomizerOptions.RegionManagerFactory == nil {\n\t\toptions.CustomizerOptions = types.CustomizerOptions{\n\t\t\tRegionManagerFactory: region.NewFactory(),\n\t\t}\n\t}\n\tappConfig := types.AppConfig{\n\t\tTKGConfigDir: options.ConfigDir,\n\t\tProviderGetter: options.ProviderGetter,\n\t\tCustomizerOptions: options.CustomizerOptions,\n\t\tTKGSettingsFile: options.SettingsFile,\n\t}\n\n\terr = ensureTKGConfigFile(options.ConfigDir, options.ProviderGetter)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tallClients, err := clientcreator.CreateAllClients(appConfig, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar clusterKubeConfig *types.ClusterKubeConfig\n\tif options.KubeConfig != \"\" {\n\t\tclusterKubeConfig = &types.ClusterKubeConfig{\n\t\t\tFile: options.KubeConfig,\n\t\t\tContext: options.KubeContext,\n\t\t}\n\t}\n\n\ttkgClient, err := client.New(client.Options{\n\t\tClusterCtlClient: allClients.ClusterCtlClient,\n\t\tReaderWriterConfigClient: allClients.ConfigClient,\n\t\tRegionManager: allClients.RegionManager,\n\t\tTKGConfigDir: options.ConfigDir,\n\t\tTimeout: constants.DefaultOperationTimeout,\n\t\tFeaturesClient: allClients.FeaturesClient,\n\t\tTKGConfigProvidersClient: allClients.TKGConfigProvidersClient,\n\t\tTKGBomClient: allClients.TKGBomClient,\n\t\tTKGConfigUpdater: allClients.TKGConfigUpdaterClient,\n\t\tTKGPathsClient: allClients.TKGConfigPathsClient,\n\t\tClusterKubeConfig: clusterKubeConfig,\n\t\tClusterClientFactory: clusterclient.NewClusterClientFactory(),\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// ensure BoM and Providers prerequisite files are extracted if missing\n\terr = ensureBoMandProvidersPrerequisite(options.ConfigDir, allClients.TKGConfigUpdaterClient, options.ForceUpdateTKGCompatibilityImage)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"unable to ensure prerequisites\")\n\t}\n\t// Set default BOM name to the config variables to use during template generation\n\tdefaultBoMFileName, err := allClients.TKGBomClient.GetDefaultBoMFileName()\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"unable to get default BOM file name\")\n\t}\n\tallClients.ConfigClient.TKGConfigReaderWriter().Set(constants.ConfigVariableDefaultBomFile, defaultBoMFileName)\n\n\treturn &tkgctl{\n\t\tconfigDir: options.ConfigDir,\n\t\tkubeconfig: options.KubeConfig,\n\t\tkubecontext: options.KubeContext,\n\t\tappConfig: appConfig,\n\t\ttkgBomClient: allClients.TKGBomClient,\n\t\ttkgConfigUpdaterClient: allClients.TKGConfigUpdaterClient,\n\t\ttkgConfigProvidersClient: allClients.TKGConfigProvidersClient,\n\t\ttkgConfigPathsClient: allClients.TKGConfigPathsClient,\n\t\ttkgClient: tkgClient,\n\t\tproviderGetter: options.ProviderGetter,\n\t\ttkgConfigReaderWriter: allClients.ConfigClient.TKGConfigReaderWriter(),\n\t}, nil\n}",
"func newServer() *traceServer {\n\treturn &traceServer{\n\t\tevents: make(map[string]*trace.Trace),\n\t}\n}",
"func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,\n\tbio lnwallet.BlockChainIO, fundingSigner lnwallet.MessageSigner,\n\twallet *lnwallet.LightningWallet, chanDB *channeldb.DB) (*server, error) {\n\n\tprivKey, err := wallet.GetIdentitykey()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tprivKey.Curve = btcec.S256()\n\n\tlisteners := make([]net.Listener, len(listenAddrs))\n\tfor i, addr := range listenAddrs {\n\t\tlisteners[i], err = brontide.NewListener(privKey, addr)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tserializedPubKey := privKey.PubKey().SerializeCompressed()\n\ts := &server{\n\t\tlnwallet: wallet,\n\t\tbio: bio,\n\t\tchainNotifier: notifier,\n\t\tchanDB: chanDB,\n\n\t\tinvoices: newInvoiceRegistry(chanDB),\n\t\tutxoNursery: newUtxoNursery(chanDB, notifier, wallet),\n\t\thtlcSwitch: newHtlcSwitch(),\n\n\t\tidentityPriv: privKey,\n\t\tnodeSigner: newNodeSigner(privKey),\n\n\t\t// TODO(roasbeef): derive proper onion key based on rotation\n\t\t// schedule\n\t\tsphinx: sphinx.NewRouter(privKey, activeNetParams.Params),\n\t\tlightningID: sha256.Sum256(serializedPubKey),\n\n\t\tpersistentPeers: make(map[string]struct{}),\n\t\tpersistentConnReqs: make(map[string][]*connmgr.ConnReq),\n\n\t\tpeersByID: make(map[int32]*peer),\n\t\tpeersByPub: make(map[string]*peer),\n\t\tinboundPeers: make(map[string]*peer),\n\t\toutboundPeers: make(map[string]*peer),\n\n\t\tnewPeers: make(chan *peer, 10),\n\t\tdonePeers: make(chan *peer, 10),\n\n\t\tbroadcastRequests: make(chan *broadcastReq),\n\t\tsendRequests: make(chan *sendReq),\n\n\t\tglobalFeatures: globalFeatures,\n\t\tlocalFeatures: localFeatures,\n\n\t\tqueries: make(chan interface{}),\n\t\tquit: make(chan struct{}),\n\t}\n\n\t// If the debug HTLC flag is on, then we invoice a \"master debug\"\n\t// invoice which all outgoing payments will be sent and all incoming\n\t// HTLCs with the debug R-Hash immediately settled.\n\tif cfg.DebugHTLC {\n\t\tkiloCoin := btcutil.Amount(btcutil.SatoshiPerBitcoin * 1000)\n\t\ts.invoices.AddDebugInvoice(kiloCoin, *debugPre)\n\t\tsrvrLog.Debugf(\"Debug HTLC invoice inserted, preimage=%x, hash=%x\",\n\t\t\tdebugPre[:], debugHash[:])\n\t}\n\n\t// If external IP addresses have been specified, add those to the list\n\t// of this server's addresses.\n\tselfAddrs := make([]net.Addr, 0, len(cfg.ExternalIPs))\n\tfor _, ip := range cfg.ExternalIPs {\n\t\tvar addr string\n\t\t_, _, err = net.SplitHostPort(ip)\n\t\tif err != nil {\n\t\t\taddr = net.JoinHostPort(ip, strconv.Itoa(defaultPeerPort))\n\t\t} else {\n\t\t\taddr = ip\n\t\t}\n\n\t\tlnAddr, err := net.ResolveTCPAddr(\"tcp\", addr)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tselfAddrs = append(selfAddrs, lnAddr)\n\t}\n\n\tchanGraph := chanDB.ChannelGraph()\n\n\t// TODO(roasbeef): make alias configurable\n\talias := lnwire.NewAlias(hex.EncodeToString(serializedPubKey[:10]))\n\tself := &channeldb.LightningNode{\n\t\tLastUpdate: time.Now(),\n\t\tAddresses: selfAddrs,\n\t\tPubKey: privKey.PubKey(),\n\t\tAlias: alias.String(),\n\t\tFeatures: globalFeatures,\n\t}\n\n\t// If our information has changed since our last boot, then we'll\n\t// re-sign our node announcement so a fresh authenticated version of it\n\t// can be propagated throughout the network upon startup.\n\t// TODO(roasbeef): don't always set timestamp above to _now.\n\tself.AuthSig, err = discovery.SignAnnouncement(s.nodeSigner,\n\t\ts.identityPriv.PubKey(),\n\t\t&lnwire.NodeAnnouncement{\n\t\t\tTimestamp: uint32(self.LastUpdate.Unix()),\n\t\t\tAddresses: self.Addresses,\n\t\t\tNodeID: self.PubKey,\n\t\t\tAlias: alias,\n\t\t\tFeatures: self.Features,\n\t\t},\n\t)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to generate signature for \"+\n\t\t\t\"self node announcement: %v\", err)\n\t}\n\tif err := chanGraph.SetSourceNode(self); err != nil {\n\t\treturn nil, fmt.Errorf(\"can't set self node: %v\", err)\n\t}\n\n\ts.chanRouter, err = routing.New(routing.Config{\n\t\tGraph: chanGraph,\n\t\tChain: bio,\n\t\tNotifier: notifier,\n\t\tSendToSwitch: func(firstHop *btcec.PublicKey,\n\t\t\thtlcAdd *lnwire.UpdateAddHTLC) ([32]byte, error) {\n\n\t\t\tfirstHopPub := firstHop.SerializeCompressed()\n\t\t\tdestInterface := chainhash.Hash(sha256.Sum256(firstHopPub))\n\n\t\t\treturn s.htlcSwitch.SendHTLC(&htlcPacket{\n\t\t\t\tdest: destInterface,\n\t\t\t\tmsg: htlcAdd,\n\t\t\t})\n\t\t},\n\t})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"can't create router: %v\", err)\n\t}\n\n\ts.discoverSrv, err = discovery.New(discovery.Config{\n\t\tBroadcast: s.broadcastMessage,\n\t\tNotifier: s.chainNotifier,\n\t\tRouter: s.chanRouter,\n\t\tSendToPeer: s.sendToPeer,\n\t\tTrickleDelay: time.Millisecond * 300,\n\t\tProofMatureDelta: 0,\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\ts.rpcServer = newRPCServer(s)\n\ts.breachArbiter = newBreachArbiter(wallet, chanDB, notifier, s.htlcSwitch)\n\n\tvar chanIDSeed [32]byte\n\tif _, err := rand.Read(chanIDSeed[:]); err != nil {\n\t\treturn nil, err\n\t}\n\n\ts.fundingMgr, err = newFundingManager(fundingConfig{\n\t\tIDKey: s.identityPriv.PubKey(),\n\t\tWallet: wallet,\n\t\tNotifier: s.chainNotifier,\n\t\tSignMessage: func(pubKey *btcec.PublicKey, msg []byte) (*btcec.Signature, error) {\n\t\t\tif pubKey.IsEqual(s.identityPriv.PubKey()) {\n\t\t\t\treturn s.nodeSigner.SignMessage(pubKey, msg)\n\t\t\t}\n\n\t\t\treturn fundingSigner.SignMessage(pubKey, msg)\n\t\t},\n\t\tSendAnnouncement: func(msg lnwire.Message) error {\n\t\t\ts.discoverSrv.ProcessLocalAnnouncement(msg,\n\t\t\t\ts.identityPriv.PubKey())\n\t\t\treturn nil\n\t\t},\n\t\tArbiterChan: s.breachArbiter.newContracts,\n\t\tSendToPeer: s.sendToPeer,\n\t\tFindPeer: s.findPeer,\n\t\tTempChanIDSeed: chanIDSeed,\n\t\tFindChannel: func(chanID lnwire.ChannelID) (*lnwallet.LightningChannel, error) {\n\t\t\tdbChannels, err := chanDB.FetchAllChannels()\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\n\t\t\tfor _, channel := range dbChannels {\n\t\t\t\tif chanID.IsChanPoint(channel.ChanID) {\n\t\t\t\t\treturn lnwallet.NewLightningChannel(wallet.Signer,\n\t\t\t\t\t\tnotifier, channel)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn nil, fmt.Errorf(\"unable to find channel\")\n\t\t},\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// TODO(roasbeef): introduce closure and config system to decouple the\n\t// initialization above ^\n\n\t// Create the connection manager which will be responsible for\n\t// maintaining persistent outbound connections and also accepting new\n\t// incoming connections\n\tcmgr, err := connmgr.New(&connmgr.Config{\n\t\tListeners: listeners,\n\t\tOnAccept: s.inboundPeerConnected,\n\t\tRetryDuration: time.Second * 5,\n\t\tTargetOutbound: 100,\n\t\tGetNewAddress: nil,\n\t\tDial: noiseDial(s.identityPriv),\n\t\tOnConnection: s.outboundPeerConnected,\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\ts.connMgr = cmgr\n\n\treturn s, nil\n}",
"func New(ktClient pb.KeyTransparencyClient,\n\tdomainID string,\n\tktVerifier *Verifier) *Client {\n\treturn &Client{\n\t\tVerifier: ktVerifier,\n\t\tcli: ktClient,\n\t\tdomainID: domainID,\n\t\tmutator: entry.New(),\n\t\tRetryDelay: 3 * time.Second,\n\t}\n}",
"func New(m int, k int) *Server {\n\treturn &Server{bf: bloom.New(uint(m), uint(k))}\n}",
"func NewServer() *server {\n\ts := &server{\n\t\tstore: make(map[string]*string),\n\t\tops: make(chan func()),\n\t}\n\tgo s.loop()\n\treturn s\n}",
"func FakeNew() (*Client, *FakeClientset) {\n\treturn FakeNewWithIngressSupports(false, true)\n}",
"func New(addr string, port int) *Server {\n\tctx, cancel := context.WithCancel(context.Background())\n\treturn &Server{\n\t\taddr: addr,\n\t\tport: port,\n\t\tctx: ctx,\n\t\tctxCancel: cancel,\n\t}\n}",
"func createTestServer(numClients, lenMS, lenSalt int, fpRate float64, numUniqWords uint64) (*server.Server, string) {\n\tdir, err := ioutil.TempDir(\"\", \"serverTest\")\n\tif err != nil {\n\t\tpanic(\"cannot create the temporary test directory\")\n\t}\n\ts, err2 := server.CreateServer(numClients, lenMS, lenSalt, dir, fpRate, numUniqWords)\n\tif err2 != nil {\n\t\tpanic(\"error in creating the server\")\n\t}\n\treturn s, dir\n}",
"func NewTestServer(accessToken string, userInfo *UserInfo) *httptest.Server {\n\treturn httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tif r.URL.Path == userInfoEndpointPath {\n\t\t\tif r.Header[\"Authorization\"][0] == \"Bearer \"+accessToken {\n\t\t\t\tpayload, _ := json.Marshal(&userInfo)\n\n\t\t\t\tw.WriteHeader(200)\n\t\t\t\tw.Write(payload)\n\t\t\t} else {\n\t\t\t\tw.WriteHeader(401)\n\t\t\t}\n\t\t} else {\n\t\t\tw.WriteHeader(404)\n\t\t}\n\t}))\n}",
"func NewTestServerFromConnector(port int, sc data.Connector) (*httptest.Server, error) {\n\troot := mux.NewRouter()\n\troute.GetHandler(root, sc)\n\tn := negroni.New()\n\tn.UseHandler(root)\n\n\tserver := httptest.NewUnstartedServer(n)\n\taddr := fmt.Sprintf(\":%d\", port)\n\tl, err := net.Listen(\"tcp\", addr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tsc.SetURL(fmt.Sprintf(\"http://localhost:%d\", port))\n\tserver.Listener = l\n\tserver.Start()\n\n\tgrip.Infoln(\"started server:\", sc.GetURL())\n\n\treturn server, nil\n}",
"func NewServer(rwc io.ReadWriteCloser, serverPrivkey, serverPubkey []byte) (io.ReadWriteCloser, error) {\n\tconfig := newConfig(false)\n\tconfig.StaticKeypair = noise.DHKey{Private: serverPrivkey, Public: serverPubkey}\n\thandshakeState, err := noise.NewHandshakeState(config)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// -> e, es\n\tmsg, err := readMessage(rwc)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tpayload, _, _, err := handshakeState.ReadMessage(nil, msg)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif len(payload) != 0 {\n\t\treturn nil, errors.New(\"unexpected server payload\")\n\t}\n\n\t// <- e, es\n\tmsg, recvCipher, sendCipher, err := handshakeState.WriteMessage(nil, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\terr = writeMessage(rwc, msg)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn newSocket(rwc, recvCipher, sendCipher), nil\n}",
"func (ghost *Ghost) SpawnTTYServer(res *Response) error {\n\tlog.Println(\"SpawnTTYServer: started\")\n\n\tvar tty *os.File\n\tvar err error\n\tstopConn := make(chan bool, 1)\n\n\tdefer func() {\n\t\tghost.quit = true\n\t\tif tty != nil {\n\t\t\ttty.Close()\n\t\t}\n\t\tghost.Conn.Close()\n\t\tlog.Println(\"SpawnTTYServer: terminated\")\n\t}()\n\n\tif ghost.ttyDevice == \"\" {\n\t\t// No TTY device specified, open a PTY (pseudo terminal) instead.\n\t\tshell := os.Getenv(\"SHELL\")\n\t\tif shell == \"\" {\n\t\t\tshell = defaultShell\n\t\t}\n\n\t\thome := os.Getenv(\"HOME\")\n\t\tif home == \"\" {\n\t\t\thome = \"/root\"\n\t\t}\n\n\t\t// Add ghost executable to PATH\n\t\texePath, err := GetExecutablePath()\n\t\tif err == nil {\n\t\t\tos.Setenv(\"PATH\", fmt.Sprintf(\"%s:%s\", filepath.Dir(exePath),\n\t\t\t\tos.Getenv(\"PATH\")))\n\t\t}\n\n\t\tos.Chdir(home)\n\t\tcmd := exec.Command(shell)\n\t\ttty, err = pty.Start(cmd)\n\t\tif err != nil {\n\t\t\treturn errors.New(`SpawnTTYServer: Cannot start \"` + shell + `\", abort`)\n\t\t}\n\n\t\tdefer func() {\n\t\t\tcmd.Process.Kill()\n\t\t}()\n\n\t\t// Register the mapping of sid and ttyName\n\t\tttyName, err := termios.Ptsname(tty.Fd())\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tclient, err := ghostRPCStubServer()\n\n\t\t// Ghost could be launched without RPC server, ignore registraion\n\t\tif err == nil {\n\t\t\terr = client.Call(\"rpc.RegisterTTY\", []string{ghost.sid, ttyName},\n\t\t\t\t&EmptyReply{})\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\terr = client.Call(\"rpc.RegisterSession\", []string{\n\t\t\t\tghost.sid, strconv.Itoa(cmd.Process.Pid)}, &EmptyReply{})\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\n\t\tgo func() {\n\t\t\tio.Copy(ghost.Conn, tty)\n\t\t\tcmd.Wait()\n\t\t\tstopConn <- true\n\t\t}()\n\t} else {\n\t\t// Open a TTY device\n\t\ttty, err = os.OpenFile(ghost.ttyDevice, os.O_RDWR, 0)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tvar term syscall.Termios\n\t\terr := termios.Tcgetattr(tty.Fd(), &term)\n\t\tif err != nil {\n\t\t\treturn nil\n\t\t}\n\n\t\ttermios.Cfmakeraw(&term)\n\t\tterm.Iflag &= (syscall.IXON | syscall.IXOFF)\n\t\tterm.Cflag |= syscall.CLOCAL\n\t\tterm.Ispeed = syscall.B115200\n\t\tterm.Ospeed = syscall.B115200\n\n\t\tif err = termios.Tcsetattr(tty.Fd(), termios.TCSANOW, &term); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tgo func() {\n\t\t\tio.Copy(ghost.Conn, tty)\n\t\t\tstopConn <- true\n\t\t}()\n\t}\n\n\tvar controlBuffer bytes.Buffer\n\tvar writeBuffer bytes.Buffer\n\tcontrolState := controlNone\n\n\tprocessBuffer := func(buffer []byte) error {\n\t\twriteBuffer.Reset()\n\t\tfor len(buffer) > 0 {\n\t\t\tif controlState != controlNone {\n\t\t\t\tindex := bytes.IndexByte(buffer, controlEnd)\n\t\t\t\tif index != -1 {\n\t\t\t\t\tcontrolBuffer.Write(buffer[:index])\n\t\t\t\t\terr := ghost.handleTTYControl(tty, controlBuffer.String())\n\t\t\t\t\tcontrolState = controlNone\n\t\t\t\t\tcontrolBuffer.Reset()\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn err\n\t\t\t\t\t}\n\t\t\t\t\tbuffer = buffer[index+1:]\n\t\t\t\t} else {\n\t\t\t\t\tcontrolBuffer.Write(buffer)\n\t\t\t\t\tbuffer = buffer[0:0]\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tindex := bytes.IndexByte(buffer, controlStart)\n\t\t\t\tif index != -1 {\n\t\t\t\t\tcontrolState = controlStart\n\t\t\t\t\twriteBuffer.Write(buffer[:index])\n\t\t\t\t\tbuffer = buffer[index+1:]\n\t\t\t\t} else {\n\t\t\t\t\twriteBuffer.Write(buffer)\n\t\t\t\t\tbuffer = buffer[0:0]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif writeBuffer.Len() != 0 {\n\t\t\ttty.Write(writeBuffer.Bytes())\n\t\t}\n\t\treturn nil\n\t}\n\n\tif ghost.ReadBuffer != \"\" {\n\t\tprocessBuffer([]byte(ghost.ReadBuffer))\n\t\tghost.ReadBuffer = \"\"\n\t}\n\n\tfor {\n\t\tselect {\n\t\tcase buffer := <-ghost.readChan:\n\t\t\terr := processBuffer(buffer)\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(\"SpawnTTYServer:\", err)\n\t\t\t}\n\t\tcase err := <-ghost.readErrChan:\n\t\t\tif err == io.EOF {\n\t\t\t\tlog.Println(\"SpawnTTYServer: connection terminated\")\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\treturn err\n\t\tcase s := <-stopConn:\n\t\t\tif s {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil\n}",
"func ExampleNewThriftServer() {\n\t// variables should be initialized properly in production\n\tvar (\n\t\tecImpl *edgecontext.Impl\n\t\thandler baseplate.BaseplateService\n\t\tlogger log.Wrapper\n\t)\n\n\tprocessor := baseplate.NewBaseplateServiceProcessor(handler)\n\tserver, err := thriftbp.NewThriftServer(\n\t\tthriftbp.ServerConfig{\n\t\t\tAddr: \"localhost:8080\",\n\t\t\tTimeout: time.Second,\n\t\t\tLogger: logger,\n\t\t},\n\t\tprocessor,\n\t\tedgecontext.InjectThriftEdgeContext(ecImpl, logger),\n\t\ttracing.InjectThriftServerSpan,\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Fatal(server.Serve())\n}",
"func NewMockTestServer(pathMap map[string]string, tlsEnabled bool) (*MockTestServer, error) {\n\t// Create web server instance\n\tmts := &MockTestServer{\n\t\tNonTLS: &MockTestServerInstance{},\n\t\tTLS: &MockTestServerInstance{},\n\t}\n\tserverEndpoints := map[string]string{\n\t\t\"/redfish/v1/\": \"root_1.json\",\n\t\t\"/redfish/v1/Systems/\": \"computer_system_collection_1.json\",\n\t\t\"/redfish/v1/Systems/System.Embedded.1/\": \"computer_system_1.json\",\n\t\t\"/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces/\": \"network_interface_collection_1.json\",\n\t\t\"/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces/NIC.Integrated.1\": \"network_interface_integrated_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/\": \"network_port_collection_integrated_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/\": \"network_adapter_integrated_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkDeviceFunctions/\": \"network_device_function_collection_integrated_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkDeviceFunctions/NIC.Integrated.1-1-1\": \"network_device_function_integrated_1_1_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkDeviceFunctions/NIC.Integrated.1-2-1\": \"network_device_function_integrated_1_2_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkDeviceFunctions/NIC.Integrated.1-3-1\": \"network_device_function_integrated_1_3_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkDeviceFunctions/NIC.Integrated.1-4-1\": \"network_device_function_integrated_1_4_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/NIC.Integrated.1-1\": \"network_port_integrated_1_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/NIC.Integrated.1-2\": \"network_port_integrated_1_2.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/NIC.Integrated.1-3\": \"network_port_integrated_1_3.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/NIC.Integrated.1-4\": \"network_port_integrated_1_4.json\",\n\t\t\"/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces/NIC.Slot.2\": \"network_interface_slot_2.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Slot.2/\": \"network_adapter_slot_2.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Slot.2/NetworkDeviceFunctions/\": \"network_device_function_collection_slot_2.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Slot.2/NetworkDeviceFunctions/NIC.Slot.2-1-1\": \"network_device_function_slot_2_1_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Slot.2/NetworkDeviceFunctions/NIC.Slot.2-2-1\": \"network_device_function_slot_2_2_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Slot.2/NetworkPorts/\": \"network_port_collection_slot_2.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/NIC.Slot.2-1\": \"network_port_slot_2_1.json\",\n\t\t\"/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1/NetworkPorts/NIC.Slot.2-2\": \"network_port_slot_2_2.json\",\n\t}\n\n\tif pathMap != nil {\n\t\tfor k, v := range pathMap {\n\t\t\tif _, exists := serverEndpoints[k]; !exists {\n\t\t\t\tserverEndpoints[k] = v\n\t\t\t}\n\t\t}\n\t}\n\n\tdataDir := \"../../assets/responses\"\n\tmux := http.NewServeMux()\n\tmux.HandleFunc(\"/\", func(w http.ResponseWriter, req *http.Request) {\n\t\tvar err error\n\t\tvar fp string\n\t\tvar fc []byte\n\t\tisAuthError := true\n\t\tauthHeader := req.Header.Get(\"Authorization\")\n\t\tif strings.HasPrefix(authHeader, \"Basic \") {\n\t\t\tauthHeader = strings.TrimLeft(authHeader, \"Basic\")\n\t\t\tauthHeader = strings.TrimSpace(authHeader)\n\t\t\tif b, err := base64.StdEncoding.DecodeString(authHeader); err == nil {\n\t\t\t\tif string(b) == \"admin:secret\" {\n\t\t\t\t\tisAuthError = false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif isAuthError {\n\t\t\tfp = fmt.Sprintf(\"%s/access_denied_error_1.json\", dataDir)\n\t\t\tfc, err = ioutil.ReadFile(fp)\n\t\t\tif err != nil {\n\t\t\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\t\t\treturn\n\t\t\t}\n\t\t\thttp.Error(w, string(fc), http.StatusNotFound)\n\t\t\treturn\n\t\t}\n\n\t\tif req.Method != \"GET\" {\n\t\t\thttp.Error(w, \"Bad Request, expecting GET\", http.StatusBadRequest)\n\t\t\treturn\n\t\t}\n\n\t\tif strings.HasSuffix(req.URL.Path, \"/empty_response\") {\n\t\t\tpanic(\"\")\n\t\t}\n\n\t\tif strings.HasSuffix(req.URL.Path, \"/replay_request\") {\n\t\t\treqBlob, _ := httputil.DumpRequest(req, true)\n\t\t\tw.Write(reqBlob)\n\t\t\treturn\n\t\t}\n\n\t\trespFileName, respFileExists := serverEndpoints[req.URL.Path]\n\t\tif !respFileExists {\n\t\t\tfp = fmt.Sprintf(\"%s/not_found_error_1.json\", dataDir)\n\t\t\tfc, err = ioutil.ReadFile(fp)\n\t\t\tif err != nil {\n\t\t\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\t\t\treturn\n\t\t\t}\n\t\t\thttp.Error(w, string(fc), http.StatusNotFound)\n\t\t\treturn\n\t\t}\n\n\t\tfp = fmt.Sprintf(\"%s/%s\", dataDir, respFileName)\n\t\tfc, err = ioutil.ReadFile(fp)\n\t\tif err != nil {\n\t\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\t\treturn\n\t\t}\n\t\tw.Write(fc)\n\t})\n\n\t// Initialize HTTP server\n\tmts.NonTLS.Instance = httptest.NewServer(mux)\n\tlog.Debugf(\"HTTP Server URL: %s\", mts.NonTLS.Instance.URL)\n\thttpServerURL, err := url.Parse(mts.NonTLS.Instance.URL)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tmts.NonTLS.URL = httpServerURL\n\tmts.NonTLS.Hostname = httpServerURL.Hostname()\n\tlog.Debugf(\"HTTP Server Hostname: %s\", mts.NonTLS.Hostname)\n\tmts.NonTLS.Protocol = strings.Split(mts.NonTLS.Instance.URL, \":\")[0]\n\tlog.Debugf(\"HTTP Server Protocol: %s\", mts.NonTLS.Protocol)\n\thttpServerPort, _ := strconv.Atoi(httpServerURL.Port())\n\tmts.NonTLS.Port = httpServerPort\n\tlog.Debugf(\"HTTP Server Port: %d\", mts.NonTLS.Port)\n\n\tif tlsEnabled {\n\t\t// Initialize HTTPS server\n\t\tmts.TLS.Instance = httptest.NewTLSServer(mux)\n\t\tlog.Debugf(\"HTTPS Server URL: %s\", mts.TLS.Instance.URL)\n\t\thttpsServerURL, err := url.Parse(mts.TLS.Instance.URL)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tmts.TLS.URL = httpsServerURL\n\t\tmts.TLS.Hostname = httpsServerURL.Hostname()\n\t\tlog.Debugf(\"HTTPS Server Hostname: %s\", mts.TLS.Hostname)\n\t\tmts.TLS.Protocol = strings.Split(mts.TLS.Instance.URL, \":\")[0]\n\t\tlog.Debugf(\"HTTPS Server Protocol: %s\", mts.TLS.Protocol)\n\t\thttpsServerPort, _ := strconv.Atoi(httpsServerURL.Port())\n\t\tmts.TLS.Port = httpsServerPort\n\t\tlog.Debugf(\"HTTPS Server Port: %d\", mts.TLS.Port)\n\t}\n\n\treturn mts, nil\n}",
"func newPingChannelServer(s *StorjTelehash) func() ChannelHandler {\n\treturn func() ChannelHandler {\n\t\tlogging.Println(\"factory\")\n\t\tlogging.Println(s)\n\t\treturn &pingChannelServer{st: s}\n\t}\n}",
"func New(nodeAddress, apiAddress, faucetAddress string, option ...Option) (*Client, error) {\n\topts := &options{\n\t\tkeyringBackend: keyring.BackendOS,\n\t}\n\tfor _, o := range option {\n\t\to(opts)\n\t}\n\tkr, err := keyring.New(types.KeyringServiceName(), opts.keyringBackend, homedir, os.Stdin)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tclient, err := rpchttp.New(nodeAddress, \"/websocket\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tout := &bytes.Buffer{}\n\tclientCtx := NewClientCtx(kr, client, out)\n\tfactory := NewFactory(clientCtx)\n\treturn &Client{\n\t\tkr: kr,\n\t\tfactory: factory,\n\t\tclientCtx: clientCtx,\n\t\tapiAddress: apiAddress,\n\t\tfaucetAddress: faucetAddress,\n\t\tout: out,\n\t}, nil\n}",
"func NewServer(path string, impl vpnkit.Implementation) (Server, error) {\n\tt := transport.Choose(path)\n\tl, err := t.Listen(path)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\te := echo.New()\n\te.HideBanner = true\n\te.Listener = l\n\th := &httpServer{\n\t\te,\n\t\timpl,\n\t}\n\n\te.PUT(vpnkit.ExposePortPath, func(c echo.Context) error {\n\t\treturn h.ExposePort(c)\n\t})\n\t// for backwards compat\n\te.POST(vpnkit.ExposePortPath, func(c echo.Context) error {\n\t\treturn h.ExposePort(c)\n\t})\n\te.PUT(vpnkit.ExposePipePath, func(c echo.Context) error {\n\t\treturn h.ExposePipe(c)\n\t})\n\t// for backwards compat\n\te.POST(vpnkit.ExposePipePath, func(c echo.Context) error {\n\t\treturn h.ExposePipe(c)\n\t})\n\te.DELETE(vpnkit.UnexposePortPath, func(c echo.Context) error {\n\t\treturn h.UnexposePort(c)\n\t})\n\t// for backwards compat\n\te.POST(vpnkit.UnexposePortPath, func(c echo.Context) error {\n\t\treturn h.UnexposePort(c)\n\t})\n\te.DELETE(vpnkit.UnexposePipePath, func(c echo.Context) error {\n\t\treturn h.UnexposePipe(c)\n\t})\n\t// for backwards compat\n\te.POST(vpnkit.UnexposePipePath, func(c echo.Context) error {\n\t\treturn h.UnexposePipe(c)\n\t})\n\te.GET(vpnkit.ListPath, func(c echo.Context) error {\n\t\treturn h.List(c)\n\t})\n\te.GET(vpnkit.DumpStatePath, func(c echo.Context) error {\n\t\treturn h.DumpState(c)\n\t})\n\n\treturn h, nil\n}",
"func New(privkey crypto.PrivKey) (*Transport, error) {\n\treturn noise.New(privkey)\n}",
"func New(server *http.Server) (*Server, error) {\n\tlistener, err := zerodown.Listen(\"tcp\", server.Addr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Server{\n\t\tserver: server,\n\t\tlistener: listener,\n\t}, nil\n}",
"func NewServer(t *testing.T, deployment *docker.Deployment, opts ...func(*Server)) *Server {\n\t// generate signing key\n\t_, priv, err := ed25519.GenerateKey(nil)\n\tif err != nil {\n\t\tt.Fatalf(\"federation.NewServer failed to generate ed25519 key: %s\", err)\n\t}\n\n\tsrv := &Server{\n\t\tt: t,\n\t\tPriv: priv,\n\t\tKeyID: \"ed25519:complement\",\n\t\tmux: mux.NewRouter(),\n\t\tServerName: docker.HostnameRunningComplement,\n\t\trooms: make(map[string]*ServerRoom),\n\t\taliases: make(map[string]string),\n\t\tUnexpectedRequestsAreErrors: true,\n\t}\n\tfetcher := &basicKeyFetcher{\n\t\tKeyFetcher: &gomatrixserverlib.DirectKeyFetcher{\n\t\t\tClient: *gomatrixserverlib.NewClientWithTransport(&docker.RoundTripper{\n\t\t\t\tDeployment: deployment,\n\t\t\t}),\n\t\t},\n\t\tsrv: srv,\n\t}\n\tsrv.keyRing = &gomatrixserverlib.KeyRing{\n\t\tKeyDatabase: &nopKeyDatabase{},\n\t\tKeyFetchers: []gomatrixserverlib.KeyFetcher{\n\t\t\tfetcher,\n\t\t},\n\t}\n\tsrv.mux.Use(func(h http.Handler) http.Handler {\n\t\t// Return a json Content-Type header to all requests by default\n\t\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.Header().Add(\"Content-Type\", \"application/json\")\n\t\t\th.ServeHTTP(w, r)\n\t\t})\n\t})\n\tsrv.mux.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {\n\t\tif srv.UnexpectedRequestsAreErrors {\n\t\t\tt.Errorf(\"Server.UnexpectedRequestsAreErrors=true received unexpected request to server: %s %s\", req.Method, req.URL.Path)\n\t\t} else {\n\t\t\tt.Logf(\"Server.UnexpectedRequestsAreErrors=false received unexpected request to server: %s %s\", req.Method, req.URL.Path)\n\t\t}\n\t\tw.WriteHeader(404)\n\t\tw.Write([]byte(\"complement: federation server is not listening for this path\"))\n\t})\n\n\t// generate certs and an http.Server\n\thttpServer, certPath, keyPath, err := federationServer(\"name\", srv.mux)\n\tsrv.certPath = certPath\n\tsrv.keyPath = keyPath\n\tsrv.srv = httpServer\n\n\tfor _, opt := range opts {\n\t\topt(srv)\n\t}\n\treturn srv\n}",
"func newServer(config Config) *http.Server {\n\treturn &http.Server{\n\t\tAddr: fmt.Sprintf(\":%s\", config.Port),\n\t\tHandler: newRouter(config),\n\t}\n}",
"func fakeServer(f func(http.ResponseWriter, *http.Request)) *httptest.Server {\n\treturn httptest.NewServer(http.HandlerFunc(f))\n}",
"func NewServer(args *Args, info map[string]template.Info, adapters []adapter.InfoFn) (*Server, error) {\n\tlis, err := net.Listen(\"tcp\", args.MixerServerAddr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcontext := cmd.SetupTestServer(info, adapters, []adapter.RegisterFn{}, args.ConfigStoreURL, args.ConfigStore2URL,\n\t\targs.ConfigDefaultNamespace, args.ConfigIdentityAttribute, args.ConfigIdentityAttributeDomain)\n\tshutdown := make(chan struct{})\n\n\tgo func() {\n\t\tshared.Printf(\"Start test Mixer on:%v\\n\", lis.Addr())\n\t\t{\n\t\t\tdefer context.GP.Close()\n\t\t\tdefer context.AdapterGP.Close()\n\t\t\tif err := context.Server.Serve(lis); err != nil {\n\t\t\t\tshared.Printf(\"Mixer Shutdown: %v\\n\", err)\n\t\t\t}\n\t\t}\n\t\tshutdown <- struct{}{}\n\t}()\n\n\treturn &Server{\n\t\taddr: lis.Addr().String(),\n\t\tmixerContext: context,\n\t\tshutdown: shutdown,\n\t}, nil\n}",
"func NewServerFactory(ctx context.Context, rcmd *channels.Remote, s string, l *logrus.Logger, wg *sync.WaitGroup) *Server {\n\treturn &Server{\n\t\tlogger: l,\n\t\tunixSocket: s,\n\t\trcmd: rcmd,\n\t\tctx: ctx,\n\t\twg: wg,\n\t}\n}",
"func newServer(mux *http.ServeMux, addr string) *http.Server {\n\tsrv := &http.Server{\n\t\tAddr: addr,\n\t\tReadTimeout: 5 * time.Second,\n\t\tWriteTimeout: 10 * time.Second,\n\t\tIdleTimeout: 120 * time.Second,\n\t\tHandler: mux,\n\t}\n\n\treturn srv\n}",
"func NewServer(t *testing.T, deployment *docker.Deployment, opts ...func(*Server)) *Server {\n\t// generate signing key\n\t_, priv, err := ed25519.GenerateKey(nil)\n\tif err != nil {\n\t\tt.Fatalf(\"federation.NewServer failed to generate ed25519 key: %s\", err)\n\t}\n\n\tsrv := &Server{\n\t\tt: t,\n\t\tPriv: priv,\n\t\tKeyID: \"ed25519:complement\",\n\t\tmux: mux.NewRouter(),\n\t\tServerName: docker.HostnameRunningComplement,\n\t\trooms: make(map[string]*ServerRoom),\n\t\taliases: make(map[string]string),\n\t\tUnexpectedRequestsAreErrors: true,\n\t}\n\tfetcher := &basicKeyFetcher{\n\t\tKeyFetcher: &gomatrixserverlib.DirectKeyFetcher{\n\t\t\tClient: gomatrixserverlib.NewClient(\n\t\t\t\tgomatrixserverlib.WithTransport(&docker.RoundTripper{Deployment: deployment}),\n\t\t\t),\n\t\t},\n\t\tsrv: srv,\n\t}\n\tsrv.keyRing = &gomatrixserverlib.KeyRing{\n\t\tKeyDatabase: &nopKeyDatabase{},\n\t\tKeyFetchers: []gomatrixserverlib.KeyFetcher{\n\t\t\tfetcher,\n\t\t},\n\t}\n\tsrv.mux.Use(func(h http.Handler) http.Handler {\n\t\t// Return a json Content-Type header to all requests by default\n\t\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.Header().Add(\"Content-Type\", \"application/json\")\n\t\t\th.ServeHTTP(w, r)\n\t\t})\n\t})\n\tsrv.mux.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {\n\t\tif srv.UnexpectedRequestsAreErrors {\n\t\t\tt.Errorf(\"Server.UnexpectedRequestsAreErrors=true received unexpected request to server: %s %s\", req.Method, req.URL.Path)\n\t\t} else {\n\t\t\tt.Logf(\"Server.UnexpectedRequestsAreErrors=false received unexpected request to server: %s %s\", req.Method, req.URL.Path)\n\t\t}\n\t\tw.WriteHeader(404)\n\t\tw.Write([]byte(\"complement: federation server is not listening for this path\"))\n\t})\n\n\t// generate certs and an http.Server\n\thttpServer, certPath, keyPath, err := federationServer(\"name\", srv.mux)\n\tif err != nil {\n\t\tt.Fatalf(\"complement: unable to create federation server and certificates: %s\", err.Error())\n\t}\n\tsrv.certPath = certPath\n\tsrv.keyPath = keyPath\n\tsrv.srv = httpServer\n\n\tfor _, opt := range opts {\n\t\topt(srv)\n\t}\n\treturn srv\n}",
"func makeTestServer(jail *Jail) func() {\n\ttestHandler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {\n\t\tfmt.Fprint(w, successRes)\n\t})\n\n\twithMiddleware := jail.Middleware(testHandler)\n\n\tsrv := http.Server{\n\t\tHandler: withMiddleware,\n\t\tAddr: testPort,\n\t}\n\n\tgo func() {\n\t\tif err := srv.ListenAndServe(); err != http.ErrServerClosed {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t}()\n\n\tctx := context.Background()\n\n\treturn func() {\n\t\tsrv.Shutdown(ctx)\n\t}\n}",
"func New(factory func() interface{}) *Server {\n\tt := topic.New()\n\tt.AddSubscriber(1, &subscriber{state: factory()})\n\treturn &Server{topic: t}\n}",
"func StartKVServer(servers []*labrpc.ClientEnd, me int, persister *raft.Persister, maxraftstate int) *KVServer {\n // call labgob.Register on structures you want\n // Go's RPC library to marshall/unmarshall.\n labgob.Register(Op{})\n\n kv := new(KVServer)\n kv.me = me\n kv.maxraftstate = maxraftstate\n\n // You may need initialization code here.\n\n kv.applyCh = make(chan raft.ApplyMsg, 1)\n kv.rf = raft.Make(servers, me, persister, kv.applyCh)\n\n // You may need initialization code here.\n kv.data = make(map[string]string)\n kv.pendingOps = make(map[int]chan Op)\n kv.dup = make(map[int64]int)\n kv.kill = false\n go kv.ReceiveMsg()\n\n return kv\n}",
"func StartTestServer(payload TestServerPayload) (*httptest.Server, Config) {\n\tserver := httptest.NewServer(http.HandlerFunc(testServer(payload)))\n\tu, _ := url.Parse(server.URL)\n\treturn server, Config{Location: fmt.Sprintf(\"%s:%v\", u.Hostname(), u.Port())}\n}",
"func New(addr string) (*Server, error) {\n\ts := &Server{\n\t\taddr: addr,\n\t\tshutdownTimeout: time.Minute,\n\t\tSessions: make(chan *Session),\n\t}\n\ts.hs = &http.Server{Handler: s}\n\tln, err := net.Listen(\"tcp\", s.addr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\ts.ln = ln\n\ts.ListeningAddr = fmt.Sprintf(\":%d\", s.ln.Addr().(*net.TCPAddr).Port)\n\treturn s, nil\n}",
"func NewServer() *Server {\n\tc := config.GetInstance()\n\n\treturn &Server {\n\t\tinstance: &http.Server{\n\t\t\tAddr: fmt.Sprintf(\":%d\", c.Server.Port),\n\t\t\tReadTimeout: time.Duration(c.Server.Timeouts.Read) * time.Second,\n\t\t\tWriteTimeout: time.Duration(c.Server.Timeouts.Write) * time.Second,\n\t\t},\n\t\tresources: &Resources{\n\t\t\tDB: db.NewFCDB(),\n\t\t},\n\t\trunning: false,\n\t}\n}",
"func NewBackend() *Server {\n\treturn &Server{\n\t\tIdleTimeout: 620 * time.Second,\n\t\tTCPKeepAlivePeriod: 3 * time.Minute,\n\t\tGraceTimeout: 30 * time.Second,\n\t\tWaitBeforeShutdown: 10 * time.Second,\n\t\tTrustProxy: Trusted(),\n\t\tH2C: true,\n\t\tHandler: http.NotFoundHandler(),\n\t}\n}",
"func New(address string, timeoutDuration time.Duration) *TcpServer {\r\n\tlog.Println(\"Creating TcpServer with address\", address)\r\n\r\n\ttcpServer := &TcpServer{\r\n\t\taddress: address,\r\n\t\ttimeoutDuration: timeoutDuration,\r\n\t}\r\n\r\n\ttcpServer.OnNewClient(func(c *Client) {})\r\n\ttcpServer.OnNewBytes(func(c *Client, bytes []byte) {})\r\n\ttcpServer.OnClientConnectionClosed(func(c *Client, err error) {})\r\n\r\n\tlog.Println(\"DONE creating TcpServer with address\", tcpServer)\r\n\treturn tcpServer\r\n}",
"func newServer(handler connHandler, logger *zap.Logger) *server {\n\ts := &server{\n\t\thandler: handler,\n\t\tlogger: logger.With(zap.String(\"sector\", \"server\")),\n\t}\n\treturn s\n}",
"func New(device, addr string, port int) (*Transport, error) {\n return &Transport{\n device: device,\n addr: addr,\n port: port,\n sessions: make(map[string]*ssh.Session, 800),\n clients: make(map[string]*ssh.Client, 100),\n }, nil\n}",
"func NewServer(port string, newClients chan<- *Client, clientInput chan<- *ClientInputMessage) *Server {\n\tid := NewID(\"server\")\n\tlog := NewLogger(id)\n\treturn &Server{id, newClients, clientInput, port, nil, log}\n}",
"func New(server *url.URL) *genclient.Fulcio {\n\trt := httptransport.New(server.Host, genclient.DefaultBasePath, []string{server.Scheme})\n\trt.Consumers[\"application/pem-certificate-chain\"] = runtime.TextConsumer()\n\treturn genclient.New(rt, strfmt.Default)\n}",
"func NewServer(tb testing.TB, a server.Adapter, opts *server.Options) *Server {\n\tl, err := net.Listen(\"tcp\", \"127.0.0.1:0\")\n\tif err != nil {\n\t\ttb.Helper()\n\t\ttb.Fatalf(\"net.Listen failed: %s\", err)\n\t}\n\treturn &Server{\n\t\tl: l,\n\t\ts: &server.Server{\n\t\t\tAddr: \"tcp://\" + l.Addr().String(),\n\t\t\tAdapter: a,\n\t\t\tOptions: opts,\n\t\t},\n\t}\n}",
"func NewServer(config *Config, logger kitlog.Logger) *Server {\n\tdb := postgres.NewDB(&postgres.Config{\n\t\tConnStr: config.ConnStr,\n\t\tEncryptionPassword: config.EncryptionPassword,\n\t}, logger)\n\n\tds := datastore.NewDatastoreProtobufClient(\n\t\tconfig.DatastoreAddr,\n\t\t&http.Client{\n\t\t\tTimeout: time.Second * 10,\n\t\t},\n\t)\n\n\tmv := pipeline.NewMovingAverager(config.Verbose, clock.New(), logger)\n\n\tprocessor := pipeline.NewProcessor(ds, mv, config.Verbose, logger)\n\n\tmqttClient := mqtt.NewClient(logger, config.Verbose)\n\n\tenc := rpc.NewEncoder(&rpc.Config{\n\t\tDB: db,\n\t\tMQTTClient: mqttClient,\n\t\tProcessor: processor,\n\t\tVerbose: config.Verbose,\n\t\tBrokerAddr: config.BrokerAddr,\n\t\tBrokerUsername: config.BrokerUsername,\n\t}, logger)\n\n\thooks := twrpprom.NewServerHooks(registry.DefaultRegisterer)\n\n\tbuildInfo.WithLabelValues(version.BinaryName, version.Version, version.BuildDate)\n\n\tlogger = kitlog.With(logger, \"module\", \"server\")\n\tlogger.Log(\n\t\t\"msg\", \"creating server\",\n\t\t\"datastore\", config.DatastoreAddr,\n\t\t\"mqttBroker\", config.BrokerAddr,\n\t\t\"listenAddr\", config.ListenAddr,\n\t\t\"mqttUsername\", config.BrokerAddr,\n\t)\n\n\ttwirpHandler := encoder.NewEncoderServer(enc, hooks)\n\n\t// multiplex twirp handler into a mux with our other handlers\n\tmux := goji.NewMux()\n\n\tmux.Handle(pat.Post(encoder.EncoderPathPrefix+\"*\"), twirpHandler)\n\tmux.Handle(pat.Get(\"/pulse\"), PulseHandler(db))\n\tmux.Handle(pat.Get(\"/metrics\"), promhttp.Handler())\n\n\tmux.Use(middleware.RequestIDMiddleware)\n\n\tmetricsMiddleware := middleware.MetricsMiddleware(\"decode\", \"encoder\", registry.DefaultRegisterer)\n\tmux.Use(metricsMiddleware)\n\n\t// create our http.Server instance\n\tsrv := &http.Server{\n\t\tAddr: config.ListenAddr,\n\t\tHandler: mux,\n\t}\n\n\t// return the instantiated server\n\treturn &Server{\n\t\tsrv: srv,\n\t\tencoder: enc,\n\t\tdb: db,\n\t\tmqtt: mqttClient,\n\t\tlogger: kitlog.With(logger, \"module\", \"server\"),\n\t\tdomains: config.Domains,\n\t}\n}",
"func NewServer(options Options, observationContext *observation.Context) goroutine.BackgroundRoutine {\n\taddr := fmt.Sprintf(\":%d\", options.Port)\n\thandler := newHandlerWithMetrics(options, glock.NewRealClock(), observationContext)\n\thttpHandler := ot.Middleware(httpserver.NewHandler(handler.setupRoutes))\n\tserver := httpserver.NewFromAddr(addr, &http.Server{Handler: httpHandler})\n\tjanitor := goroutine.NewPeriodicGoroutine(context.Background(), options.CleanupInterval, &handlerWrapper{handler})\n\treturn goroutine.CombinedRoutine{server, janitor}\n}",
"func New(name string, serve tfprotov5.ProviderServer, opts ...ServeOpt) tfplugin5.ProviderServer {\n\tvar conf ServeConfig\n\tfor _, opt := range opts {\n\t\terr := opt.ApplyServeOpt(&conf)\n\t\tif err != nil {\n\t\t\t// this should never happen, we already executed all\n\t\t\t// this code as part of Serve\n\t\t\tpanic(err)\n\t\t}\n\t}\n\tvar sdkOptions tfsdklog.Options\n\tvar options tflog.Options\n\tif !conf.disableLogInitStderr {\n\t\tsdkOptions = append(sdkOptions, tfsdklog.WithStderrFromInit())\n\t\toptions = append(options, tfsdklog.WithStderrFromInit())\n\t}\n\tif conf.disableLogLocation {\n\t\tsdkOptions = append(sdkOptions, tfsdklog.WithoutLocation())\n\t\toptions = append(options, tflog.WithoutLocation())\n\t}\n\tenvVar := conf.envVar\n\tif envVar == \"\" {\n\t\taddr, err := tfaddr.ParseRawProviderSourceString(name)\n\t\tif err != nil {\n\t\t\tlog.Printf(\"[ERROR] Error parsing provider name %q: %s\", name, err)\n\t\t} else {\n\t\t\tenvVar = addr.Type\n\t\t}\n\t}\n\tenvVar = strings.ReplaceAll(envVar, \"-\", \"_\")\n\tif envVar != \"\" {\n\t\toptions = append(options, tfsdklog.WithLogName(envVar), tflog.WithLevelFromEnv(\"TF_LOG_PROVIDER\", envVar))\n\t}\n\treturn &server{\n\t\tdownstream: serve,\n\t\tstopCh: make(chan struct{}),\n\t\ttflogOpts: options,\n\t\ttflogSDKOpts: sdkOptions,\n\t\tname: name,\n\t\tuseTFLogSink: conf.useLoggingSink != nil,\n\t\ttestHandle: conf.useLoggingSink,\n\t}\n}",
"func New(port string) *Server {\n\treturn &Server{\n\t\tport: port,\n\t\tmanager: endly.New(),\n\t}\n}",
"func NewServer(port int, params *Params) (Server, error) {\n\ts := &server{\n\t\tnextConnectId: 1,\n\t\tclients: make(map[int]*abstractClient),\n\t\treadFromClientChan: make(chan *msgPackage),\n\t\twriteToClientChan: make(chan *Message),\n\t\treadRequest: &requestRead{\n\t\t\task: make(chan int),\n\t\t\tresponse: make(chan *Message),\n\t\t},\n\t\twriteRequest: &requestWrite{\n\t\t\task: make(chan []byte),\n\t\t\tconnId: make(chan int),\n\t\t\tresponse: make(chan error),\n\t\t},\n\t\treadList: list.New(),\n\t\twriteList: list.New(),\n\n\t\tflag: false,\n\n\t\t// variables for window size\n\t\twindowSize: params.WindowSize,\n\t\tmapNeedSend: list.New(),\n\n\t\t// variables for epoch\n\t\tepochChan: make(chan int),\n\t\tepochMillis: params.EpochMillis,\n\t\tepochLimit: params.EpochLimit,\n\n\t\t// close\n\t\tdeleteClient: make(chan int),\n\t\tcloseConnRequest: &requestCloseConn{\n\t\t\task: make(chan int),\n\t\t\tgetError: make(chan error),\n\t\t},\n\t\twaitToWriteFinish: false,\n\t\twriteFinished: make(chan int),\n\t\twaitToAckFinish: false,\n\t\tackFinished: make(chan int),\n\t\tcloseRead: make(chan int, 1),\n\t\tcloseEpoch: make(chan int, 1),\n\t\tcloseEvent: make(chan int, 1),\n\n\t\t// close conn\n\t\tcloseConn: make(chan int, 1),\n\t}\n\n\t// start server\n\taddr, err := lspnet.ResolveUDPAddr(\"udp\", \"localhost:\"+strconv.Itoa(port))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tconn, err := lspnet.ListenUDP(\"udp\", addr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\ts.conn = conn\n\tgo s.readMessage()\n\tgo s.handleMessage()\n\tgo s.epochFire()\n\n\tfmt.Println(\"new server\")\n\treturn s, nil\n}",
"func NewFakeDelayer(delay time.Duration) *Ethash {\n\treturn &Ethash{fakeMode: true, fakeDelay: delay}\n}",
"func New(\n\taddr string,\n\thandler Handler,\n\tlog *log.Logger,\n\tworkersCount uint8,\n) (srv *Server) {\n\tsrv = &Server{\n\t\taddr: addr,\n\t\thandler: handler,\n\t\tlog: log,\n\t\tClients: newClients(),\n\t\tchStop: make(chan bool, 1),\n\t\tchRequest: make(chan *tRequest, workersCount),\n\t}\n\n\treturn\n}",
"func TestNew(t *testing.T) {\n\tserver, err := New(\"tcp\", \"localhost\", \"50000\", 1)\n\tif err != nil || server == nil {\n\t\tt.Errorf(\"return non initialize server or erorr: %v\", err)\n\t}\n}"
] | [
"0.61271584",
"0.5856492",
"0.57507145",
"0.57309526",
"0.5704111",
"0.56981593",
"0.568734",
"0.56623656",
"0.5638878",
"0.55176324",
"0.55112803",
"0.5489621",
"0.547657",
"0.54391056",
"0.5436373",
"0.5414033",
"0.53960943",
"0.53060645",
"0.5304046",
"0.5303067",
"0.5300091",
"0.5299036",
"0.52701116",
"0.52593315",
"0.52495307",
"0.5245633",
"0.5242984",
"0.5240338",
"0.52385396",
"0.5225426",
"0.52251786",
"0.52165353",
"0.51973",
"0.5172563",
"0.5164829",
"0.51645875",
"0.5150351",
"0.5139952",
"0.51328385",
"0.5113344",
"0.51050377",
"0.50984114",
"0.50974303",
"0.50956416",
"0.5084639",
"0.50808316",
"0.50726604",
"0.50651497",
"0.50638616",
"0.50613683",
"0.5056264",
"0.5055521",
"0.50518006",
"0.5050729",
"0.5047349",
"0.50470895",
"0.50399727",
"0.503744",
"0.50317144",
"0.5031288",
"0.5030637",
"0.5018015",
"0.50139725",
"0.5006055",
"0.49969712",
"0.4993619",
"0.49872047",
"0.4984432",
"0.4981521",
"0.49787688",
"0.4977696",
"0.4970936",
"0.49684766",
"0.4968438",
"0.49563366",
"0.4955177",
"0.49534467",
"0.49442106",
"0.49386168",
"0.49364424",
"0.49350083",
"0.49300757",
"0.4921833",
"0.49206355",
"0.49176845",
"0.4911992",
"0.49002627",
"0.48971352",
"0.48944846",
"0.48938575",
"0.4893541",
"0.48861474",
"0.48851955",
"0.48832506",
"0.48769763",
"0.48753896",
"0.48747367",
"0.48743996",
"0.48727888",
"0.4870066"
] | 0.78772163 | 0 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*InstructionRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _InstructionRequest_OneofMarshaler, _InstructionRequest_OneofUnmarshaler, _InstructionRequest_OneofSizer, []interface{}{
(*InstructionRequest_Register)(nil),
(*InstructionRequest_ProcessBundle)(nil),
(*InstructionRequest_ProcessBundleProgress)(nil),
(*InstructionRequest_ProcessBundleSplit)(nil),
(*InstructionRequest_FinalizeBundle)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*Identity) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Identity_OneofMarshaler, _Identity_OneofUnmarshaler, _Identity_OneofSizer, []interface{}{\n\t\t(*Identity_ServiceAccount)(nil),\n\t\t(*Identity_Hostname)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.8907044",
"0.8906012",
"0.88909197",
"0.8869721",
"0.8868361",
"0.88635784",
"0.886303",
"0.8862766",
"0.8862009",
"0.88613117",
"0.88597536",
"0.8855407",
"0.8853634",
"0.8852364",
"0.8852364",
"0.8852364",
"0.88475925",
"0.8846927",
"0.8845165",
"0.8844588",
"0.88421",
"0.88373846",
"0.8836481",
"0.8836481",
"0.8836481",
"0.8836481",
"0.88350636",
"0.88350636",
"0.88350636",
"0.88350636",
"0.88350636",
"0.88350636",
"0.8833803",
"0.8830951",
"0.8830927",
"0.88306624",
"0.8830648",
"0.88286823",
"0.8828507",
"0.8827149",
"0.88245004",
"0.88238555",
"0.882339",
"0.88216823",
"0.88189507",
"0.88189507",
"0.88189507",
"0.88189507",
"0.88147074",
"0.88129985",
"0.8811185",
"0.8810595",
"0.8810595",
"0.8808957",
"0.88082725",
"0.8807316",
"0.8807316",
"0.8806336",
"0.8806336",
"0.8806336",
"0.8806229",
"0.88047534",
"0.8804656",
"0.8803744",
"0.8803411",
"0.88032824",
"0.8801895",
"0.8801722",
"0.87994444",
"0.8799279",
"0.8796938",
"0.8796938",
"0.8795593",
"0.87951773",
"0.87951773",
"0.87925434",
"0.8791623",
"0.8791623",
"0.8791062",
"0.8791062",
"0.8791062",
"0.8789731",
"0.8789731",
"0.87887543",
"0.87887543",
"0.87883765",
"0.87882817",
"0.8786649",
"0.8786411",
"0.8785757",
"0.87851715",
"0.87851715",
"0.87851715",
"0.87851715",
"0.8785038",
"0.8785038",
"0.8785038",
"0.87844294",
"0.87825185",
"0.8782428",
"0.8782428"
] | 0.0 | -1 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*InstructionResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _InstructionResponse_OneofMarshaler, _InstructionResponse_OneofUnmarshaler, _InstructionResponse_OneofSizer, []interface{}{
(*InstructionResponse_Register)(nil),
(*InstructionResponse_ProcessBundle)(nil),
(*InstructionResponse_ProcessBundleProgress)(nil),
(*InstructionResponse_ProcessBundleSplit)(nil),
(*InstructionResponse_FinalizeBundle)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*Identity) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Identity_OneofMarshaler, _Identity_OneofUnmarshaler, _Identity_OneofSizer, []interface{}{\n\t\t(*Identity_ServiceAccount)(nil),\n\t\t(*Identity_Hostname)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.8906545",
"0.89049524",
"0.88898444",
"0.88690525",
"0.8867597",
"0.8862553",
"0.886212",
"0.88620526",
"0.886116",
"0.88607055",
"0.88589394",
"0.8854383",
"0.88530225",
"0.8851815",
"0.8851815",
"0.8851815",
"0.8847126",
"0.88462305",
"0.88442457",
"0.8843731",
"0.8841164",
"0.8835988",
"0.8835988",
"0.8835988",
"0.8835988",
"0.8835916",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8832893",
"0.88300425",
"0.8829843",
"0.88297045",
"0.8829676",
"0.8827936",
"0.88276094",
"0.88268787",
"0.8823665",
"0.8823105",
"0.8822916",
"0.88210195",
"0.88178575",
"0.88178575",
"0.88178575",
"0.88178575",
"0.8813846",
"0.8811961",
"0.8810305",
"0.88092375",
"0.88092375",
"0.88075525",
"0.88073456",
"0.8807054",
"0.8807054",
"0.8805402",
"0.8804638",
"0.8804638",
"0.8804638",
"0.8804055",
"0.880368",
"0.88027626",
"0.88023484",
"0.88019156",
"0.88011354",
"0.8800475",
"0.8798684",
"0.8798424",
"0.8796181",
"0.8796181",
"0.87943184",
"0.87943184",
"0.8794047",
"0.8791536",
"0.8790553",
"0.8790553",
"0.87904984",
"0.87904984",
"0.87904984",
"0.8788805",
"0.8788805",
"0.8787674",
"0.87874645",
"0.87874645",
"0.8787047",
"0.8786051",
"0.8785734",
"0.87852675",
"0.8784568",
"0.8784568",
"0.8784568",
"0.8784568",
"0.8784395",
"0.8784395",
"0.8784395",
"0.87834555",
"0.87816393",
"0.87815166",
"0.87815166"
] | 0.0 | -1 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*BundleApplication_Backlog) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BundleApplication_Backlog_OneofMarshaler, _BundleApplication_Backlog_OneofUnmarshaler, _BundleApplication_Backlog_OneofSizer, []interface{}{
(*BundleApplication_Backlog_Bytes)(nil),
(*BundleApplication_Backlog_IsUnknown)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.89066267",
"0.8905895",
"0.8890402",
"0.8869575",
"0.88675725",
"0.8863148",
"0.8862479",
"0.8862358",
"0.88617575",
"0.88611835",
"0.8859546",
"0.8854926",
"0.88532656",
"0.8852719",
"0.8852719",
"0.8852719",
"0.88478136",
"0.884675",
"0.8844358",
"0.8843991",
"0.8841739",
"0.8837219",
"0.88368416",
"0.88368416",
"0.88368416",
"0.88368416",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8833572",
"0.88307977",
"0.88304883",
"0.88302827",
"0.88301194",
"0.882826",
"0.8828255",
"0.88271344",
"0.88242674",
"0.88239187",
"0.88232714",
"0.88217366",
"0.8818802",
"0.8818802",
"0.8818802",
"0.8818802",
"0.88145214",
"0.88128865",
"0.88111734",
"0.8810533",
"0.8810533",
"0.8808094",
"0.880797",
"0.880797",
"0.8807843",
"0.8806001",
"0.8806001",
"0.8806001",
"0.880594",
"0.8804551",
"0.8804115",
"0.8803245",
"0.880319",
"0.88031334",
"0.8801615",
"0.88015234",
"0.8799256",
"0.87991583",
"0.87973267",
"0.87973267",
"0.8795543",
"0.8794316",
"0.8794316",
"0.87922746",
"0.87913936",
"0.87913936",
"0.87907636",
"0.87907636",
"0.87907636",
"0.8789604",
"0.8789604",
"0.8788553",
"0.8788553",
"0.8787751",
"0.87874717",
"0.878699",
"0.8786486",
"0.87862307",
"0.87852883",
"0.87852883",
"0.87852883",
"0.87852883",
"0.8785172",
"0.8785172",
"0.8785172",
"0.8783745",
"0.8782584",
"0.8782584",
"0.8782584"
] | 0.0 | -1 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*Metrics_User) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Metrics_User_OneofMarshaler, _Metrics_User_OneofUnmarshaler, _Metrics_User_OneofSizer, []interface{}{
(*Metrics_User_CounterData_)(nil),
(*Metrics_User_DistributionData_)(nil),
(*Metrics_User_GaugeData_)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.8906843",
"0.8905429",
"0.88906664",
"0.88694286",
"0.88676155",
"0.8862868",
"0.8862342",
"0.88622165",
"0.8861409",
"0.88609713",
"0.8859362",
"0.88551843",
"0.88532674",
"0.8852028",
"0.8852028",
"0.8852028",
"0.8847482",
"0.8846273",
"0.8844644",
"0.884417",
"0.8841168",
"0.88365173",
"0.8836282",
"0.8836282",
"0.8836282",
"0.8836282",
"0.88341933",
"0.88341933",
"0.88341933",
"0.88341933",
"0.88341933",
"0.88341933",
"0.8833253",
"0.883007",
"0.8830066",
"0.88299626",
"0.8829687",
"0.88283056",
"0.88283026",
"0.88269705",
"0.88239104",
"0.8823183",
"0.88228655",
"0.88215435",
"0.8818485",
"0.8818485",
"0.8818485",
"0.8818485",
"0.88140327",
"0.881218",
"0.8810424",
"0.8809897",
"0.8809897",
"0.88083225",
"0.8807659",
"0.8807483",
"0.8807483",
"0.88059133",
"0.8805418",
"0.8805418",
"0.8805418",
"0.88049597",
"0.8803846",
"0.8802987",
"0.8802565",
"0.88024324",
"0.88013923",
"0.8801202",
"0.87986904",
"0.87986076",
"0.87968564",
"0.87968564",
"0.87946504",
"0.87942654",
"0.87942654",
"0.87919843",
"0.8790982",
"0.8790982",
"0.8790441",
"0.8790441",
"0.8790441",
"0.87892264",
"0.87892264",
"0.8787719",
"0.8787656",
"0.87874305",
"0.87874305",
"0.87862164",
"0.87858534",
"0.87856966",
"0.8785129",
"0.8785129",
"0.8785129",
"0.8785129",
"0.87848836",
"0.87848836",
"0.87848836",
"0.8783869",
"0.87816876",
"0.87816876",
"0.87816876"
] | 0.0 | -1 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{
(*StateRequest_Get)(nil),
(*StateRequest_Append)(nil),
(*StateRequest_Clear)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*Identity) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Identity_OneofMarshaler, _Identity_OneofUnmarshaler, _Identity_OneofSizer, []interface{}{\n\t\t(*Identity_ServiceAccount)(nil),\n\t\t(*Identity_Hostname)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.8907044",
"0.8906012",
"0.88909197",
"0.8869721",
"0.8868361",
"0.88635784",
"0.886303",
"0.8862766",
"0.8862009",
"0.88613117",
"0.88597536",
"0.8855407",
"0.8853634",
"0.8852364",
"0.8852364",
"0.8852364",
"0.88475925",
"0.8846927",
"0.8845165",
"0.8844588",
"0.88421",
"0.88373846",
"0.8836481",
"0.8836481",
"0.8836481",
"0.8836481",
"0.88350636",
"0.88350636",
"0.88350636",
"0.88350636",
"0.88350636",
"0.88350636",
"0.8833803",
"0.8830951",
"0.8830927",
"0.88306624",
"0.8830648",
"0.88286823",
"0.8828507",
"0.8827149",
"0.88245004",
"0.88238555",
"0.882339",
"0.88216823",
"0.88189507",
"0.88189507",
"0.88189507",
"0.88189507",
"0.88147074",
"0.88129985",
"0.8811185",
"0.8810595",
"0.8810595",
"0.8808957",
"0.88082725",
"0.8807316",
"0.8807316",
"0.8806336",
"0.8806336",
"0.8806336",
"0.8806229",
"0.88047534",
"0.8804656",
"0.8803744",
"0.8803411",
"0.88032824",
"0.8801895",
"0.8801722",
"0.87994444",
"0.8799279",
"0.8795593",
"0.87951773",
"0.87951773",
"0.87925434",
"0.8791623",
"0.8791623",
"0.8791062",
"0.8791062",
"0.8791062",
"0.8789731",
"0.8789731",
"0.87887543",
"0.87887543",
"0.87883765",
"0.87882817",
"0.8786649",
"0.8786411",
"0.8785757",
"0.87851715",
"0.87851715",
"0.87851715",
"0.87851715",
"0.8785038",
"0.8785038",
"0.8785038",
"0.87844294",
"0.87825185",
"0.8782428",
"0.8782428"
] | 0.8796938 | 71 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*StateResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _StateResponse_OneofMarshaler, _StateResponse_OneofUnmarshaler, _StateResponse_OneofSizer, []interface{}{
(*StateResponse_Get)(nil),
(*StateResponse_Append)(nil),
(*StateResponse_Clear)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{\n\t\t(*StateKey_Runner_)(nil),\n\t\t(*StateKey_MultimapSideInput_)(nil),\n\t\t(*StateKey_BagUserState_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*Identity) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Identity_OneofMarshaler, _Identity_OneofUnmarshaler, _Identity_OneofSizer, []interface{}{\n\t\t(*Identity_ServiceAccount)(nil),\n\t\t(*Identity_Hostname)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.8906545",
"0.89049524",
"0.88898444",
"0.88690525",
"0.8867597",
"0.8862553",
"0.886212",
"0.88620526",
"0.886116",
"0.88607055",
"0.88589394",
"0.8854383",
"0.88530225",
"0.8851815",
"0.8851815",
"0.8851815",
"0.8847126",
"0.88462305",
"0.88442457",
"0.8843731",
"0.8841164",
"0.8835988",
"0.8835988",
"0.8835988",
"0.8835988",
"0.8835916",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8833987",
"0.8832893",
"0.88300425",
"0.8829843",
"0.88297045",
"0.8829676",
"0.8827936",
"0.88276094",
"0.88268787",
"0.8823665",
"0.8823105",
"0.8822916",
"0.88210195",
"0.88178575",
"0.88178575",
"0.88178575",
"0.88178575",
"0.8813846",
"0.8811961",
"0.8810305",
"0.88092375",
"0.88092375",
"0.88075525",
"0.88073456",
"0.8807054",
"0.8807054",
"0.8805402",
"0.8804638",
"0.8804638",
"0.8804638",
"0.8804055",
"0.880368",
"0.88027626",
"0.88023484",
"0.88019156",
"0.88011354",
"0.8800475",
"0.8798684",
"0.8798424",
"0.8796181",
"0.8796181",
"0.87943184",
"0.87943184",
"0.8794047",
"0.8791536",
"0.8790553",
"0.8790553",
"0.87904984",
"0.87904984",
"0.87904984",
"0.8788805",
"0.8788805",
"0.8787674",
"0.87874645",
"0.87874645",
"0.8787047",
"0.8786051",
"0.8785734",
"0.87852675",
"0.8784568",
"0.8784568",
"0.8784568",
"0.8784568",
"0.8784395",
"0.8784395",
"0.8784395",
"0.87834555",
"0.87816393",
"0.87815166",
"0.87815166"
] | 0.0 | -1 |
XXX_OneofFuncs is for the internal use of the proto package. | func (*StateKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _StateKey_OneofMarshaler, _StateKey_OneofUnmarshaler, _StateKey_OneofSizer, []interface{}{
(*StateKey_Runner_)(nil),
(*StateKey_MultimapSideInput_)(nil),
(*StateKey_BagUserState_)(nil),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*EncapVal_VlanId)(nil),\n\t\t(*EncapVal_MPLSTag)(nil),\n\t\t(*EncapVal_Vnid)(nil),\n\t\t(*EncapVal_QinQ)(nil),\n\t}\n}",
"func (*FlowL4Info) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowL4Info_OneofMarshaler, _FlowL4Info_OneofUnmarshaler, _FlowL4Info_OneofSizer, []interface{}{\n\t\t(*FlowL4Info_TcpUdpInfo)(nil),\n\t\t(*FlowL4Info_IcmpInfo)(nil),\n\t}\n}",
"func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Msg_OneofMarshaler, _Msg_OneofUnmarshaler, _Msg_OneofSizer, []interface{}{\n\t\t(*Msg_Request)(nil),\n\t\t(*Msg_Preprepare)(nil),\n\t\t(*Msg_Prepare)(nil),\n\t\t(*Msg_Commit)(nil),\n\t\t(*Msg_ViewChange)(nil),\n\t\t(*Msg_NewView)(nil),\n\t\t(*Msg_Checkpoint)(nil),\n\t\t(*Msg_Hello)(nil),\n\t}\n}",
"func (*RuleL4Match) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RuleL4Match_OneofMarshaler, _RuleL4Match_OneofUnmarshaler, _RuleL4Match_OneofSizer, []interface{}{\n\t\t(*RuleL4Match_Ports)(nil),\n\t\t(*RuleL4Match_TypeCode)(nil),\n\t}\n}",
"func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{\n\t\t(*Example_ImagePayload)(nil),\n\t\t(*Example_TextPayload)(nil),\n\t\t(*Example_VideoPayload)(nil),\n\t\t(*Example_AudioPayload)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_StringData)(nil),\n\t\t(*Metric_Float32Data)(nil),\n\t\t(*Metric_Float64Data)(nil),\n\t\t(*Metric_Int32Data)(nil),\n\t\t(*Metric_Int64Data)(nil),\n\t\t(*Metric_BytesData)(nil),\n\t\t(*Metric_BoolData)(nil),\n\t\t(*Metric_Uint32Data)(nil),\n\t\t(*Metric_Uint64Data)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppId)(nil),\n\t\t(*Metadata_AppEui)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_ExecStarted)(nil),\n\t\t(*Message_ExecCompleted)(nil),\n\t\t(*Message_ExecOutput)(nil),\n\t\t(*Message_LogEntry)(nil),\n\t\t(*Message_Error)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Chunk)(nil),\n\t\t(*Message_Status)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_OpenPayload)(nil),\n\t\t(*Message_ClosePayload)(nil),\n\t\t(*Message_DataPayload)(nil),\n\t}\n}",
"func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BMRPCRequest_OneofMarshaler, _BMRPCRequest_OneofUnmarshaler, _BMRPCRequest_OneofSizer, []interface{}{\n\t\t(*BMRPCRequest_Newaddress)(nil),\n\t\t(*BMRPCRequest_Help)(nil),\n\t\t(*BMRPCRequest_Listaddresses)(nil),\n\t}\n}",
"func (*Interface) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Interface_OneofMarshaler, _Interface_OneofUnmarshaler, _Interface_OneofSizer, []interface{}{\n\t\t(*Interface_Sub)(nil),\n\t\t(*Interface_Memif)(nil),\n\t\t(*Interface_Afpacket)(nil),\n\t\t(*Interface_Tap)(nil),\n\t\t(*Interface_Vxlan)(nil),\n\t\t(*Interface_Ipsec)(nil),\n\t\t(*Interface_VmxNet3)(nil),\n\t\t(*Interface_Bond)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*StatTable) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StatTable_OneofMarshaler, _StatTable_OneofUnmarshaler, _StatTable_OneofSizer, []interface{}{\n\t\t(*StatTable_PodGroup_)(nil),\n\t}\n}",
"func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Bitmessage_OneofMarshaler, _Bitmessage_OneofUnmarshaler, _Bitmessage_OneofSizer, []interface{}{\n\t\t(*Bitmessage_Text)(nil),\n\t}\n}",
"func (*WriteReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WriteReq_OneofMarshaler, _WriteReq_OneofUnmarshaler, _WriteReq_OneofSizer, []interface{}{\n\t\t(*WriteReq_Name)(nil),\n\t\t(*WriteReq_Blob)(nil),\n\t}\n}",
"func (*RunnerMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RunnerMsg_OneofMarshaler, _RunnerMsg_OneofUnmarshaler, _RunnerMsg_OneofSizer, []interface{}{\n\t\t(*RunnerMsg_Acknowledged)(nil),\n\t\t(*RunnerMsg_ResultStart)(nil),\n\t\t(*RunnerMsg_Data)(nil),\n\t\t(*RunnerMsg_Finished)(nil),\n\t}\n}",
"func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{}{\n\t\t(*DiscoveryInfo_Inflated)(nil),\n\t\t(*DiscoveryInfo_BlobAdded)(nil),\n\t\t(*DiscoveryInfo_BlobRemoved)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Read_)(nil),\n\t\t(*Event_Write_)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _OpenStatusUpdate_OneofMarshaler, _OpenStatusUpdate_OneofUnmarshaler, _OpenStatusUpdate_OneofSizer, []interface{}{\n\t\t(*OpenStatusUpdate_ChanPending)(nil),\n\t\t(*OpenStatusUpdate_Confirmation)(nil),\n\t\t(*OpenStatusUpdate_ChanOpen)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{\n\t\t(*TwoOneofs_Field1)(nil),\n\t\t(*TwoOneofs_Field2)(nil),\n\t\t(*TwoOneofs_Field3)(nil),\n\t\t(*TwoOneofs_Field34)(nil),\n\t\t(*TwoOneofs_Field35)(nil),\n\t\t(*TwoOneofs_SubMessage2)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Signin)(nil),\n\t\t(*Message_Chatmsg)(nil),\n\t}\n}",
"func (*EvalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EvalRequest_OneofMarshaler, _EvalRequest_OneofUnmarshaler, _EvalRequest_OneofSizer, []interface{}{\n\t\t(*EvalRequest_ParsedExpr)(nil),\n\t\t(*EvalRequest_CheckedExpr)(nil),\n\t}\n}",
"func (*Header) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Header_OneofMarshaler, _Header_OneofUnmarshaler, _Header_OneofSizer, []interface{}{\n\t\t(*Header_Version)(nil),\n\t\t(*Header_SourceType)(nil),\n\t\t(*Header_EventType)(nil),\n\t}\n}",
"func (*LoggingPayloadData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _LoggingPayloadData_OneofMarshaler, _LoggingPayloadData_OneofUnmarshaler, _LoggingPayloadData_OneofSizer, []interface{}{\n\t\t(*LoggingPayloadData_Msg)(nil),\n\t\t(*LoggingPayloadData_Raw)(nil),\n\t}\n}",
"func (*ReadModifyWriteRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ReadModifyWriteRule_OneofMarshaler, _ReadModifyWriteRule_OneofUnmarshaler, _ReadModifyWriteRule_OneofSizer, []interface{}{\n\t\t(*ReadModifyWriteRule_AppendValue)(nil),\n\t\t(*ReadModifyWriteRule_IncrementAmount)(nil),\n\t}\n}",
"func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{\n\t\t(*SetConfigRequest_Entry_ValueStr)(nil),\n\t\t(*SetConfigRequest_Entry_ValueInt32)(nil),\n\t\t(*SetConfigRequest_Entry_ValueBool)(nil),\n\t}\n}",
"func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitmessageRPC_OneofMarshaler, _BitmessageRPC_OneofUnmarshaler, _BitmessageRPC_OneofSizer, []interface{}{\n\t\t(*BitmessageRPC_Request)(nil),\n\t\t(*BitmessageRPC_Reply)(nil),\n\t\t(*BitmessageRPC_Push)(nil),\n\t}\n}",
"func (*HealthCheck_Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _HealthCheck_Payload_OneofMarshaler, _HealthCheck_Payload_OneofUnmarshaler, _HealthCheck_Payload_OneofSizer, []interface{}{\n\t\t(*HealthCheck_Payload_Text)(nil),\n\t\t(*HealthCheck_Payload_Binary)(nil),\n\t}\n}",
"func (*FlowKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FlowKey_OneofMarshaler, _FlowKey_OneofUnmarshaler, _FlowKey_OneofSizer, []interface{}{\n\t\t(*FlowKey_IPFlowKey)(nil),\n\t\t(*FlowKey_MACFlowKey)(nil),\n\t}\n}",
"func (*LeafStat) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _LeafStat_OneofMarshaler, _LeafStat_OneofUnmarshaler, _LeafStat_OneofSizer, []interface{}{\n\t\t(*LeafStat_Classification)(nil),\n\t\t(*LeafStat_Regression)(nil),\n\t}\n}",
"func (*Metadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metadata_OneofMarshaler, _Metadata_OneofUnmarshaler, _Metadata_OneofSizer, []interface{}{\n\t\t(*Metadata_GatewayID)(nil),\n\t\t(*Metadata_DevAddrPrefix)(nil),\n\t\t(*Metadata_AppID)(nil),\n\t\t(*Metadata_AppEUI)(nil),\n\t}\n}",
"func (*BitcoinRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _BitcoinRules_OneofMarshaler, _BitcoinRules_OneofUnmarshaler, _BitcoinRules_OneofSizer, []interface{}{\n\t\t(*BitcoinRules_Address)(nil),\n\t\t(*BitcoinRules_String_)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PolicyUpdateRequest_OneofMarshaler, _PolicyUpdateRequest_OneofUnmarshaler, _PolicyUpdateRequest_OneofSizer, []interface{}{\n\t\t(*PolicyUpdateRequest_Global)(nil),\n\t\t(*PolicyUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*TriggerMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TriggerMessage_OneofMarshaler, _TriggerMessage_OneofUnmarshaler, _TriggerMessage_OneofSizer, []interface{}{\n\t\t(*TriggerMessage_Topic)(nil),\n\t\t(*TriggerMessage_Type)(nil),\n\t\t(*TriggerMessage_Event)(nil),\n\t\t(*TriggerMessage_BodyBytes)(nil),\n\t\t(*TriggerMessage_Offset)(nil),\n\t\t(*TriggerMessage_Extensions)(nil),\n\t\t(*TriggerMessage_Uuid)(nil),\n\t\t(*TriggerMessage_Bid)(nil),\n\t}\n}",
"func (*Params) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Params_OneofMarshaler, _Params_OneofUnmarshaler, _Params_OneofSizer, []interface{}{\n\t\t(*Params_AppCredentials)(nil),\n\t\t(*Params_ApiKey)(nil),\n\t\t(*Params_ServiceAccountPath)(nil),\n\t}\n}",
"func (*Component) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Component_OneofMarshaler, _Component_OneofUnmarshaler, _Component_OneofSizer, []interface{}{\n\t\t(*Component_AppengineModule)(nil),\n\t\t(*Component_GkePod)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Register)(nil),\n\t\t(*Event_Block)(nil),\n\t\t(*Event_ChaincodeEvent)(nil),\n\t\t(*Event_Rejection)(nil),\n\t\t(*Event_Unregister)(nil),\n\t}\n}",
"func (*InternalRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _InternalRequest_OneofMarshaler, _InternalRequest_OneofUnmarshaler, _InternalRequest_OneofSizer, []interface{}{\n\t\t(*InternalRequest_PutReq)(nil),\n\t\t(*InternalRequest_GetReq)(nil),\n\t\t(*InternalRequest_DeleteReq)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Transfer)(nil),\n\t\t(*Message_Account)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*TapEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TapEvent_OneofMarshaler, _TapEvent_OneofUnmarshaler, _TapEvent_OneofSizer, []interface{}{\n\t\t(*TapEvent_Http_)(nil),\n\t}\n}",
"func (*VideoAdInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _VideoAdInfo_OneofMarshaler, _VideoAdInfo_OneofUnmarshaler, _VideoAdInfo_OneofSizer, []interface{}{\n\t\t(*VideoAdInfo_InStream)(nil),\n\t}\n}",
"func (*UploadBinaryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _UploadBinaryRequest_OneofMarshaler, _UploadBinaryRequest_OneofUnmarshaler, _UploadBinaryRequest_OneofSizer, []interface{}{\n\t\t(*UploadBinaryRequest_Key_)(nil),\n\t\t(*UploadBinaryRequest_Chunk_)(nil),\n\t}\n}",
"func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{\n\t\t(*Metric_I64)(nil),\n\t\t(*Metric_U64)(nil),\n\t\t(*Metric_F64)(nil),\n\t\t(*Metric_String_)(nil),\n\t\t(*Metric_Bool)(nil),\n\t\t(*Metric_Duration)(nil),\n\t}\n}",
"func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _SendBitmessageRequest_OneofMarshaler, _SendBitmessageRequest_OneofUnmarshaler, _SendBitmessageRequest_OneofSizer, []interface{}{\n\t\t(*SendBitmessageRequest_Text)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_Error)(nil),\n\t\t(*Event_Progress)(nil),\n\t\t(*Event_Match)(nil),\n\t\t(*Event_Pagination)(nil),\n\t}\n}",
"func (*Service) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Service_OneofMarshaler, _Service_OneofUnmarshaler, _Service_OneofSizer, []interface{}{\n\t\t(*Service_DstPort)(nil),\n\t\t(*Service_IcmpMsgType)(nil),\n\t}\n}",
"func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{\n\t\t(*Config_Custom)(nil),\n\t\t(*Config_Random)(nil),\n\t\t(*Config_Fixed)(nil),\n\t}\n}",
"func (*FetchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FetchRequest_OneofMarshaler, _FetchRequest_OneofUnmarshaler, _FetchRequest_OneofSizer, []interface{}{\n\t\t(*FetchRequest_TagMatchers)(nil),\n\t}\n}",
"func (*Wrapper) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Wrapper_OneofMarshaler, _Wrapper_OneofUnmarshaler, _Wrapper_OneofSizer, []interface{}{\n\t\t(*Wrapper_Source)(nil),\n\t\t(*Wrapper_GherkinDocument)(nil),\n\t\t(*Wrapper_Pickle)(nil),\n\t\t(*Wrapper_Attachment)(nil),\n\t\t(*Wrapper_TestCaseStarted)(nil),\n\t\t(*Wrapper_TestStepStarted)(nil),\n\t\t(*Wrapper_TestStepFinished)(nil),\n\t\t(*Wrapper_TestCaseFinished)(nil),\n\t\t(*Wrapper_TestHookStarted)(nil),\n\t\t(*Wrapper_TestHookFinished)(nil),\n\t}\n}",
"func (*Message) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) {\n\treturn _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{\n\t\t(*Message_Bigint)(nil),\n\t\t(*Message_EcGroupElement)(nil),\n\t\t(*Message_Status)(nil),\n\t\t(*Message_PedersenFirst)(nil),\n\t\t(*Message_PedersenDecommitment)(nil),\n\t\t(*Message_SchnorrProofData)(nil),\n\t\t(*Message_SchnorrProofRandomData)(nil),\n\t\t(*Message_SchnorrEcProofRandomData)(nil),\n\t\t(*Message_PseudonymsysCaCertificate)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomData)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomData)(nil),\n\t\t(*Message_DoubleBigint)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialData)(nil),\n\t\t(*Message_PseudonymsysCaCertificateEc)(nil),\n\t\t(*Message_PseudonymsysNymGenProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysIssueProofRandomDataEc)(nil),\n\t\t(*Message_PseudonymsysTransferCredentialDataEc)(nil),\n\t\t(*Message_SessionKey)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*StateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _StateRequest_OneofMarshaler, _StateRequest_OneofUnmarshaler, _StateRequest_OneofSizer, []interface{}{\n\t\t(*StateRequest_Get)(nil),\n\t\t(*StateRequest_Append)(nil),\n\t\t(*StateRequest_Clear)(nil),\n\t}\n}",
"func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{\n\t\t(*Event_ResourceHeader)(nil),\n\t\t(*Event_CertAuthority)(nil),\n\t\t(*Event_StaticTokens)(nil),\n\t\t(*Event_ProvisionToken)(nil),\n\t\t(*Event_ClusterName)(nil),\n\t\t(*Event_ClusterConfig)(nil),\n\t\t(*Event_User)(nil),\n\t\t(*Event_Role)(nil),\n\t\t(*Event_Namespace)(nil),\n\t\t(*Event_Server)(nil),\n\t\t(*Event_ReverseTunnel)(nil),\n\t\t(*Event_TunnelConnection)(nil),\n\t\t(*Event_AccessRequest)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*NetworkAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _NetworkAddress_OneofMarshaler, _NetworkAddress_OneofUnmarshaler, _NetworkAddress_OneofSizer, []interface{}{\n\t\t(*NetworkAddress_Ipv4Address)(nil),\n\t\t(*NetworkAddress_Ipv6Address)(nil),\n\t\t(*NetworkAddress_LocalAddress)(nil),\n\t}\n}",
"func (*RPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RPC_OneofMarshaler, _RPC_OneofUnmarshaler, _RPC_OneofSizer, []interface{}{\n\t\t(*RPC_Args)(nil),\n\t\t(*RPC_ByteArgs)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*FeeUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeeUpdateRequest_OneofMarshaler, _FeeUpdateRequest_OneofUnmarshaler, _FeeUpdateRequest_OneofSizer, []interface{}{\n\t\t(*FeeUpdateRequest_Global)(nil),\n\t\t(*FeeUpdateRequest_ChanPoint)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*ServiceSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{\n\t\t(*ServiceSpec_Replicated)(nil),\n\t\t(*ServiceSpec_Global)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{\n\t\t(*TestUTF8_Field)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*Eos) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Eos_OneofMarshaler, _Eos_OneofUnmarshaler, _Eos_OneofSizer, []interface{}{\n\t\t(*Eos_GrpcStatusCode)(nil),\n\t\t(*Eos_ResetErrorCode)(nil),\n\t}\n}",
"func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{\n\t\t(*RecordKey_DatastoreKey)(nil),\n\t\t(*RecordKey_BigQueryKey)(nil),\n\t}\n}",
"func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{\n\t\t(*WatchRequest_CreateRequest)(nil),\n\t\t(*WatchRequest_CancelRequest)(nil),\n\t}\n}",
"func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{\n\t\t(*Node_Src)(nil),\n\t\t(*Node_Snk)(nil),\n\t\t(*Node_ContentHash)(nil),\n\t}\n}",
"func (*FeedMapping) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{\n\t\t(*FeedMapping_PlaceholderType)(nil),\n\t\t(*FeedMapping_CriterionType)(nil),\n\t}\n}",
"func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _Virtual_OneofMarshaler, _Virtual_OneofUnmarshaler, _Virtual_OneofSizer, []interface{}{\n\t\t(*Virtual_Genesis)(nil),\n\t\t(*Virtual_Child)(nil),\n\t\t(*Virtual_Jet)(nil),\n\t\t(*Virtual_IncomingRequest)(nil),\n\t\t(*Virtual_OutgoingRequest)(nil),\n\t\t(*Virtual_Result)(nil),\n\t\t(*Virtual_Type)(nil),\n\t\t(*Virtual_Code)(nil),\n\t\t(*Virtual_Activate)(nil),\n\t\t(*Virtual_Amend)(nil),\n\t\t(*Virtual_Deactivate)(nil),\n\t\t(*Virtual_PendingFilament)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_Confirmation)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _CloseStatusUpdate_OneofMarshaler, _CloseStatusUpdate_OneofUnmarshaler, _CloseStatusUpdate_OneofSizer, []interface{}{\n\t\t(*CloseStatusUpdate_ClosePending)(nil),\n\t\t(*CloseStatusUpdate_ChanClose)(nil),\n\t}\n}",
"func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _PrintKVRequest_OneofMarshaler, _PrintKVRequest_OneofUnmarshaler, _PrintKVRequest_OneofSizer, []interface{}{\n\t\t(*PrintKVRequest_ValueString)(nil),\n\t\t(*PrintKVRequest_ValueInt)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}",
"func (*ChannelEventUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _ChannelEventUpdate_OneofMarshaler, _ChannelEventUpdate_OneofUnmarshaler, _ChannelEventUpdate_OneofSizer, []interface{}{\n\t\t(*ChannelEventUpdate_OpenChannel)(nil),\n\t\t(*ChannelEventUpdate_ClosedChannel)(nil),\n\t\t(*ChannelEventUpdate_ActiveChannel)(nil),\n\t\t(*ChannelEventUpdate_InactiveChannel)(nil),\n\t}\n}"
] | [
"0.89066267",
"0.8905895",
"0.8890402",
"0.8869575",
"0.88675725",
"0.8863148",
"0.8862479",
"0.8862358",
"0.88617575",
"0.88611835",
"0.8859546",
"0.8854926",
"0.88532656",
"0.8852719",
"0.8852719",
"0.8852719",
"0.88478136",
"0.884675",
"0.8844358",
"0.8843991",
"0.8841739",
"0.8837219",
"0.88368416",
"0.88368416",
"0.88368416",
"0.88368416",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8834991",
"0.8833572",
"0.88307977",
"0.88304883",
"0.88302827",
"0.88301194",
"0.882826",
"0.8828255",
"0.88271344",
"0.88242674",
"0.88239187",
"0.88232714",
"0.88217366",
"0.8818802",
"0.8818802",
"0.8818802",
"0.8818802",
"0.88145214",
"0.88128865",
"0.88111734",
"0.8810533",
"0.8810533",
"0.8808094",
"0.8807843",
"0.8806001",
"0.8806001",
"0.8806001",
"0.880594",
"0.8804551",
"0.8804115",
"0.8803245",
"0.880319",
"0.88031334",
"0.8801615",
"0.88015234",
"0.8799256",
"0.87991583",
"0.87973267",
"0.87973267",
"0.8795543",
"0.8794316",
"0.8794316",
"0.87922746",
"0.87913936",
"0.87913936",
"0.87907636",
"0.87907636",
"0.87907636",
"0.8789604",
"0.8789604",
"0.8788553",
"0.8788553",
"0.8787751",
"0.87874717",
"0.878699",
"0.8786486",
"0.87862307",
"0.87852883",
"0.87852883",
"0.87852883",
"0.87852883",
"0.8785172",
"0.8785172",
"0.8785172",
"0.8783745",
"0.8782584",
"0.8782584",
"0.8782584"
] | 0.880797 | 55 |
NewAuthHandler returns a new authentication handler using the given key. | func NewAuthHandler(db *db.Db, key NewTokener) Auth {
return Auth{db: db, key: key}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewAuthHandler() *authHandler {\n\treturn &authHandler{}\n}",
"func NewAuthHandler(dataStore *DataStore) *AuthHandler {\n\treturn &AuthHandler{\n\t\tdataStore: dataStore,\n\t}\n}",
"func NewAuthHandler() *AuthHandler {\n\treturn &AuthHandler{}\n}",
"func NewAuthHandler() AuthHandler {\n\tdefaults := make(map[uint8]Authenticator)\n\tdefaults[NoAuth] = NewNoAuthAuthenticator()\n\treturn &StandardAuthHandler{\n\t\tauthenticators: defaults,\n\t}\n}",
"func NewHandler(keeper Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) sdk.Result {\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgRegisterKey:\n\t\t\treturn handleMsgRegisterKey(ctx, keeper, msg)\n\t\tcase MsgUpdateParams:\n\t\t\treturn handleMsgUpdateParams(ctx, keeper, msg)\n\t\tdefault:\n\t\t\terrMsg := fmt.Sprintf(\"Unrecognized auth message type: %T\", msg)\n\t\t\treturn sdk.ErrUnknownRequest(errMsg).Result()\n\t\t}\n\t}\n}",
"func NewKrbHandler() *krbAuth {\n\treturn &krbAuth{[]kdcReq{}}\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tctx = ctx.WithEventManager(sdk.NewEventManager())\n\t\tswitch msg := msg.(type) {\n\t\t// TODO: Define your msg cases\n\t\t//\n\t\t//Example:\n\t\t// case Msg<Action>:\n\t\t// \treturn handleMsg<Action>(ctx, k, msg)\n\t\tcase MsgSetFileAuth:\n\t\t\treturn handleMsgSetFileAuth(ctx, k, msg)\n\t\tcase MsgTransFileAuth:\n\t\t\treturn handleMsgTransFileAuth(ctx, k, msg)\n\t\tcase MsgDelFileAuth:\n\t\t\treturn handleMsgDelFileAuth(ctx, k, msg)\n\t\tdefault:\n\t\t\terrMsg := fmt.Sprintf(\"unrecognized %s message type: %T\", ModuleName, msg)\n\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg)\n\t\t}\n\t}\n}",
"func New(store stores.Store) (*Handler, error) {\n\tif !util.GetConfig().EnableDebugMode {\n\t\tgin.SetMode(gin.ReleaseMode)\n\t}\n\th := &Handler{\n\t\tstore: store,\n\t\tengine: gin.New(),\n\t}\n\tif err := h.setHandlers(); err != nil {\n\t\treturn nil, errors.Wrap(err, \"could not set handlers\")\n\t}\n\tif util.GetConfig().AuthBackend == \"oauth\" {\n\t\tif !DoNotPrivateKeyChecking {\n\t\t\tif err := util.CheckForPrivateKey(); err != nil {\n\t\t\t\treturn nil, errors.Wrap(err, \"could not check for private key\")\n\t\t\t}\n\t\t}\n\t\th.initOAuth()\n\t} else if util.GetConfig().AuthBackend == \"proxy\" {\n\t\th.initProxyAuth()\n\t}\n\treturn h, nil\n}",
"func NewHandler(c net.Client, priv *key.Pair, sh *key.Share, group *key.Group, s Store) *Handler {\n\tidx, exists := group.Index(priv.Public)\n\tif !exists {\n\t\t// XXX\n\t\tpanic(\"that's just plain wrong and I should be an error\")\n\t}\n\taddr := group.Nodes[idx].Addr\n\treturn &Handler{\n\t\tclient: c,\n\t\tgroup: group,\n\t\tshare: sh,\n\t\tpub: share.NewPubPoly(key.G2, key.G2.Point().Base(), sh.Commits),\n\t\tindex: idx,\n\t\tstore: s,\n\t\tclose: make(chan bool),\n\t\tcache: newSignatureCache(),\n\t\taddr: addr,\n\t}\n}",
"func New() iris2.HandlerFunc {\n\tl := &authMiddleware{}\n\treturn l.Serve\n}",
"func New(scepAuth scep.Interface) api.RouterHandler {\n\treturn &Handler{scepAuth}\n}",
"func New(authenticator auth.Authenticator) clevergo.MiddlewareFunc {\n\treturn func(next clevergo.Handle) clevergo.Handle {\n\t\treturn func(c *clevergo.Context) error {\n\t\t\tidentity, err := authenticator.Authenticate(c.Request, c.Response)\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(err)\n\t\t\t\tauthenticator.Challenge(c.Request, c.Response)\n\t\t\t} else {\n\t\t\t\tc.WithValue(auth.IdentityKey, identity)\n\t\t\t}\n\t\t\treturn next(c)\n\t\t}\n\t}\n}",
"func newVaultAuthConfigHandler(secretName string, vaultClient vault.Client) VaultAuthConfigHandler {\n\treturn VaultAuthConfigHandler{\n\t\tsecretName: secretName,\n\t\tvaultClient: vaultClient,\n\t}\n}",
"func NewGetAuth() context.Handler {\n\treturn func(ctx context.Context) {\n\t\tname := ctx.Params().Get(\"name\")\n\t\ttoken := ctx.GetHeader(\"token\")\n\t\tif token == \"\" || getClientToken(name) != token {\n\t\t\tctx.StatusCode(403)\n\t\t\tctx.StopExecution()\n\t\t\treturn\n\t\t}\n\t\tctx.Next()\n\t}\n}",
"func newAuthenticationService(sling *sling.Sling, uriTemplate string, loginInitiatedPath string) *authenticationService {\n\treturn &authenticationService{\n\t\tloginInitiatedPath: loginInitiatedPath,\n\t\tservice: newService(ServiceAuthenticationService, sling, uriTemplate),\n\t}\n}",
"func newAuthService(n NameService) *authService {\n\treturn &authService{\n\t\tn: n,\n\t}\n}",
"func NewHandler(bouncer *security.RequestBouncer, rateLimiter *security.RateLimiter, authDisabled bool) *Handler {\n\th := &Handler{\n\t\tRouter: mux.NewRouter(),\n\t\tauthDisabled: authDisabled,\n\t}\n\th.Handle(\"/auth\",\n\t\trateLimiter.LimitAccess(bouncer.PublicAccess(httperror.LoggerHandler(h.authenticate)))).Methods(http.MethodPost)\n\n\treturn h\n}",
"func NewHandler(\n\tstateDecoder oidc.Decoder,\n\tcookieDecoder oidc.Decoder,\n\tgetHandler HandlerFunc, // use NewGetHandler() for production\n\tpostHandler HandlerFunc, // use NewPostHandler() for production\n) http.Handler {\n\tloginHandler := httperr.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {\n\t\tvar handler HandlerFunc\n\t\tswitch r.Method {\n\t\tcase http.MethodGet:\n\t\t\thandler = getHandler\n\t\tcase http.MethodPost:\n\t\t\thandler = postHandler\n\t\tdefault:\n\t\t\treturn httperr.Newf(http.StatusMethodNotAllowed, \"%s (try GET or POST)\", r.Method)\n\t\t}\n\n\t\tencodedState, decodedState, err := oidc.ReadStateParamAndValidateCSRFCookie(r, cookieDecoder, stateDecoder)\n\t\tif err != nil {\n\t\t\tplog.InfoErr(\"state or CSRF error\", err)\n\t\t\treturn err\n\t\t}\n\n\t\tswitch decodedState.UpstreamType {\n\t\tcase string(idpdiscoveryv1alpha1.IDPTypeLDAP), string(idpdiscoveryv1alpha1.IDPTypeActiveDirectory):\n\t\t\t// these are the types supported by this endpoint, so no error here\n\t\tdefault:\n\t\t\treturn httperr.Newf(http.StatusBadRequest, \"not a supported upstream IDP type for this endpoint: %q\", decodedState.UpstreamType)\n\t\t}\n\n\t\treturn handler(w, r, encodedState, decodedState)\n\t})\n\n\treturn wrapSecurityHeaders(loginHandler)\n}",
"func newAuth(parentAuth swift.Authenticator, storageURL string, authToken string) *auth {\n\treturn &auth{\n\t\tparentAuth: parentAuth,\n\t\tstorageURL: storageURL,\n\t\tauthToken: authToken,\n\t}\n}",
"func New(channelID string, collDataProvider storeapi.Provider) *Handler {\n\treturn &Handler{\n\t\tchannelID: channelID,\n\t\tcollDataProvider: collDataProvider,\n\t}\n}",
"func New(cfg config.Proxy, bp httputil.BufferPool, token ntokend.TokenProvider, access service.AccessProvider, role service.RoleProvider, svcCert service.SvcCertProvider) Handler {\n\treturn &handler{\n\t\tproxy: &httputil.ReverseProxy{\n\t\t\tBufferPool: bp,\n\t\t},\n\t\ttoken: token,\n\t\taccess: access,\n\t\trole: role,\n\t\tcfg: cfg,\n\t\tsvcCert: svcCert,\n\t}\n}",
"func New(udb UserDB, j TokenGenerator, sec Securer) *Auth {\n\treturn &Auth{\n\t\tudb: udb,\n\t\ttg: j,\n\t\tsec: sec,\n\t}\n}",
"func NewHandler(keys key.Keys, p user.Provisioners, seed []byte) *Handler {\n\treturn &Handler{\n\t\tKeys: keys,\n\t\tCommittees: make([]user.VotingCommittee, math.MaxUint8),\n\t\tProvisioners: p,\n\t\tseed: seed,\n\t}\n}",
"func NewMiddleware(creds *secrets.BasicAuthCredentials) es.CommandHandlerMiddleware {\n\treturn func(handler es.CommandHandler) es.CommandHandler {\n\t\treturn es.CommandHandlerFunc(func(ctx context.Context, cmd es.Command) error {\n\t\t\tcur, err := secrets.AuthFromContext(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tif !creds.Equals(cur) {\n\t\t\t\treturn ErrInvalidCredentials\n\t\t\t}\n\n\t\t\treturn handler.HandleCommand(ctx, cmd)\n\t\t})\n\t}\n}",
"func New(authRequestHandlers ...authenticator.Request) authenticator.Request {\n\treturn unionAuthRequestHandler(authRequestHandlers)\n}",
"func NewHandler(s service.Service) http.Handler {\n\tr := mux.NewRouter()\n\t// base handler\n\tbase := alice.New(newSetUserMid(s))\n\t// handler with auth required\n\tauthRequired := base.Append(newAuthRequiredMid)\n\n\th := &handler{s}\n\n\t// r.PathPrefix(\"/images\").Handler(httputil.NewSingleHostReverseProxy(proxyURL))\n\tr.Handle(\"/v1/login\", base.Then(errHandler(h.register))).Methods(http.MethodPost)\n\tr.Handle(\"/v1/me\", authRequired.Then(errHandler(h.me))).Methods(http.MethodGet)\n\tr.Handle(\"/v1/me\", authRequired.Then(errHandler(h.update))).Methods(http.MethodPatch)\n\tr.Handle(\"/v1/me/reacts\", authRequired.Then(errHandler(h.react))).Methods(http.MethodPost)\n\tr.Handle(\"/v1/me/abuses\", authRequired.Then(errHandler(h.reportAbuse))).Methods(http.MethodPost)\n\n\tr.Handle(\"/v1/me/discover-people\", authRequired.Then(errHandler(h.discoverPeople))).Methods(http.MethodGet)\n\n\tr.Handle(\"/v1/me/pictures\", authRequired.Then(errHandler(h.uploadPicture))).Methods(http.MethodPost)\n\tr.Handle(\"/v1/me/pictures\", authRequired.Then(errHandler(h.pictures))).Methods(http.MethodGet)\n\tr.Handle(\"/v1/me/pictures/{id}\", authRequired.Then(errHandler(h.deletePicture))).Methods(http.MethodDelete)\n\tr.Handle(\"/v1/me/pictures/{id}/profile\", authRequired.Then(errHandler(h.setProfilePicture))).Methods(http.MethodPut)\n\n\treturn r\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgTransfer:\n\t\t\treturn handleMsgTransfer(ctx, k, msg)\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unrecognized ICS-20 transfer message type: %T\", msg)\n\t\t}\n\t}\n}",
"func newX509Handler() *x509Handler {\n\treturn &x509Handler{\n\t\tmtx: new(sync.RWMutex),\n\t\tchanges: make(chan struct{}, 1),\n\t\tstopChan: make(chan struct{}),\n\t\tupdChan: make(chan *workload.X509SVIDResponse),\n\t}\n}",
"func NewDBHandler(dbType string, connection string) (*AuthDBHandler, error) {\n\tdb, err := GetDatabaseLayer(dbType, connection)\n\treturn &AuthDBHandler{\n\t\tDB: db,\n\t}, err\n}",
"func NewHandler(keeper Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) sdk.Result {\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgLockCoins:\n\t\t\treturn handleMsgLockCoins(ctx, keeper, msg)\n\t\tcase MsgUnlockCoins:\n\t\t\treturn handleMsgUnlockCoins(ctx, keeper, msg)\n\n\t\tdefault:\n\t\t\terrMsg := fmt.Sprintf(\"unrecognized %s message type: %T\", RouterKey, msg)\n\t\t\treturn sdk.ErrUnknownRequest(errMsg).Result()\n\t\t}\n\t}\n}",
"func newAuthService(sling *sling.Sling) *AuthService {\n\treturn &AuthService{\n\t\tsling: sling.Path(\"oauth/\"),\n\t}\n}",
"func NewUserAuthenticateHandler(db *gorm.DB) echo.HandlerFunc {\n\treturn func(ctx echo.Context) error {\n\t\tc := &Credential{}\n\t\tif err := ctx.Bind(c); err != nil {\n\t\t\treturn echo.NewHTTPError(http.StatusInternalServerError, err)\n\t\t}\n\n\t\tuser, err := findUserByCredentials(db, c)\n\t\tif err != nil {\n\t\t\treturn echo.NewHTTPError(http.StatusUnauthorized, \"wrong email or password\")\n\t\t}\n\n\t\treturn ctx.JSON(http.StatusOK, TokenResponse{\n\t\t\tName: user.Name,\n\t\t\tEmail: user.Email,\n\t\t\tJWTToken: user.JWTToken,\n\t\t})\n\t}\n}",
"func (cx *Context) NewAuthenticator(handler http.Handler) http.Handler {\n\treturn &Authenticator{handler, cx}\n}",
"func New() *nauth {\n\tsingleton.mutex.Lock()\n\tdefer singleton.mutex.Unlock()\n\n\tif singleton.generatedKeysC == nil && PrecalculatedKeysNum > 0 {\n\t\tsingleton.generatedKeysC = make(chan keyPair, PrecalculatedKeysNum)\n\t\tgo singleton.precalculateKeys()\n\t}\n\treturn &singleton\n}",
"func NewHandler(keys key.Keys, p user.Provisioners, seed []byte) *Handler {\n\treturn &Handler{\n\t\tHandler: committee.NewHandler(keys, p, seed),\n\t}\n}",
"func NewHandler(e *echo.Group, us domain.UserService) *Handler {\n\th := &Handler{us}\n\te.POST(\"/user/login\", h.Login)\n\te.POST(\"/user/register\", h.Register)\n\treturn h\n}",
"func NewHandler() iop.DataHandler {\n\treturn &Handler{NewLedger(DefaultAuthorizer())}\n}",
"func NewAuthKey(s string) (data authKeyEntry, err error) {\n\tparts := strings.Split(s, \" \")\n\tentry := authKeyEntry{}\n\tswitch {\n\tcase len(parts) < 2:\n\t\treturn entry, errors.New(\"Unrecognized key format\")\n\tcase len(parts) >= 2:\n\t\tentry.key = parts[1]\n\t\tfallthrough\n\tcase len(parts) >= 3:\n\t\tentry.comment = strings.Join(parts[2:], \" \")\n\t}\n\tfingerprint, err := fingerprintKey(entry.key)\n\tif err != nil {\n\t\treturn entry, errors.New(\"Unable to generate key fingerprint, invalid key\")\n\t}\n\tentry.fingerprint = fingerprint\n\treturn entry, nil\n}",
"func newCommandHandler() *commandHandler {\n\treturn &commandHandler{make(cmdMap)}\n}",
"func newCommandHandler() *commandHandler {\n\treturn &commandHandler{make(cmdMap)}\n}",
"func (s *Server) newHandler() http.Handler {\n\tr := mux.NewRouter()\n\tr.HandleFunc(\"/register\", s.wrapMiddleware(registerHandler)).Methods(\"POST\")\n\tr.HandleFunc(\"/session/{id}\", s.wrapMiddleware(getHandler)).Methods(\"GET\")\n\tr.HandleFunc(\"/session\", s.wrapMiddleware(createHandler)).Methods(\"POST\")\n\tr.HandleFunc(\"/readiness\", predis.NewReadinessCheck(s.pool))\n\n\treturn r\n}",
"func New() (*Auth, error) {\n\ta := &Auth{Tokens: &Tokens{}, Keys: &Keys{}}\n\terr := a.Tokens.FromEnv()\n\tif err == nil {\n\t\terr = a.Keys.FromEnv()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t} else {\n\t\treturn nil, err\n\t}\n\n\treturn a, nil\n}",
"func (am AppModule) NewHandler() sdk.Handler {\n\treturn NewHandler(am.keeper)\n}",
"func (am AppModule) NewHandler() sdk.Handler {\n\treturn NewHandler(am.keeper)\n}",
"func (am AppModule) NewHandler() sdk.Handler {\n\treturn NewHandler(am.keeper)\n}",
"func (cx *Context) NewEnsureAuth(handler http.Handler) http.Handler {\n\treturn &EnsureAuth{handler, cx}\n}",
"func NewHandler(addr string) http.Handler {\n\ttransport := &http.Transport{DisableKeepAlives: false}\n\th := &handler{\n\t\tRouter:\t\tmux.NewRouter(),\n\t\tclient:\t\t&http.Client{Transport: transport},\n\t\ttransport:\ttransport,\n\t\taddr:\t\taddr,\n\t}\n\th.StrictSlash(false)\n\th.handleFunc(\"/{key:.*}\", h.getHandler).Methods(\"GET\")\n\th.handleFunc(\"/{key:.*}\", h.setHandler).Methods(\"PUT\")\n\th.handleFunc(\"/{key:.*}\", h.deleteHandler).Methods(\"DELETE\")\n\treturn h\n}",
"func AuthHandler() handler.AuthHandler {\n\tuserRepository := gormrepo.NewUserRepository()\n\tuserUseCase := interactor.NewUserUseCase(userRepository)\n\tauthHandler := handler.NewAuthHandler(userUseCase)\n\treturn authHandler\n}",
"func New(secret string, rcvr interface{}) *Handler {\n\tif secret == \"\" {\n\t\tpanic(\"webhook: called New with empty secret\")\n\t}\n\treturn &Handler{\n\t\tsecret: secret,\n\t\trcvr: reflect.ValueOf(rcvr),\n\t\tmethod: payloadMethods(reflect.TypeOf(rcvr)),\n\t}\n}",
"func New(r *redis.Client, cookie string) *Auth {\n\treturn &Auth{r, cookie}\n}",
"func newKeybinding(viewname string, key Key, ch rune, mod Modifier, handler func(*Gui, *View) error) (kb *keybinding) {\n\tkb = &keybinding{\n\t\tviewName: viewname,\n\t\tkey: key,\n\t\tch: ch,\n\t\tmod: mod,\n\t\thandler: handler,\n\t}\n\treturn kb\n}",
"func NewAuthMiddlewareHandler(handler http.Handler, auth influxdb.Authorizer) http.Handler {\n\treturn &authMiddlewareHandler{\n\t\thandler: handler,\n\t\tauth: auth,\n\t}\n}",
"func newHandler(conn net.Conn, l logger, c *config, users map[string]string) (*handler, error) {\n\t// get current directory\n\tdir, err := os.Getwd()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\t// create a new handler object\n\th := &handler{\n\t\tconfig: c,\n\t\tconn: conn,\n\t\tlogger: l,\n\t\tdir: dir,\n\t\tusers: users,\n\t\tisLoggedIn: false,\n\t\tcommands: make(map[CommandCode]handleFunc),\n\t}\n\n\th.logMessage(fmt.Sprintf(\"Accepted connection from %v\", h.conn.RemoteAddr()))\n\n\t// initialize commands for not logged in state\n\th.initCommandTable()\n\n\t//initialize default data connection\n\tif h.config.pasv {\n\t\th.initPassiveDataConn()\n\t} else {\n\t\t// calculate default data port\n\t\thost, port, err := net.SplitHostPort(conn.RemoteAddr().String())\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tvar portNum int\n\t\t_, err = fmt.Sscanf(port, \"%d\", &portNum)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tportNum++\n\t\tport = fmt.Sprintf(\"%d\", portNum)\n\t\th.initActiveDataConn(net.JoinHostPort(host, port))\n\t}\n\n\treturn h, nil\n}",
"func New(h kore.Interface, config Config) (identity.Plugin, error) {\n\t// @step: verify the configuration\n\tif err := config.IsValid(); err != nil {\n\t\treturn nil, err\n\t}\n\tlog.Info(\"initializing the jwt authentication plugin\")\n\n\treturn &authImpl{Interface: h, config: config}, nil\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tctx = ctx.WithEventManager(sdk.NewEventManager())\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgCreate:\n\t\t\treturn handleMsgCreate(ctx, k, &msg)\n\t\tcase MsgDelete:\n\t\t\treturn handleMsgDelete(ctx, k, &msg)\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unrecognized %s message type: %T\", types.ModuleName, msg)\n\t\t}\n\t}\n}",
"func NewHandler(dial func(addr string) (*hdhomerun.Client, error)) http.Handler {\n\treturn &handler{\n\t\tdial: dial,\n\t}\n}",
"func New(r *mux.Router, db *sql.DB) *Handler {\n\treturn &Handler{r, db}\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tctx = ctx.WithEventManager(sdk.NewEventManager())\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgCreateAtomicSwap:\n\t\t\treturn handleMsgCreateAtomicSwap(ctx, k, msg)\n\t\tcase MsgClaimAtomicSwap:\n\t\t\treturn handleMsgClaimAtomicSwap(ctx, k, msg)\n\t\tcase MsgRefundAtomicSwap:\n\t\t\treturn handleMsgRefundAtomicSwap(ctx, k, msg)\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unrecognized %s message type: %T\", ModuleName, msg)\n\t\t}\n\t}\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tctx = ctx.WithEventManager(sdk.NewEventManager())\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgCreateCDP:\n\t\t\treturn handleMsgCreateCDP(ctx, k, msg)\n\t\tcase MsgDeposit:\n\t\t\treturn handleMsgDeposit(ctx, k, msg)\n\t\tcase MsgWithdraw:\n\t\t\treturn handleMsgWithdraw(ctx, k, msg)\n\t\tcase MsgDrawDebt:\n\t\t\treturn handleMsgDrawDebt(ctx, k, msg)\n\t\tcase MsgRepayDebt:\n\t\t\treturn handleMsgRepayDebt(ctx, k, msg)\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unrecognized %s message type: %T\", ModuleName, msg)\n\t\t}\n\t}\n}",
"func NewEnsureAuth(handlerToWrap http.Handler, permission string) http.Handler {\n\n\treturn &EnsureAuth{\n\t\tpermission: permission,\n\t\thandler: handlerToWrap,\n\t}\n}",
"func New(coll *mongo.Collection, log logger.Logger, firebaseRepo auth.Repository) *Handler {\n\treturn &Handler{\n\t\tlog: log,\n\t\tservice: service.New(coll, log, firebaseRepo),\n\t}\n}",
"func New(ctrl *storagecluster.Controller) *Handler {\n\treturn &Handler{\n\t\tctrl: ctrl,\n\t\tclient: ctrl.GetKubernetesClient(),\n\t\tdriver: ctrl.Driver,\n\t}\n}",
"func NewAuthenticationMethod()(*AuthenticationMethod) {\n m := &AuthenticationMethod{\n Entity: *NewEntity(),\n }\n return m\n}",
"func NewAuthNHandler(config Config, params Params) (http.Handler, error) {\n\treturn newAuthNHandler(config, params)\n}",
"func NewHandler() inputs.Handler {\n\treturn &Handler{\n\t\tin: make(chan inputs.Data, 20),\n\t\thosts: []string{},\n\t\tcreds: []scanners.Credential{},\n\t}\n}",
"func New(prefix string, ctxKey interface{}, h http.Handler) http.Handler {\n\tif prefix == \"\" {\n\t\tprefix = \"/\"\n\t}\n\n\treturn http.StripPrefix(prefix, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tps := strings.SplitN(strings.TrimPrefix(r.URL.Path, \"/\"), \"/\", 2)\n\n\t\t// WithContext already clone r and r.URL\n\t\tr = r.WithContext(context.WithValue(r.Context(), ctxKey, ps[0]))\n\t\tr.URL.Path = \"/\"\n\t\tif len(ps) > 1 {\n\t\t\tr.URL.Path += ps[1]\n\t\t}\n\n\t\th.ServeHTTP(w, r)\n\t}))\n}",
"func New(config *config.Config, fetcher *fetcher.Fetcher) Handler {\n\treturn Handler{\n\t\tfetcher: fetcher,\n\t\tconfig: config,\n\t}\n}",
"func (a *Authenticator) MakeAuthHandler(handler khttp.FuncHandler) khttp.FuncHandler {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tdata, handled, err := a.PerformAuth(w, r)\n\t\tif err == nil && data.Creds != nil {\n\t\t\tctx := SetCredentials(r.Context(), data.Creds)\n\t\t\tr = r.WithContext(ctx)\n\t\t}\n\t\tif !handled {\n\t\t\thandler(w, r)\n\t\t}\n\t}\n}",
"func New(hh hHandler, kh kHandler) Interactor {\n\treturn Interactor{hh: hh, kh: kh}\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) sdk.Result {\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgRecordReputation:\n\t\t\treturn handleMsgRecordReputation(ctx, k, msg)\n\t\tdefault:\n\t\t\terrMsg := fmt.Sprintf(\"unrecognized %s message type: %T\", types.ModuleName, msg)\n\t\t\treturn sdk.ErrUnknownRequest(errMsg).Result()\n\t\t}\n\t}\n}",
"func NewHandler(keeper Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) sdk.Result {\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgCreateGroup:\n\t\t\treturn handleMsgCreateGroup(ctx, keeper, msg)\n\t\tdefault:\n\t\t\terrMsg := fmt.Sprintf(\"Unrecognized data Msg type: %v\", msg.Type())\n\t\t\treturn sdk.ErrUnknownRequest(errMsg).Result()\n\t\t}\n\t}\n}",
"func (app AppModule) NewHandler() sdk.Handler {\n\treturn NewHandler(app.msKeeper, app.poaKeeper)\n}",
"func NewHandler(store *datastore.Datastore, running *lifecycle.Running) *Handler {\n\treturn &Handler{\n\t\tStore: *store,\n\t\tRunning: running,\n\t}\n}",
"func NewHandler() Handler {\n\treturn Handler{}\n}",
"func (h DefaultConfigProvider) NewHandler(extras interface{}, version int) (dhcplb.Handler, error) {\n\treturn nil, nil\n}",
"func (c *BackendHeaderMiddleware) NewHandler(next http.Handler) (http.Handler, error) {\n\treturn &BackendHeaderHandler{next: next, AddHeader: c.AddHeader, HeaderName: c.HeaderName}, nil\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tctx = ctx.WithEventManager(sdk.NewEventManager())\n\t\tswitch msg := msg.(type) {\n\t\tcase MsgCreateDataSource:\n\t\t\treturn handleMsgCreateDataSource(ctx, k, msg)\n\t\tcase MsgEditDataSource:\n\t\t\treturn handleMsgEditDataSource(ctx, k, msg)\n\t\tcase MsgCreateOracleScript:\n\t\t\treturn handleMsgCreateOracleScript(ctx, k, msg)\n\t\tcase MsgEditOracleScript:\n\t\t\treturn handleMsgEditOracleScript(ctx, k, msg)\n\t\tcase MsgRequestData:\n\t\t\treturn handleMsgRequestData(ctx, k, msg)\n\t\tcase MsgReportData:\n\t\t\treturn handleMsgReportData(ctx, k, msg)\n\t\tcase MsgActivate:\n\t\t\treturn handleMsgActivate(ctx, k, msg)\n\t\tcase MsgAddReporter:\n\t\t\treturn handleMsgAddReporter(ctx, k, msg)\n\t\tcase MsgRemoveReporter:\n\t\t\treturn handleMsgRemoveReporter(ctx, k, msg)\n\t\tdefault:\n\t\t\treturn nil, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, \"unrecognized %s message type: %T\", ModuleName, msg)\n\t\t}\n\t}\n}",
"func NewHandler(userHelper *Helper, allowUserCreation bool) *Handler {\n\t//Build a new User Handler\n\thandler := Handler{\n\t\tuserHelper: userHelper,\n\t\tallowUserCreation: allowUserCreation,\n\t}\n\n\treturn &handler\n}",
"func Handler(w http.ResponseWriter, r *http.Request) {\n\thandlerKeySecret := KeySecret{}\n\tdefer r.Body.Close()\n\tif err := json.NewDecoder(r.Body).Decode(&handlerKeySecret); err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusBadRequest)\n\t\treturn\n\t}\n\ttokens := []KeySecret{}\n\tquery := \"SELECT key, secret, rules FROM tokens WHERE key=$1 and secret=$2 LIMIT 1\"\n\tcq := config.PrestConf.Adapter.Query(query, handlerKeySecret.Key, handlerKeySecret.Secret)\n\terr := json.Unmarshal(cq.Bytes(), &tokens)\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusBadRequest)\n\t\treturn\n\t}\n\tif len(tokens) == 0 {\n\t\thttp.Error(w, \"Key/Secret not found\", http.StatusBadRequest)\n\t\treturn\n\t}\n\ttokenJson, err := json.Marshal(tokens[0])\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusBadRequest)\n\t}\n\ttokenString, err := token.Generate(fmt.Sprintf(string(tokenJson)))\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusBadRequest)\n\t}\n\tauthPF := Auth{\n\t\tData: tokens[0],\n\t\tToken: tokenString,\n\t}\n\tw.WriteHeader(http.StatusOK)\n\tret, _ := json.Marshal(authPF)\n\tw.Write(ret)\n}",
"func New(cognitoAPI cognitoidentityprovideriface.CognitoIdentityProviderAPI) (*Handler, error) {\n\treturn &Handler{\n\t\tcognitoAPI: cognitoAPI,\n\t}, nil\n}",
"func NewTestHandler() *TestHandler {\n\tpath := tempfile()\n\tos.Mkdir(path, 0700)\n\n\t// Open database.\n\tdb := &gist.DB{}\n\tdb.GistPath = filepath.Join(path, \"gists\")\n\tif err := db.Open(filepath.Join(path, \"db\"), 0600); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Create a test user.\n\terr := db.Update(func(tx *gist.Tx) error {\n\t\treturn tx.SaveUser(&gist.User{ID: 1000, Username: \"benbjohnson\", AccessToken: \"XYZ\"})\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Open handler and test HTTP server.\n\th := gist.NewHandler(db, \"ABC\", \"123\")\n\tif !testing.Verbose() {\n\t\th.Logger = log.New(ioutil.Discard, \"\", 0)\n\t}\n\ts := httptest.NewServer(h)\n\n\treturn &TestHandler{h, path, db, s}\n}",
"func NewAuthMiddleware(svc interfaces.Service, r interfaces.Repository) interfaces.Service {\n\treturn &authMiddleware{\n\t\tnext: svc,\n\t\trepository: r,\n\t}\n}",
"func New(conf *Config) *Auth {\n\tif conf == nil {\n\t\tconf = _defaultConf\n\t}\n\tauth := &Auth{\n\t\tconf: conf,\n\t}\n\treturn auth\n}",
"func NewHandler(conn string) (Handler, error) {\n\tdb, err := repositories.NewDB(conn)\n\tif err != nil {\n\t\tvar h Handler\n\t\treturn h, err\n\t}\n\treturn Handler{SubjectDB: db}, nil\n}",
"func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {\n\treturn &Jwt{\n\t\tnext: next,\n\t\trequiredField: config.RequiredField,\n\t}, nil\n}",
"func NewHandler(s service) *chi.Mux {\n\tr := chi.NewRouter()\n\n\tcors := cors.New(cors.Options{\n\t\t// AllowedOrigins: []string{\"https://foo.com\"}, // Use this to allow specific origin hosts\n\t\tAllowedOrigins: []string{\"*\"},\n\t\t// AllowOriginFunc: func(r *http.Request, origin string) bool { return true },\n\t\tAllowedMethods: []string{\"GET\", \"POST\", \"OPTIONS\"},\n\t\tAllowedHeaders: []string{\"Accept\", \"Authorization\", \"Content-Type\", \"X-CSRF-Token\"},\n\t\tExposedHeaders: []string{\"Link\"},\n\t\tAllowCredentials: true,\n\t\tMaxAge: 300, // Maximum value not ignored by any of major browsers\n\t})\n\tr.Use(cors.Handler)\n\n\t// Public routes\n\tr.Group(func(r chi.Router) {\n\t\tr.Get(\"/list\", getPluginListHandler(s))\n\t\tr.Get(\"/{plugin}/{format}\", getFeedHandler(s))\n\t})\n\n\tr.Group(func(r chi.Router) {\n\t\tr.Use(s.authenticator)\n\t\tr.Post(\"/{plugin}/refresh\", refreshFeedHandler(s))\n\t})\n\n\treturn r\n}",
"func NewHandler() http.Handler {\n\tuserMap = make(map[int]*User)\n\tlastId = 0\n\n\tmux := mux.NewRouter()\n\tmux.HandleFunc(\"/\", indexHandler)\n\tmux.HandleFunc(\"/users\", usersHandler).Methods(http.MethodGet)\n\tmux.HandleFunc(\"/users\", createUserHandler).Methods(http.MethodPost)\n\tmux.HandleFunc(\"/users/{id:[0-9a-z]+}\", getUserInfoHandler).Methods(http.MethodGet)\n\tmux.HandleFunc(\"/users/{id:[0-9a-z]+}\", deleteUserInfoHandler).Methods(http.MethodDelete)\n\tmux.HandleFunc(\"/users/{id:[0-9a-z]+}\", updateUserInfoHandler).Methods(http.MethodPut)\n\treturn mux\n}",
"func NewAuthenticationHandler(h platform.HTTPErrorHandler) *AuthenticationHandler {\n\treturn &AuthenticationHandler{\n\t\tLogger: zap.NewNop(),\n\t\tHTTPErrorHandler: h,\n\t\tHandler: http.DefaultServeMux,\n\t\tnoAuthRouter: httprouter.New(),\n\t}\n}",
"func New() *Auth {\n\treturn &Auth{\n\t\tenable: env.GetBool(\"MBAUTH\"),\n\t\tname: \"master\",\n\t\tauth: map[string]bool{},\n\t\trw: new(sync.RWMutex),\n\t}\n}",
"func New() *Handler {\n\th := Handler{}\n\th.init()\n\treturn &h\n}",
"func New(eh *exit.Handler, lgr logger.OutputIface) *Handler {\n\treturn &Handler{\n\t\tex: eh,\n\t\tLogger: lgr,\n\t\tmu: &sync.Mutex{},\n\t}\n}",
"func NewAuthAPI() AuthAPI {\n\treturn AuthAPI{\n\t\tpath: \"/auth\",\n\t\thandler: &handler.AuthHandler{\n\t\t},\n\t}\n}",
"func NewHandler(db DBClient, store *sessions.CookieStore, config utils.AppConfig) http.Handler {\n\treturn &handler{\n\t\t// TODO: Create own templates\n\t\ttmpl: blog.NewRenderer(\"user\", *blog.NewData(\"User\")),\n\t\tdb: db,\n\t\tstore: store,\n\t\tconfig: config,\n\t}\n}",
"func NewJwtAuthenticationHandler(keyProvider VerificationKeyProvider, configOptions ...JwtHandlerConfigOption) (*JwtAuthenticationHandler, error) {\n\tif keyProvider == nil {\n\t\treturn nil, fmt.Errorf(\"key provider must not be nil\")\n\t}\n\n\tjwtHandler := &JwtAuthenticationHandler{\n\t\tkeyProvider: keyProvider,\n\t\tmaxClockSkew: 10 * 60,\n\t\tacceptableAudiences: []string{\"vmware-tes:vapi\"},\n\t}\n\n\tfor _, fn := range configOptions {\n\t\terr := fn(jwtHandler)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn jwtHandler, nil\n}",
"func NewHandler(pubsubapiClient pubsubapi.Client, estafetteService estafette.Service) Handler {\n\treturn Handler{\n\t\tpubsubapiClient: pubsubapiClient,\n\t\testafetteService: estafetteService,\n\t}\n}",
"func NewHandler(k Keeper) sdk.Handler {\n\treturn func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {\n\t\tctx = ctx.WithEventManager(sdk.NewEventManager())\n\t\tswitch msg := msg.(type) {\n\t\t// TODO: Define your msg cases\n\t\t// \n\t\t//Example:\n\t\t// case Msg<Action>:\n\t\t// \treturn handleMsg<Action>(ctx, k, msg)\n\t\tdefault:\n\t\t\terrMsg := fmt.Sprintf(\"unrecognized %s message type: %T\", ModuleName, msg)\n\t\t\treturn nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg)\n\t\t}\n\t}\n}",
"func NewHandler(config *api.APIConfig, service Service, databaseClient database.Client) Handler {\n\treturn Handler{\n\t\tconfig: config,\n\t\tservice: service,\n\t\tdatabaseClient: databaseClient,\n\t}\n}",
"func (p DirectHandler) AuthHandler(http.ResponseWriter, *http.Request) {}",
"func New(realm string, credentials map[string]string, protectedHTTPMethods []string, enabled bool) func(http.Handler) http.Handler {\n\treturn func(next http.Handler) http.Handler {\n\t\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tif !enabled {\n\t\t\t\tnext.ServeHTTP(w, r)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tmethodIsProtected := false\n\t\t\tfor _, protectedHTTPMethod := range protectedHTTPMethods {\n\t\t\t\tif r.Method == protectedHTTPMethod {\n\t\t\t\t\tmethodIsProtected = true\n\t\t\t\t}\n\t\t\t}\n\t\t\tif !methodIsProtected {\n\t\t\t\tnext.ServeHTTP(w, r)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tusername, password, ok := r.BasicAuth()\n\t\t\tif !ok {\n\t\t\t\tunauthorized(w, realm)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tvalidPassword, userFound := credentials[username]\n\t\t\tif userFound {\n\t\t\t\tif password == validPassword {\n\t\t\t\t\tnext.ServeHTTP(w, r)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t\tunauthorized(w, realm)\n\t\t})\n\t}\n}",
"func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {\n\n\tif len(config.Path) == 0 || config.Path == \"\" {\n\t\tconfig.Path = \"/\"\n\t}\n\n\tif len(config.HeaderName) == 0 || config.HeaderName == \"\" {\n\t\tconfig.HeaderName = \"Authorization\"\n\t}\n\n\tif len(config.HeaderPrefix) == 0 || config.HeaderPrefix == \"\" {\n\t\tconfig.HeaderPrefix = \"\"\n\t}\n\n\tif len(config.ParamName) == 0 || config.ParamName == \"\" {\n\t\tconfig.ParamName = \"jwt\"\n\t}\n\n\treturn &JWTTransform{\n\t\tnext: next,\n\t\tname: name,\n\t\tconfig: config,\n\t}, nil\n}"
] | [
"0.70046896",
"0.6908776",
"0.6878928",
"0.64193434",
"0.63134164",
"0.6236163",
"0.61005384",
"0.60388035",
"0.597757",
"0.59669685",
"0.5966226",
"0.5963601",
"0.59397614",
"0.5937871",
"0.58376193",
"0.5767634",
"0.5678049",
"0.5662013",
"0.56577134",
"0.56375164",
"0.5610174",
"0.5593185",
"0.5585933",
"0.55449396",
"0.5531234",
"0.55235875",
"0.5522475",
"0.55194604",
"0.5506953",
"0.55029356",
"0.55024725",
"0.550158",
"0.5490468",
"0.5486359",
"0.5482006",
"0.5477842",
"0.54751605",
"0.5468768",
"0.5465544",
"0.5465544",
"0.5449925",
"0.5444854",
"0.5443175",
"0.5443175",
"0.5443175",
"0.5436232",
"0.5435332",
"0.54138917",
"0.5404385",
"0.5401695",
"0.5398134",
"0.5391563",
"0.53838843",
"0.53621787",
"0.5361136",
"0.5346417",
"0.53388906",
"0.5333057",
"0.5324953",
"0.5317659",
"0.5301259",
"0.5299174",
"0.5295708",
"0.5293551",
"0.5290046",
"0.5271777",
"0.52687895",
"0.5267195",
"0.5266968",
"0.5259049",
"0.525541",
"0.5251141",
"0.5245483",
"0.52404684",
"0.5231395",
"0.52294624",
"0.52230006",
"0.5215746",
"0.5204215",
"0.5202088",
"0.51901954",
"0.5190025",
"0.5184238",
"0.51807064",
"0.51789564",
"0.5177641",
"0.5176517",
"0.51756054",
"0.5161566",
"0.5159882",
"0.515852",
"0.51475453",
"0.51444286",
"0.51413995",
"0.5140711",
"0.51403636",
"0.51354784",
"0.513146",
"0.51289606",
"0.5127803"
] | 0.7903703 | 0 |
ServeHTTP serves requests to authenticate. | func (auth Auth) ServeHTTP(res http.ResponseWriter, req *http.Request) {
if req.Method != http.MethodPost {
http.Error(res, "only POST allowed", http.StatusMethodNotAllowed)
return
}
email := req.FormValue("email")
password := req.FormValue("password")
user, err := auth.db.UserCheck(email, password)
if err != nil {
http.Error(res, err.Error(), http.StatusInternalServerError)
return
}
if user == nil {
http.Error(res, "invalid login", http.StatusForbidden)
return
}
token, err := auth.key.NewToken(user.ID)
if err != nil {
http.Error(res, err.Error(), http.StatusInternalServerError)
return
}
encode(res, data.Auth{
Token: token,
Email: email,
})
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (ea *EnsureAuth) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif !IsUserAuthenticated(r) {\n\t\tretErr := &Error{\n\t\t\tClientError: true,\n\t\t\tServerError: false,\n\t\t\tMessage: errUnauthorized.Error(),\n\t\t\tContext: fmt.Sprintf(\"method=%s path=%s\", r.Method, r.URL.Path),\n\t\t\tCode: 0,\n\t\t}\n\t\twwwHeaderValue := WWWAuthenticateBearerRealm\n\t\twwwErrVal := getSessionErrorKeyValueFromContext(r)\n\t\tif IsAuthError(r) && len(wwwErrVal) > 0 {\n\t\t\twwwHeaderValue += \",\\n\" + wwwErrVal\n\t\t}\n\t\tw.Header().Add(HeaderWWWAuthenticate, wwwHeaderValue)\n\t\tea.cx.handleErrorJson(w, r, nil, \"request to access authenticated resource, but user is not authenticated\",\n\t\t\tretErr, http.StatusUnauthorized)\n\t\treturn\n\t}\n\tea.handler.ServeHTTP(w, r)\n}",
"func (a *Authenticator) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t// Check the username and password against the directory.\n\tuid, pwd := r.FormValue(\"uid\"), r.FormValue(\"pwd\")\n\tp, err := a.dir.CheckCredentials(uid, pwd)\n\tif err != nil {\n\t\thttp.Error(w, \"Incorrect credentials.\", http.StatusUnauthorized)\n\t\treturn\n\t}\n\tts, err := a.generateJwt(p)\n\tif err != nil {\n\t\thttp.Error(w, \"Incorrect credentials.\", http.StatusUnauthorized)\n\t\treturn\n\t}\n\tw.Header().Add(\"Content-Type\", \"text/plain\")\n\tw.Write(ts)\n}",
"func (h *Input) ServeHTTP(res http.ResponseWriter, req *http.Request) {\n\thandler := h.serveWrite\n\n\th.authenticateIfSet(handler, res, req)\n}",
"func (s *srv) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t// check if authenticated\n\tif r.URL.Path != LoginURL {\n\t\tc, err := r.Cookie(TokenCookieName)\n\t\tif err != nil || c == nil {\n\t\t\thttp.Redirect(w, r, LoginURL, 302)\n\t\t\treturn\n\t\t}\n\n\t\t// check the token is valid\n\t\ttoken := strings.TrimPrefix(c.Value, TokenCookieName+\"=\")\n\t\tif len(token) == 0 {\n\t\t\thttp.Redirect(w, r, LoginURL, 302)\n\t\t\treturn\n\t\t}\n\t}\n\n\t// set defaults on the request\n\tif len(r.URL.Host) == 0 {\n\t\tr.URL.Host = r.Host\n\t}\n\tif len(r.URL.Scheme) == 0 {\n\t\tr.URL.Scheme = \"http\"\n\t}\n\n\ts.Router.ServeHTTP(w, r)\n}",
"func (h *AuthenticationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif handler, _, _ := h.noAuthRouter.Lookup(r.Method, r.URL.Path); handler != nil {\n\t\th.Handler.ServeHTTP(w, r)\n\t\treturn\n\t}\n\n\tctx := r.Context()\n\tscheme, err := ProbeAuthScheme(r)\n\tif err != nil {\n\t\tUnauthorizedError(ctx, h, w)\n\t\treturn\n\t}\n\n\tswitch scheme {\n\tcase tokenAuthScheme:\n\t\tctx, err = h.extractAuthorization(ctx, r)\n\t\tif err != nil {\n\t\t\tbreak\n\t\t}\n\t\tr = r.WithContext(ctx)\n\t\th.Handler.ServeHTTP(w, r)\n\t\treturn\n\tcase sessionAuthScheme:\n\t\tctx, err = h.extractSession(ctx, r)\n\t\tif err != nil {\n\t\t\tbreak\n\t\t}\n\t\tr = r.WithContext(ctx)\n\t\th.Handler.ServeHTTP(w, r)\n\t\treturn\n\t}\n\n\tUnauthorizedError(ctx, h, w)\n}",
"func (s *LoginServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif r.URL.Path == \"/\" {\n\t\ts.printServerKeys(w)\n\t\treturn\n\t}\n\n\tuser := r.Header.Get(s.userHeader)\n\n\tpath := r.URL.RawPath\n\tif path == \"\" {\n\t\tpath = r.URL.Path\n\t}\n\n\tresponse, err := s.loginParser.ParseURLResponse(path)\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), 400)\n\t\treturn\n\t}\n\n\ts.printToken(w, response, user)\n}",
"func (c Control) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif !validateReferer(r) {\n\t\thttp.Redirect(w, r, \"/\", http.StatusTemporaryRedirect)\n\t\treturn\n\t}\n\n\turlPath := path.Clean(r.URL.Path)\n\tif urlPath == \"/login\" {\n\t\tc.ServeLogin(w, r)\n\t\treturn\n\t} else if strings.HasPrefix(urlPath, \"/assets/\") {\n\t\tc.ServeAsset(w, r)\n\t\treturn\n\t} else if !isAuthenticated(r) {\n\t\thttp.Redirect(w, r, \"/login\", http.StatusTemporaryRedirect)\n\t\treturn\n\t}\n\n\t// Page routing for authenticated clients.\n\tpages := map[string]func(http.ResponseWriter, *http.Request){\n\t\t\"/general\": c.ServeGeneral, \"/rules\": c.ServeRules, \"/tls\": c.ServeTLS,\n\t\t\"/http\": c.ServeHTTPConfig, \"/https\": c.ServeHTTPSConfig,\n\t\t\"/chpass\": c.ServeChpass, \"/\": c.ServeRoot,\n\t\t\"/setrules\": c.ServeSetRules, \"/add_task\": c.ServeAddTask,\n\t\t\"/start_task\": c.ServeStartTask, \"/stop_task\": c.ServeStopTask,\n\t\t\"/edit_task\": c.ServeEditTask, \"/backlog\": c.ServeBacklog,\n\t\t\"/delete_task\": c.ServeDeleteTask, \"/set_tls\": c.ServeSetTLS}\n\thandler, ok := pages[urlPath]\n\tif !ok {\n\t\thandler = http.NotFound\n\t}\n\thandler(w, r)\n}",
"func (t *TokenAuth) ServeHTTP(w http.ResponseWriter, req *http.Request, next http.HandlerFunc) {\n\ttoken, err := t.auth.Authenticate(req)\n\tif err != nil {\n\t\tt.auth.UnauthorizedHandler.ServeHTTP(w, req)\n\t\treturn\n\t}\n\tcontext.Set(req, \"token\", token)\n\tnext(w, req)\n\tcontext.Clear(req)\n}",
"func (h *Handler) serveAuthenticateDBUser(w http.ResponseWriter, r *http.Request) {}",
"func (au *Authenticator) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tsesSt, errGST := au.cx.getSessionStateFromRequest(r)\n\tif errGST != nil {\n\t\tvar authErrorReason string = \"\"\n\t\tvar wasError bool = false\n\t\tif errGST != session.ErrNoSessionId {\n\t\t\tif errGST == session.ErrInvalidScheme {\n\t\t\t\tauthErrorReason = WWWAuthenticateErrorInvalidRequest + \",\\n\" + \"error_description=\\\"Bearer scheme not provided\\\"\"\n\t\t\t\twasError = true\n\t\t\t} else if errGST == session.ErrInvalidSessionId {\n\t\t\t\tauthErrorReason = WWWAuthenticateErrorInvalidToken + \",\\n\" + \"error_description=\\\"token extracted not a valid session token\\\"\"\n\t\t\t\twasError = true\n\t\t\t}\n\t\t\tau.cx.logError(errGST, \"issue getting session from request\", \"\",\n\t\t\t\thttp.StatusInternalServerError)\n\t\t}\n\t\tcxWithAuthError := context.WithValue(r.Context(), authSessionErrorKey, wasError)\n\t\tcxWithAuthErrorValue := context.WithValue(cxWithAuthError, authSessionErrorValueKey, authErrorReason)\n\t\tcxWithSessionActive := context.WithValue(cxWithAuthErrorValue, authSessionActiveKey, false)\n\t\tcxWithUserAuthFalse := context.WithValue(cxWithSessionActive, authUserAuthenticatedKey, false)\n\n\t\trWithUserAuthFalse := r.WithContext(cxWithUserAuthFalse)\n\t\tau.handler.ServeHTTP(w, rWithUserAuthFalse)\n\t\treturn\n\t}\n\n\t//create a new request context containing the authenticated user\n\tcxWithSessionActive := context.WithValue(r.Context(), authSessionActiveKey, true)\n\tcxWithSessionState := context.WithValue(cxWithSessionActive, authSessionStateKey, sesSt)\n\n\tcxWithKey := context.WithValue(cxWithSessionState, authUserAuthenticatedKey, sesSt.Authenticated)\n\n\t//create a new request using that new context\n\trWithSession := r.WithContext(cxWithKey)\n\n\t//call the real handler, passing the new request\n\tau.handler.ServeHTTP(w, rWithSession)\n}",
"func (web *MFAWebServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif r.URL.Path == \"/results\" {\n\n\t} else {\n\t\terr := r.ParseForm()\n\t\tif err != nil {\n\t\t\tfmt.Println(\"Error parsing form....\")\n\t\t}\n\n\t\tuser := r.Form[\"username\"][0]\n\t\tpassword := r.Form[\"password\"][0]\n\t\ttoken := r.Form[\"token\"][0]\n\n\t\tlog.Printf(\"User: %s, Password: %s, Token: %s\\n\", user, password, token)\n\t\tfmt.Println(\"[+] Creds captured and written to cred.log\")\n\n\t\tif !web.CredsRecvd {\n\t\t\tweb.CredsRecvd = true\n\t\t\twriteLoginFile(user, password, token)\n\t\t\tfmt.Println(\"[+] Creds writtin to loginFile, UiPath should be attempting login\")\n\t\t}\n\t\tw.Write([]byte(\"success\"))\n\t}\n}",
"func (ea *EnsureAuth) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tpermitted, _ := Security.HasPermission(r,ea.permission)\n\tif permitted {\n\t\tea.handler.ServeHTTP(w, r)\n\t} else {\n\t\tw.WriteHeader(http.StatusForbidden)\n\t\tfmt.Fprint(w, \"Access denied\")\n\t}\n}",
"func (m *atmAuthenticatorMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\ttokenString := r.Header.Get(\"token\")\n\ttoken, err := uuid.Parse(tokenString)\n\tif err != nil {\n\t\tw.WriteHeader(http.StatusInternalServerError)\n\t\treturn\n\t}\n\tatmErr := m.atmClient.IsAuthenticated(r.Context(), token)\n\tif atmErr != nil {\n\t\tif atmErr.IsAuthenticated() {\n\t\t\tw.WriteHeader(http.StatusInternalServerError)\n\t\t\treturn\n\t\t}\n\t\tw.WriteHeader(http.StatusUnauthorized)\n\t\treturn\n\t}\n\tm.next.ServeHTTP(w, r)\n}",
"func (l *AuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {\n\ttoken := r.Header.Get(\"X-Cloudsyncer-Authtoken\")\n\tusername := r.Header.Get(\"X-Cloudsyncer-Username\")\n\n\tif username == \"\" {\n\t\thandleErr(w, 403, nil, \"username not provided or empty\")\n\t\treturn\n\t}\n\n\tif len(username) > 255 {\n\t\thandleErr(w, 403, nil, \"username too long\")\n\t\treturn\n\t}\n\n\tif token == \"\" {\n\t\thandleErr(w, 403, nil, \"Token not provided or empty\")\n\t\treturn\n\t}\n\n\tif len(token) > 255 {\n\t\thandleErr(w, 413, nil, \"Token too long\")\n\t\treturn\n\t}\n\tuser := db.GetUser(username)\n\tif user == nil {\n\t\thandleErr(w, 403, nil, \"Invalid credentials\")\n\t\treturn\n\t}\n\tif session := db.GetSession(user, token); session == nil {\n\t\thandleErr(w, 403, nil, \"Invalid credentials\")\n\t\treturn\n\t} else {\n\t\tcontext.Set(r, \"session\", session)\n\t\tcontext.Set(r, \"user\", user)\n\t}\n\tnext(w, r)\n\n}",
"func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\n\t// Extract auth code\n\tauthReq := h.client.NewAuthorizeRequest(osincli.CODE)\n\tauthData, err := authReq.HandleRequest(req)\n\tif err != nil {\n\t\tglog.V(4).Infof(\"Error handling request: %v\", err)\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\n\tglog.V(4).Infof(\"Got auth data\")\n\n\t// Validate state before making any server-to-server calls\n\tok, err := h.state.Check(authData.State, req)\n\tif err != nil {\n\t\tglog.V(4).Infof(\"Error verifying state: %v\", err)\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\tif !ok {\n\t\tglog.V(4).Infof(\"State is invalid\")\n\t\terr := errors.New(\"State is invalid\")\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\n\t// Exchange code for a token\n\taccessReq := h.client.NewAccessRequest(osincli.AUTHORIZATION_CODE, authData)\n\taccessData, err := accessReq.GetToken()\n\tif err != nil {\n\t\tglog.V(4).Infof(\"Error getting access token: %v\", err)\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\n\tglog.V(5).Infof(\"Got access data\")\n\n\tidentity, ok, err := h.provider.GetUserIdentity(accessData)\n\tif err != nil {\n\t\tglog.V(4).Infof(\"Error getting userIdentityInfo info: %v\", err)\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\tif !ok {\n\t\tglog.V(4).Infof(\"Could not get userIdentityInfo info from access token\")\n\t\terr := errors.New(\"Could not get userIdentityInfo info from access token\")\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\n\tuser, err := h.mapper.UserFor(identity)\n\tif err != nil {\n\t\tglog.V(4).Infof(\"Error creating or updating mapping for: %#v due to %v\", identity, err)\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n\tglog.V(4).Infof(\"Got userIdentityMapping: %#v\", user)\n\n\t_, err = h.success.AuthenticationSucceeded(user, authData.State, w, req)\n\tif err != nil {\n\t\tglog.V(4).Infof(\"Error calling success handler: %v\", err)\n\t\th.handleError(err, w, req)\n\t\treturn\n\t}\n}",
"func (s *srv) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif strings.HasPrefix(r.URL.Path, \"/assets/\") {\n\t\ts.Router.ServeHTTP(w, r)\n\t\treturn\n\t}\n\n\t// check if authenticated\n\tif r.URL.Path != LoginURL {\n\t\tc, err := r.Cookie(TokenCookieName)\n\t\tif err != nil || c == nil {\n\t\t\thttp.Redirect(w, r, LoginURL, 302)\n\t\t\treturn\n\t\t}\n\n\t\t// check the token is valid\n\t\ttoken := strings.TrimPrefix(c.Value, TokenCookieName+\"=\")\n\t\tif len(token) == 0 {\n\t\t\thttp.Redirect(w, r, LoginURL, 302)\n\t\t\treturn\n\t\t}\n\n\t\t// if we have a session retrieve it\n\t\tmtx.RLock()\n\t\tsess, ok := sessions[token]\n\t\tmtx.RUnlock()\n\n\t\t// no session, go get the account\n\t\tif !ok {\n\t\t\t// save the session\n\t\t\tmtx.Lock()\n\t\t\tsess = &session{\n\t\t\t\tToken: token,\n\t\t\t}\n\t\t\tsessions[token] = sess\n\t\t\tmtx.Unlock()\n\t\t}\n\n\t\t// create a new context\n\t\tctx := context.WithValue(r.Context(), session{}, sess)\n\n\t\t// redefine request with context\n\t\tr = r.Clone(ctx)\n\t}\n\n\t// set defaults on the request\n\tif len(r.URL.Host) == 0 {\n\t\tr.URL.Host = r.Host\n\t}\n\tif len(r.URL.Scheme) == 0 {\n\t\tr.URL.Scheme = \"http\"\n\t}\n\n\ts.Router.ServeHTTP(w, r)\n}",
"func (h jwtAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t// Let the top level caller handle if the requests should be\n\t// allowed, if there are no Authorization headers.\n\tif r.Header.Get(\"Authorization\") == \"\" {\n\t\th.handler.ServeHTTP(w, r)\n\t\treturn\n\t}\n\t// Validate Authorization header to be valid.\n\tjwt := InitJWT()\n\ttoken, e := jwtgo.ParseFromRequest(r, func(token *jwtgo.Token) (interface{}, error) {\n\t\tif _, ok := token.Method.(*jwtgo.SigningMethodHMAC); !ok {\n\t\t\treturn nil, fmt.Errorf(\"Unexpected signing method: %v\", token.Header[\"alg\"])\n\t\t}\n\t\treturn jwt.secretAccessKey, nil\n\t})\n\tif e != nil || !token.Valid {\n\t\tw.WriteHeader(http.StatusUnauthorized)\n\t\treturn\n\t}\n\th.handler.ServeHTTP(w, r)\n}",
"func (c *Component) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tlisteners := AuthListeners()\n\n\tif logout, err := url.Parse(com.GetString(\"logout_url\")); err == nil {\n\t\tif r.URL.Path == logout.Path {\n\t\t\tif returnTo := r.URL.Query().Get(\"return\"); returnTo != \"\" {\n\t\t\t\thttp.Redirect(w, r, returnTo, http.StatusFound)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tfor _, listener := range listeners {\n\t\t\t\tif err := listener.WebAuthLogout(w, r); err != nil {\n\t\t\t\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t\tq := url.Values{}\n\t\t\tq.Set(\"return\", r.Referer())\n\t\t\treturnURL := &url.URL{\n\t\t\t\tScheme: logout.Scheme,\n\t\t\t\tHost: logout.Host,\n\t\t\t\tPath: logout.Path,\n\t\t\t\tRawQuery: q.Encode(),\n\t\t\t}\n\t\t\thttp.Redirect(w, r, auth0.DefaultClient().LogoutURL(returnURL.String()), http.StatusFound)\n\t\t\treturn\n\t\t}\n\t}\n\n\ttoken, err := auth0.DefaultClient().NewToken(r.URL.Query().Get(\"code\"))\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tfor _, listener := range listeners {\n\t\tif err := listener.WebAuthLogin(w, r, token); err != nil {\n\t\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t\t\treturn\n\t\t}\n\t}\n\n\tstate := r.URL.Query().Get(\"state\")\n\tif state != \"\" {\n\t\thttp.Redirect(w, r, state, http.StatusFound)\n\t\treturn\n\t}\n\thttp.Redirect(w, r, r.Referer(), http.StatusFound)\n}",
"func (h *ApiHandlerWithAuth) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tdefer r.Body.Close()\n\tcookie, err := r.Cookie(\"access_token\")\n\tif err != nil {\n\t\terr = fmt.Errorf(\"extract auth cookie: %v\", err)\n\t\treplyWithError(w, http.StatusForbidden, err)\n\t\treturn\n\t}\n\ttoken, err := jwt.Parse(cookie.Value, func(tok *jwt.Token) (interface{}, error) {\n\t\tif _, ok := tok.Method.(*jwt.SigningMethodHMAC); !ok {\n\t\t\treturn nil, fmt.Errorf(\"unexpected signature method\")\n\t\t}\n\t\treturn []byte(h.conf.JwtSignKey), nil\n\t})\n\tif err != nil {\n\t\treplyWithError(w, http.StatusForbidden, fmt.Errorf(\"parse jwt token: %v\", err))\n\t\treturn\n\t}\n\tclaimsMap, ok := token.Claims.(jwt.MapClaims)\n\tif !ok || !token.Valid {\n\t\terr = fmt.Errorf(\"invalid token\")\n\t\treplyWithError(w, http.StatusForbidden, err)\n\t\treturn\n\t}\n\tclaims := &tokenClaims{}\n\tif err := mapstructure.Decode(claimsMap, claims); err != nil {\n\t\terr = fmt.Errorf(\"decode auth token: %v\", err)\n\t\tlogE.Print(err)\n\t\treplyWithError(w, http.StatusForbidden, err)\n\t\treturn\n\t}\n\th.doHandle(w, r, claims.UserId)\n}",
"func (s server) Handle(w http.ResponseWriter, r *http.Request) {\n\t/* If we have creds set, check them */\n\tif \"\" != s.username || \"\" != s.password {\n\t\tw.Header().Set(\n\t\t\t\"WWW-Authenticate\",\n\t\t\t`Basic realm=\"Auth Required\"`,\n\t\t)\n\t\tu, p, ok := r.BasicAuth()\n\t\tif !ok || (\"\" == u && \"\" == p) { /* Client didn't know? */\n\t\t\tlog.Printf(\"[%v] No auth\", r.RemoteAddr)\n\t\t\thttp.Error(w, \"Not authorized\", 401)\n\t\t\treturn\n\t\t}\n\t\tif u != s.username || p != s.password {\n\t\t\tlog.Printf(\n\t\t\t\t\"[%s] Auth fail (%q / %q)\",\n\t\t\t\tr.RemoteAddr,\n\t\t\t\tu,\n\t\t\t\tp,\n\t\t\t)\n\t\t\thttp.Error(w, \"Not authorized\", 401)\n\t\t\treturn\n\t\t}\n\t}\n\n\tlogReq(r)\n\n\t/* Special cases sometimes */\n\tswitch r.Method {\n\tcase http.MethodDelete: /* We may not allow deletes */\n\t\tif s.noDelete {\n\t\t\treturn\n\t\t}\n\tcase http.MethodGet: /* Maybe serve a single file */\n\t\tif \"\" != s.serveFile {\n\t\t\thttp.ServeFile(w, r, s.serveFile)\n\t\t\treturn\n\t\t}\n\t}\n\n\t/* If we're only allowing read access, whitelist the allowed methods */\n\tif s.readOnly {\n\t\tswitch r.Method {\n\t\tcase \"OPTIONS\", \"GET\", \"HEAD\", \"PROPFIND\":\n\t\t\t/* These are ok */\n\t\tdefault:\n\t\t\t/* This is not ok */\n\t\t\treturn\n\t\t}\n\t}\n\n\ts.w.ServeHTTP(w, r)\n}",
"func (t TabAuth) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif !t.isAuthenticated(r) {\n\t\thttp.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)\n\t\treturn\n\t}\n\n\tstatus, err := t.tabauthHandler(w, r)\n\tif err != nil {\n\t\tlog.Printf(\"HTTP %d: %s\", status, err.Error())\n\t\thttp.Error(w, http.StatusText(status), status)\n\t}\n}",
"func (h staticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tctx := context.Background()\n\tif config.PasswordProtected() {\n\t\tsessionInfo := h.enforcer.EnforceValidSession(ctx, w, r)\n\t\tif !sessionInfo.Valid {\n\t\t\treturn\n\t\t}\n\t}\n\tfname := getStaticFileName(*r.URL)\n\thttp.ServeFile(w, r, fname)\n}",
"func (r *router) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tif dump, err := httputil.DumpRequest(req, true); err != nil {\n\t\tlog.Printf(\"Cannot log incoming request: %v\", err)\n\t} else {\n\t\tlog.Print(string(dump))\n\t}\n\n\tmajor, minor, err := extractVersion(req)\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusBadRequest)\n\t\treturn\n\t}\n\tlog.Printf(\"Router: Version check: [%v.%v]\", major, minor)\n\t//TODO: Verify compatibility\n\n\tusername, password, err := extractCredentials(req)\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusUnauthorized)\n\t\treturn\n\t}\n\tlog.Printf(\"Router: Authentication: [%v/%v]\", username, password)\n\t//TODO: Authenticate based on the opts object\n\n\tr.mux.ServeHTTP(w, req)\n}",
"func (h AuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tbytes, err := ioutil.ReadAll(r.Body)\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not read http body\")\n\t\treturn\n\t}\n\n\tvar authBody authRequestBody\n\n\terr = json.Unmarshal(bytes, &authBody)\n\tif err != nil {\n\t\twriteError(w, http.StatusUnprocessableEntity, \"invalid json\")\n\t\treturn\n\t}\n\n\tif authBody.Email == \"\" || authBody.Password == \"\" {\n\t\twriteError(w, http.StatusBadRequest, \"Empty email or password.\")\n\t\treturn\n\t}\n\n\tuser, err := h.UserRepo.FindUser(\"WHERE email = $1\", authBody.Email)\n\tif err != nil {\n\t\tif err == easyalert.ErrRecordDoesNotExist {\n\t\t\twriteError(w, http.StatusUnauthorized, \"Invalid credentials.\")\n\t\t\treturn\n\t\t}\n\n\t\twriteError(w, http.StatusInternalServerError, \"an unknown error occured\")\n\t\treturn\n\t}\n\n\tif !user.ValidPassword(authBody.Password) {\n\t\twriteError(w, http.StatusUnauthorized, \"Invalid credentials.\")\n\t\treturn\n\t}\n\n\tresponseBody := authResponseBody{user.Token}\n\n\tresponseBodyBytes, err := json.Marshal(responseBody)\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not marshal response body\")\n\t\treturn\n\t}\n\n\tbody, err := prettifyJSON(string(responseBodyBytes))\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not prettify json response\")\n\t\treturn\n\t}\n\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\tw.WriteHeader(http.StatusOK)\n\tw.Write([]byte(body))\n}",
"func (t *templateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tt.once.Do(func() {\n\t\tt.templ = template.Must(template.ParseFiles(filepath.Join(\"templates\", t.filename)))\n\t})\n\tdata := map[string]interface{}{\n\t\t\"Host\": r.Host,\n\t}\n\t//Decode value in the \"auth\" cookie sent by the client\n\tif authCookie, err := r.Cookie(\"auth\"); err == nil {\n\t\tdata[\"UserData\"] = objx.MustFromBase64(authCookie.Value)\n\t}\n\tt.templ.Execute(w, data)\n}",
"func (t *templateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tt.once.Do(func(){\n\t\tt.templ = template.Must(\n\t\t\ttemplate.ParseFiles(\n\t\t\t\tfilepath.Join(\"templates\", t.filename)))\n\t})\n\tdata := map[string]interface{}{\n\t\t\"Host\": r.Host,\n\t}\n\tif authCookie, err := r.Cookie(\"auth\"); err == nil {\n\t\tdata[\"UserData\"] = objx.MustFromBase64(authCookie.Value)\n\t}\n\tt.templ.Execute(w, data)\n}",
"func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif r.TLS == nil {\n\t\thttp.Error(w, \"TLS required\", 403)\n\t\treturn\n\t}\n\tif r.Method != \"GET\" {\n\t\thttp.Error(w, \"wrong method; want GET\", 400)\n\t\treturn\n\t}\n\tserverName := r.FormValue(\"servername\")\n\tif !validDelegateServerName(serverName) {\n\t\tlog.Printf(\"autocertdelegate: invalid server name %q\", serverName)\n\t\tbadServerName(w)\n\t\treturn\n\t}\n\tif err := s.am.HostPolicy(r.Context(), serverName); err != nil {\n\t\tlog.Printf(\"autocertdelegate: %q denied by configured HostPolicy: %v\", serverName, err)\n\t\tbadServerName(w)\n\t\treturn\n\t}\n\n\tswitch r.FormValue(\"mode\") {\n\tdefault:\n\t\thttp.Error(w, \"unknown or missing mode argument\", 400)\n\t\treturn\n\tcase \"getchallenge\":\n\t\tt := time.Now()\n\t\tfmt.Fprintf(w, \"%s/%d/%s\\n\", serverName, t.Unix(), challengeAnswer(s.key, serverName, t))\n\t\treturn\n\tcase \"getcert\":\n\t}\n\n\t// Verify serverName resolves to a local IP.\n\tlookupCtx, cancel := context.WithTimeout(r.Context(), 5*time.Second)\n\tdefer cancel()\n\tvar resolver net.Resolver\n\tresolver.PreferGo = true\n\taddrs, err := resolver.LookupHost(lookupCtx, serverName)\n\tif err != nil {\n\t\tlog.Printf(\"autocertdelegate: lookup %q error: %v\", serverName, err)\n\t\tbadServerName(w)\n\t\treturn\n\t}\n\tif len(addrs) != 1 {\n\t\tlog.Printf(\"autocertDelegate: invalid server name %q; wrong number of resolved addrs. Want 1; got: %q\", serverName, addrs)\n\t\tbadServerName(w)\n\t\treturn\n\t}\n\tchallengeIP := addrs[0]\n\tif !validChallengeAddr(challengeIP) {\n\t\tlog.Printf(\"autocertDelegate: server name %q resolved to invalid challenge IP %q\", serverName, challengeIP)\n\t\tbadServerName(w)\n\t\treturn\n\t}\n\n\tchallengePort, err := strconv.Atoi(r.FormValue(\"challengeport\"))\n\tif err != nil || challengePort < 0 || challengePort > 64<<10 {\n\t\thttp.Error(w, \"invalid challengeport param\", 400)\n\t\treturn\n\t}\n\tchallengeScheme := r.FormValue(\"challengescheme\")\n\tswitch challengeScheme {\n\tcase \"http\", \"https\":\n\tcase \"\":\n\t\tchallengeScheme = \"http\"\n\tdefault:\n\t\thttp.Error(w, \"invalid challengescheme param\", 400)\n\t\treturn\n\t}\n\tchallengeURL := fmt.Sprintf(\"%s://%s:%d/.well-known/autocertdelegate-challenge\",\n\t\tchallengeScheme, challengeIP, challengePort)\n\n\tif err := s.verifyChallengeURL(r.Context(), challengeURL, serverName); err != nil {\n\t\tlog.Printf(\"autocertdelegate: failed challenge for %q: %v\", serverName, err)\n\t\tbadServerName(w)\n\t\treturn\n\t}\n\n\twantRSA, _ := strconv.ParseBool(r.FormValue(\"rsa\"))\n\n\tvar cipherSuites []uint16\n\tif !wantRSA {\n\t\tcipherSuites = append(cipherSuites, tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256)\n\t}\n\t// Prime the cache:\n\tif _, err := s.am.GetCertificate(&tls.ClientHelloInfo{\n\t\tServerName: r.FormValue(\"servername\"),\n\t\tCipherSuites: cipherSuites,\n\t}); err != nil {\n\t\thttp.Error(w, err.Error(), 500)\n\t\treturn\n\t}\n\tkey := serverName\n\tif wantRSA {\n\t\tkey += \"+rsa\"\n\t}\n\t// But what we really want is the on-disk PEM representation:\n\tpems, err := s.am.Cache.Get(r.Context(), key)\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), 500)\n\t\treturn\n\t}\n\n\tw.Header().Set(\"Content-Type\", \"text/plain; charset=utf-8\")\n\tw.Write(pems)\n}",
"func (h *Handler) serveAuthenticateClusterAdmin(w http.ResponseWriter, r *http.Request) {}",
"func (serv *Server) ServeHTTP(res http.ResponseWriter, req *http.Request) {\n host := strings.Split(req.Host, \":\")[0]\n port := strings.Split(serv.config.HttpsAddr, \":\")[1]\n path := req.URL.Path\n\n // Redirect Non-HTTPS requests to HTTPS\n if req.TLS == nil {\n dest := fmt.Sprintf(\"https://%s:%s%s\", host, port, path)\n log.Printf(\"Redirecting HTTP client '%s' to %s\", req.RemoteAddr, dest)\n http.Redirect(res, req, dest, http.StatusTemporaryRedirect)\n return\n }\n\n res.Header().Add(\"Strict-Transport-Security\", \"max-age=31536000; includeSubDomains\")\n\n log.Printf(\"Handling client '%s'\", req.RemoteAddr)\n\n switch path {\n case \"/lookup\": serv.LookupRoute(res, req)\n case \"/register\": serv.RegisterRoute(res, req)\n case \"/auth\": serv.AuthRoute(res, req)\n case \"/login\": serv.LoginRoute(res, req)\n case \"/test\": serv.TestRoute(res, req)\n case \"/send\": serv.SendRoute(res, req)\n case \"/get\": serv.GetRoute(res, req)\n default: res.Write([]byte(\"<h1>Hello World!</h1>\"))\n }\n}",
"func (s Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tmatch, _ := regexp.MatchString(\".*/v2/blobs/sha256/.*/data\", req.URL.Path)\n\tlog.Infof(\"Accept request %s %s match: %t\", req.Method, req.URL.Path, match)\n\tif match && req.Method == \"GET\" {\n\t\tif !strings.HasPrefix(req.URL.Path, fmt.Sprintf(\"/%s/\", s.config.APIKey)) {\n\t\t\tlog.Info(\"Redirect\")\n\t\t\ts.redirectHandler(w, req, s.config.MyAddr, req.URL.String())\n\t\t} else {\n\t\t\tlog.Info(\"P2P\")\n\t\t\ts.p2pHandler(w, req)\n\t\t}\n\t} else if req.Method == \"CONNECT\" {\n\t\tlog.Info(\"Connect\")\n\t\ts.connectHandler(w, req)\n\t} else {\n\t\tlog.Info(\"Proxy\")\n\t\ts.proxyHandler(w, req)\n\t}\n}",
"func (c *Config) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tu := c.User\n\trequestOrigin := r.Header.Get(\"Origin\")\n\n\t// Add CORS headers before any operation so even on a 401 unauthorized status, CORS will work.\n\tif c.Cors.Enabled && requestOrigin != \"\" {\n\t\theaders := w.Header()\n\n\t\tallowedHeaders := strings.Join(c.Cors.AllowedHeaders, \", \")\n\t\tallowedMethods := strings.Join(c.Cors.AllowedMethods, \", \")\n\t\texposedHeaders := strings.Join(c.Cors.ExposedHeaders, \", \")\n\n\t\tallowAllHosts := len(c.Cors.AllowedHosts) == 1 && c.Cors.AllowedHosts[0] == \"*\"\n\t\tallowedHost := isAllowedHost(c.Cors.AllowedHosts, requestOrigin)\n\n\t\tif allowAllHosts {\n\t\t\theaders.Set(\"Access-Control-Allow-Origin\", \"*\")\n\t\t} else if allowedHost {\n\t\t\theaders.Set(\"Access-Control-Allow-Origin\", requestOrigin)\n\t\t}\n\n\t\tif allowAllHosts || allowedHost {\n\t\t\theaders.Set(\"Access-Control-Allow-Headers\", allowedHeaders)\n\t\t\theaders.Set(\"Access-Control-Allow-Methods\", allowedMethods)\n\n\t\t\tif c.Cors.Credentials {\n\t\t\t\theaders.Set(\"Access-Control-Allow-Credentials\", \"true\")\n\t\t\t}\n\n\t\t\tif len(c.Cors.ExposedHeaders) > 0 {\n\t\t\t\theaders.Set(\"Access-Control-Expose-Headers\", exposedHeaders)\n\t\t\t}\n\t\t}\n\t}\n\n\tif r.Method == \"OPTIONS\" && c.Cors.Enabled && requestOrigin != \"\" {\n\t\treturn\n\t}\n\n\t// Authentication\n\tif c.Auth {\n\t\tw.Header().Set(\"WWW-Authenticate\", `Basic realm=\"Restricted\"`)\n\n\t\t// Gets the correct user for this request.\n\t\tusername, password, ok := r.BasicAuth()\n\t\tzap.L().Info(\"login attempt\", zap.String(\"username\", username), zap.String(\"remote_address\", r.RemoteAddr))\n\t\tif !ok {\n\t\t\thttp.Error(w, \"Not authorized\", 401)\n\t\t\treturn\n\t\t}\n\n\t\tuser, ok := c.Users[username]\n\t\tif !ok {\n\t\t\thttp.Error(w, \"Not authorized\", 401)\n\t\t\treturn\n\t\t}\n\n\t\tif !checkPassword(user.Password, password) {\n\t\t\tzap.L().Info(\"invalid password\", zap.String(\"username\", username), zap.String(\"remote_address\", r.RemoteAddr))\n\t\t\thttp.Error(w, \"Not authorized\", 401)\n\t\t\treturn\n\t\t}\n\n\t\tu = user\n\t\tzap.L().Info(\"user authorized\", zap.String(\"username\", username))\n\t} else {\n\t\t// Even if Auth is disabled, we might want to get\n\t\t// the user from the Basic Auth header. Useful for Caddy\n\t\t// plugin implementation.\n\t\tusername, _, ok := r.BasicAuth()\n\t\tif ok {\n\t\t\tif user, ok := c.Users[username]; ok {\n\t\t\t\tu = user\n\t\t\t}\n\t\t}\n\t}\n\n\t// Checks for user permissions relatively to this PATH.\n\tnoModification := r.Method == \"GET\" || r.Method == \"HEAD\" ||\n\t\tr.Method == \"OPTIONS\" || r.Method == \"PROPFIND\"\n\n\tallowed := u.Allowed(r.URL.Path, noModification)\n\n\tzap.L().Debug(\"allowed & method & path\", zap.Bool(\"allowed\", allowed), zap.String(\"method\", r.Method), zap.String(\"path\", r.URL.Path))\n\n\tif !allowed {\n\t\tw.WriteHeader(http.StatusForbidden)\n\t\treturn\n\t}\n\n\tif r.Method == \"HEAD\" {\n\t\tw = newResponseWriterNoBody(w)\n\t}\n\n\t// Excerpt from RFC4918, section 9.4:\n\t//\n\t// \t\tGET, when applied to a collection, may return the contents of an\n\t//\t\t\"index.html\" resource, a human-readable view of the contents of\n\t//\t\tthe collection, or something else altogether.\n\t//\n\t// Get, when applied to collection, will return the same as PROPFIND method.\n\tif r.Method == \"GET\" && strings.HasPrefix(r.URL.Path, u.Handler.Prefix) {\n\t\tinfo, err := u.Handler.FileSystem.Stat(context.TODO(), strings.TrimPrefix(r.URL.Path, u.Handler.Prefix))\n\t\tif err == nil && info.IsDir() {\n\t\t\tr.Method = \"PROPFIND\"\n\n\t\t\tif r.Header.Get(\"Depth\") == \"\" {\n\t\t\t\tr.Header.Add(\"Depth\", \"1\")\n\t\t\t}\n\t\t}\n\t}\n\n\t// Runs the WebDAV.\n\t//u.Handler.LockSystem = webdav.NewMemLS()\n\tu.Handler.ServeHTTP(w, r)\n}",
"func (c *Casbin) ServeHTTP(ctx iris.Context) {\n\tif !c.Check(ctx) {\n\t\tctx.StopWithStatus(iris.StatusForbidden)\n\t\treturn\n\t}\n\n\tctx.Next()\n}",
"func (s *Server) Authenticate(wg *sync.WaitGroup) {\n\tdefer wg.Done()\n\ts.Session = grequests.NewSession(nil)\n\tresp, err := s.Session.Get(s.URL+loginURL, nil)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\tlog.Fatalln(\"Failed to get csrf: \" + s.Name)\n\t}\n\n\tdoc, err := goquery.NewDocumentFromReader(strings.NewReader((resp.String())))\n\tif err != nil {\n\t\tlog.Println(err)\n\t\tlog.Fatalln(\"Failed to parse html: \" + s.Name)\n\t}\n\n\tcsrfToken := \"\"\n\tdoc.Find(\"meta\").Each(func(i int, s *goquery.Selection) {\n\t\tif name, _ := s.Attr(\"name\"); name == \"csrf-token\" {\n\t\t\tcsrfToken, _ = s.Attr(\"content\")\n\t\t\treturn\n\t\t}\n\t})\n\n\tresp, err = s.Session.Get(s.URL+verifyURL, nil)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\tlog.Fatalln(\"Failed to verify: \" + s.Name)\n\t}\n\n\ts.Headers = &map[string]string{\n\t\t\"csrf-token\": csrfToken,\n\t\t\"Connection\": \"keep-alive\",\n\t\t\"Content-Type\": \"application/json\",\n\t\t\"Accept\": \"application/x-www-form-urlencoded; charset=utf-8\",\n\t}\n\n\tresp, err = s.Session.Post(s.URL+passwordURL, &grequests.RequestOptions{\n\t\tJSON: map[string]string{\n\t\t\t\"username\": s.Username,\n\t\t\t\"password\": s.Password,\n\t\t},\n\t\t// Cookies: cookies.Cookies,\n\t\tHeaders: *s.Headers,\n\t})\n\tif err != nil {\n\t\tlog.Println(err)\n\t\tlog.Fatalln(\"Failed to login: \" + s.Name)\n\t}\n\n\t// pretty.Println(resp.String())\n\tif !s.IsThirdParty {\n\t\t// log.Println(\"TOTP logic here...\")\n\t\ttotp := gotp.NewDefaultTOTP(s.Seed)\n\t\t// log.Println(totp.Now())\n\t\tresp, err = s.Session.Post(s.URL+challengeURL, &grequests.RequestOptions{\n\t\t\tJSON: map[string]string{\n\t\t\t\t\"username\": s.Username,\n\t\t\t\t\"password\": s.Password,\n\t\t\t\t\"challenge\": totp.Now(),\n\t\t\t},\n\t\t\t// Cookies: cookies.Cookies,\n\t\t\tHeaders: *s.Headers,\n\t\t})\n\t\tif err != nil {\n\t\t\tlog.Println(err)\n\t\t\tlog.Fatalln(\"Failed to login: \" + s.Name)\n\t\t}\n\t\t// pretty.Println(resp.String())\n\t}\n}",
"func (service BasicAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif !service.Env.True(api.BasicEnabled) {\n\t\tservice.Log.Warn(api.BasicAuthNotImplemented, api.LogFields{})\n\t\tRespondWithStructuredError(w, api.BasicAuthNotImplemented, http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tvar respBody struct {\n\t\tUsername string\n\t\tPassword string\n\t}\n\n\tif err := DecodeJSON(r.Body, &respBody); err != nil {\n\t\tservice.Log.WarnError(api.BasicAuthError, err, api.LogFields{})\n\t\tRespondWithStructuredError(w, api.BasicAuthError, http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\terrors := structuredErrors{}\n\n\tif respBody.Username == \"\" {\n\t\tservice.Log.Warn(api.BasicAuthMissingUsername, api.LogFields{})\n\t\terrors.addError(\"USERNAME_MISSING\", api.BasicAuthMissingUsername)\n\t}\n\n\tif respBody.Password == \"\" {\n\t\tservice.Log.Warn(api.BasicAuthMissingPassword, api.LogFields{})\n\t\terrors.addError(\"PASSWORD_MISSING\", api.BasicAuthMissingPassword)\n\t}\n\n\tif errors.hasErrors() {\n\t\tRespondWithErrors(w, errors, http.StatusBadRequest)\n\t\treturn\n\t}\n\n\taccount := &api.Account{\n\t\tUsername: respBody.Username,\n\t}\n\n\t// Associate with a database context.\n\tif _, err := account.Get(service.Database, 0); err != nil {\n\t\tservice.Log.WarnError(api.AccountUpdateError, err, api.LogFields{\"username\": account.Username})\n\t\tRespondWithStructuredError(w, api.AccountUpdateError, http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\t// Validate the user name and password combination\n\tif err := account.BasicAuthentication(service.Database, respBody.Password); err != nil {\n\t\tservice.Log.WarnError(api.BasicAuthInvalid, err, api.LogFields{\"account\": account.ID})\n\t\tRespondWithStructuredError(w, api.BasicAuthInvalid, http.StatusUnauthorized)\n\t\treturn\n\t}\n\n\tsessionKey, authErr := service.Session.UserDidAuthenticate(account.ID, simplestore.NullString())\n\tif authErr != nil {\n\t\tservice.Log.WarnError(\"bad session get\", authErr, api.LogFields{\"account\": account.ID})\n\t\tRespondWithStructuredError(w, \"bad session get\", http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tservice.Cookie.AddSessionKeyToResponse(w, sessionKey)\n\n\t// If we need to flush the storage first then do so now.\n\tif service.Env.True(api.FlushStorage) {\n\t\tservice.Log.Info(api.PurgeAccountData, api.LogFields{\"account\": account.ID})\n\t\tdelErr := service.Store.DeleteApplication(account.ID)\n\t\tif delErr != nil {\n\t\t\tservice.Log.Warn(\"Unable to purge the application data on login\", api.LogFields{\"account\": account.ID})\n\t\t}\n\t}\n\n\tservice.Log.Info(api.BasicAuthValid, api.LogFields{\"account\": account.ID})\n}",
"func (h *unauthorizedHandler) ServeHTTP(w stdhttp.ResponseWriter, r *stdhttp.Request) {\n\tw.WriteHeader(stdhttp.StatusUnauthorized)\n}",
"func (s *Provider) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tserviceProvider := s.serviceProvider\n\tif r.URL.Path == serviceProvider.MetadataURL.Path {\n\t\tbuf, _ := xml.MarshalIndent(serviceProvider.Metadata(), \"\", \" \")\n\t\tw.Header().Set(\"Content-Type\", \"application/samlmetadata+xml\")\n\t\tw.Write(buf)\n\t\treturn\n\t}\n\n\tif r.URL.Path == serviceProvider.AcsURL.Path {\n\t\tr.ParseForm()\n\t\tassertion, err := serviceProvider.ParseResponse(r, s.getPossibleRequestIDs(r))\n\t\tif err != nil {\n\t\t\tif parseErr, ok := err.(*saml.InvalidResponseError); ok {\n\t\t\t\tlog.Debugf(\"RESPONSE: ===\\n%s\\n===\\nNOW: %s\\nERROR: %s\",\n\t\t\t\t\tparseErr.Response, parseErr.Now, parseErr.PrivateErr)\n\t\t\t}\n\t\t\tredirectURL := r.URL.Host + \"/login?errorCode=403\"\n\t\t\thttp.Redirect(w, r, redirectURL, http.StatusFound)\n\t\t\treturn\n\t\t}\n\t\ts.HandleSamlAssertion(w, r, assertion)\n\t\treturn\n\t}\n\n\thttp.NotFoundHandler().ServeHTTP(w, r)\n}",
"func (h *Helper) Authenticate(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {\n\th.authenticateWithErrHandler(w, r, next, HandleHttpError)\n}",
"func (c *CORS) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tw.Header().Set(\"Access-Control-Allow-Origin\", \"*\")\n\tw.Header().Set(\"Access-Control-Allow-Methods\", \"GET, PUT, POST, PATCH, DELETE\")\n\tw.Header().Set(\"Access-Control-Allow-Headers\", \"Content-Type, Authorization\")\n\tw.Header().Set(\"Access-Control-Expose-Headers\", \"Authorization\")\n\tw.Header().Set(\"Access-Control-Max-Age\", \"600\")\n\n\tif r.Method == \"OPTIONS\" {\n\t\tw.WriteHeader(http.StatusOK)\n\t\treturn\n\t}\n\n\t// Used to check if a sign in is being attempted, and logging the attempt in a table\n\t// Could be done with less code in a different function (such as SessionsHandler)\n\t// But it would cause tests to fail.\n\tif r.Method == \"POST\" && r.URL.Path == \"/v1/sessions\" {\n\t\tif r.Header.Get(\"Content-Type\") != \"application/json\" {\n\t\t\thttp.Error(w, \"Body must be in json\", http.StatusUnsupportedMediaType)\n\t\t\treturn\n\t\t}\n\t\tcred := &users.Credentials{}\n\t\tjsonResponseBody, _ := ioutil.ReadAll(r.Body)\n\t\tr.Body = ioutil.NopCloser(bytes.NewReader([]byte(jsonResponseBody)))\n\t\terr := json.Unmarshal(jsonResponseBody, cred)\n\t\tif err != nil {\n\t\t\thttp.Error(w, \"Unable to unpack json into credentials\", http.StatusBadRequest)\n\t\t\treturn\n\t\t}\n\t\tdsn := os.Getenv(\"DSN\")\n\t\tdb, err := sql.Open(\"mysql\", dsn)\n\t\tif err != nil {\n\t\t\thttp.Error(w, \"Unable to open database\", http.StatusInternalServerError)\n\t\t}\n\t\tdefer db.Close()\n\t\trow, err := db.Query(\"SELECT id FROM user WHERE email=?\", cred.Email)\n\t\tif err == nil && row.Next() {\n\t\t\t// For updating the user stats table\n\t\t\tid := -1\n\t\t\terr = row.Scan(&id)\n\t\t\tif err == nil {\n\t\t\t\tinsert := \"INSERT INTO user_stats (id, date_time, client_ip) VALUES (?, ?, ?)\"\n\t\t\t\tip := r.Header.Get(\"X-Forwarded-For\")\n\t\t\t\tif len(ip) == 0 {\n\t\t\t\t\tip = r.RemoteAddr\n\t\t\t\t}\n\t\t\t\tt := time.Now()\n\t\t\t\tt.Format(time.RFC3339)\n\t\t\t\t_, err = db.Exec(insert, id, t, ip)\n\t\t\t}\n\t\t}\n\t}\n\n\tc.Handler.ServeHTTP(w, r)\n}",
"func (a *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif r.TLS == nil {\n\t\ttrace.WriteError(w, trace.AccessDenied(\"missing authentication\"))\n\t\treturn\n\t}\n\tuser, err := a.GetUser(*r.TLS)\n\tif err != nil {\n\t\ttrace.WriteError(w, err)\n\t\treturn\n\t}\n\n\tremoteAddr := r.RemoteAddr\n\t// If the request is coming from a trusted proxy and the proxy is sending a\n\t// TeleportImpersonateHeader, we will impersonate the user in the header\n\t// instead of the user in the TLS certificate.\n\t// This is used by the proxy to impersonate the end user when making requests\n\t// without re-signing the client certificate.\n\timpersonateUser := r.Header.Get(TeleportImpersonateUserHeader)\n\tif impersonateUser != \"\" {\n\t\tif !isProxyRole(user) {\n\t\t\ttrace.WriteError(w, trace.AccessDenied(\"Credentials forwarding is only permitted for Proxy\"))\n\t\t\treturn\n\t\t}\n\t\t// If the service is not configured to allow credentials forwarding, reject the request.\n\t\tif !a.EnableCredentialsForwarding {\n\t\t\ttrace.WriteError(w, trace.AccessDenied(\"Credentials forwarding is not permitted by this service\"))\n\t\t\treturn\n\t\t}\n\n\t\tif user, err = a.extractIdentityFromImpersonationHeader(impersonateUser); err != nil {\n\t\t\ttrace.WriteError(w, err)\n\t\t\treturn\n\t\t}\n\t\tremoteAddr = r.Header.Get(TeleportImpersonateIPHeader)\n\t}\n\n\t// If the request is coming from a trusted proxy, we already know the user\n\t// and we will impersonate him. At this point, we need to remove the\n\t// TeleportImpersonateHeader from the request, otherwise the proxy will\n\t// attempt sending the request to upstream servers with the impersonation\n\t// header from a fake user.\n\tr.Header.Del(TeleportImpersonateUserHeader)\n\tr.Header.Del(TeleportImpersonateIPHeader)\n\n\t// determine authenticated user based on the request parameters\n\tctx := r.Context()\n\tctx = authz.ContextWithUserCertificate(ctx, certFromConnState(r.TLS))\n\tclientSrcAddr, err := utils.ParseAddr(remoteAddr)\n\tif err == nil {\n\t\tctx = authz.ContextWithClientAddr(ctx, clientSrcAddr)\n\t}\n\tctx = authz.ContextWithUser(ctx, user)\n\ta.Handler.ServeHTTP(w, r.WithContext(ctx))\n}",
"func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\trawSr := r.FormValue(\"signed_request\")\n\tif rawSr != \"\" {\n\t\tsr, err := fbsr.Unmarshal([]byte(rawSr), h.Secret, h.MaxAge)\n\t\tif err == nil && sr.AppData != \"\" {\n\t\t\tu, err := Decode(sr.AppData)\n\t\t\tif err == nil {\n\t\t\t\tr.URL.Path = u.Path\n\t\t\t\tr.URL.RawQuery = u.RawQuery\n\t\t\t\tr.Method = \"GET\"\n\t\t\t}\n\t\t}\n\t}\n\th.Handler.ServeHTTP(w, r)\n}",
"func (t *templateHandler) ServeHTTP (w http.ResponseWriter, r *http.Request) {\n\tt.once.Do(func() {\n\t\t// template/t.filename\n\t\t// template/chat.html\n\t\tt.templ = template.Must(template.ParseFiles(filepath.Join(\"templates\", t.filename)))\n\t})\n\tdata := map[string]interface{}{\n\t\t\"Host\": r.Host,\n\t}\n\tif authCookie, err := r.Cookie(\"auth\"); err == nil {\n\t\tdata[\"UserData\"] = objx.MustFromBase64(authCookie.Value)\n\t}\n\tt.templ.Execute(w, data)\n\t// w?\n\t// r *http.Request mengandung data port\n\t//t.templ.Execute(w, r)\n}",
"func (h *asserterHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\n\tif r.Method == http.MethodGet {\n\t\ttoken := r.Header.Get(\"x-token\")\n\t\tsubj := &AssertResponse{}\n\n\t\tif len(token) == 0 {\n\t\t\tsubj.ErrMessage = \"token is empty\"\n\t\t\tsendResp(w, http.StatusBadRequest, subj)\n\t\t\treturn\n\t\t} else if token == \"test-token\" {\n\t\t\tsubj.ErrCode = http.StatusBadRequest\n\t\t\tsubj.ErrMessage = \"invalid token\"\n\n\t\t\tsendResp(w, http.StatusBadRequest, subj)\n\t\t} else {\n\t\t\tsubj.ErrCode = 0\n\t\t\tsubj.ErrMessage = \"\"\n\t\t\tsubj.Principals = []*adsapi.Principal{\n\t\t\t\t{\n\t\t\t\t\tType: adsapi.PRINCIPAL_TYPE_USER,\n\t\t\t\t\tName: \"testUser\",\n\t\t\t\t},\n\t\t\t}\n\n\t\t\tsendResp(w, http.StatusOK, subj)\n\t\t}\n\t}\n\n}",
"func ServeAuthCheck(ctx *fasthttp.RequestCtx) {\n\tif !security.IsAuthorized(ctx) {\n\t\treturn\n\t}\n\tresponse.SendNothing(ctx)\n}",
"func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {\n\tuserID := r.Header.Get(\"Mattermost-User-Id\")\n\n\tif userID != \"\" {\n\t\tuser, err := p.API.GetUser(userID)\n\t\tif err != nil {\n\t\t\tmlog.Error(\"Error in authenticated user lookup\", mlog.Err(err))\n\t\t\thttp.Error(w, \"Unauthorized\", http.StatusUnauthorized)\n\t\t\treturn\n\t\t}\n\t\tif user.IsSystemAdmin() {\n\t\t\tr.Header.Set(\"Authorization\", fmt.Sprintf(\"bearer %s\", p.config.AdminToken))\n\t\t}\n\t}\n\tmlog.Info(fmt.Sprintf(\"Got HTTP request: %s: %s Headers: %+v\", r.Method, r.URL, r.Header))\n\n\t// TODO: Less naive URL filter\n\tif strings.HasSuffix(r.URL.String(), \"/_events\") {\n\t\tp.wsProxy(w, r)\n\t} else {\n\t\tp.httpProxy(w, r)\n\t}\n}",
"func (admin *Admin) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tvar relativePath = strings.TrimPrefix(req.URL.Path, admin.router.Prefix)\n\tvar context = admin.NewContext(w, req)\n\n\t// Parse Request Form\n\tcontext.Request.ParseMultipartForm(2 * 1024 * 1024)\n\n\t// Set Request Method\n\tif method := context.Request.Form.Get(\"_method\"); method != \"\" {\n\t\tcontext.Request.Method = strings.ToUpper(method)\n\t}\n\n\tif regexp.MustCompile(\"^/assets/.*$\").MatchString(relativePath) && strings.ToUpper(context.Request.Method) == \"GET\" {\n\t\t(&controller{Admin: admin}).Asset(context)\n\t\treturn\n\t}\n\n\tdefer func() func() {\n\t\tbegin := time.Now()\n\t\treturn func() {\n\t\t\tlog.Printf(\"Finish [%s] %s Took %.2fms\\n\", req.Method, req.RequestURI, time.Now().Sub(begin).Seconds()*1000)\n\t\t}\n\t}()()\n\n\t// Set Current User\n\tvar currentUser qor.CurrentUser\n\tif admin.auth != nil {\n\t\tif currentUser = admin.auth.GetCurrentUser(context); currentUser == nil {\n\t\t\thttp.Redirect(w, req, admin.auth.LoginURL(context), http.StatusSeeOther)\n\t\t\treturn\n\t\t}\n\t\tcontext.CurrentUser = currentUser\n\t\tcontext.SetDB(context.GetDB().Set(\"qor:current_user\", context.CurrentUser))\n\t}\n\tcontext.Roles = roles.MatchedRoles(req, currentUser)\n\n\t// Call first middleware\n\tfor _, middleware := range admin.router.middlewares {\n\t\tmiddleware.Handler(context, middleware)\n\t\tbreak\n\t}\n}",
"func (a *Auth) Authenticate(handler http.Handler) http.Handler {\n\tif handler == nil {\n\t\tpanic(\"auth: nil handler\")\n\t}\n\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tif a.cfg.Disable {\n\t\t\thandler.ServeHTTP(w, r)\n\t\t\treturn\n\t\t}\n\n\t\ttoken, err := a.getCookie(r)\n\t\tif token == nil && err == nil {\n\t\t\t// Cookie is missing, invalid. Fetch new token from OAuth2 provider.\n\t\t\t// Redirect user to the OAuth2 consent page to ask for permission for the scopes specified\n\t\t\t// above.\n\t\t\t// Set the scope to the current request URL, it will be used by the redirect handler to\n\t\t\t// redirect back to the url that requested the authentication.\n\t\t\turl := a.cfg.AuthCodeURL(r.RequestURI)\n\t\t\thttp.Redirect(w, r, url, http.StatusTemporaryRedirect)\n\t\t\treturn\n\t\t}\n\t\tif err != nil {\n\t\t\ta.clearCookie(w)\n\t\t\thttp.Error(w, \"Unauthorized\", http.StatusUnauthorized)\n\t\t\ta.logf(\"Get cookie error: %v\", err)\n\t\t\treturn\n\t\t}\n\n\t\t// Source token, in case the token needs a renewal.\n\t\tnewOauth2Token, err := a.cfg.TokenSource(r.Context(), token.toOauth2()).Token()\n\t\tif err != nil {\n\t\t\ta.clearCookie(w)\n\t\t\thttp.Error(w, \"Internal error\", http.StatusInternalServerError)\n\t\t\ta.logf(\"Failed token source: %s\", err)\n\t\t\treturn\n\t\t}\n\t\tnewToken := fromOauth2(newOauth2Token)\n\n\t\tif newToken.IDToken != token.IDToken {\n\t\t\ta.logf(\"Refreshed token\")\n\t\t\ttoken = newToken\n\t\t\ta.setCookie(w, token)\n\t\t}\n\n\t\t// Validate the id_token.\n\t\tpayload, err := a.validator.Validate(r.Context(), token.IDToken, a.cfg.ClientID)\n\t\tif err != nil {\n\t\t\ta.clearCookie(w)\n\t\t\thttp.Error(w, \"Invalid auth.\", http.StatusUnauthorized)\n\t\t\ta.logf(\"Invalid token, reset cookie: %s\", err)\n\t\t\treturn\n\t\t}\n\t\t// User is authenticated.\n\t\t// Store email and name in context, and call the inner handler.\n\t\tcreds := &Creds{\n\t\t\tEmail: payload.Claims[\"email\"].(string),\n\t\t\tName: payload.Claims[\"name\"].(string),\n\t\t}\n\t\tr = r.WithContext(context.WithValue(r.Context(), credsKey, creds))\n\t\thandler.ServeHTTP(w, r)\n\t})\n}",
"func (h *MultiSNHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\thandler, ok := h.Handlers[req.TLS.ServerName]\n\tif !ok {\n\t\thandler, ok = h.Handlers[h.ServerNames[0]]\n\t\tif !ok {\n\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t\treturn\n\t\t}\n\t}\n\thandler.ServeHTTP(rw, req)\n}",
"func (p DirectHandler) AuthHandler(http.ResponseWriter, *http.Request) {}",
"func handleAuth(h http.Handler) http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\t_, pass, ok := r.BasicAuth()\n\t\tif !ok || pass != RequiredPassword {\n\t\t\thandlers.Error(w, http.StatusInternalServerError, ErrUnauthorized.Error())\n\t\t\treturn\n\t\t}\n\n\t\th.ServeHTTP(w, r)\n\t}\n}",
"func (u *UserInfo) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\n\tauthorization := \"no\"\n\n\tfor header, value := range req.Header {\n\t\tif header == \"Authorization\" {\n\t\t\tauthorization = value[0]\n\t\t}\n\t}\n\n\tif authorization == \"no\" {\n\t\tfmt.Fprintln(rw, \"error_description:The request could not be authorized\")\n\t\treturn\n\t}\n\tkv := strings.Split(authorization, \" \")\n\tif len(kv) != 2 || kv[0] != \"Bearer\" {\n\t\tfmt.Fprintln(rw, \"error_description:The request could not be authorized\")\n\t\treturn\n\t}\n\n\tclaims := get(u.userinfoURL, authorization)\n\tif claims == \"error\" {\n\t\treturn\n\t}\n\n\tm := make(map[string]string)\n\terr := json.Unmarshal([]byte(claims), &m)\n\tif err != nil {\n\t\tfmt.Fprintln(rw, \"eeeerror_description:The request could not be authorized\")\n\t\treturn\n\n\t}\n\n\tfor k, v := range m {\n\t\tif k == \"sub\" {\n\t\t\treq.Header.Set(\"gridname\", v)\n\t\t}\n\n\t}\n\tu.next.ServeHTTP(rw, req)\n\n}",
"func (c Control) ServeLogin(w http.ResponseWriter, r *http.Request) {\n\ttemplate := map[string]interface{}{\"error\": false}\n\tif r.Method == http.MethodPost {\n\t\t// Get their submitted hash and the real hash.\n\t\tpassword := r.PostFormValue(\"password\")\n\t\thash := HashPassword(password)\n\t\tc.Config.RLock()\n\t\trealHash := c.Config.AdminHash\n\t\tc.Config.RUnlock()\n\t\t// Check if they got the password correct.\n\t\tif hash == realHash {\n\t\t\ts, _ := Store.Get(r, \"sessid\")\n\t\t\ts.Values[\"authenticated\"] = true\n\t\t\ts.Save(r, w)\n\t\t\thttp.Redirect(w, r, \"/\", http.StatusTemporaryRedirect)\n\t\t\treturn\n\t\t}\n\t\ttemplate[\"error\"] = true\n\t}\n\n\t// Serve login page with no template.\n\tdata, err := Asset(\"templates/login.mustache\")\n\tif err != nil {\n\t\thttp.Error(w, err.Error(), http.StatusInternalServerError)\n\t}\n\tcontent := mustache.Render(string(data), template)\n\tw.Header().Set(\"Content-Type\", \"text/html\")\n\tw.Write([]byte(content))\n}",
"func Auth(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlog.Infof(\"Authenticating request: \")\n\t\tif r.Header.Get(\"user\") != \"foo\" {\n\t\t\tw.WriteHeader(http.StatusUnauthorized)\n\t\t\treturn\n\t\t}\n\t\tlog.Infof(\"Auth: Pass\")\n\t\tnext.ServeHTTP(w, r)\n\n\t})\n}",
"func (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request)",
"func (WechatWorkProvider) ServeHTTP(*auth.Context) {\n}",
"func (e VerifyHandler) AuthHandler(http.ResponseWriter, *http.Request) {}",
"func (ea *EnsureSession) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tif !IsSession(r) {\n\t\tretErr := &Error{\n\t\t\tClientError: true,\n\t\t\tServerError: false,\n\t\t\tMessage: errUserNotInSession.Error(),\n\t\t\tContext: fmt.Sprintf(\"%s path:%s\", r.Method, r.URL.Path),\n\t\t\tCode: 0,\n\t\t}\n\t\tea.cx.handleErrorJson(w, r, nil, \"request to access resource that requires an active session\",\n\t\t\tretErr, http.StatusForbidden)\n\t\treturn\n\t}\n\tea.handler.ServeHTTP(w, r)\n}",
"func Authenticate(next http.HandlerFunc) http.HandlerFunc {\n\treturn func(responseWriter http.ResponseWriter, request *http.Request) {\n\t\ttoken := strings.TrimPrefix(request.Header.Get(\"Authorization\"), \"Bearer \")\n\t\terr := crypto.ValidateToken([]byte(token))\n\n\t\tif err == nil {\n\t\t\tnext(responseWriter, request)\n\t\t} else {\n\t\t\thelpers.Response(responseWriter, http.StatusUnauthorized, constants.ERR_INVALID_TOKEN, err, nil)\n\t\t}\n\t}\n}",
"func MiddlewareHandle(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tlogger.WriteLog(\"Call On URI:\", r.Host, r.URL, \" from the following IP address:\", utils.GetIpAddr(r))\n\t\tif IsAuthenticated(r) {\n\t\t\tnext.ServeHTTP(w, r)\n\t\t} else {\n\t\t\tlogger.WriteLog(\"Call On \", r.Host, r.URL, \" from the following IP address:\", utils.GetIpAddr(r), \" is not authenticated\")\n\t\t\tUnauthenticated().ServeHTTP(w, r)\n\t\t}\n\t})\n}",
"func (rd Redirect) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {\n\terr := r.ParseForm()\n\tif err != nil {\n\t\treturn http.StatusInternalServerError, err\n\t}\n\tfound, err := rd.hasSuffix(r.Host)\n\tif err != nil {\n\t\treturn http.StatusInternalServerError, err\n\t}\n\tif found {\n\t\tif !rd.hasAuth(r) {\n\t\t\treturn rd.authPage(w, r)\n\t\t}\n\t\treturn rd.Next.ServeHTTP(w, r)\n\t}\n\n\ttarget := fmt.Sprintf(\"http://%s%s\", r.Host, r.RequestURI)\n\treturn rd.redirectToSuffixedURL(w, r, target)\n}",
"func (o *oidcServer) Authenticate(w http.ResponseWriter, r *http.Request) {\n\n\to.Lock()\n\tdefer o.Unlock()\n\n\tzap.L().Debug(\"Authenticating\")\n\n\tif o.serverFlow == ServerFlowTypeAuthFailure {\n\t\thttp.Error(w, \"Authentication failure\", http.StatusUnauthorized)\n\t\tzap.L().Warn(\"Authentication failure\", zap.Reflect(\"type\", o.serverFlow))\n\t\treturn\n\t}\n\n\tstate := r.URL.Query().Get(\"state\")\n\tredURI := r.URL.Query().Get(\"redirect_uri\")\n\n\treqURI, err := url.ParseRequestURI(redURI)\n\tif err != nil {\n\t\tzap.L().Error(\"Unable to parse redirect uri\", zap.Error(err))\n\t\treturn\n\t}\n\n\tq := reqURI.Query()\n\tq.Add(\"state\", state)\n\tq.Add(\"redirect_uri\", redURI)\n\treqURI.RawQuery = q.Encode()\n\n\thttp.Redirect(w, r, reqURI.String(), http.StatusTemporaryRedirect)\n}",
"func (h *HashHandler) ServeHTTP(res http.ResponseWriter, req *http.Request) {\n\tif req.URL.Path == \"/\" {\n\t\tswitch req.Method {\n\t\tcase \"GET\":\n\t\t\thttp.ServeFile(res, req, \"hash.html\")\n\t\tcase \"POST\":\n\t\t\tif err := req.ParseForm(); err != nil {\n\t\t\t\tfmt.Fprintf(res, \"ParseForm() err: %v\", err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tpassword := req.FormValue(\"password\")\n\t\t\tcurrentCount := postCount.Increment()\n\t\t\tfmt.Fprintf(res, strconv.Itoa(currentCount))\n\t\t\tgo hashAndInsert(password, currentCount, 5)\n\t\tdefault:\n\t\t\thttp.Error(res, \"405 method not allowed.\", http.StatusMethodNotAllowed)\n\t\t}\n\t} else {\n\t\tvar head string\n\t\thead, req.URL.Path = ShiftPath(req.URL.Path)\n\t\thashID, err := strconv.Atoi(head)\n\t\tif err != nil {\n\t\t\thttp.Error(res, fmt.Sprintf(\"Invalid hash id %s\", head), http.StatusBadRequest)\n\t\t\treturn\n\t\t}\n\t\tswitch req.Method {\n\t\tcase \"GET\":\n\t\t\thash := passwordMap[hashID]\n\t\t\tif \"\" != hash {\n\t\t\t\tfmt.Fprintf(res, hash)\n\t\t\t} else {\n\t\t\t\thttp.Error(res, \"404 resource not found\", http.StatusNotFound)\n\t\t\t}\n\n\t\tdefault:\n\t\t\thttp.Error(res, \"405 method not allowed\", http.StatusMethodNotAllowed)\n\t\t}\n\t}\n\n}",
"func (md *CustomScriptsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {\n\tpartnerID := mux.Vars(r)[\"partnerID\"]\n\tif entitlementService.IsPartnerAuthorized(partnerID, CustomTasksFeature) {\n\t\tctx := r.Context()\n\t\tctx = context.WithValue(ctx, CustomTasksFeature, true)\n\t\tr = r.WithContext(ctx)\n\t}\n\tlogger.Log.DebugfCtx(r.Context(), \"Access Control CustomScriptsMiddleware: partnerID [ID=%s] is in ACL. Access allowed\", partnerID)\n\tnext(w, r)\n}",
"func Authenticate(nextFunc http.HandlerFunc) http.HandlerFunc {\n\treturn func(w http.ResponseWriter, r *http.Request) {\n\t\tif err := auth.ValidarToken(r); err != nil {\n\t\t\tresponse.Error(w, http.StatusUnauthorized, err)\n\t\t\treturn\n\t\t}\n\n\t\tnextFunc(w, r)\n\t}\n}",
"func (h *HTTP2Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\tvar err error\n\n\treqHostname := req.Host\n\tif host, _, err := net.SplitHostPort(req.Host); err == nil {\n\t\treqHostname = host\n\t}\n\n\tvar h2 bool = req.ProtoMajor == 2 && req.ProtoMinor == 0\n\tvar isProxyRequest bool = !yaputil.ContainsString(h.ServerNames, reqHostname)\n\n\tvar paramsPrefix string = http.CanonicalHeaderKey(\"X-UrlFetch-\")\n\tparams := http.Header{}\n\tfor key, values := range req.Header {\n\t\tif strings.HasPrefix(key, paramsPrefix) {\n\t\t\tparams[key] = values\n\t\t}\n\t}\n\n\tfor key := range params {\n\t\treq.Header.Del(key)\n\t}\n\n\tif isProxyRequest && h.DisableProxy {\n\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\treturn\n\t}\n\n\tvar username, password string\n\tif isProxyRequest && h.Authenticator != nil {\n\t\tauth := req.Header.Get(\"Proxy-Authorization\")\n\t\tif auth == \"\" {\n\t\t\th.ProxyAuthorizationRequired(rw, req)\n\t\t\treturn\n\t\t}\n\n\t\tparts := strings.SplitN(auth, \" \", 2)\n\t\tif len(parts) == 2 {\n\t\t\tswitch parts[0] {\n\t\t\tcase \"Basic\":\n\t\t\t\tif auth, err := base64.StdEncoding.DecodeString(parts[1]); err == nil {\n\t\t\t\t\tparts := strings.Split(string(auth), \":\")\n\t\t\t\t\tusername = parts[0]\n\t\t\t\t\tpassword = parts[1]\n\n\t\t\t\t\tif err := h.Authenticator.Authenticate(username, password); err != nil {\n\t\t\t\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\tglog.Errorf(\"Unrecognized auth type: %#v\", parts[0])\n\t\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\treq.Header.Del(\"Proxy-Authorization\")\n\t}\n\n\tif req.Method == http.MethodConnect {\n\t\thost, port, err := net.SplitHostPort(req.Host)\n\t\tif err != nil {\n\t\t\thost = req.Host\n\t\t\tport = \"443\"\n\t\t}\n\n\t\tglog.Infof(\"[%v 0x%04x %s] %s \\\"%s %s %s\\\" - -\",\n\t\t\treq.TLS.ServerName, req.TLS.Version, username, req.RemoteAddr, req.Method, req.Host, req.Proto)\n\n\t\tdial := h.Dial\n\t\tif dial == nil {\n\t\t\tdial = h.Transport.Dial\n\t\t}\n\n\t\tconn, err := dial(\"tcp\", net.JoinHostPort(host, port))\n\t\tif err != nil {\n\t\t\thttp.Error(rw, err.Error(), http.StatusBadGateway)\n\t\t\treturn\n\t\t}\n\n\t\tvar w io.Writer\n\t\tvar r io.Reader\n\n\t\t// http2 only support Flusher, http1/1.1 support Hijacker\n\t\tif h2 {\n\t\t\tflusher, ok := rw.(http.Flusher)\n\t\t\tif !ok {\n\t\t\t\thttp.Error(rw, fmt.Sprintf(\"%#v is not http.Flusher\", rw), http.StatusBadGateway)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\trw.WriteHeader(http.StatusOK)\n\t\t\tflusher.Flush()\n\n\t\t\tw = FlushWriter{rw}\n\t\t\tr = req.Body\n\t\t} else {\n\t\t\thijacker, ok := rw.(http.Hijacker)\n\t\t\tif !ok {\n\t\t\t\thttp.Error(rw, fmt.Sprintf(\"%#v is not http.Hijacker\", rw), http.StatusBadGateway)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tlconn, _, err := hijacker.Hijack()\n\t\t\tif err != nil {\n\t\t\t\thttp.Error(rw, err.Error(), http.StatusBadGateway)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tdefer lconn.Close()\n\n\t\t\tw = lconn\n\t\t\tr = lconn\n\n\t\t\tio.WriteString(lconn, \"HTTP/1.1 200 OK\\r\\n\\r\\n\")\n\t\t}\n\n\t\tdefer conn.Close()\n\n\t\tgo yaputil.IOCopy(conn, r)\n\t\tyaputil.IOCopy(w, conn)\n\n\t\treturn\n\t}\n\n\tif req.Host == \"\" {\n\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\treturn\n\t}\n\n\tif req.URL.Host == \"\" {\n\t\treq.URL.Host = req.Host\n\t}\n\n\tif req.ContentLength == 0 {\n\t\tio.Copy(ioutil.Discard, req.Body)\n\t\treq.Body.Close()\n\t\treq.Body = nil\n\t}\n\n\tglog.Infof(\"[%v 0x%04x %s] %s \\\"%s %s %s\\\" - -\",\n\t\treq.TLS.ServerName, req.TLS.Version, username, req.RemoteAddr, req.Method, req.URL.String(), req.Proto)\n\n\tif req.URL.Scheme == \"\" {\n\t\treq.URL.Scheme = \"http\"\n\t}\n\n\tif h2 {\n\t\treq.ProtoMajor = 1\n\t\treq.ProtoMinor = 1\n\t\treq.Proto = \"HTTP/1.1\"\n\t}\n\n\tif !isProxyRequest && h.Fallback != nil {\n\t\tif h.Fallback.Scheme == \"file\" {\n\t\t\thttp.FileServer(http.Dir(h.Fallback.Path)).ServeHTTP(rw, req)\n\t\t\treturn\n\t\t}\n\t\treq.URL.Scheme = h.Fallback.Scheme\n\t\treq.URL.Host = h.Fallback.Host\n\t\tif ip, _, err := net.SplitHostPort(req.RemoteAddr); err == nil {\n\t\t\txff := req.Header.Get(\"X-Forwarded-For\")\n\t\t\tif xff == \"\" {\n\t\t\t\treq.Header.Set(\"X-Forwarded-For\", ip)\n\t\t\t} else {\n\t\t\t\treq.Header.Set(\"X-Forwarded-For\", xff+\", \"+ip)\n\t\t\t}\n\t\t\treq.Header.Set(\"X-Forwarded-Proto\", \"https\")\n\t\t\treq.Header.Set(\"X-Real-IP\", ip)\n\t\t}\n\t}\n\n\tresp, err := h.Transport.RoundTrip(req)\n\tglog.Infof(\"%+v\", req)\n\tif err != nil {\n\t\tmsg := err.Error()\n\t\tif strings.HasPrefix(msg, \"Invaid DNS Record: \") {\n\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t} else {\n\t\t\thttp.Error(rw, err.Error(), http.StatusBadGateway)\n\t\t}\n\t\treturn\n\t}\n\n\tif h2 {\n\t\tresp.Header.Del(\"Connection\")\n\t\tresp.Header.Del(\"Keep-Alive\")\n\t}\n\n\tfor key, values := range resp.Header {\n\t\tfor _, value := range values {\n\t\t\trw.Header().Add(key, value)\n\t\t}\n\t}\n\trw.WriteHeader(resp.StatusCode)\n\n\tdefer resp.Body.Close()\n\n\tvar r io.Reader = resp.Body\n\tyaputil.IOCopy(rw, r)\n}",
"func (mw *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {\n\n\turl := r.URL.RequestURI()\n\tinGame := strings.HasPrefix(url, mw.Prefix)\n\n\tif inGame {\n\t\tmw.Log.Printf(\"debug: Check roles: %s\", mw.Roles)\n\t\tctx := r.Context()\n\t\td := ctx.Value(mw.Field)\n\t\tif d == nil || d.(*token.Record) == nil || !slicesHasCommon(d.(*token.Record).Roles, mw.Roles) {\n\t\t\t// 403\n\t\t\tmw.Log.Printf(\"warn: Check roles %s for %s failed\", mw.Roles, url)\n\t\t\tflow.Prohibit(r)\n\t\t}\n\t}\n\tnext(w, r)\n}",
"func Authenticate(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tctx := r.Context()\n\n\t\t// Expecting: bearer <token>\n\t\tbearer := r.Header.Get(\"Authorization\")\n\t\tif len(bearer) == 0 {\n\t\t\thttp.Error(w, errAuthHeaderMissing.Error(), http.StatusBadRequest)\n\t\t\treturn\n\t\t}\n\t\tif len(bearer) < 6 || strings.ToLower(bearer[0:6]) != \"bearer\" {\n\t\t\thttp.Error(w, errAuthWrongHeaderFormat.Error(), http.StatusBadRequest)\n\t\t\treturn\n\t\t}\n\n\t\taccessToken := bearer[7:]\n\t\taccessTokenClaims, err := entity.ParseAccessTokenClaims(accessToken)\n\t\tif err != nil {\n\t\t\thttp.Error(w, err.Error(), http.StatusUnauthorized)\n\t\t\treturn\n\t\t}\n\n\t\t// Add claims to the context so we can retrieve them later\n\t\tctx = context.WithValue(ctx, ClaimsKey, accessTokenClaims)\n\n\t\tnext.ServeHTTP(w, r.WithContext(ctx))\n\t})\n}",
"func (h *HTTPHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\tvar err error\n\n\tvar paramsPrefix string = http.CanonicalHeaderKey(\"X-UrlFetch-\")\n\tparams := http.Header{}\n\tfor key, values := range req.Header {\n\t\tif strings.HasPrefix(key, paramsPrefix) {\n\t\t\tparams[key] = values\n\t\t}\n\t}\n\n\tfor key := range params {\n\t\treq.Header.Del(key)\n\t}\n\n\tif h.Authenticator != nil {\n\t\tauth := req.Header.Get(\"Proxy-Authorization\")\n\t\tif auth == \"\" {\n\t\t\th.ProxyAuthorizationRequired(rw, req)\n\t\t\treturn\n\t\t}\n\n\t\tparts := strings.SplitN(auth, \" \", 2)\n\t\tif len(parts) == 2 {\n\t\t\tswitch parts[0] {\n\t\t\tcase \"Basic\":\n\t\t\t\tif auth, err := base64.StdEncoding.DecodeString(parts[1]); err == nil {\n\t\t\t\t\tparts := strings.Split(string(auth), \":\")\n\t\t\t\t\tusername := parts[0]\n\t\t\t\t\tpassword := parts[1]\n\n\t\t\t\t\tif err := h.Authenticator.Authenticate(username, password); err != nil {\n\t\t\t\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\tglog.Errorf(\"Unrecognized auth type: %#v\", parts[0])\n\t\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\n\t\treq.Header.Del(\"Proxy-Authorization\")\n\t}\n\n\tif req.Method == http.MethodConnect {\n\t\thost, port, err := net.SplitHostPort(req.Host)\n\t\tif err != nil {\n\t\t\thost = req.Host\n\t\t\tport = \"443\"\n\t\t}\n\n\t\tglog.Infof(\"%s \\\"%s %s:%s %s\\\" - -\", req.RemoteAddr, req.Method, host, port, req.Proto)\n\n\t\tdial := h.Dial\n\t\tif dial == nil {\n\t\t\tdial = h.Transport.Dial\n\t\t}\n\n\t\tconn, err := dial(\"tcp\", net.JoinHostPort(host, port))\n\t\tif err != nil {\n\t\t\thttp.Error(rw, err.Error(), http.StatusBadGateway)\n\t\t\treturn\n\t\t}\n\n\t\thijacker, ok := rw.(http.Hijacker)\n\t\tif !ok {\n\t\t\thttp.Error(rw, fmt.Sprintf(\"%#v is not http.Hijacker\", rw), http.StatusBadGateway)\n\t\t\treturn\n\t\t}\n\t\tlconn, _, err := hijacker.Hijack()\n\t\tif err != nil {\n\t\t\thttp.Error(rw, err.Error(), http.StatusBadGateway)\n\t\t\treturn\n\t\t}\n\n\t\tio.WriteString(lconn, \"HTTP/1.1 200 OK\\r\\n\\r\\n\")\n\n\t\tdefer lconn.Close()\n\t\tdefer conn.Close()\n\n\t\tgo yaputil.IOCopy(conn, lconn)\n\t\tyaputil.IOCopy(lconn, conn)\n\n\t\treturn\n\t}\n\n\tif req.Host == \"\" {\n\t\thttp.Error(rw, \"400 Bad Request\", http.StatusBadRequest)\n\t\treturn\n\t}\n\n\tif req.URL.Host == \"\" {\n\t\treq.URL.Host = req.Host\n\t}\n\n\tif req.ContentLength == 0 {\n\t\tio.Copy(ioutil.Discard, req.Body)\n\t\treq.Body.Close()\n\t\treq.Body = nil\n\t}\n\n\tglog.Infof(\"%s \\\"%s %s %s\\\" - -\", req.RemoteAddr, req.Method, req.URL.String(), req.Proto)\n\n\tif req.URL.Scheme == \"\" {\n\t\treq.URL.Scheme = \"http\"\n\t}\n\n\tresp, err := h.Transport.RoundTrip(req)\n\tif err != nil {\n\t\tmsg := err.Error()\n\t\tif strings.HasPrefix(msg, \"Invaid DNS Record: \") {\n\t\t\thttp.Error(rw, \"403 Forbidden\", http.StatusForbidden)\n\t\t} else {\n\t\t\thttp.Error(rw, err.Error(), http.StatusBadGateway)\n\t\t}\n\t\treturn\n\t}\n\n\tfor key, values := range resp.Header {\n\t\tfor _, value := range values {\n\t\t\trw.Header().Add(key, value)\n\t\t}\n\t}\n\trw.WriteHeader(resp.StatusCode)\n\n\tdefer resp.Body.Close()\n\n\tvar r io.Reader = resp.Body\n\tyaputil.IOCopy(rw, r)\n}",
"func (h AuthRefreshHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\ttoken, ok := getUserToken(r)\n\tif !ok {\n\t\twriteError(w, http.StatusUnauthorized, \"Missing or invalid Authorization header.\")\n\t\treturn\n\t}\n\n\tuser, err := h.UserRepo.FindUser(\"WHERE token = $1\", token)\n\tif err != nil {\n\t\tif err == easyalert.ErrRecordDoesNotExist {\n\t\t\twriteError(w, http.StatusUnauthorized, \"Invalid token.\")\n\t\t\treturn\n\t\t}\n\n\t\twriteError(w, http.StatusInternalServerError, \"an unknown error occured\")\n\t\treturn\n\t}\n\n\tnewToken, err := random.String(easyalert.UserTokenLength)\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not generate token\")\n\t\treturn\n\t}\n\n\tuser.Token = newToken\n\n\tuser, err = h.UserRepo.UpdateUser(user)\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not update token\")\n\t\treturn\n\t}\n\n\tvar responseBody authResponseBody\n\tresponseBody.Token = user.Token\n\n\tresponseBodyBytes, err := json.Marshal(responseBody)\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not marshal response body\")\n\t\treturn\n\t}\n\n\tbody, err := prettifyJSON(string(responseBodyBytes))\n\tif err != nil {\n\t\twriteError(w, http.StatusInternalServerError, \"could not prettify json response\")\n\t\treturn\n\t}\n\n\tw.Header().Set(\"Content-Type\", \"application/json; charset=UTF-8\")\n\tw.WriteHeader(http.StatusOK)\n\tw.Write([]byte(body))\n}",
"func AuthHandler(handler AuthorisedRequestHandler) httprouter.Handle {\n\treturn func(w http.ResponseWriter, r *http.Request, params httprouter.Params) {\n\t\t// Measure time spent executing shit\n\t\tstart := time.Now()\n\n\t\t// Authorize request\n\t\terr := authorize(r)\n\t\tif err != nil {\n\t\t\t// Logs [source IP] [request method] [request URL] [HTTP status] [time spent serving request]\n\t\t\tlog.Printf(\"%v\\t \\\"%v - %v\\\"\\t%v\\t%v\", sourceIP(r), r.Method, r.RequestURI, http.StatusUnauthorized, time.Since(start))\n\t\t\thttp.Error(w, err.Error(), http.StatusUnauthorized)\n\t\t\treturn\n\t\t}\n\n\t\t// Pass to the real handler\n\t\tresponse, statusCode, err := handler(r, params)\n\n\t\t// Logs [source IP] [request method] [request URL] [HTTP status] [time spent serving request]\n\t\tlog.Printf(\"%v\\t \\\"%v - %v\\\"\\t%v\\t%v\", sourceIP(r), r.Method, r.RequestURI, statusCode, time.Since(start))\n\n\t\tif err != nil {\n\t\t\t// If we run into an error, throw it back to the client (as plain text)\n\t\t\thttp.Error(w, err.Error(), statusCode)\n\t\t\treturn\n\t\t}\n\n\t\tw.WriteHeader(statusCode)\n\t\tfmt.Fprintln(w, response)\n\t}\n}",
"func (l Headers) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tw.Header().Set(\"Content-Type\", \"application/json\")\n\tw.Header().Set(\"Access-Control-Allow-Origin\", \"*\")\n\tw.Header().Set(\"Access-Control-Allow-Headers\", \"authorization,content-type,hawkular-tenant\")\n\tw.Header().Set(\"Access-Control-Allow-Methods\", \"GET, POST, DELETE, PUT\")\n\n\tif l.Verbose {\n\t\tlog.Printf(\"set http headers\")\n\t}\n\n\tl.next.ServeHTTP(w, r)\n}",
"func (h handlerType) ServeHTTP(w http.ResponseWriter, r *http.Request) (code int, err error) {\n\trep := httpserver.NewReplacer(r, nil, \"\")\n\tfor _, rule := range h.rules {\n\t\tok, lfStr, rtStr := match(r.URL.Path, rule.matches)\n\t\tif ok {\n\t\t\tok = !excluded(r.URL.Path, rule.exceptions)\n\t\t\tif ok {\n\t\t\t\tvar buf bytes.Buffer\n\t\t\t\t// Retrieve name of remote user that was set by some downstream middleware,\n\t\t\t\t// possibly basicauth.\n\t\t\t\tremoteUser, _ := r.Context().Value(httpserver.RemoteUserCtxKey).(string) // Blank if not set\n\t\t\t\tcgiHnd := setupCall(h, rule, lfStr, rtStr, rep, r.Header, remoteUser)\n\t\t\t\tcgiHnd.Stderr = &buf\n\t\t\t\tif rule.inspect {\n\t\t\t\t\tinspect(cgiHnd, w, r, rep)\n\t\t\t\t} else {\n\t\t\t\t\tcgiHnd.ServeHTTP(w, r)\n\t\t\t\t}\n\t\t\t\tif buf.Len() > 0 {\n\t\t\t\t\terr = errors.New(trim(buf.String()))\n\t\t\t\t}\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}\n\treturn h.next.ServeHTTP(w, r)\n}",
"func (h gcsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tctx := context.Background()\n\tfname := strings.TrimPrefix(r.URL.Path, \"/\")\n\tif len(fname) == 0 {\n\t\tfname = \"index.html\"\n\t}\n\tif config.PasswordProtected() {\n\t\tsessionInfo := h.enforcer.EnforceValidSession(ctx, w, r)\n\t\tif !sessionInfo.Valid {\n\t\t\t// Forward to login page\n\t\t\tfname = \"login_form.html\"\n\t\t}\n\t}\n\tlog.Printf(\"gcsHandler.ServeHTTP, fname = %s\", fname)\n\trc, err := h.client.Bucket(h.bucket).Object(fname).NewReader(ctx)\n\tif err != nil {\n\t\tlog.Printf(\"gcsHandler.ServeHTTP, error reading file %s, %v\", fname, err)\n\t\thttp.Error(w, \"Error processing request\", http.StatusInternalServerError)\n\t\treturn\n\t}\n\tdefer rc.Close()\n\tbody, err := io.ReadAll(rc)\n\tif err != nil {\n\t\tlog.Printf(\"gcsHandler.ServeHTTP, error reading file %s, %v\", fname, err)\n\t\thttp.Error(w, \"Error processing request\", http.StatusInternalServerError)\n\t\treturn\n\t}\n\tif strings.HasSuffix(fname, \".html\") {\n\t\tw.Header().Set(\"Content-Type\", \"text/html; charset=utf-8\")\n\t} else if strings.HasSuffix(fname, \".css\") {\n\t\tw.Header().Set(\"Content-Type\", \"text/css; charset=utf-8\")\n\t} else if strings.HasSuffix(fname, \".js\") {\n\t\tw.Header().Set(\"Content-Type\", \"text/javascript; charset=utf-8\")\n\t} else if strings.HasSuffix(fname, \".json\") {\n\t\tw.Header().Set(\"Content-Type\", \"application/json; charset=utf-8\")\n\t}\n\tfmt.Fprint(w, string(body))\n}",
"func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tt := time.Now().UTC()\n\tn := atomic.AddUint64(&seq, 1)\n\trc := &requestContext{seq: n, locale: h.locales.match(req)}\n\treq = setContext(req, rc)\n\tdefer h.abort(w, req)\n\tr, params, err := h.router.Match(req)\n\tif err != nil {\n\t\tmerr, ok := err.(ErrMethodNotAllowed)\n\t\tif ok && req.Method == http.MethodOptions {\n\t\t\tallowed := merr.Error()\n\t\t\tw.Header().Set(\"Allow\", allowed)\n\t\t\treturn\n\t\t}\n\t\th.Abort(w, req, err)\n\t\treturn\n\t}\n\trc.route = r\n\trc.params = params\n\th.observer.Begin(req)\n\tdefer h.observer.Commit(req, t)\n\tr.ServeHTTP(w, req)\n}",
"func (a *App) ServeHTTP(res http.ResponseWriter, req *http.Request) {\n\ta.createContext(res, req).run()\n}",
"func ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tserviceProvider := server.SamlServiceProvider.ServiceProvider\n\tif r.URL.Path == serviceProvider.MetadataURL.Path {\n\t\tbuf, _ := xml.MarshalIndent(serviceProvider.Metadata(), \"\", \" \")\n\t\tw.Header().Set(\"Content-Type\", \"application/samlmetadata+xml\")\n\t\tw.Write(buf)\n\t\treturn\n\t}\n\n\tif r.URL.Path == serviceProvider.AcsURL.Path {\n\t\tr.ParseForm()\n\t\tassertion, err := serviceProvider.ParseResponse(r, getPossibleRequestIDs(r, server.SamlServiceProvider))\n\t\tif err != nil {\n\t\t\tif parseErr, ok := err.(*saml.InvalidResponseError); ok {\n\t\t\t\tlog.Errorf(\"RESPONSE: ===\\n%s\\n===\\nNOW: %s\\nERROR: %s\",\n\t\t\t\t\tparseErr.Response, parseErr.Now, parseErr.PrivateErr)\n\t\t\t}\n\t\t\thttp.Error(w, http.StatusText(http.StatusForbidden), http.StatusForbidden)\n\t\t\treturn\n\t\t}\n\n\t\tHandleSamlAssertion(w, r, assertion, server.SamlServiceProvider)\n\t\treturn\n\t}\n\n\thttp.NotFoundHandler().ServeHTTP(w, r)\n}",
"func (a *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\ta.log.Debugf(\"ServeHTTP(): %+v\", req)\n\tif err := a.validate(req); err != nil {\n\t\ta.log.Debug(err)\n\t\trenderJSONError(w, err, http.StatusBadRequest)\n\t} else {\n\t\ta.router.ServeHTTP(w, req)\n\t}\n}",
"func (s *Server) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\tclientKey, authed, peer, err := s.auth(req)\n\tif err != nil {\n\t\ts.errorWriter(rw, req, 400, err)\n\t\treturn\n\t}\n\tif !authed {\n\t\ts.errorWriter(rw, req, 401, errFailedAuth)\n\t\treturn\n\t}\n\n\tblog.Infof(\"Handling backend connection request [%s]\", clientKey)\n\n\tupgrader := websocket.Upgrader{\n\t\tHandshakeTimeout: 5 * time.Second,\n\t\tCheckOrigin: func(r *http.Request) bool { return true },\n\t\tError: s.errorWriter,\n\t}\n\n\twsConn, err := upgrader.Upgrade(rw, req, nil)\n\tif err != nil {\n\t\ts.errorWriter(rw, req, 400, errors.Wrapf(err, \"Error during upgrade for host [%v]\", clientKey))\n\t\treturn\n\t}\n\n\tsession := s.sessions.add(clientKey, wsConn, peer)\n\tdefer s.sessions.remove(session)\n\n\t// Don't need to associate req.Context() to the Session, it will cancel otherwise\n\tcode, err := session.Serve(context.Background())\n\tif err != nil {\n\t\t// Hijacked so we can't write to the client\n\t\tblog.Infof(\"error in remotedialer server [%d]: %s\", code, err.Error())\n\t\t// clean credentials from db\n\t\ts.cleanCredentials(clientKey)\n\t}\n}",
"func Authentication(auths []Authenticator, opts ...Option) func(next http.Handler) http.Handler {\n\toptions := newOptions(opts...)\n\tconfigureSupportedChallenges(options)\n\ttracer := getTraceProvider(options).Tracer(\"proxy\")\n\n\tspanOpts := []trace.SpanStartOption{\n\t\ttrace.WithSpanKind(trace.SpanKindServer),\n\t}\n\n\treturn func(next http.Handler) http.Handler {\n\t\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tctx, span := tracer.Start(r.Context(), fmt.Sprintf(\"%s %v\", r.Method, r.URL.Path), spanOpts...)\n\t\t\tdefer span.End()\n\t\t\tr = r.WithContext(ctx)\n\n\t\t\tri := router.ContextRoutingInfo(ctx)\n\t\t\tif isOIDCTokenAuth(r) || ri.IsRouteUnprotected() || r.Method == \"OPTIONS\" {\n\t\t\t\t// Either this is a request that does not need any authentication or\n\t\t\t\t// the authentication for this request is handled by the IdP.\n\t\t\t\tnext.ServeHTTP(w, r)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tfor _, a := range auths {\n\t\t\t\tif req, ok := a.Authenticate(r); ok {\n\t\t\t\t\tnext.ServeHTTP(w, req)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t\tif !isPublicPath(r.URL.Path) {\n\t\t\t\t// Failed basic authentication attempts receive the Www-Authenticate header in the response\n\t\t\t\tvar touch bool\n\t\t\t\tcaser := cases.Title(language.Und)\n\t\t\t\tfor k, v := range options.CredentialsByUserAgent {\n\t\t\t\t\tif strings.Contains(k, r.UserAgent()) {\n\t\t\t\t\t\tremoveSuperfluousAuthenticate(w)\n\t\t\t\t\t\tw.Header().Add(\"Www-Authenticate\", fmt.Sprintf(\"%v realm=\\\"%s\\\", charset=\\\"UTF-8\\\"\", caser.String(v), r.Host))\n\t\t\t\t\t\ttouch = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if the request is not bound to any user agent, write all available challenges\n\t\t\t\tif !touch &&\n\t\t\t\t\t// This is a temporary hack... Before the authentication middleware rewrite all\n\t\t\t\t\t// unauthenticated requests were still handled. The reva http services then did add\n\t\t\t\t\t// the supported authentication headers to the response. Since we are not allowing the\n\t\t\t\t\t// requests to continue so far we have to do it here. But we shouldn't do it for the graph service.\n\t\t\t\t\t// That's the reason for this hard check here.\n\t\t\t\t\t!strings.HasPrefix(r.URL.Path, \"/graph\") {\n\t\t\t\t\twriteSupportedAuthenticateHeader(w, r)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor _, s := range SupportedAuthStrategies {\n\t\t\t\tuserAgentAuthenticateLockIn(w, r, options.CredentialsByUserAgent, s)\n\t\t\t}\n\t\t\tw.WriteHeader(http.StatusUnauthorized)\n\t\t\t// if the request is a PROPFIND return a WebDAV error code.\n\t\t\t// TODO: The proxy has to be smart enough to detect when a request is directed towards a webdav server\n\t\t\t// and react accordingly.\n\t\t\tif webdav.IsWebdavRequest(r) {\n\t\t\t\tb, err := webdav.Marshal(webdav.Exception{\n\t\t\t\t\tCode: webdav.SabredavPermissionDenied,\n\t\t\t\t\tMessage: \"Authentication error\",\n\t\t\t\t})\n\n\t\t\t\twebdav.HandleWebdavError(w, b, err)\n\t\t\t}\n\n\t\t\tif r.ProtoMajor == 1 {\n\t\t\t\t// https://github.com/owncloud/ocis/issues/5066\n\t\t\t\t// https://github.com/golang/go/blob/d5de62df152baf4de6e9fe81933319b86fd95ae4/src/net/http/server.go#L1357-L1417\n\t\t\t\t// https://github.com/golang/go/issues/15527\n\n\t\t\t\tdefer r.Body.Close()\n\t\t\t\t_, _ = io.Copy(io.Discard, r.Body)\n\t\t\t}\n\t\t})\n\t}\n}",
"func (t *AppTemplate) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tctx := r.Context()\n\ttemplateData := ctx.Value(templateDataKey).(TemplateData)\n\ttemplateData.CSRFToken = csrf.Token(r)\n\tvar cspNonce string\n\tif v, ok := ctx.Value(nonceKey).(string); ok {\n\t\tcspNonce = v\n\t}\n\tcssFiles := make([]string, len(templateData.CSSFiles))\n\tfor i, cssFile := range templateData.CSSFiles {\n\t\tif hashedFile, ok := hashedFiles[cssFile]; ok {\n\t\t\tcssFiles[i] = hashedFile\n\t\t} else {\n\t\t\tcssFiles[i] = cssFile\n\t\t}\n\t}\n\ttemplateData.CSSFiles = cssFiles\n\tjsFiles := make([]string, len(templateData.JSFiles))\n\tfor i, jsFile := range templateData.JSFiles {\n\t\tif hashedFile, ok := hashedFiles[jsFile]; ok {\n\t\t\tjsFiles[i] = hashedFile\n\t\t} else {\n\t\t\tjsFiles[i] = jsFile\n\t\t}\n\t}\n\ttemplateData.JSFiles = jsFiles\n\tpageData := ctx.Value(pageDataKey)\n\tif err := webhandlers.RetrieveError(r); err != nil {\n\t\tpageData = map[string]any{\n\t\t\t\"error\": err,\n\t\t}\n\t}\n\tif err := t.template.Execute(w, Data{\n\t\tTemplateData: templateData,\n\t\tAppConfig: ctx.Value(appConfigKey),\n\t\tExperimentalFeatures: experimental.AllFeatures(ctx),\n\t\tPageData: pageData,\n\t\tCSPNonce: cspNonce,\n\t}); err != nil {\n\t\tlog.FromContext(ctx).WithError(err).Warn(\"Failed to execute template\")\n\t}\n}",
"func (fs *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { //nolint:funlen,gocognit,gocyclo\n\tif !fs.methodIsAllowed(r.Method) {\n\t\tfs.handleError(w, r, http.StatusMethodNotAllowed)\n\n\t\treturn\n\t}\n\n\tif fs.Settings.RedirectIndexFileToRoot && len(fs.Settings.IndexFileName) > 0 {\n\t\t// redirect .../index.html to .../\n\t\tif strings.HasSuffix(r.URL.Path, \"/\"+fs.Settings.IndexFileName) {\n\t\t\thttp.Redirect(w, r, r.URL.Path[0:len(r.URL.Path)-len(fs.Settings.IndexFileName)], http.StatusMovedPermanently)\n\n\t\t\treturn\n\t\t}\n\t}\n\n\turlPath := r.URL.Path\n\n\t// add leading `/` (if required)\n\tif len(urlPath) == 0 || !strings.HasPrefix(urlPath, \"/\") {\n\t\turlPath = \"/\" + r.URL.Path\n\t}\n\n\t// if directory requested (or server root) - add index file name\n\tif len(fs.Settings.IndexFileName) > 0 && urlPath[len(urlPath)-1] == '/' {\n\t\turlPath += fs.Settings.IndexFileName\n\t}\n\n\t// prepare target file path\n\tfilePath := path.Join(fs.Settings.FilesRoot, filepath.FromSlash(path.Clean(urlPath)))\n\n\t// look for response in cache\n\tif fs.CacheAvailable() {\n\t\tif cached, cacheHit := fs.Cache.Get(filePath); cacheHit {\n\t\t\thttp.ServeContent(w, r, filepath.Base(filePath), cached.ModifiedTime, cached.Content)\n\n\t\t\treturn\n\t\t}\n\t}\n\n\t// check for file existence\n\tif stat, err := os.Stat(filePath); err == nil && stat.Mode().IsRegular() {\n\t\tif file, err := os.Open(filePath); err == nil {\n\t\t\tdefer file.Close()\n\n\t\t\tvar fileContent io.ReadSeeker\n\n\t\t\t// put file content into cache, if it is possible\n\t\t\tif fs.CacheAvailable() &&\n\t\t\t\tfs.Cache.Count() < fs.Settings.CacheMaxItems &&\n\t\t\t\tstat.Size() <= fs.Settings.CacheMaxFileSize {\n\t\t\t\tif data, err := ioutil.ReadAll(file); err == nil {\n\t\t\t\t\tfileContent = bytes.NewReader(data)\n\n\t\t\t\t\tfs.Cache.Set(filePath, fs.Settings.CacheTTL, &cache.Item{\n\t\t\t\t\t\tModifiedTime: stat.ModTime(),\n\t\t\t\t\t\tContent: fileContent,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif fileContent == nil {\n\t\t\t\tfileContent = file\n\t\t\t}\n\n\t\t\thttp.ServeContent(w, r, filepath.Base(filePath), stat.ModTime(), fileContent)\n\n\t\t\treturn\n\t\t}\n\n\t\tfs.handleError(w, r, http.StatusInternalServerError)\n\n\t\treturn\n\t}\n\n\tfs.handleError(w, r, http.StatusNotFound)\n}",
"func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\ta.mux.ServeHTTP(w, r)\n}",
"func basicAuthHandler(next http.Handler, username, password string) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Header().Set(\"WWW-Authenticate\", `Basic realm=\"knut\"`)\n\t\trUser, rPassword, ok := r.BasicAuth()\n\t\tif ok && rUser == username && password == rPassword {\n\t\t\tnext.ServeHTTP(w, r)\n\t\t} else {\n\t\t\twriteStatus(w, http.StatusUnauthorized)\n\t\t}\n\t})\n}",
"func (dc *DClient) Do(req *http.Request) (*http.Response, error) {\n\treturn dc.doDigestAuth(req)\n}",
"func (s *Server) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\tif origin := req.Header.Get(\"Origin\"); origin != \"\" {\n\t\trw.Header().Set(\"Access-Control-Allow-Origin\", origin)\n\t\trw.Header().Set(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE\")\n\t\trw.Header().Set(\"Access-Control-Allow-Headers\",\n\t\t\t\"Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization\")\n\t}\n\t// Stop here if its Preflighted OPTIONS request\n\tif req.Method == \"OPTIONS\" {\n\t\treturn\n\t}\n\n\t// Lets Gorilla work\n\ts.r.ServeHTTP(rw, req)\n}",
"func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tctx := r.Context()\n\n\tsession, state, err := m.initializeSession(r)\n\tif err != nil {\n\t\tm.Logger.Printf(\"couldn't initialise session: %+v\", err)\n\t\thttp.Error(w, \"couldn't initialise session\", http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tctx = context.WithValue(ctx, ctxStateKey, state)\n\tr = r.WithContext(ctx)\n\n\terr = m.setupAccessToken(ctx, w, r)\n\tif err != nil {\n\t\t// Access token is not set in request\n\t\tm.Logger.Printf(\"couldn't setup access token: %+v\", err)\n\t}\n\n\twriter := &sessionWriter{\n\t\tsessionStore: m.SessionStore,\n\t\tsession: session,\n\t\tstate: state,\n\t\tlogger: m.Logger,\n\t\tr: r,\n\t\tResponseWriter: w,\n\t}\n\tm.mux.ServeHTTP(writer, r)\n}",
"func (k *Kite) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tk.muxer.ServeHTTP(w, req)\n}",
"func (s *MyServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {\n\tif origin := req.Header.Get(\"Origin\"); origin != \"\" {\n\t\trw.Header().Set(\"Access-Control-Allow-Origin\", origin)\n\t\trw.Header().Set(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE\")\n\t\trw.Header().Set(\"Access-Control-Allow-Headers\",\n\t\t\t\"Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization\")\n\t}\n\t// Stop here if its Preflighted OPTIONS request\n\tif req.Method == \"OPTIONS\" {\n\t\treturn\n\t}\n\t// Lets Gorilla work\n\ts.r.ServeHTTP(rw, req)\n}",
"func BasicAuthenticate(req *restful.Request, resp *restful.Response, chain *restful.FilterChain) {\n\t//TODO Instead of clear passwor I could stick with encoded or other crypted solution\n\t// Use base64 decoding to extract from http header user credentials\n\tusername, passwd, err := security.Credentials(req)\n\tif err != nil {\n\t\tHTTPAuthorizationError(resp, err)\n\t\treturn\n\t}\n\tlog.Infof(\"User %s trying to connect with %s\\n\", username, passwd)\n\n\tdebug := false\n\t//TODO Manage a way to plug whatever datastore you want, wherever it is\n\tok, err := security.EtcdCheckCredentials(username, passwd, debug)\n\tif err != nil {\n\t\tHTTPInternalError(resp, err)\n\t\treturn\n\t}\n\tif !ok {\n\t\tHTTPAuthorizationError(resp, fmt.Errorf(\"credentials refused\"))\n\t\treturn\n\t}\n\tlog.Infof(\"Authentification granted, processing (%s:%s)\", username, passwd)\n\tchain.ProcessFilter(req, resp)\n}",
"func (m *Macross) ServeHTTP(ctx *fasthttp.RequestCtx) {\n\tc := m.AcquireContext()\n\tc.Reset(ctx)\n\tc.handlers, c.pnames = m.find(string(ctx.Method()), string(ctx.Path()), c.pvalues)\n\tif err := c.Next(); err != nil {\n\t\tm.HandleError(c, err)\n\t}\n\tm.ReleaseContext(c)\n}",
"func (handler Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\tfmt.Printf(\"%s %s %s\\n\", r.RemoteAddr, r.Method, r.URL.Path)\n\tt1 := time.Now()\n\thandler.store.ExpireSessions()\n\treq := newReqImpl(w, r, handler.store)\n\thandler.serve(req)\n\tif req.html != \"\" {\n\t\tio.WriteString(w, req.html)\n\t} else if req.template != \"\" {\n\t\tt := template.New(\"\").Funcs(handler.funcmap)\n\t\tt, err := t.ParseGlob(handler.templatePattern)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\terr = t.ExecuteTemplate(w, req.template, req.model)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t} else if req.redirect != \"\" {\n\t\thttp.Redirect(w, r, req.redirect, http.StatusFound)\n\t} else if req.status != 0 {\n\t\tmsg := http.StatusText(req.status)\n\t\thttp.Error(w, msg, req.status)\n\t} else {\n\t\tio.WriteString(w, \"no result\")\n\t}\n\td := time.Since(t1)\n\tfmt.Printf(\"%s %s %s - %f s\\n\", r.RemoteAddr, r.Method, r.URL.Path, float64(d)/1e9)\n}",
"func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {\n\tses := newSession(w, req)\n\ts.Sessions <- ses\n\t<-ses.end\n}",
"func (d Detourer) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t// In the default case, redirect to the Primo search form.\n\tredirectTo := &url.URL{\n\t\tScheme: \"https\",\n\t\tHost: d.primo,\n\t\tPath: \"/discovery/search\",\n\t}\n\n\t// Depending on the prefix...\n\tswitch {\n\t case strings.HasPrefix(r.URL.Path, RecordPrefix):\n\t\tbuildRecordRedirect(redirectTo, r, d.idMap)\n\t case strings.HasPrefix(r.URL.Path, PatronInfoPrefix):\n\t\tredirectTo.Path = \"/discovery/login\"\n\t case strings.HasPrefix(r.URL.Path, PatronInfoPrefix2):\n\t\tredirectTo.Path = \"/discovery/login\"\n\t case strings.HasPrefix(r.URL.Path, SearchPrefix):\n\t\tbuildSearchRedirect(redirectTo, r)\n\t}\n\n\t// Set the vid parameter on all redirects.\n\tsetParamInURL(redirectTo, \"vid\", d.vid)\n\n\t// Send the redirect to the client.\n\t// http.Redirect(w, r, redirectTo.String(), http.StatusMovedPermanently)\n\thttp.Redirect(w, r, redirectTo.String(), http.StatusTemporaryRedirect)\n}",
"func Authenticate(next buffalo.Handler) buffalo.Handler {\n\treturn func(c buffalo.Context) error {\n\t\t// do some work before calling the next handler\n\t\terr := checkJwt(c.Response(), c.Request())\n\t\tif err == nil {\n\t\t\terr := next(c)\n\t\t\t// do some work after calling the next handler\n\t\t\treturn err\n\t\t}\n\n\t\treturn err\n\t}\n}",
"func RequireAuth(h http.HandlerFunc) http.HandlerFunc {\n\treturn func(w http.ResponseWriter, req *http.Request) {\n\t\tusername, password, ok := req.BasicAuth()\n\n\t\tfmt.Println(\"\\tok:\", ok)\n\t\tfmt.Println(\"\\tu:\", username)\n\n\t\tif !ok || !CheckUsernameAndPassword(username, password) {\n\t\t\tw.Header().Set(\"WWW-Authenticate\", `Basic realm=Login required`)\n\t\t\tw.WriteHeader(401)\n\t\t\tw.Write([]byte(\"Unauthorised\\n\"))\n\t\t\treturn\n\t\t}\n\n\t\th.ServeHTTP(w, req)\n\t\t//h(w, req)\n\t}\n}",
"func Authorize(next http.Handler, jwtSigningKey, apiKey string) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\thttputil.Authorize(w, r, jwtSigningKey, apiKey, next)\n\t})\n}",
"func IsAuthenticated(next http.HandlerFunc) http.HandlerFunc {\n\treturn func(response http.ResponseWriter, request *http.Request) {\n\n\t\t//has cookies?\n\t\tfor _, cookie := range request.Cookies() {\n\t\t\tif cookie.Name == \"Token\" {\n\t\t\t\tok, err := validateCookie(cookie.Value)\n\t\t\t\tif err != nil {\n\t\t\t\t\tlog.Println(err)\n\t\t\t\t}\n\t\t\t\tif ok {\n\t\t\t\t\tlog.Println(\"serve because of cookies\")\n\t\t\t\t\tnext.ServeHTTP(response, request)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//has token?\n\t\tok, err := hasJWT(request)\n\t\tif err != nil {\n\t\t\tlog.Fatal(\"there was a error finding token\")\n\t\t}\n\t\tif ok {\n\t\t\tlog.Println(\"serve because of has jwt token\")\n\t\t\tnext.ServeHTTP(response, request)\n\t\t\treturn\n\t\t}\n\t\t//basic auth\n\t\tbasicAuth := hasBasicAuth(request)\n\t\tfmt.Println(basicAuth)\n\t\tif basicAuth {\n\t\t\ttoken, err := GenerateJWT()\n\t\t\tif err != nil {\n\t\t\t\tlog.Fatal(err)\n\t\t\t}\n\t\t\tcookie := http.Cookie{\n\t\t\t\tName: \"Token\",\n\t\t\t\tValue: token,\n\t\t\t\tPath: \"/\",\n\t\t\t}\n\t\t\thttp.SetCookie(response, &cookie)\n\t\t\tfmt.Println(token)\n\t\t\tnext.ServeHTTP(response, request)\n\t\t\treturn\n\n\t\t}\n\t\tresponse.WriteHeader(http.StatusUnauthorized) //unauthorized\n\t\treturn\n\t}\n}",
"func (a *AuthMock) Authenticate(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tif ic, ok := w.(injectContext); ok {\n\t\t\tnext.ServeHTTP(auth.ResponseContext{ResponseWriter: w, Auth: auth.Context(ic.claims)}, r)\n\t\t\treturn\n\t\t}\n\t\tnext.ServeHTTP(auth.ResponseContext{ResponseWriter: w, Auth: auth.Context{}}, r)\n\t})\n}",
"func (h *App) ServeHTTP(res http.ResponseWriter, req *http.Request) {\n\tvar head string\n\n\tswitch req.URL.Path {\n\tcase \"/\", \"/orgs\", \"/users\", \"/devices\", \"/sign-in\", \"/groups\", \"/msg\":\n\t\th.IndexHandler.ServeHTTP(res, req)\n\n\tdefault:\n\t\thead, req.URL.Path = ShiftPath(req.URL.Path)\n\t\tswitch head {\n\t\tcase \"public\":\n\t\t\th.PublicHandler.ServeHTTP(res, req)\n\t\tcase \"v1\":\n\t\t\th.V1ApiHandler.ServeHTTP(res, req)\n\t\tdefault:\n\t\t\thttp.Error(res, \"Not Found\", http.StatusNotFound)\n\t\t}\n\t}\n}",
"func (f *Floki) ServeHTTP(res http.ResponseWriter, req *http.Request) {\n\tf.router.ServeHTTP(res, req)\n}",
"func (s *ConcurrentServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\ts.router.ServeHTTP(w, r)\n}"
] | [
"0.7247089",
"0.7111546",
"0.7098574",
"0.70347756",
"0.70226735",
"0.69778514",
"0.6963365",
"0.6938993",
"0.6936862",
"0.69358766",
"0.6933734",
"0.69141126",
"0.6823771",
"0.68171436",
"0.668909",
"0.6676295",
"0.65529865",
"0.6546891",
"0.653827",
"0.65183365",
"0.6518282",
"0.6464725",
"0.64101964",
"0.63832194",
"0.6320116",
"0.6308588",
"0.6279325",
"0.62100995",
"0.6194556",
"0.6186503",
"0.6175744",
"0.6159184",
"0.61019355",
"0.6098399",
"0.60507596",
"0.60323775",
"0.60150474",
"0.59959865",
"0.5917701",
"0.58997273",
"0.58689284",
"0.58582133",
"0.5848219",
"0.58380306",
"0.58348495",
"0.5828663",
"0.5826504",
"0.5819214",
"0.5806158",
"0.57782364",
"0.5768482",
"0.5763206",
"0.57562673",
"0.57309204",
"0.572617",
"0.57250416",
"0.57245183",
"0.57150954",
"0.5704325",
"0.5703966",
"0.5685942",
"0.56790525",
"0.5676973",
"0.5668507",
"0.56624347",
"0.56598824",
"0.56549037",
"0.5645876",
"0.56209666",
"0.5609306",
"0.5605761",
"0.55985904",
"0.55966336",
"0.5593571",
"0.55892575",
"0.5588596",
"0.55860686",
"0.5579384",
"0.55736333",
"0.55661625",
"0.556246",
"0.5561966",
"0.55604714",
"0.5547203",
"0.5536432",
"0.55344033",
"0.55327547",
"0.5529735",
"0.55282485",
"0.5524699",
"0.5520521",
"0.5516144",
"0.5512282",
"0.55115",
"0.5508259",
"0.54917526",
"0.5485891",
"0.54822767",
"0.5478956",
"0.5477231"
] | 0.6672813 | 16 |
NewTopicPolicy registers a new resource with the given unique name, arguments, and options. | func NewTopicPolicy(ctx *pulumi.Context,
name string, args *TopicPolicyArgs, opts ...pulumi.ResourceOption) (*TopicPolicy, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Arn == nil {
return nil, errors.New("invalid value for required argument 'Arn'")
}
if args.Policy == nil {
return nil, errors.New("invalid value for required argument 'Policy'")
}
var resource TopicPolicy
err := ctx.RegisterResource("aws:sns/topicPolicy:TopicPolicy", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewTopic(ctx *pulumi.Context,\n\tname string, args *TopicArgs, opts ...pulumi.ResourceOption) (*Topic, error) {\n\tif args == nil {\n\t\targs = &TopicArgs{}\n\t}\n\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource Topic\n\terr := ctx.RegisterResource(\"google-native:pubsub/v1beta1a:Topic\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func NewPolicy(ctx *pulumi.Context,\n\tname string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.PolicyDocument == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'PolicyDocument'\")\n\t}\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource Policy\n\terr := ctx.RegisterResource(\"aws-native:iot:Policy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func NewTopicPolicy(ctx *pulumi.Context,\n\tname string, args *TopicPolicyArgs, opts ...pulumi.ResourceOption) (*TopicPolicy, error) {\n\tif args == nil || args.Arn == nil {\n\t\treturn nil, errors.New(\"missing required argument 'Arn'\")\n\t}\n\tif args == nil || args.Policy == nil {\n\t\treturn nil, errors.New(\"missing required argument 'Policy'\")\n\t}\n\tif args == nil {\n\t\targs = &TopicPolicyArgs{}\n\t}\n\tvar resource TopicPolicy\n\terr := ctx.RegisterResource(\"aws:sns/topicPolicy:TopicPolicy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func NewPolicy(ctx *pulumi.Context,\n\tname string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error) {\n\tif args == nil || args.Constraint == nil {\n\t\treturn nil, errors.New(\"missing required argument 'Constraint'\")\n\t}\n\tif args == nil || args.OrgId == nil {\n\t\treturn nil, errors.New(\"missing required argument 'OrgId'\")\n\t}\n\tif args == nil {\n\t\targs = &PolicyArgs{}\n\t}\n\tvar resource Policy\n\terr := ctx.RegisterResource(\"gcp:organizations/policy:Policy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func HandleCreate(w http.ResponseWriter, r *http.Request) {\r\n\tCorsHandler(w)\r\n\tctx := context.Background()\r\n\r\n\tprojectID := GetEnvVar(\"GOOGLE_CLOUD_PROJECT\")\r\n\tclient, err := pubsub.NewClient(ctx, projectID)\r\n\tCheckError(w, \"Error Creating Client\", err)\r\n\tt, err := client.CreateTopic(ctx, \"top3\")\r\n\tCheckError(w, \"Error Creating topic\", err)\r\n\tfmt.Fprintf(w, \"Topic Created Successfully %s\", t)\r\n}",
"func CreatePolicy(ip, name, content string) (string, error) {\n\tlog.Printf(\"Creating policy [%s] with content [%s] on ESX [%s]\\n\", name, content, ip)\n\treturn ssh.InvokeCommand(ip, admincli.CreatePolicy+\" --name \"+name+\" --content \"+content)\n}",
"func NewTopicRule(ctx *pulumi.Context,\n\tname string, args *TopicRuleArgs, opts ...pulumi.ResourceOpt) (*TopicRule, error) {\n\tif args == nil || args.Enabled == nil {\n\t\treturn nil, errors.New(\"missing required argument 'Enabled'\")\n\t}\n\tif args == nil || args.Sql == nil {\n\t\treturn nil, errors.New(\"missing required argument 'Sql'\")\n\t}\n\tif args == nil || args.SqlVersion == nil {\n\t\treturn nil, errors.New(\"missing required argument 'SqlVersion'\")\n\t}\n\tinputs := make(map[string]interface{})\n\tif args == nil {\n\t\tinputs[\"cloudwatchAlarm\"] = nil\n\t\tinputs[\"cloudwatchMetric\"] = nil\n\t\tinputs[\"description\"] = nil\n\t\tinputs[\"dynamodb\"] = nil\n\t\tinputs[\"elasticsearch\"] = nil\n\t\tinputs[\"enabled\"] = nil\n\t\tinputs[\"firehose\"] = nil\n\t\tinputs[\"kinesis\"] = nil\n\t\tinputs[\"lambda\"] = nil\n\t\tinputs[\"name\"] = nil\n\t\tinputs[\"republish\"] = nil\n\t\tinputs[\"s3\"] = nil\n\t\tinputs[\"sns\"] = nil\n\t\tinputs[\"sql\"] = nil\n\t\tinputs[\"sqlVersion\"] = nil\n\t\tinputs[\"sqs\"] = nil\n\t} else {\n\t\tinputs[\"cloudwatchAlarm\"] = args.CloudwatchAlarm\n\t\tinputs[\"cloudwatchMetric\"] = args.CloudwatchMetric\n\t\tinputs[\"description\"] = args.Description\n\t\tinputs[\"dynamodb\"] = args.Dynamodb\n\t\tinputs[\"elasticsearch\"] = args.Elasticsearch\n\t\tinputs[\"enabled\"] = args.Enabled\n\t\tinputs[\"firehose\"] = args.Firehose\n\t\tinputs[\"kinesis\"] = args.Kinesis\n\t\tinputs[\"lambda\"] = args.Lambda\n\t\tinputs[\"name\"] = args.Name\n\t\tinputs[\"republish\"] = args.Republish\n\t\tinputs[\"s3\"] = args.S3\n\t\tinputs[\"sns\"] = args.Sns\n\t\tinputs[\"sql\"] = args.Sql\n\t\tinputs[\"sqlVersion\"] = args.SqlVersion\n\t\tinputs[\"sqs\"] = args.Sqs\n\t}\n\tinputs[\"arn\"] = nil\n\ts, err := ctx.RegisterResource(\"aws:iot/topicRule:TopicRule\", name, true, inputs, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &TopicRule{s: s}, nil\n}",
"func PolicyCreate(client *golangsdk.ServiceClient, opts CreateOptsBuilder, clusterId string) (r ErrorResult) {\n\tb, err := opts.ToSnapshotCreateMap()\n\tif err != nil {\n\t\tr.Err = err\n\t\treturn\n\t}\n\t_, r.Err = client.Post(policyURL(client, clusterId), b, nil, &golangsdk.RequestOpts{\n\t\tOkCodes: []int{200},\n\t})\n\treturn\n}",
"func RegisterPolicy(name string, policy func(string) Policy) {\n\tsupportedPolicies[name] = policy\n}",
"func (t *TopicService) Create(name, description, parentID string) (*Topic, error) {\n\tquery := `\n\tmutation (\n\t\t$name: String!,\n\t\t$description: String,\n\t\t$parentId: ID\n\t){\n\t\tcreateTopic(\n\t\t\tname: $name, description: $description, parentId: $parentId\n\t\t){ id, name, description }\n\t}`\n\tvar resp struct {\n\t\tTopic *Topic `json:\"createTopic\"`\n\t}\n\tvars := map[string]interface{}{\"name\": name, \"description\": description, \"parentId\": parentID}\n\terr := t.client.Do(context.Background(), query, vars, &resp)\n\treturn resp.Topic, err\n}",
"func NewReplicationPolicy(ctx *pulumi.Context,\n\tname string, args *ReplicationPolicyArgs, opts ...pulumi.ResourceOption) (*ReplicationPolicy, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.ResourceGroupName == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'ResourceGroupName'\")\n\t}\n\tif args.ResourceName == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'ResourceName'\")\n\t}\n\taliases := pulumi.Aliases([]pulumi.Alias{\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices/v20180110:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-native:recoveryservices:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-native:recoveryservices/v20160810:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices/v20160810:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-native:recoveryservices/v20180710:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices/v20180710:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-native:recoveryservices/v20210210:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices/v20210210:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-native:recoveryservices/v20210301:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices/v20210301:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-native:recoveryservices/v20210401:ReplicationPolicy\"),\n\t\t},\n\t\t{\n\t\t\tType: pulumi.String(\"azure-nextgen:recoveryservices/v20210401:ReplicationPolicy\"),\n\t\t},\n\t})\n\topts = append(opts, aliases)\n\tvar resource ReplicationPolicy\n\terr := ctx.RegisterResource(\"azure-native:recoveryservices/v20180110:ReplicationPolicy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func (api *TopicalAPI) TopicNew(w http.ResponseWriter, r *http.Request) {\n\tflashes, _ := api.session.GetFlashes(r, w)\n\tuser, err := api.session.GetUser(r)\n\n\tif err != nil {\n\t\tapi.session.SaveFlash(\"Log in to post a message\", r, w)\n\t\thttp.Redirect(w, r, \"/topics\", 302)\n\t\treturn\n\t}\n\n\tpayload := struct {\n\t\tUser *models.User\n\t\tFlashes []string\n\t}{user, flashes}\n\n\tapi.templates.ExecuteTemplate(w, \"new-topic\", payload)\n}",
"func (v TopicsResource) New(c buffalo.Context) error {\n\treturn c.Render(200, r.Auto(c, &models.Topic{}))\n}",
"func Create(namespace string, resourceAndArgs ...string) (err error) {\n\tcreate := []string{\"create\", \"-n\", namespace}\n\t_, err = kubectl(append(create, resourceAndArgs...)...)\n\treturn\n}",
"func createJndiTopicFunc(d *schema.ResourceData, meta interface{}) error {\n\tstate := meta.(*ProviderState)\n\t// These are the only required fields, so init them upfront\n\tjnditopic := semp_client.MsgVpnJndiTopic{\n\t\tTopicName: d.Get(TOPIC_NAME).(string),\n\t\tMsgVpnName: d.Get(MSG_VPN_NAME).(string),\n\t}\n\tpopulateJndiTopicFromResource(&jnditopic, d)\n\n\tresp, _, err := semp_client.JndiApi {\n\t\tConfiguration: state.sempcfg,\n\t}.CreateMsgVpnJndiTopic(jnditopic.MsgVpnName, jnditopic, nil)\n\n\tif err != nil {\n\t\tlog.Println(\"JndiTopicApi.CreateMsgVpnJndiTopic ERROR\")\n\t\treturn err\n\t}\n\tlogSempMeta(\"JndiTopic create\", resp.Meta)\n\t// Must uniquely identify the resource within terraform\n\td.SetId( state.host + \"_\" + jnditopic.MsgVpnName + \"_jndiTopic_\" + jnditopic.TopicName )\n\n\treturn nil\n}",
"func CreateTopicOperation(k8sh *utils.K8sHelper, manifests installer.CephManifests) *TopicOperation {\n\treturn &TopicOperation{k8sh, manifests}\n}",
"func (a *DefaultApiService) CreateTopic(ctx _context.Context) ApiCreateTopicRequest {\n\treturn ApiCreateTopicRequest{\n\t\tApiService: a,\n\t\tctx: ctx,\n\t}\n}",
"func TopicCreate(w http.ResponseWriter, r *http.Request) {\n\n\t// Init output\n\toutput := []byte(\"\")\n\n\t// Add content type header to the response\n\tcontentType := \"application/json\"\n\tcharset := \"utf-8\"\n\tw.Header().Add(\"Content-Type\", fmt.Sprintf(\"%s; charset=%s\", contentType, charset))\n\n\t// Grab url path variables\n\turlVars := mux.Vars(r)\n\n\t// Grab context references\n\trefStr := gorillaContext.Get(r, \"str\").(stores.Store)\n\tprojectUUID := gorillaContext.Get(r, \"auth_project_uuid\").(string)\n\n\tpostBody := map[string]string{}\n\tschemaUUID := \"\"\n\n\t// check if there's a request body provided before trying to decode\n\tif r.Body != nil {\n\n\t\tb, err := ioutil.ReadAll(r.Body)\n\n\t\tif err != nil {\n\t\t\terr := APIErrorInvalidRequestBody()\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\t\tdefer r.Body.Close()\n\n\t\tif len(b) > 0 {\n\t\t\terr = json.Unmarshal(b, &postBody)\n\t\t\tif err != nil {\n\t\t\t\terr := APIErrorInvalidRequestBody()\n\t\t\t\trespondErr(w, err)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tschemaRef := postBody[\"schema\"]\n\n\t\t\t// if there was a schema name provided, check its existence\n\t\t\tif schemaRef != \"\" {\n\t\t\t\t_, schemaName, err := schemas.ExtractSchema(schemaRef)\n\t\t\t\tif err != nil {\n\t\t\t\t\terr := APIErrorInvalidData(err.Error())\n\t\t\t\t\trespondErr(w, err)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tsl, err := schemas.Find(projectUUID, \"\", schemaName, refStr)\n\t\t\t\tif err != nil {\n\t\t\t\t\terr := APIErrGenericInternal(err.Error())\n\t\t\t\t\trespondErr(w, err)\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tif sl.Empty() {\n\t\t\t\t\terr := APIErrorNotFound(\"Schema\")\n\t\t\t\t\trespondErr(w, err)\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tschemaUUID = sl.Schemas[0].UUID\n\t\t\t}\n\t\t}\n\t}\n\t// Get Result Object\n\tres, err := topics.CreateTopic(projectUUID, urlVars[\"topic\"], schemaUUID, refStr)\n\tif err != nil {\n\t\tif err.Error() == \"exists\" {\n\t\t\terr := APIErrorConflict(\"Topic\")\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\t\terr := APIErrGenericInternal(err.Error())\n\t\trespondErr(w, err)\n\t}\n\n\t// Output result to JSON\n\tresJSON, err := res.ExportJSON()\n\tif err != nil {\n\t\terr := APIErrExportJSON()\n\t\trespondErr(w, err)\n\t\treturn\n\t}\n\n\t// Write response\n\toutput = []byte(resJSON)\n\trespondOK(w, output)\n\n}",
"func (p *nsqPublisher) CreateTopic(topic string) error {\n\t//nolint:noctx\n\treq, err := http.NewRequest(http.MethodPost, fmt.Sprintf(\"http://%s/topic/create?topic=%s\", p.httpEndpoint, topic), nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\treq.Header.Add(\"ContentType\", \"text/plain\")\n\n\tresp, err := p.client.Do(req)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif resp.StatusCode >= 300 {\n\t\tbodyBytes, err := io.ReadAll(resp.Body)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\treturn fmt.Errorf(\"error creating topic: %s\", string(bodyBytes))\n\t}\n\n\t_ = resp.Body.Close()\n\treturn nil\n}",
"func NewTopic(n string, ts []string) *Topic {\n\treturn &Topic{ID: strings.ToLower(n), Name: n, Tags: ts, Created: time.Now()}\n}",
"func NewPolicy(ctx *pulumi.Context,\n\tname string, args *PolicyArgs, opts ...pulumi.ResourceOpt) (*Policy, error) {\n\tif args == nil || args.ResourceId == nil {\n\t\treturn nil, errors.New(\"missing required argument 'ResourceId'\")\n\t}\n\tif args == nil || args.ScalableDimension == nil {\n\t\treturn nil, errors.New(\"missing required argument 'ScalableDimension'\")\n\t}\n\tif args == nil || args.ServiceNamespace == nil {\n\t\treturn nil, errors.New(\"missing required argument 'ServiceNamespace'\")\n\t}\n\tinputs := make(map[string]interface{})\n\tif args == nil {\n\t\tinputs[\"alarms\"] = nil\n\t\tinputs[\"name\"] = nil\n\t\tinputs[\"policyType\"] = nil\n\t\tinputs[\"resourceId\"] = nil\n\t\tinputs[\"scalableDimension\"] = nil\n\t\tinputs[\"serviceNamespace\"] = nil\n\t\tinputs[\"stepScalingPolicyConfiguration\"] = nil\n\t\tinputs[\"targetTrackingScalingPolicyConfiguration\"] = nil\n\t} else {\n\t\tinputs[\"alarms\"] = args.Alarms\n\t\tinputs[\"name\"] = args.Name\n\t\tinputs[\"policyType\"] = args.PolicyType\n\t\tinputs[\"resourceId\"] = args.ResourceId\n\t\tinputs[\"scalableDimension\"] = args.ScalableDimension\n\t\tinputs[\"serviceNamespace\"] = args.ServiceNamespace\n\t\tinputs[\"stepScalingPolicyConfiguration\"] = args.StepScalingPolicyConfiguration\n\t\tinputs[\"targetTrackingScalingPolicyConfiguration\"] = args.TargetTrackingScalingPolicyConfiguration\n\t}\n\tinputs[\"arn\"] = nil\n\ts, err := ctx.RegisterResource(\"aws:appautoscaling/policy:Policy\", name, true, inputs, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &Policy{s: s}, nil\n}",
"func (c *Client) CreateSubscription(database, rp, name, mode string, destinations []string) error {\n\treturn c.retryUntilExec(internal.Command_CreateSubscriptionCommand, internal.E_CreateSubscriptionCommand_Command,\n\t\t&internal.CreateSubscriptionCommand{\n\t\t\tDatabase: proto.String(database),\n\t\t\tRetentionPolicy: proto.String(rp),\n\t\t\tName: proto.String(name),\n\t\t\tMode: proto.String(mode),\n\t\t\tDestinations: destinations,\n\t\t},\n\t)\n}",
"func (c *PublisherClient) CreateTopic(ctx context.Context, req *pubsubpb.Topic) (*pubsubpb.Topic, error) {\n\tctx = metadata.NewContext(ctx, c.metadata)\n\tvar resp *pubsubpb.Topic\n\terr := gax.Invoke(ctx, func(ctx context.Context) error {\n\t\tvar err error\n\t\tresp, err = c.client.CreateTopic(ctx, req)\n\t\treturn err\n\t}, c.CallOptions.CreateTopic...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn resp, nil\n}",
"func (apim *ApimClient) CreateOrUpdatePolicy(\n\tf apimanagement.PolicyContentFormat,\n\tp string,\n\tuid string,\n\n) (apimanagement.PolicyContract, error) {\n\tapiPolicy := apimanagement.PolicyContract{\n\t\tPolicyContractProperties: &apimanagement.PolicyContractProperties{\n\t\t\tFormat: f,\n\t\t\tValue: &p,\n\t\t},\n\t}\n\tapiPolicyContract, err := apim.PolicyClient.CreateOrUpdate(\n\t\tapim.Ctx,\n\t\tapim.ResourceGroup,\n\t\tapim.ServiceName,\n\t\tuid,\n\t\tapiPolicy,\n\t\tuuid.New().String(),\n\t)\n\tif err != nil {\n\t\treturn apiPolicyContract, err\n\t}\n\treturn apiPolicyContract, nil\n}",
"func (a *DefaultApiService) CreateTopicExecute(r ApiCreateTopicRequest) (Topic, *_nethttp.Response, error) {\n\tvar (\n\t\tlocalVarHTTPMethod = _nethttp.MethodPost\n\t\tlocalVarPostBody interface{}\n\t\tlocalVarFormFileName string\n\t\tlocalVarFileName string\n\t\tlocalVarFileBytes []byte\n\t\tlocalVarReturnValue Topic\n\t)\n\n\tlocalBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, \"DefaultApiService.CreateTopic\")\n\tif err != nil {\n\t\treturn localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()}\n\t}\n\n\tlocalVarPath := localBasePath + \"/topics\"\n\n\tlocalVarHeaderParams := make(map[string]string)\n\tlocalVarQueryParams := _neturl.Values{}\n\tlocalVarFormParams := _neturl.Values{}\n\tif r.newTopicInput == nil {\n\t\treturn localVarReturnValue, nil, reportError(\"newTopicInput is required and must be specified\")\n\t}\n\n\t// to determine the Content-Type header\n\tlocalVarHTTPContentTypes := []string{\"application/json\"}\n\n\t// set Content-Type header\n\tlocalVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)\n\tif localVarHTTPContentType != \"\" {\n\t\tlocalVarHeaderParams[\"Content-Type\"] = localVarHTTPContentType\n\t}\n\n\t// to determine the Accept header\n\tlocalVarHTTPHeaderAccepts := []string{\"application/json\"}\n\n\t// set Accept header\n\tlocalVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)\n\tif localVarHTTPHeaderAccept != \"\" {\n\t\tlocalVarHeaderParams[\"Accept\"] = localVarHTTPHeaderAccept\n\t}\n\t// body params\n\tlocalVarPostBody = r.newTopicInput\n\treq, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)\n\tif err != nil {\n\t\treturn localVarReturnValue, nil, err\n\t}\n\n\tlocalVarHTTPResponse, err := a.client.callAPI(req)\n\tif err != nil || localVarHTTPResponse == nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tlocalVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body)\n\tlocalVarHTTPResponse.Body.Close()\n\tlocalVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody))\n\tif err != nil {\n\t\treturn localVarReturnValue, localVarHTTPResponse, err\n\t}\n\n\tif localVarHTTPResponse.StatusCode >= 300 {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: localVarHTTPResponse.Status,\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\terr = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get(\"Content-Type\"))\n\tif err != nil {\n\t\tnewErr := GenericOpenAPIError{\n\t\t\tbody: localVarBody,\n\t\t\terror: err.Error(),\n\t\t}\n\t\treturn localVarReturnValue, localVarHTTPResponse, newErr\n\t}\n\n\treturn localVarReturnValue, localVarHTTPResponse, nil\n}",
"func (v TopicsResource) Create(c buffalo.Context) error {\n\t// Allocate an empty Topic\n\ttopic := &models.Topic{}\n\n\t// Bind topic to the html form elements\n\tif err := c.Bind(topic); err != nil {\n\t\treturn errors.WithStack(err)\n\t}\n\n\t// Get the DB connection from the context\n\ttx, ok := c.Value(\"tx\").(*pop.Connection)\n\tif !ok {\n\t\treturn errors.WithStack(errors.New(\"no transaction found\"))\n\t}\n\n\t// Validate the data from the html form\n\tverrs, err := tx.ValidateAndCreate(topic)\n\tif err != nil {\n\t\treturn errors.WithStack(err)\n\t}\n\n\tif verrs.HasAny() {\n\t\t// Make the errors available inside the html template\n\t\tc.Set(\"errors\", verrs)\n\n\t\t// Render again the new.html template that the user can\n\t\t// correct the input.\n\t\treturn c.Render(422, r.Auto(c, topic))\n\t}\n\n\t// If there are no errors set a success message\n\tc.Flash().Add(\"success\", \"Topic was created successfully\")\n\n\t// and redirect to the topics index page\n\treturn c.Render(201, r.Auto(c, topic))\n}",
"func (s *policies) Create(ctx context.Context, organization string, options PolicyCreateOptions) (*Policy, error) {\n\tif !validStringID(&organization) {\n\t\treturn nil, ErrInvalidOrg\n\t}\n\tif err := options.valid(); err != nil {\n\t\treturn nil, err\n\t}\n\n\tu := fmt.Sprintf(\"organizations/%s/policies\", url.QueryEscape(organization))\n\treq, err := s.client.NewRequest(\"POST\", u, &options)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tp := &Policy{}\n\terr = req.Do(ctx, p)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn p, err\n}",
"func (e *EnqueueRequestForNamespaces) Create(ctx context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface) {\n\te.add(ctx, evt.Object, q)\n}",
"func NewPolicy(opts ...PolicyOption) (*Policy, error) {\n\tp := &Policy{}\n\tfor _, opt := range opts {\n\t\tif err := opt(p); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\treturn p, nil\n}",
"func (ns *Namespace) NewTopic(name string, opts ...TopicOption) (*Topic, error) {\n\ttopic := &Topic{\n\t\tsendingEntity: newSendingEntity(newEntity(name, topicManagementPath(name), ns)),\n\t}\n\n\tfor i := range opts {\n\t\tif err := opts[i](topic); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn topic, nil\n}",
"func (client *Client) CreateControlPolicyWithOptions(request *CreateControlPolicyRequest, runtime *util.RuntimeOptions) (_result *CreateControlPolicyResponse, _err error) {\n\t_err = util.ValidateModel(request)\n\tif _err != nil {\n\t\treturn _result, _err\n\t}\n\tquery := map[string]interface{}{}\n\tif !tea.BoolValue(util.IsUnset(request.Description)) {\n\t\tquery[\"Description\"] = request.Description\n\t}\n\n\tif !tea.BoolValue(util.IsUnset(request.EffectScope)) {\n\t\tquery[\"EffectScope\"] = request.EffectScope\n\t}\n\n\tif !tea.BoolValue(util.IsUnset(request.PolicyDocument)) {\n\t\tquery[\"PolicyDocument\"] = request.PolicyDocument\n\t}\n\n\tif !tea.BoolValue(util.IsUnset(request.PolicyName)) {\n\t\tquery[\"PolicyName\"] = request.PolicyName\n\t}\n\n\treq := &openapi.OpenApiRequest{\n\t\tQuery: openapiutil.Query(query),\n\t}\n\tparams := &openapi.Params{\n\t\tAction: tea.String(\"CreateControlPolicy\"),\n\t\tVersion: tea.String(\"2020-03-31\"),\n\t\tProtocol: tea.String(\"HTTPS\"),\n\t\tPathname: tea.String(\"/\"),\n\t\tMethod: tea.String(\"POST\"),\n\t\tAuthType: tea.String(\"AK\"),\n\t\tStyle: tea.String(\"RPC\"),\n\t\tReqBodyType: tea.String(\"formData\"),\n\t\tBodyType: tea.String(\"json\"),\n\t}\n\t_result = &CreateControlPolicyResponse{}\n\t_body, _err := client.CallApi(params, req, runtime)\n\tif _err != nil {\n\t\treturn _result, _err\n\t}\n\t_err = tea.Convert(_body, &_result)\n\treturn _result, _err\n}",
"func (r *Reconciler) createTopic(ctx context.Context, topicName string, partitions int32, replicationFactor int16, retentionMillis int64) error {\n\n\t// Get The Logger From The Context\n\tlogger := logging.FromContext(ctx)\n\n\t// Create The TopicDefinition\n\tretentionMillisString := strconv.FormatInt(retentionMillis, 10)\n\ttopicDetail := &sarama.TopicDetail{\n\t\tNumPartitions: partitions,\n\t\tReplicationFactor: replicationFactor,\n\t\tReplicaAssignment: nil, // Currently Not Assigning Partitions To Replicas\n\t\tConfigEntries: map[string]*string{\n\t\t\tcommonconstants.KafkaTopicConfigRetentionMs: &retentionMillisString,\n\t\t},\n\t}\n\n\t// Attempt To Create The Topic & Process TopicError Results (Including Success ;)\n\terr := r.adminClient.CreateTopic(ctx, topicName, topicDetail)\n\tif err != nil {\n\t\tlogger := logger.With(zap.Int16(\"KError\", int16(err.Err)))\n\t\tswitch err.Err {\n\t\tcase sarama.ErrNoError:\n\t\t\tlogger.Info(\"Successfully Created New Kafka Topic (ErrNoError)\")\n\t\t\treturn nil\n\t\tcase sarama.ErrTopicAlreadyExists:\n\t\t\tlogger.Info(\"Kafka Topic Already Exists - No Creation Required\")\n\t\t\treturn nil\n\t\tdefault:\n\t\t\tlogger.Error(\"Failed To Create Topic\")\n\t\t\treturn err\n\t\t}\n\t} else {\n\t\tlogger.Info(\"Successfully Created New Kafka Topic (Nil TopicError)\")\n\t\treturn nil\n\t}\n}",
"func (g genericPlugin) Create(yamlFilePath string, namespace string, client plugin.KubernetesConnector) (string, error) {\n\tif namespace == \"\" {\n\t\tnamespace = \"default\"\n\t}\n\n\t//Decode the yaml file to create a runtime.Object\n\tunstruct := &unstructured.Unstructured{}\n\t//Ignore the returned obj as we expect the data in unstruct\n\t_, err := utils.DecodeYAML(yamlFilePath, unstruct)\n\tif err != nil {\n\t\treturn \"\", pkgerrors.Wrap(err, \"Decode deployment object error\")\n\t}\n\n\tdynClient := client.GetDynamicClient()\n\tmapper := client.GetMapper()\n\n\tgvk := unstruct.GroupVersionKind()\n\tmapping, err := mapper.RESTMapping(schema.GroupKind{Group: gvk.Group, Kind: gvk.Kind}, gvk.Version)\n\tif err != nil {\n\t\treturn \"\", pkgerrors.Wrap(err, \"Mapping kind to resource error\")\n\t}\n\n\t//Add the tracking label to all resources created here\n\tlabels := unstruct.GetLabels()\n\t//Check if labels exist for this object\n\tif labels == nil {\n\t\tlabels = map[string]string{}\n\t}\n\tlabels[config.GetConfiguration().KubernetesLabelName] = client.GetInstanceID()\n\tunstruct.SetLabels(labels)\n\n\t// This checks if the resource we are creating has a podSpec in it\n\t// Eg: Deployment, StatefulSet, Job etc..\n\t// If a PodSpec is found, the label will be added to it too.\n\tplugin.TagPodsIfPresent(unstruct, client.GetInstanceID())\n\n\tgvr := mapping.Resource\n\tvar createdObj *unstructured.Unstructured\n\n\tswitch mapping.Scope.Name() {\n\tcase meta.RESTScopeNameNamespace:\n\t\tcreatedObj, err = dynClient.Resource(gvr).Namespace(namespace).Create(unstruct, metav1.CreateOptions{})\n\tcase meta.RESTScopeNameRoot:\n\t\tcreatedObj, err = dynClient.Resource(gvr).Create(unstruct, metav1.CreateOptions{})\n\tdefault:\n\t\treturn \"\", pkgerrors.New(\"Got an unknown RESTSCopeName for mapping: \" + gvk.String())\n\t}\n\n\tif err != nil {\n\t\treturn \"\", pkgerrors.Wrap(err, \"Create object error\")\n\t}\n\n\treturn createdObj.GetName(), nil\n}",
"func Create(c *golangsdk.ServiceClient, policyID string, opts CreateOptsBuilder) (r CreateResult) {\n\tb, err := opts.ToWebTamperCreateMap()\n\tif err != nil {\n\t\tr.Err = err\n\t\treturn\n\t}\n\treqOpt := &golangsdk.RequestOpts{OkCodes: []int{200}}\n\t_, r.Err = c.Post(rootURL(c, policyID), b, &r.Body, reqOpt)\n\treturn\n}",
"func NewTopic(project, name string) Topic {\n\treturn Topic(newResource(project, \"topics\", name))\n}",
"func NewAuthorizationPolicy(ctx *pulumi.Context,\n\tname string, args *AuthorizationPolicyArgs, opts ...pulumi.ResourceOption) (*AuthorizationPolicy, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.Action == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'Action'\")\n\t}\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource AuthorizationPolicy\n\terr := ctx.RegisterResource(\"gcp:networksecurity/authorizationPolicy:AuthorizationPolicy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func (r *ResourceHandler) CreateResource(resource []*models.Resource, scope ResourceScope, options ...URIOption) (string, error) {\n\tr.ensureHandlerIsSet()\n\treturn r.resourceHandler.CreateResource(context.TODO(), resource, toV2ResourceScope(scope), v2.ResourcesCreateResourceOptions{URIOptions: toV2URIOptions(options)})\n}",
"func SubCreate(w http.ResponseWriter, r *http.Request) {\n\n\t// Init output\n\toutput := []byte(\"\")\n\n\t// Add content type header to the response\n\tcontentType := \"application/json\"\n\tcharset := \"utf-8\"\n\tw.Header().Add(\"Content-Type\", fmt.Sprintf(\"%s; charset=%s\", contentType, charset))\n\n\t// Grab url path variables\n\turlVars := mux.Vars(r)\n\n\t// Grab context references\n\trefStr := gorillaContext.Get(r, \"str\").(stores.Store)\n\trefBrk := gorillaContext.Get(r, \"brk\").(brokers.Broker)\n\tprojectUUID := gorillaContext.Get(r, \"auth_project_uuid\").(string)\n\n\t// Read POST JSON body\n\tbody, err := ioutil.ReadAll(r.Body)\n\tif err != nil {\n\t\terr := APIErrorInvalidRequestBody()\n\t\trespondErr(w, err)\n\t\treturn\n\t}\n\n\t// Parse pull options\n\tpostBody, err := subscriptions.GetFromJSON(body)\n\tif err != nil {\n\t\terr := APIErrorInvalidArgument(\"Subscription\")\n\t\trespondErr(w, err)\n\t\tlog.Error(string(body[:]))\n\t\treturn\n\t}\n\n\ttProject, tName, err := subscriptions.ExtractFullTopicRef(postBody.FullTopic)\n\n\tif err != nil {\n\t\terr := APIErrorInvalidName(\"Topic\")\n\t\trespondErr(w, err)\n\t\treturn\n\t}\n\n\tif topics.HasTopic(projectUUID, tName, refStr) == false {\n\t\terr := APIErrorNotFound(\"Topic\")\n\t\trespondErr(w, err)\n\t\treturn\n\t}\n\n\t// Get current topic offset\n\ttProjectUUID := projects.GetUUIDByName(tProject, refStr)\n\tfullTopic := tProjectUUID + \".\" + tName\n\tcurOff := refBrk.GetMaxOffset(fullTopic)\n\n\tpushEnd := \"\"\n\trPolicy := \"\"\n\trPeriod := 0\n\tmaxMessages := int64(1)\n\n\t//pushWorker := auth.User{}\n\tverifyHash := \"\"\n\n\tif postBody.PushCfg != (subscriptions.PushConfig{}) {\n\n\t\t// check the state of the push functionality\n\t\tpwToken := gorillaContext.Get(r, \"push_worker_token\").(string)\n\t\tpushEnabled := gorillaContext.Get(r, \"push_enabled\").(bool)\n\n\t\tif !pushEnabled {\n\t\t\terr := APIErrorPushConflict()\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\n\t\t_, err = auth.GetPushWorker(pwToken, refStr)\n\t\tif err != nil {\n\t\t\terr := APIErrInternalPush()\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\n\t\tpushEnd = postBody.PushCfg.Pend\n\t\t// Check if push endpoint is not a valid https:// endpoint\n\t\tif !(isValidHTTPS(pushEnd)) {\n\t\t\terr := APIErrorInvalidData(\"Push endpoint should be addressed by a valid https url\")\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\t\trPolicy = postBody.PushCfg.RetPol.PolicyType\n\t\trPeriod = postBody.PushCfg.RetPol.Period\n\t\tmaxMessages = postBody.PushCfg.MaxMessages\n\n\t\tif rPolicy == \"\" {\n\t\t\trPolicy = subscriptions.LinearRetryPolicyType\n\t\t}\n\n\t\tif maxMessages == 0 {\n\t\t\tmaxMessages = int64(1)\n\t\t}\n\n\t\tif rPeriod <= 0 {\n\t\t\trPeriod = 3000\n\t\t}\n\n\t\tif !subscriptions.IsRetryPolicySupported(rPolicy) {\n\t\t\terr := APIErrorInvalidData(subscriptions.UnSupportedRetryPolicyError)\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\n\t\tverifyHash, err = auth.GenToken()\n\t\tif err != nil {\n\t\t\tlog.Errorf(\"Could not generate verification hash for subscription %v, %v\", urlVars[\"subscription\"], err.Error())\n\t\t\terr := APIErrGenericInternal(\"Could not generate verification hash\")\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\n\t}\n\n\t// Get Result Object\n\tres, err := subscriptions.CreateSub(projectUUID, urlVars[\"subscription\"], tName, pushEnd, curOff, maxMessages, postBody.Ack, rPolicy, rPeriod, verifyHash, false, refStr)\n\n\tif err != nil {\n\t\tif err.Error() == \"exists\" {\n\t\t\terr := APIErrorConflict(\"Subscription\")\n\t\t\trespondErr(w, err)\n\t\t\treturn\n\t\t}\n\t\terr := APIErrGenericInternal(err.Error())\n\t\trespondErr(w, err)\n\t\treturn\n\t}\n\n\t// Output result to JSON\n\tresJSON, err := res.ExportJSON()\n\tif err != nil {\n\t\terr := APIErrExportJSON()\n\t\trespondErr(w, err)\n\t\treturn\n\t}\n\n\t// Write response\n\toutput = []byte(resJSON)\n\trespondOK(w, output)\n\n}",
"func (c *SubresourceClient) Create(namespace string, templateValues interface{}) (e error) {\n\tif c.Error != \"\" {\n\t\te = fmt.Errorf(c.Error)\n\t}\n\treturn\n}",
"func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) {\n\tb, err := opts.ToPolicyCreateMap()\n\tif err != nil {\n\t\tr.Err = err\n\t\treturn\n\t}\n\tresp, err := client.Post(createURL(client), b, &r.Body, &gophercloud.RequestOpts{\n\t\tOkCodes: []int{201},\n\t})\n\t_, r.Header, r.Err = gophercloud.ParseResponse(resp, err)\n\treturn\n}",
"func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) CreateResult {\n\tvar res CreateResult\n\n\treqBody, err := opts.ToPolicyCreateMap()\n\tif err != nil {\n\t\tres.Err = err\n\t\treturn res\n\t}\n\n\t_, res.Err = c.Post(rootURL(c), reqBody, &res.Body, nil)\n\treturn res\n}",
"func (r *Reconciler) createTopic(ctx context.Context, topicName string, partitions int, replicationFactor int, retentionMillis int64) error {\n\n\t// Setup The Logger\n\tlogger := r.logger.With(zap.String(\"Topic\", topicName))\n\n\t// Create The TopicSpecification\n\ttopicSpecifications := []kafka.TopicSpecification{\n\t\t{\n\t\t\tTopic: topicName,\n\t\t\tNumPartitions: partitions,\n\t\t\tReplicationFactor: replicationFactor,\n\t\t\tConfig: map[string]string{\n\t\t\t\tconstants.KafkaTopicConfigRetentionMs: strconv.FormatInt(retentionMillis, 10),\n\t\t\t},\n\t\t},\n\t}\n\n\t// Attempt To Create The Topic & Process Results\n\ttopicResults, err := r.adminClient.CreateTopics(ctx, topicSpecifications)\n\tif len(topicResults) > 0 {\n\t\ttopicResultError := topicResults[0].Error\n\t\ttopicResultErrorCode := topicResultError.Code()\n\t\tif topicResultErrorCode == kafka.ErrTopicAlreadyExists {\n\t\t\tlogger.Info(\"Kafka Topic Already Exists - No Creation Required\")\n\t\t\treturn nil\n\t\t} else if topicResultErrorCode == kafka.ErrNoError {\n\t\t\tlogger.Info(\"Successfully Created New Kafka Topic\")\n\t\t\treturn nil\n\t\t} else {\n\t\t\tlogger.Error(\"Failed To Create Topic (Results)\", zap.Error(err), zap.Any(\"TopicResults\", topicResults))\n\t\t\treturn topicResults[0].Error\n\t\t}\n\t} else if err != nil {\n\t\tlogger.Error(\"Failed To Create Topic (Error)\", zap.Error(err))\n\t\treturn err\n\t} else {\n\t\tlogger.Warn(\"Received Empty TopicResults From CreateTopics Request\")\n\t\treturn nil\n\t}\n}",
"func New() {\n\tfmt.Println(POLICY_TEMPLATE_OBJECT)\n}",
"func NewResiliencyPolicy(ctx *pulumi.Context,\n\tname string, args *ResiliencyPolicyArgs, opts ...pulumi.ResourceOption) (*ResiliencyPolicy, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.Policy == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'Policy'\")\n\t}\n\tif args.PolicyName == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'PolicyName'\")\n\t}\n\tif args.Tier == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'Tier'\")\n\t}\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource ResiliencyPolicy\n\terr := ctx.RegisterResource(\"aws-native:resiliencehub:ResiliencyPolicy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func (r *NamespaceTemplateReconciler) createadditionalresources(ctx context.Context,\n\tnsName string, nstObj megav1.NamespaceTemplate, options map[string]string) error {\n\n\t// provision pods\n\tvar p v1.Pod\n\tkey := types.NamespacedName{Namespace: nsName, Name: nstObj.Spec.AddResources.Pod.Name}\n\n\tif err := r.Get(ctx, key, &p); err != nil {\n\t\tfmt.Printf(\"pod not found, creating new\\n\")\n\t\t// assume that the error is \"pod doesnt exist\". in theory, err can be due to other issues as well\n\t\tnewPod := v1.Pod{\n\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\tNamespace: nsName,\n\t\t\t\tName: nstObj.Spec.AddResources.Pod.Name,\n\t\t\t\tLabels: options,\n\t\t\t},\n\t\t\tSpec: nstObj.Spec.AddResources.Pod.Spec,\n\t\t}\n\t\tfmt.Printf(\"dumping pod spec in namespace %s: %+v\\n\", nsName, newPod.Spec)\n\n\t\tif err := r.Create(ctx, &newPod); err != nil {\n\t\t\tfmt.Printf(\"unable to create pod due to %v\\n\", err)\n\t\t\treturn err\n\t\t}\n\t}\n\n\t// provision secrets\n\tvar s v1.Secret\n\tkey = types.NamespacedName{Namespace: nsName, Name: nstObj.Spec.AddResources.Secret.Name}\n\tif err := r.Get(ctx, key, &s); err != nil {\n\t\tfmt.Printf(\"secret not found, creating new\\n\")\n\t\tsecret := &v1.Secret{\n\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\tNamespace: nsName,\n\t\t\t\tName: nstObj.Spec.AddResources.Secret.Name,\n\t\t\t\tLabels: options,\n\t\t\t},\n\t\t\tData: nstObj.Spec.AddResources.Secret.Data,\n\t\t\tStringData: nstObj.Spec.AddResources.Secret.StringData,\n\t\t}\n\t\tif err := r.Create(ctx, secret); err != nil {\n\t\t\tfmt.Printf(\"unable to create secret due to %v\\n\", err)\n\t\t\treturn err\n\t\t}\n\t}\n\n\t// provision LimitRange\n\tvar lr v1.LimitRange\n\tkey = types.NamespacedName{Namespace: nsName, Name: nstObj.Spec.AddResources.LimitRange.Name}\n\tif err := r.Get(ctx, key, &lr); err != nil {\n\t\tfmt.Printf(\"limitrange not found, creating new\\n\")\n\t\tlimitrange := &v1.LimitRange{\n\t\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\t\tNamespace: nsName,\n\t\t\t\tName: nstObj.Spec.AddResources.LimitRange.Name,\n\t\t\t\tLabels: options,\n\t\t\t},\n\t\t\tSpec: nstObj.Spec.AddResources.LimitRange.Spec,\n\t\t}\n\t\tif err := r.Create(ctx, limitrange); err != nil {\n\t\t\tfmt.Printf(\"unable to create Limitrange due to %v\\n\", err)\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}",
"func (e *Enforcer) AddNamedPolicy(ctx context.Context, ptype string, params ...interface{}) (bool, error) {\n\tres, err := e.client.remoteClient.AddNamedPolicy(ctx, &pb.PolicyRequest{\n\t\tEnforcerHandler: e.handler,\n\t\tPType: ptype,\n\t\tParams: paramsToStrSlice(params),\n\t})\n\tif err != nil {\n\t\treturn false, err\n\t}\n\treturn res.Res, nil\n}",
"func CreateTopic(c *client.Client) fw.Topic {\n\treturn &configzTopic{\n\t\tcl: c,\n\t}\n}",
"func (c *ResourcesHandler) Create(e event.CreateEvent, q workqueue.RateLimitingInterface) {\n\tc.doHandle(e.Object.GetNamespace(), e.Object.GetName(), e.Object.GetObjectKind().GroupVersionKind().Kind, q)\n}",
"func (c *Client) CreateSubscription(data string, idempotencyKey ...string) (map[string]interface{}, error) {\n\tlog.info(\"========== CREATE SUBSCRIPTION ==========\")\n\turl := buildURL(path[\"subscriptions\"])\n\n\treturn c.do(\"POST\", url, data, idempotencyKey)\n}",
"func (aaa *NotificationService) CreateTopic(input *notification.CreateTopicParams) error {\n\ttoken, err := aaa.TokenRepository.GetToken()\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, badRequest, unauthorized, forbidden, conflict, err := aaa.Client.Notification.CreateTopic(input, client.BearerToken(*token.AccessToken))\n\tif badRequest != nil {\n\t\treturn badRequest\n\t}\n\tif unauthorized != nil {\n\t\treturn unauthorized\n\t}\n\tif forbidden != nil {\n\t\treturn forbidden\n\t}\n\tif conflict != nil {\n\t\treturn conflict\n\t}\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func NewSubscription(ctx *pulumi.Context,\n\tname string, args *SubscriptionArgs, opts ...pulumi.ResourceOption) (*Subscription, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.SubscriptionId == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'SubscriptionId'\")\n\t}\n\treplaceOnChanges := pulumi.ReplaceOnChanges([]string{\n\t\t\"location\",\n\t\t\"project\",\n\t\t\"subscriptionId\",\n\t})\n\topts = append(opts, replaceOnChanges)\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource Subscription\n\terr := ctx.RegisterResource(\"google-native:pubsublite/v1:Subscription\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func NewTopicRule(ctx *pulumi.Context,\n\tname string, args *TopicRuleArgs, opts ...pulumi.ResourceOption) (*TopicRule, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.TopicRulePayload == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'TopicRulePayload'\")\n\t}\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource TopicRule\n\terr := ctx.RegisterResource(\"aws-native:iot:TopicRule\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func (g *GooglePubSub) CreateSubscription(topicName string, subName string) error {\n\tsubConfig := pubsub.SubscriptionConfig{\n\t\tAckDeadline: 10 * time.Second,\n\t}\n\treturn g.CreateSubscriptionWithConfig(topicName, subName, subConfig)\n}",
"func (tm *topicManager) createTopic(name string) error {\n\ttm.topicsMutex.RLock()\n\t_, ok := tm.topicNamesToIds[name]\n\ttm.topicsMutex.RUnlock()\n\tif ok {\n\t\treturn fmt.Errorf(\"Topic with name [%s] already exists\", name)\n\t}\n\n\t// this allocates a copycat data structure but doesn't create a log structure yet\n\tid, err := tm.cc.AllocateNewDataStructure()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tprotobuf := &pb.TopicMetadataOperation{\n\t\tName: name,\n\t\tDataStructureId: id.String(),\n\t}\n\n\tbites, err := protobuf.Marshal()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\ttm.proposeCh <- bites\n\treturn nil\n}",
"func createKubeAccessRequest(cf *CLIConf, resources []resourceKind, args []string) error {\n\ttc, err := makeClient(cf)\n\tif err != nil {\n\t\treturn trace.Wrap(err)\n\t}\n\tkubeName, err := getKubeClusterName(args, tc.SiteName)\n\tif err != nil {\n\t\treturn trace.Wrap(err)\n\t}\n\tfor _, rec := range resources {\n\t\tcf.RequestedResourceIDs = append(\n\t\t\tcf.RequestedResourceIDs,\n\t\t\tfilepath.Join(\"/\", tc.SiteName, rec.kind, kubeName, rec.subResourceName),\n\t\t)\n\t}\n\tcf.Reason = fmt.Sprintf(\"Resource request automatically created for %v\", args)\n\tif err := executeAccessRequest(cf, tc); err != nil {\n\t\t// TODO(tigrato): intercept the error to validate the origin\n\t\treturn trace.Wrap(err)\n\t}\n\treturn nil\n}",
"func (s Server) AddTopic(w http.ResponseWriter, r *http.Request) {\n\n\ttopicName := strings.TrimSpace(r.FormValue(\"name\"))\n\tif s.MaybeUserError(w, len(topicName) == 0, \"new topic name must not be blank\") {\n\t\treturn\n\t}\n\n\tuser, err := CurrentUser(s.DB, r)\n\tif handleError(w, \"cannot get current user\", err) {\n\t\treturn\n\t}\n\n\ttopic := model.NewTopic(user.ID, topicName)\n\ttopic, err = store.CreateTopic(s.DB, topic)\n\tif handleError(w, \"cannot create topic: %w\", err) {\n\t\treturn\n\t}\n\n\ts.WritePage(w, \"new-topic.html\", map[string]interface{}{\n\t\t\"topic\": topic,\n\t})\n}",
"func (a Accessor) CreateSubscription(service, servicePath string, subscription *Subscription) (string, error) {\n\tap := AccessParameter{\n\t\tEpID: EntryPointIDs.Subscriptions,\n\t\tMethod: gohttp.HttpMethods.POST,\n\t\tService: service,\n\t\tServicePath: servicePath,\n\t\tPath: \"\",\n\t\tBodyToSend: subscription,\n\t}\n\n\terr := a.access(&ap)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn path.Base(ap.ReceivedHeader.Get(\"Location\")), err\n}",
"func resourceAwsRoute53ZoneAssociationCreate(d *schema.ResourceData, meta interface{}) error {\n\tr53 := meta.(*AWSClient).r53conn\n\n\treq := &route53.AssociateVPCWithHostedZoneInput{\n\t\tHostedZoneId: aws.String(d.Get(\"zone_id\").(string)),\n\t\tVPC: &route53.VPC{\n\t\t\tVPCId: aws.String(d.Get(\"vpc_id\").(string)),\n\t\t\tVPCRegion: aws.String(meta.(*AWSClient).region),\n\t\t},\n\t\tComment: aws.String(\"Managed by Terraform\"),\n\t}\n\tif w := d.Get(\"vpc_region\"); w != \"\" {\n\t\treq.VPC.VPCRegion = aws.String(w.(string))\n\t}\n\n\tlog.Printf(\"[DEBUG] Associating Route53 Private Zone %s with VPC %s with region %s\", *req.HostedZoneId, *req.VPC.VPCId, *req.VPC.VPCRegion)\n\tvar err error\n\tresp, err := r53.AssociateVPCWithHostedZone(req)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t// Store association id\n\td.SetId(fmt.Sprintf(\"%s:%s\", *req.HostedZoneId, *req.VPC.VPCId))\n\td.Set(\"vpc_region\", req.VPC.VPCRegion)\n\n\t// Wait until we are done initializing\n\twait := resource.StateChangeConf{\n\t\tDelay: 30 * time.Second,\n\t\tPending: []string{\"PENDING\"},\n\t\tTarget: []string{\"INSYNC\"},\n\t\tTimeout: 10 * time.Minute,\n\t\tMinTimeout: 2 * time.Second,\n\t\tRefresh: func() (result interface{}, state string, err error) {\n\t\t\tchangeRequest := &route53.GetChangeInput{\n\t\t\t\tId: aws.String(cleanChangeID(*resp.ChangeInfo.Id)),\n\t\t\t}\n\t\t\treturn resourceAwsGoRoute53Wait(getSubProvider(d, meta).(*AWSClient).r53conn, changeRequest)\n\t\t},\n\t}\n\t_, err = wait.WaitForState()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}",
"func createTopic(broker *sarama.Broker, topicName string) error {\n\ttopicDetail := &sarama.TopicDetail{}\n\ttopicDetail.NumPartitions = int32(1)\n\ttopicDetail.ReplicationFactor = int16(1)\n\ttopicDetail.ConfigEntries = make(map[string]*string)\n\n\ttopicDetails := make(map[string]*sarama.TopicDetail)\n\ttopicDetails[topicName] = topicDetail\n\trequest := sarama.CreateTopicsRequest{\n\t\tTimeout: time.Second * 15,\n\t\tTopicDetails: topicDetails,\n\t}\n\n\t_, err := broker.CreateTopics(&request)\n\treturn err\n}",
"func (client *Client) CreateTopic(request *CreateTopicRequest) (response *CreateTopicResponse, err error) {\n\tresponse = CreateCreateTopicResponse()\n\terr = client.DoAction(request, response)\n\treturn\n}",
"func (g *GooglePubSub) CreateTopic(topicName string) error {\n\t_, err := g.client.CreateTopic(g.ctx, topicName)\n\tif err != nil {\n\t\tlog.Errorf(\"Failed to create topic: %v\", err)\n\t\treturn err\n\t}\n\treturn err\n}",
"func NewSubscription(ctx *pulumi.Context,\n\tname string, args *SubscriptionArgs, opts ...pulumi.ResourceOption) (*Subscription, error) {\n\tif args == nil {\n\t\targs = &SubscriptionArgs{}\n\t}\n\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource Subscription\n\terr := ctx.RegisterResource(\"google-native:pubsub/v1beta1a:Subscription\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func (c *DefaultApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error) {\n\tpath := \"/v1/Subscriptions\"\n\n\tdata := url.Values{}\n\theaders := make(map[string]interface{})\n\n\tif params != nil && params.Description != nil {\n\t\tdata.Set(\"Description\", *params.Description)\n\t}\n\tif params != nil && params.SinkSid != nil {\n\t\tdata.Set(\"SinkSid\", *params.SinkSid)\n\t}\n\tif params != nil && params.Types != nil {\n\t\tv, err := json.Marshal(params.Types)\n\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tdata.Set(\"Types\", string(v))\n\t}\n\n\tresp, err := c.requestHandler.Post(c.baseURL+path, data, headers)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tdefer resp.Body.Close()\n\n\tps := &EventsV1Subscription{}\n\tif err := json.NewDecoder(resp.Body).Decode(ps); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn ps, err\n}",
"func GenerateTopic(name string, s v1alpha1.TopicParameters) *pubsub.Topic {\n\tt := &pubsub.Topic{\n\t\tName: name,\n\t\tLabels: s.Labels,\n\t\tKmsKeyName: gcp.StringValue(s.KmsKeyName),\n\t}\n\tif s.MessageStoragePolicy != nil {\n\t\tt.MessageStoragePolicy = &pubsub.MessageStoragePolicy{\n\t\t\tAllowedPersistenceRegions: s.MessageStoragePolicy.AllowedPersistenceRegions,\n\t\t}\n\t}\n\tif s.MessageRetentionDuration != nil {\n\t\tt.MessageRetentionDuration = gcp.StringValue(s.MessageRetentionDuration)\n\t}\n\treturn t\n}",
"func (n *namespaceClient) Create(namespaceName string) error {\n\turl := fmt.Sprintf(\"%s%s\", n.url, nsh.AddURL)\n\tdata, err := json.Marshal(defaultNamespaceRequest(namespaceName))\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, err = n.client.DoHTTPRequest(\"POST\", url, bytes.NewBuffer(data))\n\tif err != nil {\n\t\treturn err\n\t}\n\tn.logger.Info(\"successfully created namespace\", zap.String(\"namespace\", namespaceName))\n\treturn nil\n}",
"func (s *ResourcesService) Create(ctx context.Context, realm, clientID string, resource *Resource) (*Resource, *http.Response, error) {\n\tu := fmt.Sprintf(\"admin/realms/%s/clients/%s/authz/resource-server/resource\", realm, clientID)\n\treq, err := s.keycloak.NewRequest(http.MethodPost, u, resource)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tvar created Resource\n\tres, err := s.keycloak.Do(ctx, req, &created)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\treturn &created, res, nil\n}",
"func New(name string, p Policy) (tag *Tag) {\n\tif p == nil {\n\t\tpanic(\"policy can not be nil\")\n\t}\n\n\ttag = new(Tag)\n\ttag.Name = name\n\ttag.policy = p\n\n\treturn\n}",
"func (_Flytrap *FlytrapTransactor) AddTopic(opts *bind.TransactOpts, topic string, country [2]byte, addPubCost *big.Int, addSubCost *big.Int, reason string, sensitive bool) (*types.Transaction, error) {\n\treturn _Flytrap.contract.Transact(opts, \"addTopic\", topic, country, addPubCost, addSubCost, reason, sensitive)\n}",
"func newTopicscope(topic, scope string) (ts topicscope) {\n\tif len(topic) == 0 || topic == \"*\" {\n\t\tts.Topic = \"any\"\n\t} else {\n\t\tts.Topic = topic\n\t}\n\tif len(scope) == 0 || scope == \"*\" {\n\t\tts.Scope = \"any\"\n\t} else {\n\t\tts.Scope = scope\n\t}\n\treturn\n}",
"func NewPolicy(opts ...PolicyOption) ent.Policy {\n\tpolicies := policies{\n\t\tpre: prePolicy,\n\t\tpost: postPolicy,\n\t}\n\tfor _, opt := range opts {\n\t\topt(&policies)\n\t}\n\treturn privacy.Policy{\n\t\tQuery: policies.queryPolicy(),\n\t\tMutation: policies.mutationPolicy(),\n\t}\n}",
"func checkCreatePolicy(t *testing.T, expError bool, tenant, policy string) {\n\tpol := client.Policy{\n\t\tTenantName: tenant,\n\t\tPolicyName: policy,\n\t}\n\terr := contivClient.PolicyPost(&pol)\n\tif err != nil && !expError {\n\t\tt.Fatalf(\"Error creating policy {%+v}. Err: %v\", pol, err)\n\t} else if err == nil && expError {\n\t\tt.Fatalf(\"Create policy {%+v} succeded while expecing error\", pol)\n\t} else if err == nil {\n\t\t// verify policy is created\n\t\t_, err := contivClient.PolicyGet(tenant, policy)\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"Error getting policy %s/%s. Err: %v\", tenant, policy, err)\n\t\t}\n\t}\n}",
"func (r *TopicsService) Create(topic *Topic) *TopicsCreateCall {\n\tc := &TopicsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.topic = topic\n\treturn c\n}",
"func (client NotificationDataPlaneClient) createSubscription(ctx context.Context, request common.OCIRequest) (common.OCIResponse, error) {\n\thttpRequest, err := request.HTTPRequest(http.MethodPost, \"/subscriptions\")\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar response CreateSubscriptionResponse\n\tvar httpResponse *http.Response\n\thttpResponse, err = client.Call(ctx, &httpRequest)\n\tdefer common.CloseBodyIfValid(httpResponse)\n\tresponse.RawResponse = httpResponse\n\tif err != nil {\n\t\treturn response, err\n\t}\n\n\terr = common.UnmarshalResponse(httpResponse, &response)\n\treturn response, err\n}",
"func NewPolicy(name, config string) (*Policy, error) {\n\trunnerPolicy := newPolicyRunner(name, config)\n\tif runnerPolicy == nil || len(name) == 0 {\n\t\treturn nil, fmt.Errorf(\"error in policy config name: %s config: %s\", name, config)\n\t}\n\t\n\treturn &Policy{\n\t\tname: name,\n\t\tconfig: config,\n\t\tRun: runnerPolicy,\n\t\trwmu: new(sync.RWMutex),\n\t}, nil\n}",
"func NewPolicy(raw interface{}) (*Policy, error) {\n\ttypeData := raw.(map[string](interface{}))\n\tpolicy := &Policy{}\n\n\tfor _, parse := range []func(map[string]interface{}) error{\n\t\tpolicy.parseBasicProperties,\n\t\tpolicy.parseResourceFilter,\n\t\tpolicy.parseTenant,\n\t\tpolicy.parseTokenScope,\n\t\tpolicy.parseActionAttachOrCondition,\n\t} {\n\t\tif err := parse(typeData); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\treturn policy, nil\n}",
"func init() {\n\tflag.StringVar(&opt.confFile, \"static-pools-conf-file\", \"\", \"STP pool configuration file\")\n\tflag.StringVar(&opt.confDir, \"static-pools-conf-dir\", \"/etc/cmk\", \"STP pool configuration directory\")\n\tflag.BoolVar(&opt.createNodeLabel, \"static-pools-create-cmk-node-label\", false, \"Create CMK-related node label for backwards compatibility\")\n\tflag.BoolVar(&opt.createNodeTaint, \"static-pools-create-cmk-node-taint\", false, \"Create CMK-related node taint for backwards compatibility\")\n\n\tconfig.Register(PolicyPath, PolicyDescription, cfg, defaultConfig)\n}",
"func (c *PolicyService) CreatePolicy(policy Policy) (*Policy, *Response, error) {\n\tif err := c.validate.Struct(policy); err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\treq, err := c.client.newRequest(\"POST\", \"core/credentials/Policy\", &policy, nil)\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\tif policy.ProductKey == \"\" {\n\t\treturn nil, nil, ErrMissingProductKey\n\t}\n\treq.Header.Set(\"Api-Version\", CredentialsAPIVersion)\n\treq.Header.Set(\"X-Product-Key\", policy.ProductKey)\n\n\tvar createdPolicy Policy\n\tresp, err := c.client.Do(req, &createdPolicy)\n\tif err != nil {\n\t\treturn nil, resp, err\n\t}\n\tif resp == nil {\n\t\treturn nil, resp, ErrOperationFailed\n\t}\n\tif resp.StatusCode != http.StatusCreated {\n\t\treturn nil, resp, err\n\t}\n\tcreatedPolicy.ProductKey = policy.ProductKey\n\n\treturn &createdPolicy, resp, nil\n}",
"func NewTopic(session *mgo.Session, name string) *Topic {\n\treturn &Topic{\n\t\tsession: session,\n\t\tname: name,\n\t}\n}",
"func (client *Client) CreateTopicWithCallback(request *CreateTopicRequest, callback func(response *CreateTopicResponse, err error)) <-chan int {\n\tresult := make(chan int, 1)\n\terr := client.AddAsyncTask(func() {\n\t\tvar response *CreateTopicResponse\n\t\tvar err error\n\t\tdefer close(result)\n\t\tresponse, err = client.CreateTopic(request)\n\t\tcallback(response, err)\n\t\tresult <- 1\n\t})\n\tif err != nil {\n\t\tdefer close(result)\n\t\tcallback(nil, err)\n\t\tresult <- 0\n\t}\n\treturn result\n}",
"func resourceVolterraK8SPodSecurityPolicyCreate(d *schema.ResourceData, meta interface{}) error {\n\tclient := meta.(*APIClient)\n\n\tcreateMeta := &ves_io_schema.ObjectCreateMetaType{}\n\tcreateSpec := &ves_io_schema_k8s_pod_security_policy.CreateSpecType{}\n\tcreateReq := &ves_io_schema_k8s_pod_security_policy.CreateRequest{\n\t\tMetadata: createMeta,\n\t\tSpec: createSpec,\n\t}\n\n\tif v, ok := d.GetOk(\"annotations\"); ok && !isIntfNil(v) {\n\n\t\tms := map[string]string{}\n\n\t\tfor k, v := range v.(map[string]interface{}) {\n\t\t\tval := v.(string)\n\t\t\tms[k] = val\n\t\t}\n\t\tcreateMeta.Annotations = ms\n\t}\n\n\tif v, ok := d.GetOk(\"description\"); ok && !isIntfNil(v) {\n\t\tcreateMeta.Description =\n\t\t\tv.(string)\n\t}\n\n\tif v, ok := d.GetOk(\"disable\"); ok && !isIntfNil(v) {\n\t\tcreateMeta.Disable =\n\t\t\tv.(bool)\n\t}\n\n\tif v, ok := d.GetOk(\"labels\"); ok && !isIntfNil(v) {\n\n\t\tms := map[string]string{}\n\n\t\tfor k, v := range v.(map[string]interface{}) {\n\t\t\tval := v.(string)\n\t\t\tms[k] = val\n\t\t}\n\t\tcreateMeta.Labels = ms\n\t}\n\n\tif v, ok := d.GetOk(\"name\"); ok && !isIntfNil(v) {\n\t\tcreateMeta.Name =\n\t\t\tv.(string)\n\t}\n\n\tif v, ok := d.GetOk(\"namespace\"); ok && !isIntfNil(v) {\n\t\tcreateMeta.Namespace =\n\t\t\tv.(string)\n\t}\n\n\t//config_method_choice\n\n\tconfigMethodChoiceTypeFound := false\n\n\tif v, ok := d.GetOk(\"psp_spec\"); ok && !configMethodChoiceTypeFound {\n\n\t\tconfigMethodChoiceTypeFound = true\n\t\tconfigMethodChoiceInt := &ves_io_schema_k8s_pod_security_policy.CreateSpecType_PspSpec{}\n\t\tconfigMethodChoiceInt.PspSpec = &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType{}\n\t\tcreateSpec.ConfigMethodChoice = configMethodChoiceInt\n\n\t\tsl := v.(*schema.Set).List()\n\t\tfor _, set := range sl {\n\t\t\tcs := set.(map[string]interface{})\n\n\t\t\tif v, ok := cs[\"allow_privilege_escalation\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowPrivilegeEscalation = v.(bool)\n\n\t\t\t}\n\n\t\t\tallowedCapabilitiesChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"allowed_capabilities\"]; ok && !isIntfNil(v) && !allowedCapabilitiesChoiceTypeFound {\n\n\t\t\t\tallowedCapabilitiesChoiceTypeFound = true\n\t\t\t\tallowedCapabilitiesChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_AllowedCapabilities{}\n\t\t\t\tallowedCapabilitiesChoiceInt.AllowedCapabilities = &ves_io_schema_k8s_pod_security_policy.CapabilityListType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedCapabilitiesChoice = allowedCapabilitiesChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"capabilities\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tallowedCapabilitiesChoiceInt.AllowedCapabilities.Capabilities = ls\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"no_allowed_capabilities\"]; ok && !isIntfNil(v) && !allowedCapabilitiesChoiceTypeFound {\n\n\t\t\t\tallowedCapabilitiesChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tallowedCapabilitiesChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoAllowedCapabilities{}\n\t\t\t\t\tallowedCapabilitiesChoiceInt.NoAllowedCapabilities = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedCapabilitiesChoice = allowedCapabilitiesChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"allowed_csi_drivers\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedCsiDrivers = ls\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"allowed_flex_volumes\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedFlexVolumes = ls\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"allowed_host_paths\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tsl := v.([]interface{})\n\t\t\t\tallowedHostPaths := make([]*ves_io_schema_k8s_pod_security_policy.HostPathType, len(sl))\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedHostPaths = allowedHostPaths\n\t\t\t\tfor i, set := range sl {\n\t\t\t\t\tallowedHostPaths[i] = &ves_io_schema_k8s_pod_security_policy.HostPathType{}\n\t\t\t\t\tallowedHostPathsMapStrToI := set.(map[string]interface{})\n\n\t\t\t\t\tif w, ok := allowedHostPathsMapStrToI[\"path_prefix\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\tallowedHostPaths[i].PathPrefix = w.(string)\n\t\t\t\t\t}\n\n\t\t\t\t\tif w, ok := allowedHostPathsMapStrToI[\"read_only\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\tallowedHostPaths[i].ReadOnly = w.(bool)\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"allowed_proc_mounts\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedProcMounts = ls\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"allowed_unsafe_sysctls\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.AllowedUnsafeSysctls = ls\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"default_allow_privilege_escalation\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.DefaultAllowPrivilegeEscalation = v.(bool)\n\n\t\t\t}\n\n\t\t\tdefaultCapabilitiesChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"default_capabilities\"]; ok && !isIntfNil(v) && !defaultCapabilitiesChoiceTypeFound {\n\n\t\t\t\tdefaultCapabilitiesChoiceTypeFound = true\n\t\t\t\tdefaultCapabilitiesChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_DefaultCapabilities{}\n\t\t\t\tdefaultCapabilitiesChoiceInt.DefaultCapabilities = &ves_io_schema_k8s_pod_security_policy.CapabilityListType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.DefaultCapabilitiesChoice = defaultCapabilitiesChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"capabilities\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefaultCapabilitiesChoiceInt.DefaultCapabilities.Capabilities = ls\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"no_default_capabilities\"]; ok && !isIntfNil(v) && !defaultCapabilitiesChoiceTypeFound {\n\n\t\t\t\tdefaultCapabilitiesChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tdefaultCapabilitiesChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoDefaultCapabilities{}\n\t\t\t\t\tdefaultCapabilitiesChoiceInt.NoDefaultCapabilities = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.DefaultCapabilitiesChoice = defaultCapabilitiesChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tdropCapabilitiesChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"drop_capabilities\"]; ok && !isIntfNil(v) && !dropCapabilitiesChoiceTypeFound {\n\n\t\t\t\tdropCapabilitiesChoiceTypeFound = true\n\t\t\t\tdropCapabilitiesChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_DropCapabilities{}\n\t\t\t\tdropCapabilitiesChoiceInt.DropCapabilities = &ves_io_schema_k8s_pod_security_policy.CapabilityListType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.DropCapabilitiesChoice = dropCapabilitiesChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"capabilities\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdropCapabilitiesChoiceInt.DropCapabilities.Capabilities = ls\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"no_drop_capabilities\"]; ok && !isIntfNil(v) && !dropCapabilitiesChoiceTypeFound {\n\n\t\t\t\tdropCapabilitiesChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tdropCapabilitiesChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoDropCapabilities{}\n\t\t\t\t\tdropCapabilitiesChoiceInt.NoDropCapabilities = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.DropCapabilitiesChoice = dropCapabilitiesChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"forbidden_sysctls\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.ForbiddenSysctls = ls\n\n\t\t\t}\n\n\t\t\tfsGroupChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"fs_group_strategy_options\"]; ok && !isIntfNil(v) && !fsGroupChoiceTypeFound {\n\n\t\t\t\tfsGroupChoiceTypeFound = true\n\t\t\t\tfsGroupChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_FsGroupStrategyOptions{}\n\t\t\t\tfsGroupChoiceInt.FsGroupStrategyOptions = &ves_io_schema_k8s_pod_security_policy.IDStrategyOptionsType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.FsGroupChoice = fsGroupChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"id_ranges\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tsl := v.([]interface{})\n\t\t\t\t\t\tidRanges := make([]*ves_io_schema_k8s_pod_security_policy.IDRangeType, len(sl))\n\t\t\t\t\t\tfsGroupChoiceInt.FsGroupStrategyOptions.IdRanges = idRanges\n\t\t\t\t\t\tfor i, set := range sl {\n\t\t\t\t\t\t\tidRanges[i] = &ves_io_schema_k8s_pod_security_policy.IDRangeType{}\n\t\t\t\t\t\t\tidRangesMapStrToI := set.(map[string]interface{})\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"max_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MaxId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"min_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MinId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"rule\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tfsGroupChoiceInt.FsGroupStrategyOptions.Rule = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"no_fs_groups\"]; ok && !isIntfNil(v) && !fsGroupChoiceTypeFound {\n\n\t\t\t\tfsGroupChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tfsGroupChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoFsGroups{}\n\t\t\t\t\tfsGroupChoiceInt.NoFsGroups = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.FsGroupChoice = fsGroupChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tgroupChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"no_run_as_group\"]; ok && !isIntfNil(v) && !groupChoiceTypeFound {\n\n\t\t\t\tgroupChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tgroupChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoRunAsGroup{}\n\t\t\t\t\tgroupChoiceInt.NoRunAsGroup = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.GroupChoice = groupChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"run_as_group\"]; ok && !isIntfNil(v) && !groupChoiceTypeFound {\n\n\t\t\t\tgroupChoiceTypeFound = true\n\t\t\t\tgroupChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_RunAsGroup{}\n\t\t\t\tgroupChoiceInt.RunAsGroup = &ves_io_schema_k8s_pod_security_policy.IDStrategyOptionsType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.GroupChoice = groupChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"id_ranges\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tsl := v.([]interface{})\n\t\t\t\t\t\tidRanges := make([]*ves_io_schema_k8s_pod_security_policy.IDRangeType, len(sl))\n\t\t\t\t\t\tgroupChoiceInt.RunAsGroup.IdRanges = idRanges\n\t\t\t\t\t\tfor i, set := range sl {\n\t\t\t\t\t\t\tidRanges[i] = &ves_io_schema_k8s_pod_security_policy.IDRangeType{}\n\t\t\t\t\t\t\tidRangesMapStrToI := set.(map[string]interface{})\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"max_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MaxId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"min_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MinId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"rule\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tgroupChoiceInt.RunAsGroup.Rule = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"host_ipc\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.HostIpc = v.(bool)\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"host_network\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.HostNetwork = v.(bool)\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"host_pid\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.HostPid = v.(bool)\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"host_port_ranges\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.HostPortRanges = v.(string)\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"privileged\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.Privileged = v.(bool)\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"read_only_root_filesystem\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tconfigMethodChoiceInt.PspSpec.ReadOnlyRootFilesystem = v.(bool)\n\n\t\t\t}\n\n\t\t\truntimeClassChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"no_runtime_class\"]; ok && !isIntfNil(v) && !runtimeClassChoiceTypeFound {\n\n\t\t\t\truntimeClassChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\truntimeClassChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoRuntimeClass{}\n\t\t\t\t\truntimeClassChoiceInt.NoRuntimeClass = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.RuntimeClassChoice = runtimeClassChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"runtime_class\"]; ok && !isIntfNil(v) && !runtimeClassChoiceTypeFound {\n\n\t\t\t\truntimeClassChoiceTypeFound = true\n\t\t\t\truntimeClassChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_RuntimeClass{}\n\t\t\t\truntimeClassChoiceInt.RuntimeClass = &ves_io_schema_k8s_pod_security_policy.RuntimeClassStrategyOptions{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.RuntimeClassChoice = runtimeClassChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"allowed_runtime_class_names\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t\t\t}\n\t\t\t\t\t\truntimeClassChoiceInt.RuntimeClass.AllowedRuntimeClassNames = ls\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"default_runtime_class_name\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\truntimeClassChoiceInt.RuntimeClass.DefaultRuntimeClassName = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tseLinuxChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"no_se_linux_options\"]; ok && !isIntfNil(v) && !seLinuxChoiceTypeFound {\n\n\t\t\t\tseLinuxChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tseLinuxChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoSeLinuxOptions{}\n\t\t\t\t\tseLinuxChoiceInt.NoSeLinuxOptions = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.SeLinuxChoice = seLinuxChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"se_linux_options\"]; ok && !isIntfNil(v) && !seLinuxChoiceTypeFound {\n\n\t\t\t\tseLinuxChoiceTypeFound = true\n\t\t\t\tseLinuxChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_SeLinuxOptions{}\n\t\t\t\tseLinuxChoiceInt.SeLinuxOptions = &ves_io_schema_k8s_pod_security_policy.SELinuxStrategyOptions{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.SeLinuxChoice = seLinuxChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"level\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tseLinuxChoiceInt.SeLinuxOptions.Level = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"role\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tseLinuxChoiceInt.SeLinuxOptions.Role = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"rule\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tseLinuxChoiceInt.SeLinuxOptions.Rule = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"type\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tseLinuxChoiceInt.SeLinuxOptions.Type = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"user\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tseLinuxChoiceInt.SeLinuxOptions.User = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tsupplementalGroupChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"no_supplemental_groups\"]; ok && !isIntfNil(v) && !supplementalGroupChoiceTypeFound {\n\n\t\t\t\tsupplementalGroupChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tsupplementalGroupChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoSupplementalGroups{}\n\t\t\t\t\tsupplementalGroupChoiceInt.NoSupplementalGroups = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.SupplementalGroupChoice = supplementalGroupChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"supplemental_groups\"]; ok && !isIntfNil(v) && !supplementalGroupChoiceTypeFound {\n\n\t\t\t\tsupplementalGroupChoiceTypeFound = true\n\t\t\t\tsupplementalGroupChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_SupplementalGroups{}\n\t\t\t\tsupplementalGroupChoiceInt.SupplementalGroups = &ves_io_schema_k8s_pod_security_policy.IDStrategyOptionsType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.SupplementalGroupChoice = supplementalGroupChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"id_ranges\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tsl := v.([]interface{})\n\t\t\t\t\t\tidRanges := make([]*ves_io_schema_k8s_pod_security_policy.IDRangeType, len(sl))\n\t\t\t\t\t\tsupplementalGroupChoiceInt.SupplementalGroups.IdRanges = idRanges\n\t\t\t\t\t\tfor i, set := range sl {\n\t\t\t\t\t\t\tidRanges[i] = &ves_io_schema_k8s_pod_security_policy.IDRangeType{}\n\t\t\t\t\t\t\tidRangesMapStrToI := set.(map[string]interface{})\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"max_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MaxId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"min_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MinId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"rule\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tsupplementalGroupChoiceInt.SupplementalGroups.Rule = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tuserChoiceTypeFound := false\n\n\t\t\tif v, ok := cs[\"no_run_as_user\"]; ok && !isIntfNil(v) && !userChoiceTypeFound {\n\n\t\t\t\tuserChoiceTypeFound = true\n\n\t\t\t\tif v.(bool) {\n\t\t\t\t\tuserChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_NoRunAsUser{}\n\t\t\t\t\tuserChoiceInt.NoRunAsUser = &ves_io_schema.Empty{}\n\t\t\t\t\tconfigMethodChoiceInt.PspSpec.UserChoice = userChoiceInt\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"run_as_user\"]; ok && !isIntfNil(v) && !userChoiceTypeFound {\n\n\t\t\t\tuserChoiceTypeFound = true\n\t\t\t\tuserChoiceInt := &ves_io_schema_k8s_pod_security_policy.PodSecurityPolicySpecType_RunAsUser{}\n\t\t\t\tuserChoiceInt.RunAsUser = &ves_io_schema_k8s_pod_security_policy.IDStrategyOptionsType{}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.UserChoice = userChoiceInt\n\n\t\t\t\tsl := v.(*schema.Set).List()\n\t\t\t\tfor _, set := range sl {\n\t\t\t\t\tcs := set.(map[string]interface{})\n\n\t\t\t\t\tif v, ok := cs[\"id_ranges\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tsl := v.([]interface{})\n\t\t\t\t\t\tidRanges := make([]*ves_io_schema_k8s_pod_security_policy.IDRangeType, len(sl))\n\t\t\t\t\t\tuserChoiceInt.RunAsUser.IdRanges = idRanges\n\t\t\t\t\t\tfor i, set := range sl {\n\t\t\t\t\t\t\tidRanges[i] = &ves_io_schema_k8s_pod_security_policy.IDRangeType{}\n\t\t\t\t\t\t\tidRangesMapStrToI := set.(map[string]interface{})\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"max_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MaxId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif w, ok := idRangesMapStrToI[\"min_id\"]; ok && !isIntfNil(w) {\n\t\t\t\t\t\t\t\tidRanges[i].MinId = uint32(w.(int))\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif v, ok := cs[\"rule\"]; ok && !isIntfNil(v) {\n\n\t\t\t\t\t\tuserChoiceInt.RunAsUser.Rule = v.(string)\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif v, ok := cs[\"volumes\"]; ok && !isIntfNil(v) {\n\n\t\t\t\tls := make([]string, len(v.([]interface{})))\n\t\t\t\tfor i, v := range v.([]interface{}) {\n\t\t\t\t\tls[i] = v.(string)\n\t\t\t\t}\n\t\t\t\tconfigMethodChoiceInt.PspSpec.Volumes = ls\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tif v, ok := d.GetOk(\"yaml\"); ok && !configMethodChoiceTypeFound {\n\n\t\tconfigMethodChoiceTypeFound = true\n\t\tconfigMethodChoiceInt := &ves_io_schema_k8s_pod_security_policy.CreateSpecType_Yaml{}\n\n\t\tcreateSpec.ConfigMethodChoice = configMethodChoiceInt\n\n\t\tconfigMethodChoiceInt.Yaml = v.(string)\n\n\t}\n\n\tlog.Printf(\"[DEBUG] Creating Volterra K8SPodSecurityPolicy object with struct: %+v\", createReq)\n\n\tcreateK8SPodSecurityPolicyResp, err := client.CreateObject(context.Background(), ves_io_schema_k8s_pod_security_policy.ObjectType, createReq)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error creating K8SPodSecurityPolicy: %s\", err)\n\t}\n\td.SetId(createK8SPodSecurityPolicyResp.GetObjSystemMetadata().GetUid())\n\n\treturn resourceVolterraK8SPodSecurityPolicyRead(d, meta)\n}",
"func (*EventNotificationsV1) NewCreateTopicOptions(instanceID string, name string) *CreateTopicOptions {\n\treturn &CreateTopicOptions{\n\t\tInstanceID: core.StringPtr(instanceID),\n\t\tName: core.StringPtr(name),\n\t}\n}",
"func (client AccountQuotaPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, policyName string, body AccountQuotaPolicyResourceDescription) (result AccountQuotaPolicyCreateOrUpdateFuture, err error) {\n if tracing.IsEnabled() {\n ctx = tracing.StartSpan(ctx, fqdn + \"/AccountQuotaPolicyClient.CreateOrUpdate\")\n defer func() {\n sc := -1\n if result.Response() != nil {\n sc = result.Response().StatusCode\n }\n tracing.EndSpan(ctx, sc, err)\n }()\n }\n if err := validation.Validate([]validation.Validation{\n { TargetValue: body,\n Constraints: []validation.Constraint{\t{Target: \"body.AccountQuotaPolicyResourceDescriptionProperties\", Name: validation.Null, Rule: true, Chain: nil }}}}); err != nil {\n return result, validation.NewError(\"microsoftazuremanagementaisupercomputer.AccountQuotaPolicyClient\", \"CreateOrUpdate\", err.Error())\n }\n\n req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, accountName, policyName, body)\n if err != nil {\n err = autorest.NewErrorWithError(err, \"microsoftazuremanagementaisupercomputer.AccountQuotaPolicyClient\", \"CreateOrUpdate\", nil , \"Failure preparing request\")\n return\n }\n\n result, err = client.CreateOrUpdateSender(req)\n if err != nil {\n err = autorest.NewErrorWithError(err, \"microsoftazuremanagementaisupercomputer.AccountQuotaPolicyClient\", \"CreateOrUpdate\", result.Response(), \"Failure sending request\")\n return\n }\n\n return\n}",
"func (s Site) AddTopic(t string) {\n\ts.Handler.HandleFunc(\"/\"+t+\"/\", s.TopicHandler)\n\ts.Handler.HandleFunc(\"/nominate/\"+t+\"/\", s.NominateHandler)\n}",
"func NewGroupPolicy(ctx *pulumi.Context,\n\tname string, args *GroupPolicyArgs, opts ...pulumi.ResourceOption) (*GroupPolicy, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.GroupName == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'GroupName'\")\n\t}\n\tif args.PolicyName == nil {\n\t\treturn nil, errors.New(\"invalid value for required argument 'PolicyName'\")\n\t}\n\topts = internal.PkgResourceDefaultOpts(opts)\n\tvar resource GroupPolicy\n\terr := ctx.RegisterResource(\"aws-native:iam:GroupPolicy\", name, args, &resource, opts...)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn &resource, nil\n}",
"func init() {\n\tpkgcfg.Register(PolicyPath, PolicyDescription, conf, defaultConfig)\n}",
"func (a *adapter) AddPolicy(sec string, ptype string, rule []string) error {\n\tline := savePolicyLine(ptype, rule)\n\n\tctx := context.TODO()\n\t_, err := a.collection.InsertOne(ctx, line)\n\treturn err\n}",
"func (b *Broker) AddTopic(subscriber *Subscriber, keyTopic string, priority uint, action func(msg interface{}) (err error)) {\n\n\tt := &topicSub{priority: priority, action: action, channel: make(chan interface{}, 1)}\n\n\tsubscriber.topic = t\n\n\tsubscriber.debug = keyTopic\n\t//subscriber.byPriority = append(subscriber.byPriority, t)\n\n\t// Sort topics by priority, will be useful to manage priorities after\n\n\tb.addSubscriber(keyTopic, subscriber)\n\n\t// Sort byPriority array\n\t//\tsort.SliceStable(subscriber.byPriority, func(i, j int) bool { return subscriber.byPriority[i].priority < subscriber.byPriority[j].priority })\n}",
"func Register(c *client.Client) {\n\tctrlz.RegisterTopic(CreateTopic(c))\n}",
"func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Add(ctx context.Context, reqObj *GovernancePolicyTemplate) (resObj *GovernancePolicyTemplate, err error) {\n\terr = r.JSONRequest(ctx, \"POST\", \"\", reqObj, &resObj)\n\treturn\n}",
"func NewTopic(name string) Topic {\n\tct := &channeledTopic{\n\t\tname: name,\n\t\tsubscribers: make(map[uint64]*Subscription, 512), // Sane default space?\n\t}\n\treturn ct\n}",
"func (r *NATPolicyRulesResource) Create(item NATPolicyRulesConfig) error {\n\tif err := r.c.ModQuery(\"POST\", BasePath+NATPolicyRulesEndpoint, item); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}",
"func New(nameClient string) *PubSub {\n\n\tp := &PubSub{}\n\tsubscriptions = make(map[string]chan []byte)\n\n\topts := MQTT.NewClientOptions().AddBroker(\"tcp://127.0.0.1:1883\")\n\topts.SetClientID(nameClient)\n\topts.SetDefaultPublishHandler(f)\n\topts.SetOnConnectHandler(onConnection)\n\topts.SetAutoReconnect(true)\n\tp.Conn = MQTT.NewClient(opts)\n\treturn p\n}",
"func ExampleClient_BeginCreateOrUpdate() {\n\tcred, err := azidentity.NewDefaultAzureCredential(nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to obtain a credential: %v\", err)\n\t}\n\tctx := context.Background()\n\tclientFactory, err := armwebpubsub.NewClientFactory(\"<subscription-id>\", cred, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to create client: %v\", err)\n\t}\n\tpoller, err := clientFactory.NewClient().BeginCreateOrUpdate(ctx, \"myResourceGroup\", \"myWebPubSubService\", armwebpubsub.ResourceInfo{\n\t\tLocation: to.Ptr(\"eastus\"),\n\t\tTags: map[string]*string{\n\t\t\t\"key1\": to.Ptr(\"value1\"),\n\t\t},\n\t\tIdentity: &armwebpubsub.ManagedIdentity{\n\t\t\tType: to.Ptr(armwebpubsub.ManagedIdentityTypeSystemAssigned),\n\t\t},\n\t\tKind: to.Ptr(armwebpubsub.ServiceKindWebPubSub),\n\t\tProperties: &armwebpubsub.Properties{\n\t\t\tDisableAADAuth: to.Ptr(false),\n\t\t\tDisableLocalAuth: to.Ptr(false),\n\t\t\tLiveTraceConfiguration: &armwebpubsub.LiveTraceConfiguration{\n\t\t\t\tCategories: []*armwebpubsub.LiveTraceCategory{\n\t\t\t\t\t{\n\t\t\t\t\t\tName: to.Ptr(\"ConnectivityLogs\"),\n\t\t\t\t\t\tEnabled: to.Ptr(\"true\"),\n\t\t\t\t\t}},\n\t\t\t\tEnabled: to.Ptr(\"false\"),\n\t\t\t},\n\t\t\tNetworkACLs: &armwebpubsub.NetworkACLs{\n\t\t\t\tDefaultAction: to.Ptr(armwebpubsub.ACLActionDeny),\n\t\t\t\tPrivateEndpoints: []*armwebpubsub.PrivateEndpointACL{\n\t\t\t\t\t{\n\t\t\t\t\t\tAllow: []*armwebpubsub.WebPubSubRequestType{\n\t\t\t\t\t\t\tto.Ptr(armwebpubsub.WebPubSubRequestTypeServerConnection)},\n\t\t\t\t\t\tName: to.Ptr(\"mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e\"),\n\t\t\t\t\t}},\n\t\t\t\tPublicNetwork: &armwebpubsub.NetworkACL{\n\t\t\t\t\tAllow: []*armwebpubsub.WebPubSubRequestType{\n\t\t\t\t\t\tto.Ptr(armwebpubsub.WebPubSubRequestTypeClientConnection)},\n\t\t\t\t},\n\t\t\t},\n\t\t\tPublicNetworkAccess: to.Ptr(\"Enabled\"),\n\t\t\tTLS: &armwebpubsub.TLSSettings{\n\t\t\t\tClientCertEnabled: to.Ptr(false),\n\t\t\t},\n\t\t},\n\t\tSKU: &armwebpubsub.ResourceSKU{\n\t\t\tName: to.Ptr(\"Premium_P1\"),\n\t\t\tCapacity: to.Ptr[int32](1),\n\t\t\tTier: to.Ptr(armwebpubsub.WebPubSubSKUTierPremium),\n\t\t},\n\t}, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to finish the request: %v\", err)\n\t}\n\tres, err := poller.PollUntilDone(ctx, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to pull the result: %v\", err)\n\t}\n\t// You could use response here. We use blank identifier for just demo purposes.\n\t_ = res\n\t// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.\n\t// res.ResourceInfo = armwebpubsub.ResourceInfo{\n\t// \tName: to.Ptr(\"myWebPubSubService\"),\n\t// \tType: to.Ptr(\"Microsoft.SignalRService/WebPubSub\"),\n\t// \tID: to.Ptr(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService\"),\n\t// \tSystemData: &armwebpubsub.SystemData{\n\t// \t\tCreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, \"2015-02-03T04:05:06Z\"); return t}()),\n\t// \t\tCreatedBy: to.Ptr(\"string\"),\n\t// \t\tCreatedByType: to.Ptr(armwebpubsub.CreatedByTypeUser),\n\t// \t\tLastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, \"2015-02-03T04:05:06Z\"); return t}()),\n\t// \t\tLastModifiedBy: to.Ptr(\"string\"),\n\t// \t\tLastModifiedByType: to.Ptr(armwebpubsub.CreatedByTypeUser),\n\t// \t},\n\t// \tLocation: to.Ptr(\"eastus\"),\n\t// \tTags: map[string]*string{\n\t// \t\t\"key1\": to.Ptr(\"value1\"),\n\t// \t},\n\t// \tIdentity: &armwebpubsub.ManagedIdentity{\n\t// \t\tType: to.Ptr(armwebpubsub.ManagedIdentityTypeSystemAssigned),\n\t// \t\tPrincipalID: to.Ptr(\"00000000-0000-0000-0000-000000000000\"),\n\t// \t\tTenantID: to.Ptr(\"00000000-0000-0000-0000-000000000000\"),\n\t// \t},\n\t// \tKind: to.Ptr(armwebpubsub.ServiceKindWebPubSub),\n\t// \tProperties: &armwebpubsub.Properties{\n\t// \t\tDisableAADAuth: to.Ptr(false),\n\t// \t\tDisableLocalAuth: to.Ptr(false),\n\t// \t\tExternalIP: to.Ptr(\"10.0.0.1\"),\n\t// \t\tHostName: to.Ptr(\"mywebpubsubservice.webpubsub.azure.com\"),\n\t// \t\tLiveTraceConfiguration: &armwebpubsub.LiveTraceConfiguration{\n\t// \t\t\tCategories: []*armwebpubsub.LiveTraceCategory{\n\t// \t\t\t\t{\n\t// \t\t\t\t\tName: to.Ptr(\"ConnectivityLogs\"),\n\t// \t\t\t\t\tEnabled: to.Ptr(\"true\"),\n\t// \t\t\t}},\n\t// \t\t\tEnabled: to.Ptr(\"false\"),\n\t// \t\t},\n\t// \t\tNetworkACLs: &armwebpubsub.NetworkACLs{\n\t// \t\t\tDefaultAction: to.Ptr(armwebpubsub.ACLActionDeny),\n\t// \t\t\tPrivateEndpoints: []*armwebpubsub.PrivateEndpointACL{\n\t// \t\t\t\t{\n\t// \t\t\t\t\tAllow: []*armwebpubsub.WebPubSubRequestType{\n\t// \t\t\t\t\t\tto.Ptr(armwebpubsub.WebPubSubRequestTypeServerConnection)},\n\t// \t\t\t\t\t\tName: to.Ptr(\"mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e\"),\n\t// \t\t\t\t}},\n\t// \t\t\t\tPublicNetwork: &armwebpubsub.NetworkACL{\n\t// \t\t\t\t\tAllow: []*armwebpubsub.WebPubSubRequestType{\n\t// \t\t\t\t\t\tto.Ptr(armwebpubsub.WebPubSubRequestTypeClientConnection)},\n\t// \t\t\t\t\t},\n\t// \t\t\t\t},\n\t// \t\t\t\tPrivateEndpointConnections: []*armwebpubsub.PrivateEndpointConnection{\n\t// \t\t\t\t\t{\n\t// \t\t\t\t\t\tName: to.Ptr(\"mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e\"),\n\t// \t\t\t\t\t\tType: to.Ptr(\"Microsoft.SignalRService/WebPubSub/privateEndpointConnections\"),\n\t// \t\t\t\t\t\tID: to.Ptr(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/privateEndpointConnections/mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e\"),\n\t// \t\t\t\t\t\tSystemData: &armwebpubsub.SystemData{\n\t// \t\t\t\t\t\t\tCreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, \"2015-02-03T04:05:06Z\"); return t}()),\n\t// \t\t\t\t\t\t\tCreatedBy: to.Ptr(\"string\"),\n\t// \t\t\t\t\t\t\tCreatedByType: to.Ptr(armwebpubsub.CreatedByTypeUser),\n\t// \t\t\t\t\t\t\tLastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, \"2015-02-03T04:05:06Z\"); return t}()),\n\t// \t\t\t\t\t\t\tLastModifiedBy: to.Ptr(\"string\"),\n\t// \t\t\t\t\t\t\tLastModifiedByType: to.Ptr(armwebpubsub.CreatedByTypeUser),\n\t// \t\t\t\t\t\t},\n\t// \t\t\t\t\t\tProperties: &armwebpubsub.PrivateEndpointConnectionProperties{\n\t// \t\t\t\t\t\t\tPrivateEndpoint: &armwebpubsub.PrivateEndpoint{\n\t// \t\t\t\t\t\t\t\tID: to.Ptr(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint\"),\n\t// \t\t\t\t\t\t\t},\n\t// \t\t\t\t\t\t\tPrivateLinkServiceConnectionState: &armwebpubsub.PrivateLinkServiceConnectionState{\n\t// \t\t\t\t\t\t\t\tActionsRequired: to.Ptr(\"None\"),\n\t// \t\t\t\t\t\t\t\tStatus: to.Ptr(armwebpubsub.PrivateLinkServiceConnectionStatusApproved),\n\t// \t\t\t\t\t\t\t},\n\t// \t\t\t\t\t\t\tProvisioningState: to.Ptr(armwebpubsub.ProvisioningStateSucceeded),\n\t// \t\t\t\t\t\t},\n\t// \t\t\t\t}},\n\t// \t\t\t\tProvisioningState: to.Ptr(armwebpubsub.ProvisioningStateSucceeded),\n\t// \t\t\t\tPublicNetworkAccess: to.Ptr(\"Enabled\"),\n\t// \t\t\t\tPublicPort: to.Ptr[int32](443),\n\t// \t\t\t\tResourceLogConfiguration: &armwebpubsub.ResourceLogConfiguration{\n\t// \t\t\t\t\tCategories: []*armwebpubsub.ResourceLogCategory{\n\t// \t\t\t\t\t\t{\n\t// \t\t\t\t\t\t\tName: to.Ptr(\"ConnectivityLogs\"),\n\t// \t\t\t\t\t\t\tEnabled: to.Ptr(\"true\"),\n\t// \t\t\t\t\t}},\n\t// \t\t\t\t},\n\t// \t\t\t\tServerPort: to.Ptr[int32](443),\n\t// \t\t\t\tTLS: &armwebpubsub.TLSSettings{\n\t// \t\t\t\t\tClientCertEnabled: to.Ptr(true),\n\t// \t\t\t\t},\n\t// \t\t\t\tVersion: to.Ptr(\"1.0\"),\n\t// \t\t\t},\n\t// \t\t\tSKU: &armwebpubsub.ResourceSKU{\n\t// \t\t\t\tName: to.Ptr(\"Premium_P1\"),\n\t// \t\t\t\tCapacity: to.Ptr[int32](1),\n\t// \t\t\t\tSize: to.Ptr(\"P1\"),\n\t// \t\t\t\tTier: to.Ptr(armwebpubsub.WebPubSubSKUTierPremium),\n\t// \t\t\t},\n\t// \t\t}\n}",
"func resourceHelmfileReleaseCreate(d *schema.ResourceData, _ interface{}) (finalErr error) {\n\tdefer func() {\n\t\tif err := recover(); err != nil {\n\t\t\tfinalErr = fmt.Errorf(\"unhandled error: %v\\n%s\", err, debug.Stack())\n\t\t}\n\t}()\n\n\trs, err := NewReleaseSetWithSingleRelease(d)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif err := CreateReleaseSet(newContext(d), rs, d); err != nil {\n\t\treturn err\n\t}\n\n\td.MarkNewResource()\n\n\t//create random uuid for the id\n\tid := xid.New().String()\n\td.SetId(id)\n\n\treturn nil\n}",
"func NewTopic(workers int) *Topic {\n\tt := &Topic{\n\t\tsubs: make(map[chan interface{}]context.Context),\n\t\tpubs: make(chan Work),\n\t\tend: make(chan bool),\n\t\tworkerChan: make(chan chan Work),\n\t}\n\tfor i := 0; i < workers; i++ {\n\t\tt.workers = append(t.workers, NewWorker(t.workerChan))\n\t}\n\tt.Start()\n\treturn t\n}",
"func GeneratePolicy(sensorUrl string, sensorOrg string, sensorName string, sensorVersion string, arch string, props *map[string]interface{}, haPartners []string, meterPolicy Meter, counterPartyProperties RequiredProperty, agps []AgreementProtocol, maxAgreements int, filePath string, deviceOrg string) (*events.PolicyCreatedMessage, error) {\n\n\tglog.V(5).Infof(\"Generating policy for %v/%v\", sensorOrg, sensorUrl)\n\n\t// Generate a policy file name\n\ta_tmp := strings.Split(sensorUrl, \"/\")\n\tfileName := fmt.Sprintf(\"%v_%v\", sensorOrg, a_tmp[len(a_tmp)-1])\n\n\tp := Policy_Factory(\"Policy for \" + fileName)\n\tp.Add_API_Spec(APISpecification_Factory(sensorUrl, sensorOrg, sensorVersion, arch))\n\n\tif len(agps) != 0 {\n\t\tfor _, agpEle := range agps {\n\t\t\tp.Add_Agreement_Protocol(&agpEle)\n\t\t}\n\t}\n\n\t// Add properties to the policy\n\tfor prop, val := range *props {\n\t\tp.Add_Property(Property_Factory(prop, val))\n\t}\n\n\t// Add HA configuration if there is any\n\tif len(haPartners) != 0 {\n\t\tp.Add_HAGroup(HAGroup_Factory(haPartners))\n\t}\n\n\t// Add Metering policy to the policy file\n\tif meterPolicy.Tokens != 0 {\n\t\tp.Add_DataVerification(DataVerification_Factory(\"\", \"\", \"\", 0, 0, meterPolicy))\n\t}\n\n\t// Add counterparty properties if there are any\n\tif len(counterPartyProperties) != 0 {\n\t\tp.Add_CounterPartyProperties(&counterPartyProperties)\n\t}\n\n\tp.MaxAgreements = maxAgreements\n\n\t// Store the policy on the filesystem\n\tif fullFileName, err := CreatePolicyFile(filePath, deviceOrg, fileName, p); err != nil {\n\t\treturn nil, err\n\t} else {\n\n\t\t// Create the new policy event\n\t\tmsg := events.NewPolicyCreatedMessage(events.NEW_POLICY, fullFileName)\n\t\treturn msg, nil\n\t}\n}",
"func CreateResource(kubedata *krd.GenericKubeResourceData, kubeclient *kubernetes.Clientset) (string, error) {\n\tif kubedata.Namespace == \"\" {\n\t\tkubedata.Namespace = \"default\"\n\t}\n\n\tif _, err := os.Stat(kubedata.YamlFilePath); err != nil {\n\t\treturn \"\", pkgerrors.New(\"File \" + kubedata.YamlFilePath + \" not found\")\n\t}\n\n\tlog.Println(\"Reading deployment YAML\")\n\trawBytes, err := ioutil.ReadFile(kubedata.YamlFilePath)\n\tif err != nil {\n\t\treturn \"\", pkgerrors.Wrap(err, \"Deployment YAML file read error\")\n\t}\n\n\tlog.Println(\"Decoding deployment YAML\")\n\tdecode := scheme.Codecs.UniversalDeserializer().Decode\n\tobj, _, err := decode(rawBytes, nil, nil)\n\tif err != nil {\n\t\treturn \"\", pkgerrors.Wrap(err, \"Deserialize deployment error\")\n\t}\n\n\tswitch o := obj.(type) {\n\tcase *appsV1.Deployment:\n\t\tkubedata.DeploymentData = o\n\tdefault:\n\t\treturn \"\", pkgerrors.New(kubedata.YamlFilePath + \" contains another resource different than Deployment\")\n\t}\n\n\tkubedata.DeploymentData.Namespace = kubedata.Namespace\n\tkubedata.DeploymentData.Name = kubedata.InternalVNFID + \"-\" + kubedata.DeploymentData.Name\n\n\tresult, err := kubeclient.AppsV1().Deployments(kubedata.Namespace).Create(kubedata.DeploymentData)\n\tif err != nil {\n\t\treturn \"\", pkgerrors.Wrap(err, \"Create Deployment error\")\n\t}\n\n\treturn result.GetObjectMeta().GetName(), nil\n}",
"func CreateCreateTopicRequest() (request *CreateTopicRequest) {\n\trequest = &CreateTopicRequest{\n\t\tRpcRequest: &requests.RpcRequest{},\n\t}\n\trequest.InitWithApiInfo(\"alikafka\", \"2019-09-16\", \"CreateTopic\", \"alikafka\", \"openAPI\")\n\trequest.Method = requests.POST\n\treturn\n}",
"func ensureSubscriptionCreated(subscription *eventingv1alpha1.Subscription, ctx context.Context) {\n\n\tBy(fmt.Sprintf(\"Ensuring the test namespace %q is created\", subscription.Namespace))\n\tif subscription.Namespace != \"default \" {\n\t\t// create testing namespace\n\t\tnamespace := fixtureNamespace(subscription.Namespace)\n\t\tif namespace.Name != \"default\" {\n\t\t\terr := k8sClient.Create(ctx, namespace)\n\t\t\tfmt.Println(err)\n\t\t\tExpect(err).ShouldNot(HaveOccurred())\n\t\t}\n\t}\n\n\tBy(fmt.Sprintf(\"Ensuring the subscription %q is created\", subscription.Name))\n\t// create subscription\n\terr := k8sClient.Create(ctx, subscription)\n\tExpect(err).Should(BeNil())\n}",
"func (r *resource) Create(resource meta.ResourceObject) error {\n\tlog := log.With(\"kind\", resource.GetObjectKind().GroupVersionKind().Kind, \"name\", resource.GetName(), \"namespace\", resource.GetNamespace())\n\tlog.Debug(\"Creating\")\n\tif err := r.client.ControlCli.Create(context.TODO(), resource); err != nil {\n\t\tlog.Warn(\"Failed to create object. \", err)\n\t\treturn err\n\t}\n\treturn nil\n}"
] | [
"0.599663",
"0.5627268",
"0.555316",
"0.5465115",
"0.54555184",
"0.5447471",
"0.5399893",
"0.536426",
"0.53497285",
"0.5345789",
"0.5342807",
"0.5270287",
"0.5245385",
"0.5235962",
"0.5218648",
"0.51933795",
"0.51793176",
"0.5168866",
"0.5149672",
"0.51373297",
"0.5133087",
"0.5105699",
"0.5094352",
"0.508123",
"0.5064413",
"0.5057558",
"0.50456583",
"0.50329363",
"0.50223136",
"0.5016474",
"0.5015005",
"0.50140315",
"0.50083643",
"0.5007081",
"0.49523774",
"0.4950226",
"0.4938156",
"0.49370065",
"0.49147642",
"0.49061507",
"0.49049032",
"0.48877367",
"0.48707044",
"0.48540473",
"0.48442787",
"0.48334938",
"0.48322624",
"0.4823088",
"0.4818073",
"0.4816269",
"0.481581",
"0.48123044",
"0.4776832",
"0.47662988",
"0.47633",
"0.47472385",
"0.4726858",
"0.47229916",
"0.47216338",
"0.47104213",
"0.46908018",
"0.46875396",
"0.46787763",
"0.46781257",
"0.4674337",
"0.46683794",
"0.46575445",
"0.46567833",
"0.46501237",
"0.46350867",
"0.4630753",
"0.46292785",
"0.46211573",
"0.46180862",
"0.46023175",
"0.45985225",
"0.4595251",
"0.4589578",
"0.45833993",
"0.4580928",
"0.4580705",
"0.45782763",
"0.45663932",
"0.45536408",
"0.45505235",
"0.45465863",
"0.45452258",
"0.45370722",
"0.4533121",
"0.45266697",
"0.45185575",
"0.45183957",
"0.4516097",
"0.45114076",
"0.45103166",
"0.45030499",
"0.45023766",
"0.44901443",
"0.44886535",
"0.44855294"
] | 0.5592792 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.