Skip to content

Commit

Permalink
fix module name and regenerate latest gateway bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Oct 24, 2024
1 parent 725db06 commit 5933976
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.anchor/
/target
**/.DS_Store
.idea/
.idea/
node_modules/
125 changes: 122 additions & 3 deletions go-idl/generated/gateway.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go-idl/generator/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/protocol-contracts-solana/go-idl/types"
"github.com/zeta-chain/protocol-contracts-solana/go-idl/types"
)

const (
Expand All @@ -21,7 +21,7 @@ func generateIDLFile(packagename, varname string, idl *types.IDL) string {
sb.WriteString(fmt.Sprintf("%s\n", codeGenerationDisclaimer))
sb.WriteString(fmt.Sprintf("package %s\n\n", packagename))
sb.WriteString("import (\n")
sb.WriteString(" \"github.com/protocol-contracts-solana/go-idl/types\"\n")
sb.WriteString(" \"github.com/zeta-chain/protocol-contracts-solana/go-idl/types\"\n")
sb.WriteString(")\n\n")

// IDL struct
Expand Down
2 changes: 1 addition & 1 deletion go-idl/generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/protocol-contracts-solana/go-idl/types"
"github.com/zeta-chain/protocol-contracts-solana/go-idl/types"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go-idl/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/protocol-contracts-solana/go-idl
module github.com/zeta-chain/protocol-contracts-solana/go-idl

go 1.22.8

0 comments on commit 5933976

Please sign in to comment.