@gala-chain/chaincode ∙ API
API > LaunchpadContract
Class: LaunchpadContract
Contents
- Extends
- Constructors
- new LaunchpadContract()
- Methods
- BuyExactToken()
- BuyWithNative()
- CalculatePreMintTokens()
- CallMemeTokenIn()
- CallMemeTokenOut()
- CallNativeTokenIn()
- CallNativeTokenOut()
- ConfigurePlatformFeeAddress()
- CreateSale()
- DryRun()
- FetchPlatformAddressConfig()
- 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:53
Methods
BuyExactToken()
BuyExactToken(
ctx
,dto
):Promise
\<TradeResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:78
BuyWithNative()
BuyWithNative(
ctx
,dto
):Promise
\<TradeResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:94
CalculatePreMintTokens()
CalculatePreMintTokens(
ctx
,dto
):Promise
\<string
>
Parameters
▪ ctx: GalaChainContext
▪ dto: PreMintCalculationDto
Source
chaincode/src/contracts/LaunchpadContract.ts:183
CallMemeTokenIn()
CallMemeTokenIn(
ctx
,dto
):Promise
\<TradeCalculationResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:171
CallMemeTokenOut()
CallMemeTokenOut(
ctx
,dto
):Promise
\<TradeCalculationResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:147
CallNativeTokenIn()
CallNativeTokenIn(
ctx
,dto
):Promise
\<TradeCalculationResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:135
CallNativeTokenOut()
CallNativeTokenOut(
ctx
,dto
):Promise
\<TradeCalculationResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:159
ConfigurePlatformFeeAddress()
ConfigurePlatformFeeAddress(
ctx
,dto
):Promise
\<PlatformFeeConfig
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ConfigurePlatformFeeAddressDto
Source
chaincode/src/contracts/LaunchpadContract.ts:111
CreateSale()
CreateSale(
ctx
,dto
):Promise
\<CreateSaleResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: CreateTokenSaleDTO
Source
chaincode/src/contracts/LaunchpadContract.ts:61
DryRun()
DryRun(
ctx
,dto
):Promise
\<DryRunResultDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: DryRunDto
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:143
FetchPlatformAddressConfig()
FetchPlatformAddressConfig(
ctx
,dto
):Promise
\<PlatformFeeConfig
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ChainCallDTO
Source
chaincode/src/contracts/LaunchpadContract.ts:192
FetchSaleDetails()
FetchSaleDetails(
ctx
,dto
):Promise
\<LaunchpadSale
>
Parameters
▪ ctx: GalaChainContext
▪ dto: FetchSaleDto
Source
chaincode/src/contracts/LaunchpadContract.ts:70
FinalizeTokenAllocation()
FinalizeTokenAllocation(
ctx
,dto
):Promise
\<LaunchpadFinalizeFeeAllocation
>
Parameters
▪ ctx: GalaChainContext
▪ dto: FinalizeTokenAllocationDto
Source
chaincode/src/contracts/LaunchpadContract.ts:123
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
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
SellExactToken()
SellExactToken(
ctx
,dto
):Promise
\<TradeResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: ExactTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:86
SellWithNative()
SellWithNative(
ctx
,dto
):Promise
\<TradeResDto
>
Parameters
▪ ctx: GalaChainContext
▪ dto: NativeTokenQuantityDto
Source
chaincode/src/contracts/LaunchpadContract.ts:102
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