Skip to content

Commit

Permalink
Update gosdk with staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Jan 10, 2025
1 parent ca9dde6 commit 03a5bb7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/newallocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var newallocationCmd = &cobra.Command{
}

allocationID, _, _, err = sdk.CreateAllocationForOwner(owner, ownerPublicKey, *datashards, *parityshards,
*size, readPrice, writePrice, lock, preferred_blobbers, blobber_auth_tickets, thirdPartyExtendable, isEnterprise, force, &fileOptionParams)
*size, readPrice, writePrice, lock, preferred_blobbers, blobber_auth_tickets, thirdPartyExtendable, isEnterprise, force, &fileOptionParams, 0)
if err != nil {
log.Fatal("Error creating allocation: ", err)
}
Expand Down
6 changes: 6 additions & 0 deletions cmd/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"
"log"
"time"

Expand Down Expand Up @@ -82,6 +83,11 @@ var lsBlobers = &cobra.Command{
log.Fatalf("Failed to get blobbers: %v", err)
}

isActivated, err := zcncore.IsHardforkActivated("hermes")
log.Println("IsActivated: ", isActivated)
log.Fatal(err)
return

if doJSON {
util.PrintJSON(list)
} else {
Expand Down
2 changes: 2 additions & 0 deletions cmd/updateallocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ var updateAllocationCmd = &cobra.Command{
allocUnderRepair = true
if txnHash, err := allocationObj.UpdateWithRepair(
size,
0,
extend,
lock,
addBlobberId,
Expand All @@ -154,6 +155,7 @@ var updateAllocationCmd = &cobra.Command{
} else {
txnHash, _, err := sdk.UpdateAllocation(
size,
0,
extend,
allocID,
lock,
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.22.5

require (
github.com/0chain/errors v1.0.3
github.com/0chain/gosdk v1.18.16
github.com/0chain/gosdk v1.8.18-0.20230901213317-53d640a9b7f9
github.com/icza/bitio v1.1.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.6.0
Expand Down Expand Up @@ -86,4 +86,4 @@ require (
)

// temporary, for development
//replace github.com/0chain/gosdk => ../gosdk
replace github.com/0chain/gosdk => ../gosdk
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ github.com/0chain/common v1.18.3 h1:42dYOv2KyMTSanuS67iDtfv+ErbSRqR8NJ3MG72MwaI=
github.com/0chain/common v1.18.3/go.mod h1:Lapu2Tj7z5Sm4r+X141e7vsz4NDODTEypeElYAP3iSw=
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM=
github.com/0chain/errors v1.0.3/go.mod h1:xymD6nVgrbgttWwkpSCfLLEJbFO6iHGQwk/yeSuYkIc=
github.com/0chain/gosdk v1.18.16 h1:QpApoYGc7jbTxnSTi1AmyRHSvhFpkaPs3yWghhLj9rU=
github.com/0chain/gosdk v1.18.16/go.mod h1:8unFy9Dx2YyPKMYPDGR3MFhUEymbAfQcRDm9bobVLGw=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ=
Expand Down

0 comments on commit 03a5bb7

Please sign in to comment.