@telaro/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/QUICKSTART.md +216 -0
- package/README.md +129 -0
- package/dist/accounts.d.ts +51 -0
- package/dist/accounts.d.ts.map +1 -0
- package/dist/accounts.js +169 -0
- package/dist/accounts.js.map +1 -0
- package/dist/api.d.ts +177 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +158 -0
- package/dist/api.js.map +1 -0
- package/dist/borsh.d.ts +33 -0
- package/dist/borsh.d.ts.map +1 -0
- package/dist/borsh.js +100 -0
- package/dist/borsh.js.map +1 -0
- package/dist/client.d.ts +70 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +164 -0
- package/dist/client.js.map +1 -0
- package/dist/constants.d.ts +46 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +47 -0
- package/dist/constants.js.map +1 -0
- package/dist/credit.d.ts +61 -0
- package/dist/credit.d.ts.map +1 -0
- package/dist/credit.js +133 -0
- package/dist/credit.js.map +1 -0
- package/dist/decimal.d.ts +36 -0
- package/dist/decimal.d.ts.map +1 -0
- package/dist/decimal.js +87 -0
- package/dist/decimal.js.map +1 -0
- package/dist/discriminators.d.ts +86 -0
- package/dist/discriminators.d.ts.map +1 -0
- package/dist/discriminators.js +100 -0
- package/dist/discriminators.js.map +1 -0
- package/dist/events.d.ts +268 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +223 -0
- package/dist/events.js.map +1 -0
- package/dist/format.d.ts +10 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +39 -0
- package/dist/format.js.map +1 -0
- package/dist/hash.d.ts +9 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +33 -0
- package/dist/hash.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/instructions.d.ts +368 -0
- package/dist/instructions.d.ts.map +1 -0
- package/dist/instructions.js +841 -0
- package/dist/instructions.js.map +1 -0
- package/dist/metaplex.d.ts +64 -0
- package/dist/metaplex.d.ts.map +1 -0
- package/dist/metaplex.js +123 -0
- package/dist/metaplex.js.map +1 -0
- package/dist/pda.d.ts +35 -0
- package/dist/pda.d.ts.map +1 -0
- package/dist/pda.js +84 -0
- package/dist/pda.js.map +1 -0
- package/dist/realtime.d.ts +67 -0
- package/dist/realtime.d.ts.map +1 -0
- package/dist/realtime.js +112 -0
- package/dist/realtime.js.map +1 -0
- package/dist/score.d.ts +51 -0
- package/dist/score.d.ts.map +1 -0
- package/dist/score.js +63 -0
- package/dist/score.js.map +1 -0
- package/dist/types.d.ts +139 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +51 -0
- package/dist/types.js.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Instruction discriminators — match the on-chain `#[program]` mod methods. */
|
|
2
|
+
export declare const INSTRUCTION_DISC: {
|
|
3
|
+
readonly initAgent: Buffer<ArrayBufferLike>;
|
|
4
|
+
readonly bondAgent: Buffer<ArrayBufferLike>;
|
|
5
|
+
readonly recordAction: Buffer<ArrayBufferLike>;
|
|
6
|
+
readonly topUpBond: Buffer<ArrayBufferLike>;
|
|
7
|
+
readonly submitClaim: Buffer<ArrayBufferLike>;
|
|
8
|
+
readonly resolveClaim: Buffer<ArrayBufferLike>;
|
|
9
|
+
readonly updateScore: Buffer<ArrayBufferLike>;
|
|
10
|
+
readonly withdrawBond: Buffer<ArrayBufferLike>;
|
|
11
|
+
readonly viewBond: Buffer<ArrayBufferLike>;
|
|
12
|
+
readonly accrueYield: Buffer<ArrayBufferLike>;
|
|
13
|
+
readonly claimBuilderYield: Buffer<ArrayBufferLike>;
|
|
14
|
+
readonly claimTreasuryYield: Buffer<ArrayBufferLike>;
|
|
15
|
+
readonly escalateClaim: Buffer<ArrayBufferLike>;
|
|
16
|
+
readonly arbiterResolve: Buffer<ArrayBufferLike>;
|
|
17
|
+
readonly arbiterTimeout: Buffer<ArrayBufferLike>;
|
|
18
|
+
readonly initTsusdcMint: Buffer<ArrayBufferLike>;
|
|
19
|
+
readonly mintTsusdc: Buffer<ArrayBufferLike>;
|
|
20
|
+
readonly burnTsusdc: Buffer<ArrayBufferLike>;
|
|
21
|
+
readonly initUnderwriterPool: Buffer<ArrayBufferLike>;
|
|
22
|
+
readonly depositToPool: Buffer<ArrayBufferLike>;
|
|
23
|
+
readonly withdrawFromPool: Buffer<ArrayBufferLike>;
|
|
24
|
+
readonly processPoolYield: Buffer<ArrayBufferLike>;
|
|
25
|
+
readonly initLpPosition: Buffer<ArrayBufferLike>;
|
|
26
|
+
readonly initMarginfiAccount: Buffer<ArrayBufferLike>;
|
|
27
|
+
readonly registerCapabilities: Buffer<ArrayBufferLike>;
|
|
28
|
+
readonly viewBondCapability: Buffer<ArrayBufferLike>;
|
|
29
|
+
readonly initScoreFeed: Buffer<ArrayBufferLike>;
|
|
30
|
+
readonly pushScore: Buffer<ArrayBufferLike>;
|
|
31
|
+
readonly viewScore: Buffer<ArrayBufferLike>;
|
|
32
|
+
readonly routeToMarginfi: Buffer<ArrayBufferLike>;
|
|
33
|
+
readonly harvestMarginfiYield: Buffer<ArrayBufferLike>;
|
|
34
|
+
readonly unrouteFromMarginfi: Buffer<ArrayBufferLike>;
|
|
35
|
+
readonly initKaminoObligation: Buffer<ArrayBufferLike>;
|
|
36
|
+
readonly routeToKamino: Buffer<ArrayBufferLike>;
|
|
37
|
+
readonly harvestKaminoYield: Buffer<ArrayBufferLike>;
|
|
38
|
+
readonly unrouteFromKamino: Buffer<ArrayBufferLike>;
|
|
39
|
+
readonly initProtocolConfig: Buffer<ArrayBufferLike>;
|
|
40
|
+
readonly setProtocolArbiter: Buffer<ArrayBufferLike>;
|
|
41
|
+
readonly requestCredit: Buffer<ArrayBufferLike>;
|
|
42
|
+
readonly repayCredit: Buffer<ArrayBufferLike>;
|
|
43
|
+
};
|
|
44
|
+
/** Event discriminators — match the on-chain `#[event]` structs. */
|
|
45
|
+
export declare const EVENT_DISC: {
|
|
46
|
+
readonly AgentRegistered: Buffer<ArrayBufferLike>;
|
|
47
|
+
readonly ActionRecorded: Buffer<ArrayBufferLike>;
|
|
48
|
+
readonly BondTopUp: Buffer<ArrayBufferLike>;
|
|
49
|
+
readonly BondWithdrawn: Buffer<ArrayBufferLike>;
|
|
50
|
+
readonly ClaimSubmitted: Buffer<ArrayBufferLike>;
|
|
51
|
+
readonly ClaimResolved: Buffer<ArrayBufferLike>;
|
|
52
|
+
readonly ScoreUpdated: Buffer<ArrayBufferLike>;
|
|
53
|
+
readonly AgentFrozen: Buffer<ArrayBufferLike>;
|
|
54
|
+
readonly YieldAccrued: Buffer<ArrayBufferLike>;
|
|
55
|
+
readonly YieldClaimed: Buffer<ArrayBufferLike>;
|
|
56
|
+
readonly ClaimEscalated: Buffer<ArrayBufferLike>;
|
|
57
|
+
readonly ArbiterRuled: Buffer<ArrayBufferLike>;
|
|
58
|
+
readonly TsusdcMinted: Buffer<ArrayBufferLike>;
|
|
59
|
+
readonly TsusdcBurned: Buffer<ArrayBufferLike>;
|
|
60
|
+
readonly PoolDeposit: Buffer<ArrayBufferLike>;
|
|
61
|
+
readonly PoolWithdrawal: Buffer<ArrayBufferLike>;
|
|
62
|
+
readonly PoolYieldProcessed: Buffer<ArrayBufferLike>;
|
|
63
|
+
readonly LpPositionOpened: Buffer<ArrayBufferLike>;
|
|
64
|
+
readonly RoutedToLp: Buffer<ArrayBufferLike>;
|
|
65
|
+
readonly HarvestedFromLp: Buffer<ArrayBufferLike>;
|
|
66
|
+
readonly UnroutedFromLp: Buffer<ArrayBufferLike>;
|
|
67
|
+
readonly ProtocolConfigInitialized: Buffer<ArrayBufferLike>;
|
|
68
|
+
readonly ProtocolArbiterRotated: Buffer<ArrayBufferLike>;
|
|
69
|
+
readonly CreditDrawn: Buffer<ArrayBufferLike>;
|
|
70
|
+
readonly CreditRepaid: Buffer<ArrayBufferLike>;
|
|
71
|
+
};
|
|
72
|
+
/** Account discriminators — match the on-chain `#[account]` structs. */
|
|
73
|
+
export declare const ACCOUNT_DISC: {
|
|
74
|
+
readonly Agent: Buffer<ArrayBufferLike>;
|
|
75
|
+
readonly ActionLog: Buffer<ArrayBufferLike>;
|
|
76
|
+
readonly Claim: Buffer<ArrayBufferLike>;
|
|
77
|
+
readonly LpPosition: Buffer<ArrayBufferLike>;
|
|
78
|
+
readonly CapabilityRegistry: Buffer<ArrayBufferLike>;
|
|
79
|
+
readonly ScoreFeed: Buffer<ArrayBufferLike>;
|
|
80
|
+
};
|
|
81
|
+
/** Reverse lookup: hex(8 bytes) → event name. Used by the indexer. */
|
|
82
|
+
export declare const EVENT_DISC_BY_HEX: Readonly<Record<string, keyof typeof EVENT_DISC>>;
|
|
83
|
+
export type EventName = keyof typeof EVENT_DISC;
|
|
84
|
+
export type InstructionName = keyof typeof INSTRUCTION_DISC;
|
|
85
|
+
export type AccountName = keyof typeof ACCOUNT_DISC;
|
|
86
|
+
//# sourceMappingURL=discriminators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discriminators.d.ts","sourceRoot":"","sources":["../src/discriminators.ts"],"names":[],"mappings":"AAoBA,gFAAgF;AAChF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCnB,CAAC;AAEX,oEAAoE;AACpE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bb,CAAC;AAEX,wEAAwE;AACxE,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAEX,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,UAAU,CAAC,CAI/E,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,UAAU,CAAC;AAChD,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { sha256 } from "@noble/hashes/sha256";
|
|
2
|
+
/**
|
|
3
|
+
* Anchor instruction & event discriminators are deterministically derived
|
|
4
|
+
* from their snake_case name:
|
|
5
|
+
*
|
|
6
|
+
* instruction → sha256("global:<name>")[0..8]
|
|
7
|
+
* event → sha256("event:<name>")[0..8]
|
|
8
|
+
* account → sha256("account:<name>")[0..8]
|
|
9
|
+
*
|
|
10
|
+
* Because the derivation is deterministic, we compute them once at module
|
|
11
|
+
* load time instead of hardcoding bytes that could drift from the program.
|
|
12
|
+
* This eliminates an entire class of "discriminator mismatch" bugs.
|
|
13
|
+
*/
|
|
14
|
+
function disc(prefix, name) {
|
|
15
|
+
const digest = sha256(new TextEncoder().encode(`${prefix}:${name}`));
|
|
16
|
+
return Buffer.from(digest.slice(0, 8));
|
|
17
|
+
}
|
|
18
|
+
/** Instruction discriminators — match the on-chain `#[program]` mod methods. */
|
|
19
|
+
export const INSTRUCTION_DISC = {
|
|
20
|
+
initAgent: disc("global", "init_agent"),
|
|
21
|
+
bondAgent: disc("global", "bond_agent"),
|
|
22
|
+
recordAction: disc("global", "record_action"),
|
|
23
|
+
topUpBond: disc("global", "top_up_bond"),
|
|
24
|
+
submitClaim: disc("global", "submit_claim"),
|
|
25
|
+
resolveClaim: disc("global", "resolve_claim"),
|
|
26
|
+
updateScore: disc("global", "update_score"),
|
|
27
|
+
withdrawBond: disc("global", "withdraw_bond"),
|
|
28
|
+
viewBond: disc("global", "view_bond"),
|
|
29
|
+
accrueYield: disc("global", "accrue_yield"),
|
|
30
|
+
claimBuilderYield: disc("global", "claim_builder_yield"),
|
|
31
|
+
claimTreasuryYield: disc("global", "claim_treasury_yield"),
|
|
32
|
+
escalateClaim: disc("global", "escalate_claim"),
|
|
33
|
+
arbiterResolve: disc("global", "arbiter_resolve"),
|
|
34
|
+
arbiterTimeout: disc("global", "arbiter_timeout"),
|
|
35
|
+
initTsusdcMint: disc("global", "init_tsusdc_mint"),
|
|
36
|
+
mintTsusdc: disc("global", "mint_tsusdc"),
|
|
37
|
+
burnTsusdc: disc("global", "burn_tsusdc"),
|
|
38
|
+
initUnderwriterPool: disc("global", "init_underwriter_pool"),
|
|
39
|
+
depositToPool: disc("global", "deposit_to_pool"),
|
|
40
|
+
withdrawFromPool: disc("global", "withdraw_from_pool"),
|
|
41
|
+
processPoolYield: disc("global", "process_pool_yield"),
|
|
42
|
+
initLpPosition: disc("global", "init_lp_position"),
|
|
43
|
+
initMarginfiAccount: disc("global", "init_marginfi_account"),
|
|
44
|
+
registerCapabilities: disc("global", "register_capabilities"),
|
|
45
|
+
viewBondCapability: disc("global", "view_bond_capability"),
|
|
46
|
+
initScoreFeed: disc("global", "init_score_feed"),
|
|
47
|
+
pushScore: disc("global", "push_score"),
|
|
48
|
+
viewScore: disc("global", "view_score"),
|
|
49
|
+
routeToMarginfi: disc("global", "route_to_marginfi"),
|
|
50
|
+
harvestMarginfiYield: disc("global", "harvest_marginfi_yield"),
|
|
51
|
+
unrouteFromMarginfi: disc("global", "unroute_from_marginfi"),
|
|
52
|
+
initKaminoObligation: disc("global", "init_kamino_obligation"),
|
|
53
|
+
routeToKamino: disc("global", "route_to_kamino"),
|
|
54
|
+
harvestKaminoYield: disc("global", "harvest_kamino_yield"),
|
|
55
|
+
unrouteFromKamino: disc("global", "unroute_from_kamino"),
|
|
56
|
+
initProtocolConfig: disc("global", "init_protocol_config"),
|
|
57
|
+
setProtocolArbiter: disc("global", "set_protocol_arbiter"),
|
|
58
|
+
requestCredit: disc("global", "request_credit"),
|
|
59
|
+
repayCredit: disc("global", "repay_credit"),
|
|
60
|
+
};
|
|
61
|
+
/** Event discriminators — match the on-chain `#[event]` structs. */
|
|
62
|
+
export const EVENT_DISC = {
|
|
63
|
+
AgentRegistered: disc("event", "AgentRegistered"),
|
|
64
|
+
ActionRecorded: disc("event", "ActionRecorded"),
|
|
65
|
+
BondTopUp: disc("event", "BondTopUp"),
|
|
66
|
+
BondWithdrawn: disc("event", "BondWithdrawn"),
|
|
67
|
+
ClaimSubmitted: disc("event", "ClaimSubmitted"),
|
|
68
|
+
ClaimResolved: disc("event", "ClaimResolved"),
|
|
69
|
+
ScoreUpdated: disc("event", "ScoreUpdated"),
|
|
70
|
+
AgentFrozen: disc("event", "AgentFrozen"),
|
|
71
|
+
YieldAccrued: disc("event", "YieldAccrued"),
|
|
72
|
+
YieldClaimed: disc("event", "YieldClaimed"),
|
|
73
|
+
ClaimEscalated: disc("event", "ClaimEscalated"),
|
|
74
|
+
ArbiterRuled: disc("event", "ArbiterRuled"),
|
|
75
|
+
TsusdcMinted: disc("event", "TsusdcMinted"),
|
|
76
|
+
TsusdcBurned: disc("event", "TsusdcBurned"),
|
|
77
|
+
PoolDeposit: disc("event", "PoolDeposit"),
|
|
78
|
+
PoolWithdrawal: disc("event", "PoolWithdrawal"),
|
|
79
|
+
PoolYieldProcessed: disc("event", "PoolYieldProcessed"),
|
|
80
|
+
LpPositionOpened: disc("event", "LpPositionOpened"),
|
|
81
|
+
RoutedToLp: disc("event", "RoutedToLp"),
|
|
82
|
+
HarvestedFromLp: disc("event", "HarvestedFromLp"),
|
|
83
|
+
UnroutedFromLp: disc("event", "UnroutedFromLp"),
|
|
84
|
+
ProtocolConfigInitialized: disc("event", "ProtocolConfigInitialized"),
|
|
85
|
+
ProtocolArbiterRotated: disc("event", "ProtocolArbiterRotated"),
|
|
86
|
+
CreditDrawn: disc("event", "CreditDrawn"),
|
|
87
|
+
CreditRepaid: disc("event", "CreditRepaid"),
|
|
88
|
+
};
|
|
89
|
+
/** Account discriminators — match the on-chain `#[account]` structs. */
|
|
90
|
+
export const ACCOUNT_DISC = {
|
|
91
|
+
Agent: disc("account", "Agent"),
|
|
92
|
+
ActionLog: disc("account", "ActionLog"),
|
|
93
|
+
Claim: disc("account", "Claim"),
|
|
94
|
+
LpPosition: disc("account", "LpPosition"),
|
|
95
|
+
CapabilityRegistry: disc("account", "CapabilityRegistry"),
|
|
96
|
+
ScoreFeed: disc("account", "ScoreFeed"),
|
|
97
|
+
};
|
|
98
|
+
/** Reverse lookup: hex(8 bytes) → event name. Used by the indexer. */
|
|
99
|
+
export const EVENT_DISC_BY_HEX = Object.freeze(Object.fromEntries(Object.entries(EVENT_DISC).map(([name, buf]) => [buf.toString("hex"), name])));
|
|
100
|
+
//# sourceMappingURL=discriminators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discriminators.js","sourceRoot":"","sources":["../src/discriminators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;;;;;;;;;GAWG;AAEH,SAAS,IAAI,CAAC,MAAsC,EAAE,IAAY;IAChE,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;IACvC,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;IACvC,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE,eAAe,CAAC;IAC7C,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC;IACxC,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC3C,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE,eAAe,CAAC;IAC7C,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC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,kBAAkB,EAAE,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzD,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEX,sEAAsE;AACtE,MAAM,CAAC,MAAM,iBAAiB,GAAsD,MAAM,CAAC,MAAM,CAC/F,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC,CAClC,CAC7C,CAAC"}
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { PublicKey } from "@solana/web3.js";
|
|
2
|
+
import { EVENT_DISC, type EventName } from "./discriminators.js";
|
|
3
|
+
export interface AgentRegisteredEvent {
|
|
4
|
+
agent: PublicKey;
|
|
5
|
+
controller: PublicKey;
|
|
6
|
+
bondMint: PublicKey;
|
|
7
|
+
bondAmount: bigint;
|
|
8
|
+
framework: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ActionRecordedEvent {
|
|
11
|
+
agent: PublicKey;
|
|
12
|
+
actionHash: Uint8Array;
|
|
13
|
+
kind: number;
|
|
14
|
+
outcome: number;
|
|
15
|
+
valueAtomic: bigint;
|
|
16
|
+
slot: bigint;
|
|
17
|
+
}
|
|
18
|
+
export interface BondTopUpEvent {
|
|
19
|
+
agent: PublicKey;
|
|
20
|
+
by: PublicKey;
|
|
21
|
+
amount: bigint;
|
|
22
|
+
newBond: bigint;
|
|
23
|
+
}
|
|
24
|
+
export interface BondWithdrawnEvent {
|
|
25
|
+
agent: PublicKey;
|
|
26
|
+
to: PublicKey;
|
|
27
|
+
amount: bigint;
|
|
28
|
+
remaining: bigint;
|
|
29
|
+
}
|
|
30
|
+
export interface ClaimSubmittedEvent {
|
|
31
|
+
claim: PublicKey;
|
|
32
|
+
agent: PublicKey;
|
|
33
|
+
claimer: PublicKey;
|
|
34
|
+
claimedAmount: bigint;
|
|
35
|
+
deadline: bigint;
|
|
36
|
+
}
|
|
37
|
+
export interface ClaimResolvedEvent {
|
|
38
|
+
claim: PublicKey;
|
|
39
|
+
agent: PublicKey;
|
|
40
|
+
status: number;
|
|
41
|
+
paidOut: bigint;
|
|
42
|
+
}
|
|
43
|
+
export interface ScoreUpdatedEvent {
|
|
44
|
+
agent: PublicKey;
|
|
45
|
+
scorer: PublicKey;
|
|
46
|
+
newScore: number;
|
|
47
|
+
bondRatioBps: number;
|
|
48
|
+
}
|
|
49
|
+
export interface AgentFrozenEvent {
|
|
50
|
+
agent: PublicKey;
|
|
51
|
+
reason: number;
|
|
52
|
+
}
|
|
53
|
+
export interface YieldAccruedEvent {
|
|
54
|
+
agent: PublicKey;
|
|
55
|
+
amount: bigint;
|
|
56
|
+
builderShare: bigint;
|
|
57
|
+
treasuryShare: bigint;
|
|
58
|
+
totalAccrued: bigint;
|
|
59
|
+
}
|
|
60
|
+
export interface YieldClaimedEvent {
|
|
61
|
+
agent: PublicKey;
|
|
62
|
+
claimer: PublicKey;
|
|
63
|
+
amount: bigint;
|
|
64
|
+
/** 0 = builder, 1 = treasury */
|
|
65
|
+
recipient: number;
|
|
66
|
+
}
|
|
67
|
+
export interface ClaimEscalatedEvent {
|
|
68
|
+
claim: PublicKey;
|
|
69
|
+
agent: PublicKey;
|
|
70
|
+
claimer: PublicKey;
|
|
71
|
+
escalationDeposit: bigint;
|
|
72
|
+
escalatedAt: bigint;
|
|
73
|
+
}
|
|
74
|
+
export interface ArbiterRuledEvent {
|
|
75
|
+
claim: PublicKey;
|
|
76
|
+
agent: PublicKey;
|
|
77
|
+
arbiter: PublicKey;
|
|
78
|
+
/** 0 = ForUser, 1 = ForBuilder, 2 = ForUserTimeout */
|
|
79
|
+
ruling: number;
|
|
80
|
+
bondPaidToUser: bigint;
|
|
81
|
+
treasuryReceived: bigint;
|
|
82
|
+
arbiterFeeReceived: bigint;
|
|
83
|
+
rulingTimeSeconds: bigint;
|
|
84
|
+
}
|
|
85
|
+
export interface TsusdcMintedEvent {
|
|
86
|
+
agent: PublicKey;
|
|
87
|
+
recipient: PublicKey;
|
|
88
|
+
amount: bigint;
|
|
89
|
+
newSupply: bigint;
|
|
90
|
+
rateMicros: bigint;
|
|
91
|
+
}
|
|
92
|
+
export interface TsusdcBurnedEvent {
|
|
93
|
+
agent: PublicKey;
|
|
94
|
+
holder: PublicKey;
|
|
95
|
+
amount: bigint;
|
|
96
|
+
newSupply: bigint;
|
|
97
|
+
}
|
|
98
|
+
export interface PoolDepositEvent {
|
|
99
|
+
depositor: PublicKey;
|
|
100
|
+
amountIn: bigint;
|
|
101
|
+
stusdcMinted: bigint;
|
|
102
|
+
newSupply: bigint;
|
|
103
|
+
newVaultBalance: bigint;
|
|
104
|
+
}
|
|
105
|
+
export interface PoolWithdrawalEvent {
|
|
106
|
+
holder: PublicKey;
|
|
107
|
+
stusdcBurned: bigint;
|
|
108
|
+
usdcPaid: bigint;
|
|
109
|
+
newSupply: bigint;
|
|
110
|
+
}
|
|
111
|
+
export interface PoolYieldProcessedEvent {
|
|
112
|
+
amount: bigint;
|
|
113
|
+
newVaultBalance: bigint;
|
|
114
|
+
stusdcSupply: bigint;
|
|
115
|
+
cumulativeYield: bigint;
|
|
116
|
+
}
|
|
117
|
+
export interface LpPositionOpenedEvent {
|
|
118
|
+
agent: PublicKey;
|
|
119
|
+
lpPosition: PublicKey;
|
|
120
|
+
lpKind: number;
|
|
121
|
+
marginfiAccount: PublicKey;
|
|
122
|
+
marginfiBank: PublicKey;
|
|
123
|
+
yieldRouter: PublicKey;
|
|
124
|
+
}
|
|
125
|
+
export interface RoutedToLpEvent {
|
|
126
|
+
agent: PublicKey;
|
|
127
|
+
lpPosition: PublicKey;
|
|
128
|
+
lpKind: number;
|
|
129
|
+
amount: bigint;
|
|
130
|
+
outstandingPrincipal: bigint;
|
|
131
|
+
}
|
|
132
|
+
export interface HarvestedFromLpEvent {
|
|
133
|
+
agent: PublicKey;
|
|
134
|
+
lpPosition: PublicKey;
|
|
135
|
+
lpKind: number;
|
|
136
|
+
yieldAmount: bigint;
|
|
137
|
+
builderShare: bigint;
|
|
138
|
+
treasuryShare: bigint;
|
|
139
|
+
totalHarvested: bigint;
|
|
140
|
+
}
|
|
141
|
+
export interface ProtocolConfigInitializedEvent {
|
|
142
|
+
config: PublicKey;
|
|
143
|
+
admin: PublicKey;
|
|
144
|
+
arbiter: PublicKey;
|
|
145
|
+
createdAt: bigint;
|
|
146
|
+
}
|
|
147
|
+
export interface ProtocolArbiterRotatedEvent {
|
|
148
|
+
config: PublicKey;
|
|
149
|
+
admin: PublicKey;
|
|
150
|
+
oldArbiter: PublicKey;
|
|
151
|
+
newArbiter: PublicKey;
|
|
152
|
+
rotationCount: bigint;
|
|
153
|
+
rotatedAt: bigint;
|
|
154
|
+
}
|
|
155
|
+
export interface UnroutedFromLpEvent {
|
|
156
|
+
agent: PublicKey;
|
|
157
|
+
lpPosition: PublicKey;
|
|
158
|
+
lpKind: number;
|
|
159
|
+
amount: bigint;
|
|
160
|
+
outstandingPrincipal: bigint;
|
|
161
|
+
reason: number;
|
|
162
|
+
}
|
|
163
|
+
export interface CreditDrawnEvent {
|
|
164
|
+
agent: PublicKey;
|
|
165
|
+
creditLine: PublicKey;
|
|
166
|
+
amount: bigint;
|
|
167
|
+
interestRateBps: number;
|
|
168
|
+
outstandingPrincipal: bigint;
|
|
169
|
+
accruedInterest: bigint;
|
|
170
|
+
scoreAtDraw: number;
|
|
171
|
+
}
|
|
172
|
+
export interface CreditRepaidEvent {
|
|
173
|
+
agent: PublicKey;
|
|
174
|
+
creditLine: PublicKey;
|
|
175
|
+
amount: bigint;
|
|
176
|
+
appliedToInterest: bigint;
|
|
177
|
+
appliedToPrincipal: bigint;
|
|
178
|
+
outstandingPrincipal: bigint;
|
|
179
|
+
accruedInterest: bigint;
|
|
180
|
+
}
|
|
181
|
+
export type DecodedEventPayload = {
|
|
182
|
+
name: "AgentRegistered";
|
|
183
|
+
data: AgentRegisteredEvent;
|
|
184
|
+
} | {
|
|
185
|
+
name: "ActionRecorded";
|
|
186
|
+
data: ActionRecordedEvent;
|
|
187
|
+
} | {
|
|
188
|
+
name: "BondTopUp";
|
|
189
|
+
data: BondTopUpEvent;
|
|
190
|
+
} | {
|
|
191
|
+
name: "BondWithdrawn";
|
|
192
|
+
data: BondWithdrawnEvent;
|
|
193
|
+
} | {
|
|
194
|
+
name: "ClaimSubmitted";
|
|
195
|
+
data: ClaimSubmittedEvent;
|
|
196
|
+
} | {
|
|
197
|
+
name: "ClaimResolved";
|
|
198
|
+
data: ClaimResolvedEvent;
|
|
199
|
+
} | {
|
|
200
|
+
name: "ScoreUpdated";
|
|
201
|
+
data: ScoreUpdatedEvent;
|
|
202
|
+
} | {
|
|
203
|
+
name: "AgentFrozen";
|
|
204
|
+
data: AgentFrozenEvent;
|
|
205
|
+
} | {
|
|
206
|
+
name: "YieldAccrued";
|
|
207
|
+
data: YieldAccruedEvent;
|
|
208
|
+
} | {
|
|
209
|
+
name: "YieldClaimed";
|
|
210
|
+
data: YieldClaimedEvent;
|
|
211
|
+
} | {
|
|
212
|
+
name: "ClaimEscalated";
|
|
213
|
+
data: ClaimEscalatedEvent;
|
|
214
|
+
} | {
|
|
215
|
+
name: "ArbiterRuled";
|
|
216
|
+
data: ArbiterRuledEvent;
|
|
217
|
+
} | {
|
|
218
|
+
name: "TsusdcMinted";
|
|
219
|
+
data: TsusdcMintedEvent;
|
|
220
|
+
} | {
|
|
221
|
+
name: "TsusdcBurned";
|
|
222
|
+
data: TsusdcBurnedEvent;
|
|
223
|
+
} | {
|
|
224
|
+
name: "PoolDeposit";
|
|
225
|
+
data: PoolDepositEvent;
|
|
226
|
+
} | {
|
|
227
|
+
name: "PoolWithdrawal";
|
|
228
|
+
data: PoolWithdrawalEvent;
|
|
229
|
+
} | {
|
|
230
|
+
name: "PoolYieldProcessed";
|
|
231
|
+
data: PoolYieldProcessedEvent;
|
|
232
|
+
} | {
|
|
233
|
+
name: "LpPositionOpened";
|
|
234
|
+
data: LpPositionOpenedEvent;
|
|
235
|
+
} | {
|
|
236
|
+
name: "RoutedToLp";
|
|
237
|
+
data: RoutedToLpEvent;
|
|
238
|
+
} | {
|
|
239
|
+
name: "HarvestedFromLp";
|
|
240
|
+
data: HarvestedFromLpEvent;
|
|
241
|
+
} | {
|
|
242
|
+
name: "UnroutedFromLp";
|
|
243
|
+
data: UnroutedFromLpEvent;
|
|
244
|
+
} | {
|
|
245
|
+
name: "ProtocolConfigInitialized";
|
|
246
|
+
data: ProtocolConfigInitializedEvent;
|
|
247
|
+
} | {
|
|
248
|
+
name: "ProtocolArbiterRotated";
|
|
249
|
+
data: ProtocolArbiterRotatedEvent;
|
|
250
|
+
} | {
|
|
251
|
+
name: "CreditDrawn";
|
|
252
|
+
data: CreditDrawnEvent;
|
|
253
|
+
} | {
|
|
254
|
+
name: "CreditRepaid";
|
|
255
|
+
data: CreditRepaidEvent;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Decode a single Anchor event from its raw `Program data:` payload.
|
|
259
|
+
* Returns null if the leading 8 bytes don't match a known event.
|
|
260
|
+
*/
|
|
261
|
+
export declare function decodeEvent(raw: Buffer): DecodedEventPayload | null;
|
|
262
|
+
/**
|
|
263
|
+
* Decode all `Program data: <base64>` events from a transaction's logs.
|
|
264
|
+
* Caller filters to logs from our program.
|
|
265
|
+
*/
|
|
266
|
+
export declare function decodeEventsFromLogs(logs: string[]): DecodedEventPayload[];
|
|
267
|
+
export { EVENT_DISC, type EventName };
|
|
268
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAqB,KAA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