mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Remove with_mint for FREs.
This commit is contained in:
parent
3275d5aa34
commit
719c199ea3
@ -263,7 +263,7 @@ It is implemented in `DatatokenBase`, inherited by `Datatoken2`, so it can be ca
|
|||||||
|
|
||||||
### Create Fixed Rate Exchange
|
### Create Fixed Rate Exchange
|
||||||
|
|
||||||
* **create\_exchange**(`self`, `rate: Union[int, str]`, `base_token_addr: str`, `tx_dict: dict`, `owner_addr: Optional[str] = None`, `publish_market_fee_collector: Optional[str] = None, publish_market_fee: Union[int, str] = 0`, `with_mint: bool = False`, `allowed_swapper: str = ZERO_ADDRESS`, `full_info: bool = False`) -> `Union[OneExchange, tuple]`
|
* **create\_exchange**(`self`, `rate: Union[int, str]`, `base_token_addr: str`, `tx_dict: dict`, `owner_addr: Optional[str] = None`, `publish_market_fee_collector: Optional[str] = None, publish_market_fee: Union[int, str] = 0`, `allowed_swapper: str = ZERO_ADDRESS`, `full_info: bool = False`) -> `Union[OneExchange, tuple]`
|
||||||
|
|
||||||
It is implemented in `DatatokenBase`, inherited by `Datatoken2`, so it can be called within both instances.
|
It is implemented in `DatatokenBase`, inherited by `Datatoken2`, so it can be called within both instances.
|
||||||
|
|
||||||
@ -282,7 +282,6 @@ This wraps the smart contract method `Datatoken.createFixedRate()` with a simple
|
|||||||
* `owner_addr` - owner of the datatoken
|
* `owner_addr` - owner of the datatoken
|
||||||
* `publish_market_fee_collector` - fee going to publish market address
|
* `publish_market_fee_collector` - fee going to publish market address
|
||||||
* `publish_market_fee` - in wei or string, e.g. `int(1e15)` or `"0.001 ether"`
|
* `publish_market_fee` - in wei or string, e.g. `int(1e15)` or `"0.001 ether"`
|
||||||
* `with_mint` - should the exchange mint datatokens as needed (`True`), or do they need to be supplied/allowed by participants like base token (`False`)?
|
|
||||||
* `allowed_swapper` - if `ZERO_ADDRESS`, anyone can swap
|
* `allowed_swapper` - if `ZERO_ADDRESS`, anyone can swap
|
||||||
* `full_info` - return just `OneExchange`, or `(OneExchange, <other info>)`
|
* `full_info` - return just `OneExchange`, or `(OneExchange, <other info>)`
|
||||||
|
|
||||||
@ -310,7 +309,6 @@ This wraps the smart contract method `Datatoken.createFixedRate()` with a simple
|
|||||||
owner_addr: Optional[str] = None,
|
owner_addr: Optional[str] = None,
|
||||||
publish_market_fee_collector: Optional[str] = None,
|
publish_market_fee_collector: Optional[str] = None,
|
||||||
publish_market_fee: Union[int, str] = 0,
|
publish_market_fee: Union[int, str] = 0,
|
||||||
with_mint: bool = False,
|
|
||||||
allowed_swapper: str = ZERO_ADDRESS,
|
allowed_swapper: str = ZERO_ADDRESS,
|
||||||
full_info: bool = False,
|
full_info: bool = False,
|
||||||
) -> Union[OneExchange, tuple]:
|
) -> Union[OneExchange, tuple]:
|
||||||
@ -341,7 +339,7 @@ This wraps the smart contract method `Datatoken.createFixedRate()` with a simple
|
|||||||
self.decimals(),
|
self.decimals(),
|
||||||
rate,
|
rate,
|
||||||
publish_market_fee,
|
publish_market_fee,
|
||||||
with_mint,
|
1,
|
||||||
],
|
],
|
||||||
tx_dict,
|
tx_dict,
|
||||||
)
|
)
|
||||||
|
@ -49,7 +49,6 @@ exchange_args = ExchangeArguments(
|
|||||||
owner_addr=publisher_wallet.address,
|
owner_addr=publisher_wallet.address,
|
||||||
publish_market_fee_collector=ZERO_ADDRESS,
|
publish_market_fee_collector=ZERO_ADDRESS,
|
||||||
publish_market_fee=0,
|
publish_market_fee=0,
|
||||||
with_mint=True,
|
|
||||||
allowed_swapper=ZERO_ADDRESS,
|
allowed_swapper=ZERO_ADDRESS,
|
||||||
full_info=False,
|
full_info=False,
|
||||||
dt_decimals=datatoken.decimals()
|
dt_decimals=datatoken.decimals()
|
||||||
|
Loading…
Reference in New Issue
Block a user