@effectai/sdk
Version:
Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))
483 lines • 13.4 kB
JavaScript
// generated by @greymass/abi2core
import { __decorate } from "tslib";
import { Bytes, Checksum160, ExtendedAsset, Float32, Name, Struct, TimePointSec, TypeAlias, UInt32, UInt64, UInt8, Variant, } from "@wharfkit/antelope";
let BVectorUint64E = class BVectorUint64E extends UInt64 {
};
BVectorUint64E = __decorate([
TypeAlias("B_vector_uint64_E")
], BVectorUint64E);
let VariantNameUint32Uint64 = class VariantNameUint32Uint64 extends Variant {
};
VariantNameUint32Uint64 = __decorate([
Variant.type("variant_name_uint32_uint64", [Name, UInt32, UInt64])
], VariantNameUint32Uint64);
let QUALIATOMICADDRESS = class QUALIATOMICADDRESS extends VariantNameUint32Uint64 {
};
QUALIATOMICADDRESS = __decorate([
TypeAlias("QUALI_ATOMIC_ADDRESS")
], QUALIATOMICADDRESS);
let Address = class Address extends Checksum160 {
};
Address = __decorate([
TypeAlias("address")
], Address);
let TupleUint8String = class TupleUint8String extends Struct {
};
__decorate([
Struct.field(UInt8)
], TupleUint8String.prototype, "field_0", void 0);
__decorate([
Struct.field("string")
], TupleUint8String.prototype, "field_1", void 0);
TupleUint8String = __decorate([
Struct.type("tuple_uint8_string")
], TupleUint8String);
export { TupleUint8String };
let Content = class Content extends TupleUint8String {
};
Content = __decorate([
TypeAlias("content")
], Content);
let VariantAddressName = class VariantAddressName extends Variant {
};
VariantAddressName = __decorate([
Variant.type("variant_address_name", [Address, Name])
], VariantAddressName);
let Vaddress = class Vaddress extends VariantAddressName {
};
Vaddress = __decorate([
TypeAlias("vaddress")
], Vaddress);
let QualiDataFilter = class QualiDataFilter extends Struct {
};
__decorate([
Struct.field(UInt8)
], QualiDataFilter.prototype, "attr_id", void 0);
__decorate([
Struct.field(UInt8)
], QualiDataFilter.prototype, "filter_type", void 0);
__decorate([
Struct.field(Bytes)
], QualiDataFilter.prototype, "data", void 0);
QualiDataFilter = __decorate([
Struct.type("QualiDataFilter")
], QualiDataFilter);
export { QualiDataFilter };
let Quali = class Quali extends Struct {
};
__decorate([
Struct.field(UInt8)
], Quali.prototype, "type", void 0);
__decorate([
Struct.field(QUALIATOMICADDRESS)
], Quali.prototype, "address", void 0);
__decorate([
Struct.field(QualiDataFilter, { optional: true })
], Quali.prototype, "data_filter", void 0);
Quali = __decorate([
Struct.type("Quali")
], Quali);
export { Quali };
let Acctaskidx = class Acctaskidx extends Struct {
};
__decorate([
Struct.field(UInt32)
], Acctaskidx.prototype, "account_id", void 0);
__decorate([
Struct.field(UInt32)
], Acctaskidx.prototype, "campaign_id", void 0);
__decorate([
Struct.field(UInt32)
], Acctaskidx.prototype, "value", void 0);
Acctaskidx = __decorate([
Struct.type("acctaskidx")
], Acctaskidx);
export { Acctaskidx };
let Batch = class Batch extends Struct {
};
__decorate([
Struct.field(UInt32)
], Batch.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Batch.prototype, "campaign_id", void 0);
__decorate([
Struct.field(Content)
], Batch.prototype, "content", void 0);
__decorate([
Struct.field(ExtendedAsset)
], Batch.prototype, "balance", void 0);
__decorate([
Struct.field(UInt32)
], Batch.prototype, "repetitions", void 0);
__decorate([
Struct.field(UInt32)
], Batch.prototype, "num_tasks", void 0);
__decorate([
Struct.field(UInt32)
], Batch.prototype, "start_task_idx", void 0);
__decorate([
Struct.field(ExtendedAsset)
], Batch.prototype, "reward", void 0);
Batch = __decorate([
Struct.type("batch")
], Batch);
export { Batch };
let Campaign = class Campaign extends Struct {
};
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "reservations_done", void 0);
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "total_submissions", void 0);
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "total_tasks", void 0);
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "active_batch", void 0);
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "num_batches", void 0);
__decorate([
Struct.field(Vaddress)
], Campaign.prototype, "owner", void 0);
__decorate([
Struct.field("bool")
], Campaign.prototype, "paused", void 0);
__decorate([
Struct.field(Content)
], Campaign.prototype, "content", void 0);
__decorate([
Struct.field(UInt32)
], Campaign.prototype, "max_task_time", void 0);
__decorate([
Struct.field(ExtendedAsset)
], Campaign.prototype, "reward", void 0);
__decorate([
Struct.field(Quali, { array: true })
], Campaign.prototype, "qualis", void 0);
Campaign = __decorate([
Struct.type("campaign")
], Campaign);
export { Campaign };
let Clean = class Clean extends Struct {
};
Clean = __decorate([
Struct.type("clean")
], Clean);
export { Clean };
let Cleartasks = class Cleartasks extends Struct {
};
__decorate([
Struct.field(UInt32)
], Cleartasks.prototype, "batch_id", void 0);
__decorate([
Struct.field(UInt32)
], Cleartasks.prototype, "campaign_id", void 0);
Cleartasks = __decorate([
Struct.type("cleartasks")
], Cleartasks);
export { Cleartasks };
let Editcampaign = class Editcampaign extends Struct {
};
__decorate([
Struct.field(UInt32)
], Editcampaign.prototype, "campaign_id", void 0);
__decorate([
Struct.field(Vaddress)
], Editcampaign.prototype, "owner", void 0);
__decorate([
Struct.field(Content)
], Editcampaign.prototype, "content", void 0);
__decorate([
Struct.field("bool")
], Editcampaign.prototype, "paused", void 0);
__decorate([
Struct.field(ExtendedAsset)
], Editcampaign.prototype, "reward", void 0);
__decorate([
Struct.field(Quali, { array: true })
], Editcampaign.prototype, "qualis", void 0);
__decorate([
Struct.field(Name)
], Editcampaign.prototype, "payer", void 0);
Editcampaign = __decorate([
Struct.type("editcampaign")
], Editcampaign);
export { Editcampaign };
let Init = class Init extends Struct {
};
__decorate([
Struct.field(Name)
], Init.prototype, "vaccount_contract", void 0);
__decorate([
Struct.field(UInt32)
], Init.prototype, "force_vaccount_id", void 0);
__decorate([
Struct.field(UInt32)
], Init.prototype, "payout_delay_sec", void 0);
__decorate([
Struct.field(UInt32)
], Init.prototype, "release_task_delay_sec", void 0);
__decorate([
Struct.field(Name)
], Init.prototype, "fee_contract", void 0);
__decorate([
Struct.field(Float32)
], Init.prototype, "fee_percentage", void 0);
Init = __decorate([
Struct.type("init")
], Init);
export { Init };
let Mkbatch = class Mkbatch extends Struct {
};
__decorate([
Struct.field(UInt32)
], Mkbatch.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Mkbatch.prototype, "campaign_id", void 0);
__decorate([
Struct.field(Content)
], Mkbatch.prototype, "content", void 0);
__decorate([
Struct.field(UInt32)
], Mkbatch.prototype, "repetitions", void 0);
__decorate([
Struct.field(Name)
], Mkbatch.prototype, "payer", void 0);
Mkbatch = __decorate([
Struct.type("mkbatch")
], Mkbatch);
export { Mkbatch };
let Mkcampaign = class Mkcampaign extends Struct {
};
__decorate([
Struct.field(Vaddress)
], Mkcampaign.prototype, "owner", void 0);
__decorate([
Struct.field(Content)
], Mkcampaign.prototype, "content", void 0);
__decorate([
Struct.field(UInt32)
], Mkcampaign.prototype, "max_task_time", void 0);
__decorate([
Struct.field(ExtendedAsset)
], Mkcampaign.prototype, "reward", void 0);
__decorate([
Struct.field(Quali, { array: true })
], Mkcampaign.prototype, "qualis", void 0);
__decorate([
Struct.field(Name)
], Mkcampaign.prototype, "payer", void 0);
Mkcampaign = __decorate([
Struct.type("mkcampaign")
], Mkcampaign);
export { Mkcampaign };
let Payment = class Payment extends Struct {
};
__decorate([
Struct.field(UInt64)
], Payment.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Payment.prototype, "account_id", void 0);
__decorate([
Struct.field(UInt64)
], Payment.prototype, "batch_id", void 0);
__decorate([
Struct.field(ExtendedAsset)
], Payment.prototype, "pending", void 0);
__decorate([
Struct.field(TimePointSec)
], Payment.prototype, "last_submission_time", void 0);
Payment = __decorate([
Struct.type("payment")
], Payment);
export { Payment };
let Payout = class Payout extends Struct {
};
__decorate([
Struct.field(UInt64)
], Payout.prototype, "payment_id", void 0);
Payout = __decorate([
Struct.type("payout")
], Payout);
export { Payout };
let Publishbatch = class Publishbatch extends Struct {
};
__decorate([
Struct.field(UInt64)
], Publishbatch.prototype, "batch_id", void 0);
__decorate([
Struct.field(UInt32)
], Publishbatch.prototype, "num_tasks", void 0);
Publishbatch = __decorate([
Struct.type("publishbatch")
], Publishbatch);
export { Publishbatch };
let Repsdone = class Repsdone extends Struct {
};
__decorate([
Struct.field(UInt32)
], Repsdone.prototype, "campaign_id", void 0);
__decorate([
Struct.field(UInt32)
], Repsdone.prototype, "task_idx", void 0);
__decorate([
Struct.field(UInt32)
], Repsdone.prototype, "value", void 0);
Repsdone = __decorate([
Struct.type("repsdone")
], Repsdone);
export { Repsdone };
let Reservation = class Reservation extends Struct {
};
__decorate([
Struct.field(UInt64)
], Reservation.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Reservation.prototype, "task_idx", void 0);
__decorate([
Struct.field(UInt32, { optional: true })
], Reservation.prototype, "account_id", void 0);
__decorate([
Struct.field(UInt64)
], Reservation.prototype, "batch_id", void 0);
__decorate([
Struct.field(TimePointSec)
], Reservation.prototype, "reserved_on", void 0);
__decorate([
Struct.field(UInt32)
], Reservation.prototype, "campaign_id", void 0);
Reservation = __decorate([
Struct.type("reservation")
], Reservation);
export { Reservation };
let Reservetask = class Reservetask extends Struct {
};
__decorate([
Struct.field(UInt32)
], Reservetask.prototype, "campaign_id", void 0);
__decorate([
Struct.field(UInt32)
], Reservetask.prototype, "account_id", void 0);
__decorate([
Struct.field(BVectorUint64E, { optional: true })
], Reservetask.prototype, "quali_assets", void 0);
__decorate([
Struct.field(Name)
], Reservetask.prototype, "payer", void 0);
Reservetask = __decorate([
Struct.type("reservetask")
], Reservetask);
export { Reservetask };
let Rmbatch = class Rmbatch extends Struct {
};
__decorate([
Struct.field(UInt32)
], Rmbatch.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Rmbatch.prototype, "campaign_id", void 0);
Rmbatch = __decorate([
Struct.type("rmbatch")
], Rmbatch);
export { Rmbatch };
let Rmcampaign = class Rmcampaign extends Struct {
};
__decorate([
Struct.field(UInt32)
], Rmcampaign.prototype, "campaign_id", void 0);
__decorate([
Struct.field(Vaddress)
], Rmcampaign.prototype, "owner", void 0);
Rmcampaign = __decorate([
Struct.type("rmcampaign")
], Rmcampaign);
export { Rmcampaign };
let Settings = class Settings extends Struct {
};
__decorate([
Struct.field(Name)
], Settings.prototype, "vaccount_contract", void 0);
__decorate([
Struct.field(UInt32)
], Settings.prototype, "force_vaccount_id", void 0);
__decorate([
Struct.field(UInt32)
], Settings.prototype, "payout_delay_sec", void 0);
__decorate([
Struct.field(UInt32)
], Settings.prototype, "release_task_delay_sec", void 0);
__decorate([
Struct.field(Name)
], Settings.prototype, "fee_contract", void 0);
__decorate([
Struct.field(Float32)
], Settings.prototype, "fee_percentage", void 0);
Settings = __decorate([
Struct.type("settings")
], Settings);
export { Settings };
let Submission = class Submission extends Struct {
};
__decorate([
Struct.field(UInt64)
], Submission.prototype, "id", void 0);
__decorate([
Struct.field(UInt32)
], Submission.prototype, "campaign_id", void 0);
__decorate([
Struct.field(UInt32)
], Submission.prototype, "task_idx", void 0);
__decorate([
Struct.field(UInt32, { optional: true })
], Submission.prototype, "account_id", void 0);
__decorate([
Struct.field(Content, { optional: true })
], Submission.prototype, "content", void 0);
__decorate([
Struct.field(UInt64)
], Submission.prototype, "batch_id", void 0);
__decorate([
Struct.field("string?")
], Submission.prototype, "data", void 0);
__decorate([
Struct.field("bool")
], Submission.prototype, "paid", void 0);
__decorate([
Struct.field(TimePointSec)
], Submission.prototype, "submitted_on", void 0);
Submission = __decorate([
Struct.type("submission")
], Submission);
export { Submission };
let Submittask = class Submittask extends Struct {
};
__decorate([
Struct.field(UInt32)
], Submittask.prototype, "campaign_id", void 0);
__decorate([
Struct.field(UInt32)
], Submittask.prototype, "task_idx", void 0);
__decorate([
Struct.field("string")
], Submittask.prototype, "data", void 0);
__decorate([
Struct.field(UInt32)
], Submittask.prototype, "account_id", void 0);
__decorate([
Struct.field(Name)
], Submittask.prototype, "payer", void 0);
Submittask = __decorate([
Struct.type("submittask")
], Submittask);
export { Submittask };
//# sourceMappingURL=effecttasks2.js.map