Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Oct 15, 2024
1 parent fa2a53a commit e72cf68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 36 deletions.
35 changes: 1 addition & 34 deletions crates/sui-graphql-client/schema/graphql_rpc.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -163,27 +163,11 @@ type AddressOwner {
The possible relationship types for a transaction block: sent, or received.
"""
enum AddressTransactionBlockRelationship {
"""
Transactions this address has sent. NOTE: this input filter has been deprecated in favor of
`SENT` which behaves identically but is named more clearly. Both filters restrict
transactions by their sender, only, not signers in general.
This filter will be removed with 1.36.0 (2024-10-14).
"""
SIGN
"""
Transactions this address has sent.
"""
SENT
"""
Transactions that sent objects to this address. NOTE: this input filter has been deprecated
in favor of `AFFECTED`, which offers an easier to understand behavior.
This filter will be removed with 1.36.0 (2024-10-14), or at least one release after
`AFFECTED` is introduced, whichever is later.
"""
RECV
"""
Transactions that this address was involved in, either as the sender, sponsor, or as the
owner of some object that was created, modified or transfered.
"""
Expand Down Expand Up @@ -4226,7 +4210,7 @@ type TransactionBlock {
"""
expiration: Epoch
"""
Serialized form of this transaction's `SenderSignedData`, BCS serialized and Base64 encoded.
Serialized form of this transaction's `TransactionData`, BCS serialized and Base64 encoded.
"""
bcs: Base64
}
Expand Down Expand Up @@ -4354,27 +4338,10 @@ input TransactionBlockFilter {
"""
affectedAddress: SuiAddress
"""
Limit to transactions that were sent by the given address. NOTE: this input filter has been
deprecated in favor of `sentAddress` which behaves identically but is named more clearly.
Both filters restrict transactions by their sender, only, not signers in general.
This filter will be removed with 1.36.0 (2024-10-14).
"""
signAddress: SuiAddress
"""
Limit to transactions that were sent by the given address.
"""
sentAddress: SuiAddress
"""
Limit to transactions that sent an object to the given address. NOTE: this input filter has
been deprecated in favor of `affectedAddress` which offers an easier to understand
behavior.
This filter will be removed with 1.36.0 (2024-10-14), or at least one release after
`affectedAddress` is introduced, whichever is later.
"""
recvAddress: SuiAddress
"""
Limit to transactions that accepted the given object as an input. NOTE: this input filter
has been deprecated in favor of `affectedObject` which offers an easier to under behavior.
Expand Down
6 changes: 4 additions & 2 deletions crates/sui-graphql-client/src/query_types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ pub enum TransactionBlockKindInput {
pub struct TransactionsFilter<'a> {
pub function: Option<String>,
pub kind: Option<TransactionBlockKindInput>,
pub after_checkpoint: Option<u64>,
pub at_checkpoint: Option<u64>,
pub before_checkpoint: Option<u64>,
pub changed_object: Option<Address>,
pub affected_address: Option<Address>,
pub sent_address: Option<Address>,
pub input_object: Option<Address>,
pub recv_address: Option<Address>,
pub changed_object: Option<Address>,
pub transaction_ids: Option<Vec<&'a str>>,
}

Expand Down

0 comments on commit e72cf68

Please sign in to comment.