Skip to content

Commit

Permalink
Merge pull request #397 from neutron-org/fix/exp_time_comments
Browse files Browse the repository at this point in the history
Cleanup comments for expiration_time to match current naming
  • Loading branch information
pr0n00gler authored Jan 25, 2024
2 parents 6c65c3f + c572da4 commit 4fe3e78
Show file tree
Hide file tree
Showing 31 changed files with 1,073 additions and 1,062 deletions.
217 changes: 112 additions & 105 deletions docs/static/openapi.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/neutron/dex/limit_order_expiration.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/protobuf/timestamp.proto";
option go_package = "github.com/neutron-org/neutron/v2/x/dex/types";

message LimitOrderExpiration {
// see limitOrderTranche.proto for details on goodTilDate
// see limitOrderTranche.proto for details on expiration_time
google.protobuf.Timestamp expiration_time = 1 [
(gogoproto.stdtime) = true,
(gogoproto.nullable) = false
Expand Down
11 changes: 5 additions & 6 deletions proto/neutron/dex/limit_order_tranche.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ message LimitOrderTranche {
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "total_taker_denom"
];
// expiration_time is represented as an RFC 3339 formatted date.
// LimitOrders with expiration_time set are valid as long as blockTime <= expiration_time.
// JIT orders also use expiration_time to handle deletion, but represent a special case.
// All JIT orders have an expiration_time of 0001-01-01T00:00:00Z, and an exception is made to
// still treat these orders as live. Order deletion still functions the
// same, and the orders will be deleted at the end of the block.
// LimitOrders with expiration_time set are valid as long as blockTime <= expiration_time

// JIT orders also use expiration_time to handle deletion but represent a special case
// All JIT orders have a expiration_time of 0 and an exception is made to still treat these orders as live
// Order deletion still functions the same and the orders will be deleted at the end of the block
google.protobuf.Timestamp expiration_time = 6 [
(gogoproto.stdtime) = true,
(gogoproto.nullable) = true
Expand Down
3 changes: 2 additions & 1 deletion x/contractmanager/types/failure.pb.go

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

26 changes: 13 additions & 13 deletions x/contractmanager/types/genesis.pb.go

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

62 changes: 31 additions & 31 deletions x/contractmanager/types/query.pb.go

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

40 changes: 20 additions & 20 deletions x/contractmanager/types/tx.pb.go

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

Loading

0 comments on commit 4fe3e78

Please sign in to comment.