index/interfaces/LaunchpadSigner.md
A gala-core-sdk signer with the launchpad bundler typed-data capability.
Extends
GalaChainSignerTypedDataSigner
gala chain signer typed data
Methods
signObject()
signObject<
T>(methodName,dto):Promise<SignedDto<T>>
Signs a DTO for a named GalaChain contract method.
Type Parameters
| Type Parameter |
|---|
T extends Record<string, unknown> |
Parameters
| Parameter | Type |
|---|---|
methodName | string |
dto | T |
Returns
Promise<SignedDto<T>>
Example
const signed = await signer.signObject('RequestTrade', { token0: 'GALA', token1: 'GUSDC' });
Inherited from
GalaChainSigner.signObject
sign object method name signed dto gala chain signer
signTypedData()
signTypedData(
method,dto):Promise<SignedTypedDataBody>
Sign a launchpad DTO using the method name as the EIP-712 primary type.
Parameters
| Parameter | Type |
|---|---|
method | string |
dto | Record<string, unknown> |
Returns
Promise<SignedTypedDataBody>
Example
const body = await signer.signTypedData('BuyWithNative', { amount: '1' });
console.log(body.signature);
Inherited from
sign typed data signed body signer