Skip to main content

Interface: LaunchpadSigner

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / LaunchpadSigner

Interface: LaunchpadSigner

Defined in: packages/launchpad-sdk/dist/signing/types.d.ts:26

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

Extends​

Methods​

signObject()​

signObject<T>(methodName, dto): Promise<SignedDto<T>>

Defined in: packages/gala-core-sdk/dist/index.d.ts:1293

Signs a DTO for a named GalaChain contract method.

Type Parameters​

T​

T extends Record<string, unknown>

Parameters​

methodName​

string

dto​

T

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>

Defined in: packages/launchpad-sdk/dist/signing/types.d.ts:23

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

Parameters​

method​

string

dto​

Record<string, unknown>

Returns​

Promise<SignedTypedDataBody>

Example​

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

Inherited from​

TypedDataSigner.signTypedData