Skip to content

Commit

Permalink
021_Psquebec is latest
Browse files Browse the repository at this point in the history
  • Loading branch information
e-asphyx committed Jan 8, 2025
1 parent f8b4ee6 commit fcfaa98
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 128 deletions.
10 changes: 5 additions & 5 deletions protocol/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/ecadlabs/gotez/v2/protocol/proto_017_PtNairob"
"github.com/ecadlabs/gotez/v2/protocol/proto_018_Proxford"
"github.com/ecadlabs/gotez/v2/protocol/proto_019_PtParisB"
"github.com/ecadlabs/gotez/v2/protocol/proto_021_PsquebeC"
"github.com/ecadlabs/gotez/v2/protocol/proto_021_PsQuebec"
)

type BlockInfo interface {
Expand All @@ -32,8 +32,8 @@ type BlockHeaderInfo interface {

func NewBlockInfo(proto *tz.ProtocolHash) (BlockInfo, error) {
switch *proto {
case core.Proto021PsquebeC:
return new(proto_021_PsquebeC.BlockInfo), nil
case core.Proto021PsQuebec:
return new(proto_021_PsQuebec.BlockInfo), nil
case core.Proto019PtParisB, core.Proto020PsParisC:
return new(proto_019_PtParisB.BlockInfo), nil
case core.Proto018Proxford:
Expand All @@ -57,8 +57,8 @@ func NewBlockInfo(proto *tz.ProtocolHash) (BlockInfo, error) {

func NewBlockHeaderInfo(proto *tz.ProtocolHash) (BlockHeaderInfo, error) {
switch *proto {
case core.Proto021PsquebeC:
return new(proto_021_PsquebeC.BlockHeaderInfo), nil
case core.Proto021PsQuebec:
return new(proto_021_PsQuebec.BlockHeaderInfo), nil
case core.Proto019PtParisB, core.Proto020PsParisC:
return new(proto_019_PtParisB.BlockHeaderInfo), nil
case core.Proto018Proxford:
Expand Down
2 changes: 1 addition & 1 deletion protocol/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type protoTestData struct {

var testData = []protoTestData{
{
proto: &core.Proto021PsquebeC,
proto: &core.Proto021PsQuebec,
blocks: []string{
"155262",
"155263",
Expand Down
6 changes: 3 additions & 3 deletions protocol/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"github.com/ecadlabs/gotez/v2/protocol/proto_017_PtNairob"
"github.com/ecadlabs/gotez/v2/protocol/proto_018_Proxford"
"github.com/ecadlabs/gotez/v2/protocol/proto_019_PtParisB"
"github.com/ecadlabs/gotez/v2/protocol/proto_021_PsquebeC"
"github.com/ecadlabs/gotez/v2/protocol/proto_021_PsQuebec"
)

func NewConstants(proto *tz.ProtocolHash) (constants core.Constants, err error) {
switch *proto {
case core.Proto021PsquebeC:
constants = new(proto_021_PsquebeC.Constants)
case core.Proto021PsQuebec:
constants = new(proto_021_PsQuebec.Constants)
case core.Proto019PtParisB, core.Proto020PsParisC:
constants = new(proto_019_PtParisB.Constants)
case core.Proto018Proxford:
Expand Down
8 changes: 4 additions & 4 deletions protocol/core/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
Proto018Proxford = tz.ProtocolHash{0x0b, 0xf4, 0x4c, 0x7d, 0x64, 0xe3, 0xd7, 0xda, 0x27, 0xd9, 0x25, 0xd1, 0x0a, 0xf5, 0x35, 0xfb, 0x36, 0xce, 0xf0, 0xad, 0x41, 0x93, 0x0c, 0x79, 0x29, 0x77, 0x3f, 0x47, 0x31, 0xeb, 0xa1, 0x37}
Proto019PtParisB = tz.ProtocolHash{0xdb, 0xff, 0x65, 0x86, 0xa0, 0x48, 0x02, 0xd3, 0xf5, 0x13, 0xc6, 0x5a, 0x44, 0x4d, 0x9d, 0x4d, 0xeb, 0xe4, 0x2b, 0x17, 0xe9, 0xe7, 0x27, 0x3f, 0x8f, 0x6c, 0x11, 0x8e, 0xa3, 0xf4, 0xe0, 0x6e}
Proto020PsParisC = tz.ProtocolHash{0x58, 0x4d, 0x32, 0x39, 0x2e, 0xf2, 0x1a, 0x17, 0xef, 0x36, 0xdf, 0x07, 0x4f, 0x48, 0xaf, 0x06, 0x65, 0x3a, 0x8d, 0x31, 0x59, 0x57, 0xc9, 0x07, 0xd6, 0xa4, 0xc1, 0x8c, 0x3a, 0x00, 0xa5, 0xe1}
Proto021PsquebeC = tz.ProtocolHash{0x94, 0x12, 0xc8, 0x4f, 0xe6, 0x49, 0x2d, 0x94, 0x8e, 0x1b, 0xcf, 0x75, 0xa3, 0xc8, 0xf6, 0xcb, 0xc9, 0x0a, 0xf9, 0xaf, 0x42, 0x76, 0x5a, 0xe0, 0x03, 0x8c, 0x8b, 0x77, 0x81, 0x34, 0xfa, 0xb1}
Proto021PsQuebec = tz.ProtocolHash{0x5b, 0x4e, 0xcc, 0xaf, 0xe8, 0xa1, 0xae, 0xb6, 0x7e, 0xa0, 0x79, 0xda, 0x15, 0xcf, 0x0e, 0x36, 0x93, 0x09, 0x52, 0xe0, 0x87, 0xf6, 0x54, 0x8a, 0x82, 0x00, 0xc0, 0x0c, 0x56, 0x05, 0xb2, 0x00}
)

var Protocols = []*tz.ProtocolHash{
Expand All @@ -51,7 +51,7 @@ var Protocols = []*tz.ProtocolHash{
&Proto018Proxford,
&Proto019PtParisB,
&Proto020PsParisC,
&Proto021PsquebeC,
&Proto021PsQuebec,
}

var shortNames = map[tz.ProtocolHash]string{
Expand All @@ -76,7 +76,7 @@ var shortNames = map[tz.ProtocolHash]string{
Proto018Proxford: "018_Proxford",
Proto019PtParisB: "019_PtParisA",
Proto020PsParisC: "020_PsParisC",
Proto021PsquebeC: "021_PsquebeC",
Proto021PsQuebec: "021_PsQuebec",
}

var indices = map[tz.ProtocolHash]int{
Expand All @@ -101,7 +101,7 @@ var indices = map[tz.ProtocolHash]int{
Proto018Proxford: 18,
Proto019PtParisB: 19,
Proto020PsParisC: 20,
Proto021PsquebeC: 21,
Proto021PsQuebec: 21,
}

func ProtocolShortName(proto *tz.ProtocolHash) string {
Expand Down
4 changes: 2 additions & 2 deletions protocol/latest/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package latest

import (
"github.com/ecadlabs/gotez/v2/protocol/core"
latest "github.com/ecadlabs/gotez/v2/protocol/proto_021_PsquebeC"
latest "github.com/ecadlabs/gotez/v2/protocol/proto_021_PsQuebec"

Check failure on line 5 in protocol/latest/alias.go

View workflow job for this annotation

GitHub Actions / test

no required module provides package github.com/ecadlabs/gotez/v2/protocol/proto_021_PsQuebec; to add it:
)

var (
Protocol = core.Proto020PsParisC
Protocol = core.Proto021PsQuebec
NewRunOperationRequest = latest.NewRunOperationRequest
NewUnsignedOperation = latest.NewUnsignedOperation
NewSignedOperation = latest.NewSignedOperation
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/balance_update.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
tz "github.com/ecadlabs/gotez/v2"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/block.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
tz "github.com/ecadlabs/gotez/v2"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/constants.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"github.com/ecadlabs/gotez/v2/protocol/proto_019_PtParisB"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/constants_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/helpers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"github.com/ecadlabs/gotez/v2/protocol/proto_018_Proxford"
Expand Down
206 changes: 103 additions & 103 deletions protocol/proto_021_PsquebeC/json_gen.go

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

2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/operation_list.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"github.com/ecadlabs/gotez/v2/encoding"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/operations.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

//go:generate go run ../../cmd/genmarshaller.go

Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/smart_rollup.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"math/big"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/transaction.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"math/big"
Expand Down
2 changes: 1 addition & 1 deletion protocol/proto_021_PsquebeC/zk_rollup.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proto_021_PsquebeC
package proto_021_PsQuebec

import (
"math/big"
Expand Down

0 comments on commit fcfaa98

Please sign in to comment.