-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
952dfdc
commit 3e106c3
Showing
12 changed files
with
126 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
syntax = "proto3"; | ||
package dydxprotocol.accountplus; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "dydxprotocol/accountplus/accountplus.proto"; | ||
|
||
option go_package = "github.com/dydxprotocol/v4-chain/protocol/x/accountplus/types"; | ||
|
||
// Module genesis state | ||
message GenesisState { repeated AccountState accounts = 1; } | ||
message GenesisState { repeated AccountState accounts = 1 | ||
[ (gogoproto.nullable) = false ]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
package keeper | ||
|
||
import ( | ||
"github.com/dydxprotocol/v4-chain/protocol/x/accountplus/types" | ||
) | ||
|
||
var InitialTimestampNonceDetails = &types.TimestampNonceDetails{ | ||
MaxEjectedNonce: 0, | ||
TimestampNonces: []uint64{}, | ||
} | ||
|
||
func DeepCopyTimestampNonceDetails(details *types.TimestampNonceDetails) *types.TimestampNonceDetails { | ||
if details == nil { | ||
return nil | ||
} | ||
|
||
copyDetails := &types.TimestampNonceDetails{ | ||
MaxEjectedNonce: details.MaxEjectedNonce, | ||
TimestampNonces: make([]uint64, len(details.TimestampNonces)), | ||
} | ||
|
||
// Copy the slice elements | ||
copy(copyDetails.TimestampNonces, details.TimestampNonces) | ||
|
||
return copyDetails | ||
} | ||
func Placeholder() {} |
Oops, something went wrong.