@gala-chain/chaincode ∙ API
API > DexV3Contract
Class: DexV3Contract
Contents
- Extends
- Constructors
- new DexV3Contract()
- Methods
- AddLiquidity()
- BatchEvaluate()
- BatchSubmit()
- CollectPositionFees()
- CollectTradingFees()
- ConfigureDexFeeAddress()
- ConfigureDexNftBatchLimit()
- CreatePool()
- DryRun()
- FetchDexNftBatchLimit()
- GetAddLiquidityEstimation()
- GetChaincodeVersion()
- GetContractAPI()
- GetContractVersion()
- GetDexFeeConfigration()
- GetLiquidity()
- GetObjectByKey()
- GetObjectHistory()
- GetPoolData()
- GetPositionWithNftId()
- 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:86
Methods
AddLiquidity()
AddLiquidity(
ctx,dto):Promise\<AddLiquidityResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: AddLiquidityDTO
Source
chaincode/src/contracts/DexV3Contract.ts:104
BatchEvaluate()
BatchEvaluate(
ctx,batchDto):Promise\<GalaChainResponse\<unknown>[]>
Parameters
▪ ctx: GalaChainContext
▪ batchDto: BatchDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:253
BatchSubmit()
BatchSubmit(
ctx,batchDto):Promise\<GalaChainResponse\<unknown>[]>
Parameters
▪ ctx: GalaChainContext
▪ batchDto: BatchDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:193
CollectPositionFees()
CollectPositionFees(
ctx,dto):Promise\<UserBalanceResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: CollectDto
Source
chaincode/src/contracts/DexV3Contract.ts:231
CollectTradingFees()
CollectTradingFees(
ctx,dto):Promise\<CollectTradingFeesResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: CollectTradingFeesDto
Source
chaincode/src/contracts/DexV3Contract.ts:240
ConfigureDexFeeAddress()
ConfigureDexFeeAddress(
ctx,dto):Promise\<DexFeeConfig>
Parameters
▪ ctx: GalaChainContext
▪ dto: ConfigureDexFeeAddressDto
Source
chaincode/src/contracts/DexV3Contract.ts:270
ConfigureDexNftBatchLimit()
ConfigureDexNftBatchLimit(
ctx,dto):Promise\<DexNftBatchLimit>
Parameters
▪ ctx: GalaChainContext
▪ dto: DexNftBatchLimitDto
Source
chaincode/src/contracts/DexV3Contract.ts:282
CreatePool()
CreatePool(
ctx,dto):Promise\<Pool>
Parameters
▪ ctx: GalaChainContext
▪ dto: CreatePoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:95
DryRun()
DryRun(
ctx,dto):Promise\<DryRunResultDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: DryRunDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:154
FetchDexNftBatchLimit()
FetchDexNftBatchLimit(
ctx,dto):Promise\<DexNftBatchLimit>
Parameters
▪ ctx: GalaChainContext
▪ dto: ChainCallDTO
Source
chaincode/src/contracts/DexV3Contract.ts:294
GetAddLiquidityEstimation()
GetAddLiquidityEstimation(
ctx,dto):Promise\<GetAddLiquidityEstimationResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetAddLiquidityEstimationDto
Source
chaincode/src/contracts/DexV3Contract.ts:182
GetChaincodeVersion()
GetChaincodeVersion(
ctx):Promise\<string>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract.GetChaincodeVersion
Source
chaincode/src/contracts/GalaContract.ts:116
GetContractAPI()
GetContractAPI(
ctx):Promise\<ContractAPI>
Parameters
▪ ctx: GalaChainContext
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:125
GetContractVersion()
GetContractVersion(
ctx):Promise\<string>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract.GetContractVersion
Source
chaincode/src/contracts/GalaContract.ts:105
GetDexFeeConfigration()
GetDexFeeConfigration(
ctx,dto):Promise\<DexFeeConfig>
Parameters
▪ ctx: GalaChainContext
▪ dto: ChainCallDTO
Source
chaincode/src/contracts/DexV3Contract.ts:261
GetLiquidity()
GetLiquidity(
ctx,dto):Promise\<GetLiquidityResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:140
GetObjectByKey()
GetObjectByKey(
ctx,dto):Promise\<Record\<string,unknown>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetObjectDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:136
GetObjectHistory()
GetObjectHistory(
ctx,dto):Promise\<Record\<string,unknown>>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetObjectHistoryDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:145
GetPoolData()
GetPoolData(
ctx,dto):Promise\<Pool>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:205
GetPositionWithNftId()
GetPositionWithNftId(
ctx,dto):Promise\<GetPositionResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPositionWithNftIdDto
Source
chaincode/src/contracts/DexV3Contract.ts:158
GetPositions()
GetPositions(
ctx,dto):Promise\<GetPositionResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPositionDto
Source
chaincode/src/contracts/DexV3Contract.ts:149
GetRemoveLiquidityEstimation()
GetRemoveLiquidityEstimation(
ctx,dto):Promise\<GetRemoveLiqEstimationResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: BurnEstimateDto
Source
chaincode/src/contracts/DexV3Contract.ts:219
GetSlot0()
GetSlot0(
ctx,dto):Promise\<Slot0ResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetPoolDto
Source
chaincode/src/contracts/DexV3Contract.ts:131
GetUserPositions()
GetUserPositions(
ctx,dto):Promise\<GetUserPositionsResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: GetUserPositionsDto
Source
chaincode/src/contracts/DexV3Contract.ts:170
QuoteExactAmount()
QuoteExactAmount(
ctx,dto):Promise\<QuoteExactAmountResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: QuoteExactAmountDto
Source
chaincode/src/contracts/DexV3Contract.ts:194
RemoveLiquidity()
RemoveLiquidity(
ctx,dto):Promise\<UserBalanceResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: BurnDto
Source
chaincode/src/contracts/DexV3Contract.ts:122
SetProtocolFee()
SetProtocolFee(
ctx,dto):Promise\<SetProtocolFeeResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: SetProtocolFeeDto
Source
chaincode/src/contracts/DexV3Contract.ts:252
Swap()
Swap(
ctx,dto):Promise\<SwapResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: SwapDto
Source
chaincode/src/contracts/DexV3Contract.ts:113
afterTransaction()
afterTransaction(
ctx,result):Promise\<void>
Parameters
▪ ctx: GalaChainContext
▪ result: unknown
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:79
aroundTransaction()
aroundTransaction(
ctx,fn,parameters):Promise\<void>
Parameters
▪ ctx: GalaChainContext
▪ fn: Function
▪ parameters: unknown
Inherited from
GalaContract.aroundTransaction
Source
chaincode/src/contracts/GalaContract.ts:74
beforeTransaction()
beforeTransaction(
ctx):Promise\<void>
Parameters
▪ ctx: GalaChainContext
Inherited from
GalaContract.beforeTransaction
Source
chaincode/src/contracts/GalaContract.ts:69
createContext()
createContext():
GalaChainContext
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:65
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:61
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