@oobe-protocol-labs/synapse-sap-sdk 0.13.0 → 0.14.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/dist/cjs/accounts/index.js +286 -0
- package/dist/cjs/accounts/index.js.map +1 -0
- package/dist/cjs/client.js +108 -0
- package/dist/cjs/client.js.map +1 -0
- package/dist/cjs/constants.js +59 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/errors.js +250 -0
- package/dist/cjs/errors.js.map +1 -0
- package/dist/cjs/events/index.js +38 -130
- package/dist/cjs/events/index.js.map +1 -1
- package/dist/cjs/idlTypes.js +4 -0
- package/dist/cjs/idlTypes.js.map +1 -0
- package/dist/cjs/index.js +75 -241
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/instructions/agent.js +89 -0
- package/dist/cjs/instructions/agent.js.map +1 -0
- package/dist/cjs/instructions/attestation.js +112 -0
- package/dist/cjs/instructions/attestation.js.map +1 -0
- package/dist/cjs/instructions/digest.js +28 -0
- package/dist/cjs/instructions/digest.js.map +1 -0
- package/dist/cjs/instructions/dispute.js +116 -0
- package/dist/cjs/instructions/dispute.js.map +1 -0
- package/dist/cjs/instructions/escrow.js +101 -0
- package/dist/cjs/instructions/escrow.js.map +1 -0
- package/dist/cjs/instructions/global.js +28 -0
- package/dist/cjs/instructions/global.js.map +1 -0
- package/dist/cjs/instructions/index.js +31 -0
- package/dist/cjs/instructions/index.js.map +1 -0
- package/dist/cjs/instructions/indexing.js +221 -0
- package/dist/cjs/instructions/indexing.js.map +1 -0
- package/dist/cjs/instructions/misc.js +73 -0
- package/dist/cjs/instructions/misc.js.map +1 -0
- package/dist/cjs/instructions/session.js +89 -0
- package/dist/cjs/instructions/session.js.map +1 -0
- package/dist/cjs/instructions/staking.js +132 -0
- package/dist/cjs/instructions/staking.js.map +1 -0
- package/dist/cjs/instructions/subscription.js +80 -0
- package/dist/cjs/instructions/subscription.js.map +1 -0
- package/dist/cjs/instructions/tools.js +109 -0
- package/dist/cjs/instructions/tools.js.map +1 -0
- package/dist/cjs/instructions/vault.js +106 -0
- package/dist/cjs/instructions/vault.js.map +1 -0
- package/dist/cjs/pdas/index.js +120 -0
- package/dist/cjs/pdas/index.js.map +1 -0
- package/dist/cjs/types.js +42 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/utils/index.js +29 -86
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/validate.js +236 -0
- package/dist/cjs/utils/validate.js.map +1 -0
- package/dist/esm/accounts/index.d.ts +11 -0
- package/dist/esm/accounts/index.d.ts.map +1 -0
- package/dist/esm/accounts/index.js +273 -0
- package/dist/esm/accounts/index.js.map +1 -0
- package/dist/esm/client.d.ts +55 -0
- package/dist/esm/client.d.ts.map +1 -0
- package/dist/esm/client.js +70 -0
- package/dist/esm/client.js.map +1 -0
- package/dist/esm/constants.d.ts +52 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +56 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/errors.d.ts +111 -0
- package/dist/esm/errors.d.ts.map +1 -0
- package/dist/esm/errors.js +244 -0
- package/dist/esm/errors.js.map +1 -0
- package/dist/esm/events/index.d.ts +13 -0
- package/dist/esm/events/index.d.ts.map +1 -0
- package/dist/esm/events/index.js +36 -128
- package/dist/esm/events/index.js.map +1 -1
- package/dist/esm/idlTypes.d.ts +925 -0
- package/dist/esm/idlTypes.d.ts.map +1 -0
- package/dist/esm/idlTypes.js +3 -0
- package/dist/esm/idlTypes.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +15 -88
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/instructions/agent.d.ts +71 -0
- package/dist/esm/instructions/agent.d.ts.map +1 -0
- package/dist/esm/instructions/agent.js +85 -0
- package/dist/esm/instructions/agent.js.map +1 -0
- package/dist/esm/instructions/attestation.d.ts +76 -0
- package/dist/esm/instructions/attestation.d.ts.map +1 -0
- package/dist/esm/instructions/attestation.js +108 -0
- package/dist/esm/instructions/attestation.js.map +1 -0
- package/dist/esm/instructions/digest.d.ts +20 -0
- package/dist/esm/instructions/digest.d.ts.map +1 -0
- package/dist/esm/instructions/digest.js +24 -0
- package/dist/esm/instructions/digest.js.map +1 -0
- package/dist/esm/instructions/dispute.d.ts +81 -0
- package/dist/esm/instructions/dispute.d.ts.map +1 -0
- package/dist/esm/instructions/dispute.js +112 -0
- package/dist/esm/instructions/dispute.js.map +1 -0
- package/dist/esm/instructions/escrow.d.ts +79 -0
- package/dist/esm/instructions/escrow.d.ts.map +1 -0
- package/dist/esm/instructions/escrow.js +97 -0
- package/dist/esm/instructions/escrow.js.map +1 -0
- package/dist/esm/instructions/global.d.ts +14 -0
- package/dist/esm/instructions/global.d.ts.map +1 -0
- package/dist/esm/instructions/global.js +24 -0
- package/dist/esm/instructions/global.js.map +1 -0
- package/dist/esm/instructions/index.d.ts +14 -0
- package/dist/esm/instructions/index.d.ts.map +1 -0
- package/dist/esm/instructions/index.js +15 -0
- package/dist/esm/instructions/index.js.map +1 -0
- package/dist/esm/instructions/indexing.d.ts +150 -0
- package/dist/esm/instructions/indexing.d.ts.map +1 -0
- package/dist/esm/instructions/indexing.js +217 -0
- package/dist/esm/instructions/indexing.js.map +1 -0
- package/dist/esm/instructions/memory.d.ts +8 -0
- package/dist/esm/instructions/memory.d.ts.map +1 -0
- package/dist/esm/instructions/memory.js +234 -0
- package/dist/esm/instructions/memory.js.map +1 -0
- package/dist/esm/instructions/misc.d.ts +50 -0
- package/dist/esm/instructions/misc.d.ts.map +1 -0
- package/dist/esm/instructions/misc.js +69 -0
- package/dist/esm/instructions/misc.js.map +1 -0
- package/dist/esm/instructions/session.d.ts +57 -0
- package/dist/esm/instructions/session.d.ts.map +1 -0
- package/dist/esm/instructions/session.js +85 -0
- package/dist/esm/instructions/session.js.map +1 -0
- package/dist/esm/instructions/staking.d.ts +85 -0
- package/dist/esm/instructions/staking.d.ts.map +1 -0
- package/dist/esm/instructions/staking.js +128 -0
- package/dist/esm/instructions/staking.js.map +1 -0
- package/dist/esm/instructions/subscription.d.ts +50 -0
- package/dist/esm/instructions/subscription.d.ts.map +1 -0
- package/dist/esm/instructions/subscription.js +76 -0
- package/dist/esm/instructions/subscription.js.map +1 -0
- package/dist/esm/instructions/tools.d.ts +88 -0
- package/dist/esm/instructions/tools.d.ts.map +1 -0
- package/dist/esm/instructions/tools.js +105 -0
- package/dist/esm/instructions/tools.js.map +1 -0
- package/dist/esm/instructions/vault.d.ts +84 -0
- package/dist/esm/instructions/vault.d.ts.map +1 -0
- package/dist/esm/instructions/vault.js +102 -0
- package/dist/esm/instructions/vault.js.map +1 -0
- package/dist/esm/pdas/index.d.ts +37 -0
- package/dist/esm/pdas/index.d.ts.map +1 -0
- package/dist/esm/pdas/index.js +101 -0
- package/dist/esm/pdas/index.js.map +1 -0
- package/dist/esm/types.d.ts +208 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +39 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils/index.d.ts +4 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/index.js +13 -33
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/validate.d.ts +66 -0
- package/dist/esm/utils/validate.d.ts.map +1 -0
- package/dist/esm/utils/validate.js +221 -0
- package/dist/esm/utils/validate.js.map +1 -0
- package/package.json +59 -183
- package/LICENSE +0 -21
- package/README.md +0 -986
- package/dist/cjs/constants/addresses.js +0 -143
- package/dist/cjs/constants/addresses.js.map +0 -1
- package/dist/cjs/constants/index.js +0 -64
- package/dist/cjs/constants/index.js.map +0 -1
- package/dist/cjs/constants/limits.js +0 -161
- package/dist/cjs/constants/limits.js.map +0 -1
- package/dist/cjs/constants/network.js +0 -81
- package/dist/cjs/constants/network.js.map +0 -1
- package/dist/cjs/constants/payments.js +0 -137
- package/dist/cjs/constants/payments.js.map +0 -1
- package/dist/cjs/constants/programs.js +0 -78
- package/dist/cjs/constants/programs.js.map +0 -1
- package/dist/cjs/constants/seeds.js +0 -76
- package/dist/cjs/constants/seeds.js.map +0 -1
- package/dist/cjs/core/client.js +0 -546
- package/dist/cjs/core/client.js.map +0 -1
- package/dist/cjs/core/connection.js +0 -350
- package/dist/cjs/core/connection.js.map +0 -1
- package/dist/cjs/core/index.js +0 -25
- package/dist/cjs/core/index.js.map +0 -1
- package/dist/cjs/errors/index.js +0 -334
- package/dist/cjs/errors/index.js.map +0 -1
- package/dist/cjs/events/geyser.js +0 -295
- package/dist/cjs/events/geyser.js.map +0 -1
- package/dist/cjs/idl/index.js +0 -63
- package/dist/cjs/idl/index.js.map +0 -1
- package/dist/cjs/idl/synapse_agent_sap.json +0 -14595
- package/dist/cjs/modules/agent.js +0 -272
- package/dist/cjs/modules/agent.js.map +0 -1
- package/dist/cjs/modules/attestation.js +0 -147
- package/dist/cjs/modules/attestation.js.map +0 -1
- package/dist/cjs/modules/base.js +0 -189
- package/dist/cjs/modules/base.js.map +0 -1
- package/dist/cjs/modules/escrow-v2.js +0 -607
- package/dist/cjs/modules/escrow-v2.js.map +0 -1
- package/dist/cjs/modules/escrow.js +0 -336
- package/dist/cjs/modules/escrow.js.map +0 -1
- package/dist/cjs/modules/feedback.js +0 -166
- package/dist/cjs/modules/feedback.js.map +0 -1
- package/dist/cjs/modules/index.js +0 -43
- package/dist/cjs/modules/index.js.map +0 -1
- package/dist/cjs/modules/indexing.js +0 -375
- package/dist/cjs/modules/indexing.js.map +0 -1
- package/dist/cjs/modules/ledger.js +0 -234
- package/dist/cjs/modules/ledger.js.map +0 -1
- package/dist/cjs/modules/receipt.js +0 -148
- package/dist/cjs/modules/receipt.js.map +0 -1
- package/dist/cjs/modules/staking.js +0 -159
- package/dist/cjs/modules/staking.js.map +0 -1
- package/dist/cjs/modules/subscription.js +0 -96
- package/dist/cjs/modules/subscription.js.map +0 -1
- package/dist/cjs/modules/tools.js +0 -345
- package/dist/cjs/modules/tools.js.map +0 -1
- package/dist/cjs/modules/vault.js +0 -427
- package/dist/cjs/modules/vault.js.map +0 -1
- package/dist/cjs/parser/client.js +0 -146
- package/dist/cjs/parser/client.js.map +0 -1
- package/dist/cjs/parser/complete.js +0 -177
- package/dist/cjs/parser/complete.js.map +0 -1
- package/dist/cjs/parser/index.js +0 -57
- package/dist/cjs/parser/index.js.map +0 -1
- package/dist/cjs/parser/inner.js +0 -185
- package/dist/cjs/parser/inner.js.map +0 -1
- package/dist/cjs/parser/instructions.js +0 -114
- package/dist/cjs/parser/instructions.js.map +0 -1
- package/dist/cjs/parser/transaction.js +0 -153
- package/dist/cjs/parser/transaction.js.map +0 -1
- package/dist/cjs/parser/types.js +0 -14
- package/dist/cjs/parser/types.js.map +0 -1
- package/dist/cjs/pda/index.js +0 -672
- package/dist/cjs/pda/index.js.map +0 -1
- package/dist/cjs/plugin/index.js +0 -952
- package/dist/cjs/plugin/index.js.map +0 -1
- package/dist/cjs/plugin/protocols.js +0 -282
- package/dist/cjs/plugin/protocols.js.map +0 -1
- package/dist/cjs/plugin/schemas.js +0 -863
- package/dist/cjs/plugin/schemas.js.map +0 -1
- package/dist/cjs/postgres/adapter.js +0 -715
- package/dist/cjs/postgres/adapter.js.map +0 -1
- package/dist/cjs/postgres/index.js +0 -50
- package/dist/cjs/postgres/index.js.map +0 -1
- package/dist/cjs/postgres/serializers.js +0 -381
- package/dist/cjs/postgres/serializers.js.map +0 -1
- package/dist/cjs/postgres/sync.js +0 -289
- package/dist/cjs/postgres/sync.js.map +0 -1
- package/dist/cjs/postgres/types.js +0 -44
- package/dist/cjs/postgres/types.js.map +0 -1
- package/dist/cjs/registries/builder.js +0 -414
- package/dist/cjs/registries/builder.js.map +0 -1
- package/dist/cjs/registries/discovery.js +0 -362
- package/dist/cjs/registries/discovery.js.map +0 -1
- package/dist/cjs/registries/fairscale.js +0 -639
- package/dist/cjs/registries/fairscale.js.map +0 -1
- package/dist/cjs/registries/index.js +0 -58
- package/dist/cjs/registries/index.js.map +0 -1
- package/dist/cjs/registries/metaplex-bridge.js +0 -743
- package/dist/cjs/registries/metaplex-bridge.js.map +0 -1
- package/dist/cjs/registries/session.js +0 -433
- package/dist/cjs/registries/session.js.map +0 -1
- package/dist/cjs/registries/x402.js +0 -668
- package/dist/cjs/registries/x402.js.map +0 -1
- package/dist/cjs/types/accounts.js +0 -13
- package/dist/cjs/types/accounts.js.map +0 -1
- package/dist/cjs/types/common.js +0 -13
- package/dist/cjs/types/common.js.map +0 -1
- package/dist/cjs/types/endpoint.js +0 -15
- package/dist/cjs/types/endpoint.js.map +0 -1
- package/dist/cjs/types/enums.js +0 -269
- package/dist/cjs/types/enums.js.map +0 -1
- package/dist/cjs/types/index.js +0 -41
- package/dist/cjs/types/index.js.map +0 -1
- package/dist/cjs/types/instructions.js +0 -92
- package/dist/cjs/types/instructions.js.map +0 -1
- package/dist/cjs/utils/anchor-errors.js +0 -453
- package/dist/cjs/utils/anchor-errors.js.map +0 -1
- package/dist/cjs/utils/endpoint-validator.js +0 -232
- package/dist/cjs/utils/endpoint-validator.js.map +0 -1
- package/dist/cjs/utils/escrow-validation.js +0 -219
- package/dist/cjs/utils/escrow-validation.js.map +0 -1
- package/dist/cjs/utils/hash.js +0 -109
- package/dist/cjs/utils/hash.js.map +0 -1
- package/dist/cjs/utils/merchant-validator.js +0 -246
- package/dist/cjs/utils/merchant-validator.js.map +0 -1
- package/dist/cjs/utils/network-normalizer.js +0 -236
- package/dist/cjs/utils/network-normalizer.js.map +0 -1
- package/dist/cjs/utils/priority-fee.js +0 -215
- package/dist/cjs/utils/priority-fee.js.map +0 -1
- package/dist/cjs/utils/rpc-strategy.js +0 -239
- package/dist/cjs/utils/rpc-strategy.js.map +0 -1
- package/dist/cjs/utils/schemas.js +0 -331
- package/dist/cjs/utils/schemas.js.map +0 -1
- package/dist/cjs/utils/serialization.js +0 -105
- package/dist/cjs/utils/serialization.js.map +0 -1
- package/dist/cjs/utils/validation.js +0 -36
- package/dist/cjs/utils/validation.js.map +0 -1
- package/dist/cjs/utils/volume-curve.js +0 -117
- package/dist/cjs/utils/volume-curve.js.map +0 -1
- package/dist/cjs/utils/x402-direct.js +0 -231
- package/dist/cjs/utils/x402-direct.js.map +0 -1
- package/dist/esm/constants/addresses.js +0 -140
- package/dist/esm/constants/addresses.js.map +0 -1
- package/dist/esm/constants/index.js +0 -35
- package/dist/esm/constants/index.js.map +0 -1
- package/dist/esm/constants/limits.js +0 -158
- package/dist/esm/constants/limits.js.map +0 -1
- package/dist/esm/constants/network.js +0 -78
- package/dist/esm/constants/network.js.map +0 -1
- package/dist/esm/constants/payments.js +0 -131
- package/dist/esm/constants/payments.js.map +0 -1
- package/dist/esm/constants/programs.js +0 -75
- package/dist/esm/constants/programs.js.map +0 -1
- package/dist/esm/constants/seeds.js +0 -73
- package/dist/esm/constants/seeds.js.map +0 -1
- package/dist/esm/core/client.js +0 -539
- package/dist/esm/core/client.js.map +0 -1
- package/dist/esm/core/connection.js +0 -345
- package/dist/esm/core/connection.js.map +0 -1
- package/dist/esm/core/index.js +0 -19
- package/dist/esm/core/index.js.map +0 -1
- package/dist/esm/errors/index.js +0 -325
- package/dist/esm/errors/index.js.map +0 -1
- package/dist/esm/events/geyser.js +0 -258
- package/dist/esm/events/geyser.js.map +0 -1
- package/dist/esm/idl/index.js +0 -57
- package/dist/esm/idl/index.js.map +0 -1
- package/dist/esm/idl/synapse_agent_sap.json +0 -14595
- package/dist/esm/modules/agent.js +0 -268
- package/dist/esm/modules/agent.js.map +0 -1
- package/dist/esm/modules/attestation.js +0 -143
- package/dist/esm/modules/attestation.js.map +0 -1
- package/dist/esm/modules/base.js +0 -185
- package/dist/esm/modules/base.js.map +0 -1
- package/dist/esm/modules/escrow-v2.js +0 -603
- package/dist/esm/modules/escrow-v2.js.map +0 -1
- package/dist/esm/modules/escrow.js +0 -332
- package/dist/esm/modules/escrow.js.map +0 -1
- package/dist/esm/modules/feedback.js +0 -162
- package/dist/esm/modules/feedback.js.map +0 -1
- package/dist/esm/modules/index.js +0 -27
- package/dist/esm/modules/index.js.map +0 -1
- package/dist/esm/modules/indexing.js +0 -371
- package/dist/esm/modules/indexing.js.map +0 -1
- package/dist/esm/modules/ledger.js +0 -230
- package/dist/esm/modules/ledger.js.map +0 -1
- package/dist/esm/modules/receipt.js +0 -144
- package/dist/esm/modules/receipt.js.map +0 -1
- package/dist/esm/modules/staking.js +0 -155
- package/dist/esm/modules/staking.js.map +0 -1
- package/dist/esm/modules/subscription.js +0 -92
- package/dist/esm/modules/subscription.js.map +0 -1
- package/dist/esm/modules/tools.js +0 -341
- package/dist/esm/modules/tools.js.map +0 -1
- package/dist/esm/modules/vault.js +0 -423
- package/dist/esm/modules/vault.js.map +0 -1
- package/dist/esm/parser/client.js +0 -142
- package/dist/esm/parser/client.js.map +0 -1
- package/dist/esm/parser/complete.js +0 -173
- package/dist/esm/parser/complete.js.map +0 -1
- package/dist/esm/parser/index.js +0 -43
- package/dist/esm/parser/index.js.map +0 -1
- package/dist/esm/parser/inner.js +0 -180
- package/dist/esm/parser/inner.js.map +0 -1
- package/dist/esm/parser/instructions.js +0 -109
- package/dist/esm/parser/instructions.js.map +0 -1
- package/dist/esm/parser/transaction.js +0 -149
- package/dist/esm/parser/transaction.js.map +0 -1
- package/dist/esm/parser/types.js +0 -13
- package/dist/esm/parser/types.js.map +0 -1
- package/dist/esm/pda/index.js +0 -638
- package/dist/esm/pda/index.js.map +0 -1
- package/dist/esm/plugin/index.js +0 -945
- package/dist/esm/plugin/index.js.map +0 -1
- package/dist/esm/plugin/protocols.js +0 -279
- package/dist/esm/plugin/protocols.js.map +0 -1
- package/dist/esm/plugin/schemas.js +0 -860
- package/dist/esm/plugin/schemas.js.map +0 -1
- package/dist/esm/postgres/adapter.js +0 -678
- package/dist/esm/postgres/adapter.js.map +0 -1
- package/dist/esm/postgres/index.js +0 -27
- package/dist/esm/postgres/index.js.map +0 -1
- package/dist/esm/postgres/serializers.js +0 -362
- package/dist/esm/postgres/serializers.js.map +0 -1
- package/dist/esm/postgres/sync.js +0 -285
- package/dist/esm/postgres/sync.js.map +0 -1
- package/dist/esm/postgres/types.js +0 -41
- package/dist/esm/postgres/types.js.map +0 -1
- package/dist/esm/registries/builder.js +0 -410
- package/dist/esm/registries/builder.js.map +0 -1
- package/dist/esm/registries/discovery.js +0 -358
- package/dist/esm/registries/discovery.js.map +0 -1
- package/dist/esm/registries/fairscale.js +0 -633
- package/dist/esm/registries/fairscale.js.map +0 -1
- package/dist/esm/registries/index.js +0 -46
- package/dist/esm/registries/index.js.map +0 -1
- package/dist/esm/registries/metaplex-bridge.js +0 -706
- package/dist/esm/registries/metaplex-bridge.js.map +0 -1
- package/dist/esm/registries/session.js +0 -429
- package/dist/esm/registries/session.js.map +0 -1
- package/dist/esm/registries/x402.js +0 -664
- package/dist/esm/registries/x402.js.map +0 -1
- package/dist/esm/types/accounts.js +0 -12
- package/dist/esm/types/accounts.js.map +0 -1
- package/dist/esm/types/common.js +0 -12
- package/dist/esm/types/common.js.map +0 -1
- package/dist/esm/types/endpoint.js +0 -14
- package/dist/esm/types/endpoint.js.map +0 -1
- package/dist/esm/types/enums.js +0 -266
- package/dist/esm/types/enums.js.map +0 -1
- package/dist/esm/types/index.js +0 -25
- package/dist/esm/types/index.js.map +0 -1
- package/dist/esm/types/instructions.js +0 -89
- package/dist/esm/types/instructions.js.map +0 -1
- package/dist/esm/utils/anchor-errors.js +0 -447
- package/dist/esm/utils/anchor-errors.js.map +0 -1
- package/dist/esm/utils/endpoint-validator.js +0 -226
- package/dist/esm/utils/endpoint-validator.js.map +0 -1
- package/dist/esm/utils/escrow-validation.js +0 -212
- package/dist/esm/utils/escrow-validation.js.map +0 -1
- package/dist/esm/utils/hash.js +0 -103
- package/dist/esm/utils/hash.js.map +0 -1
- package/dist/esm/utils/merchant-validator.js +0 -241
- package/dist/esm/utils/merchant-validator.js.map +0 -1
- package/dist/esm/utils/network-normalizer.js +0 -229
- package/dist/esm/utils/network-normalizer.js.map +0 -1
- package/dist/esm/utils/priority-fee.js +0 -209
- package/dist/esm/utils/priority-fee.js.map +0 -1
- package/dist/esm/utils/rpc-strategy.js +0 -231
- package/dist/esm/utils/rpc-strategy.js.map +0 -1
- package/dist/esm/utils/schemas.js +0 -320
- package/dist/esm/utils/schemas.js.map +0 -1
- package/dist/esm/utils/serialization.js +0 -98
- package/dist/esm/utils/serialization.js.map +0 -1
- package/dist/esm/utils/validation.js +0 -33
- package/dist/esm/utils/validation.js.map +0 -1
- package/dist/esm/utils/volume-curve.js +0 -114
- package/dist/esm/utils/volume-curve.js.map +0 -1
- package/dist/esm/utils/x402-direct.js +0 -228
- package/dist/esm/utils/x402-direct.js.map +0 -1
- package/dist/types/constants/addresses.d.ts +0 -117
- package/dist/types/constants/addresses.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -31
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/constants/limits.d.ts +0 -149
- package/dist/types/constants/limits.d.ts.map +0 -1
- package/dist/types/constants/network.d.ts +0 -81
- package/dist/types/constants/network.d.ts.map +0 -1
- package/dist/types/constants/payments.d.ts +0 -121
- package/dist/types/constants/payments.d.ts.map +0 -1
- package/dist/types/constants/programs.d.ts +0 -69
- package/dist/types/constants/programs.d.ts.map +0 -1
- package/dist/types/constants/seeds.d.ts +0 -80
- package/dist/types/constants/seeds.d.ts.map +0 -1
- package/dist/types/core/client.d.ts +0 -452
- package/dist/types/core/client.d.ts.map +0 -1
- package/dist/types/core/connection.d.ts +0 -305
- package/dist/types/core/connection.d.ts.map +0 -1
- package/dist/types/core/index.d.ts +0 -20
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/errors/index.d.ts +0 -276
- package/dist/types/errors/index.d.ts.map +0 -1
- package/dist/types/events/geyser.d.ts +0 -150
- package/dist/types/events/geyser.d.ts.map +0 -1
- package/dist/types/events/index.d.ts +0 -248
- package/dist/types/events/index.d.ts.map +0 -1
- package/dist/types/idl/index.d.ts +0 -70
- package/dist/types/idl/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -85
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/modules/agent.d.ts +0 -166
- package/dist/types/modules/agent.d.ts.map +0 -1
- package/dist/types/modules/attestation.d.ts +0 -96
- package/dist/types/modules/attestation.d.ts.map +0 -1
- package/dist/types/modules/base.d.ts +0 -161
- package/dist/types/modules/base.d.ts.map +0 -1
- package/dist/types/modules/escrow-v2.d.ts +0 -169
- package/dist/types/modules/escrow-v2.d.ts.map +0 -1
- package/dist/types/modules/escrow.d.ts +0 -168
- package/dist/types/modules/escrow.d.ts.map +0 -1
- package/dist/types/modules/feedback.d.ts +0 -105
- package/dist/types/modules/feedback.d.ts.map +0 -1
- package/dist/types/modules/index.d.ts +0 -28
- package/dist/types/modules/index.d.ts.map +0 -1
- package/dist/types/modules/indexing.d.ts +0 -200
- package/dist/types/modules/indexing.d.ts.map +0 -1
- package/dist/types/modules/ledger.d.ts +0 -150
- package/dist/types/modules/ledger.d.ts.map +0 -1
- package/dist/types/modules/receipt.d.ts +0 -77
- package/dist/types/modules/receipt.d.ts.map +0 -1
- package/dist/types/modules/staking.d.ts +0 -51
- package/dist/types/modules/staking.d.ts.map +0 -1
- package/dist/types/modules/subscription.d.ts +0 -33
- package/dist/types/modules/subscription.d.ts.map +0 -1
- package/dist/types/modules/tools.d.ts +0 -182
- package/dist/types/modules/tools.d.ts.map +0 -1
- package/dist/types/modules/vault.d.ts +0 -240
- package/dist/types/modules/vault.d.ts.map +0 -1
- package/dist/types/parser/client.d.ts +0 -123
- package/dist/types/parser/client.d.ts.map +0 -1
- package/dist/types/parser/complete.d.ts +0 -90
- package/dist/types/parser/complete.d.ts.map +0 -1
- package/dist/types/parser/index.d.ts +0 -40
- package/dist/types/parser/index.d.ts.map +0 -1
- package/dist/types/parser/inner.d.ts +0 -114
- package/dist/types/parser/inner.d.ts.map +0 -1
- package/dist/types/parser/instructions.d.ts +0 -76
- package/dist/types/parser/instructions.d.ts.map +0 -1
- package/dist/types/parser/transaction.d.ts +0 -77
- package/dist/types/parser/transaction.d.ts.map +0 -1
- package/dist/types/parser/types.d.ts +0 -154
- package/dist/types/parser/types.d.ts.map +0 -1
- package/dist/types/pda/index.d.ts +0 -510
- package/dist/types/pda/index.d.ts.map +0 -1
- package/dist/types/plugin/index.d.ts +0 -171
- package/dist/types/plugin/index.d.ts.map +0 -1
- package/dist/types/plugin/protocols.d.ts +0 -152
- package/dist/types/plugin/protocols.d.ts.map +0 -1
- package/dist/types/plugin/schemas.d.ts +0 -829
- package/dist/types/plugin/schemas.d.ts.map +0 -1
- package/dist/types/postgres/adapter.d.ts +0 -355
- package/dist/types/postgres/adapter.d.ts.map +0 -1
- package/dist/types/postgres/index.d.ts +0 -24
- package/dist/types/postgres/index.d.ts.map +0 -1
- package/dist/types/postgres/serializers.d.ts +0 -30
- package/dist/types/postgres/serializers.d.ts.map +0 -1
- package/dist/types/postgres/sync.d.ts +0 -156
- package/dist/types/postgres/sync.d.ts.map +0 -1
- package/dist/types/postgres/types.d.ts +0 -167
- package/dist/types/postgres/types.d.ts.map +0 -1
- package/dist/types/registries/builder.d.ts +0 -340
- package/dist/types/registries/builder.d.ts.map +0 -1
- package/dist/types/registries/discovery.d.ts +0 -333
- package/dist/types/registries/discovery.d.ts.map +0 -1
- package/dist/types/registries/fairscale.d.ts +0 -680
- package/dist/types/registries/fairscale.d.ts.map +0 -1
- package/dist/types/registries/index.d.ts +0 -52
- package/dist/types/registries/index.d.ts.map +0 -1
- package/dist/types/registries/metaplex-bridge.d.ts +0 -488
- package/dist/types/registries/metaplex-bridge.d.ts.map +0 -1
- package/dist/types/registries/session.d.ts +0 -323
- package/dist/types/registries/session.d.ts.map +0 -1
- package/dist/types/registries/x402.d.ts +0 -530
- package/dist/types/registries/x402.d.ts.map +0 -1
- package/dist/types/types/accounts.d.ts +0 -765
- package/dist/types/types/accounts.d.ts.map +0 -1
- package/dist/types/types/common.d.ts +0 -166
- package/dist/types/types/common.d.ts.map +0 -1
- package/dist/types/types/endpoint.d.ts +0 -161
- package/dist/types/types/endpoint.d.ts.map +0 -1
- package/dist/types/types/enums.d.ts +0 -353
- package/dist/types/types/enums.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -29
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/instructions.d.ts +0 -400
- package/dist/types/types/instructions.d.ts.map +0 -1
- package/dist/types/utils/anchor-errors.d.ts +0 -61
- package/dist/types/utils/anchor-errors.d.ts.map +0 -1
- package/dist/types/utils/endpoint-validator.d.ts +0 -110
- package/dist/types/utils/endpoint-validator.d.ts.map +0 -1
- package/dist/types/utils/escrow-validation.d.ts +0 -145
- package/dist/types/utils/escrow-validation.d.ts.map +0 -1
- package/dist/types/utils/hash.d.ts +0 -75
- package/dist/types/utils/hash.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -36
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/merchant-validator.d.ts +0 -176
- package/dist/types/utils/merchant-validator.d.ts.map +0 -1
- package/dist/types/utils/network-normalizer.d.ts +0 -120
- package/dist/types/utils/network-normalizer.d.ts.map +0 -1
- package/dist/types/utils/priority-fee.d.ts +0 -205
- package/dist/types/utils/priority-fee.d.ts.map +0 -1
- package/dist/types/utils/rpc-strategy.d.ts +0 -172
- package/dist/types/utils/rpc-strategy.d.ts.map +0 -1
- package/dist/types/utils/schemas.d.ts +0 -351
- package/dist/types/utils/schemas.d.ts.map +0 -1
- package/dist/types/utils/serialization.d.ts +0 -69
- package/dist/types/utils/serialization.d.ts.map +0 -1
- package/dist/types/utils/validation.d.ts +0 -29
- package/dist/types/utils/validation.d.ts.map +0 -1
- package/dist/types/utils/volume-curve.d.ts +0 -60
- package/dist/types/utils/volume-curve.d.ts.map +0 -1
- package/dist/types/utils/x402-direct.d.ts +0 -114
- package/dist/types/utils/x402-direct.d.ts.map +0 -1
- package/src/constants/addresses.ts +0 -162
- package/src/constants/index.ts +0 -69
- package/src/constants/limits.ts +0 -165
- package/src/constants/network.ts +0 -89
- package/src/constants/payments.ts +0 -145
- package/src/constants/programs.ts +0 -83
- package/src/constants/seeds.ts +0 -85
- package/src/core/client.ts +0 -583
- package/src/core/connection.ts +0 -461
- package/src/core/index.ts +0 -20
- package/src/errors/index.ts +0 -346
- package/src/events/geyser.ts +0 -384
- package/src/events/index.ts +0 -335
- package/src/events/yellowstone.d.ts +0 -7
- package/src/idl/index.ts +0 -76
- package/src/idl/synapse_agent_sap.json +0 -14595
- package/src/index.ts +0 -421
- package/src/modules/agent.ts +0 -319
- package/src/modules/attestation.ts +0 -168
- package/src/modules/base.ts +0 -247
- package/src/modules/escrow-v2.ts +0 -871
- package/src/modules/escrow.ts +0 -439
- package/src/modules/feedback.ts +0 -186
- package/src/modules/index.ts +0 -28
- package/src/modules/indexing.ts +0 -444
- package/src/modules/ledger.ts +0 -262
- package/src/modules/receipt.ts +0 -212
- package/src/modules/staking.ts +0 -223
- package/src/modules/subscription.ts +0 -147
- package/src/modules/tools.ts +0 -454
- package/src/modules/vault.ts +0 -558
- package/src/parser/client.ts +0 -211
- package/src/parser/complete.ts +0 -232
- package/src/parser/index.ts +0 -71
- package/src/parser/inner.ts +0 -255
- package/src/parser/instructions.ts +0 -135
- package/src/parser/transaction.ts +0 -200
- package/src/parser/types.ts +0 -182
- package/src/pda/index.ts +0 -919
- package/src/plugin/index.ts +0 -1224
- package/src/plugin/protocols.ts +0 -404
- package/src/plugin/schemas.ts +0 -941
- package/src/postgres/adapter.ts +0 -904
- package/src/postgres/index.ts +0 -59
- package/src/postgres/schema.sql +0 -683
- package/src/postgres/serializers.ts +0 -485
- package/src/postgres/sync.ts +0 -340
- package/src/postgres/types.ts +0 -245
- package/src/registries/builder.ts +0 -607
- package/src/registries/discovery.ts +0 -572
- package/src/registries/fairscale.ts +0 -1278
- package/src/registries/index.ts +0 -143
- package/src/registries/metaplex-bridge.ts +0 -1199
- package/src/registries/session.ts +0 -613
- package/src/registries/x402.ts +0 -1048
- package/src/types/accounts.ts +0 -858
- package/src/types/common.ts +0 -187
- package/src/types/endpoint.ts +0 -181
- package/src/types/enums.ts +0 -333
- package/src/types/index.ts +0 -121
- package/src/types/instructions.ts +0 -453
- package/src/utils/anchor-errors.ts +0 -461
- package/src/utils/endpoint-validator.ts +0 -300
- package/src/utils/escrow-validation.ts +0 -301
- package/src/utils/hash.ts +0 -113
- package/src/utils/index.ts +0 -118
- package/src/utils/merchant-validator.ts +0 -359
- package/src/utils/network-normalizer.ts +0 -240
- package/src/utils/priority-fee.ts +0 -325
- package/src/utils/rpc-strategy.ts +0 -322
- package/src/utils/schemas.ts +0 -359
- package/src/utils/serialization.ts +0 -98
- package/src/utils/validation.ts +0 -36
- package/src/utils/volume-curve.ts +0 -131
- package/src/utils/x402-direct.ts +0 -370
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../../src/modules/ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEjE;;;;;;;GAOG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAG1C;;;;;;;OAOG;IACH,YAAY,CAAC,UAAU,EAAE,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAIjE;;;;;;;;OAQG;IACH,gBAAgB,CACd,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,GAChB,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAM/B;;;;;;OAMG;IACG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAchE;;;;;;;;;OASG;IACG,KAAK,CACT,UAAU,EAAE,SAAS,EACrB,IAAI,EAAE,MAAM,GAAG,UAAU,EACzB,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,oBAAoB,CAAC;IAahC;;;;;;;;OAQG;IACG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAkBhE;;;;;;OAMG;IACG,KAAK,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAejE;;;;;;;OAOG;IACG,WAAW,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKnE;;;;;;;OAOG;IACG,mBAAmB,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKlF;;;;;;;;OAQG;IACG,SAAS,CACb,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC;IAK1B;;;;;;;;OAQG;IACG,iBAAiB,CACrB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAKjC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,GAAG,UAAU,EAAE;CAgB5D"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module receipt
|
|
3
|
-
* @description Receipt-based trustless dispute resolution (v0.7).
|
|
4
|
-
*
|
|
5
|
-
* Agents inscribe merkle roots of call receipt batches on-chain.
|
|
6
|
-
* During disputes, agents submit merkle inclusion proofs to prove delivery.
|
|
7
|
-
* After the proof deadline, anyone can trigger automatic proportional resolution.
|
|
8
|
-
*
|
|
9
|
-
* @category Modules
|
|
10
|
-
* @since v0.7.0
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import { type PublicKey, type TransactionSignature } from "@solana/web3.js";
|
|
14
|
-
import { BN } from "@coral-xyz/anchor";
|
|
15
|
-
import { BaseModule } from "./base";
|
|
16
|
-
import type { ReceiptBatchData } from "../types";
|
|
17
|
-
/**
|
|
18
|
-
* @name ReceiptModule
|
|
19
|
-
* @description Manages receipt batch inscriptions, merkle proof submissions,
|
|
20
|
-
* and automatic dispute resolution for the v0.7 trustless settlement layer.
|
|
21
|
-
*
|
|
22
|
-
* @category Modules
|
|
23
|
-
* @since v0.7.0
|
|
24
|
-
* @extends BaseModule
|
|
25
|
-
*/
|
|
26
|
-
export declare class ReceiptModule extends BaseModule {
|
|
27
|
-
private toNum;
|
|
28
|
-
deriveReceiptBatch(escrowV2Pda: PublicKey, batchIndex: number): readonly [PublicKey, number];
|
|
29
|
-
/**
|
|
30
|
-
* Inscribe a receipt batch merkle root on-chain.
|
|
31
|
-
*
|
|
32
|
-
* Called by the **agent** to commit a cryptographic proof of calls delivered.
|
|
33
|
-
* The `merkleRoot` is the root of a merkle tree whose leaves are individual
|
|
34
|
-
* call receipt hashes.
|
|
35
|
-
*
|
|
36
|
-
* @param depositorWallet - The depositor's wallet (needed for escrow PDA derivation).
|
|
37
|
-
* @param nonce - Escrow nonce.
|
|
38
|
-
* @param batchIndex - Zero-based batch index (must equal escrow.receipt_batch_count).
|
|
39
|
-
* @param merkleRoot - 32-byte merkle root of the receipt batch.
|
|
40
|
-
* @param callCount - Number of calls in the batch.
|
|
41
|
-
* @param periodStart - Unix timestamp for the start of the covered period.
|
|
42
|
-
* @param periodEnd - Unix timestamp for the end of the covered period.
|
|
43
|
-
*/
|
|
44
|
-
inscribeReceiptBatch(depositorWallet: PublicKey, nonce: BN | number | bigint, batchIndex: number, merkleRoot: number[], callCount: BN | number | bigint, periodStart: BN | number | bigint, periodEnd: BN | number | bigint): Promise<TransactionSignature>;
|
|
45
|
-
/**
|
|
46
|
-
* Submit a merkle inclusion proof during a dispute.
|
|
47
|
-
*
|
|
48
|
-
* Called by the **agent** to prove delivery of specific calls.
|
|
49
|
-
* Each proof verifies that a set of receipt hashes are included
|
|
50
|
-
* in the previously inscribed merkle root.
|
|
51
|
-
*
|
|
52
|
-
* @param depositorWallet - The depositor's wallet.
|
|
53
|
-
* @param nonce - Escrow nonce.
|
|
54
|
-
* @param settlementIndex - Index of the disputed pending settlement.
|
|
55
|
-
* @param batchIndex - Receipt batch index containing the proof.
|
|
56
|
-
* @param provenCount - Number of calls proven in this proof submission.
|
|
57
|
-
* @param proof - Array of 32-byte merkle proof hashes.
|
|
58
|
-
* @param leaf - The 32-byte leaf hash being proven.
|
|
59
|
-
*/
|
|
60
|
-
submitReceiptProof(depositorWallet: PublicKey, nonce: BN | number | bigint, settlementIndex: BN | number | bigint, batchIndex: number, provenCount: BN | number | bigint, proof: number[][], leaf: number[]): Promise<TransactionSignature>;
|
|
61
|
-
/**
|
|
62
|
-
* Trigger automatic dispute resolution after the proof deadline.
|
|
63
|
-
*
|
|
64
|
-
* Permissionless crank — anyone can call this once the deadline has passed.
|
|
65
|
-
* Resolution is proportional: if the agent proved N of M claimed calls,
|
|
66
|
-
* N/M of the settlement amount goes to the agent, the rest is refunded.
|
|
67
|
-
*
|
|
68
|
-
* @param agentWallet - The agent's wallet.
|
|
69
|
-
* @param depositorWallet - The depositor's wallet.
|
|
70
|
-
* @param nonce - Escrow nonce.
|
|
71
|
-
* @param settlementIndex - Index of the disputed pending settlement.
|
|
72
|
-
*/
|
|
73
|
-
autoResolveDispute(agentWallet: PublicKey, depositorWallet: PublicKey, nonce: BN | number | bigint, settlementIndex: BN | number | bigint): Promise<TransactionSignature>;
|
|
74
|
-
fetchReceiptBatch(escrowV2Pda: PublicKey, batchIndex: number): Promise<ReceiptBatchData>;
|
|
75
|
-
fetchReceiptBatchNullable(escrowV2Pda: PublicKey, batchIndex: number): Promise<ReceiptBatchData | null>;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=receipt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file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B,WAAW,EAAE,SAAS,EACtB,eAAe,EAAE,SAAS,EAC1B,KAAK,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,EAC3B,eAAe,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,GACpC,OAAO,CAAC,oBAAoB,CAAC;IA2B1B,iBAAiB,CACrB,WAAW,EAAE,SAAS,EACtB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,gBAAgB,CAAC;IAKtB,yBAAyB,CAC7B,WAAW,EAAE,SAAS,EACtB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAIpC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module staking
|
|
3
|
-
* @description Agent staking lifecycle — init, deposit, request unstake,
|
|
4
|
-
* complete unstake, and fetch stake accounts.
|
|
5
|
-
*
|
|
6
|
-
* @category Modules
|
|
7
|
-
* @since v0.7.0
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import { type PublicKey, type TransactionSignature } from "@solana/web3.js";
|
|
11
|
-
import { BN } from "@coral-xyz/anchor";
|
|
12
|
-
import { BaseModule } from "./base";
|
|
13
|
-
import type { AgentStakeData } from "../types";
|
|
14
|
-
/**
|
|
15
|
-
* @name StakingModule
|
|
16
|
-
* @description Manages agent stake accounts — init, deposit, unstake, and fetch.
|
|
17
|
-
*
|
|
18
|
-
* @category Modules
|
|
19
|
-
* @since v0.7.0
|
|
20
|
-
* @extends BaseModule
|
|
21
|
-
*/
|
|
22
|
-
export declare class StakingModule extends BaseModule {
|
|
23
|
-
deriveStake(agentPda: PublicKey): readonly [PublicKey, number];
|
|
24
|
-
initStake(agentWallet: PublicKey, initialDeposit: BN | number | bigint): Promise<TransactionSignature>;
|
|
25
|
-
deposit(agentWallet: PublicKey, amount: BN | number | bigint): Promise<TransactionSignature>;
|
|
26
|
-
requestUnstake(agentWallet: PublicKey, amount: BN | number | bigint): Promise<TransactionSignature>;
|
|
27
|
-
completeUnstake(agentWallet: PublicKey): Promise<TransactionSignature>;
|
|
28
|
-
fetch(agentPda: PublicKey): Promise<AgentStakeData>;
|
|
29
|
-
fetchNullable(agentPda: PublicKey): Promise<AgentStakeData | null>;
|
|
30
|
-
fetchByPda(stakePda: PublicKey): Promise<AgentStakeData>;
|
|
31
|
-
/**
|
|
32
|
-
* Compute the maximum amount that can be requested via `requestUnstake`
|
|
33
|
-
* without breaching the on-chain {@link MIN_AGENT_STAKE_LAMPORTS} floor.
|
|
34
|
-
*
|
|
35
|
-
* Returns 0 if the agent is already at (or below) the floor.
|
|
36
|
-
*
|
|
37
|
-
* @since v0.11.0
|
|
38
|
-
*/
|
|
39
|
-
getMaxUnstakeLamports(stake: AgentStakeData): bigint;
|
|
40
|
-
/**
|
|
41
|
-
* Returns the lamport delta the agent must `deposit` to satisfy the
|
|
42
|
-
* per-escrow stake-coverage requirement for `escrowLamports`. 0 if already
|
|
43
|
-
* sufficient. Useful for a UI "top up to open this escrow" button.
|
|
44
|
-
*
|
|
45
|
-
* Mirrors the on-chain check in `create_escrow_v2` (v0.11 H-1).
|
|
46
|
-
*
|
|
47
|
-
* @since v0.11.0
|
|
48
|
-
*/
|
|
49
|
-
getRequiredTopUp(stake: AgentStakeData, escrowLamports: bigint): bigint;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=staking.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staking.d.ts","sourceRoot":"","sources":["../../../src/modules/staking.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAO/C;;;;;;;GAOG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAG3C,WAAW,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAMxD,SAAS,CACb,WAAW,EAAE,SAAS,EACtB,cAAc,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,GACnC,OAAO,CAAC,oBAAoB,CAAC;IA6B1B,OAAO,CACX,WAAW,EAAE,SAAS,EACtB,MAAM,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAyB1B,cAAc,CAClB,WAAW,EAAE,SAAS,EACtB,MAAM,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAoC1B,eAAe,CACnB,WAAW,EAAE,SAAS,GACrB,OAAO,CAAC,oBAAoB,CAAC;IAmC1B,KAAK,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC;IAKnD,aAAa,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAKlE,UAAU,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC;IAM9D;;;;;;;OAOG;IACH,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM;IAMpD;;;;;;;;OAQG;IACH,gBAAgB,CAAC,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM;CAKxE"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module subscription
|
|
3
|
-
* @description Agent subscription lifecycle — create, fund, cancel,
|
|
4
|
-
* close, and fetch subscription accounts.
|
|
5
|
-
*
|
|
6
|
-
* @category Modules
|
|
7
|
-
* @since v0.7.0
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import { type PublicKey, type TransactionSignature } from "@solana/web3.js";
|
|
11
|
-
import { BN } from "@coral-xyz/anchor";
|
|
12
|
-
import { BaseModule } from "./base";
|
|
13
|
-
import type { SubscriptionData, CreateSubscriptionArgs } from "../types";
|
|
14
|
-
/**
|
|
15
|
-
* @name SubscriptionModule
|
|
16
|
-
* @description Manages recurring subscriptions between subscribers and agents.
|
|
17
|
-
*
|
|
18
|
-
* @category Modules
|
|
19
|
-
* @since v0.7.0
|
|
20
|
-
* @extends BaseModule
|
|
21
|
-
*/
|
|
22
|
-
export declare class SubscriptionModule extends BaseModule {
|
|
23
|
-
private toNum;
|
|
24
|
-
deriveSubscription(agentPda: PublicKey, subscriber?: PublicKey, subId?: BN | number | bigint): readonly [PublicKey, number];
|
|
25
|
-
create(agentWallet: PublicKey, args: CreateSubscriptionArgs): Promise<TransactionSignature>;
|
|
26
|
-
fund(agentWallet: PublicKey, subId: BN | number | bigint, amount: BN | number | bigint): Promise<TransactionSignature>;
|
|
27
|
-
cancel(agentWallet: PublicKey, subId?: BN | number | bigint): Promise<TransactionSignature>;
|
|
28
|
-
close(agentWallet: PublicKey, subId?: BN | number | bigint): Promise<TransactionSignature>;
|
|
29
|
-
fetch(agentPda: PublicKey, subscriber?: PublicKey, subId?: BN | number | bigint): Promise<SubscriptionData>;
|
|
30
|
-
fetchNullable(agentPda: PublicKey, subscriber?: PublicKey, subId?: BN | number | bigint): Promise<SubscriptionData | null>;
|
|
31
|
-
fetchByPda(subPda: PublicKey): Promise<SubscriptionData>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/modules/subscription.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE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 -1,182 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module tools
|
|
3
|
-
* @description Tool schema registry and session checkpoints for the
|
|
4
|
-
* Synapse Agent Protocol.
|
|
5
|
-
*
|
|
6
|
-
* Covers: publish, inscribe schema, update, deactivate/reactivate,
|
|
7
|
-
* close, report invocations, and session checkpoint management.
|
|
8
|
-
*
|
|
9
|
-
* @category Modules
|
|
10
|
-
* @since v0.1.0
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import { type PublicKey, type TransactionSignature } from "@solana/web3.js";
|
|
14
|
-
import { BaseModule } from "./base";
|
|
15
|
-
import type { ToolDescriptorData, SessionCheckpointData, PublishToolArgs, UpdateToolArgs, InscribeToolSchemaArgs } from "../types";
|
|
16
|
-
/**
|
|
17
|
-
* @name ToolsModule
|
|
18
|
-
* @description Manages tool descriptors and session checkpoints for the
|
|
19
|
-
* Synapse Agent Protocol. Provides methods to publish, update, deactivate,
|
|
20
|
-
* reactivate, close, and fetch tool descriptors, as well as inscribe
|
|
21
|
-
* JSON schemas into TX logs and manage session checkpoints.
|
|
22
|
-
*
|
|
23
|
-
* @category Modules
|
|
24
|
-
* @since v0.1.0
|
|
25
|
-
* @extends BaseModule
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const sap = new SapClient(provider);
|
|
30
|
-
* // Publish a tool by name (auto-hashes)
|
|
31
|
-
* const sig = await sap.tools.publishByName(
|
|
32
|
-
* "getWeather", "mcp-v1", "Fetch weather",
|
|
33
|
-
* '{"type":"object"}', '{"type":"object"}',
|
|
34
|
-
* 0, 1, 2, 1, false,
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare class ToolsModule extends BaseModule {
|
|
39
|
-
/**
|
|
40
|
-
* @name deriveTool
|
|
41
|
-
* @description Derive the `ToolDescriptor` PDA for a given agent and tool name.
|
|
42
|
-
* The tool name is SHA-256 hashed internally.
|
|
43
|
-
* @param agentPda - The agent account PDA.
|
|
44
|
-
* @param toolName - The human-readable tool name.
|
|
45
|
-
* @returns A tuple of `[PublicKey, bump]` for the tool PDA.
|
|
46
|
-
* @see {@link deriveTool} from `pda/` module for the underlying derivation.
|
|
47
|
-
* @since v0.1.0
|
|
48
|
-
*/
|
|
49
|
-
deriveTool(agentPda: PublicKey, toolName: string): readonly [PublicKey, number];
|
|
50
|
-
/**
|
|
51
|
-
* @name publish
|
|
52
|
-
* @description Publish a new tool descriptor for an agent using pre-computed
|
|
53
|
-
* hashes. For auto-hashing, prefer {@link publishByName}.
|
|
54
|
-
* @param args - Tool publication parameters (name, hashes, HTTP method, category, params, etc.).
|
|
55
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
56
|
-
* @since v0.1.0
|
|
57
|
-
*/
|
|
58
|
-
publish(args: PublishToolArgs): Promise<TransactionSignature>;
|
|
59
|
-
/**
|
|
60
|
-
* @name publishByName
|
|
61
|
-
* @description Convenience method to publish a tool using string names.
|
|
62
|
-
* All string arguments are automatically SHA-256 hashed.
|
|
63
|
-
* @param toolName - Human-readable tool name.
|
|
64
|
-
* @param protocolId - Protocol identifier (e.g. `"mcp-v1"`).
|
|
65
|
-
* @param description - Tool description text.
|
|
66
|
-
* @param inputSchema - JSON schema string for input validation.
|
|
67
|
-
* @param outputSchema - JSON schema string for output validation.
|
|
68
|
-
* @param httpMethod - Numeric HTTP method enum value.
|
|
69
|
-
* @param category - Numeric tool category enum value.
|
|
70
|
-
* @param paramsCount - Total number of parameters.
|
|
71
|
-
* @param requiredParams - Number of required parameters.
|
|
72
|
-
* @param isCompound - Whether the tool is a compound (multi-step) tool.
|
|
73
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
74
|
-
* @since v0.1.0
|
|
75
|
-
*/
|
|
76
|
-
publishByName(toolName: string, protocolId: string, description: string, inputSchema: string, outputSchema: string, httpMethod: number, category: number, paramsCount: number, requiredParams: number, isCompound: boolean): Promise<TransactionSignature>;
|
|
77
|
-
/**
|
|
78
|
-
* @name inscribeSchema
|
|
79
|
-
* @description Inscribe a full JSON schema into the transaction log (zero rent).
|
|
80
|
-
* The schema is stored as TX log data, not as PDA account data.
|
|
81
|
-
* @param toolName - The human-readable tool name.
|
|
82
|
-
* @param args - Schema inscription parameters (type, data, hash, compression).
|
|
83
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
84
|
-
* @since v0.1.0
|
|
85
|
-
*/
|
|
86
|
-
inscribeSchema(toolName: string, args: InscribeToolSchemaArgs): Promise<TransactionSignature>;
|
|
87
|
-
/**
|
|
88
|
-
* @name update
|
|
89
|
-
* @description Update a tool’s schema hashes and bump its version.
|
|
90
|
-
* All fields are optional — only non-null values are written.
|
|
91
|
-
* @param toolName - The human-readable tool name.
|
|
92
|
-
* @param args - Partial update parameters (hashes, method, category, params).
|
|
93
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
94
|
-
* @since v0.1.0
|
|
95
|
-
*/
|
|
96
|
-
update(toolName: string, args: UpdateToolArgs): Promise<TransactionSignature>;
|
|
97
|
-
/**
|
|
98
|
-
* @name deactivate
|
|
99
|
-
* @description Deactivate a tool. The tool remains discoverable but is
|
|
100
|
-
* marked as unavailable.
|
|
101
|
-
* @param toolName - The human-readable tool name.
|
|
102
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
103
|
-
* @since v0.1.0
|
|
104
|
-
*/
|
|
105
|
-
deactivate(toolName: string): Promise<TransactionSignature>;
|
|
106
|
-
/**
|
|
107
|
-
* @name reactivate
|
|
108
|
-
* @description Reactivate a previously deactivated tool.
|
|
109
|
-
* @param toolName - The human-readable tool name.
|
|
110
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
111
|
-
* @since v0.1.0
|
|
112
|
-
*/
|
|
113
|
-
reactivate(toolName: string): Promise<TransactionSignature>;
|
|
114
|
-
/**
|
|
115
|
-
* @name close
|
|
116
|
-
* @description Close a tool PDA and reclaim rent to the owner wallet.
|
|
117
|
-
* @param toolName - The human-readable tool name.
|
|
118
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
119
|
-
* @since v0.1.0
|
|
120
|
-
*/
|
|
121
|
-
close(toolName: string): Promise<TransactionSignature>;
|
|
122
|
-
/**
|
|
123
|
-
* @name reportInvocations
|
|
124
|
-
* @description Report tool invocation count. Updates the on-chain counter
|
|
125
|
-
* for analytics and discovery ranking.
|
|
126
|
-
* @param toolName - The human-readable tool name.
|
|
127
|
-
* @param invocations - The number of invocations to report.
|
|
128
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
129
|
-
* @since v0.1.0
|
|
130
|
-
*/
|
|
131
|
-
reportInvocations(toolName: string, invocations: number | bigint): Promise<TransactionSignature>;
|
|
132
|
-
/**
|
|
133
|
-
* @name createCheckpoint
|
|
134
|
-
* @description Create a checkpoint snapshot of the current session state.
|
|
135
|
-
* Checkpoints are indexed by session PDA and checkpoint index.
|
|
136
|
-
* @param sessionPda - The session ledger PDA.
|
|
137
|
-
* @param checkpointIndex - The zero-based checkpoint index.
|
|
138
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
139
|
-
* @since v0.1.0
|
|
140
|
-
*/
|
|
141
|
-
createCheckpoint(sessionPda: PublicKey, checkpointIndex: number): Promise<TransactionSignature>;
|
|
142
|
-
/**
|
|
143
|
-
* @name closeCheckpoint
|
|
144
|
-
* @description Close a checkpoint PDA and reclaim rent.
|
|
145
|
-
* @param sessionPda - The session ledger PDA.
|
|
146
|
-
* @param checkpointIndex - The zero-based checkpoint index.
|
|
147
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
148
|
-
* @since v0.1.0
|
|
149
|
-
*/
|
|
150
|
-
closeCheckpoint(sessionPda: PublicKey, checkpointIndex: number): Promise<TransactionSignature>;
|
|
151
|
-
/**
|
|
152
|
-
* @name fetch
|
|
153
|
-
* @description Fetch a deserialized `ToolDescriptor` account.
|
|
154
|
-
* @param agentPda - The agent account PDA.
|
|
155
|
-
* @param toolName - The human-readable tool name.
|
|
156
|
-
* @returns {Promise<ToolDescriptorData>} The tool descriptor data.
|
|
157
|
-
* @throws Will throw if the tool descriptor does not exist.
|
|
158
|
-
* @since v0.1.0
|
|
159
|
-
*/
|
|
160
|
-
fetch(agentPda: PublicKey, toolName: string): Promise<ToolDescriptorData>;
|
|
161
|
-
/**
|
|
162
|
-
* @name fetchNullable
|
|
163
|
-
* @description Fetch a deserialized `ToolDescriptor` account, or `null`
|
|
164
|
-
* if it does not exist on-chain.
|
|
165
|
-
* @param agentPda - The agent account PDA.
|
|
166
|
-
* @param toolName - The human-readable tool name.
|
|
167
|
-
* @returns {Promise<ToolDescriptorData | null>} The tool data or `null`.
|
|
168
|
-
* @since v0.1.0
|
|
169
|
-
*/
|
|
170
|
-
fetchNullable(agentPda: PublicKey, toolName: string): Promise<ToolDescriptorData | null>;
|
|
171
|
-
/**
|
|
172
|
-
* @name fetchCheckpoint
|
|
173
|
-
* @description Fetch a deserialized `SessionCheckpoint` account by session PDA and index.
|
|
174
|
-
* @param sessionPda - The session ledger PDA.
|
|
175
|
-
* @param checkpointIndex - The zero-based checkpoint index.
|
|
176
|
-
* @returns {Promise<SessionCheckpointData>} The checkpoint data.
|
|
177
|
-
* @throws Will throw if the checkpoint does not exist.
|
|
178
|
-
* @since v0.1.0
|
|
179
|
-
*/
|
|
180
|
-
fetchCheckpoint(sessionPda: PublicKey, checkpointIndex: number): Promise<SessionCheckpointData>;
|
|
181
|
-
}
|
|
182
|
-
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/modules/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAOp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AAiB,CACrB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAAG,MAAM,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAgBhC;;;;;;;;OAQG;IACG,gBAAgB,CACpB,UAAU,EAAE,SAAS,EACrB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,CAAC;IAchC;;;;;;;OAOG;IACG,eAAe,CACnB,UAAU,EAAE,SAAS,EACrB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,CAAC;IAehC;;;;;;;;OAQG;IACG,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAK/E;;;;;;;;OAQG;IACG,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAK9F;;;;;;;;OAQG;IACG,eAAe,CACnB,UAAU,EAAE,SAAS,EACrB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,qBAAqB,CAAC;CAIlC"}
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module vault
|
|
3
|
-
* @description Encrypted memory vault — init, session management, inscribe,
|
|
4
|
-
* delegate access, nonce rotation, and close operations.
|
|
5
|
-
*
|
|
6
|
-
* Vaults provide encrypted, session-scoped memory storage for agents,
|
|
7
|
-
* with support for epoch-based pagination and hot-wallet delegation.
|
|
8
|
-
*
|
|
9
|
-
* @category Modules
|
|
10
|
-
* @since v0.1.0
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import { type PublicKey, type TransactionSignature } from "@solana/web3.js";
|
|
14
|
-
import { BaseModule } from "./base";
|
|
15
|
-
import type { MemoryVaultData, SessionLedgerData, EpochPageData, VaultDelegateData, InscribeMemoryArgs, CompactInscribeArgs } from "../types";
|
|
16
|
-
/**
|
|
17
|
-
* @name VaultModule
|
|
18
|
-
* @description Manages encrypted memory vaults for the Synapse Agent Protocol.
|
|
19
|
-
* Provides methods to initialise vaults, open/close sessions, inscribe
|
|
20
|
-
* encrypted data, manage delegates (hot wallets), rotate nonces, and
|
|
21
|
-
* fetch all related account types.
|
|
22
|
-
*
|
|
23
|
-
* @category Modules
|
|
24
|
-
* @since v0.1.0
|
|
25
|
-
* @extends BaseModule
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const sap = new SapClient(provider);
|
|
30
|
-
* // Initialize a vault
|
|
31
|
-
* await sap.vault.initVault([...nonce]);
|
|
32
|
-
* // Open a session and inscribe data
|
|
33
|
-
* await sap.vault.openSession([...sessionHash]);
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare class VaultModule extends BaseModule {
|
|
37
|
-
/**
|
|
38
|
-
* @name deriveVault
|
|
39
|
-
* @description Derive the `MemoryVault` PDA for a given agent.
|
|
40
|
-
* @param agentPda - The agent account PDA.
|
|
41
|
-
* @returns A tuple of `[PublicKey, bump]` for the vault PDA.
|
|
42
|
-
* @see {@link deriveVault} from `pda/` module for the underlying derivation.
|
|
43
|
-
* @since v0.1.0
|
|
44
|
-
*/
|
|
45
|
-
deriveVault(agentPda: PublicKey): readonly [PublicKey, number];
|
|
46
|
-
/**
|
|
47
|
-
* @name deriveSession
|
|
48
|
-
* @description Derive the `SessionLedger` PDA for a given vault and session hash.
|
|
49
|
-
* @param vaultPda - The memory vault PDA.
|
|
50
|
-
* @param sessionHash - A unique session identifier (32 bytes).
|
|
51
|
-
* @returns A tuple of `[PublicKey, bump]` for the session PDA.
|
|
52
|
-
* @see {@link deriveSession} from `pda/` module for the underlying derivation.
|
|
53
|
-
* @since v0.1.0
|
|
54
|
-
*/
|
|
55
|
-
deriveSession(vaultPda: PublicKey, sessionHash: Uint8Array): readonly [PublicKey, number];
|
|
56
|
-
/**
|
|
57
|
-
* @name initVault
|
|
58
|
-
* @description Initialize an encrypted memory vault for the caller's agent.
|
|
59
|
-
* Creates the `MemoryVault` PDA and sets the initial encryption nonce.
|
|
60
|
-
* @param vaultNonce - The initial encryption nonce (byte array).
|
|
61
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
62
|
-
* @since v0.1.0
|
|
63
|
-
*/
|
|
64
|
-
initVault(vaultNonce: number[]): Promise<TransactionSignature>;
|
|
65
|
-
/**
|
|
66
|
-
* @name openSession
|
|
67
|
-
* @description Open a new session within a vault. Creates a `SessionLedger`
|
|
68
|
-
* PDA identified by the session hash.
|
|
69
|
-
* @param sessionHash - A unique session identifier (byte array).
|
|
70
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
71
|
-
* @since v0.1.0
|
|
72
|
-
*/
|
|
73
|
-
openSession(sessionHash: number[]): Promise<TransactionSignature>;
|
|
74
|
-
/**
|
|
75
|
-
* @name inscribe
|
|
76
|
-
* @description Inscribe encrypted data into the transaction log.
|
|
77
|
-
* Account resolution is handled by Anchor via remaining accounts.
|
|
78
|
-
* @param args - Inscription parameters (sequence, encrypted data, nonce, content hash, fragments, compression, epoch).
|
|
79
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
80
|
-
* @since v0.1.0
|
|
81
|
-
*/
|
|
82
|
-
inscribe(args: InscribeMemoryArgs): Promise<TransactionSignature>;
|
|
83
|
-
/**
|
|
84
|
-
* @name inscribeWithAccounts
|
|
85
|
-
* @description Full inscribe with explicit session and epoch page PDAs.
|
|
86
|
-
* Use this when you need manual control over account resolution.
|
|
87
|
-
* @param sessionPda - The session ledger PDA.
|
|
88
|
-
* @param epochPagePda - The epoch page PDA for the target epoch.
|
|
89
|
-
* @param vaultPda - The memory vault PDA.
|
|
90
|
-
* @param args - Inscription parameters.
|
|
91
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
92
|
-
* @since v0.1.0
|
|
93
|
-
*/
|
|
94
|
-
inscribeWithAccounts(sessionPda: PublicKey, epochPagePda: PublicKey, vaultPda: PublicKey, args: InscribeMemoryArgs): Promise<TransactionSignature>;
|
|
95
|
-
/**
|
|
96
|
-
* @name compactInscribe
|
|
97
|
-
* @description Simplified inscription (4 args vs 8) for single-fragment writes.
|
|
98
|
-
* @param sessionPda - The session ledger PDA.
|
|
99
|
-
* @param vaultPda - The memory vault PDA.
|
|
100
|
-
* @param args - Compact inscription parameters (sequence, encrypted data, nonce, content hash).
|
|
101
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
102
|
-
* @since v0.1.0
|
|
103
|
-
*/
|
|
104
|
-
compactInscribe(sessionPda: PublicKey, vaultPda: PublicKey, args: CompactInscribeArgs): Promise<TransactionSignature>;
|
|
105
|
-
/**
|
|
106
|
-
* @name closeSession
|
|
107
|
-
* @description Close a session — no more inscriptions will be allowed.
|
|
108
|
-
* @param vaultPda - The memory vault PDA.
|
|
109
|
-
* @param sessionPda - The session ledger PDA to close.
|
|
110
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
111
|
-
* @since v0.1.0
|
|
112
|
-
*/
|
|
113
|
-
closeSession(vaultPda: PublicKey, sessionPda: PublicKey): Promise<TransactionSignature>;
|
|
114
|
-
/**
|
|
115
|
-
* @name closeVault
|
|
116
|
-
* @description Close the `MemoryVault` PDA and reclaim rent to the owner wallet.
|
|
117
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
118
|
-
* @since v0.1.0
|
|
119
|
-
*/
|
|
120
|
-
closeVault(): Promise<TransactionSignature>;
|
|
121
|
-
/**
|
|
122
|
-
* @name closeSessionPda
|
|
123
|
-
* @description Close a `SessionLedger` PDA (session must be closed first).
|
|
124
|
-
* Reclaims rent to the owner wallet.
|
|
125
|
-
* @param vaultPda - The memory vault PDA.
|
|
126
|
-
* @param sessionPda - The session ledger PDA to close.
|
|
127
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
128
|
-
* @since v0.1.0
|
|
129
|
-
*/
|
|
130
|
-
closeSessionPda(vaultPda: PublicKey, sessionPda: PublicKey): Promise<TransactionSignature>;
|
|
131
|
-
/**
|
|
132
|
-
* @name closeEpochPage
|
|
133
|
-
* @description Close an `EpochPage` PDA and reclaim rent.
|
|
134
|
-
* @param sessionPda - The session ledger PDA that owns this epoch page.
|
|
135
|
-
* @param epochIndex - The zero-based epoch index.
|
|
136
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
137
|
-
* @since v0.1.0
|
|
138
|
-
*/
|
|
139
|
-
closeEpochPage(sessionPda: PublicKey, epochIndex: number): Promise<TransactionSignature>;
|
|
140
|
-
/**
|
|
141
|
-
* @name rotateNonce
|
|
142
|
-
* @description Rotate the vault encryption nonce. All future inscriptions
|
|
143
|
-
* will use the new nonce.
|
|
144
|
-
* @param newNonce - The replacement nonce (byte array).
|
|
145
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
146
|
-
* @since v0.1.0
|
|
147
|
-
*/
|
|
148
|
-
rotateNonce(newNonce: number[]): Promise<TransactionSignature>;
|
|
149
|
-
/**
|
|
150
|
-
* @name addDelegate
|
|
151
|
-
* @description Authorize a delegate (hot wallet) for vault operations.
|
|
152
|
-
* Creates a `VaultDelegate` PDA with the specified permissions and expiry.
|
|
153
|
-
* @param delegatePubkey - The public key of the delegate wallet to authorize.
|
|
154
|
-
* @param permissions - Bitmask of permitted operations.
|
|
155
|
-
* @param expiresAt - Unix timestamp when delegation expires.
|
|
156
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
157
|
-
* @since v0.1.0
|
|
158
|
-
*/
|
|
159
|
-
addDelegate(delegatePubkey: PublicKey, permissions: number, expiresAt: number | bigint): Promise<TransactionSignature>;
|
|
160
|
-
/**
|
|
161
|
-
* @name revokeDelegate
|
|
162
|
-
* @description Revoke a delegate’s authorization, closing their `VaultDelegate` PDA.
|
|
163
|
-
* @param delegatePubkey - The public key of the delegate wallet to revoke.
|
|
164
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
165
|
-
* @since v0.1.0
|
|
166
|
-
*/
|
|
167
|
-
revokeDelegate(delegatePubkey: PublicKey): Promise<TransactionSignature>;
|
|
168
|
-
/**
|
|
169
|
-
* @name inscribeDelegated
|
|
170
|
-
* @description Inscribe data via an authorized delegate (hot wallet).
|
|
171
|
-
* The transaction is signed by the delegate instead of the vault owner.
|
|
172
|
-
* @param delegateWallet - The delegate wallet public key.
|
|
173
|
-
* @param vaultPda - The memory vault PDA.
|
|
174
|
-
* @param sessionPda - The session ledger PDA.
|
|
175
|
-
* @param epochPagePda - The epoch page PDA.
|
|
176
|
-
* @param args - Inscription parameters.
|
|
177
|
-
* @returns {Promise<TransactionSignature>} The transaction signature.
|
|
178
|
-
* @since v0.1.0
|
|
179
|
-
*/
|
|
180
|
-
inscribeDelegated(delegateWallet: PublicKey, vaultPda: PublicKey, sessionPda: PublicKey, epochPagePda: PublicKey, args: InscribeMemoryArgs): Promise<TransactionSignature>;
|
|
181
|
-
/**
|
|
182
|
-
* @name fetchVault
|
|
183
|
-
* @description Fetch a deserialized `MemoryVault` account.
|
|
184
|
-
* @param agentPda - The agent account PDA.
|
|
185
|
-
* @returns {Promise<MemoryVaultData>} The vault account data.
|
|
186
|
-
* @throws Will throw if the vault account does not exist.
|
|
187
|
-
* @since v0.1.0
|
|
188
|
-
*/
|
|
189
|
-
fetchVault(agentPda: PublicKey): Promise<MemoryVaultData>;
|
|
190
|
-
/**
|
|
191
|
-
* @name fetchVaultNullable
|
|
192
|
-
* @description Fetch a deserialized `MemoryVault` account, or `null`
|
|
193
|
-
* if it does not exist on-chain.
|
|
194
|
-
* @param agentPda - The agent account PDA.
|
|
195
|
-
* @returns {Promise<MemoryVaultData | null>} The vault data or `null`.
|
|
196
|
-
* @since v0.1.0
|
|
197
|
-
*/
|
|
198
|
-
fetchVaultNullable(agentPda: PublicKey): Promise<MemoryVaultData | null>;
|
|
199
|
-
/**
|
|
200
|
-
* @name fetchSession
|
|
201
|
-
* @description Fetch a deserialized `SessionLedger` account by vault and session hash.
|
|
202
|
-
* @param vaultPda - The memory vault PDA.
|
|
203
|
-
* @param sessionHash - The session identifier used during creation.
|
|
204
|
-
* @returns {Promise<SessionLedgerData>} The session ledger data.
|
|
205
|
-
* @throws Will throw if the session does not exist.
|
|
206
|
-
* @since v0.1.0
|
|
207
|
-
*/
|
|
208
|
-
fetchSession(vaultPda: PublicKey, sessionHash: Uint8Array): Promise<SessionLedgerData>;
|
|
209
|
-
/**
|
|
210
|
-
* @name fetchSessionByPda
|
|
211
|
-
* @description Fetch a deserialized `SessionLedger` account by its PDA directly,
|
|
212
|
-
* bypassing PDA derivation.
|
|
213
|
-
* @param sessionPda - The session ledger PDA.
|
|
214
|
-
* @returns {Promise<SessionLedgerData>} The session ledger data.
|
|
215
|
-
* @throws Will throw if the session does not exist.
|
|
216
|
-
* @since v0.1.0
|
|
217
|
-
*/
|
|
218
|
-
fetchSessionByPda(sessionPda: PublicKey): Promise<SessionLedgerData>;
|
|
219
|
-
/**
|
|
220
|
-
* @name fetchEpochPage
|
|
221
|
-
* @description Fetch a deserialized `EpochPage` account.
|
|
222
|
-
* @param sessionPda - The session ledger PDA.
|
|
223
|
-
* @param epochIndex - The zero-based epoch index.
|
|
224
|
-
* @returns {Promise<EpochPageData>} The epoch page data.
|
|
225
|
-
* @throws Will throw if the epoch page does not exist.
|
|
226
|
-
* @since v0.1.0
|
|
227
|
-
*/
|
|
228
|
-
fetchEpochPage(sessionPda: PublicKey, epochIndex: number): Promise<EpochPageData>;
|
|
229
|
-
/**
|
|
230
|
-
* @name fetchDelegate
|
|
231
|
-
* @description Fetch a deserialized `VaultDelegate` account.
|
|
232
|
-
* @param vaultPda - The memory vault PDA.
|
|
233
|
-
* @param delegatePubkey - The delegate wallet public key.
|
|
234
|
-
* @returns {Promise<VaultDelegateData>} The delegate account data.
|
|
235
|
-
* @throws Will throw if the delegate does not exist.
|
|
236
|
-
* @since v0.1.0
|
|
237
|
-
*/
|
|
238
|
-
fetchDelegate(vaultPda: PublicKey, delegatePubkey: PublicKey): Promise<VaultDelegateData>;
|
|
239
|
-
}
|
|
240
|
-
//# sourceMappingURL=vault.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../src/modules/vault.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AASpC,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAIlB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,WAAY,SAAQ,UAAU;IAGzC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAI9D;;;;;;;;OAQG;IACH,aAAa,CACX,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,UAAU,GACtB,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAM/B;;;;;;;OAOG;IACG,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAiBpE;;;;;;;OAOG;IACG,WAAW,CACf,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,oBAAoB,CAAC;IAgBhC;;;;;;;OAOG;IACG,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAkBvE;;;;;;;;;;OAUG;IACG,oBAAoB,CACxB,UAAU,EAAE,SAAS,EACrB,YAAY,EAAE,SAAS,EACvB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,oBAAoB,CAAC;IAsBhC;;;;;;;;OAQG;IACG,eAAe,CACnB,UAAU,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