This commit is contained in:
Igor Sirotin 2024-11-13 00:29:11 +07:00
parent 7ee45bab1c
commit 01b5d1bebb
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
3 changed files with 21 additions and 5 deletions

View File

@ -0,0 +1,16 @@
#!/bin/bash
version=3
oldVersion=$((version - 1))
rm extkeys/go.sum
rm extkeys/go.mod
rm exchanges/go.sum
rm exchanges/go.mod
sed -i '' "s|github.com/status-im/status-go/v${oldVersion}|github.com/status-im/status-go/v${version}|g" cmd/generate_handlers/generate_handlers_template.txt
sed -i '' "s|github.com/status-im/status-go/v${oldVersion}|github.com/status-im/status-go/v${version}|g" cmd/status-backend/server/parse-api/endpoints_template.txt
mod upgrade -tag ${version}
find . -name "*.go" -exec sed -i '' "s/\/v${version}\/v${version}/\/v${version}/g" {} +

View File

@ -10,10 +10,10 @@ import (
"github.com/golang/protobuf/proto"
"go.uber.org/zap"
"github.com/status-im/status-go/protocol/common"
"github.com/status-im/status-go/protocol/protobuf"
"github.com/status-im/status-go/protocol/transport"
v1protocol "github.com/status-im/status-go/protocol/v1"
"github.com/status-im/status-go/protocol/v2/common"
"github.com/status-im/status-go/protocol/v2/protobuf"
"github.com/status-im/status-go/protocol/v2/transport"
v1protocol "github.com/status-im/status-go/v3/protocol/v1"
)
func (m *Messenger) dispatchToHandler(messageState *ReceivedMessageState, protoBytes []byte, msg *v1protocol.StatusMessage, filter transport.Filter, fromArchive bool) error {

View File

@ -3,7 +3,7 @@
package server
import statusgo "github.com/status-im/status-go/mobile"
import statusgo "github.com/status-im/status-go/v3/mobile"
var EndpointsWithRequest = map[string]func(string) string{
{{- range .FunctionsWithResp }}