@gala-chain/chaincode ∙ API
API > DexV3Contract
Class: DexV3Contract
Contents
- Extends
- Constructors
- new DexV3Contract()
- Methods
- AddLiquidity()
- CollectFees()
- CollectProtocolFees()
- ConfigurePlatformFeeAddress()
- CreatePool()
- DryRun()
- FetchPlatformAddressConfig()
- GetAddLiquidityEstimation()
- GetChaincodeVersion()
- GetContractAPI()
- GetContractVersion()
- GetLiquidity()
- GetObjectByKey()
- GetObjectHistory()
- GetPoolData()
- GetPositions()
- GetRemoveLiquidityEstimation()
- GetSlot0()
- GetUserPositions()
- QuoteExactAmount()
- RemoveLiquidity()
- SetProtocolFee()
- Swap()
- afterTransaction()
- aroundTransaction()
- beforeTransaction()
- createContext()
- getName()
- getVersion()
- unknownTransaction()
- _isContract()
Extends
Constructors
new DexV3Contract()
new DexV3Contract():
DexV3Contract
Overrides
Source
chaincode/src/contracts/DexV3Contract.ts:70
Methods
AddLiquidity()
AddLiquidity(
ctx
,dto
):Promise
\<AddLiquidityResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: AddLiquidityDTO
Source
chaincode/src/contracts/DexV3Contract.ts:86
CollectFees()
CollectFees(
ctx
,dto
):Promise
\<UserBalanceResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: CollectDto
Source
chaincode/src/contracts/DexV3Contract.ts:198
CollectProtocolFees()
CollectProtocolFees(
ctx
,dto
):Promise
\<CollectProtocolFeesResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: CollectProtocolFeesDto
Source
chaincode/src/contracts/DexV3Contract.ts:206
ConfigurePlatformFeeAddress()
ConfigurePlatformFeeAddress(
ctx
,dto
):Promise
\<PlatformFeeConfig
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ConfigurePlatformFeeAddressDto
Source
chaincode/src/contracts/DexV3Contract.ts:235
CreatePool()
CreatePool(
ctx
,dto
):Promise
\<Pool
>
Parameters
▪ ctx: GalaChainContext
▪ dto: CreatePoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:78
DryRun()
DryRun(
ctx
,dto
):Promise
\<DryRunResultDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: DryRunDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:143
FetchPlatformAddressConfig()
FetchPlatformAddressConfig(
ctx
):Promise
\<PlatformFeeConfig
>
Parameters
▪ ctx: GalaChainContext
Source
chaincode/src/contracts/DexV3Contract.ts:226
GetAddLiquidityEstimation()
GetAddLiquidityEstimation(
ctx
,dto
):Promise
\<GetAddLiquidityEstimationResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetAddLiquidityEstimationDto
Source
chaincode/src/contracts/DexV3Contract.ts:150
GetChaincodeVersion()
GetChaincodeVersion(
ctx
):Promise
\<string
>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract
.GetChaincodeVersion
Source
chaincode/src/contracts/GalaContract.ts:105
GetContractAPI()
GetContractAPI(
ctx
):Promise
\<ContractAPI
>
Parameters
▪ ctx: GalaChainContext
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:114
GetContractVersion()
GetContractVersion(
ctx
):Promise
\<string
>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract
.GetContractVersion
Source
chaincode/src/contracts/GalaContract.ts:94
GetLiquidity()
GetLiquidity(
ctx
,dto
):Promise
\<GetLiquidityResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:120
GetObjectByKey()
GetObjectByKey(
ctx
,dto
):Promise
\<Record
\<string
,unknown
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetObjectDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:125
GetObjectHistory()
GetObjectHistory(
ctx
,dto
):Promise
\<Record
\<string
,unknown
>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetObjectHistoryDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:134
GetPoolData()
GetPoolData(
ctx
,dto
):Promise
\<Pool
>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:173
GetPositions()
GetPositions(
ctx
,dto
):Promise
\<GetPositionResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPositionDto
Source
chaincode/src/contracts/DexV3Contract.ts:129
GetRemoveLiquidityEstimation()
GetRemoveLiquidityEstimation(
ctx
,dto
):Promise
\<GetRemoveLiqEstimationResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: BurnDto
Source
chaincode/src/contracts/DexV3Contract.ts:187
GetSlot0()
GetSlot0(
ctx
,dto
):Promise
\<Slot0ResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:111
GetUserPositions()
GetUserPositions(
ctx
,dto
):Promise
\<GetUserPositionsResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetUserPositionsDto
Source
chaincode/src/contracts/DexV3Contract.ts:138
QuoteExactAmount()
QuoteExactAmount(
ctx
,dto
):Promise
\<QuoteExactAmountResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: QuoteExactAmountDto
Source
chaincode/src/contracts/DexV3Contract.ts:162
RemoveLiquidity()
RemoveLiquidity(
ctx
,dto
):Promise
\<UserBalanceResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: BurnDto
Source
chaincode/src/contracts/DexV3Contract.ts:102
SetProtocolFee()
SetProtocolFee(
ctx
,dto
):Promise
\<SetProtocolFeeResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: SetProtocolFeeDto
Source
chaincode/src/contracts/DexV3Contract.ts:217
Swap()
Swap(
ctx
,dto
):Promise
\<SwapResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: SwapDto
Source
chaincode/src/contracts/DexV3Contract.ts:94
afterTransaction()
afterTransaction(
ctx
,result
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
▪ result: unknown
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:68
aroundTransaction()
aroundTransaction(
ctx
,fn
,parameters
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
▪ fn: Function
▪ parameters: unknown
Inherited from
GalaContract
.aroundTransaction
Source
chaincode/src/contracts/GalaContract.ts:63
beforeTransaction()
beforeTransaction(
ctx
):Promise
\<void
>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract
.beforeTransaction
Source
chaincode/src/contracts/GalaContract.ts:58
createContext()
createContext():
GalaChainContext
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:54
getName()
getName():
string
Inherited from
Source
node_modules/fabric-contract-api/types/index.d.ts:33
getVersion()
getVersion():
string
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:50
unknownTransaction()
unknownTransaction(
ctx
):Promise
\<void
>
Parameters
▪ ctx: Context
Inherited from
GalaContract
.unknownTransaction
Source
node_modules/fabric-contract-api/types/index.d.ts:30
_isContract()
static
_isContract():boolean
Inherited from
Source
node_modules/fabric-contract-api/types/index.d.ts:24