Skip to main content

index/interfaces/LaunchpadSigner.md

A gala-core-sdk signer with the launchpad bundler typed-data capability.

Extends​

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​

ParameterType
methodNamestring
dtoT

Returns​

Promise<SignedDto<T>>

Example​

const signed = await signer.signObject('RequestTrade', { token0: 'GALA', token1: 'GUSDC' });

Inherited from​

GalaChainSigner.signObject


signTypedData()​

signTypedData(method, dto): Promise<SignedTypedDataBody>

Sign a launchpad DTO using the method name as the EIP-712 primary type.

Parameters​

ParameterType
methodstring
dtoRecord<string, unknown>

Returns​

Promise<SignedTypedDataBody>

Example​

const body = await signer.signTypedData('BuyWithNative', { amount: '1' });
console.log(body.signature);

Inherited from​

TypedDataSigner.signTypedData