IV0Factory
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new IV0Factory(_origin
): IV0Factory
Parameters
Name | Type |
---|---|
_origin | Address |
Returns
Defined in
assembly/interfaces/IV0Factory.ts:14
Properties
_origin
• _origin: Address
Defined in
assembly/interfaces/IV0Factory.ts:12
Methods
allPairsLength
▸ allPairsLength(): u32
Returns the length of the allPairs array.
Returns
u32
- The number of pairs.
Defined in
assembly/interfaces/IV0Factory.ts:42
createPair
▸ createPair(_tokenA
, _tokenB
, amount
): Address
Creates a new pair for tokenA and tokenB.
Parameters
Name | Type | Description |
---|---|---|
_tokenA | Address | - |
_tokenB | Address | - |
amount | u64 | The amount of coins to transfer to the pair for storage fee. |
Returns
Address
- The address of the created pair.
Defined in
assembly/interfaces/IV0Factory.ts:31
feeTo
▸ feeTo(): Address
Returns the feeTo address.
Returns
Address
- The feeTo address.
Defined in
assembly/interfaces/IV0Factory.ts:54
getPair
▸ getPair(tokenA
, tokenB
): IV0Pair
Parameters
Name | Type |
---|---|
tokenA | Address |
tokenB | Address |
Returns
Defined in
assembly/interfaces/IV0Factory.ts:58
init
▸ init(_feeToSetter
): StaticArray
<u8
>
Parameters
Name | Type |
---|---|
_feeToSetter | Address |
Returns
StaticArray
<u8
>