From a96ecc4c2de728792981f363439e6d55d028676f Mon Sep 17 00:00:00 2001 From: William Kennedy Date: Tue, 16 Jul 2024 11:32:15 -0500 Subject: [PATCH] Work on new FE (#17) --- app/cli/liars/engine/engine.go | 6 +++++- go.mod | 2 +- go.sum | 4 ++-- vendor/golang.org/x/exp/LICENSE | 4 ++-- vendor/modules.txt | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/cli/liars/engine/engine.go b/app/cli/liars/engine/engine.go index 970ad9a6..e6377026 100644 --- a/app/cli/liars/engine/engine.go +++ b/app/cli/liars/engine/engine.go @@ -51,9 +51,11 @@ func (e *Engine) Connect(keyStorePath string, address common.Address, passPhrase dt := struct { Address common.Address `json:"address"` + ChainID int `json:"chainId"` // 1337 DateTime string `json:"dateTime"` // YYYYMMDDHHMMSS }{ Address: address, + ChainID: 1337, DateTime: time.Now().UTC().Format("20060102150405"), } @@ -64,10 +66,12 @@ func (e *Engine) Connect(keyStorePath string, address common.Address, passPhrase dts := struct { Address common.Address `json:"address"` + ChainID int `json:"chainId"` DateTime string `json:"dateTime"` Signature string `json:"sig"` }{ - Address: address, + Address: dt.Address, + ChainID: dt.ChainID, DateTime: dt.DateTime, Signature: sig, } diff --git a/go.mod b/go.mod index b47e3089..7553cd31 100644 --- a/go.mod +++ b/go.mod @@ -118,7 +118,7 @@ require ( go.opentelemetry.io/otel/sdk v1.28.0 // indirect go.opentelemetry.io/otel/trace v1.28.0 // indirect golang.org/x/crypto v0.25.0 // indirect - golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect + golang.org/x/exp v0.0.0-20240716160929-1d5bc16f04a8 // indirect golang.org/x/net v0.27.0 // indirect golang.org/x/sync v0.7.0 // indirect golang.org/x/sys v0.22.0 // indirect diff --git a/go.sum b/go.sum index 08dc9c80..5949bce1 100644 --- a/go.sum +++ b/go.sum @@ -357,8 +357,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= -golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w= -golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= +golang.org/x/exp v0.0.0-20240716160929-1d5bc16f04a8 h1:Z+vTUQyBb738QmIhbJx3z4htsxDeI+rd0EHvNm8jHkg= +golang.org/x/exp v0.0.0-20240716160929-1d5bc16f04a8/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= diff --git a/vendor/golang.org/x/exp/LICENSE b/vendor/golang.org/x/exp/LICENSE index 6a66aea5..2a7cf70d 100644 --- a/vendor/golang.org/x/exp/LICENSE +++ b/vendor/golang.org/x/exp/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/modules.txt b/vendor/modules.txt index c32548f0..9880cda5 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -767,7 +767,7 @@ golang.org/x/crypto/pbkdf2 golang.org/x/crypto/ripemd160 golang.org/x/crypto/scrypt golang.org/x/crypto/sha3 -# golang.org/x/exp v0.0.0-20240707233637-46b078467d37 +# golang.org/x/exp v0.0.0-20240716160929-1d5bc16f04a8 ## explicit; go 1.20 golang.org/x/exp/constraints golang.org/x/exp/maps