@@ -41,7 +41,7 @@ At the root of your working directory, create `rfq-contracts.json` and add the c
4141
4242### Initializing the Client
4343``` python
44- # Seed phrase (mnemonic) of the wallet
44+ # Seed phrase (mnemonic) of the wallet (currently supports only ED25519)
4545TEST_ACCT_PHRASE = " wallet seed phrase"
4646# RPC URL of the chain
4747TEST_NETWORK = " https://fullnode.mainnet.sui.io:443"
@@ -60,7 +60,10 @@ rfq_client = RFQClient(wallet=wallet, url=TEST_NETWORK, rfq_contracts=rfq_contra
6060
6161```
6262
63- ### Creating and Signing a Quote
63+ ### Creating and Signing a Quote
64+
65+ #### Supported wallets (No hashing required):
66+ - ` ED25519 `
6467
6568#### Parameters:
6669- ` vault ` (str): On-chain vault object ID.
@@ -75,7 +78,7 @@ rfq_client = RFQClient(wallet=wallet, url=TEST_NETWORK, rfq_contracts=rfq_contra
7578
7679``` python
7780
78- # To only create the quote use
81+ # To only create the quote, use
7982quote = rfq_client.create_quote(
8083 vault = " 0x67399451f127894ee0f9ff7182cbe914008a0197a97b54e86226d1c33635c368" ,
8184 quote_id = " quote-123" ,
@@ -84,10 +87,13 @@ quote = rfq_client.create_quote(
8487 token_out_amount = 200000000 ,
8588 token_in_type = " 0x2::sui::SUI" ,
8689 token_out_type = " 0x2::example::TOKEN" ,
87- created_at_utc_ms = 1699765400 ,
90+ expired_at_utc_ms = 1699765400 ,
8891 created_at_utc_ms = 1698765400 ,
8992)
9093
94+ # To sign the created quote , use
95+ quote.sign(rfq_client.wallet)
96+
9197# To create quote and sign it at the same time, use
9298quote, signature = rfq_client.create_and_sign_quote(
9399 vault = " 0x67399451f127894ee0f9ff7182cbe914008a0197a97b54e86226d1c33635c368" ,
@@ -97,12 +103,16 @@ quote, signature = rfq_client.create_and_sign_quote(
97103 token_out_amount = 200000000 ,
98104 token_in_type = " 0x2::sui::SUI" ,
99105 token_out_type = " 0x2::example::TOKEN" ,
100- created_at_utc_ms = 1699765400 ,
106+ expired_at_utc_ms = 1699765400 ,
101107 created_at_utc_ms = 1698765400 ,
102108)
103109```
104110
105111### Depositing Tokens into a Vault
112+
113+ #### Supported wallets (blake2b hashing required, since its a sui transaction):
114+ - ` ED25519 `
115+
106116``` python
107117rfq_client.deposit_in_vault(
108118 vault = " 0x40923d059eae6ccbbb91ac9442b80b9bec8262122a5756d96021e34cf33f0b1d" ,
@@ -112,6 +122,10 @@ rfq_client.deposit_in_vault(
112122```
113123
114124### Withdrawing Tokens from a Vault
125+
126+ #### Supported wallets (blake2b hashing required, since its a sui transaction):
127+ - ` ED25519 `
128+
115129``` python
116130rfq_client.withdraw_from_vault(
117131 vault = " 0x40923d059eae6ccbbb91ac9442b80b9bec8262122a5756d96021e34cf33f0b1d" ,
@@ -121,6 +135,10 @@ rfq_client.withdraw_from_vault(
121135```
122136
123137### Creating a new Vault
138+
139+ #### Supported wallets (blake2b hashing required, since its a sui transaction):
140+ - ` ED25519 `
141+
124142``` python
125143rfq_client.create_vault(
126144 manager = " 0x40923d059eae6ccbbb91ac9442b80b9bec8262122a5756d96021e34cf33f0b1d" ,
@@ -137,7 +155,7 @@ Initializes the RFQClient.
137155- ` url ` (str): RPC URL of the chain node.
138156- ` rfq_contracts ` (RFQContracts): Instance of RFQContracts.
139157
140- #### ` create_quote(...) -> Quote ` </br >` sign_quote(quote: Quote) -> str ` </ br > ` create_and_sign_quote(...) -> Tuple[Quote, str] `
158+ #### ` create_quote(...) -> Quote ` </br > ` create_and_sign_quote(...) -> Tuple[Quote, str] `
141159
142160
143161Creates or/and signs a quote.
0 commit comments