From 65c253b39b22801f36ad13ea6b4132cdfd207a30 Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 28 May 2024 18:39:43 +0300 Subject: [PATCH 1/4] use did:iden3 for e2e tests --- .gitignore | 1 + go.mod | 6 +- go.sum | 6 + pkg/app/handler.go | 4 +- pkg/document/did.go | 12 +- pkg/services/blockchain/eth/resolver.go | 17 +- pkg/services/blockchain/eth/resolver_test.go | 24 +- pkg/services/did.go | 66 ++-- pkg/services/registry.go | 6 +- resolvers.settings.yaml | 7 + .../http_nameservice.postman_collection.json | 78 ++-- tests/e2e/state_resolve_tests.json | 369 ++++++++++++++++++ 12 files changed, 499 insertions(+), 97 deletions(-) create mode 100644 tests/e2e/state_resolve_tests.json diff --git a/.gitignore b/.gitignore index 3601722..5815575 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ # Code editors .idea +.vscode # Dependency directories (remove the comment below to include it) # vendor/ diff --git a/go.mod b/go.mod index 1d23be5..35b8ee3 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,9 @@ go 1.18 require ( github.com/ethereum/go-ethereum v1.11.5 github.com/golang/mock v1.6.0 - github.com/iden3/go-iden3-core v1.0.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/pkg/errors v0.9.1 - github.com/stretchr/testify v1.8.1 + github.com/stretchr/testify v1.8.2 github.com/wealdtech/go-ens/v3 v3.5.5 golang.org/x/crypto v0.7.0 golang.org/x/net v0.8.0 @@ -20,6 +19,7 @@ require ( github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/holiman/uint256 v1.2.0 // indirect github.com/iden3/contracts-abi/state/go/abi v1.0.1 // indirect + github.com/iden3/go-iden3-core/v2 v2.1.1 // indirect ) require ( @@ -35,7 +35,7 @@ require ( github.com/go-stack/stack v1.8.1 // indirect github.com/google/uuid v1.3.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect - github.com/iden3/go-iden3-crypto v0.0.13 // indirect + github.com/iden3/go-iden3-crypto v0.0.15 // indirect github.com/iden3/go-merkletree-sql/v2 v2.0.0 github.com/ipfs/go-cid v0.3.2 // indirect github.com/klauspost/cpuid/v2 v2.2.4 // indirect diff --git a/go.sum b/go.sum index 4fb259e..7abbf3a 100644 --- a/go.sum +++ b/go.sum @@ -89,8 +89,12 @@ github.com/iden3/go-iden3-core v0.1.1-0.20230110091701-2007727025e0 h1:lhH2QkBVa github.com/iden3/go-iden3-core v0.1.1-0.20230110091701-2007727025e0/go.mod h1:wJtcMK/bSazyW/JrQaRrbpUMgSMg79Pke3xgtfPxDnQ= github.com/iden3/go-iden3-core v1.0.0 h1:GNwuYOHZD7hiWjmW+wv26RW9f/JwF4lRQu7/55f2YB8= github.com/iden3/go-iden3-core v1.0.0/go.mod h1:wJtcMK/bSazyW/JrQaRrbpUMgSMg79Pke3xgtfPxDnQ= +github.com/iden3/go-iden3-core/v2 v2.1.1 h1:WD14iWKZmnfHTl9Em/PfGssrFYXz8YNQPjPs/cn+eHc= +github.com/iden3/go-iden3-core/v2 v2.1.1/go.mod h1:L9PxhWPvoS9qTb3inEkZBm1RpjHBt+VTwvxssdzbAdw= github.com/iden3/go-iden3-crypto v0.0.13 h1:ixWRiaqDULNyIDdOWz2QQJG5t4PpNHkQk2P6GV94cok= github.com/iden3/go-iden3-crypto v0.0.13/go.mod h1:swXIv0HFbJKobbQBtsB50G7IHr6PbTowutSew/iBEoo= +github.com/iden3/go-iden3-crypto v0.0.15 h1:4MJYlrot1l31Fzlo2sF56u7EVFeHHJkxGXXZCtESgK4= +github.com/iden3/go-iden3-crypto v0.0.15/go.mod h1:dLpM4vEPJ3nDHzhWFXDjzkn1qHoBeOT/3UEhXsEsP3E= github.com/iden3/go-merkletree-sql/v2 v2.0.0 h1:7tMgHCUJCo0jxyM15fjCc7G9Dy0x2rmX+lwa8tqEfho= github.com/iden3/go-merkletree-sql/v2 v2.0.0/go.mod h1:hQbfImlyOJiI+c8FFuFiEMrjpZN0PylRb0aT8uAa+Sg= github.com/ipfs/go-cid v0.3.2 h1:OGgOd+JCFM+y1DjWPmVH+2/4POtpDzwcr7VgnB7mZXc= @@ -199,6 +203,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM= github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI= diff --git a/pkg/app/handler.go b/pkg/app/handler.go index 1b5da74..cc8b45c 100644 --- a/pkg/app/handler.go +++ b/pkg/app/handler.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/iden3/driver-did-iden3/pkg/services" - core "github.com/iden3/go-iden3-core" + core "github.com/iden3/go-iden3-core/v2" "github.com/iden3/go-merkletree-sql/v2" "github.com/pkg/errors" ) @@ -31,7 +31,7 @@ func (d *DidDocumentHandler) Get(w http.ResponseWriter, r *http.Request) { } state, err := d.DidDocumentService.GetDidDocument(r.Context(), rawURL[len(rawURL)-1], &opts) - if errors.Is(err, core.ErrInvalidDID) { + if errors.Is(err, core.ErrIncorrectDID) { log.Println("invalid did:", err) } else if err != nil { diff --git a/pkg/document/did.go b/pkg/document/did.go index ca5d78f..994b3f3 100644 --- a/pkg/document/did.go +++ b/pkg/document/did.go @@ -37,8 +37,8 @@ func NewDidResolution() *DidResolution { return &DidResolution{ Context: defaultContext, DidDocument: &DidDocument{ - Context: []string{defaultDidDocContext, iden3Context}, - Authentication: []Authentication{}, + Context: []string{defaultDidDocContext, iden3Context}, + VerificationMethod: []VerificationMethod{}, }, DidResolutionMetadata: &DidResolutionMetadata{ ContentType: defaultContentType, @@ -75,7 +75,7 @@ func NewDidErrorResolution(errCode ErrorCode, errMsg string) *DidResolution { } } -type Authentication struct { +type VerificationMethod struct { ID string `json:"id"` Type string `json:"type"` IdentityState @@ -83,9 +83,9 @@ type Authentication struct { // DidDocument representation of did document. type DidDocument struct { - Context []string `json:"@context"` - ID string `json:"id"` - Authentication []Authentication `json:"authentication"` + Context []string `json:"@context"` + ID string `json:"id"` + VerificationMethod []VerificationMethod `json:"verificationMethod"` } // DidResolutionMetadata representation of resolution metadata. diff --git a/pkg/services/blockchain/eth/resolver.go b/pkg/services/blockchain/eth/resolver.go index 01d8c15..6210c3c 100644 --- a/pkg/services/blockchain/eth/resolver.go +++ b/pkg/services/blockchain/eth/resolver.go @@ -11,7 +11,8 @@ import ( "github.com/ethereum/go-ethereum/ethclient" contract "github.com/iden3/contracts-abi/state/go/abi" "github.com/iden3/driver-did-iden3/pkg/services" - core "github.com/iden3/go-iden3-core" + core "github.com/iden3/go-iden3-core/v2" + "github.com/iden3/go-iden3-core/v2/w3c" ) //go:generate mockgen -destination=contract/mock/contract.go . StateContract @@ -95,7 +96,7 @@ func (r *Resolver) ResolveGist( func (r *Resolver) Resolve( ctx context.Context, - did core.DID, + did w3c.DID, opts *services.ResolverOpts, ) (services.IdentityState, error) { if opts.GistRoot != nil && opts.State != nil { @@ -109,13 +110,19 @@ func (r *Resolver) Resolve( err error ) + userID, err := core.IDFromDID(did) + if err != nil { + return services.IdentityState{}, + fmt.Errorf("invalid did format for did '%s': %v", did, err) + } + switch { case opts.GistRoot != nil: - stateInfo, gistInfo, err = r.resolveStateByGistRoot(ctx, did.ID, opts.GistRoot) + stateInfo, gistInfo, err = r.resolveStateByGistRoot(ctx, userID, opts.GistRoot) case opts.State != nil: - stateInfo, err = r.resolveState(ctx, did.ID, opts.State) + stateInfo, err = r.resolveState(ctx, userID, opts.State) default: - stateInfo, gistInfo, err = r.resolveLatest(ctx, did.ID) + stateInfo, gistInfo, err = r.resolveLatest(ctx, userID) } identityState := services.IdentityState{} diff --git a/pkg/services/blockchain/eth/resolver_test.go b/pkg/services/blockchain/eth/resolver_test.go index 9fe2771..89fa004 100644 --- a/pkg/services/blockchain/eth/resolver_test.go +++ b/pkg/services/blockchain/eth/resolver_test.go @@ -10,12 +10,13 @@ import ( contract "github.com/iden3/contracts-abi/state/go/abi" "github.com/iden3/driver-did-iden3/pkg/services" cm "github.com/iden3/driver-did-iden3/pkg/services/blockchain/eth/contract/mock" - core "github.com/iden3/go-iden3-core" + core "github.com/iden3/go-iden3-core/v2" + "github.com/iden3/go-iden3-core/v2/w3c" "github.com/pkg/errors" "github.com/stretchr/testify/require" ) -var userDID, _ = core.ParseDID("did:polygonid:polygon:mumbai:2qJEaVmT5jBrtgBQ4m7b7bRYzWmvMyDjBZGP24QwvD") +var userDID, _ = w3c.ParseDID("did:polygonid:polygon:mumbai:2qJEaVmT5jBrtgBQ4m7b7bRYzWmvMyDjBZGP24QwvD") func TestResolveGist_Success(t *testing.T) { tests := []struct { @@ -72,7 +73,7 @@ func TestResolve_Success(t *testing.T) { tests := []struct { name string opts *services.ResolverOpts - userDID *core.DID + userDID *w3c.DID contractMock func(c *cm.MockStateContract) expectedIdentityState services.IdentityState }{ @@ -88,11 +89,12 @@ func TestResolve_Success(t *testing.T) { Existence: true, Value: big.NewInt(5), } - c.EXPECT().GetGISTProofByRoot(gomock.Any(), userDID.ID.BigInt(), big.NewInt(1)).Return(proof, nil) + userID, _ := core.IDFromDID(*userDID) + c.EXPECT().GetGISTProofByRoot(gomock.Any(), userID.BigInt(), big.NewInt(1)).Return(proof, nil) gistInfo := contract.IStateGistRootInfo{Root: big.NewInt(555)} c.EXPECT().GetGISTRootInfo(gomock.Any(), big.NewInt(4)).Return(gistInfo, nil) - stateInfo := contract.IStateStateInfo{Id: userDID.ID.BigInt(), State: big.NewInt(444)} - c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), userDID.ID.BigInt(), big.NewInt(5)).Return(stateInfo, nil) + stateInfo := contract.IStateStateInfo{Id: userID.BigInt(), State: big.NewInt(444)} + c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), userID.BigInt(), big.NewInt(5)).Return(stateInfo, nil) }, expectedIdentityState: services.IdentityState{ StateInfo: &services.StateInfo{ @@ -111,8 +113,9 @@ func TestResolve_Success(t *testing.T) { }, userDID: userDID, contractMock: func(c *cm.MockStateContract) { - res := contract.IStateStateInfo{Id: userDID.ID.BigInt(), State: big.NewInt(555)} - c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), userDID.ID.BigInt(), big.NewInt((1))).Return(res, nil) + userID, _ := core.IDFromDID(*userDID) + res := contract.IStateStateInfo{Id: userID.BigInt(), State: big.NewInt(555)} + c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), userID.BigInt(), big.NewInt((1))).Return(res, nil) }, expectedIdentityState: services.IdentityState{ StateInfo: &services.StateInfo{ @@ -127,12 +130,13 @@ func TestResolve_Success(t *testing.T) { opts: &services.ResolverOpts{}, userDID: userDID, contractMock: func(c *cm.MockStateContract) { + userID, _ := core.IDFromDID(*userDID) latestGist := big.NewInt(100) c.EXPECT().GetGISTRoot(gomock.Any()).Return(latestGist, nil) latestGistInfo := contract.IStateGistRootInfo{Root: big.NewInt(400)} c.EXPECT().GetGISTRootInfo(gomock.Any(), latestGist).Return(latestGistInfo, nil) - stateInfo := contract.IStateStateInfo{Id: userDID.ID.BigInt(), State: big.NewInt(555)} - c.EXPECT().GetStateInfoById(gomock.Any(), userDID.ID.BigInt()).Return(stateInfo, nil) + stateInfo := contract.IStateStateInfo{Id: userID.BigInt(), State: big.NewInt(555)} + c.EXPECT().GetStateInfoById(gomock.Any(), userID.BigInt()).Return(stateInfo, nil) }, expectedIdentityState: services.IdentityState{ StateInfo: &services.StateInfo{ diff --git a/pkg/services/did.go b/pkg/services/did.go index a389c21..40b02d7 100644 --- a/pkg/services/did.go +++ b/pkg/services/did.go @@ -8,7 +8,8 @@ import ( "github.com/iden3/driver-did-iden3/pkg/document" "github.com/iden3/driver-did-iden3/pkg/services/ens" - core "github.com/iden3/go-iden3-core" + core "github.com/iden3/go-iden3-core/v2" + "github.com/iden3/go-iden3-core/v2/w3c" "github.com/iden3/go-merkletree-sql/v2" "github.com/pkg/errors" ) @@ -37,13 +38,31 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op opts = &ResolverOpts{} } - userDID, err := core.ParseDID(did) + userDID, err := w3c.ParseDID(did) errResolution, err := expectedError(err) if err != nil { return errResolution, err } - resolver, err := d.resolvers.GetResolverByNetwork(string(userDID.Blockchain), string(userDID.NetworkID)) + userID, err := core.IDFromDID(*userDID) + errResolution, err = expectedError(err) + if err != nil { + return errResolution, err + } + + b, err := core.BlockchainFromID(userID) + errResolution, err = expectedError(err) + if err != nil { + return errResolution, err + } + + n, err := core.NetworkIDFromID(userID) + errResolution, err = expectedError(err) + if err != nil { + return errResolution, err + } + + resolver, err := d.resolvers.GetResolverByNetwork(string(b), string(n)) errResolution, err = expectedError(err) if err != nil { return errResolution, err @@ -51,7 +70,7 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op identityState, err := resolver.Resolve(ctx, *userDID, opts) if errors.Is(err, ErrNotFound) && (opts.State != nil || opts.GistRoot != nil) { - gen, errr := isGenesis(userDID.ID.BigInt(), opts.State) + gen, errr := isGenesis(userID.BigInt(), opts.State) if errr != nil { return nil, fmt.Errorf("invalid state: %v", errr) } @@ -72,9 +91,9 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op didResolution := document.NewDidResolution() didResolution.DidDocument.ID = did - didResolution.DidDocument.Authentication = append( - didResolution.DidDocument.Authentication, - document.Authentication{ + didResolution.DidDocument.VerificationMethod = append( + didResolution.DidDocument.VerificationMethod, + document.VerificationMethod{ ID: getRepresentaionID(did, identityState), Type: document.StateType, IdentityState: document.IdentityState{ @@ -102,12 +121,12 @@ func (d *DidDocumentServices) ResolveDNSDomain(ctx context.Context, domain strin } var ( - did *core.DID + did *w3c.DID v string ) // try to find correct did. for _, v = range records { - did, err = core.ParseDID(v) + did, err = w3c.ParseDID(v) if did != nil && err == nil { break } @@ -167,25 +186,12 @@ func isGenesis(id, state *big.Int) (bool, error) { return false, nil } - userID, err := core.IDFromInt(id) - if err != nil { - return false, err - } - userDID, err := core.ParseDIDFromID(userID) - if err != nil { - return false, err - } - - didType, err := core.BuildDIDType(userDID.Method, userDID.Blockchain, userDID.NetworkID) - if err != nil { - return false, err - } - identifier, err := core.IdGenesisFromIdenState(didType, state) + isGenesis, err := core.CheckGenesisStateID(id, state) if err != nil { return false, err } - return id.Cmp(identifier.BigInt()) == 0, nil + return isGenesis, nil } func expectedError(err error) (*document.DidResolution, error) { @@ -193,13 +199,15 @@ func expectedError(err error) (*document.DidResolution, error) { return nil, nil } - if errors.Is(err, core.ErrInvalidDID) { + switch { + case errors.Is(err, core.ErrIncorrectDID): return document.NewDidInvalidResolution(err.Error()), err - } - if errors.Is(err, core.ErrNetworkNotSupportedForDID) { + case + errors.Is(err, core.ErrBlockchainNotSupportedForDID), + errors.Is(err, core.ErrNetworkNotSupportedForDID): + return document.NewNetworkNotSupportedForDID(err.Error()), err - } - if errors.Is(err, core.ErrDIDMethodNotSupported) { + case errors.Is(err, core.ErrDIDMethodNotSupported): return document.NewDidMethodNotSupportedResolution(err.Error()), err } diff --git a/pkg/services/registry.go b/pkg/services/registry.go index 4e4dc53..3b66941 100644 --- a/pkg/services/registry.go +++ b/pkg/services/registry.go @@ -6,7 +6,7 @@ import ( "math/big" "github.com/iden3/driver-did-iden3/pkg/document" - core "github.com/iden3/go-iden3-core" + "github.com/iden3/go-iden3-core/v2/w3c" "github.com/iden3/go-merkletree-sql/v2" "github.com/pkg/errors" ) @@ -24,7 +24,7 @@ type IdentityState struct { } type StateInfo struct { - ID core.DID + ID w3c.DID State *big.Int ReplacedByState *big.Int CreatedAtTimestamp *big.Int @@ -92,7 +92,7 @@ func (gi *GistInfo) ToDidRepresentation() (*document.GistInfo, error) { } type Resolver interface { - Resolve(ctx context.Context, did core.DID, opts *ResolverOpts) (IdentityState, error) + Resolve(ctx context.Context, did w3c.DID, opts *ResolverOpts) (IdentityState, error) ResolveGist(ctx context.Context, opts *ResolverOpts) (*GistInfo, error) BlockchainID() string } diff --git a/resolvers.settings.yaml b/resolvers.settings.yaml index e69de29..54837f5 100644 --- a/resolvers.settings.yaml +++ b/resolvers.settings.yaml @@ -0,0 +1,7 @@ +iden3: + amoy: + contractAddress: 0x1a4cC30f2aA0377b0c3bc9848766D90cb4404124 + networkURL: https://polygon-amoy.g.alchemy.com/v2/nQxE0N6UyGmmiurh735CVn4hZVLkTu0v + main: + contractAddress: 0x624ce98D2d27b20b8f8d521723Df8fC4db71D79D + networkURL: https://polygon-mainnet.g.alchemy.com/v2/4RsuBJrPQLIInqj6-PH5b4NQa3nIZUxa diff --git a/tests/e2e/http_nameservice.postman_collection.json b/tests/e2e/http_nameservice.postman_collection.json index 7795c44..0296f7c 100644 --- a/tests/e2e/http_nameservice.postman_collection.json +++ b/tests/e2e/http_nameservice.postman_collection.json @@ -1,7 +1,7 @@ { "info": { - "_postman_id": "6f0dbf04-363c-41aa-b974-145ec74e3bc0", - "name": "Nameservice e2e", + "_postman_id": "301f6d89-ec5b-42a4-b00f-d3005d9988e6", + "name": "Nameservice e2e Iden3", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ @@ -36,7 +36,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"did_metadata\":{\n \"method\": \"polygonid\",\n \"blockchain\":\"polygon\",\n \"network\": \"mumbai\"\n }\n}", + "raw": "{\n \"did_metadata\":{\n \"method\": \"iden3\",\n \"blockchain\":\"polygon\",\n \"network\": \"amoy\",\n \"type\": \"BJJ\"\n }\n}", "options": { "raw": { "language": "json" @@ -87,7 +87,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"did_metadata\":{\n \"method\": \"polygonid\",\n \"blockchain\":\"polygon\",\n \"network\": \"mumbai\"\n }\n}", + "raw": "{\n \"did_metadata\":{\n \"method\": \"iden3\",\n \"blockchain\":\"polygon\",\n \"network\": \"amoy\",\n \"type\": \"BJJ\"\n }\n}", "options": { "raw": { "language": "json" @@ -125,8 +125,8 @@ "pm.test(\"Did doc not found\", () => {", " const responseJson = pm.response.json();", " pm.expect(responseJson.didDocument.id).to.eq(pm.collectionVariables.get(\"issuer_identity\"));", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(pm.collectionVariables.get(\"issuer_identity\"))", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(false)", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(pm.collectionVariables.get(\"issuer_identity\"))", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(false)", "});", "", "" @@ -174,9 +174,9 @@ "", "pm.test(\"Did doc not found\", () => {", " const responseJson = pm.response.json();", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(pm.collectionVariables.get(\"issuer_identity\"))", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(false)", - " pm.expect(responseJson.didDocument.authentication[0].global).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(pm.collectionVariables.get(\"issuer_identity\"))", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(false)", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", "});", "" ], @@ -267,11 +267,11 @@ " const responseJson = pm.response.json();", " pm.expect(responseJson.didDocument.id).to.eq(pm.collectionVariables.get(\"issuer_identity\"));", "", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(false)", - " pm.expect(responseJson.didDocument.authentication[0].info).to.eq(undefined);", - " pm.expect(responseJson.didDocument.authentication[0].global).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(false)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).to.eq(undefined);", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", "", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(", " pm.collectionVariables.get(\"issuer_identity\")", " )", "});", @@ -446,19 +446,19 @@ " const responseJson = pm.response.json();", " pm.expect(responseJson.didDocument.id).to.eq(pm.collectionVariables.get(\"issuer_identity\"));", "", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(true)", - " pm.expect(responseJson.didDocument.authentication[0].info).not.empty;", - " pm.expect(responseJson.didDocument.authentication[0].global).not.empty;", - "", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", + " console.log(responseJson.didDocument.verificationMethod[0].info)", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(", " pm.collectionVariables.get(\"issuer_identity\") +", " \"?state=\" +", - " pm.response.json().didDocument.authentication[0].info.state", + " pm.response.json().didDocument.verificationMethod[0].info.state", " )", "});", "", - "pm.collectionVariables.set(\"latest_issuer_state\", pm.response.json().didDocument.authentication[0].info.state);", - "pm.collectionVariables.set(\"latest_gist_root\", pm.response.json().didDocument.authentication[0].global.root);", + "pm.collectionVariables.set(\"latest_issuer_state\", pm.response.json().didDocument.verificationMethod[0].info.state);", + "pm.collectionVariables.set(\"latest_gist_root\", pm.response.json().didDocument.verificationMethod[0].global.root);", "" ], "type": "text/javascript" @@ -500,14 +500,14 @@ " const responseJson = pm.response.json();", " pm.expect(responseJson.didDocument.id).to.eq(pm.collectionVariables.get(\"issuer_identity\"));", "", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(true)", - " pm.expect(responseJson.didDocument.authentication[0].info).not.empty;", - " pm.expect(responseJson.didDocument.authentication[0].global).to.equal(undefined);", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).to.equal(undefined);", "", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(", " pm.collectionVariables.get(\"issuer_identity\") +", " \"?state=\" +", - " pm.response.json().didDocument.authentication[0].info.state", + " pm.response.json().didDocument.verificationMethod[0].info.state", " )", "});", "" @@ -565,7 +565,7 @@ "method": "GET", "header": [], "url": { - "raw": "{{resolver_server}}/1.0/gist?chain=polygon&networkid=mumbai", + "raw": "{{resolver_server}}/1.0/gist?chain=polygon&networkid=amoy", "host": [ "{{resolver_server}}" ], @@ -580,7 +580,7 @@ }, { "key": "networkid", - "value": "mumbai" + "value": "amoy" } ] } @@ -605,14 +605,14 @@ " const responseJson = pm.response.json();", " pm.expect(responseJson.didDocument.id).to.eq(pm.collectionVariables.get(\"issuer_identity\"));", "", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(true)", - " pm.expect(responseJson.didDocument.authentication[0].info).not.empty;", - " pm.expect(responseJson.didDocument.authentication[0].global).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", "", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(", " pm.collectionVariables.get(\"issuer_identity\") +", " \"?state=\" +", - " pm.response.json().didDocument.authentication[0].info.state", + " pm.response.json().didDocument.verificationMethod[0].info.state", " )", "});", "", @@ -663,19 +663,19 @@ "const responseJson = pm.response.json();", " pm.expect(responseJson.didDocument.id).to.eq(pm.collectionVariables.get(\"issuer_identity\"));", "", - " pm.expect(responseJson.didDocument.authentication[0].published).to.eq(true)", - " pm.expect(responseJson.didDocument.authentication[0].info).not.empty;", - " pm.expect(responseJson.didDocument.authentication[0].global).to.eq(undefined);", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).to.eq(undefined);", "", - " pm.expect(responseJson.didDocument.authentication[0].id).to.eq(", + " pm.expect(responseJson.didDocument.verificationMethod[0].id).to.eq(", " pm.collectionVariables.get(\"issuer_identity\") +", " \"?state=\" +", " pm.collectionVariables.get(\"issuer_genesis_state\")", " )", "", " // check that genesis state was replaced", - " pm.expect(responseJson.didDocument.authentication[0].info.replacedAtTimestamp).not.empty", - " pm.expect(responseJson.didDocument.authentication[0].info.replacedAtBlock).not.empty", + " pm.expect(responseJson.didDocument.verificationMethod[0].info.replacedAtTimestamp).not.empty", + " pm.expect(responseJson.didDocument.verificationMethod[0].info.replacedAtBlock).not.empty", "});", "", "" diff --git a/tests/e2e/state_resolve_tests.json b/tests/e2e/state_resolve_tests.json new file mode 100644 index 0000000..abd9bbc --- /dev/null +++ b/tests/e2e/state_resolve_tests.json @@ -0,0 +1,369 @@ +{ + "info": { + "_postman_id": "e0cc50ab-00fe-4ef4-8541-350995f7c99d", + "name": "Nameservice users e2e tests", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Reslover state by NOT published genesis state", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "", + "pm.test(\"Did doc not found\", () => {", + " const responseJson = pm.response.json();", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(false)", + "});", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xAtJWsY8SvGXds5BpaiRKnsTisb8ER2ep4ZnE9zQd?state=8898e0d8cf56acd4c18b249b9a04095fa7d38a5d38e1b98d7ad5d560ac4ca32d", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xAtJWsY8SvGXds5BpaiRKnsTisb8ER2ep4ZnE9zQd" + ], + "query": [ + { + "key": "state", + "value": "8898e0d8cf56acd4c18b249b9a04095fa7d38a5d38e1b98d7ad5d560ac4ca32d" + } + ] + } + }, + "response": [] + }, + { + "name": "Resolve NOT published did", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "", + "pm.test(\"Did doc not found\", () => {", + " const responseJson = pm.response.json();", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(false)", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xAtJWsY8SvGXds5BpaiRKnsTisb8ER2ep4ZnE9zQd", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xAtJWsY8SvGXds5BpaiRKnsTisb8ER2ep4ZnE9zQd" + ] + } + }, + "response": [] + }, + { + "name": "Resolve state by gist for not published Issuer", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xAtJWsY8SvGXds5BpaiRKnsTisb8ER2ep4ZnE9zQd?state=8898e0d8cf56acd4c18b249b9a04095fa7d38a5d38e1b98d7ad5d560ac4ca32d", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xAtJWsY8SvGXds5BpaiRKnsTisb8ER2ep4ZnE9zQd" + ], + "query": [ + { + "key": "state", + "value": "8898e0d8cf56acd4c18b249b9a04095fa7d38a5d38e1b98d7ad5d560ac4ca32d" + } + ] + } + }, + "response": [] + }, + { + "name": "Resolve published did", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "", + "pm.test(\"Did doc not found\", () => {", + " const responseJson = pm.response.json();", + "", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw" + ] + } + }, + "response": [] + }, + { + "name": "Resolve state by state", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "", + "pm.test(\"Did doc not found\", () => {", + " const responseJson = pm.response.json();", + " ", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).to.equal(undefined);", + "", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?state=7a1a45d22b686cf1bd2f9fbecbed38b725a555e6d8ad68d3780feda9124b1a13", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw" + ], + "query": [ + { + "key": "state", + "value": "7a1a45d22b686cf1bd2f9fbecbed38b725a555e6d8ad68d3780feda9124b1a13" + } + ] + } + }, + "response": [] + }, + { + "name": "Resolve state by gist", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "", + "pm.test(\"Did doc not found\", () => {", + " const responseJson = pm.response.json();", + "", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).not.empty;", + "});", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?gist=874ab0cf7d31b5367d2786e3b94df3c5bf7c6b715baec9c985cabfadb118d506", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw" + ], + "query": [ + { + "key": "gist", + "value": "874ab0cf7d31b5367d2786e3b94df3c5bf7c6b715baec9c985cabfadb118d506" + } + ] + } + }, + "response": [] + }, + { + "name": "Resolve state by issuer genesis state", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Content-Type header is application/json\", () => {", + " pm.expect(pm.response.headers.get('Content-Type')).to.eql('application/json');", + "});", + "", + "pm.test(\"Did doc not found\", () => {", + "const responseJson = pm.response.json();", + " pm.expect(responseJson.didDocument.verificationMethod[0].published).to.eq(true)", + " pm.expect(responseJson.didDocument.verificationMethod[0].info).not.empty;", + " pm.expect(responseJson.didDocument.verificationMethod[0].global).to.eq(undefined);", + "", + " // check that genesis state was replaced", + " pm.expect(responseJson.didDocument.verificationMethod[0].info.replacedAtTimestamp).not.empty", + " pm.expect(responseJson.didDocument.verificationMethod[0].info.replacedAtBlock).not.empty", + "});", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/1.0/identifiers/did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw?state=9b91cbd8957217a6846b57b76660b4f4044fd58ad87abf42e14439a2aae4be15", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "1.0", + "identifiers", + "did:iden3:polygon:amoy:xC8VZLUUfo5p9DWUawReh7QSstmYN6zR7qsQhQCsw" + ], + "query": [ + { + "key": "state", + "value": "9b91cbd8957217a6846b57b76660b4f4044fd58ad87abf42e14439a2aae4be15" + } + ] + } + }, + "response": [] + } + ], + "variable": [ + { + "key": "latest_gist", + "value": "" + }, + { + "key": "latest_issuer_state", + "value": "" + }, + { + "key": "latest_gist_root", + "value": "" + } + ] +} \ No newline at end of file From 9e4cd291ff9afb24c5ccc44fc24b261cc4b0ac55 Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 28 May 2024 18:46:38 +0300 Subject: [PATCH 2/4] add more unit tests --- .github/workflows/e2e.yaml | 12 ++++ go.mod | 11 +-- go.sum | 138 ++++++++----------------------------- 3 files changed, 42 insertions(+), 119 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 0c0a89a..8fb0717 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -60,7 +60,19 @@ jobs: --global-var issuer_server=${{ secrets.ISSUER_URL }} \ --bail --verbose + - name: Run state tests + id: e2e_state + continue-on-error: true + run: | + npm install -g newman && \ + newman run tests/e2e/state_resolve_tests.json \ + -g ./tests/e2e/dev_env.json \ + --bail --verbose + - name: e2e tests finished if: steps.e2e.outcome != 'success' run: exit 1 + - name: e2e test state finished + if: steps.e2e_state.outcome != 'success' + run: exit 1 # / TESTS diff --git a/go.mod b/go.mod index 35b8ee3..0653107 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,8 @@ go 1.18 require ( github.com/ethereum/go-ethereum v1.11.5 github.com/golang/mock v1.6.0 + github.com/iden3/contracts-abi/state/go/abi v1.0.1 + github.com/iden3/go-iden3-core/v2 v2.1.1 github.com/kelseyhightower/envconfig v1.4.0 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.2 @@ -18,17 +20,13 @@ require ( github.com/deckarep/golang-set/v2 v2.2.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/holiman/uint256 v1.2.0 // indirect - github.com/iden3/contracts-abi/state/go/abi v1.0.1 // indirect - github.com/iden3/go-iden3-core/v2 v2.1.1 // indirect ) require ( github.com/btcsuite/btcd v0.22.0-beta // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/cespare/cp v1.1.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/deckarep/golang-set v1.8.0 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect github.com/go-ole/go-ole v1.2.6 // indirect @@ -39,7 +37,6 @@ require ( github.com/iden3/go-merkletree-sql/v2 v2.0.0 github.com/ipfs/go-cid v0.3.2 // indirect github.com/klauspost/cpuid/v2 v2.2.4 // indirect - github.com/kr/pretty v0.3.1 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect github.com/minio/sha256-simd v1.0.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -50,14 +47,10 @@ require ( github.com/multiformats/go-multihash v0.2.1 // indirect github.com/multiformats/go-varint v0.0.7 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/prometheus/tsdb v0.10.0 // indirect - github.com/rjeczalik/notify v0.9.3 // indirect github.com/shirou/gopsutil v3.21.11+incompatible // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect - github.com/status-im/keycard-go v0.2.0 // indirect github.com/tklauser/go-sysconf v0.3.11 // indirect github.com/tklauser/numcpus v0.6.0 // indirect - github.com/tyler-smith/go-bip39 v1.1.0 // indirect github.com/wealdtech/go-multicodec v1.4.0 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect golang.org/x/sys v0.6.0 // indirect diff --git a/go.sum b/go.sum index 7abbf3a..0f00c78 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,7 @@ -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/DataDog/zstd v1.5.2 h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8= github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c3fqvvgKm5o= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.22.0-beta h1:LTDpDKUM5EeOFBPM8IXpinEcmZ6FWfNZbE3lfrfdnWo= github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= @@ -22,31 +19,23 @@ github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtE github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/cespare/cp v1.1.1 h1:nCb6ZLdB7NRaqsm91JtQTAme2SKJzXVsdPIPkyJr1MU= github.com/cespare/cp v1.1.1/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 h1:ytcWPaNPhNoGMWEhDvS3zToKcDpRsLuRolQJBVGdozk= +github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dchest/blake512 v1.0.0/go.mod h1:FV1x7xPPLWukZlpDpWQ88rF/SFwZ5qbskrzhLMB92JI= -github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4= -github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= github.com/deckarep/golang-set/v2 v2.2.0 h1:2pMQd3Soi6qfw7E5MMKaEh5W5ES18bW3AbFFnGl6LgQ= github.com/deckarep/golang-set/v2 v2.2.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= -github.com/ethereum/go-ethereum v1.10.26 h1:i/7d9RBBwiXCEuyduBQzJw/mKmnvzsN14jqBmytw72s= -github.com/ethereum/go-ethereum v1.10.26/go.mod h1:EYFyF19u3ezGLD4RqOkLq+ZCXzYbLoNDdZlMt7kyKFg= -github.com/ethereum/go-ethereum v1.11.3 h1:uuBkYUJW9aY5JYi3+sqLHz+XWyo5fmn/ab9XcbtVDTU= -github.com/ethereum/go-ethereum v1.11.3/go.mod h1:rBUvAl5cdVrAei9q5lgOU7RSEuPJk1nlBDnS/YSoKQE= github.com/ethereum/go-ethereum v1.11.5 h1:3M1uan+LAUvdn+7wCEFrcMM4LJTeuxDrPTg/f31a5QQ= github.com/ethereum/go-ethereum v1.11.5/go.mod h1:it7x0DWnTDMfVFdXcU6Ti4KEFQynLHVRarcSlPr0HBo= github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= @@ -55,29 +44,24 @@ github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4 github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 h1:f6D9Hr8xV8uYKlyuj8XIruxlh9WjVjdh1gIicAS7ays= github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/getsentry/sentry-go v0.18.0 h1:MtBW5H9QgdcJabtZcuJG80BMOwaBpkRDZkxRkNC1sN0= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw= github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/golang-jwt/jwt/v4 v4.3.0 h1:kHL1vqdqWNfATmA0FNMdmZNMyZI1U6O31X4rlIPoBog= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs= -github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/hashicorp/go-bexpr v0.1.10 h1:9kuI5PFotCboP3dkDYFr/wi0gg0QVbSNz5oFRpxn4uE= -github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao= github.com/holiman/uint256 v1.2.0 h1:gpSYcPLWGv4sG43I2mVLiDZCNDh/EpGjSk8tmtxitHM= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= @@ -85,14 +69,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO github.com/huin/goupnp v1.0.3 h1:N8No57ls+MnjlB+JPiCVSOyy/ot7MJTqlo7rn+NYSqQ= github.com/iden3/contracts-abi/state/go/abi v1.0.1 h1:FsaLJSy3NSyJl5k1yfDxc5DhUHRY7Z/UCj0/1YueMrY= github.com/iden3/contracts-abi/state/go/abi v1.0.1/go.mod h1:TxgIrXCvxms3sbOdsy8kTvffUCIpEEifNy0fSXdkU4w= -github.com/iden3/go-iden3-core v0.1.1-0.20230110091701-2007727025e0 h1:lhH2QkBVa1R5zrFVsvfPzBDUTgmQixjbJqmtEanVysY= -github.com/iden3/go-iden3-core v0.1.1-0.20230110091701-2007727025e0/go.mod h1:wJtcMK/bSazyW/JrQaRrbpUMgSMg79Pke3xgtfPxDnQ= -github.com/iden3/go-iden3-core v1.0.0 h1:GNwuYOHZD7hiWjmW+wv26RW9f/JwF4lRQu7/55f2YB8= -github.com/iden3/go-iden3-core v1.0.0/go.mod h1:wJtcMK/bSazyW/JrQaRrbpUMgSMg79Pke3xgtfPxDnQ= github.com/iden3/go-iden3-core/v2 v2.1.1 h1:WD14iWKZmnfHTl9Em/PfGssrFYXz8YNQPjPs/cn+eHc= github.com/iden3/go-iden3-core/v2 v2.1.1/go.mod h1:L9PxhWPvoS9qTb3inEkZBm1RpjHBt+VTwvxssdzbAdw= -github.com/iden3/go-iden3-crypto v0.0.13 h1:ixWRiaqDULNyIDdOWz2QQJG5t4PpNHkQk2P6GV94cok= -github.com/iden3/go-iden3-crypto v0.0.13/go.mod h1:swXIv0HFbJKobbQBtsB50G7IHr6PbTowutSew/iBEoo= github.com/iden3/go-iden3-crypto v0.0.15 h1:4MJYlrot1l31Fzlo2sF56u7EVFeHHJkxGXXZCtESgK4= github.com/iden3/go-iden3-crypto v0.0.15/go.mod h1:dLpM4vEPJ3nDHzhWFXDjzkn1qHoBeOT/3UEhXsEsP3E= github.com/iden3/go-merkletree-sql/v2 v2.0.0 h1:7tMgHCUJCo0jxyM15fjCc7G9Dy0x2rmX+lwa8tqEfho= @@ -103,41 +81,28 @@ github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7Bd github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/klauspost/compress v1.15.15 h1:EF27CXIuDsYJ6mmvtBRlEuB2UVOqHG1tAXgZ7yIO+lw= github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y70BU= -github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk= github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= -github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= -github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= -github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE= @@ -150,59 +115,35 @@ github.com/multiformats/go-multihash v0.2.1 h1:aem8ZT0VA2nCHHk7bPJ1BjUbHNciqZC/d github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/tsdb v0.10.0 h1:If5rVCMTp6W2SiRAQFlbpJNgVlgMEd+U2GZckwK38ic= -github.com/prometheus/tsdb v0.10.0/go.mod h1:oi49uRhEe9dPUTlS3JRZOwJuVi6tmh10QSgwXEyGCt4= +github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= +github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= +github.com/prometheus/common v0.39.0 h1:oOyhkDq05hPZKItWVBkJ6g6AtGxi+fy7F4JvUV8uhsI= +github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8= -github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= -github.com/rjeczalik/notify v0.9.3 h1:6rJAzHTGKXGj76sbRgDiDcYj/HniypXmSJo1SWakZeY= -github.com/rjeczalik/notify v0.9.3/go.mod h1:gF3zSOrafR9DQEWSE8TjfI9NkooDxbyT4UgRGKZA0lc= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI= github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969 h1:Oo2KZNP70KE0+IUJSidPj/BFS/RXNHmKIJOdckzml2E= -github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= -github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9+mHxBEeo3Hbg= +github.com/status-im/keycard-go v0.2.0 h1:QDLFswOQu1r5jsycloeQh3bVU8n/NatHHaZobtDnDzA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= @@ -211,8 +152,7 @@ github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7Am github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms= github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4= github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= -github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= -github.com/urfave/cli/v2 v2.10.2 h1:x3p8awjp/2arX+Nl/G2040AZpOCHS/eMJJ1/a+mye4Y= +github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa h1:5SqCsI/2Qya2bCzK15ozrqo2sZxkh0FHynJZOTVoV6Q= github.com/wealdtech/go-ens/v3 v3.5.5 h1:/jq3CDItK0AsFnZtiFJK44JthkAMD5YE3WAJOh4i7lc= github.com/wealdtech/go-ens/v3 v3.5.5/go.mod h1:w0EDKIm0dIQnqEKls6ORat/or+AVfPEdEXVfN71EeEE= github.com/wealdtech/go-multicodec v1.4.0 h1:iq5PgxwssxnXGGPTIK1srvt6U5bJwIp7k6kBrudIWxg= @@ -223,75 +163,53 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.4.0 h1:UVQgzMY87xqpKNgb+kDsll2Igd33HszWHFLmpaRMq/8= -golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80= golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/exp v0.0.0-20230206171751-46f607a40771 h1:xP7rWLUr1e1n2xkK5YB4LI0hPEy3LJC6Wk+D4pGlOJg= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.4.0 h1:Q5QPcMlvfxFTAPV0+07Xz/MpK9NTXu2VDUuy0FeMfaU= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180926160741-c2ed4eda69e7/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ= -golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= -golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba h1:O8mE0/t419eoIwhTFpKVkHiTs/Igowgfkj25AcZrtiE= +golang.org/x/time v0.0.0-20220922220347-f3bd1da661af h1:Yx9k8YCG3dvF87UAn2tu2HQLf2dt/eR1bXxpLMWeH+Y= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= From 2b9dd8a777d3e971fb5c7b5f5485a95af836635c Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 28 May 2024 18:53:07 +0300 Subject: [PATCH 3/4] fix chain prefix --- .github/workflows/e2e.yaml | 2 +- .github/workflows/push-container.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 8fb0717..7ac73b2 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -19,7 +19,7 @@ jobs: - name: Build file with supported networks run: | - echo -e "iden3:" > resolvers.settings.yaml + echo -e "polygon:" > resolvers.settings.yaml echo -e " amoy:" >> resolvers.settings.yaml echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_AMOY }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.POLYGON_AMOY_NODE_URL }}" >> resolvers.settings.yaml diff --git a/.github/workflows/push-container.yaml b/.github/workflows/push-container.yaml index 6d274c0..669e079 100644 --- a/.github/workflows/push-container.yaml +++ b/.github/workflows/push-container.yaml @@ -26,7 +26,7 @@ jobs: - name: Build file with supported networks run: | cd driver-did-iden3 - echo -e "iden3:" > resolvers.settings.yaml + echo -e "polygon:" > resolvers.settings.yaml echo -e " amoy:" >> resolvers.settings.yaml echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_AMOY }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.POLYGON_AMOY_NODE_URL }}" >> resolvers.settings.yaml From 5ade721591265341ddccc0f1aa2e444694d456a2 Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 28 May 2024 18:56:59 +0300 Subject: [PATCH 4/4] fix e2e test --- tests/e2e/http_nameservice.postman_collection.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/http_nameservice.postman_collection.json b/tests/e2e/http_nameservice.postman_collection.json index 0296f7c..f32ffb5 100644 --- a/tests/e2e/http_nameservice.postman_collection.json +++ b/tests/e2e/http_nameservice.postman_collection.json @@ -227,7 +227,7 @@ "method": "GET", "header": [], "url": { - "raw": "{{resolver_server}}/1.0/gist?chain=polygon&networkid=mumbai", + "raw": "{{resolver_server}}/1.0/gist?chain=polygon&networkid=amoy", "host": [ "{{resolver_server}}" ], @@ -242,7 +242,7 @@ }, { "key": "networkid", - "value": "mumbai" + "value": "amoy" } ] }