-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathsuperTokenArgs.ts
More file actions
38 lines (34 loc) · 993 Bytes
/
superTokenArgs.ts
File metadata and controls
38 lines (34 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import {type BaseQuery, type BaseSuperTokenMutation} from '../../../argTypes';
/**
* Downgrade `amount` SuperToken's.
*/
export interface SuperTokenDowngradeMutation extends BaseSuperTokenMutation {
/** The amount to be downgraded. */
amountWei: string;
}
/**
* Upgrade `amount` SuperToken's.
*/
export interface SuperTokenUpgradeMutation extends BaseSuperTokenMutation {
/** The amount to be upgraded. */
amountWei: string;
}
/**
* How much does the underlying token have allowance for super token upgrade.
*/
export interface SuperTokenUpgradeAllowanceQuery extends BaseQuery<string> {
/**
* Account whose allowance to check.
*/
accountAddress: string;
superTokenAddress: string;
}
/**
* Transfer `receiver` `amount` tokens.
*/
export interface SuperTokenTransferMutation extends BaseSuperTokenMutation {
/** The receiver of the transfer. */
receiverAddress: string;
/** The amount to be transferred. */
amountWei: string;
}