Skip to content

Commit

Permalink
feature: Transaction time-locking fields
Browse files Browse the repository at this point in the history
- Transaction.invalidBefore
- Transaction.invalidHereafter
- associated input fields
  • Loading branch information
rhyslbw committed Dec 3, 2020
1 parent 8df89d3 commit ad9b4e5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@
- fee
- hash
- includedAt
- invalidBefore
- invalidHereafter
- size
- totalOutput
filter: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ SELECT
tx.hash,
tx.id,
block.time AS "includedAt",
tx.invalid_before AS "invalidBefore",
tx.invalid_hereafter AS "invalidHereafter",
tx.size,
CAST(COALESCE((SELECT SUM("value") FROM tx_out WHERE tx_id = tx.id), 0) AS bigint) AS "totalOutput"
FROM
Expand Down
10 changes: 10 additions & 0 deletions packages/api-cardano-db-hasura/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ type Transaction {
offset: Int
where: TransactionInput_bool_exp
): TransactionInput_aggregate!
invalidBefore: String
invalidHereAfter: String
metadata: [TransactionMetadata]
outputs (
limit: Int
Expand Down Expand Up @@ -656,6 +658,8 @@ input Transaction_order_by {
fee: order_by
hash: order_by
includedAt: order_by
invalidBefore: order_by_with_nulls
invalidHereAfter: order_by_with_nulls
size: order_by
totalOutput: order_by
withdrawals: order_by
Expand All @@ -672,6 +676,8 @@ input Transaction_bool_exp {
hash: Hash32Hex_comparison_exp
includedAt: Date_comparison_exp
inputs: TransactionInput_bool_exp
invalidBefore: text_comparison_exp
invalidHereAfter: text_comparison_exp
metadata: TransactionMetadata_bool_exp
outputs: TransactionOutput_bool_exp
size: BigInt_comparison_exp
Expand Down Expand Up @@ -702,6 +708,8 @@ type Transaction_avg_fields {
type Transaction_max_fields {
deposit: String
fee: String
invalidBefore: String
invalidHereAfter: String
size: String
totalOutput: String
withdrawals: Withdrawal_max_fields
Expand All @@ -710,6 +718,8 @@ type Transaction_max_fields {
type Transaction_min_fields {
deposit: String
fee: String
invalidBefore: String
invalidHereAfter: String
size: String
totalOutput: String
withdrawals: Withdrawal_min_fields
Expand Down

0 comments on commit ad9b4e5

Please sign in to comment.