OffchainRewardResponse
@torque-labs/sdk / OffchainRewardResponse
Type Alias: OffchainRewardResponse
type OffchainRewardResponse = {
createdAt: Date;
description: string | null;
distributors: | {
closeTxSignature: ... | ...;
conversions: ... | ...;
crankerStatus: "IDLE" | "RUNNING" | "STOPPED";
crankGuard: {
activation: ... & ...;
availability: ... | ...;
distributionFunctionInput: ... | ... | ...;
recipient: ... | ... | ... | ...;
};
currentBlockHash: ... | ...;
deployTxSignature: ... | ...;
distributionFunction: {
createdAt: Date;
curveDepth: ... | ...;
curveWidth: ... | ...;
id: string;
slope: ... | ...;
tiers: ... | ...;
trend: ... | ...;
type: ... | ... | ... | ...;
updatedAt: Date;
yIntercept: ... | ...;
};
emissionType: "SOL" | "TOKENS" | "NFT" | "POINTS";
index: number;
pubkey: string;
serializedDeployTx: ... | ...;
status: "DRAFT" | "ACTIVE" | "CLOSED";
tokenAddress: ... | ...;
tokenDecimals: number;
totalFundAmount: | number
| string
| {
d: ...[];
e: number;
s: number;
};
type: "CONVERSION" | "ASYMMETRIC";
} & {
createdAt: Date;
id: string;
updatedAt: Date;
}[]
| null;
id: string;
image: string;
name: string;
project: | {
createdAt: Date;
description: string | null;
discord: string | null;
id: string;
image: string | null;
name: string;
offchainAllocationEndpoint: string | null;
telegram: string | null;
twitter: string | null;
updatedAt: Date;
website: string | null;
}
| null;
symbol: string | null;
type: "POINT" | "BADGE";
updatedAt: Date;
userBadges: | {
badge: {
createdAt: Date;
description: string | null;
id: string;
image: string;
name: string;
symbol: string | null;
type: "POINT" | "BADGE";
updatedAt: Date;
};
createdAt: Date;
id: string;
updatedAt: Date;
}[]
| null;
};Defined in: sdk/src/types/schemaTypes.ts:919
Properties
createdAt?
optional createdAt: Date;Defined in: sdk/src/types/schemaTypes.ts:926
description?
optional description: string | null;Defined in: sdk/src/types/schemaTypes.ts:924
distributors?
optional distributors:
| {
closeTxSignature: ... | ...;
conversions: ... | ...;
crankerStatus: "IDLE" | "RUNNING" | "STOPPED";
crankGuard: {
activation: ... & ...;
availability: ... | ...;
distributionFunctionInput: ... | ... | ...;
recipient: ... | ... | ... | ...;
};
currentBlockHash: ... | ...;
deployTxSignature: ... | ...;
distributionFunction: {
createdAt: Date;
curveDepth: ... | ...;
curveWidth: ... | ...;
id: string;
slope: ... | ...;
tiers: ... | ...;
trend: ... | ...;
type: ... | ... | ... | ...;
updatedAt: Date;
yIntercept: ... | ...;
};
emissionType: "SOL" | "TOKENS" | "NFT" | "POINTS";
index: number;
pubkey: string;
serializedDeployTx: ... | ...;
status: "DRAFT" | "ACTIVE" | "CLOSED";
tokenAddress: ... | ...;
tokenDecimals: number;
totalFundAmount: | number
| string
| {
d: ...[];
e: number;
s: number;
};
type: "CONVERSION" | "ASYMMETRIC";
} & {
createdAt: Date;
id: string;
updatedAt: Date;
}[]
| null;Defined in: sdk/src/types/schemaTypes.ts:943
id
id: string;Defined in: sdk/src/types/schemaTypes.ts:920
image
image: string;Defined in: sdk/src/types/schemaTypes.ts:923
name
name: string;Defined in: sdk/src/types/schemaTypes.ts:922
project?
optional project:
| {
createdAt: Date;
description: string | null;
discord: string | null;
id: string;
image: string | null;
name: string;
offchainAllocationEndpoint: string | null;
telegram: string | null;
twitter: string | null;
updatedAt: Date;
website: string | null;
}
| null;Defined in: sdk/src/types/schemaTypes.ts:928
symbol?
optional symbol: string | null;Defined in: sdk/src/types/schemaTypes.ts:925
type
type: "POINT" | "BADGE";Defined in: sdk/src/types/schemaTypes.ts:921
updatedAt
updatedAt: Date;Defined in: sdk/src/types/schemaTypes.ts:927
userBadges?
optional userBadges:
| {
badge: {
createdAt: Date;
description: string | null;
id: string;
image: string;
name: string;
symbol: string | null;
type: "POINT" | "BADGE";
updatedAt: Date;
};
createdAt: Date;
id: string;
updatedAt: Date;
}[]
| null;Defined in: sdk/src/types/schemaTypes.ts:1097
Last updated
