Skip to content

Commit

Permalink
[SDK] Use shannon sdk main branch (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne authored Jun 28, 2024
1 parent 22242e6 commit ec9e889
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ require (
// This is creating a circular dependency whereby exporting the protobufs into a separate
// repo is the first obvious idea, but has to be carefully considered, automated, and is not
// a hard blocker.
github.com/pokt-network/shannon-sdk v0.0.0-20240627142231-73716a2537c1
github.com/pokt-network/shannon-sdk v0.0.0-20240628223057-7d2928722749
github.com/pokt-network/smt v0.11.1
github.com/pokt-network/smt/kvstore/badger v0.0.0-20240109205447-868237978c0b
github.com/prometheus/client_golang v1.18.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pokt-network/ring-go v0.1.0 h1:hF7mDR4VVCIqqDAsrloP8azM9y1mprc99YgnTjKSSwk=
github.com/pokt-network/ring-go v0.1.0/go.mod h1:8NHPH7H3EwrPX3XHfpyRI6bz4gApkE3+fd0XZRbMWP0=
github.com/pokt-network/shannon-sdk v0.0.0-20240627142231-73716a2537c1 h1:iLoSeNmuig+/tev64ZMPohpqksUGRfxZLySHiwLvJTo=
github.com/pokt-network/shannon-sdk v0.0.0-20240627142231-73716a2537c1/go.mod h1:TamJzMtBXHd1miJGqsEpPHsecyhvVM/nEQNDxwkMS+g=
github.com/pokt-network/shannon-sdk v0.0.0-20240628223057-7d2928722749 h1:V/3xzmykSABhAxRZLawWUoIPVlnp7EGCnCxFpLXD7R0=
github.com/pokt-network/shannon-sdk v0.0.0-20240628223057-7d2928722749/go.mod h1:MfoRhzPRlxiaY3xQyZo28B7ibDuhricA//TGGy48TwM=
github.com/pokt-network/smt v0.11.1 h1:ySN8PjrPDKyvzLcX0qTHR2s5ReaZnjq25z0B7p6AWl0=
github.com/pokt-network/smt v0.11.1/go.mod h1:S4Ho4OPkK2v2vUCHNtA49XDjqUC/OFYpBbynRVYmxvA=
github.com/pokt-network/smt/kvstore/badger v0.0.0-20240109205447-868237978c0b h1:TjfgV3vgW0zW47Br/OgUXD4M8iyR74EYanbFfN4ed8o=
Expand Down
2 changes: 1 addition & 1 deletion pkg/appgateserver/endpoint_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
// to gateways.
func (app *appGateServer) getRelayerUrl(
rpcType sharedtypes.RPCType,
sessionFilter shannonsdk.FilteredSession,
sessionFilter shannonsdk.SessionFilter,
requestUrlStr string,
) (supplierEndpoint shannonsdk.Endpoint, err error) {
// AppGateServer uses the custom getRelayerUrl instead of leveraging the SDK's
Expand Down
4 changes: 2 additions & 2 deletions pkg/appgateserver/sdkadapter/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ func (shannonSDK *ShannonSDK) SendRelay(
func (shannonSDK *ShannonSDK) GetSessionSupplierEndpoints(
ctx context.Context,
appAddress, serviceId string,
) (*shannonsdk.FilteredSession, error) {
) (*shannonsdk.SessionFilter, error) {
currentHeight := shannonSDK.blockClient.LastBlock(ctx).Height()
session, err := shannonSDK.sessionClient.GetSession(ctx, appAddress, serviceId, currentHeight)
if err != nil {
return nil, err
}

filteredSession := &shannonsdk.FilteredSession{
filteredSession := &shannonsdk.SessionFilter{
Session: session,
}

Expand Down

0 comments on commit ec9e889

Please sign in to comment.