query
stringlengths
10
3.85k
ru_query
stringlengths
9
3.76k
document
stringlengths
17
430k
metadata
dict
negatives
listlengths
97
100
negative_scores
listlengths
97
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Deprecated: Use RunOpsReq.ProtoReflect.Descriptor instead.
Устарело: используйте RunOpsReq.ProtoReflect.Descriptor вместо этого.
func (*RunOpsReq) Descriptor() ([]byte, []int) { return file_api_ops_proto_rawDescGZIP(), []int{15} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}", "func (*PatchTasksRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{154}\n}", "func (*UpdateTensorboardRunReque...
[ "0.7107612", "0.7017801", "0.6950608", "0.67722416", "0.6765324", "0.6752489", "0.67259437", "0.67221236", "0.6707314", "0.67040014", "0.66941196", "0.6678439", "0.6670832", "0.6666073", "0.6662944", "0.66578716", "0.6657816", "0.66495866", "0.664471", "0.66404855", "0.663125...
0.7500174
0
Deprecated: Use RunOpsRes.ProtoReflect.Descriptor instead.
Устарело: используйте RunOpsRes.ProtoReflect.Descriptor вместо этого.
func (*RunOpsRes) Descriptor() ([]byte, []int) { return file_api_ops_proto_rawDescGZIP(), []int{16} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*RunOpsReq) Descriptor() ([]byte, []int) {\n\treturn file_api_ops_proto_rawDescGZIP(), []int{15}\n}", "func (*UpdateTensorboardRunRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{24}\n}", "func (*GetTensorboardRunRequest) Des...
[ "0.6750467", "0.67362535", "0.6681629", "0.66724443", "0.66413933", "0.66265243", "0.6616651", "0.6573871", "0.65253603", "0.6516421", "0.65161854", "0.65145516", "0.650977", "0.64996266", "0.6403638", "0.63801986", "0.6372133", "0.6363645", "0.6316747", "0.6310355", "0.63045...
0.70218784
0
TryUnlock closes and removes the lockfile
TryUnlock закрывает и удаляет файл с замком
func (s *Single) TryUnlock() error { if err := s.file.Close(); err != nil { return fmt.Errorf("failed to close the lock file: %v", err) } if err := os.Remove(s.Filename()); err != nil { return fmt.Errorf("failed to remove the lock file: %v", err) } return nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (l *lock) Unlock() error {\n\treturn l.file.Close()\n}", "func (l *NullPathLocker) Unlock() {}", "func release() error {\n\tif disabled() {\n\t\treturn nil\n\t}\n\n\tpath, err := path(lockFile)\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn os.Remove(path)\n}", "func (l *Lock) Unlock() (err error) {\...
[ "0.7291195", "0.71327233", "0.7082573", "0.6988317", "0.6927185", "0.6922704", "0.69134337", "0.6886802", "0.6824476", "0.68202007", "0.67619586", "0.671021", "0.664967", "0.6605279", "0.6600593", "0.65595156", "0.65485597", "0.65302503", "0.65296257", "0.65162563", "0.650584...
0.7891906
0
NewLocalCollector returns a Collector that writes directly to a Store.
NewLocalCollector возвращает Collector, который записывает данные напрямую в Store.
func NewLocalCollector(s Store) Collector { return s }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewCollector(store *store.MemoryStore) *Collector {\n\treturn &Collector{\n\t\tstore: store,\n\t\tstopChan: make(chan struct{}),\n\t\tdoneChan: make(chan struct{}),\n\t}\n}", "func NewCollector() collector.RPCCollector {\n\treturn &storageCollector{}\n}", "func NewCollector() Collector {\n\treturn make...
[ "0.7043134", "0.6845503", "0.6701996", "0.6606692", "0.6517277", "0.6481328", "0.63933116", "0.6308921", "0.62407637", "0.62237227", "0.6169103", "0.6142803", "0.6077568", "0.60701793", "0.60639817", "0.6062933", "0.60500205", "0.6038892", "0.5981425", "0.59649676", "0.592751...
0.8576599
0
newCollectPacket returns an initialized wire.CollectPacket given a span and set of annotations.
newCollectPacket возвращает инициализированный wire.CollectPacket, заданный спаном и набором аннотаций.
func newCollectPacket(s SpanID, as Annotations) *wire.CollectPacket { return &wire.CollectPacket{ Spanid: s.wire(), Annotation: as.wire(), } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (cc *ChunkedCollector) Collect(span SpanID, anns ...Annotation) error {\n\tcc.mu.Lock()\n\tdefer cc.mu.Unlock()\n\n\tif cc.stopped {\n\t\treturn errors.New(\"ChunkedCollector is stopped\")\n\t}\n\tif !cc.started {\n\t\tcc.start()\n\t}\n\n\tif cc.pendingBySpanID == nil {\n\t\tcc.pendingBySpanID = map[SpanID]*w...
[ "0.5870983", "0.58339983", "0.5465129", "0.54080963", "0.54068404", "0.53500813", "0.53196156", "0.5210788", "0.5104033", "0.50751895", "0.49993894", "0.4986562", "0.49562997", "0.4911006", "0.4851788", "0.48231903", "0.48181325", "0.48133972", "0.48114294", "0.47517624", "0....
0.87639284
0
Collect adds the span and annotations to a local buffer until the next call to Flush (or when MinInterval elapses), at which point they are sent (grouped by span) to the underlying collector.
Collect добавляет спан и аннотации в локальный буфер до следующего вызова Flush (или при наступлении MinInterval), после чего они отправляются (сгруппированные по спанам) в нижележащий сборщик.
func (cc *ChunkedCollector) Collect(span SpanID, anns ...Annotation) error { cc.mu.Lock() defer cc.mu.Unlock() if cc.stopped { return errors.New("ChunkedCollector is stopped") } if !cc.started { cc.start() } if cc.pendingBySpanID == nil { cc.pendingBySpanID = map[SpanID]*wire.CollectPacket{} } if p, p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (as *AggregateStore) Collect(id SpanID, anns ...Annotation) error {\n\tas.mu.Lock()\n\tdefer as.mu.Unlock()\n\n\t// Initialization\n\tif as.groups == nil {\n\t\tas.groups = make(map[ID]*spanGroup)\n\t\tas.groupsByName = make(map[string]ID)\n\t\tas.pre = &LimitStore{\n\t\t\tMax: as.MaxRate,\n\t\t\tDele...
[ "0.6309139", "0.62056905", "0.59496146", "0.5861292", "0.58595854", "0.5749108", "0.5731653", "0.57281625", "0.56668395", "0.5666777", "0.5659342", "0.5649344", "0.55813223", "0.55552435", "0.55202997", "0.55081296", "0.54767895", "0.54767895", "0.54666686", "0.545717", "0.54...
0.7222805
0
Flush immediately sends all pending spans to the underlying collector.
Flush сразу отправляет все ожидающие спаны внизу лежащему собирателю.
func (cc *ChunkedCollector) Flush() error { cc.mu.Lock() pendingBySpanID := cc.pendingBySpanID pending := cc.pending cc.pendingBySpanID = nil cc.pending = nil cc.mu.Unlock() var errs []error for _, spanID := range pending { p := pendingBySpanID[spanID] if err := cc.Collector.Collect(spanIDFromWire(p.Spanid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Collector) Flush() error {\n\treturn s.flusher.Flush(s.stats)\n}", "func (c *HTTPCollector) flush(b []*zipkincore.Span) (err error) {\n\tdefer func() {\n\t\tc.batchPool.Put(b[:0])\n\t\tif err != nil {\n\t\t\tc.logger.Log(\"err\", err)\n\t\t}\n\t}()\n\n\t// Do not send an empty batch\n\tif len(b) == 0 {\...
[ "0.7013252", "0.70100605", "0.68950844", "0.67272437", "0.67241", "0.6619081", "0.65922195", "0.6541169", "0.6531564", "0.64752495", "0.6468364", "0.64626235", "0.6339146", "0.6326567", "0.63122135", "0.63055515", "0.62817365", "0.6278763", "0.6242171", "0.6241586", "0.619008...
0.7357907
0
NewRemoteCollector creates a collector that sends data to a collector server (created with NewServer). It sends data immediately when Collect is called. To send data in chunks, use a ChunkedCollector.
NewRemoteCollector создает сборщик, отправляющий данные на сервер сборщика (созданный с помощью NewServer). Он сразу отправляет данные при вызове Collect. Чтобы отправлять данные порциями, используйте ChunkedCollector.
func NewRemoteCollector(addr string) *RemoteCollector { return &RemoteCollector{ addr: addr, dial: func() (net.Conn, error) { return net.Dial("tcp", addr) }, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewRemoteAmboyStatsCollector(env cedar.Environment, id string) amboy.Job {\n\tj := makeAmboyStatsCollector()\n\tj.ExcludeLocal = true\n\tj.env = env\n\tj.SetID(fmt.Sprintf(\"%s-%s\", amboyStatsCollectorJobName, id))\n\treturn j\n}", "func NewCollector() *Collector {\n\tcollector := &Collector{\n\t\tresults:...
[ "0.6678328", "0.6632261", "0.65414196", "0.6530185", "0.6512622", "0.64971226", "0.6375079", "0.63555616", "0.62438387", "0.6209447", "0.62021196", "0.6182788", "0.61450464", "0.61132157", "0.6028201", "0.5957508", "0.5919775", "0.59160614", "0.5884967", "0.584295", "0.581836...
0.7760482
0
NewTLSRemoteCollector creates a RemoteCollector that uses TLS.
NewTLSRemoteCollector создает RemoteCollector, который использует TLS.
func NewTLSRemoteCollector(addr string, tlsConfig *tls.Config) *RemoteCollector { return &RemoteCollector{ addr: addr, dial: func() (net.Conn, error) { return tls.Dial("tcp", addr, tlsConfig) }, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewTLSConnection(\n\tsrvRemote Remote,\n\trootCerts []byte,\n\terrorUnwrapper ErrorUnwrapper,\n\thandler ConnectionHandler,\n\tlogFactory LogFactory,\n\tinstrumenterStorage NetworkInstrumenterStorage,\n\tlogOutput LogOutputWithDepthAdder,\n\tmaxFrameLength int32,\n\topts ConnectionOpts,\n) *Connection {\n\ttr...
[ "0.62902963", "0.616452", "0.6161178", "0.58453023", "0.58117586", "0.5769236", "0.5683554", "0.5679266", "0.5537916", "0.5532538", "0.5434783", "0.5386184", "0.53491753", "0.53105533", "0.53019303", "0.5281855", "0.5261915", "0.5235258", "0.52274466", "0.52274024", "0.522740...
0.8349122
0
connect makes a connection to the collector server. It must be called with rc.mu held.
connect устанавливает соединение с сервером сбора данных. Его необходимо вызывать с держанием rc.mu.
func (rc *RemoteCollector) connect() error { if rc.pconn != nil { rc.pconn.Close() rc.pconn = nil } c, err := rc.dial() if err == nil { // Create a protobuf delimited writer wrapping the connection. When the // writer is closed, it also closes the underlying connection (see // source code for details). ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Slave) connect(uri string, options Options) (err error) {\n\tdsn, opts, err := parseOptions(uri, options)\n\tif err != nil {\n\t\treturn\n\t}\n\tconn, err := newConn(context.Background(), dsn.Scheme, dsn.Host, opts)\n\tif err != nil {\n\t\treturn\n\t}\n\ts.c = conn\n\ts.cr = bufio.NewReaderSize(s.c.tcpCon...
[ "0.67077905", "0.6634654", "0.6631335", "0.65912145", "0.6491219", "0.64541703", "0.64315164", "0.6377671", "0.6353071", "0.63220286", "0.6295981", "0.62878853", "0.626565", "0.6226095", "0.6194442", "0.6186907", "0.6164935", "0.6159773", "0.61356914", "0.6104107", "0.6100774...
0.7555079
0
NewServer creates and starts a new server that listens for spans and annotations on l and adds them to the collector c. Call the CollectorServer's Start method to start listening and serving.
NewServer создает и запускает новый сервер, который слушает спаны и аннотации на l и добавляет их в сборщик c. Вызовите метод Start у CollectorServer, чтобы начать прослушивание и обслуживание.
func NewServer(l net.Listener, c Collector) *CollectorServer { cs := &CollectorServer{c: c, l: l} return cs }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewServer(cfg config.Config, ll *log.Logger) *Server {\n\tif ll == nil {\n\t\tll = log.New(ioutil.Discard, \"\", 0)\n\t}\n\n\t// Set up Prometheus instrumentation using the typical Go collectors.\n\treg := prometheus.NewPedanticRegistry()\n\treg.MustRegister(\n\t\tprometheus.NewGoCollector(),\n\t\tprometheus....
[ "0.6450294", "0.6137566", "0.6124656", "0.60456717", "0.5995859", "0.598988", "0.5989809", "0.598493", "0.5978896", "0.59556425", "0.59531736", "0.5947071", "0.5943734", "0.5936937", "0.5906985", "0.5880917", "0.58790934", "0.5876771", "0.5866584", "0.5829714", "0.5829714", ...
0.78174824
0
NewUInt64 creates a new UInt64 with default values.
NewUInt64 создает новый UInt64 с default значениями.
func NewUInt64() *UInt64 { self := UInt64{} self.SetDefaults() return &self }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewUint64(x uint64) *Numeric {\n\tvar r Numeric\n\treturn r.SetUint64(x)\n}", "func NewUint64(store *store.Store, cfgPath string) *Uint64 {\n\tf := &Uint64{}\n\tf.init(store, f.mapCfgValue, cfgPath)\n\treturn f\n}", "func NewUint64(value uint64) *Uint64 {\n\treturn &Uint64{\n\t\tvalue: value,\n\t}\n}", ...
[ "0.78732526", "0.7719561", "0.7704975", "0.75963604", "0.75139385", "0.73335713", "0.7065201", "0.69081914", "0.6897038", "0.6895006", "0.6835414", "0.679808", "0.6780824", "0.6757169", "0.67129046", "0.6652362", "0.65899986", "0.65518826", "0.6498531", "0.6391094", "0.636019...
0.8665488
0
CloneUInt64Slice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
CloneUInt64Slice клонирует src в dst, вызывая Clone для каждого элемента в src. Вызывает панику, если len(dst) < len(src).
func CloneUInt64Slice(dst, src []UInt64) { for i := range src { dst[i] = *src[i].Clone() } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func CloneUInt8Slice(dst, src []UInt8) {\n\tfor i := range src {\n\t\tdst[i] = *src[i].Clone()\n\t}\n}", "func CloneImuSlice(dst, src []Imu) {\n\tfor i := range src {\n\t\tdst[i] = *src[i].Clone()\n\t}\n}", "func CloneFloat64Slice(dst, src []Float64) {\n\tfor i := range src {\n\t\tdst[i] = *src[i].Clone()\n\t}...
[ "0.6897268", "0.6507103", "0.6395663", "0.6381664", "0.61048645", "0.56997764", "0.5694446", "0.5657911", "0.5633476", "0.5577525", "0.55724555", "0.5572285", "0.5505419", "0.54988307", "0.5482363", "0.54418826", "0.5430907", "0.54308385", "0.5412383", "0.5385675", "0.5267024...
0.83064985
0
GetEcsServiceConfig returns config for aws_ecs_service
GetEcsServiceConfig возвращает конфиг для aws_ecs_service
func GetEcsServiceConfig(c *ecs.Service) []AWSResourceConfig { cf := EcsServiceConfig{ Config: Config{ Name: c.ServiceName, Tags: c.Tags, }, IamRole: c.Role, } return []AWSResourceConfig{{ Resource: cf, Metadata: c.AWSCloudFormationMetadata, }} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetServiceConfig(req *restful.Request, resp *restful.Response) {\n\tconst (\n\t\thandler = \"GetServiceConfig\"\n\t)\n\tspan := v1http.SetHTTPSpanContextInfo(req, handler)\n\tdefer span.Finish()\n\n\tr, err := generateData(req, getMultiCls)\n\tif err != nil {\n\t\tutils.SetSpanLogTagError(span, err)\n\t\tblog...
[ "0.6821646", "0.67600626", "0.66528106", "0.6580003", "0.657921", "0.6567093", "0.624718", "0.61671364", "0.6118922", "0.60779226", "0.60774213", "0.60474586", "0.59474874", "0.59273213", "0.5882051", "0.5842291", "0.5829497", "0.5804335", "0.57492363", "0.5749054", "0.574452...
0.83150405
0
GetPageConfig will parse the web post entry at filepath.
GetPageConfig будет парсить веб-пост в файле по пути filepath.
func GetPageConfig(filepath, sitepath string) (Post, error) { cfg, err := getPageConfig(filepath) if err != nil { return cfg, err } cfg.FilePath = filepath cfg.SitePath = sitepath if cfg.Date != "" { t, err := time.Parse(time.RFC3339, cfg.Date) if err != nil { return cfg, fmt.Errorf("parsing date %s: %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func ParseConfigFile(url string, wd *url.URL) (*Config, error) {\n\treturn ParseConfigFileWithSchemes(urlfetch.DefaultSchemes, url, wd)\n}", "func (o Ocs) GetConfig(w http.ResponseWriter, r *http.Request) {\n\tmustNotFail(render.Render(w, r, response.DataRender(&data.ConfigData{\n\t\tVersion: \"1.7\", // TODO g...
[ "0.5595617", "0.55334187", "0.55258375", "0.5509629", "0.5492174", "0.54913056", "0.5481108", "0.5445968", "0.54088974", "0.53772765", "0.5319755", "0.5253507", "0.5245969", "0.5245487", "0.5240613", "0.522218", "0.5200091", "0.520003", "0.51966673", "0.5176976", "0.51648146"...
0.776008
0
NewMockProviders creates a new mock instance
NewMockProviders создает новый экземпляр мока
func NewMockProviders(ctrl *gomock.Controller) *MockProviders { mock := &MockProviders{ctrl: ctrl} mock.recorder = &MockProvidersMockRecorder{mock} return mock }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewMock(middleware []Middleware) OrganizationService {\n\tvar svc OrganizationService = NewBasicOrganizationServiceServiceMock()\n\tfor _, m := range middleware {\n\t\tsvc = m(svc)\n\t}\n\treturn svc\n}", "func NewProviders() *Providers {\n\treturn &Providers{\n\t\tinternal: provider.Unknown,\n\t\tprovider...
[ "0.6564672", "0.6390504", "0.63529956", "0.62278885", "0.61835265", "0.6167602", "0.6167602", "0.6167602", "0.6167602", "0.6167602", "0.6167602", "0.6167602", "0.6167602", "0.61669147", "0.6132294", "0.60496056", "0.5984718", "0.59554595", "0.59195", "0.59074426", "0.5889402"...
0.7244181
0
ChannelProvider mocks base method
ChannelProvider имитирует базовый метод
func (m *MockProviders) ChannelProvider() fab.ChannelProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ChannelProvider") ret0, _ := ret[0].(fab.ChannelProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"ChannelProvider\")\n\tret0, _ := ret[0].(fab.ChannelProvider)\n\treturn ret0\n}", "func (m *MockRConnectionInterface) Channel() (*amqp.Channel, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Cha...
[ "0.74381363", "0.6751296", "0.6729731", "0.6153569", "0.61135983", "0.6057166", "0.6054517", "0.5930565", "0.5925086", "0.59205496", "0.59125435", "0.5870955", "0.5845958", "0.5832964", "0.5823897", "0.58165205", "0.5808184", "0.57830024", "0.57754666", "0.57749516", "0.57468...
0.72489923
1
EndpointConfig mocks base method
EndpointConfig подделывает базовый метод
func (m *MockProviders) EndpointConfig() fab.EndpointConfig { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EndpointConfig") ret0, _ := ret[0].(fab.EndpointConfig) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"EndpointConfig\")\n\tret0, _ := ret[0].(fab.EndpointConfig)\n\treturn ret0\n}", "func (m *MockConfiguration) IntrospectionEndpoint() op.Endpoint {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Introspecti...
[ "0.7284712", "0.62881446", "0.6148093", "0.607511", "0.60254085", "0.59867734", "0.59809434", "0.5971515", "0.5964234", "0.5937066", "0.5932493", "0.5927245", "0.58994836", "0.5884062", "0.58370537", "0.5783843", "0.5769066", "0.5700508", "0.5699805", "0.56984586", "0.5690053...
0.7244226
1
EndpointConfig indicates an expected call of EndpointConfig
EndpointConfig указывает на ожидаемый вызов EndpointConfig
func (mr *MockProvidersMockRecorder) EndpointConfig() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointConfig", reflect.TypeOf((*MockProviders)(nil).EndpointConfig)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) EndpointConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"EndpointConfig\", reflect.TypeOf((*MockClient)(nil).EndpointConfig))\n}", "func (m *MockClient) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\n\tret...
[ "0.7167553", "0.6726208", "0.67124325", "0.66572237", "0.5858098", "0.58116376", "0.5778302", "0.57659733", "0.5761034", "0.5759742", "0.57112086", "0.5677339", "0.5649133", "0.5614298", "0.56138974", "0.55987", "0.5568511", "0.5566935", "0.5559191", "0.5552176", "0.55307144"...
0.7092974
1
LocalDiscoveryProvider mocks base method
LocalDiscoveryProvider подделывает базовый метод
func (m *MockProviders) LocalDiscoveryProvider() fab.LocalDiscoveryProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LocalDiscoveryProvider") ret0, _ := ret[0].(fab.LocalDiscoveryProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"LocalDiscoveryProvider\")\n\tret0, _ := ret[0].(fab.LocalDiscoveryProvider)\n\treturn ret0\n}", "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\treturn c.localDis...
[ "0.7341058", "0.632302", "0.5986372", "0.58804214", "0.5836367", "0.56410253", "0.5597734", "0.5465775", "0.5429311", "0.54236996", "0.5394687", "0.53897685", "0.5385342", "0.53083503", "0.5291153", "0.5270716", "0.5252473", "0.52352184", "0.5203148", "0.5182315", "0.51554424...
0.7134569
1
SigningManager indicates an expected call of SigningManager
SigningManager указывает на ожидаемый вызов SigningManager
func (mr *MockProvidersMockRecorder) SigningManager() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockProviders)(nil).SigningManager)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) SigningManager() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SigningManager\", reflect.TypeOf((*MockClient)(nil).SigningManager))\n}", "func (pc *MockProviderContext) SigningManager() fab.SigningManager {\n\treturn pc.sign...
[ "0.7177863", "0.6207512", "0.6117189", "0.6066826", "0.59165514", "0.56492317", "0.5569576", "0.55575526", "0.5550145", "0.55306005", "0.552737", "0.55094844", "0.5454164", "0.54317886", "0.5427068", "0.5407418", "0.5390146", "0.5378672", "0.53569645", "0.53116786", "0.530559...
0.7240038
0
UserStore mocks base method
UserStore подделывает базовый метод
func (m *MockProviders) UserStore() msp.UserStore { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserStore") ret0, _ := ret[0].(msp.UserStore) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestUserstorage(t *testing.T) {\n t.Log(\"*** User data storage and retrieval test ***\")\n\n // initialize user\n u, err := InitUser(\"alice\",\"fubar\")\n if err != nil {\n t.Error(\"Failed to initialize user (\", err, \")\")\n } else {\n t.Log(\"Successfully stored user\", u)\n...
[ "0.7232572", "0.70759726", "0.6947042", "0.65885407", "0.6443902", "0.63073105", "0.62877065", "0.6251729", "0.6233818", "0.6186411", "0.61615545", "0.6143569", "0.60569364", "0.6051291", "0.60378027", "0.60374254", "0.6020175", "0.59906864", "0.5951722", "0.59318924", "0.590...
0.70885456
1
ChannelProvider mocks base method
ChannelProvider подделывает базовый метод
func (m *MockClient) ChannelProvider() fab.ChannelProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ChannelProvider") ret0, _ := ret[0].(fab.ChannelProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"ChannelProvider\")\n\tret0, _ := ret[0].(fab.ChannelProvider)\n\treturn ret0\n}", "func (m *MockRConnectionInterface) Channel() (*amqp.Channel, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"...
[ "0.72489923", "0.6751296", "0.6729731", "0.6153569", "0.61135983", "0.6057166", "0.6054517", "0.5930565", "0.5925086", "0.59205496", "0.59125435", "0.5870955", "0.5845958", "0.5832964", "0.5823897", "0.58165205", "0.5808184", "0.57830024", "0.57754666", "0.57749516", "0.57468...
0.74381363
0
ChannelProvider indicates an expected call of ChannelProvider
ChannelProvider указывает на ожидаемый вызов ChannelProvider
func (mr *MockClientMockRecorder) ChannelProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChannelProvider", reflect.TypeOf((*MockClient)(nil).ChannelProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) ChannelProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"ChannelProvider\", reflect.TypeOf((*MockProviders)(nil).ChannelProvider))\n}", "func (m *MockClient) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Help...
[ "0.69362783", "0.6633123", "0.65392905", "0.6514544", "0.6098021", "0.5991934", "0.59471476", "0.5913013", "0.572652", "0.5656788", "0.5588901", "0.5575467", "0.5548425", "0.5537879", "0.5521586", "0.5423457", "0.5391196", "0.53427863", "0.53340673", "0.5321305", "0.5308125",...
0.70414907
0
EndpointConfig mocks base method
EndpointConfig имитирует базовый метод
func (m *MockClient) EndpointConfig() fab.EndpointConfig { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EndpointConfig") ret0, _ := ret[0].(fab.EndpointConfig) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"EndpointConfig\")\n\tret0, _ := ret[0].(fab.EndpointConfig)\n\treturn ret0\n}", "func (m *MockConfiguration) IntrospectionEndpoint() op.Endpoint {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Introspe...
[ "0.7244226", "0.62881446", "0.6148093", "0.607511", "0.60254085", "0.59867734", "0.59809434", "0.5971515", "0.5964234", "0.5937066", "0.5932493", "0.5927245", "0.58994836", "0.5884062", "0.58370537", "0.5783843", "0.5769066", "0.5700508", "0.5699805", "0.56984586", "0.5690053...
0.7284712
0
EndpointConfig indicates an expected call of EndpointConfig
EndpointConfig указывает на ожидаемый вызов EndpointConfig
func (mr *MockClientMockRecorder) EndpointConfig() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointConfig", reflect.TypeOf((*MockClient)(nil).EndpointConfig)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) EndpointConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"EndpointConfig\", reflect.TypeOf((*MockProviders)(nil).EndpointConfig))\n}", "func (m *MockClient) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\...
[ "0.7092505", "0.6726043", "0.6712356", "0.66571766", "0.58584934", "0.58116233", "0.5779489", "0.5766345", "0.57622665", "0.5760675", "0.5710803", "0.5678078", "0.5649989", "0.5614974", "0.5614144", "0.5599985", "0.55683404", "0.5567277", "0.55581975", "0.5552659", "0.5530678...
0.71669585
0
EnrollmentCertificate mocks base method
EnrollmentCertificate имитирует базовый метод
func (m *MockClient) EnrollmentCertificate() []byte { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnrollmentCertificate") ret0, _ := ret[0].([]byte) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *MockPeer) EnrollmentCertificate() *pem.Block {\r\n\treturn p.MockCert\r\n}", "func (p *MockPeer) EnrollmentCertificate() *pem.Block {\n\treturn p.MockCert\n}", "func (p *MockPeer) SetEnrollmentCertificate(pem *pem.Block) {\r\n\tp.MockCert = pem\r\n}", "func TestCertificate(t *testing.T) {\n\tvar res...
[ "0.65888923", "0.6234504", "0.6047892", "0.5979052", "0.59607357", "0.57190853", "0.5717269", "0.57069105", "0.570556", "0.5667811", "0.5661763", "0.56102765", "0.55863565", "0.55735624", "0.54910034", "0.543021", "0.5408378", "0.5405969", "0.53821886", "0.5354804", "0.531949...
0.76188767
0
LocalDiscoveryProvider mocks base method
LocalDiscoveryProvider мокирует базовый метод
func (m *MockClient) LocalDiscoveryProvider() fab.LocalDiscoveryProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LocalDiscoveryProvider") ret0, _ := ret[0].(fab.LocalDiscoveryProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"LocalDiscoveryProvider\")\n\tret0, _ := ret[0].(fab.LocalDiscoveryProvider)\n\treturn ret0\n}", "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\treturn c.local...
[ "0.7134569", "0.632302", "0.5986372", "0.58804214", "0.5836367", "0.56410253", "0.5597734", "0.5465775", "0.5429311", "0.54236996", "0.5394687", "0.53897685", "0.5385342", "0.53083503", "0.5291153", "0.5270716", "0.5252473", "0.52352184", "0.5203148", "0.5182315", "0.51554424...
0.7341058
0
LocalDiscoveryProvider indicates an expected call of LocalDiscoveryProvider
LocalDiscoveryProvider указывает на ожидаемый вызов LocalDiscoveryProvider
func (mr *MockClientMockRecorder) LocalDiscoveryProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalDiscoveryProvider", reflect.TypeOf((*MockClient)(nil).LocalDiscoveryProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\treturn c.localDiscoveryProvider\n}", "func (mr *MockProvidersMockRecorder) LocalDiscoveryProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"LocalDiscoveryProvider\", reflect.Ty...
[ "0.7037146", "0.7020437", "0.66114974", "0.6474944", "0.5546048", "0.5539704", "0.55262434", "0.55180764", "0.5477116", "0.5337827", "0.52536297", "0.52428377", "0.5181303", "0.5100078", "0.5093676", "0.509003", "0.5075192", "0.5007985", "0.49998957", "0.49982086", "0.4970017...
0.71185607
0
PrivateKey mocks base method
Мокирование базового метода PrivateKey
func (m *MockClient) PrivateKey() core.Key { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PrivateKey") ret0, _ := ret[0].(core.Key) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockisCryptoAsymApiReqSetupPrivateKeyEx_Key) isCryptoAsymApiReqSetupPrivateKeyEx_Key() {\n\tm.ctrl.Call(m, \"isCryptoAsymApiReqSetupPrivateKeyEx_Key\")\n}", "func (c *HTTPClientMock) APIKeyPrivate() string {\n\treturn c.apiKeyPrivate\n}", "func (c CryptoServiceTester) TestGetPrivateKeyMultipleKeystore...
[ "0.68074006", "0.6719014", "0.6577349", "0.65547884", "0.655193", "0.6528726", "0.6515265", "0.6143082", "0.6138266", "0.6138245", "0.61061144", "0.6056119", "0.6028489", "0.60039204", "0.5974573", "0.59328353", "0.5916291", "0.59109217", "0.58914673", "0.5878999", "0.5856995...
0.7180571
0
PrivateKey indicates an expected call of PrivateKey
PrivateKey указывает на ожидаемый вызов PrivateKey
func (mr *MockClientMockRecorder) PrivateKey() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivateKey", reflect.TypeOf((*MockClient)(nil).PrivateKey)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PrivateKeyValidate(priv *rsa.PrivateKey,) error", "func (o *PipelineSshKeyPairAllOf) GetPrivateKeyOk() (*string, bool) {\n\tif o == nil || o.PrivateKey == nil {\n\t\treturn nil, false\n\t}\n\treturn o.PrivateKey, true\n}", "func (o *TppCertificateParams) GetPrivateKeyOk() (*string, bool) {\n\tif o == nil ...
[ "0.74063396", "0.68982327", "0.6687545", "0.6668617", "0.66394156", "0.66042066", "0.64109045", "0.638909", "0.63769555", "0.63654226", "0.6331232", "0.63108945", "0.62955505", "0.6252219", "0.62332714", "0.62081003", "0.6194143", "0.61720526", "0.6162626", "0.615435", "0.610...
0.70924914
1
PublicVersion mocks base method
PublicVersion имитирует базовый метод
func (m *MockClient) PublicVersion() msp.Identity { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PublicVersion") ret0, _ := ret[0].(msp.Identity) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestVersion(t *testing.T) {\n\t//fmt.Println(\"EliteProvision [\" + Version() + \"]\")\n}", "func newVersionCheckerMock(version string, tags []string) *VersionChecker {\n\n\tfixedAppVersion := fixVersion(version)\n\n\treturn &VersionChecker{\n\t\tfixedAppVersion: fixedAppVersion,\n\t\tversionSource: &versio...
[ "0.68449587", "0.6694633", "0.66058457", "0.6596282", "0.6554341", "0.6468374", "0.6429601", "0.64212376", "0.6420173", "0.636126", "0.63060135", "0.6267418", "0.624314", "0.624108", "0.61913735", "0.61460763", "0.6129149", "0.60969746", "0.6089816", "0.6028361", "0.60138357"...
0.71553564
0
PublicVersion indicates an expected call of PublicVersion
PublicVersion указывает на ожидаемый вызов PublicVersion
func (mr *MockClientMockRecorder) PublicVersion() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublicVersion", reflect.TypeOf((*MockClient)(nil).PublicVersion)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func isBadVersion(version int) bool{\n return false\n}", "func (m *MockClient) PublicVersion() msp.Identity {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"PublicVersion\")\n\tret0, _ := ret[0].(msp.Identity)\n\treturn ret0\n}", "func TestVersion(t *testing.T) {\n\t//fmt.Println(\"EliteProvision [\" + Ver...
[ "0.61684936", "0.6067962", "0.5954322", "0.56574756", "0.56270444", "0.5623315", "0.5601342", "0.55662715", "0.5558212", "0.55543554", "0.5481111", "0.5477666", "0.54693365", "0.5434321", "0.53901994", "0.53724116", "0.53723973", "0.5360367", "0.535976", "0.52923805", "0.5278...
0.70306873
0
Serialize indicates an expected call of Serialize
Serialize указывает на ожидаемый вызов Serialize
func (mr *MockClientMockRecorder) Serialize() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockClient)(nil).Serialize)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockManagerMockRecorder) SerializeNamespace(arg0 interface{}) *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SerializeNamespace\", reflect.TypeOf((*MockManager)(nil).SerializeNamespace), arg0)\n}", "func (e *Event) IsSerialized() bool {\n\treturn int32(e.GetType())&int32(EVEN...
[ "0.6066313", "0.5894949", "0.5891789", "0.58146894", "0.58111197", "0.5800852", "0.5732166", "0.57182896", "0.55868983", "0.55799645", "0.55763125", "0.5544834", "0.5529394", "0.5507338", "0.5499269", "0.5482491", "0.5481901", "0.5469212", "0.546522", "0.5440465", "0.54272604...
0.70770717
0
Sign mocks base method
Метод базы для подделки сигнатур
func (m *MockClient) Sign(arg0 []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Sign", arg0) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *CryptographyServiceMock) Sign(p []byte) (r *insolar.Signature, r1 error) {\n\tcounter := atomic.AddUint64(&m.SignPreCounter, 1)\n\tdefer atomic.AddUint64(&m.SignCounter, 1)\n\n\tif len(m.SignMock.expectationSeries) > 0 {\n\t\tif counter > uint64(len(m.SignMock.expectationSeries)) {\n\t\t\tm.t.Fatalf(\"Une...
[ "0.73569053", "0.68571746", "0.6440196", "0.6397187", "0.6395241", "0.6389407", "0.6373618", "0.63479185", "0.6286529", "0.6282975", "0.6222466", "0.6218619", "0.62139755", "0.6212541", "0.6208312", "0.62067086", "0.618209", "0.6171891", "0.6165349", "0.61397684", "0.6135525"...
0.742772
0
Sign indicates an expected call of Sign
Сигнатура указывает на ожидаемый вызов Sign
func (mr *MockClientMockRecorder) Sign(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockClient)(nil).Sign), arg0) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m EncMessage) Sign(k []byte) error {\n\treturn errors.New(\"Sign method must be overridden\")\n}", "func (x *Big) Sign() int {\n\tif debug {\n\t\tx.validate()\n\t}\n\n\tif (x.IsFinite() && x.isZero()) || x.IsNaN(0) {\n\t\treturn 0\n\t}\n\tif x.form&signbit != 0 {\n\t\treturn -1\n\t}\n\treturn 1\n}", "fun...
[ "0.7038499", "0.6973596", "0.6949446", "0.6931641", "0.6850552", "0.68438876", "0.6784213", "0.6778353", "0.677179", "0.67147094", "0.66983044", "0.66941196", "0.6673838", "0.6659925", "0.66452146", "0.66187435", "0.6618732", "0.6616466", "0.6575433", "0.65533817", "0.6511533...
0.7184497
0
SigningManager indicates an expected call of SigningManager
SigningManager указывает на ожидаемый вызов SigningManager
func (mr *MockClientMockRecorder) SigningManager() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockClient)(nil).SigningManager)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) SigningManager() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SigningManager\", reflect.TypeOf((*MockProviders)(nil).SigningManager))\n}", "func (pc *MockProviderContext) SigningManager() fab.SigningManager {\n\treturn p...
[ "0.7239621", "0.6206", "0.6116267", "0.60653776", "0.5916556", "0.56487644", "0.55687886", "0.55571556", "0.5548583", "0.55313104", "0.55269605", "0.5507766", "0.5452651", "0.54315287", "0.54265016", "0.54069215", "0.5389472", "0.5376608", "0.53554356", "0.5310178", "0.530505...
0.7177633
1
Base Vesting Account NewBaseVestingAccount creates a new BaseVestingAccount object. It is the callers responsibility to ensure the base account has sufficient funds with regards to the original vesting amount.
Базовый аккаунт с поэтапным распределением Новый BaseVestingAccount создает новый объект BaseVestingAccount. Ответственность за обеспечение базового аккаунта достаточным количеством средств, соответствующим первоначальному объему поэтапного распределения, возлагается на вызывающего.
func NewBaseVestingAccount(baseAccount *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *BaseVestingAccount { return &BaseVestingAccount{ BaseAccount: baseAccount, OriginalVesting: originalVesting, DelegatedFree: sdk.NewCoins(), DelegatedVesting: sdk.NewCoins(), EndTime: en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewBase() Base {\r\n\treturn Base{\r\n\t\tActive: \"\",\r\n\t\tTitle: \"Lemonade Stand Supply\",\r\n\t}\r\n}", "func NewClawbackVestingAccount(baseAcc *authtypes.BaseAccount, funder sdk.AccAddress, originalVesting sdk.Coins, startTime int64, lockupPeriods, vestingPeriods Periods) *ClawbackVestingAccount {\...
[ "0.6104842", "0.6026493", "0.5996286", "0.59705764", "0.59615064", "0.5825349", "0.5822085", "0.5796595", "0.57819426", "0.56177527", "0.5608643", "0.5536669", "0.5514407", "0.5498089", "0.5485557", "0.5421935", "0.5353438", "0.5348021", "0.5331462", "0.5248329", "0.5199846",...
0.8610524
0
LockedCoinsFromVesting returns all the coins that are not spendable (i.e. locked) for a vesting account given the current vesting coins. If no coins are locked, an empty slice of Coins is returned. CONTRACT: Delegated vesting coins and vestingCoins must be sorted.
LockedCoinsFromVesting возвращает все монеты, которые не могут быть потрачены (то есть заблокированы) для учетной записи с премией, учитывая текущие монеты с премией. Если монет не заблокировано, возвращается пустой срез монет. CONTRACT: Депонированные монеты с премией и vestingCoins должны быть отсортированы.
func (bva BaseVestingAccount) LockedCoinsFromVesting(vestingCoins sdk.Coins) sdk.Coins { lockedCoins := vestingCoins.Sub(vestingCoins.Min(bva.DelegatedVesting)) if lockedCoins == nil { return sdk.Coins{} } return lockedCoins }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime()))\n}", "func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetV...
[ "0.7522999", "0.7444621", "0.7421999", "0.73869133", "0.73509336", "0.6998124", "0.6757025", "0.6743434", "0.66449594", "0.6587789", "0.6478109", "0.6473024", "0.629536", "0.6076974", "0.6073959", "0.58224916", "0.5766373", "0.54533124", "0.54496396", "0.51249546", "0.4912231...
0.8314347
0
TrackDelegation tracks a delegation amount for any given vesting account type given the amount of coins currently vesting and the current account balance of the delegation denominations. CONTRACT: The account's coins, delegation coins, vesting coins, and delegated vesting coins must be sorted.
TrackDelegation отслеживает объем делегирования для любого заданного типа учетной записи с учетом текущего объема монет, находящихся в процессе распределения, и текущего баланса учетной записи по видам делегированных монет. ДОГОВОР: Монеты учетной записи, делегированные монеты, монеты с распределением и делегированные ...
func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) { for _, coin := range amount { baseAmt := balance.AmountOf(coin.Denom) vestingAmt := vestingCoins.AmountOf(coin.Denom) delVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom) // Panic if the delegation amount is zero o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva *DelayedVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) {\n\tdva.BaseVestingAccount.TrackDelegation(balance, dva.GetVestingCoins(blockTime), amount)\n}", "func (pva *PeriodicVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) {\n\tpva.BaseVest...
[ "0.7867072", "0.78303444", "0.78073776", "0.780251", "0.75030935", "0.74432373", "0.699153", "0.5845492", "0.53813183", "0.53045094", "0.51640373", "0.50583774", "0.5020244", "0.5015942", "0.49270812", "0.4878253", "0.4844824", "0.48211694", "0.47838807", "0.47838154", "0.475...
0.8320274
0
TrackUndelegation tracks an undelegation amount by setting the necessary values by which delegated vesting and delegated vesting need to decrease and by which amount the base coins need to increase. NOTE: The undelegation (bond refund) amount may exceed the delegated vesting (bond) amount due to the way undelegation tr...
TrackUndelegation отслеживает объем неделегации, устанавливая необходимые значения, при которых делегированная премия и делегированная премия должны уменьшаться, а основные монеты должны увеличиваться. ЗАМЕЧАНИЕ: объем неделегации (возврат депозита) может превышать объем делегированной премии (депозита) из-за способа, ...
func (bva *BaseVestingAccount) TrackUndelegation(amount sdk.Coins) { for _, coin := range amount { // panic if the undelegation amount is zero if coin.Amount.IsZero() { panic("undelegation attempt with zero coins") } delegatedFree := bva.DelegatedFree.AmountOf(coin.Denom) delegatedVesting := bva.Delegated...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) {\n\tfor _, coin := range amount {\n\t\tbaseAmt := balance.AmountOf(coin.Denom)\n\t\tvestingAmt := vestingCoins.AmountOf(coin.Denom)\n\t\tdelVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom)\n\n\t\t// Panic if the delegat...
[ "0.67113245", "0.59720033", "0.5943587", "0.59297115", "0.5854596", "0.5854328", "0.57884055", "0.5690635", "0.5682177", "0.5627405", "0.5558996", "0.534974", "0.5342968", "0.5292748", "0.52545184", "0.5147454", "0.5006151", "0.4952675", "0.4936225", "0.48720354", "0.4870784"...
0.8533345
0
GetOriginalVesting returns a vesting account's original vesting amount
GetOriginalVesting возвращает исходную сумму выплаты для учетной записи с пропорциональным распределением
func (bva BaseVestingAccount) GetOriginalVesting() sdk.Coins { return bva.OriginalVesting }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetVestingCoins(_ time.Time) sdk.Coins {\n\treturn plva.OriginalVesting\n}", "func (va ClawbackVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn va.OriginalVesting.Sub(va.GetVestedCoins(blockTime))\n}", "func (dva DelayedVestingAccount) GetVestingCoin...
[ "0.5952986", "0.573784", "0.5716642", "0.56203747", "0.5533669", "0.54534984", "0.5265873", "0.52228105", "0.5221159", "0.521353", "0.5159928", "0.51219094", "0.51138663", "0.50696576", "0.502259", "0.496147", "0.49164215", "0.48761567", "0.4837371", "0.48261893", "0.4814075"...
0.8451787
0
GetDelegatedFree returns a vesting account's delegation amount that is not vesting.
GetDelegatedFree возвращает объем делегирования учетной записи с линковкой, который не подлежит раскрытию.
func (bva BaseVestingAccount) GetDelegatedFree() sdk.Coins { return bva.DelegatedFree }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (del Delegation) AmountDelegated() hexutil.Big {\n\tif del.Delegation.AmountDelegated == nil {\n\t\treturn hexutil.Big{}\n\t}\n\treturn *del.Delegation.AmountDelegated\n}", "func (bva BaseVestingAccount) GetDelegatedVesting() sdk.Coins {\n\treturn bva.DelegatedVesting\n}", "func (b *rpcVestingBalance) del...
[ "0.6416068", "0.6220628", "0.61514586", "0.5716628", "0.57010835", "0.5647869", "0.55818397", "0.55180794", "0.55074596", "0.5507106", "0.5489881", "0.53663415", "0.5286763", "0.5263716", "0.52178216", "0.506366", "0.505962", "0.5042922", "0.49995175", "0.49780974", "0.497743...
0.8334656
0
GetDelegatedVesting returns a vesting account's delegation amount that is still vesting.
GetDelegatedVesting возвращает объем делегации учетной записи с привязкой, который еще не раскрылся.
func (bva BaseVestingAccount) GetDelegatedVesting() sdk.Coins { return bva.DelegatedVesting }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *rpcVestingBalance) delegated() (sdk.Coins, sdk.Coins, error) {\n\tdelegatedCoins, err := b.totalDelegated()\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\tunbondingCoins, err := b.totalUnbondingDelegations()\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tdelegated := delegatedCoins.AmountOf(...
[ "0.6808024", "0.6490734", "0.6425168", "0.626219", "0.62174875", "0.61955094", "0.58210653", "0.58202344", "0.57796836", "0.5438589", "0.54209054", "0.53295773", "0.53165835", "0.5281906", "0.5265446", "0.52373785", "0.5235998", "0.52340764", "0.52320075", "0.5212645", "0.516...
0.82544625
0
GetEndTime returns a vesting account's end time
GetEndTime возвращает конечное время востребования кошелька
func (bva BaseVestingAccount) GetEndTime() int64 { return bva.EndTime }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetEndTime() int64 {\n\treturn 0\n}", "func (o *ApplianceSetupInfoAllOf) GetEndTime() time.Time {\n\tif o == nil || o.EndTime == nil {\n\t\tvar ret time.Time\n\t\treturn ret\n\t}\n\treturn *o.EndTime\n}", "func (o *WorkflowCatalogServiceRequest) GetEndTime() time.Time {\n\tif...
[ "0.7872648", "0.74200815", "0.7327126", "0.7283611", "0.72377", "0.71718276", "0.7111663", "0.7106381", "0.70978665", "0.709069", "0.70450336", "0.7016598", "0.70135844", "0.70091736", "0.70076275", "0.6910157", "0.6902684", "0.6840315", "0.6741191", "0.6707876", "0.66914344"...
0.86487454
0
MarshalYAML returns the YAML representation of a BaseVestingAccount.
MarshalYAML возвращает представление YAML BaseVestingAccount.
func (bva BaseVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(bva.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: bva.AccountNumber, PubKey: getPKString(bva), Sequence: bva.S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(va.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: va.AccountNumber,\n\t\tPubKey: getPKString(va),...
[ "0.7984123", "0.78136253", "0.77950466", "0.77011955", "0.61860657", "0.6162082", "0.61555004", "0.61256987", "0.59841114", "0.59818166", "0.59726924", "0.594863", "0.5947269", "0.58972937", "0.5799432", "0.57685477", "0.5696263", "0.5608591", "0.56004035", "0.55417204", "0.5...
0.8440805
0
NewContinuousVestingAccountRaw creates a new ContinuousVestingAccount object from BaseVestingAccount
NewContinuousVestingAccountRaw создает новый объект ContinuousVestingAccount из BaseVestingAccount
func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount { return &ContinuousVestingAccount{ BaseVestingAccount: bva, StartTime: startTime, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewContinuousVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime, endTime int64) *ContinuousVestingAccount {\n\tbaseVestingAcc := &BaseVestingAccount{\n\t\tBaseAccount: baseAcc,\n\t\tOriginalVesting: originalVesting,\n\t\tEndTime: endTime,\n\t}\n\n\treturn &Continuo...
[ "0.73651177", "0.7098843", "0.6828235", "0.6757991", "0.669836", "0.6251848", "0.6140739", "0.59896034", "0.57978946", "0.5668212", "0.5430953", "0.5397485", "0.5344448", "0.5326911", "0.53231484", "0.5315272", "0.5190769", "0.51356536", "0.5125424", "0.5110819", "0.5089053",...
0.8007365
0
NewContinuousVestingAccount returns a new ContinuousVestingAccount
NewContinuousVestingAccount возвращает новый ContinuousVestingAccount
func NewContinuousVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime, endTime int64) *ContinuousVestingAccount { baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: originalVesting, EndTime: endTime, } return &ContinuousVestingAccount{ S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount {\n\treturn &ContinuousVestingAccount{\n\t\tBaseVestingAccount: bva,\n\t\tStartTime: startTime,\n\t}\n}", "func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, sta...
[ "0.69132036", "0.6623393", "0.6615625", "0.63697267", "0.6276726", "0.6014245", "0.5949236", "0.591252", "0.5813441", "0.57447326", "0.5703966", "0.56493205", "0.5621344", "0.5587428", "0.55520993", "0.5498668", "0.54740584", "0.5446518", "0.5446518", "0.54291975", "0.5412927...
0.8187087
0
GetStartTime returns the time when vesting starts for a continuous vesting account.
GetStartTime возвращает время, когда начнется распределение для аккаунта с непрерывным распределением.
func (cva ContinuousVestingAccount) GetStartTime() int64 { return cva.StartTime }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (dva DelayedVestingAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (pva PeriodicVestingAccount) GetStartTime() int64 {\n\treturn pva.StartTime\n}", "func GetStartTime() time.Time {\n\treturn startAtTime\n}", "f...
[ "0.7933969", "0.7929926", "0.7785165", "0.73669004", "0.726981", "0.69838774", "0.69761086", "0.694269", "0.6927703", "0.6854483", "0.6815522", "0.6800892", "0.67183834", "0.67104137", "0.6657018", "0.6623324", "0.6598904", "0.6566596", "0.6558677", "0.6532096", "0.6420241", ...
0.82052857
0
MarshalYAML returns the YAML representation of a ContinuousVestingAccount.
MarshalYAML возвращает представление YAML ContinuousVestingAccount.
func (cva ContinuousVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(cva.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: cva.AccountNumber, PubKey: getPKString(cva), Sequence: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(va.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: va.AccountNumber,\n\t\tPubKey: getPKString(va),...
[ "0.8220759", "0.82059807", "0.8032163", "0.7778999", "0.6281917", "0.621351", "0.6205962", "0.6153351", "0.6109899", "0.60921556", "0.6080166", "0.60753334", "0.6061997", "0.60296005", "0.59819895", "0.5949471", "0.5909755", "0.5884785", "0.5871395", "0.58268696", "0.57405597...
0.8481067
0
NewPeriodicVestingAccountRaw creates a new PeriodicVestingAccount object from BaseVestingAccount
NewPeriodicVestingAccountRaw создает новый объект PeriodicVestingAccount из BaseVestingAccount
func NewPeriodicVestingAccountRaw(bva *BaseVestingAccount, startTime int64, periods Periods) *PeriodicVestingAccount { return &PeriodicVestingAccount{ BaseVestingAccount: bva, StartTime: startTime, VestingPeriods: periods, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func newPeriodicVestingAccount(address sdk.AccAddress, periods vestingtypes.Periods, firstPeriodStartTimestamp int64) *vestingtypes.PeriodicVestingAccount {\n\tbaseAccount := authtypes.NewBaseAccount(address, nil, 0, 0)\n\n\toriginalVesting := sdk.NewCoins()\n\tfor _, p := range periods {\n\t\toriginalVesting = or...
[ "0.76211107", "0.7578755", "0.69147325", "0.688278", "0.6686776", "0.66709", "0.61405754", "0.6001733", "0.58985585", "0.56478363", "0.5611604", "0.5596392", "0.542728", "0.53417903", "0.52059007", "0.51674855", "0.51130736", "0.507255", "0.5046054", "0.500847", "0.49871668",...
0.82215947
0
NewPeriodicVestingAccount returns a new PeriodicVestingAccount
NewPeriodicVestingAccount возвращает новый PeriodicVestingAccount
func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime int64, periods Periods) *PeriodicVestingAccount { endTime := startTime for _, p := range periods { endTime += p.Length } baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: origina...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func newPeriodicVestingAccount(address sdk.AccAddress, periods vestingtypes.Periods, firstPeriodStartTimestamp int64) *vestingtypes.PeriodicVestingAccount {\n\tbaseAccount := authtypes.NewBaseAccount(address, nil, 0, 0)\n\n\toriginalVesting := sdk.NewCoins()\n\tfor _, p := range periods {\n\t\toriginalVesting = or...
[ "0.8544836", "0.69821393", "0.6438208", "0.6292526", "0.62608457", "0.6215964", "0.61970264", "0.6108542", "0.5944803", "0.5915925", "0.57264006", "0.5667008", "0.5575679", "0.55671585", "0.5528065", "0.5527509", "0.5518966", "0.54529744", "0.54477406", "0.54477406", "0.54178...
0.83124036
1
GetVestedCoins returns the total number of vested coins. If no coins are vested, nil is returned.
GetVestedCoins возвращает общее количество привилегированных монет. Если монет нет, возвращается nil.
func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins { coins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix()) if coins.IsZero() { return nil } return coins }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins {\n\treturn nil\n}", "func (va ClawbackVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\t// It's likely that one or the other schedule will be nearly trivial,\n\t// so there should be little overhead in recomputing the conj...
[ "0.7472693", "0.728135", "0.72171086", "0.7067881", "0.6926002", "0.67520267", "0.6718381", "0.6669052", "0.66164577", "0.6606495", "0.64622456", "0.56307656", "0.55714226", "0.55141586", "0.544581", "0.53290683", "0.52700144", "0.5242058", "0.5186966", "0.51671714", "0.51350...
0.7318536
1
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
LockedCoins возвращает набор монет, которые не могут быть потрачены (то есть заблокированы), определенные как вестинг-монеты, которые не делегированы.
func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins { return pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime())) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetVestingCoins(ctx.BlockTime()))\n}", "func (cva ContinuousVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn cva.BaseVestingAccount.LockedCoinsFromVesting(cva.Ge...
[ "0.743822", "0.7427831", "0.7415347", "0.73155016", "0.6838768", "0.6392438", "0.61915195", "0.6113116", "0.5887824", "0.58088565", "0.5682898", "0.5653102", "0.5612937", "0.55591124", "0.55491835", "0.5499366", "0.5479898", "0.54708606", "0.5414742", "0.54000133", "0.5391922...
0.7512996
0
GetStartTime returns the time when vesting starts for a periodic vesting account.
GetStartTime возвращает время, когда начнется начисление для аккаунта с периодическим начислением.
func (pva PeriodicVestingAccount) GetStartTime() int64 { return pva.StartTime }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva DelayedVestingAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (cva ContinuousVestingAccount) GetStartTime() int64 {\n\treturn cva.StartTime\n}", "func GetStartTime() time.Time {\n\treturn startAtTime\n}", ...
[ "0.7655847", "0.75100744", "0.74109447", "0.7287526", "0.7022211", "0.6954829", "0.68399805", "0.6801164", "0.67397594", "0.6674122", "0.6627324", "0.6578017", "0.65748435", "0.65689546", "0.65134203", "0.65009487", "0.64612186", "0.6450997", "0.643786", "0.642462", "0.640699...
0.76758254
0
GetVestingPeriods returns vesting periods associated with periodic vesting account.
GetVestingPeriods возвращает периоды vests, связанные с аккаунтом периодического vests.
func (pva PeriodicVestingAccount) GetVestingPeriods() Periods { return pva.VestingPeriods }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetVestingPeriods() Periods {\n\treturn va.VestingPeriods\n}", "func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime int64, periods Periods) *PeriodicVestingAccount {\n\tendTime := startTime\n\tfor _, p := range periods {\n\t\tendTim...
[ "0.80092347", "0.53922135", "0.5174269", "0.5134585", "0.5022448", "0.4940613", "0.49172422", "0.47227874", "0.47114304", "0.45741335", "0.45310128", "0.45140642", "0.44248143", "0.44168282", "0.4407911", "0.43513176", "0.42947915", "0.4189046", "0.41723818", "0.4131881", "0....
0.82599163
0
MarshalYAML returns the YAML representation of a PeriodicVestingAccount.
MarshalYAML возвращает представление PeriodicVestingAccount в формате YAML.
func (pva PeriodicVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(pva.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: pva.AccountNumber, PubKey: getPKString(pva), Sequence: p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva BaseVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(bva.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: bva.AccountNumber,\n\t\tPubKey: getPKString(bva),...
[ "0.79740006", "0.79260373", "0.78480417", "0.77300644", "0.65652984", "0.62953556", "0.6279168", "0.6233041", "0.6193101", "0.60612226", "0.6042137", "0.5997969", "0.59689313", "0.5929271", "0.590953", "0.58872837", "0.58425134", "0.57967377", "0.5759037", "0.5754271", "0.572...
0.8524174
0
NewPeriodicGrantAction returns an AddGrantAction for a PeriodicVestingAccount
NewPeriodicGrantAction возвращает AddGrantAction для PeriodicVestingAccount
func NewPeriodicGrantAction( sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins, ) exported.AddGrantAction { return periodicGrantAction{ sk: sk, grantStartTime: grantStartTime, grantVestingPeriods: grantVestingPeriods, grantCoins: grant...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error {\n\treturn action.AddToAccount(ctx, pva)\n}", "func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) {\n\t// how m...
[ "0.6319315", "0.60508823", "0.5450652", "0.532292", "0.52668667", "0.5202514", "0.51351124", "0.5118444", "0.50628436", "0.5058438", "0.50192815", "0.4910114", "0.4907542", "0.4897786", "0.4887551", "0.47395888", "0.47365135", "0.47333363", "0.46217752", "0.46140435", "0.4602...
0.821403
0
AddToAccount implements the exported.AddGrantAction interface. It checks that rawAccount is a PeriodicVestingAccount, then adds the described grant to it.
AddToAccount реализует интерфейс exported.AddGrantAction. Он проверяет, является ли rawAccount объектом PeriodicVestingAccount, а затем добавляет описанный премьерный фонд этому объекту.
func (pga periodicGrantAction) AddToAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error { pva, ok := rawAccount.(*PeriodicVestingAccount) if !ok { return sdkerrors.Wrapf(sdkerrors.ErrNotSupported, "account %s must be a PeriodicVestingAccount, got %T", rawAccount.GetAddress(), rawAccount) } pv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (cga clawbackGrantAction) AddToAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error {\n\tcva, ok := rawAccount.(*ClawbackVestingAccount)\n\tif !ok {\n\t\treturn sdkerrors.Wrapf(sdkerrors.ErrNotSupported,\n\t\t\t\"account %s must be a ClawbackVestingAccount, got %T\",\n\t\t\trawAccount.GetAddress...
[ "0.6673063", "0.6106532", "0.58922356", "0.5645127", "0.5491181", "0.54294187", "0.52670664", "0.52047217", "0.51024365", "0.5024481", "0.5017414", "0.49595973", "0.49293518", "0.48778266", "0.4868511", "0.48504722", "0.48359856", "0.48092648", "0.47958285", "0.47902265", "0....
0.7897445
0
AddGrant implements the exported.GrantAccount interface.
AddGrant реализует интерфейс exported.GrantAccount.
func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error { return action.AddToAccount(ctx, pva) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) {\n\t// how much is really delegated?\n\tbondedAmt := sk.GetDelegatorBonded(ctx, pva.GetAddress())\n\tunbondingAmt := sk.GetDelegatorUnbonding(ctx, pva.GetAddress...
[ "0.6638425", "0.63351303", "0.63263184", "0.60253334", "0.60100543", "0.5991094", "0.59736663", "0.5939039", "0.5906749", "0.5818377", "0.5752371", "0.5751387", "0.57154185", "0.5666535", "0.55915976", "0.5591315", "0.55844253", "0.55637395", "0.5555593", "0.5406534", "0.5404...
0.82359046
0
addGrant merges a new periodic vesting grant into an existing PeriodicVestingAccount.
addGrant объединяет новый периодический премиальный грант с существующим PeriodicVestingAccount.
func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) { // how much is really delegated? bondedAmt := sk.GetDelegatorBonded(ctx, pva.GetAddress()) unbondingAmt := sk.GetDelegatorUnbonding(ctx, pva.GetAddress()) delega...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error {\n\treturn action.AddToAccount(ctx, pva)\n}", "func (va *ClawbackVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantLockupPeriods, grantVestingPeriods []Period, grantCoins sdk.C...
[ "0.8021465", "0.70819193", "0.5704787", "0.557793", "0.5520405", "0.5516304", "0.54987746", "0.54319793", "0.54234326", "0.5198178", "0.5190612", "0.516897", "0.51671606", "0.5102042", "0.50500983", "0.5033243", "0.50264156", "0.50088483", "0.49463457", "0.4917783", "0.491246...
0.78557765
1
NewDelayedVestingAccountRaw creates a new DelayedVestingAccount object from BaseVestingAccount
NewDelayedVestingAccountRaw создает новый объект DelayedVestingAccount из BaseVestingAccount
func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount { return &DelayedVestingAccount{ BaseVestingAccount: bva, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewDelayedVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *DelayedVestingAccount {\n\tbaseVestingAcc := &BaseVestingAccount{\n\t\tBaseAccount: baseAcc,\n\t\tOriginalVesting: originalVesting,\n\t\tEndTime: endTime,\n\t}\n\n\treturn &DelayedVestingAccount{bas...
[ "0.70239556", "0.7022922", "0.6753236", "0.6679299", "0.644923", "0.6337664", "0.62031996", "0.6165785", "0.56279266", "0.5534443", "0.5452274", "0.54449195", "0.52648777", "0.52131265", "0.52131265", "0.5204797", "0.5139948", "0.5122591", "0.5079009", "0.5059517", "0.503759"...
0.81710976
0
NewDelayedVestingAccount returns a DelayedVestingAccount
NewDelayedVestingAccount возвращает DelayedVestingAccount
func NewDelayedVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *DelayedVestingAccount { baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: originalVesting, EndTime: endTime, } return &DelayedVestingAccount{baseVestingAcc} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount {\n\treturn &DelayedVestingAccount{\n\t\tBaseVestingAccount: bva,\n\t}\n}", "func newPeriodicVestingAccount(address sdk.AccAddress, periods vestingtypes.Periods, firstPeriodStartTimestamp int64) *vestingtypes.PeriodicVestingAccount ...
[ "0.69552976", "0.6662628", "0.6262276", "0.59880567", "0.58953786", "0.57377744", "0.57377744", "0.5700749", "0.54910743", "0.5422893", "0.5391255", "0.5373617", "0.53433174", "0.53415126", "0.53125954", "0.53034943", "0.5293382", "0.5290742", "0.52859324", "0.5257186", "0.52...
0.80419785
0
GetVestedCoins returns the total amount of vested coins for a delayed vesting account. All coins are only vested once the schedule has elapsed.
GetVestedCoins возвращает общее количество застывших монет для аккаунта с отложенным распределением. Все монеты становятся застывшими только после завершения расписания.
func (dva DelayedVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins { if blockTime.Unix() >= dva.EndTime { return dva.OriginalVesting } return nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\tcoins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix())\n\tif coins.IsZero() {\n\t\treturn nil\n\t}\n\treturn coins\n}", "func (plva PermanentLockedAccount) GetVestedCoins(_ t...
[ "0.78821915", "0.77730745", "0.7757383", "0.7747683", "0.77116185", "0.7681964", "0.73974156", "0.7347046", "0.72746074", "0.7222658", "0.71943384", "0.6369909", "0.6271219", "0.62576747", "0.6158414", "0.60933256", "0.59755814", "0.5791374", "0.5568287", "0.5336186", "0.5223...
0.81205183
0
GetVestingCoins returns the total number of vesting coins for a delayed vesting account.
GetVestingCoins возвращает общее количество вesting-монет для задержанного вesting-счета.
func (dva DelayedVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins { return dva.OriginalVesting.Sub(dva.GetVestedCoins(blockTime)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn pva.OriginalVesting.Sub(pva.GetVestedCoins(blockTime))\n}", "fu...
[ "0.7921594", "0.7911669", "0.78747386", "0.78404725", "0.76656306", "0.7427295", "0.72755915", "0.71889263", "0.7015906", "0.67641604", "0.6664618", "0.6327653", "0.62292004", "0.6187303", "0.61255044", "0.6114289", "0.60764766", "0.57490504", "0.54574955", "0.5431898", "0.53...
0.82551724
0
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
LockedCoins возвращает набор монет, которые не могут быть потрачены (то есть заблокированы), определенные как вesting монеты, которые не делегированы.
func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins { return dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetVestingCoins(ctx.BlockTime())) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime()))\n}", "func (cva ContinuousVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn cva.BaseVestingAccount.LockedCoinsFromVesting(cva.G...
[ "0.7511586", "0.7426521", "0.7413611", "0.7314529", "0.6837458", "0.63913995", "0.6190784", "0.6113658", "0.5887874", "0.58083475", "0.56820905", "0.5653764", "0.56137216", "0.5558164", "0.5549295", "0.54992867", "0.5479662", "0.54710203", "0.54137", "0.5398946", "0.5390875",...
0.7436818
1
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
TrackDelegation отслеживает желаемую сумму делегирования, устанавливая соответствующие значения для количества делегированных привилегированных монет, делегированных свободных монет и уменьшая общее количество базовых монет.
func (dva *DelayedVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) { dva.BaseVestingAccount.TrackDelegation(balance, dva.GetVestingCoins(blockTime), amount) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) {\n\tfor _, coin := range amount {\n\t\tbaseAmt := balance.AmountOf(coin.Denom)\n\t\tvestingAmt := vestingCoins.AmountOf(coin.Denom)\n\t\tdelVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom)\n\n\t\t// Panic if the delegat...
[ "0.8186638", "0.78269565", "0.77586985", "0.77205014", "0.77158755", "0.765882", "0.6832526", "0.6124114", "0.5759102", "0.5743524", "0.55394906", "0.54927427", "0.5372109", "0.5255176", "0.51808655", "0.5126337", "0.5003338", "0.4969066", "0.48711935", "0.47619656", "0.47565...
0.7899151
1
GetStartTime returns zero since a delayed vesting account has no start time.
GetStartTime возвращает ноль, так как учетная запись с отсрочкой выплат не имеет времени начала.
func (dva DelayedVestingAccount) GetStartTime() int64 { return 0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (cva ContinuousVestingAccount) GetStartTime() int64 {\n\treturn cva.StartTime\n}", "func (plva PermanentLockedAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (pva PeriodicVestingAccount) GetStartTime() int64 {\n\...
[ "0.7676309", "0.75976443", "0.7532421", "0.75001425", "0.7361028", "0.725803", "0.72427595", "0.72406596", "0.7240466", "0.7142592", "0.7111448", "0.71034706", "0.7032013", "0.69124645", "0.6803729", "0.676755", "0.6750249", "0.673714", "0.6735365", "0.66810524", "0.6627456",...
0.8550508
0
NewPermanentLockedAccount returns a PermanentLockedAccount
NewPermanentLockedAccount возвращает PermanentLockedAccount
func NewPermanentLockedAccount(baseAcc *authtypes.BaseAccount, coins sdk.Coins) *PermanentLockedAccount { baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: coins, EndTime: 0, // ensure EndTime is set to 0, as PermanentLockedAccount's do not have an EndTime } return &Per...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (msg MsgCreatePermanentLockedAccount) Type() string { return TypeMsgCreatePermanentLockedAccount }", "func newAccount() *Account {\n\treturn &Account{\n\t\tblocks: make(map[string]uint64),\n\t}\n}", "func NewMsgCreatePermanentLockedAccount(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) *MsgCreatePerma...
[ "0.6613212", "0.5847004", "0.584218", "0.55508304", "0.53399056", "0.53399056", "0.52914137", "0.521402", "0.51721936", "0.5150324", "0.51409805", "0.51152074", "0.5111328", "0.5099049", "0.5050154", "0.5040955", "0.5030609", "0.49957147", "0.49862966", "0.4979736", "0.497496...
0.7643574
0
GetVestedCoins returns the total amount of vested coins for a permanent locked vesting account. All coins are only vested once the schedule has elapsed.
GetVestedCoins возвращает общее количество застекленных монет для аккаунта с постоянным блокированным расписанием. Все монеты становятся застекленными только после окончания расписания.
func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins { return nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\tcoins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix())\n\tif coins.IsZero() {\n\t\treturn nil\n\t}\n\treturn coins\n}", "func (va ClawbackVestingAccount) GetVestedCoins(block...
[ "0.79755396", "0.77310777", "0.7681168", "0.76493204", "0.76472145", "0.7523997", "0.72600824", "0.7255338", "0.7253369", "0.7164763", "0.7144354", "0.6482787", "0.6452779", "0.64464617", "0.6323308", "0.6253597", "0.61339927", "0.59371185", "0.58343196", "0.579981", "0.54029...
0.8238134
0
GetVestingCoins returns the total number of vesting coins for a permanent locked vesting account.
GetVestingCoins возвращает общее количество привязанных монет для аккаунта с постоянной привязкой.
func (plva PermanentLockedAccount) GetVestingCoins(_ time.Time) sdk.Coins { return plva.OriginalVesting }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn pva.OriginalVesting.Sub(pva.GetVestedCoins(blockTime))\n}", "fu...
[ "0.78498274", "0.7794622", "0.7768739", "0.7705399", "0.7676226", "0.72224396", "0.70726705", "0.70528924", "0.70528334", "0.6938393", "0.6639426", "0.65996796", "0.65294945", "0.6502958", "0.6489424", "0.6332244", "0.6255476", "0.572874", "0.56868994", "0.5669699", "0.559848...
0.8247456
0
GetStartTime returns zero since a permanent locked vesting account has no start time.
GetStartTime возвращает ноль, так как аккаунт с постоянным заблокированным вesting имеет нет start time.
func (plva PermanentLockedAccount) GetStartTime() int64 { return 0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva DelayedVestingAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (cva ContinuousVestingAccount) GetStartTime() int64 {\n\treturn cva.StartTime\n}", "func (pva PeriodicVestingAccount) GetStartTime() int64 {\n\tr...
[ "0.7989411", "0.77213776", "0.76390874", "0.7605982", "0.7384329", "0.7244314", "0.7236585", "0.7189344", "0.7175738", "0.7171928", "0.7160729", "0.7008172", "0.69832927", "0.6975663", "0.69752145", "0.695411", "0.69208306", "0.69165504", "0.6912835", "0.6835436", "0.6752777"...
0.82880247
0
GetEndTime returns a vesting account's end time, we return 0 to denote that a permanently locked vesting account has no end time.
GetEndTime возвращает конечное время учетной записи с привязкой, мы возвращаем 0, чтобы указать, что учетная запись с постоянной блокировкой не имеет конечного времени.
func (plva PermanentLockedAccount) GetEndTime() int64 { return 0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva BaseVestingAccount) GetEndTime() int64 {\n\treturn bva.EndTime\n}", "func (o *ApplianceSetupInfoAllOf) GetEndTime() time.Time {\n\tif o == nil || o.EndTime == nil {\n\t\tvar ret time.Time\n\t\treturn ret\n\t}\n\treturn *o.EndTime\n}", "func (o *ApplianceClusterInstallPhase) GetEndTime() time.Time {\n...
[ "0.8592755", "0.7491895", "0.7327237", "0.73128647", "0.7202728", "0.71574676", "0.7140883", "0.7082313", "0.7063966", "0.7059457", "0.69634634", "0.6931381", "0.6890082", "0.67958534", "0.6728343", "0.67127305", "0.67088944", "0.6631116", "0.6616934", "0.6547994", "0.6525623...
0.8543022
1
NewClawbackVestingAccount returns a new ClawbackVestingAccount
NewClawbackVestingAccount возвращает новый ClawbackVestingAccount
func NewClawbackVestingAccount(baseAcc *authtypes.BaseAccount, funder sdk.AccAddress, originalVesting sdk.Coins, startTime int64, lockupPeriods, vestingPeriods Periods) *ClawbackVestingAccount { // copy and align schedules to avoid mutating inputs lp := make(Periods, len(lockupPeriods)) copy(lp, lockupPeriods) vp :...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func MakeNewAccount(name string) (*MyAccount, error) {\n\tkeys, err := NewKeypair()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &MyAccount{\n\t\tFields: make(map[string]string),\n\t\tKeys: keys,\n\t\tName: name,\n\t}, nil\n}", "func (c *CoinTest) newAccount(stub shim.ChaincodeStubInterface, args...
[ "0.63165385", "0.62145144", "0.6156019", "0.6112193", "0.60393506", "0.6007511", "0.5856643", "0.58285093", "0.58285093", "0.5770267", "0.56909066", "0.561485", "0.551723", "0.5479558", "0.54709643", "0.54680747", "0.5435082", "0.54297704", "0.5414012", "0.54114395", "0.54044...
0.75940603
0
GetVestingCoins returns the total number of vesting coins. If no coins are vesting, nil is returned.
GetVestingCoins возвращает общее количество вesting-монет. Если нет вesting-монет, возвращается nil.
func (va ClawbackVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins { return va.OriginalVesting.Sub(va.GetVestedCoins(blockTime)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (cva ContinuousVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn cva.OriginalVesting.Sub(cva.GetVestedCoins(blockTime))\n}", "...
[ "0.74396104", "0.726373", "0.714508", "0.7126855", "0.7010945", "0.670897", "0.66787076", "0.66363263", "0.6620459", "0.65084815", "0.6413031", "0.5598332", "0.55388", "0.5478214", "0.5397174", "0.535151", "0.53034747", "0.5291319", "0.5265547", "0.5263068", "0.52396154", "...
0.72693485
1
GetVestingPeriods returns vesting periods associated with periodic vesting account.
GetVestingPeriods возвращает периоды востребования, связанные с аккаунтом периодического востребования.
func (va ClawbackVestingAccount) GetVestingPeriods() Periods { return va.VestingPeriods }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) GetVestingPeriods() Periods {\n\treturn pva.VestingPeriods\n}", "func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime int64, periods Periods) *PeriodicVestingAccount {\n\tendTime := startTime\n\tfor _, p := range periods {\n\t\tendT...
[ "0.82607967", "0.53933996", "0.51751536", "0.5136177", "0.5023484", "0.49357113", "0.4917464", "0.47208306", "0.47143596", "0.45715773", "0.45275274", "0.45155838", "0.44273278", "0.44169536", "0.44071308", "0.43515027", "0.42970163", "0.41897523", "0.41696903", "0.41315487", ...
0.8009713
1
coinEq returns whether two Coins are equal. The IsEqual() method can panic.
coinEq возвращает значение, указывающее, равны ли два Coin. Метод IsEqual() может вызвать панику.
func coinEq(a, b sdk.Coins) bool { return a.IsAllLTE(b) && b.IsAllLTE(a) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (coin Coin) IsEqual(other Coin) bool {\n\treturn coin.Amount.Equal(other.Amount)\n}", "func (v Coin) Equal(o Coin) bool {\n\treturn v.Amount.Equal(o.Amount) &&\n\t\tv.CoinIdentifier.Equal(o.CoinIdentifier)\n}", "func (n *Uint256) Eq(n2 *Uint256) bool {\n\treturn n.n[0] == n2.n[0] && n.n[1] == n2.n[1] && n...
[ "0.70465946", "0.6923523", "0.60608363", "0.60347974", "0.6028179", "0.60094017", "0.5901305", "0.58853287", "0.58778554", "0.5840299", "0.58085173", "0.5762222", "0.5661418", "0.5580482", "0.5563641", "0.5520213", "0.54485756", "0.5405266", "0.54030937", "0.5394832", "0.5368...
0.74850535
0
MarshalYAML returns the YAML representation of a ClawbackVestingAccount.
MarshalYAML возвращает представление YAML ClawbackVestingAccount.
func (va ClawbackVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(va.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: va.AccountNumber, PubKey: getPKString(va), Sequence: va.Se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva BaseVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(bva.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: bva.AccountNumber,\n\t\tPubKey: getPKString(bva),...
[ "0.81687456", "0.8013179", "0.78075606", "0.77150255", "0.63062006", "0.6222024", "0.61517715", "0.6118727", "0.60633063", "0.60269654", "0.5953029", "0.5952517", "0.5855554", "0.5855083", "0.5827823", "0.5779316", "0.5734564", "0.571303", "0.5689044", "0.5630494", "0.5589824...
0.848191
0
NewClawbackGrantAction returns an AddGrantAction for a ClawbackVestingAccount.
NewClawbackGrantAction возвращает AddGrantAction для ClawbackVestingAccount.
func NewClawbackGrantAction( funderAddress string, sk StakingKeeper, grantStartTime int64, grantLockupPeriods, grantVestingPeriods []Period, grantCoins sdk.Coins, ) exported.AddGrantAction { return clawbackGrantAction{ funderAddress: funderAddress, sk: sk, grantStartTime: grantSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewClawbackAction(requestor, dest sdk.AccAddress, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) exported.ClawbackAction {\n\treturn clawbackAction{\n\t\trequestor: requestor,\n\t\tdest: dest,\n\t\tak: ak,\n\t\tbk: bk,\n\t\tsk: sk,\n\t}\n}", "func NewClawbackRewardAction(ak Acc...
[ "0.64638203", "0.61863166", "0.5534939", "0.529289", "0.5087931", "0.50345194", "0.47454304", "0.46657106", "0.4555626", "0.4545793", "0.45320782", "0.44856998", "0.4456182", "0.4451843", "0.43959028", "0.43657944", "0.43611333", "0.4357266", "0.43521774", "0.43518445", "0.43...
0.7976986
0
AddToAccount implements the exported.AddGrantAction interface. It checks that rawAccount is a ClawbackVestingAccount with the same funder and adds the described Grant to it.
AddToAccount реализует интерфейс exported.AddGrantAction. Он проверяет, является ли rawAccount ClawbackVestingAccount с тем же funder и добавляет описанный Grant в него.
func (cga clawbackGrantAction) AddToAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error { cva, ok := rawAccount.(*ClawbackVestingAccount) if !ok { return sdkerrors.Wrapf(sdkerrors.ErrNotSupported, "account %s must be a ClawbackVestingAccount, got %T", rawAccount.GetAddress(), rawAccount) } if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pga periodicGrantAction) AddToAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error {\n\tpva, ok := rawAccount.(*PeriodicVestingAccount)\n\tif !ok {\n\t\treturn sdkerrors.Wrapf(sdkerrors.ErrNotSupported,\n\t\t\t\"account %s must be a PeriodicVestingAccount, got %T\",\n\t\t\trawAccount.GetAddress...
[ "0.70387936", "0.6084376", "0.58506024", "0.5656218", "0.5626727", "0.5414569", "0.5300817", "0.51898015", "0.511495", "0.50976485", "0.5083623", "0.5055534", "0.49965897", "0.48901007", "0.48723358", "0.48572427", "0.48206356", "0.4800977", "0.4778801", "0.47696823", "0.4769...
0.7568594
0
addGrant merges a new clawback vesting grant into an existing ClawbackVestingAccount.
addGrant объединяет новый премиальный ветинговый грант с существующим ClawbackVestingAccount.
func (va *ClawbackVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantLockupPeriods, grantVestingPeriods []Period, grantCoins sdk.Coins) { // how much is really delegated? bondedAmt := sk.GetDelegatorBonded(ctx, va.GetAddress()) unbondingAmt := sk.GetDelegatorUnbonding(ctx, va.GetA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error {\n\treturn action.AddToAccount(ctx, pva)\n}", "func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) {\n\t// how m...
[ "0.7331163", "0.7113666", "0.55019873", "0.5447035", "0.54171383", "0.539944", "0.53757775", "0.528504", "0.5252317", "0.52441466", "0.52223444", "0.5207451", "0.5137339", "0.51206416", "0.50980806", "0.5086144", "0.49832323", "0.49606624", "0.4951147", "0.49187273", "0.48713...
0.73836535
0
GetFunder implements the exported.ClawbackVestingAccountI interface.
GetFunder реализует интерфейс exported.ClawbackVestingAccountI.
func (va ClawbackVestingAccount) GetFunder() sdk.AccAddress { addr, err := sdk.AccAddressFromBech32(va.FunderAddress) if err != nil { panic(err) } return addr }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (svc *Service) GetFundsForProposalByFunder(req client.GetFundsForProposalByFunderRequest, reply *client.GetFundsForProposalByFunderReply) error {\n\t// Validate parameters\n\terr := req.Funder.Err()\n\tif err != nil {\n\t\treturn errors.New(\"invalid funder address\")\n\t}\n\n\tamount := svc.proposalMaster.Pr...
[ "0.52361333", "0.5219271", "0.5107116", "0.49333978", "0.48144346", "0.47565222", "0.47532547", "0.46947348", "0.46947348", "0.46947348", "0.46271998", "0.46200928", "0.45988363", "0.4598473", "0.45913786", "0.4580138", "0.45723897", "0.4563494", "0.45597363", "0.45284525", "...
0.82736015
0
GetUnlockedOnly implements the exported.ClawbackVestingAccountI interface. It returns the unlocking schedule at blockTIme. Like GetVestedCoins, but only for the lockup component.
GetUnlockedOnly реализует интерфейс exported.ClawbackVestingAccountI. Он возвращает график разблокировки по времени блока. Как GetVestedCoins, но только для компонента блокировки.
func (va ClawbackVestingAccount) GetUnlockedOnly(blockTime time.Time) sdk.Coins { return ReadSchedule(va.StartTime, va.EndTime, va.LockupPeriods, va.OriginalVesting, blockTime.Unix()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetVestedOnly(blockTime time.Time) sdk.Coins {\n\treturn ReadSchedule(va.StartTime, va.EndTime, va.VestingPeriods, va.OriginalVesting, blockTime.Unix())\n}", "func (_Constants *ConstantsCallerSession) UnstakeLockPeriod() (*big.Int, error) {\n\treturn _Constants.Contract.UnstakeLo...
[ "0.67690635", "0.5902726", "0.5877758", "0.5756858", "0.5283301", "0.5265267", "0.5147104", "0.5132386", "0.5092646", "0.50746304", "0.50555545", "0.50017166", "0.49906853", "0.49503067", "0.49447116", "0.49404284", "0.4913754", "0.49131387", "0.4903401", "0.4901039", "0.4900...
0.8647829
0
GetVestedOnly implements the exported.ClawbackVestingAccountI interface. It returns the vesting schedule and blockTime. Like GetVestedCoins, but only for the vesting (in the clawback sense) component.
GetVestedOnly реализует интерфейс exported.ClawbackVestingAccountI. Он возвращает расписание начисления и blockTime. Как GetVestedCoins, но только для компонента начисления (в смысле clawback).
func (va ClawbackVestingAccount) GetVestedOnly(blockTime time.Time) sdk.Coins { return ReadSchedule(va.StartTime, va.EndTime, va.VestingPeriods, va.OriginalVesting, blockTime.Unix()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\t// It's likely that one or the other schedule will be nearly trivial,\n\t// so there should be little overhead in recomputing the conjunction each time.\n\tcoins := coinsMin(va.GetUnlockedOnly(blockTime), va.GetVestedOnly(blockTime...
[ "0.67785037", "0.67503226", "0.66144603", "0.6596947", "0.65359217", "0.6487381", "0.64839846", "0.64474326", "0.64271235", "0.64212775", "0.6202558", "0.61998135", "0.6146275", "0.5791093", "0.52322394", "0.50997275", "0.5037106", "0.5030548", "0.49749142", "0.49297792", "0....
0.8709211
0
computeClawback removes all future vesting events from the account, returns the total sum of these events. When removing the future vesting events, the lockup schedule will also have to be capped to keep the total sums the same. (But future unlocking events might be preserved if they unlock currently vested coins.) If ...
computeClawback удаляет все будущие события прокачки из аккаунта, возвращает общую сумму этих событий. При удалении будущих событий прокачки расписание блокировки также должно быть ограничено, чтобы общая сумма осталась неизменной. (Однако будущие события разблокировки могут быть сохранены, если они разблокируют уже пр...
func (va *ClawbackVestingAccount) computeClawback(clawbackTime int64) sdk.Coins { // Compute the truncated vesting schedule and amounts. // Work with the schedule as the primary data and recompute derived fields, e.g. OriginalVesting. vestTime := va.StartTime totalVested := sdk.NewCoins() totalUnvested := sdk.NewC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va *ClawbackVestingAccount) clawback(ctx sdk.Context, dest sdk.AccAddress, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) error {\n\t// Compute the clawback based on the account state only, and update account\n\ttoClawBack := va.computeClawback(ctx.BlockTime().Unix())\n\tif toClawBack.IsZero() {\n\t\tret...
[ "0.6719768", "0.5626019", "0.5324699", "0.52189773", "0.5140744", "0.50596994", "0.5059033", "0.504977", "0.48822775", "0.48712832", "0.4870118", "0.48615333", "0.48471743", "0.4828697", "0.48089796", "0.4786879", "0.47522268", "0.4720129", "0.47145593", "0.47144145", "0.4701...
0.80608404
0
updateDelegation returns an account with its delegation bookkeeping modified for clawback, given the current disposition of the account's bank and staking state. Also returns the modified amount to claw back. Computation steps: first, compute the total amount in bonded and unbonding states, used for BaseAccount bookkee...
updateDelegation возвращает аккаунт с измененными записями о делегировании для отбывания штрафа, учитывая текущее состояние банковского и стейкинг-аккаунта. Также возвращает измененную сумму для отбывания штрафа. Этапы вычисления: сначала вычисляется общая сумма в состоянии заблокированных и разблокированных средств, и...
func (va *ClawbackVestingAccount) updateDelegation(encumbered, toClawBack, bonded, unbonding, unbonded sdk.Coins) sdk.Coins { delegated := bonded.Add(unbonding...) oldDelegated := va.DelegatedVesting.Add(va.DelegatedFree...) slashed := oldDelegated.Sub(coinsMin(delegated, oldDelegated)) total := delegated.Add(unbon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (k Keeper) TransferDelegation(ctx sdk.Context, valAddr sdk.ValAddress, fromDelegator, toDelegator sdk.AccAddress, shares sdk.Dec) (sdk.Dec, error) {\n\t// Redelegations link a delegation to it's previous validator so slashes are propagated to the new validator.\n\t// If the delegation is transferred to a new ...
[ "0.63843423", "0.6348469", "0.63280714", "0.6127292", "0.6099896", "0.59851784", "0.5903084", "0.5901659", "0.58393365", "0.57900774", "0.5761572", "0.5679458", "0.5625733", "0.562472", "0.55934227", "0.5562052", "0.55510765", "0.5547109", "0.55152845", "0.55124575", "0.54277...
0.8535179
0
NewClawbackAction returns an exported.ClawbackAction for ClawbackVestingAccount.
NewClawbackAction возвращает экспортированный ClawbackAction для ClawbackVestingAccount.
func NewClawbackAction(requestor, dest sdk.AccAddress, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) exported.ClawbackAction { return clawbackAction{ requestor: requestor, dest: dest, ak: ak, bk: bk, sk: sk, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewClawbackGrantAction(\n\tfunderAddress string,\n\tsk StakingKeeper,\n\tgrantStartTime int64,\n\tgrantLockupPeriods, grantVestingPeriods []Period,\n\tgrantCoins sdk.Coins,\n) exported.AddGrantAction {\n\treturn clawbackGrantAction{\n\t\tfunderAddress: funderAddress,\n\t\tsk: sk,\n\t\tg...
[ "0.734408", "0.724161", "0.60927427", "0.5704581", "0.54267293", "0.5386312", "0.51870364", "0.5036263", "0.50139284", "0.49548915", "0.4951062", "0.49484608", "0.4876492", "0.48602346", "0.4833887", "0.48318735", "0.48297027", "0.47833982", "0.4767467", "0.47623938", "0.4719...
0.8150347
0
TakeFromAccount implements the exported.ClawbackAction interface. It returns an error if the account is not at ClawbackVestingAccount or if the funder does not match.
TakeFromAccount реализует интерфейс exported.ClawbackAction. Он возвращает ошибку, если аккаунт не является ClawbackVestingAccount или если фундер не совпадает.
func (ca clawbackAction) TakeFromAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error { cva, ok := rawAccount.(*ClawbackVestingAccount) if !ok { return sdkerrors.Wrapf(sdkerrors.ErrNotSupported, "clawback expects *ClawbackVestingAccount, got %T", rawAccount) } if ca.requestor.String() != cva.FunderA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va *ClawbackVestingAccount) clawback(ctx sdk.Context, dest sdk.AccAddress, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) error {\n\t// Compute the clawback based on the account state only, and update account\n\ttoClawBack := va.computeClawback(ctx.BlockTime().Unix())\n\tif toClawBack.IsZero() {\n\t\tret...
[ "0.6373067", "0.61946815", "0.52225226", "0.5115219", "0.5063567", "0.50280553", "0.50247216", "0.5002626", "0.49813092", "0.49658814", "0.4900447", "0.48946452", "0.48875058", "0.48761022", "0.48605388", "0.48496777", "0.48311484", "0.48254326", "0.48169035", "0.48071176", "...
0.8336627
0
distributeReward adds the reward to the future vesting schedule in proportion to the future vesting staking tokens.
distributeReward добавляет награду в будущий график выплат пропорционально будущим востребованным стейкинг-токенам.
func (va ClawbackVestingAccount) distributeReward(ctx sdk.Context, ak AccountKeeper, bondDenom string, reward sdk.Coins) { now := ctx.BlockTime().Unix() t := va.StartTime firstUnvestedPeriod := 0 unvestedTokens := sdk.ZeroInt() for i, period := range va.VestingPeriods { t += period.Length if t <= now { firs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (_BondedECDSAKeep *BondedECDSAKeepTransactor) DistributeETHReward(opts *bind.TransactOpts) (*types.Transaction, error) {\n\treturn _BondedECDSAKeep.contract.Transact(opts, \"distributeETHReward\")\n}", "func (_BondedECDSAKeep *BondedECDSAKeepTransactorSession) DistributeETHReward() (*types.Transaction, erro...
[ "0.6758821", "0.64290905", "0.6397762", "0.63100404", "0.60241735", "0.59990525", "0.59793544", "0.5928813", "0.585137", "0.57938814", "0.5633375", "0.5522693", "0.54059565", "0.537793", "0.5369064", "0.5322376", "0.5290096", "0.52899516", "0.5289859", "0.52838886", "0.528256...
0.7879191
0
scaleCoins scales the given coins, rounding down.
scaleCoins масштабирует заданные монеты, округляя вниз.
func scaleCoins(coins sdk.Coins, scale sdk.Dec) sdk.Coins { scaledCoins := sdk.NewCoins() for _, coin := range coins { amt := coin.Amount.ToDec().Mul(scale).TruncateInt() // round down scaledCoins = scaledCoins.Add(sdk.NewCoin(coin.Denom, amt)) } return scaledCoins }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (blk *Block) Scale(sx, sy float64) {\n\tops := contentstream.NewContentCreator().\n\t\tScale(sx, sy).\n\t\tOperations()\n\n\t*blk.contents = append(*ops, *blk.contents...)\n\tblk.contents.WrapIfNeeded()\n\n\tblk.width *= sx\n\tblk.height *= sy\n}", "func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Co...
[ "0.53646266", "0.5312407", "0.5284086", "0.5185207", "0.51215756", "0.50750524", "0.5065373", "0.50019264", "0.49968642", "0.49823198", "0.49739826", "0.48987997", "0.4869174", "0.48599055", "0.4815493", "0.48011187", "0.47879016", "0.47696072", "0.47589323", "0.47524524", "0...
0.8575942
0
NewClawbackRewardAction returns an exported.RewardAction for a ClawbackVestingAccount.
NewClawbackRewardAction возвращает экспортированный RewardAction для ClawbackVestingAccount.
func NewClawbackRewardAction(ak AccountKeeper, bk BankKeeper, sk StakingKeeper) exported.RewardAction { return clawbackRewardAction{ ak: ak, bk: bk, sk: sk, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewClawbackAction(requestor, dest sdk.AccAddress, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) exported.ClawbackAction {\n\treturn clawbackAction{\n\t\trequestor: requestor,\n\t\tdest: dest,\n\t\tak: ak,\n\t\tbk: bk,\n\t\tsk: sk,\n\t}\n}", "func NewClawbackGrantAction(\n\tfun...
[ "0.7404201", "0.6953166", "0.5464461", "0.53948647", "0.5364549", "0.52774936", "0.5242982", "0.51873976", "0.5161824", "0.51156837", "0.5114475", "0.5087842", "0.5044298", "0.4955228", "0.49131867", "0.48881137", "0.4860685", "0.48492974", "0.48389384", "0.48261693", "0.4807...
0.8147421
0
ProcessReward implements the exported.RewardAction interface.
ProcessReward реализует интерфейс exported.RewardAction.
func (cra clawbackRewardAction) ProcessReward(ctx sdk.Context, reward sdk.Coins, rawAccount exported.VestingAccount) error { cva, ok := rawAccount.(*ClawbackVestingAccount) if !ok { return sdkerrors.Wrapf(sdkerrors.ErrNotSupported, "expected *ClawbackVestingAccount, got %T", rawAccount) } cva.postReward(ctx, rewa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vi *votedInfo) CalculateReward(multiplier, divider *big.Int, period int) {\n\tif multiplier.Sign() == 0 || period == 0 {\n\t\treturn\n\t}\n\tif divider.Sign() == 0 || vi.totalBondedDelegation.Sign() == 0 {\n\t\treturn\n\t}\n\t// reward = multiplier * period * bondedDelegation / (divider * totalBondedDelegati...
[ "0.6228627", "0.6163718", "0.60478336", "0.603172", "0.6024607", "0.5981112", "0.5969014", "0.59682953", "0.59496", "0.59159184", "0.5895051", "0.5894164", "0.5851955", "0.5822973", "0.57389563", "0.56443095", "0.5625199", "0.5603768", "0.5591688", "0.55578643", "0.5497458", ...
0.78040135
0
PostReward implements the exported.ClawbackVestingAccountI interface.
PostReward реализует интерфейс exported.ClawbackVestingAccountI.
func (va *ClawbackVestingAccount) PostReward(ctx sdk.Context, reward sdk.Coins, action exported.RewardAction) error { return action.ProcessReward(ctx, reward, va) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) postReward(ctx sdk.Context, reward sdk.Coins, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) {\n\t// Find the scheduled amount of vested and unvested staking tokens\n\tbondDenom := sk.BondDenom(ctx)\n\tvested := ReadSchedule(va.StartTime, va.EndTime, va.VestingPeriods, va.Origi...
[ "0.7498109", "0.6607101", "0.5900165", "0.574824", "0.5748048", "0.5657382", "0.5594524", "0.5589504", "0.55825084", "0.54884845", "0.54612577", "0.525241", "0.5206265", "0.5183272", "0.5154278", "0.5114508", "0.510423", "0.5094205", "0.5076016", "0.5053601", "0.5036061", "...
0.85944164
0
postReward encumbers a previouslydeposited reward according to the current vesting apportionment of staking. Note that rewards might be unvested, but are unlocked.
postReward привязывает ранее депонированные награды в соответствии с текущим распределением постепенного раскрытия стейкинга. Обратите внимание, что награды могут быть непривязанными, но доступны.
func (va ClawbackVestingAccount) postReward(ctx sdk.Context, reward sdk.Coins, ak AccountKeeper, bk BankKeeper, sk StakingKeeper) { // Find the scheduled amount of vested and unvested staking tokens bondDenom := sk.BondDenom(ctx) vested := ReadSchedule(va.StartTime, va.EndTime, va.VestingPeriods, va.OriginalVesting,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va *ClawbackVestingAccount) PostReward(ctx sdk.Context, reward sdk.Coins, action exported.RewardAction) error {\n\treturn action.ProcessReward(ctx, reward, va)\n}", "func (va ClawbackVestingAccount) distributeReward(ctx sdk.Context, ak AccountKeeper, bondDenom string, reward sdk.Coins) {\n\tnow := ctx.Bloc...
[ "0.7543883", "0.6046861", "0.59213", "0.5888484", "0.569692", "0.5377273", "0.53159016", "0.51158017", "0.5068981", "0.49706677", "0.49703842", "0.49670628", "0.49598822", "0.49169713", "0.49141806", "0.49058503", "0.49056473", "0.48940882", "0.48806125", "0.4861055", "0.4859...
0.7991568
0
NewDiamond builds a new diamond instance. The default diamond gets populated with a random KSUID as diamondID. Default diamond has cnflicts handling enabled.
NewDiamond создает новый экземпляр даймонда. Стандартный даймонд заполняется случайным KSUID в качестве diamondID. Стандартный даймонд имеет включенной обработку конфликтов.
func NewDiamond(repo string, stores context2.Stores, opts ...DiamondOption) *Diamond { diamond := defaultDiamond(repo, stores) for _, apply := range opts { apply(diamond) } if diamond.deconflicter == nil { // points to the appropriate metadata path rendering function from model, // depending on the conflicts...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func CreateDiamond(repo string, stores context2.Stores, opts ...DiamondOption) (model.DiamondDescriptor, error) {\n\tvar err error\n\td := NewDiamond(repo, stores, opts...)\n\n\tdefer func(t0 time.Time) {\n\t\tif d.MetricsEnabled() {\n\t\t\td.m.Usage.UsedAll(t0, \"CreateDiamond\")(err)\n\t\t}\n\t}(time.Now())\n\n\...
[ "0.6531112", "0.6350572", "0.62973064", "0.58797884", "0.5780172", "0.5770052", "0.5733969", "0.5599219", "0.55495274", "0.5385128", "0.52965933", "0.5290076", "0.5282357", "0.5248779", "0.5212722", "0.5211248", "0.51848173", "0.51848173", "0.5163079", "0.51546043", "0.509076...
0.76206434
0
basenameKeyFilter applies a filter on results from some iterator (e.g. the KeysPrefix store function). This is useful to filter out items located deeper in the metadata tree, but for which the simple separator rule cannot be applied.
basenameKeyFilter применяет фильтр к результатам некоторого итератора (например, функции KeysPrefix хранилища). Это полезно для отбора элементов, находящихся глубже в иерархии метаданных, но для которых не может быть применено простое правило разделителя.
func basenameKeyFilter(filter string) func([]string, string, error) ([]string, string, error) { return func(keys []string, next string, err error) ([]string, string, error) { if err != nil { return keys, next, err } filtered := make([]string, 0, len(keys)) for _, key := range keys { if !strings.HasPrefix...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func KeyHasSuffix(v string) predicate.Blob {\n\treturn predicate.Blob(\n\t\tfunc(s *sql.Selector) {\n\t\t\ts.Where(sql.HasSuffix(s.C(FieldKey), v))\n\t\t},\n\t)\n}", "func KeyHasPrefix(v string) predicate.Blob {\n\treturn predicate.Blob(\n\t\tfunc(s *sql.Selector) {\n\t\t\ts.Where(sql.HasPrefix(s.C(FieldKey), v)...
[ "0.52340424", "0.4928137", "0.4894693", "0.4847061", "0.47071567", "0.46861228", "0.4669897", "0.46603027", "0.46325058", "0.4622332", "0.46086925", "0.4532329", "0.45094556", "0.44940478", "0.4484004", "0.44813517", "0.4467792", "0.44648084", "0.44573885", "0.4454603", "0.44...
0.81313115
0
NewRolloutBlockLister returns a new RolloutBlockLister.
NewRolloutBlockLister возвращает новый RolloutBlockLister.
func NewRolloutBlockLister(indexer cache.Indexer) RolloutBlockLister { return &rolloutBlockLister{indexer: indexer} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s rolloutBlockNamespaceLister) Get(name string) (*v1alpha1.RolloutBlock, error) {\n\tobj, exists, err := s.indexer.GetByKey(s.namespace + \"/\" + name)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif !exists {\n\t\treturn nil, errors.NewNotFound(v1alpha1.Resource(\"rolloutblock\"), name)\n\t}\n\treturn ob...
[ "0.6314954", "0.6238325", "0.6161388", "0.61283696", "0.5824281", "0.55151194", "0.520106", "0.51907414", "0.5156084", "0.5144187", "0.51403826", "0.5134927", "0.50486195", "0.5025212", "0.5025212", "0.5023222", "0.5006356", "0.49875388", "0.49786118", "0.49344215", "0.493307...
0.84841317
0
List lists all RolloutBlocks in the indexer.
Список отображает все RolloutBlocks в индексаторе.
func (s *rolloutBlockLister) List(selector labels.Selector) (ret []*v1alpha1.RolloutBlock, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { ret = append(ret, m.(*v1alpha1.RolloutBlock)) }) return ret, err }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s rolloutBlockNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.RolloutBlock, err error) {\n\terr = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {\n\t\tret = append(ret, m.(*v1alpha1.RolloutBlock))\n\t})\n\treturn ret, err\n}", "func (s *rolloutBlockLister) ...
[ "0.7311063", "0.6322645", "0.60686725", "0.60537857", "0.58911", "0.552953", "0.5229831", "0.5191888", "0.51698", "0.51621276", "0.515386", "0.5137676", "0.5080767", "0.50736266", "0.5053302", "0.50126654", "0.4932627", "0.4914542", "0.4912257", "0.49045357", "0.49037486", ...
0.76020056
0
RolloutBlocks returns an object that can list and get RolloutBlocks.
RolloutBlocks возвращает объект, который может перечислять и получать RolloutBlocks.
func (s *rolloutBlockLister) RolloutBlocks(namespace string) RolloutBlockNamespaceLister { return rolloutBlockNamespaceLister{indexer: s.indexer, namespace: namespace} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewRolloutBlockLister(indexer cache.Indexer) RolloutBlockLister {\n\treturn &rolloutBlockLister{indexer: indexer}\n}", "func (l *LessonTut) Blocks() []*BlockTut { return l.blocks }", "func (s rolloutBlockNamespaceLister) Get(name string) (*v1alpha1.RolloutBlock, error) {\n\tobj, exists, err := s.indexer.G...
[ "0.66517174", "0.61137074", "0.6060496", "0.602393", "0.5799248", "0.57554275", "0.575131", "0.5643157", "0.5598307", "0.5551497", "0.55365604", "0.55362105", "0.5523253", "0.55167264", "0.5508807", "0.54773945", "0.54551417", "0.5453782", "0.54265654", "0.54017013", "0.53818...
0.7300363
0
List lists all RolloutBlocks in the indexer for a given namespace.
Список отображает все RolloutBlocks в индексаторе для заданного пространства имен.
func (s rolloutBlockNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.RolloutBlock, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { ret = append(ret, m.(*v1alpha1.RolloutBlock)) }) return ret, err }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *rolloutBlockLister) List(selector labels.Selector) (ret []*v1alpha1.RolloutBlock, err error) {\n\terr = cache.ListAll(s.indexer, selector, func(m interface{}) {\n\t\tret = append(ret, m.(*v1alpha1.RolloutBlock))\n\t})\n\treturn ret, err\n}", "func (s *rolloutBlockLister) RolloutBlocks(namespace string) ...
[ "0.70668423", "0.6486759", "0.59354115", "0.58971703", "0.58813244", "0.5809516", "0.5714969", "0.56303203", "0.55635107", "0.5493994", "0.5447972", "0.54354554", "0.54354066", "0.5417491", "0.53622055", "0.5223752", "0.5200587", "0.51956224", "0.5188562", "0.51839614", "0.51...
0.81074965
0