text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (b *Builder) StorePointer(idx value.PointerIndex, ptr value.Pointer) {
b.instructions = append(b.instructions,
asm.Push{Value: ptr},
asm.Store{Destination: idx},
)
rng := memory.Range{
Base: uint64(idx) * uint64(b.memoryLayout.GetPointer().GetSize()),
Size: uint64(b.memoryLayout.GetPointer().GetSize()),... | [
-0.03271099925041199,
0.3957730829715729,
0.32194602489471436,
-0.5934428572654724,
-0.6456264853477478,
0.8371155858039856,
0.35577547550201416,
-0.9473028779029846,
0.8794187903404236,
-0.05533048138022423,
0.13280226290225983,
0.147673562169075,
-0.6911140084266663,
0.8274441361427307,
... |
func (b *Builder) Strcpy(maxCount uint64) {
b.popStackMulti(2)
b.instructions = append(b.instructions, asm.Strcpy{
MaxCount: maxCount,
})
} | [
-0.34688982367515564,
0.33674517273902893,
0.43133506178855896,
0.3006110191345215,
-0.9934722185134888,
0.013739054091274738,
0.4109427034854889,
0.5612127780914307,
-0.10144508630037308,
0.45172449946403503,
-0.14838674664497375,
0.18150116503238678,
-0.5004871487617493,
-0.2184423059225... |
func (b *Builder) Post(addr value.Pointer, size uint64, p Postback) {
if !addr.IsValid() {
panic(fmt.Errorf("Pointer address %v is not valid", addr))
}
b.instructions = append(b.instructions, asm.Post{
Source: b.remap(addr),
Size: size,
})
b.decoders = append(b.decoders, postBackDecoder{
expectedSize: in... | [
0.2781773507595062,
0.8072847127914429,
0.5007720589637756,
0.1811026632785797,
-0.8924696445465088,
-0.1767481118440628,
-0.18333843350410461,
0.5816667079925537,
0.47171247005462646,
-0.8725315928459167,
-0.5099377036094666,
-0.13471092283725739,
-0.9802677631378174,
0.6003664135932922,
... |
func (b *Builder) Push(val value.Value) {
if p, ok := val.(value.Pointer); ok {
val = b.remap(p)
}
// HACK: ObservedPointers will use the trivialVolatileMemoryLayout to
// decide the protocol type of the pointer. This will always be
// 'unobserved' and therefor a TypeAbsolutePointer instead of a
// TypeVolatil... | [
0.12184968590736389,
1.023194670677185,
0.36870303750038147,
0.42414891719818115,
-0.4071010649204254,
-0.07291189581155777,
0.37325432896614075,
-0.4140141010284424,
0.7828803062438965,
0.40783149003982544,
0.24726992845535278,
0.9091784358024597,
-0.2867443859577179,
1.2811588048934937,
... |
func (b *Builder) Sub(num int32) {
b.instructions = append(b.instructions, asm.Push{
Value: value.S32(-num),
}, asm.Add{
Count: 2,
})
sidx := len(b.stack) - 1
// Change ownership of the top stack value to the add instruction.
b.stack[sidx].idx = len(b.instructions)
} | [
0.09902339428663254,
1.3582406044006348,
0.497303307056427,
0.4158862829208374,
-0.8620229959487915,
0.46419012546539307,
0.6977139711380005,
0.3489971160888672,
0.11421632766723633,
-0.8316723704338074,
-1.3084505796432495,
0.531719982624054,
-0.3337017893791199,
0.104509636759758,
1.62... |
func (b *Builder) JumpLabel(label uint32) {
b.instructions = append(b.instructions, asm.JumpLabel{
Label: label,
})
} | [
-0.258491188287735,
0.949103057384491,
0.502568781375885,
0.22195380926132202,
-0.0857609212398529,
1.6263759136199951,
-0.1599130481481552,
-0.3004192113876343,
1.0813075304031372,
0.030105529353022575,
-0.4172815978527069,
0.01795804873108864,
-0.16094937920570374,
-0.015594568103551865,... |
func (b *Builder) JumpNZ(label uint32) {
b.popStack()
b.instructions = append(b.instructions, asm.JumpNZ{
Label: label,
})
} | [
-0.18893598020076752,
0.9145337343215942,
0.3902374804019928,
1.0366361141204834,
-0.37344473600387573,
0.04510049521923065,
0.16560398042201996,
-0.029812371358275414,
1.2728482484817505,
-0.047800976783037186,
-0.6626421809196472,
0.41034138202667236,
-0.2003505975008011,
0.8684130311012... |
func (b *Builder) JumpZ(label uint32) {
b.popStack()
b.instructions = append(b.instructions, asm.JumpZ{
Label: label,
})
} | [
-0.32569175958633423,
1.0317111015319824,
0.3853743374347687,
0.7684273719787598,
-0.2477913647890091,
0.023425348103046417,
0.18731944262981415,
0.09647555649280548,
1.052557349205017,
-0.08130735903978348,
-0.6756666898727417,
0.38956692814826965,
-0.4975912868976593,
0.4843389093875885,... |
func (b *Builder) Notification(ID uint64, addr value.Pointer, size uint64) {
if !addr.IsValid() {
panic(fmt.Errorf("Pointer address %v is not valid", addr))
}
b.instructions = append(b.instructions, asm.Notification{
ID: ID,
Source: b.remap(addr),
Size: size,
})
} | [
0.10189829021692276,
0.6601753830909729,
0.08510266244411469,
0.4106987714767456,
-0.2993447184562683,
-0.20923560857772827,
0.17121444642543793,
0.9329921007156372,
1.1304287910461426,
0.2737196087837219,
-0.9928228259086609,
-0.12995149195194244,
0.30257880687713623,
0.5168531537055969,
... |
func (b *Builder) Pop(count uint32) {
b.popStackMulti(int(count))
b.instructions = append(b.instructions, asm.Pop{
Count: count,
})
} | [
-0.48394185304641724,
1.5501242876052856,
0.339453786611557,
0.5718232989311218,
-0.037824083119630814,
-0.04121562838554382,
0.7080753445625305,
0.4352366626262665,
-0.18437860906124115,
0.4460825026035309,
-1.042309284210205,
-1.0042455196380615,
-0.2948085367679596,
0.7240911722183228,
... |
func (b *Builder) ReserveMemory(rng memory.Range) {
interval.Merge(&b.reservedMemory, rng.Span(), true)
} | [
-0.22367285192012787,
0.7630572319030762,
0.22989611327648163,
0.012518647126853466,
0.8910390138626099,
0.9640256762504578,
-0.0958828553557396,
-0.3827348053455353,
0.6657007336616516,
-0.9165639877319336,
-0.999792754650116,
0.3184191584587097,
-0.5893269777297974,
0.3078824281692505,
... |
func (b *Builder) GetMappedTarget(ptr value.Pointer) (value.Pointer, error) {
p, ok := ptr.(value.ObservedPointer)
if !ok {
return ptr, fmt.Errorf("ptr %v is not type of value.ObservedPointer", ptr)
}
idx := interval.IndexOf(&b.mappedMemory, uint64(p))
if idx < 0 {
return ptr, fmt.Errorf("can not find ptr %v ... | [
-0.08767141401767731,
-0.5999628305435181,
0.8991039991378784,
-0.26680514216423035,
-0.48572757840156555,
0.4718117117881775,
0.40701884031295776,
-0.7744062542915344,
0.8973608016967773,
-0.47228699922561646,
1.2379847764968872,
1.387929081916809,
-0.7788519263267517,
-0.0384894683957099... |
func (b *Builder) MapMemory(rng memory.Range) {
if ty := b.peekStack().ty; ty != protocol.Type_AbsolutePointer {
panic(fmt.Errorf("MapMemory can only map to absolute pointers. Got type: %v", ty))
}
// Allocate memory to hold the target mapped base address.
// Do not release the memory as it may be used during fr... | [
-1.070601463317871,
0.01950211636722088,
0.6117837429046631,
-0.21361000835895538,
0.2882760465145111,
0.8083091378211975,
-0.07865972816944122,
-0.9484637379646301,
0.9244462847709656,
-0.01450300496071577,
0.09017055481672287,
0.8275004625320435,
-0.12820100784301758,
-0.0242230091243982... |
func (b *Builder) UnmapMemory(rng memory.Range) {
i := interval.IndexOf(&b.mappedMemory, rng.Base)
if i < 0 {
panic(fmt.Errorf("Range (%v) was not mapped", rng))
}
if b.mappedMemory[i].Span() != rng.Span() {
panic(fmt.Errorf("Range passed to UnmapMemory (%v) is not exactly the same range passed to MapMemory (%v... | [
-0.646501362323761,
-0.06128740683197975,
0.6239730715751648,
-0.12145204097032547,
-1.0332512855529785,
0.7194594144821167,
0.3515811562538147,
-0.2541029453277588,
0.9252457022666931,
0.078423872590065,
-0.05402340739965439,
0.14359062910079956,
-0.522946834564209,
-0.39353063702583313,
... |
func (b *Builder) Write(rng memory.Range, resourceID id.ID) {
if rng.Size > 0 {
idx, found := b.resourceIDToIdx[resourceID]
if !found {
idx = uint32(len(b.resources))
b.resourceIDToIdx[resourceID] = idx
b.resourceIdxToID[idx] = resourceID
b.resources = append(b.resources, &gapir.ResourceInfo{
Id: ... | [
-1.3260868787765503,
0.012402274645864964,
0.25812774896621704,
-1.1326370239257812,
0.5871819853782654,
0.08377157151699066,
0.31546080112457275,
0.4539690315723419,
0.5223284363746643,
-0.03580889105796814,
-0.3723173439502716,
0.03682086989283562,
-0.2762705385684967,
0.5665612816810608... |
func (b *Builder) GetNotificationID() uint64 {
id := b.nextNotificationID
b.nextNotificationID++
return id
} | [
0.6695226430892944,
0.7134023904800415,
0.5237159729003906,
1.2645593881607056,
0.4107767939567566,
0.6061728596687317,
1.152212381362915,
0.16481833159923553,
0.9323268532752991,
-0.010240315459668636,
-0.8010550737380981,
0.16453000903129578,
-0.5228455066680908,
0.8497416973114014,
0.... |
func (b *Builder) RegisterNotificationReader(notificationID uint64, reader NotificationReader) error {
if _, ok := b.notificationReaders[notificationID]; ok {
return fmt.Errorf("notificationID %d already registered", notificationID)
}
b.notificationReaders[notificationID] = reader
return nil
} | [
-0.51546710729599,
0.2190057337284088,
0.023154310882091522,
0.37682726979255676,
0.36459222435951233,
0.038630411028862,
-0.5851600766181946,
-0.48206838965415955,
-0.05309481546282768,
-0.06956440210342407,
-0.3452267348766327,
0.4908390939235687,
-0.0361199676990509,
0.9179058074951172,... |
func (b *Builder) RegisterReplayStatusReader(ctx context.Context, r *status.Replay) error {
reader := func(n gapir.Notification) {
s := n.GetReplayStatus()
label := s.GetLabel()
totalInstrs := s.GetTotalInstrs()
finishedInstrs := s.GetFinishedInstrs()
log.D(ctx, "Replay status: Label: %v; Total instructions... | [
-0.35606616735458374,
-0.3405420482158661,
0.6092036962509155,
-0.32021525502204895,
-0.4139096736907959,
-0.044808562844991684,
0.5975131988525391,
-0.23772914707660675,
-0.22850863635540009,
0.145364448428154,
-0.6728482246398926,
0.47350379824638367,
0.15283484756946564,
0.2130887359380... |
func (b *Builder) Export(ctx context.Context) (gapir.Payload, error) {
ctx = status.Start(ctx, "Export")
defer status.Finish(ctx)
ctx = log.Enter(ctx, "Export")
payload, _, _, _, err := b.Build(ctx)
if err != nil {
return payload, err
}
// Send phony postbacks.
for _, decoder := range b.decoders {
decoder... | [
-0.18626801669597626,
0.3465100824832916,
0.6654231548309326,
0.7927630543708801,
-0.424214243888855,
-0.5000555515289307,
0.3311496376991272,
-0.6704030632972717,
0.47202572226524353,
-0.11935129016637802,
-0.7392722964286804,
0.751166582107544,
-1.0392483472824097,
0.6550239324569702,
... |
func (b *Builder) Build(ctx context.Context) (gapir.Payload, PostDataHandler, NotificationHandler, FenceReadyRequestCallback, error) {
ctx = status.Start(ctx, "Build")
defer status.Finish(ctx)
ctx = log.Enter(ctx, "Build")
if config.DebugReplayBuilder {
log.I(ctx, "Instruction count: %d", len(b.instructions))
... | [
0.1128523051738739,
0.0826253816485405,
0.611503541469574,
0.13793350756168365,
0.060495831072330475,
-0.38661718368530273,
0.6055707335472107,
-0.8085303902626038,
0.24889810383319855,
0.2295152097940445,
0.13930080831050873,
0.04136957228183746,
-0.36193525791168213,
0.7886115312576294,
... |
func (l volatileMemoryLayout) ResolveTemporaryPointer(p value.TemporaryPointer) value.VolatilePointer {
return value.VolatilePointer(l.tempBase + uint64(p))
} | [
0.4598444998264313,
-0.9987967014312744,
0.4755856394767761,
-0.8124120831489563,
-0.2179933339357376,
-0.02013610303401947,
-0.7654865384101868,
-0.47055166959762573,
-0.028539694845676422,
0.39743342995643616,
0.49390706419944763,
-0.6181760430335999,
-1.199331521987915,
0.36134421825408... |
func (l volatileMemoryLayout) ResolveObservedPointer(p value.ObservedPointer) (protocol.Type, uint64) {
bufferIdx := interval.IndexOf(l.reservedMemoryAsList, uint64(p))
if bufferIdx < 0 {
// Pointer is not observed. However, this can be legal - for example
// glVertexAttribPointer may have been passed a pointer t... | [
0.6042109131813049,
-0.7408276796340942,
0.8491505980491638,
-0.7942262291908264,
-0.3297125995159149,
0.05255750194191933,
0.09541433304548264,
-0.688448429107666,
0.25869572162628174,
0.2745625078678131,
-0.06894174218177795,
0.5163474678993225,
-0.7602303624153137,
0.4532996714115143,
... |
func (a *API) ParseQuery(ctx *fasthttp.RequestCtx) map[string]string {
qs, _ := url.ParseQuery(string(ctx.URI().QueryString()))
values := make(map[string]string)
for key, val := range qs {
values[key] = val[0]
}
return values
} | [
-0.6286956071853638,
-0.4408707320690155,
0.45423173904418945,
-0.08154132217168808,
0.01780908741056919,
-0.5274546146392822,
-1.417130470275879,
-0.3645331859588623,
0.018435485661029816,
-0.5737234950065613,
0.2657293379306793,
-0.06492020189762115,
0.21768982708454132,
0.74542605876922... |
func (a *API) Paginate(ctx *fasthttp.RequestCtx, orderFields ...string) (model.Pagination, map[string]string, error) {
var err error
errs := make(map[string]string)
pagination := model.NewPagination()
queryParams := a.ParseQuery(ctx)
if val, ok := queryParams["limit"]; ok {
pagination.Limit, err = strconv.Atoi(... | [
-0.6998322010040283,
-0.0686195120215416,
1.057736873626709,
0.49882370233535767,
-0.02409675531089306,
-0.6773844957351685,
-0.12255692481994629,
-0.40101951360702515,
-0.758415699005127,
0.6812368631362915,
-0.02003883197903633,
-0.40929725766181946,
-0.2103586047887802,
0.60180097818374... |
func (a *API) JSONBody(ctx *fasthttp.RequestCtx, model interface{}) {
r := bytes.NewReader(ctx.PostBody())
json.NewDecoder(r).Decode(&model)
} | [
-1.0440198183059692,
-0.29248085618019104,
0.5946348309516907,
-0.08989787101745605,
0.032154008746147156,
-0.21379277110099792,
-0.7587486505508423,
-1.2367461919784546,
0.6985892057418823,
-0.04089076817035675,
-1.0917351245880127,
0.3209764063358307,
-0.08842206746339798,
0.515210330486... |
func (a *API) JSONResponse(ctx *fasthttp.RequestCtx, response model.ResponseInterface, status int) {
ctx.Response.Header.Set("Content-Type", "application/json; charset=utf-8")
if response != nil {
ctx.SetBody([]byte(response.ToJSON()))
}
ctx.SetStatusCode(status)
} | [
-0.2777726650238037,
-1.0610170364379883,
0.4781590402126312,
-0.35240501165390015,
-0.4238295257091522,
-0.9306389093399048,
-0.08552641421556473,
-0.25301626324653625,
1.008816123008728,
0.32283857464790344,
-0.8494261503219604,
-0.056686993688344955,
-0.08158999681472778,
-0.18200853466... |
func asStringer(t r.Type, v r.Value) (ret string, okay bool) {
type stringer interface{ String() string }
stringish := t.AssignableTo(r.TypeOf((*stringer)(nil)).Elem())
if stringish {
if !v.IsValid() {
v = r.Zero(t)
}
if val, ok := v.Interface().(stringer); ok {
ret = val.String()
}
okay = true // su... | [
-0.9046394228935242,
-1.129896879196167,
0.44625183939933777,
-0.13799698650836945,
-0.6337668299674988,
-0.2868345081806183,
-0.32155489921569824,
-0.4165457487106323,
-0.15538184344768524,
0.5237632989883423,
0.461428165435791,
0.09734920412302017,
-0.8487471342086792,
0.730563223361969,... |
func RegisterModule(name string, f func() Module) {
mods[name] = f
} | [
-1.0177638530731201,
0.8385373950004578,
0.2536926865577698,
-0.06569930166006088,
0.7720476388931274,
0.08181539922952652,
-0.8802720904350281,
0.37219130992889404,
-0.12082730978727341,
0.17036588490009308,
-0.6421190500259399,
1.2443490028381348,
0.5325042009353638,
-0.09030213952064514... |
func VerifyDnsResourceRecordUpdate(reqLogger logr.Logger, fqdn string, txtValue string) bool {
var attempt int
var success bool
attempt = 1
// After checking attempt count is < then maxAttemptsForDnsPropogationCheck,
// verifyDnsResourceRecordUpdate will validate the challange with the presence
// of the DNS rec... | [
-0.026819070801138878,
0.23654723167419434,
0.5609714984893799,
0.07787611335515976,
-0.440657377243042,
0.17948774993419647,
0.10650405287742615,
-0.3384382426738739,
-0.25452208518981934,
-0.4437088370323181,
-0.6014107465744019,
-0.22888407111167908,
-0.4309907853603363,
0.1565057635307... |
func verifyDnsResourceRecordUpdate(reqLogger logr.Logger, fqdn string, txtValue string) bool {
reqLogger.Info(fmt.Sprintf("will query DNS in %v seconds", waitTimePeriodDnsPropogationCheck))
time.Sleep(time.Duration(waitTimePeriodDnsPropogationCheck) * time.Second)
dnsChangesPropogated, err := ValidateResourceRecor... | [
-0.0023863136302679777,
0.5482574701309204,
0.49195244908332825,
0.1845513880252838,
-0.7644457221031189,
0.05423056706786156,
-0.19596564769744873,
-0.2416841685771942,
0.4105045795440674,
-0.22763276100158691,
-0.294532835483551,
0.3001297116279602,
-0.5076491832733154,
0.136970773339271... |
func ValidateResourceRecordUpdatesUsingCloudflareDNS(reqLogger logr.Logger, name string, value string) (bool, error) {
requestUrl := cloudflareDNSOverHttpsEndpoint + "?name=" + name + "&type=TXT"
reqLogger.Info(fmt.Sprintf("cloudflare dns-over-https Request URL: %v", requestUrl))
var request, err = http.NewRequest... | [
-0.23077963292598724,
0.21073086559772491,
0.950998067855835,
-0.37690526247024536,
-0.8385705351829529,
0.11895617097616196,
0.1332256942987442,
-1.267761468887329,
0.033235859125852585,
-0.22691881656646729,
-0.34874042868614197,
-0.5821967720985413,
-0.6870163679122925,
0.50165510177612... |
func ApplyUserModeChanges(client *Client, changes modes.ModeChanges, force bool, oper *Oper) modes.ModeChanges {
applied := make(modes.ModeChanges, 0)
// #1617: if the user is offline, they are not counted in LUSERS,
// so don't modify the LUSERS stats for +i or +o.
present := len(client.Sessions()) != 0
for _, c... | [
0.11527474224567413,
-0.2914491295814514,
0.7812837958335876,
0.061514366418123245,
-0.788384199142456,
0.06429336965084076,
0.3827040195465088,
-0.27782750129699707,
0.810696542263031,
0.3282182812690735,
-0.5683979988098145,
-0.05377524346113205,
0.21713995933532715,
0.9221879243850708,
... |
func parseDefaultModes(rawModes string, parser func(params ...string) (modes.ModeChanges, map[rune]bool)) modes.Modes {
modeChangeStrings := strings.Fields(rawModes)
modeChanges, _ := parser(modeChangeStrings...)
defaultModes := make(modes.Modes, 0)
for _, modeChange := range modeChanges {
if modeChange.Op == mod... | [
-0.5645314455032349,
-0.08243219554424286,
0.5626915097236633,
0.3005492687225342,
0.903199315071106,
-0.43618205189704895,
-0.3373616933822632,
-0.6235751509666443,
-0.031897369772195816,
0.4981761872768402,
-0.7186217904090881,
-0.801555871963501,
-0.004864266607910395,
0.665471076965332... |
func ParseDefaultChannelModes(rawModes *string) modes.Modes {
if rawModes == nil {
// not present in config, fall back to compile-time default
return DefaultChannelModes
}
return parseDefaultModes(*rawModes, modes.ParseChannelModeChanges)
} | [
-0.41617920994758606,
-0.3614862263202667,
0.41596317291259766,
-0.1734807938337326,
0.922086238861084,
-0.1482880711555481,
-0.5713147521018982,
-0.6941899657249451,
0.3126713037490845,
0.0937129557132721,
-0.3662049174308777,
-0.21981605887413025,
-0.4100780785083771,
0.6195963621139526,... |
func ParseDefaultUserModes(rawModes *string) modes.Modes {
if rawModes == nil {
// not present in config, fall back to compile-time default
return DefaultUserModes
}
return parseDefaultModes(*rawModes, modes.ParseUserModeChanges)
} | [
-0.3010893762111664,
-0.05149514973163605,
0.29600343108177185,
0.8728059530258179,
0.2295282781124115,
0.24425514042377472,
0.08762334287166595,
-0.3744108974933624,
0.6778560280799866,
-0.1742963045835495,
-0.5848267674446106,
-0.5442126989364624,
-0.38363412022590637,
0.1006399840116500... |
func validateChannelKey(key string) bool {
return key != "" && key[0] != ':' && strings.IndexByte(key, ' ') == -1
} | [
-0.515661895275116,
-0.550545871257782,
0.37697434425354004,
-0.5845373868942261,
-0.09955917298793793,
0.4019036293029785,
-1.0377097129821777,
-0.07384293526411057,
-0.48459872603416443,
1.4954179525375366,
0.01228958647698164,
0.8188452124595642,
-0.8310658931732178,
0.945449948310852,
... |
func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, changes modes.ModeChanges, rb *ResponseBuffer) (applied modes.ModeChanges) {
// so we only output one warning for each list type when full
listFullWarned := make(map[modes.Mode]bool)
var alreadySentPrivError bool
maskOpCount := 0
chna... | [
-0.709720253944397,
-0.4349495768547058,
0.7808006405830383,
0.02104826644062996,
-0.35308948159217834,
-0.2741577625274658,
-0.23625881969928741,
-0.3516819477081299,
0.8035327196121216,
0.36316433548927307,
-0.15462945401668549,
0.22155962884426117,
-0.5141534805297852,
0.950049579143524... |
func umodeGreaterThan(l modes.Mode, r modes.Mode) bool {
for _, mode := range modes.ChannelUserModes {
if l == mode && r != mode {
return true
} else if r == mode {
return false
}
}
return false
} | [
-0.6308203935623169,
-0.25472238659858704,
0.7636999487876892,
-0.06451813876628876,
-0.6606175899505615,
0.5395042896270752,
-0.7994301319122314,
-0.4066198468208313,
0.12628155946731567,
0.22529567778110504,
-0.8432704210281372,
-0.22800767421722412,
-0.4150266647338867,
0.01377193070948... |
func (channel *Channel) ProcessAccountToUmodeChange(client *Client, change modes.ModeChange) (results []modes.ModeChange, err error) {
changed := false
defer func() {
if changed {
channel.MarkDirty(IncludeLists)
}
}()
account := client.Account()
isOperChange := client.HasRoleCapabs("chanreg")
channel.sta... | [
-1.0138981342315674,
-0.536910891532898,
0.9644533395767212,
-0.34853440523147583,
0.0008990882197394967,
-0.3139699399471283,
0.4649331867694855,
-0.0525774285197258,
0.254160076379776,
0.24658550322055817,
-0.21584179997444153,
0.4947344958782196,
0.0692971795797348,
0.35394296050071716,... |
func BasicAuthValidator(username, password string, c echo.Context) (bool, error) {
if subtle.ConstantTimeCompare([]byte(username), []byte(os.Getenv("USERNAME"))) == 1 &&
subtle.ConstantTimeCompare([]byte(password), []byte(os.Getenv("PASSWORD"))) == 1 {
return true, nil
}
return false, nil
} | [
-0.5854868292808533,
-0.40610939264297485,
0.6918705105781555,
0.8380555510520935,
-0.8595499396324158,
1.0224173069000244,
0.04394874721765518,
0.16838438808918,
-0.2708915174007416,
0.07897447794675827,
0.22262603044509888,
0.5591106414794922,
-0.8075409531593323,
0.8745408654212952,
0... |
func (cli *VanClient) VanRouterCreate(ctx context.Context, options types.VanRouterCreateOptions) error {
// todo return error
if options.EnableConsole {
if options.AuthMode == string(types.ConsoleAuthModeInternal) || options.AuthMode == "" {
options.AuthMode = string(types.ConsoleAuthModeInternal)
if options.... | [
-0.36790528893470764,
-0.3658207654953003,
0.916031002998352,
0.3134969472885132,
0.4560699760913849,
0.32137319445610046,
-0.05379631370306015,
-0.10064864158630371,
-0.00914318859577179,
1.1557881832122803,
0.08550424873828888,
0.30040135979652405,
-0.6188654899597168,
-0.303306043148040... |
func Pinger(c chan connection, size int, PingInterval time.Duration, WriteWaitInterval time.Duration) {
for i := 0; i < size; i++ {
go func() {
cSet := make(map[string]*websocket.Conn)
timer := time.NewTicker(PingInterval)
for {
select {
case conn := <-c:
cSet[conn.uniqConnID] = conn.conn
c... | [
-0.7905413508415222,
-0.8022254705429077,
0.7811200022697449,
0.10906253755092621,
0.3350062668323517,
0.26560285687446594,
0.5731351375579834,
-0.30058860778808594,
-0.12976686656475067,
0.2339622676372528,
-0.23994281888008118,
-0.37112146615982056,
-0.2905659079551697,
1.281356334686279... |
func NewEtherDelta(address common.Address, backend bind.ContractBackend) (*EtherDelta, error) {
contract, err := bindEtherDelta(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &EtherDelta{EtherDeltaCaller: EtherDeltaCaller{contract: contract}, EtherDeltaTransactor: EtherDeltaTransacto... | [
-0.12467816472053528,
-0.37937578558921814,
0.7594488263130188,
-0.22040045261383057,
-0.5384789109230042,
0.5916414260864258,
0.0674697682261467,
0.295494943857193,
-0.14338041841983795,
0.5972380638122559,
-0.9128074049949646,
0.12259424477815628,
-0.05971492826938629,
0.9404693841934204... |
func NewEtherDeltaCaller(address common.Address, caller bind.ContractCaller) (*EtherDeltaCaller, error) {
contract, err := bindEtherDelta(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &EtherDeltaCaller{contract: contract}, nil
} | [
-0.3769308626651764,
-0.20559975504875183,
0.7207760214805603,
-0.11783938854932785,
-0.6069900393486023,
0.9999421834945679,
-0.282105028629303,
0.0917600467801094,
-0.13290290534496307,
0.6975716948509216,
-0.6942190527915955,
-0.41027289628982544,
0.009533002972602844,
1.327292919158935... |
func NewEtherDeltaTransactor(address common.Address, transactor bind.ContractTransactor) (*EtherDeltaTransactor, error) {
contract, err := bindEtherDelta(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &EtherDeltaTransactor{contract: contract}, nil
} | [
-0.49462980031967163,
-0.5647019147872925,
0.6630771160125732,
-1.0325974225997925,
-0.9859102368354797,
0.49762189388275146,
-0.2470109760761261,
0.5001165270805359,
0.3630331754684448,
0.9149531126022339,
-0.9796187877655029,
0.1394859254360199,
-0.06220299005508423,
0.4263112246990204,
... |
func NewEtherDeltaFilterer(address common.Address, filterer bind.ContractFilterer) (*EtherDeltaFilterer, error) {
contract, err := bindEtherDelta(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &EtherDeltaFilterer{contract: contract}, nil
} | [
-0.39886167645454407,
-0.3260047733783722,
0.6894428730010986,
-0.08030322939157486,
-0.6115554571151733,
0.5938714742660522,
-0.0561087541282177,
0.27815258502960205,
-0.4944300651550293,
0.4756079316139221,
-0.5970029234886169,
0.08356291800737381,
0.002581298351287842,
1.067535042762756... |
func bindEtherDelta(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(EtherDeltaABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, calle... | [
-0.8358190655708313,
-0.8435093760490417,
0.817030131816864,
-0.2845847010612488,
-0.4213669002056122,
0.4821394383907318,
-0.09903094917535782,
-0.06688566505908966,
0.2927461564540863,
0.20829255878925323,
-0.06829440593719482,
0.41535183787345886,
-0.04955806955695152,
0.872843623161315... |
func (_EtherDelta *EtherDeltaRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _EtherDelta.Contract.EtherDeltaCaller.contract.Call(opts, result, method, params...)
} | [
-0.6940896511077881,
0.8777376413345337,
0.6740946769714355,
0.6073061227798462,
-0.5481410622596741,
0.860072672367096,
-0.42048782110214233,
-0.7984572649002075,
0.3234763443470001,
0.25927552580833435,
0.4090924561023712,
-0.1256450116634369,
-0.5222068428993225,
0.3149894177913666,
-... |
func (_EtherDelta *EtherDeltaRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _EtherDelta.Contract.EtherDeltaTransactor.contract.Transfer(opts)
} | [
-0.5629535913467407,
0.1805742383003235,
0.4860081672668457,
0.4937353730201721,
-0.0977405235171318,
0.7465576529502869,
0.369434118270874,
-0.3982721269130707,
0.9368396401405334,
-0.4150245189666748,
0.20441187918186188,
0.2336827516555786,
-0.4771856367588043,
-0.24761562049388885,
0... |
func (_EtherDelta *EtherDeltaRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _EtherDelta.Contract.EtherDeltaTransactor.contract.Transact(opts, method, params...)
} | [
-0.46596354246139526,
0.24095052480697632,
0.6813114881515503,
-0.5610964894294739,
0.3666265308856964,
0.6446489691734314,
0.7375607490539551,
-0.3838520348072052,
0.42825937271118164,
0.07874671369791031,
0.3793034851551056,
0.412923127412796,
0.01601243205368519,
0.2922905683517456,
0... |
func (_EtherDelta *EtherDeltaCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _EtherDelta.Contract.contract.Call(opts, result, method, params...)
} | [
-0.9178723096847534,
0.9618560075759888,
0.6319513320922852,
0.6167634129524231,
-0.8239374160766602,
0.7020466923713684,
-0.2861577272415161,
-0.8336897492408752,
0.3364955186843872,
0.15429379045963287,
0.0799490213394165,
-0.1383506804704666,
-0.3916572034358978,
0.19408714771270752,
... |
func (_EtherDelta *EtherDeltaTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _EtherDelta.Contract.contract.Transfer(opts)
} | [
-0.642477810382843,
0.2318594753742218,
0.4128369688987732,
0.7114088535308838,
-0.12133527547121048,
0.5757783055305481,
0.5872833728790283,
-0.3716735243797302,
0.9915115237236023,
-0.5097399353981018,
-0.006316437851637602,
0.2839185297489166,
-0.286282479763031,
-0.30254366993904114,
... |
func (_EtherDelta *EtherDeltaTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _EtherDelta.Contract.contract.Transact(opts, method, params...)
} | [
-0.5557700991630554,
0.508014976978302,
0.5907722115516663,
-0.3666365146636963,
0.3244781494140625,
0.23765219748020172,
0.8578553795814514,
-0.34279531240463257,
0.5303171873092651,
-0.044958267360925674,
0.04769815132021904,
0.4162232577800751,
0.1448591947555542,
0.09081346541643143,
... |
func (_EtherDelta *EtherDeltaCaller) AccountLevelsAddr(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "accountLevelsAddr")
return *ret0, err
} | [
-0.19777676463127136,
0.17157727479934692,
0.5980107188224792,
0.8293671607971191,
-0.35923123359680176,
0.9428730607032776,
0.4548388719558716,
-0.4351159632205963,
0.3711755573749542,
-0.3382093608379364,
0.6853715181350708,
0.3571571111679077,
-0.8421890139579773,
0.6374886631965637,
... |
func (_EtherDelta *EtherDeltaSession) AccountLevelsAddr() (common.Address, error) {
return _EtherDelta.Contract.AccountLevelsAddr(&_EtherDelta.CallOpts)
} | [
0.08643738925457001,
0.4155888855457306,
0.32237496972084045,
0.45677101612091064,
-0.11917368322610855,
0.8458606004714966,
-0.007710706442594528,
-0.22130759060382843,
0.7805238962173462,
-0.2685236632823944,
1.1355152130126953,
0.39468032121658325,
-0.641477644443512,
0.6545229554176331... |
func (_EtherDelta *EtherDeltaCallerSession) AccountLevelsAddr() (common.Address, error) {
return _EtherDelta.Contract.AccountLevelsAddr(&_EtherDelta.CallOpts)
} | [
0.006196998525410891,
0.3543962836265564,
0.34618958830833435,
0.5022474527359009,
-0.12822964787483215,
0.9111929535865784,
0.16461771726608276,
-0.46724408864974976,
0.6762402653694153,
-0.38624635338783264,
0.9267863035202026,
0.2575451731681824,
-0.6114287376403809,
0.8761051893234253,... |
func (_EtherDelta *EtherDeltaCaller) Admin(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "admin")
return *ret0, err
} | [
-0.2854515314102173,
0.8886566162109375,
0.5342450141906738,
0.30777159333229065,
-0.32024216651916504,
0.22773772478103638,
-0.10725799202919006,
-1.3086799383163452,
0.550689160823822,
-0.3934210538864136,
-0.14761941134929657,
0.7801077365875244,
-1.1608374118804932,
0.3817789554595947,... |
func (_EtherDelta *EtherDeltaSession) Admin() (common.Address, error) {
return _EtherDelta.Contract.Admin(&_EtherDelta.CallOpts)
} | [
-0.2053980678319931,
0.964339017868042,
0.39387404918670654,
-0.3071373403072357,
-0.1883201003074646,
0.0012971238465979695,
-0.7380272746086121,
-1.5393800735473633,
0.9406315088272095,
-0.2322266846895218,
0.8101324439048767,
0.8598304390907288,
-0.9891003966331482,
-0.23563644289970398... |
func (_EtherDelta *EtherDeltaCallerSession) Admin() (common.Address, error) {
return _EtherDelta.Contract.Admin(&_EtherDelta.CallOpts)
} | [
-0.2807934582233429,
0.8553382754325867,
0.3921852707862854,
-0.26248207688331604,
-0.19476374983787537,
0.25248983502388,
-0.5693249106407166,
-1.7877655029296875,
0.8587879538536072,
-0.12765784561634064,
0.576030969619751,
0.8925127983093262,
-1.0282282829284668,
-0.004961309488862753,
... |
func (_EtherDelta *EtherDeltaCaller) AmountFilled(opts *bind.CallOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
er... | [
0.4649752676486969,
-0.15622027218341827,
0.7763206362724304,
-1.0338503122329712,
0.04011146351695061,
-0.017416875809431076,
-0.1980159431695938,
-0.7601576447486877,
0.15109877288341522,
0.06761293113231659,
-0.7364252209663391,
0.31640875339508057,
-0.05855453759431839,
0.5396481752395... |
func (_EtherDelta *EtherDeltaSession) AmountFilled(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte) (*big.Int, error) {
return _EtherDelta.Contract.AmountFilled(&_EtherDelta.CallOpts, toke... | [
0.4742305278778076,
-0.2528092563152313,
0.7224598526954651,
-1.0405768156051636,
0.027413642033934593,
-0.1680539846420288,
-0.4000402092933655,
-0.56405109167099,
0.47255006432533264,
0.15858149528503418,
-0.4802479147911072,
0.582855761051178,
0.1204390600323677,
0.2816483676433563,
-... |
func (_EtherDelta *EtherDeltaCallerSession) AmountFilled(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte) (*big.Int, error) {
return _EtherDelta.Contract.AmountFilled(&_EtherDelta.CallOpts... | [
0.4216749668121338,
-0.2154500037431717,
0.6800471544265747,
-1.105147361755371,
0.03713477775454521,
-0.16512419283390045,
-0.3867834806442261,
-0.7538759708404541,
0.40818947553634644,
0.14203046262264252,
-0.5370637774467468,
0.5788467526435852,
0.10086899250745773,
0.4339328408241272,
... |
func (_EtherDelta *EtherDeltaCaller) AvailableVolume(opts *bind.CallOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
... | [
0.17800182104110718,
-0.24439865350723267,
0.7587595582008362,
-0.4767383635044098,
-0.07165548205375671,
0.10515947639942169,
-0.07748053222894669,
-0.5040069818496704,
-0.09402699768543243,
0.2107088714838028,
0.22193674743175507,
0.45311132073402405,
-0.6144651174545288,
0.1758123934268... |
func (_EtherDelta *EtherDeltaSession) AvailableVolume(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte) (*big.Int, error) {
return _EtherDelta.Contract.AvailableVolume(&_EtherDelta.CallOpts... | [
0.2612572908401489,
-0.132828488945961,
0.6273102760314941,
-0.6288143396377563,
-0.19473518431186676,
0.00038959403173066676,
-0.2716580629348755,
-0.28687140345573425,
0.05093640461564064,
0.22491686046123505,
0.5754139423370361,
0.8410442471504211,
-0.3994387984275818,
0.015792837366461... |
func (_EtherDelta *EtherDeltaCallerSession) AvailableVolume(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte) (*big.Int, error) {
return _EtherDelta.Contract.AvailableVolume(&_EtherDelta.Ca... | [
0.22169041633605957,
-0.10026046633720398,
0.6094676852226257,
-0.6550842523574829,
-0.21325424313545227,
-0.013633721508085728,
-0.24725697934627533,
-0.40686681866645813,
0.03203077241778374,
0.17870236933231354,
0.47048652172088623,
0.8216742873191833,
-0.4376467764377594,
0.13532970845... |
func (_EtherDelta *EtherDeltaCaller) BalanceOf(opts *bind.CallOpts, token common.Address, user common.Address) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "balanceOf", token, user)
return *ret0, err
} | [
0.3542274832725525,
0.5139919519424438,
0.6698000431060791,
0.2225644737482071,
-0.0786527618765831,
0.1692536324262619,
-0.3706628084182739,
-1.2415534257888794,
-0.1422041356563568,
-0.24504734575748444,
-0.4648098945617676,
0.13355499505996704,
-0.415549635887146,
0.30662328004837036,
... |
func (_EtherDelta *EtherDeltaSession) BalanceOf(token common.Address, user common.Address) (*big.Int, error) {
return _EtherDelta.Contract.BalanceOf(&_EtherDelta.CallOpts, token, user)
} | [
0.5449404716491699,
0.6917478442192078,
0.4484424591064453,
-0.08991594612598419,
-0.06606223434209824,
0.05996354669332504,
-1.0925664901733398,
-1.1444588899612427,
-0.014449556358158588,
-0.11396756023168564,
0.26001739501953125,
0.5134341716766357,
-0.2642102539539337,
0.11582336574792... |
func (_EtherDelta *EtherDeltaCallerSession) BalanceOf(token common.Address, user common.Address) (*big.Int, error) {
return _EtherDelta.Contract.BalanceOf(&_EtherDelta.CallOpts, token, user)
} | [
0.442782998085022,
0.6513540744781494,
0.4102928638458252,
-0.026604536920785904,
-0.12558265030384064,
0.08278575539588928,
-0.9206335544586182,
-1.3582539558410645,
-0.16026617586612701,
-0.1627611368894577,
0.10003354400396347,
0.48535436391830444,
-0.31849706172943115,
0.27753084897994... |
func (_EtherDelta *EtherDeltaCaller) FeeAccount(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "feeAccount")
return *ret0, err
} | [
-0.5484476685523987,
0.5929856896400452,
0.4922431409358978,
0.5943535566329956,
0.1300400048494339,
0.05803244933485985,
1.9565743207931519,
-0.27790236473083496,
0.8546027541160583,
-0.33768612146377563,
-0.5762989521026611,
0.95562744140625,
-0.2930181324481964,
0.454228937625885,
0.3... |
func (_EtherDelta *EtherDeltaSession) FeeAccount() (common.Address, error) {
return _EtherDelta.Contract.FeeAccount(&_EtherDelta.CallOpts)
} | [
-0.47128477692604065,
0.7986186146736145,
0.28412994742393494,
0.2628708779811859,
0.14855031669139862,
-0.16679437458515167,
1.4156339168548584,
-0.24140511453151703,
1.1618671417236328,
-0.21262842416763306,
0.15911820530891418,
1.0870922803878784,
-0.23110438883304596,
0.424150973558425... |
func (_EtherDelta *EtherDeltaCallerSession) FeeAccount() (common.Address, error) {
return _EtherDelta.Contract.FeeAccount(&_EtherDelta.CallOpts)
} | [
-0.5131710171699524,
0.7244726419448853,
0.2847446799278259,
0.26663896441459656,
0.197413370013237,
-0.008405833505094051,
1.5675382614135742,
-0.5754677653312683,
1.1401910781860352,
-0.24893082678318024,
-0.07681706547737122,
0.9876421093940735,
-0.291731059551239,
0.5459157228469849,
... |
func (_EtherDelta *EtherDeltaCaller) FeeMake(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "feeMake")
return *ret0, err
} | [
-0.7175681591033936,
1.3211711645126343,
0.6599593758583069,
-0.057970792055130005,
-0.020423484966158867,
0.060006458312273026,
0.6443963050842285,
-0.5691672563552856,
0.32062816619873047,
-0.8301412463188171,
-0.7693868279457092,
-0.0024189064279198647,
-0.6778140664100647,
0.3800991475... |
func (_EtherDelta *EtherDeltaSession) FeeMake() (*big.Int, error) {
return _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)
} | [
-0.773861289024353,
1.8669931888580322,
0.324257493019104,
-0.253290057182312,
0.17567218840122223,
-0.20918188989162445,
0.11947251111268997,
-0.5208454728126526,
0.34703773260116577,
-0.9762517809867859,
-0.04504339024424553,
0.06310034543275833,
-0.5100909471511841,
0.22834540903568268,... |
func (_EtherDelta *EtherDeltaCallerSession) FeeMake() (*big.Int, error) {
return _EtherDelta.Contract.FeeMake(&_EtherDelta.CallOpts)
} | [
-0.7789260745048523,
1.7557425498962402,
0.2874244749546051,
-0.18750885128974915,
0.09708075225353241,
-0.1608879119157791,
0.2918183207511902,
-0.8788833618164062,
0.26062965393066406,
-0.9971909523010254,
-0.2077164649963379,
-0.0013514870079234242,
-0.6676755547523499,
0.44733870029449... |
func (_EtherDelta *EtherDeltaCaller) FeeRebate(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "feeRebate")
return *ret0, err
} | [
-0.6629102230072021,
1.1264888048171997,
0.9442136883735657,
0.08662682771682739,
0.14726683497428894,
-0.7678704261779785,
0.10811574012041092,
-0.2126854658126831,
0.5463995337486267,
-0.4121291935443878,
-0.43045538663864136,
-0.4393692910671234,
-1.080727219581604,
0.2557424008846283,
... |
func (_EtherDelta *EtherDeltaSession) FeeRebate() (*big.Int, error) {
return _EtherDelta.Contract.FeeRebate(&_EtherDelta.CallOpts)
} | [
-0.5025137662887573,
1.3981573581695557,
0.6602165102958679,
0.008542406372725964,
0.1818365454673767,
-1.1841634511947632,
-0.5081066489219666,
-0.15397408604621887,
0.5927932262420654,
-0.6323593854904175,
0.39504173398017883,
-0.1574815958738327,
-0.7769401669502258,
-0.0218965411186218... |
func (_EtherDelta *EtherDeltaCallerSession) FeeRebate() (*big.Int, error) {
return _EtherDelta.Contract.FeeRebate(&_EtherDelta.CallOpts)
} | [
-0.5716769695281982,
1.3735156059265137,
0.6063921451568604,
0.0259136613458395,
0.20135793089866638,
-1.1232596635818481,
-0.35629981756210327,
-0.45005351305007935,
0.5722357034683228,
-0.6827758550643921,
0.23173293471336365,
-0.18225349485874176,
-0.918857991695404,
0.21135057508945465... |
func (_EtherDelta *EtherDeltaCaller) FeeTake(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "feeTake")
return *ret0, err
} | [
-0.6756564378738403,
1.4744311571121216,
0.7845368385314941,
0.6519249677658081,
-0.27970415353775024,
-0.06520991772413254,
0.9115468263626099,
-0.21868813037872314,
0.024600548669695854,
-0.3297637403011322,
-0.4836099445819855,
-0.28834283351898193,
-0.6859607696533203,
1.21122193336486... |
func (_EtherDelta *EtherDeltaSession) FeeTake() (*big.Int, error) {
return _EtherDelta.Contract.FeeTake(&_EtherDelta.CallOpts)
} | [
-0.6969977617263794,
2.228299140930176,
0.4475509822368622,
0.45341500639915466,
-0.1968110203742981,
-0.3644103705883026,
0.36380431056022644,
-0.2332952618598938,
0.25664690136909485,
-0.69266676902771,
0.15655362606048584,
-0.08344455808401108,
-0.515496015548706,
1.0754444599151611,
... |
func (_EtherDelta *EtherDeltaCallerSession) FeeTake() (*big.Int, error) {
return _EtherDelta.Contract.FeeTake(&_EtherDelta.CallOpts)
} | [
-0.7327439785003662,
2.0949501991271973,
0.4426441788673401,
0.5219214558601379,
-0.32209983468055725,
-0.23537258803844452,
0.48009663820266724,
-0.48601070046424866,
0.14329937100410461,
-0.7128637433052063,
0.03063965030014515,
-0.14682695269584656,
-0.6458099484443665,
1.22231996059417... |
func (_EtherDelta *EtherDeltaCaller) OrderFills(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "orderFills", arg0, arg1)
return *ret0, err
} | [
-0.5299429893493652,
0.9488679766654968,
0.9199915528297424,
-0.04144277796149254,
0.02530103176832199,
1.0713844299316406,
0.8189383149147034,
-0.8163198828697205,
0.15279772877693176,
-0.2140703946352005,
-0.7420485615730286,
0.06276486068964005,
-0.8433593511581421,
0.7776144742965698,
... |
func (_EtherDelta *EtherDeltaSession) OrderFills(arg0 common.Address, arg1 [32]byte) (*big.Int, error) {
return _EtherDelta.Contract.OrderFills(&_EtherDelta.CallOpts, arg0, arg1)
} | [
-0.42259344458580017,
1.0795811414718628,
0.6541150212287903,
-0.3356591761112213,
0.04591476544737816,
0.9187409281730652,
0.15887591242790222,
-0.8336134552955627,
0.2537994682788849,
-0.1225598007440567,
-0.3077549934387207,
0.42396149039268494,
-0.7365200519561768,
0.3678722679615021,
... |
func (_EtherDelta *EtherDeltaCallerSession) OrderFills(arg0 common.Address, arg1 [32]byte) (*big.Int, error) {
return _EtherDelta.Contract.OrderFills(&_EtherDelta.CallOpts, arg0, arg1)
} | [
-0.44443440437316895,
1.111154556274414,
0.6097105145454407,
-0.34639841318130493,
0.03386284410953522,
0.979467511177063,
0.2630265951156616,
-1.0767030715942383,
0.13681407272815704,
-0.20058777928352356,
-0.46095067262649536,
0.4622354209423065,
-0.7951943874359131,
0.6342039704322815,
... |
func (_EtherDelta *EtherDeltaCaller) Orders(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "orders", arg0, arg1)
return *ret0, err
} | [
-0.9469866156578064,
0.8716721534729004,
0.7780121564865112,
-0.09194999933242798,
-0.11979272216558456,
0.9677377939224243,
-0.22630713880062103,
-0.2184242606163025,
0.3602530062198639,
0.40325218439102173,
-0.6278177499771118,
0.005772356875240803,
-0.5786170363426208,
0.557974278926849... |
func (_EtherDelta *EtherDeltaSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {
return _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)
} | [
-1.2034285068511963,
0.9708259105682373,
0.5850793123245239,
-0.5846818089485168,
0.05533110722899437,
0.9379597902297974,
-0.7626051902770996,
-0.4080302119255066,
0.552363395690918,
0.2377510964870453,
-0.40415799617767334,
0.03856060653924942,
-0.6247934103012085,
0.1412355899810791,
... |
func (_EtherDelta *EtherDeltaCallerSession) Orders(arg0 common.Address, arg1 [32]byte) (bool, error) {
return _EtherDelta.Contract.Orders(&_EtherDelta.CallOpts, arg0, arg1)
} | [
-1.2025678157806396,
0.9554286599159241,
0.587138295173645,
-0.4846271574497223,
0.023548122495412827,
0.9433914422988892,
-0.5208215117454529,
-0.5618355870246887,
0.41706162691116333,
0.24261167645454407,
-0.5532265305519104,
0.031980011612176895,
-0.6070451736450195,
0.40848010778427124... |
func (_EtherDelta *EtherDeltaCaller) TestTrade(opts *bind.CallOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte, amount *big.Int, sender common.Address) (bool, error) {
var (
ret0 = ... | [
0.29071515798568726,
0.5877653360366821,
0.6317038536071777,
-0.7816419005393982,
0.2952258884906769,
-0.003960085101425648,
0.15240930020809174,
-1.2454921007156372,
0.5383649468421936,
0.0833369717001915,
-0.6028158664703369,
0.011336665600538254,
-0.7046751379966736,
-0.1675981730222702... |
func (_EtherDelta *EtherDeltaSession) TestTrade(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte, amount *big.Int, sender common.Address) (bool, error) {
return _EtherDelta.Contract.TestTra... | [
0.3862709105014801,
0.5815185904502869,
0.6160153150558472,
-0.8872280120849609,
0.21145769953727722,
-0.16362732648849487,
-0.11943802982568741,
-1.090117335319519,
0.6701662540435791,
-0.03881453722715378,
-0.2020367681980133,
0.19274087250232697,
-0.6118041276931763,
-0.344450980424881,... |
func (_EtherDelta *EtherDeltaCallerSession) TestTrade(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte, amount *big.Int, sender common.Address) (bool, error) {
return _EtherDelta.Contract.T... | [
0.31023910641670227,
0.6238083839416504,
0.627832293510437,
-0.8726990818977356,
0.19922825694084167,
-0.14948038756847382,
-0.04855525493621826,
-1.2697219848632812,
0.6318479180335999,
-0.04333333298563957,
-0.3288555443286896,
0.16040195524692535,
-0.6041837334632874,
-0.221926108002662... |
func (_EtherDelta *EtherDeltaCaller) Tokens(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _EtherDelta.contract.Call(opts, out, "tokens", arg0, arg1)
return *ret0, err
} | [
-0.396668016910553,
0.6985953450202942,
0.8820502758026123,
-0.43092212080955505,
-0.3344428241252899,
-0.004704121965914965,
0.03325362876057625,
0.15122616291046143,
0.2886442244052887,
-0.23292788863182068,
-0.6192843914031982,
0.704879879951477,
-0.5522838234901428,
0.5236939787864685,... |
func (_EtherDelta *EtherDeltaSession) Tokens(arg0 common.Address, arg1 common.Address) (*big.Int, error) {
return _EtherDelta.Contract.Tokens(&_EtherDelta.CallOpts, arg0, arg1)
} | [
-0.5975879430770874,
0.8726774454116821,
0.6611356139183044,
-0.6956378817558289,
-0.21436458826065063,
-0.09976445138454437,
-0.47437506914138794,
0.062141917645931244,
0.5366854071617126,
-0.10916564613580704,
-0.26188716292381287,
0.9900950789451599,
-0.363260954618454,
0.13295738399028... |
func (_EtherDelta *EtherDeltaCallerSession) Tokens(arg0 common.Address, arg1 common.Address) (*big.Int, error) {
return _EtherDelta.Contract.Tokens(&_EtherDelta.CallOpts, arg0, arg1)
} | [
-0.7147151231765747,
0.8639081120491028,
0.6478615403175354,
-0.6257323622703552,
-0.18936114013195038,
0.018367204815149307,
-0.3079952001571655,
-0.2051834762096405,
0.417800635099411,
-0.10957620292901993,
-0.4137817919254303,
1.0356422662734985,
-0.470242440700531,
0.2442815601825714,
... |
func (_EtherDelta *EtherDeltaTransactor) CancelOrder(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
return _EtherDelta.contract.Transact(opts, "cancelOr... | [
0.9672216176986694,
0.05340013653039932,
0.5003103017807007,
-1.064316987991333,
-0.027958761900663376,
-0.7486501932144165,
-1.0467476844787598,
-0.537483811378479,
0.06902354955673218,
-0.049038127064704895,
-0.30993708968162537,
-0.054541029036045074,
-0.025469226762652397,
-0.035265382... |
func (_EtherDelta *EtherDeltaSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
return _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tokenGet, amo... | [
0.9370216131210327,
-0.05862799659371376,
0.44031113386154175,
-1.1193058490753174,
0.040167808532714844,
-0.8412109613418579,
-0.9514474272727966,
-0.41787734627723694,
-0.059679899364709854,
0.023229507729411125,
-0.3919399678707123,
-0.10213839262723923,
0.0635855570435524,
-0.150306865... |
func (_EtherDelta *EtherDeltaTransactorSession) CancelOrder(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
return _EtherDelta.Contract.CancelOrder(&_EtherDelta.TransactOpts, tok... | [
0.9542276859283447,
-0.09937380999326706,
0.4827561378479004,
-1.0862441062927246,
0.08728537708520889,
-0.8879135847091675,
-0.9207766652107239,
-0.48692086338996887,
0.017975090071558952,
0.041960425674915314,
-0.41540756821632385,
-0.07453787326812744,
0.047846365720033646,
-0.167639419... |
func (_EtherDelta *EtherDeltaTransactor) ChangeAccountLevelsAddr(opts *bind.TransactOpts, accountLevelsAddr_ common.Address) (*types.Transaction, error) {
return _EtherDelta.contract.Transact(opts, "changeAccountLevelsAddr", accountLevelsAddr_)
} | [
-0.060813430696725845,
-0.002278223866596818,
0.14934448897838593,
-0.281557559967041,
-0.3990628123283386,
-0.1074291467666626,
0.41006162762641907,
0.4215962290763855,
0.2095222920179367,
0.43119287490844727,
0.6789161562919617,
0.502432107925415,
0.032210152596235275,
0.9642379879951477... |
func (_EtherDelta *EtherDeltaSession) ChangeAccountLevelsAddr(accountLevelsAddr_ common.Address) (*types.Transaction, error) {
return _EtherDelta.Contract.ChangeAccountLevelsAddr(&_EtherDelta.TransactOpts, accountLevelsAddr_)
} | [
-0.010725656524300575,
-0.06331849843263626,
0.26720210909843445,
-0.29523536562919617,
-0.4686386287212372,
-0.39395925402641296,
0.44567713141441345,
0.43973198533058167,
0.09232446551322937,
0.4521579444408417,
0.6244258880615234,
0.4911658465862274,
0.03942754864692688,
0.9397264122962... |
func (_EtherDelta *EtherDeltaTransactorSession) ChangeAccountLevelsAddr(accountLevelsAddr_ common.Address) (*types.Transaction, error) {
return _EtherDelta.Contract.ChangeAccountLevelsAddr(&_EtherDelta.TransactOpts, accountLevelsAddr_)
} | [
0.03152679651975632,
-0.08306482434272766,
0.301189661026001,
-0.2620560824871063,
-0.4286585748195648,
-0.29614341259002686,
0.4846949577331543,
0.38007792830467224,
0.19850106537342072,
0.47104135155677795,
0.6549876928329468,
0.5200793743133545,
0.02067110501229763,
0.8508915901184082,
... |
func (_EtherDelta *EtherDeltaTransactor) ChangeAdmin(opts *bind.TransactOpts, admin_ common.Address) (*types.Transaction, error) {
return _EtherDelta.contract.Transact(opts, "changeAdmin", admin_)
} | [
-0.30953311920166016,
1.035068154335022,
0.3067704141139984,
-0.9612337350845337,
-0.474189430475235,
-0.6084918975830078,
-0.40985307097435,
-0.5273227691650391,
0.27026909589767456,
0.9457877278327942,
-0.29202383756637573,
1.108616590499878,
-0.04874319210648537,
0.6597539782524109,
0... |
func (_EtherDelta *EtherDeltaSession) ChangeAdmin(admin_ common.Address) (*types.Transaction, error) {
return _EtherDelta.Contract.ChangeAdmin(&_EtherDelta.TransactOpts, admin_)
} | [
-0.31720033288002014,
1.3112778663635254,
0.33130133152008057,
-1.03476083278656,
-0.2889215350151062,
-0.773810625076294,
-0.3545454740524292,
-0.46007928252220154,
0.28881484270095825,
0.8853245377540588,
-0.22758428752422333,
0.9058054685592651,
0.2487606406211853,
0.516669750213623,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.