settrdwin.a - set trading window ​
Allows a token manager to update the trading_window_start and trading_window_end for an existing token factory.
WARNING
This action is disabled.
Refer to exchange a uniq guide or swap uniqs using purchase options pages for alternative migration solutions to a new factory
Technical Behavior ​
Required authorization is a token factory manager
Tradeability can only be update from this:
- Uniq is never Tradable (
trading_window_start=null,trading_window_end=1970-01-01T00:00:00)
to one of these:
- Uniq is always Tradable (
trading_window_start=null,trading_window_end=null) - There is a start date (
trading_window_start=X,trading_window_end=null) - There is an end date (
trading_window_start=null,trading_window_end=Y) - There is a full trading window (
trading_window_start=X,trading_window_end=Y)
Parameter validation
token_factory_idis required and a token factory for the provided ID must exist.- If provided,
trading_window_endshould be greater thantrading_window_start.
Action Parameters ​
| Property Name | C++ Type | Javascript Type | Example |
|---|---|---|---|
| token_factory_id | uint64_t | number | 123 |
| trading_window_start | optional<time_point_sec> | string | "2023-01-01T00:00:00" |
| trading_window_end | optional<time_point_sec> | string | "2023-01-01T12:00:00" |
CLI - cleos ​
bash
cleos push action eosio.nft.ft settrdwin.a '[ 123, "2023-01-01T00:00:00", "2023-01-01T12:00:00" ]' -p manager.accJavaScript - eosjs ​
js
await api.transact({
actions: [
{
account: 'eosio.nft.ft',
name: 'settrdwin.a',
authorization: [{ actor: 'manager.acc', permission: 'active' }],
data: {
token_factory_id: 123,
trading_window_start: '2023-01-01T00:00:00',
trading_window_end: '2023-01-01T12:00:00',
},
},
],
});