@gala-chain/chaincode ∙ API
API > LaunchpadContract
Class: LaunchpadContract
Contents
- Extends
- Constructors
- new LaunchpadContract()
- Methods
- BatchEvaluate()
- BatchSubmit()
- BuyExactToken()
- BuyWithNative()
- CalculatePreMintTokens()
- CallMemeTokenIn()
- CallMemeTokenOut()
- CallNativeTokenIn()
- CallNativeTokenOut()
- ConfigureLaunchpadFeeAddress()
- CreateSale()
- DryRun()
- FetchLaunchpadFeeConfig()
- FetchSaleDetails()
- FinalizeTokenAllocation()
- GetChaincodeVersion()
- GetContractAPI()
- GetContractVersion()
- GetObjectByKey()
- GetObjectHistory()
- SellExactToken()
- SellWithNative()
- afterTransaction()
- aroundTransaction()
- beforeTransaction()
- createContext()
- getName()
- getVersion()
- unknownTransaction()
- _isContract()
Extends
Constructors
new LaunchpadContract()
new LaunchpadContract():
LaunchpadContract
Overrides
Source
chaincode/src/contracts/LaunchpadContract.ts:61
Methods
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
BuyExactToken()
BuyExactToken(
ctx,dto):Promise\<TradeResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:88
BuyWithNative()
BuyWithNative(
ctx,dto):Promise\<TradeResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:106
CalculatePreMintTokens()
CalculatePreMintTokens(
ctx,dto):Promise\<string>
Parameters
▪ ctx: GalaChainContext
▪ dto: PreMintCalculationDto
Source
chaincode/src/contracts/LaunchpadContract.ts:196
CallMemeTokenIn()
CallMemeTokenIn(
ctx,dto):Promise\<TradeCalculationResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:184
CallMemeTokenOut()
CallMemeTokenOut(
ctx,dto):Promise\<TradeCalculationResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:160
CallNativeTokenIn()
CallNativeTokenIn(
ctx,dto):Promise\<TradeCalculationResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:148
CallNativeTokenOut()
CallNativeTokenOut(
ctx,dto):Promise\<TradeCalculationResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:172
ConfigureLaunchpadFeeAddress()
ConfigureLaunchpadFeeAddress(
ctx,dto):Promise\<LaunchpadFeeConfig>
Parameters
▪ ctx: GalaChainContext
▪ dto: ConfigureLaunchpadFeeAddressDto
Source
chaincode/src/contracts/LaunchpadContract.ts:124
CreateSale()
CreateSale(
ctx,dto):Promise\<CreateSaleResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: CreateTokenSaleDTO
Source
chaincode/src/contracts/LaunchpadContract.ts:70
DryRun()
DryRun(
ctx,dto):Promise\<DryRunResultDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: DryRunDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:154
FetchLaunchpadFeeConfig()
FetchLaunchpadFeeConfig(
ctx,dto):Promise\<LaunchpadFeeConfig>
Parameters
▪ ctx: GalaChainContext
▪ dto: ChainCallDTO
Source
chaincode/src/contracts/LaunchpadContract.ts:205
FetchSaleDetails()
FetchSaleDetails(
ctx,dto):Promise\<LaunchpadSale>
Parameters
▪ ctx: GalaChainContext
▪ dto: FetchSaleDto
Source
chaincode/src/contracts/LaunchpadContract.ts:79
FinalizeTokenAllocation()
FinalizeTokenAllocation(
ctx,dto):Promise\<LaunchpadFinalizeFeeAllocation>
Parameters
▪ ctx: GalaChainContext
▪ dto: FinalizeTokenAllocationDto
Source
chaincode/src/contracts/LaunchpadContract.ts:136
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
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
SellExactToken()
SellExactToken(
ctx,dto):Promise\<TradeResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:97
SellWithNative()
SellWithNative(
ctx,dto):Promise\<TradeResDto>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:115
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