Skip to content

Commit

Permalink
fix: add query methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrizsabin committed Sep 23, 2024
1 parent 9c8025d commit e7a8815
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 9 deletions.
Empty file.
Empty file.
Empty file.
19 changes: 10 additions & 9 deletions contracts/sui/intent_v1/sources/main.move
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,22 @@ module intents_v1::main {
self.connection.get_receipt(nid, conn_sn)
}


entry public fun get_deposit_id(self:&Storage):u128 {
self.deposit_id
}


entry public fun get_order(self:&Storage,id:u128):SwapOrder{
*self.orders.borrow<u128,SwapOrder>(id)
}



public fun get_version(self:&Storage):u64{
self.version

}

public fun get_deposit_id(self:&Storage):u128 {
self.deposit_id
}


public fun get_funds(self:&Storage):&Bag {
&self.funds
Expand All @@ -441,10 +445,7 @@ module intents_v1::main {
self.connection.get_relayer()
}

public fun get_order(self:&Storage,id:u128):SwapOrder{
*self.orders.borrow<u128,SwapOrder>(id)
}




#[test_only]
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit e7a8815

Please sign in to comment.