@ar.io/sdk 4.0.0-solana.5 → 4.0.0-solana.7
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/README.md +1 -23
- package/lib/esm/solana/ant-readable.js +1 -1
- package/lib/esm/solana/ant-registry-writeable.js +1 -1
- package/lib/esm/solana/ant-writeable.js +1 -1
- package/lib/esm/solana/deserialize.js +45 -1
- package/lib/esm/solana/escrow.js +31 -18
- package/lib/esm/solana/events.js +5 -5
- package/lib/esm/solana/funding-plan.js +1 -1
- package/lib/esm/solana/io-readable.js +70 -15
- package/lib/esm/solana/io-writeable.js +90 -24
- package/lib/esm/solana/send.js +17 -59
- package/lib/esm/solana/spawn-ant.js +5 -5
- package/lib/esm/version.js +1 -1
- package/lib/types/solana/escrow.d.ts +33 -4
- package/lib/types/solana/events.d.ts +5 -5
- package/lib/types/solana/io-readable.d.ts +30 -0
- package/lib/types/solana/io-writeable.d.ts +24 -0
- package/lib/types/solana/send.d.ts +0 -29
- package/lib/types/version.d.ts +1 -1
- package/package.json +10 -17
- package/lib/cjs/cli/cli.js +0 -1015
- package/lib/cjs/cli/commands/antCommands.js +0 -139
- package/lib/cjs/cli/commands/arnsPurchaseCommands.js +0 -252
- package/lib/cjs/cli/commands/escrowCommands.js +0 -219
- package/lib/cjs/cli/commands/gatewayWriteCommands.js +0 -320
- package/lib/cjs/cli/commands/pruneCommands.js +0 -179
- package/lib/cjs/cli/commands/readCommands.js +0 -223
- package/lib/cjs/cli/commands/transfer.js +0 -159
- package/lib/cjs/cli/options.js +0 -609
- package/lib/cjs/cli/types.js +0 -2
- package/lib/cjs/cli/utils.js +0 -916
- package/lib/cjs/common/ant-registry.js +0 -210
- package/lib/cjs/common/ant-versions.js +0 -93
- package/lib/cjs/common/ant.js +0 -1260
- package/lib/cjs/common/arweave.js +0 -27
- package/lib/cjs/common/contracts/ao-process.js +0 -222
- package/lib/cjs/common/error.js +0 -64
- package/lib/cjs/common/faucet.js +0 -150
- package/lib/cjs/common/hyperbeam/hb.js +0 -173
- package/lib/cjs/common/index.js +0 -42
- package/lib/cjs/common/io.js +0 -1464
- package/lib/cjs/common/logger.js +0 -83
- package/lib/cjs/common/loggers/winston.js +0 -68
- package/lib/cjs/common/marketplace.js +0 -676
- package/lib/cjs/common/turbo.js +0 -223
- package/lib/cjs/constants.js +0 -54
- package/lib/cjs/node/index.js +0 -39
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/solana/ant-readable.js +0 -427
- package/lib/cjs/solana/ant-registry-readable.js +0 -122
- package/lib/cjs/solana/ant-registry-writeable.js +0 -461
- package/lib/cjs/solana/ant-writeable.js +0 -356
- package/lib/cjs/solana/ata.js +0 -60
- package/lib/cjs/solana/canonical-message.js +0 -97
- package/lib/cjs/solana/clusters.js +0 -65
- package/lib/cjs/solana/constants.js +0 -128
- package/lib/cjs/solana/deserialize.js +0 -1130
- package/lib/cjs/solana/escrow.js +0 -789
- package/lib/cjs/solana/events.js +0 -248
- package/lib/cjs/solana/funding-plan.js +0 -723
- package/lib/cjs/solana/generated/ant/accounts/aclConfig.js +0 -59
- package/lib/cjs/solana/generated/ant/accounts/aclPage.js +0 -56
- package/lib/cjs/solana/generated/ant/accounts/antConfig.js +0 -55
- package/lib/cjs/solana/generated/ant/accounts/antControllers.js +0 -55
- package/lib/cjs/solana/generated/ant/accounts/antMigrationConfig.js +0 -59
- package/lib/cjs/solana/generated/ant/accounts/antRecord.js +0 -55
- package/lib/cjs/solana/generated/ant/accounts/antRecordMetadata.js +0 -55
- package/lib/cjs/solana/generated/ant/accounts/index.js +0 -30
- package/lib/cjs/solana/generated/ant/errors/arioAnt.js +0 -136
- package/lib/cjs/solana/generated/ant/errors/index.js +0 -24
- package/lib/cjs/solana/generated/ant/events/aclEntryAddedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/aclEntryRemovedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/antMetadataUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/antReconciledEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/antTransferredEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/attributesClearedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/attributesSyncedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/controllerAddedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/controllerRemovedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/index.js +0 -32
- package/lib/cjs/solana/generated/ant/events/recordMetadataPrunedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/recordMetadataRemovedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/recordMetadataUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/recordRemovedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/recordSetEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/events/recordTransferredEvent.js +0 -28
- package/lib/cjs/solana/generated/ant/index.js +0 -26
- package/lib/cjs/solana/generated/ant/instructions/addAclPage.js +0 -55
- package/lib/cjs/solana/generated/ant/instructions/addController.js +0 -83
- package/lib/cjs/solana/generated/ant/instructions/clearAttributes.js +0 -58
- package/lib/cjs/solana/generated/ant/instructions/closeAclConfig.js +0 -51
- package/lib/cjs/solana/generated/ant/instructions/closeAclPage.js +0 -51
- package/lib/cjs/solana/generated/ant/instructions/closeOrphanedRecordMetadata.js +0 -53
- package/lib/cjs/solana/generated/ant/instructions/finalizeMigration.js +0 -66
- package/lib/cjs/solana/generated/ant/instructions/importAccount.js +0 -77
- package/lib/cjs/solana/generated/ant/instructions/index.js +0 -53
- package/lib/cjs/solana/generated/ant/instructions/initialize.js +0 -80
- package/lib/cjs/solana/generated/ant/instructions/initializeMigration.js +0 -80
- package/lib/cjs/solana/generated/ant/instructions/migrateAnt.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/reconcile.js +0 -69
- package/lib/cjs/solana/generated/ant/instructions/recordAclController.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/recordAclOwner.js +0 -55
- package/lib/cjs/solana/generated/ant/instructions/registerAclConfig.js +0 -77
- package/lib/cjs/solana/generated/ant/instructions/removeAclController.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/removeAclOwner.js +0 -55
- package/lib/cjs/solana/generated/ant/instructions/removeController.js +0 -76
- package/lib/cjs/solana/generated/ant/instructions/removeRecord.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/removeRecordMetadata.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/setDescription.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/setKeywords.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/setLogo.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/setName.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/setRecord.js +0 -80
- package/lib/cjs/solana/generated/ant/instructions/setRecordMetadata.js +0 -80
- package/lib/cjs/solana/generated/ant/instructions/setTicker.js +0 -73
- package/lib/cjs/solana/generated/ant/instructions/syncAttributes.js +0 -60
- package/lib/cjs/solana/generated/ant/instructions/transfer.js +0 -88
- package/lib/cjs/solana/generated/ant/instructions/transferRecord.js +0 -73
- package/lib/cjs/solana/generated/ant/pdas/aclConfig.js +0 -15
- package/lib/cjs/solana/generated/ant/pdas/antConfig.js +0 -15
- package/lib/cjs/solana/generated/ant/pdas/antControllers.js +0 -15
- package/lib/cjs/solana/generated/ant/pdas/controllerAclConfig.js +0 -15
- package/lib/cjs/solana/generated/ant/pdas/index.js +0 -30
- package/lib/cjs/solana/generated/ant/pdas/migrationConfig.js +0 -15
- package/lib/cjs/solana/generated/ant/pdas/newOwnerAclConfig.js +0 -15
- package/lib/cjs/solana/generated/ant/pdas/oldOwnerAclConfig.js +0 -15
- package/lib/cjs/solana/generated/ant/program-address.js +0 -4
- package/lib/cjs/solana/generated/ant/types/aclEntry.js +0 -22
- package/lib/cjs/solana/generated/ant/types/index.js +0 -24
- package/lib/cjs/solana/generated/ant-escrow/accounts/escrowAnt.js +0 -59
- package/lib/cjs/solana/generated/ant-escrow/accounts/escrowToken.js +0 -59
- package/lib/cjs/solana/generated/ant-escrow/accounts/index.js +0 -25
- package/lib/cjs/solana/generated/ant-escrow/errors/arioAntEscrow.js +0 -69
- package/lib/cjs/solana/generated/ant-escrow/errors/index.js +0 -24
- package/lib/cjs/solana/generated/ant-escrow/events/escrowCancelledEvent.js +0 -28
- package/lib/cjs/solana/generated/ant-escrow/events/escrowClaimedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant-escrow/events/escrowDepositedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant-escrow/events/escrowRecipientUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/ant-escrow/events/index.js +0 -21
- package/lib/cjs/solana/generated/ant-escrow/index.js +0 -26
- package/lib/cjs/solana/generated/ant-escrow/instructions/cancelDeposit.js +0 -58
- package/lib/cjs/solana/generated/ant-escrow/instructions/cancelTokenDeposit.js +0 -58
- package/lib/cjs/solana/generated/ant-escrow/instructions/cancelVaultDeposit.js +0 -58
- package/lib/cjs/solana/generated/ant-escrow/instructions/claimAntArweave.js +0 -60
- package/lib/cjs/solana/generated/ant-escrow/instructions/claimAntEthereum.js +0 -60
- package/lib/cjs/solana/generated/ant-escrow/instructions/claimTokensArweave.js +0 -60
- package/lib/cjs/solana/generated/ant-escrow/instructions/claimTokensEthereum.js +0 -60
- package/lib/cjs/solana/generated/ant-escrow/instructions/claimVaultArweave.js +0 -63
- package/lib/cjs/solana/generated/ant-escrow/instructions/claimVaultEthereum.js +0 -63
- package/lib/cjs/solana/generated/ant-escrow/instructions/depositAnt.js +0 -83
- package/lib/cjs/solana/generated/ant-escrow/instructions/depositTokens.js +0 -83
- package/lib/cjs/solana/generated/ant-escrow/instructions/depositVault.js +0 -83
- package/lib/cjs/solana/generated/ant-escrow/instructions/index.js +0 -38
- package/lib/cjs/solana/generated/ant-escrow/instructions/updateRecipient.js +0 -53
- package/lib/cjs/solana/generated/ant-escrow/instructions/updateTokenRecipient.js +0 -53
- package/lib/cjs/solana/generated/ant-escrow/instructions/updateVaultRecipient.js +0 -53
- package/lib/cjs/solana/generated/ant-escrow/pdas/depositTokensEscrow.js +0 -15
- package/lib/cjs/solana/generated/ant-escrow/pdas/depositVaultEscrow.js +0 -15
- package/lib/cjs/solana/generated/ant-escrow/pdas/escrow.js +0 -15
- package/lib/cjs/solana/generated/ant-escrow/pdas/index.js +0 -26
- package/lib/cjs/solana/generated/ant-escrow/program-address.js +0 -4
- package/lib/cjs/solana/generated/arns/accounts/arnsConfig.js +0 -59
- package/lib/cjs/solana/generated/arns/accounts/arnsRecord.js +0 -56
- package/lib/cjs/solana/generated/arns/accounts/demandFactor.js +0 -59
- package/lib/cjs/solana/generated/arns/accounts/index.js +0 -29
- package/lib/cjs/solana/generated/arns/accounts/nameRegistry.js +0 -60
- package/lib/cjs/solana/generated/arns/accounts/reservedName.js +0 -55
- package/lib/cjs/solana/generated/arns/accounts/returnedName.js +0 -55
- package/lib/cjs/solana/generated/arns/errors/arioArns.js +0 -121
- package/lib/cjs/solana/generated/arns/errors/index.js +0 -24
- package/lib/cjs/solana/generated/arns/events/demandFactorUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/index.js +0 -29
- package/lib/cjs/solana/generated/arns/events/leaseExtendedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/namePurchasedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/nameReassignedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/nameReleasedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/nameReservedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/nameUnreservedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/nameUpgradedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/namesPrunedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/reservedNameClaimedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/returnedNamePurchasedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/events/undernameIncreasedEvent.js +0 -28
- package/lib/cjs/solana/generated/arns/index.js +0 -26
- package/lib/cjs/solana/generated/arns/instructions/buyName.js +0 -90
- package/lib/cjs/solana/generated/arns/instructions/buyNameFromDelegation.js +0 -96
- package/lib/cjs/solana/generated/arns/instructions/buyNameFromFundingPlan.js +0 -100
- package/lib/cjs/solana/generated/arns/instructions/buyNameFromOperatorStake.js +0 -96
- package/lib/cjs/solana/generated/arns/instructions/buyNameFromWithdrawal.js +0 -96
- package/lib/cjs/solana/generated/arns/instructions/buyReturnedName.js +0 -90
- package/lib/cjs/solana/generated/arns/instructions/buyReturnedNameFromDelegation.js +0 -96
- package/lib/cjs/solana/generated/arns/instructions/buyReturnedNameFromFundingPlan.js +0 -100
- package/lib/cjs/solana/generated/arns/instructions/buyReturnedNameFromOperatorStake.js +0 -96
- package/lib/cjs/solana/generated/arns/instructions/buyReturnedNameFromWithdrawal.js +0 -96
- package/lib/cjs/solana/generated/arns/instructions/claimReservedName.js +0 -66
- package/lib/cjs/solana/generated/arns/instructions/createNameRegistry.js +0 -76
- package/lib/cjs/solana/generated/arns/instructions/extendLease.js +0 -80
- package/lib/cjs/solana/generated/arns/instructions/extendLeaseFromDelegation.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/extendLeaseFromFundingPlan.js +0 -97
- package/lib/cjs/solana/generated/arns/instructions/extendLeaseFromOperatorStake.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/extendLeaseFromWithdrawal.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/finalizeMigration.js +0 -66
- package/lib/cjs/solana/generated/arns/instructions/getTokenCost.js +0 -71
- package/lib/cjs/solana/generated/arns/instructions/importAccount.js +0 -77
- package/lib/cjs/solana/generated/arns/instructions/importRegistryEntry.js +0 -70
- package/lib/cjs/solana/generated/arns/instructions/increaseUndernameLimit.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/increaseUndernameLimitFromDelegation.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/increaseUndernameLimitFromFundingPlan.js +0 -97
- package/lib/cjs/solana/generated/arns/instructions/increaseUndernameLimitFromOperatorStake.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/increaseUndernameLimitFromWithdrawal.js +0 -86
- package/lib/cjs/solana/generated/arns/instructions/index.js +0 -64
- package/lib/cjs/solana/generated/arns/instructions/initialize.js +0 -83
- package/lib/cjs/solana/generated/arns/instructions/pruneExpiredNames.js +0 -80
- package/lib/cjs/solana/generated/arns/instructions/pruneExpiredReservation.js +0 -51
- package/lib/cjs/solana/generated/arns/instructions/pruneNameToReturned.js +0 -76
- package/lib/cjs/solana/generated/arns/instructions/pruneReturnedNames.js +0 -77
- package/lib/cjs/solana/generated/arns/instructions/reassignName.js +0 -77
- package/lib/cjs/solana/generated/arns/instructions/releaseName.js +0 -76
- package/lib/cjs/solana/generated/arns/instructions/reserveName.js +0 -77
- package/lib/cjs/solana/generated/arns/instructions/unreserveName.js +0 -66
- package/lib/cjs/solana/generated/arns/instructions/updateDemandFactor.js +0 -66
- package/lib/cjs/solana/generated/arns/instructions/upgradeName.js +0 -82
- package/lib/cjs/solana/generated/arns/instructions/upgradeNameFromDelegation.js +0 -82
- package/lib/cjs/solana/generated/arns/instructions/upgradeNameFromFundingPlan.js +0 -97
- package/lib/cjs/solana/generated/arns/instructions/upgradeNameFromOperatorStake.js +0 -82
- package/lib/cjs/solana/generated/arns/instructions/upgradeNameFromWithdrawal.js +0 -82
- package/lib/cjs/solana/generated/arns/pdas/config.js +0 -15
- package/lib/cjs/solana/generated/arns/pdas/demandFactor.js +0 -15
- package/lib/cjs/solana/generated/arns/pdas/index.js +0 -26
- package/lib/cjs/solana/generated/arns/pdas/nameRegistry.js +0 -15
- package/lib/cjs/solana/generated/arns/program-address.js +0 -4
- package/lib/cjs/solana/generated/arns/types/buyNameParams.js +0 -23
- package/lib/cjs/solana/generated/arns/types/buyReturnedNameParams.js +0 -23
- package/lib/cjs/solana/generated/arns/types/costIntent.js +0 -32
- package/lib/cjs/solana/generated/arns/types/fundingSourceKind.js +0 -39
- package/lib/cjs/solana/generated/arns/types/fundingSourceSpec.js +0 -23
- package/lib/cjs/solana/generated/arns/types/index.js +0 -30
- package/lib/cjs/solana/generated/arns/types/nameEntry.js +0 -22
- package/lib/cjs/solana/generated/arns/types/purchaseType.js +0 -29
- package/lib/cjs/solana/generated/core/accounts/arioConfig.js +0 -59
- package/lib/cjs/solana/generated/core/accounts/balance.js +0 -59
- package/lib/cjs/solana/generated/core/accounts/index.js +0 -30
- package/lib/cjs/solana/generated/core/accounts/primaryName.js +0 -55
- package/lib/cjs/solana/generated/core/accounts/primaryNameRequest.js +0 -55
- package/lib/cjs/solana/generated/core/accounts/primaryNameReverse.js +0 -55
- package/lib/cjs/solana/generated/core/accounts/vault.js +0 -55
- package/lib/cjs/solana/generated/core/accounts/vaultCounter.js +0 -59
- package/lib/cjs/solana/generated/core/errors/arioCore.js +0 -115
- package/lib/cjs/solana/generated/core/errors/index.js +0 -24
- package/lib/cjs/solana/generated/core/events/configUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/coreMigrationFinalizedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/index.js +0 -30
- package/lib/cjs/solana/generated/core/events/primaryNameRemovedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/primaryNameRequestExpiredEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/primaryNameRequestedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/primaryNameSetEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/supplyFinalizedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/transferEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/vaultCreatedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/vaultExtendedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/vaultIncreasedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/vaultReleasedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/events/vaultRevokedEvent.js +0 -28
- package/lib/cjs/solana/generated/core/index.js +0 -26
- package/lib/cjs/solana/generated/core/instructions/adminRepairConfig.js +0 -70
- package/lib/cjs/solana/generated/core/instructions/approvePrimaryName.js +0 -80
- package/lib/cjs/solana/generated/core/instructions/closeExpiredRequest.js +0 -51
- package/lib/cjs/solana/generated/core/instructions/createVault.js +0 -86
- package/lib/cjs/solana/generated/core/instructions/extendVault.js +0 -70
- package/lib/cjs/solana/generated/core/instructions/finalizeMigration.js +0 -66
- package/lib/cjs/solana/generated/core/instructions/finalizeSupply.js +0 -70
- package/lib/cjs/solana/generated/core/instructions/importAccount.js +0 -77
- package/lib/cjs/solana/generated/core/instructions/importBalance.js +0 -95
- package/lib/cjs/solana/generated/core/instructions/increaseVault.js +0 -77
- package/lib/cjs/solana/generated/core/instructions/index.js +0 -45
- package/lib/cjs/solana/generated/core/instructions/initialize.js +0 -80
- package/lib/cjs/solana/generated/core/instructions/releaseVault.js +0 -73
- package/lib/cjs/solana/generated/core/instructions/removePrimaryName.js +0 -73
- package/lib/cjs/solana/generated/core/instructions/removePrimaryNameForBaseName.js +0 -73
- package/lib/cjs/solana/generated/core/instructions/requestAndSetPrimaryName.js +0 -89
- package/lib/cjs/solana/generated/core/instructions/requestAndSetPrimaryNameFromFundingPlan.js +0 -100
- package/lib/cjs/solana/generated/core/instructions/requestPrimaryName.js +0 -86
- package/lib/cjs/solana/generated/core/instructions/requestPrimaryNameFromFundingPlan.js +0 -97
- package/lib/cjs/solana/generated/core/instructions/revokeVault.js +0 -73
- package/lib/cjs/solana/generated/core/instructions/transfer.js +0 -57
- package/lib/cjs/solana/generated/core/instructions/updateConfig.js +0 -70
- package/lib/cjs/solana/generated/core/instructions/vaultedTransfer.js +0 -86
- package/lib/cjs/solana/generated/core/pdas/balance.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/config.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/index.js +0 -31
- package/lib/cjs/solana/generated/core/pdas/primaryName.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/primaryNameReverse.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/recipientVaultCounter.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/request.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/requestAndSetPrimaryNamePrimaryName.js +0 -15
- package/lib/cjs/solana/generated/core/pdas/vaultCounter.js +0 -15
- package/lib/cjs/solana/generated/core/program-address.js +0 -4
- package/lib/cjs/solana/generated/core/types/fundingSourceKind.js +0 -39
- package/lib/cjs/solana/generated/core/types/fundingSourceSpec.js +0 -23
- package/lib/cjs/solana/generated/core/types/index.js +0 -25
- package/lib/cjs/solana/generated/gar/accounts/allowlistEntry.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/delegation.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/epoch.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/epochSettings.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/gateway.js +0 -56
- package/lib/cjs/solana/generated/gar/accounts/gatewayRegistry.js +0 -60
- package/lib/cjs/solana/generated/gar/accounts/gatewaySettings.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/index.js +0 -35
- package/lib/cjs/solana/generated/gar/accounts/observation.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/observerLookup.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/redelegationRecord.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/withdrawal.js +0 -59
- package/lib/cjs/solana/generated/gar/accounts/withdrawalCounter.js +0 -59
- package/lib/cjs/solana/generated/gar/errors/arioGar.js +0 -200
- package/lib/cjs/solana/generated/gar/errors/index.js +0 -24
- package/lib/cjs/solana/generated/gar/events/allowlistToggledEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/delegateAllowlistedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/delegationClosedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/delegationDecreasedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/delegationEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/epochClosedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/epochCreatedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/epochDistributedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/epochPrescribedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/epochWeightsTalliedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/epochsToggledEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/fundingPlanAppliedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/garMigrationFinalizedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/gatewayFinalizedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/gatewayJoinedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/gatewayLeavingEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/gatewayPrunedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/gatewaySettingsUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/index.js +0 -47
- package/lib/cjs/solana/generated/gar/events/instantWithdrawalEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/observationSubmittedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/observerAddressUpdatedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/operatorStakeIncreasedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/redelegationEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/residueVaultCreatedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/rewardsCompoundedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/stakePaymentEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/withdrawalCancelledEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/withdrawalClaimedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/withdrawalCreatedEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/events/withdrawalPaymentEvent.js +0 -28
- package/lib/cjs/solana/generated/gar/index.js +0 -26
- package/lib/cjs/solana/generated/gar/instructions/adminRepairSettings.js +0 -70
- package/lib/cjs/solana/generated/gar/instructions/allowDelegate.js +0 -76
- package/lib/cjs/solana/generated/gar/instructions/cancelWithdrawal.js +0 -70
- package/lib/cjs/solana/generated/gar/instructions/claimDelegateFromLeavingGateway.js +0 -76
- package/lib/cjs/solana/generated/gar/instructions/claimWithdrawal.js +0 -73
- package/lib/cjs/solana/generated/gar/instructions/closeDrainedWithdrawal.js +0 -51
- package/lib/cjs/solana/generated/gar/instructions/closeEmptyDelegation.js +0 -51
- package/lib/cjs/solana/generated/gar/instructions/closeEpoch.js +0 -73
- package/lib/cjs/solana/generated/gar/instructions/closeObservation.js +0 -70
- package/lib/cjs/solana/generated/gar/instructions/compoundDelegationRewards.js +0 -51
- package/lib/cjs/solana/generated/gar/instructions/createEpoch.js +0 -79
- package/lib/cjs/solana/generated/gar/instructions/createGatewayRegistry.js +0 -76
- package/lib/cjs/solana/generated/gar/instructions/decreaseDelegateStake.js +0 -80
- package/lib/cjs/solana/generated/gar/instructions/decreaseOperatorStake.js +0 -83
- package/lib/cjs/solana/generated/gar/instructions/deductDelegationForPayment.js +0 -77
- package/lib/cjs/solana/generated/gar/instructions/deductOperatorStakeForPayment.js +0 -80
- package/lib/cjs/solana/generated/gar/instructions/deductWithdrawalForPayment.js +0 -77
- package/lib/cjs/solana/generated/gar/instructions/delegateStake.js +0 -83
- package/lib/cjs/solana/generated/gar/instructions/disallowDelegate.js +0 -69
- package/lib/cjs/solana/generated/gar/instructions/distributeEpoch.js +0 -86
- package/lib/cjs/solana/generated/gar/instructions/finalizeGone.js +0 -69
- package/lib/cjs/solana/generated/gar/instructions/finalizeMigration.js +0 -66
- package/lib/cjs/solana/generated/gar/instructions/importAccount.js +0 -77
- package/lib/cjs/solana/generated/gar/instructions/importRegistryEntry.js +0 -70
- package/lib/cjs/solana/generated/gar/instructions/increaseOperatorStake.js +0 -80
- package/lib/cjs/solana/generated/gar/instructions/index.js +0 -66
- package/lib/cjs/solana/generated/gar/instructions/initialize.js +0 -80
- package/lib/cjs/solana/generated/gar/instructions/initializeEpochs.js +0 -80
- package/lib/cjs/solana/generated/gar/instructions/instantWithdrawal.js +0 -73
- package/lib/cjs/solana/generated/gar/instructions/joinNetwork.js +0 -90
- package/lib/cjs/solana/generated/gar/instructions/leaveNetwork.js +0 -89
- package/lib/cjs/solana/generated/gar/instructions/migrateSettingsSetArnsProgramId.js +0 -77
- package/lib/cjs/solana/generated/gar/instructions/migrateSettingsSupplyCounters.js +0 -70
- package/lib/cjs/solana/generated/gar/instructions/payFromFundingPlan.js +0 -91
- package/lib/cjs/solana/generated/gar/instructions/prescribeEpoch.js +0 -79
- package/lib/cjs/solana/generated/gar/instructions/pruneGateway.js +0 -89
- package/lib/cjs/solana/generated/gar/instructions/redelegateStake.js +0 -86
- package/lib/cjs/solana/generated/gar/instructions/releaseTreasuryAuthority.js +0 -77
- package/lib/cjs/solana/generated/gar/instructions/saveObservations.js +0 -80
- package/lib/cjs/solana/generated/gar/instructions/setAllowlistEnabled.js +0 -73
- package/lib/cjs/solana/generated/gar/instructions/setEpochsEnabled.js +0 -70
- package/lib/cjs/solana/generated/gar/instructions/tallyWeights.js +0 -79
- package/lib/cjs/solana/generated/gar/instructions/updateGatewaySettings.js +0 -74
- package/lib/cjs/solana/generated/gar/instructions/updateObserverAddress.js +0 -80
- package/lib/cjs/solana/generated/gar/pdas/allowlistEntry.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/decreaseOperatorStakeWithdrawalCounter.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/epoch.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/epochSettings.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/gateway.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/index.js +0 -35
- package/lib/cjs/solana/generated/gar/pdas/newObserverLookup.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/observation.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/payFromFundingPlanWithdrawalCounter.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/redelegationRecord.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/registry.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/settings.js +0 -15
- package/lib/cjs/solana/generated/gar/pdas/withdrawalCounter.js +0 -15
- package/lib/cjs/solana/generated/gar/program-address.js +0 -4
- package/lib/cjs/solana/generated/gar/types/fundingSourceKind.js +0 -39
- package/lib/cjs/solana/generated/gar/types/fundingSourceSpec.js +0 -23
- package/lib/cjs/solana/generated/gar/types/gatewaySettings2.js +0 -22
- package/lib/cjs/solana/generated/gar/types/gatewaySlot.js +0 -22
- package/lib/cjs/solana/generated/gar/types/gatewayStats.js +0 -22
- package/lib/cjs/solana/generated/gar/types/gatewayStatus.js +0 -30
- package/lib/cjs/solana/generated/gar/types/gatewayWeights.js +0 -22
- package/lib/cjs/solana/generated/gar/types/index.js +0 -32
- package/lib/cjs/solana/generated/gar/types/protocol.js +0 -29
- package/lib/cjs/solana/generated/gar/types/registryIndex.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/accounts/assetV1.js +0 -52
- package/lib/cjs/solana/generated/mpl-core/accounts/collectionV1.js +0 -52
- package/lib/cjs/solana/generated/mpl-core/accounts/hashedAssetV1.js +0 -56
- package/lib/cjs/solana/generated/mpl-core/accounts/index.js +0 -28
- package/lib/cjs/solana/generated/mpl-core/accounts/pluginHeaderV1.js +0 -56
- package/lib/cjs/solana/generated/mpl-core/accounts/pluginRegistryV1.js +0 -52
- package/lib/cjs/solana/generated/mpl-core/errors/index.js +0 -24
- package/lib/cjs/solana/generated/mpl-core/errors/mplCore.js +0 -142
- package/lib/cjs/solana/generated/mpl-core/index.js +0 -24
- package/lib/cjs/solana/generated/mpl-core/instructions/addCollectionExternalPluginAdapterV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/addCollectionPluginV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/addExternalPluginAdapterV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/addPluginV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/approveCollectionPluginAuthorityV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/approvePluginAuthorityV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/burnCollectionV1.js +0 -58
- package/lib/cjs/solana/generated/mpl-core/instructions/burnV1.js +0 -58
- package/lib/cjs/solana/generated/mpl-core/instructions/collect.js +0 -51
- package/lib/cjs/solana/generated/mpl-core/instructions/compressV1.js +0 -59
- package/lib/cjs/solana/generated/mpl-core/instructions/createCollectionV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/createCollectionV2.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/createV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/createV2.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/decompressV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/executeV1.js +0 -65
- package/lib/cjs/solana/generated/mpl-core/instructions/index.js +0 -56
- package/lib/cjs/solana/generated/mpl-core/instructions/removeCollectionExternalPluginAdapterV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/removeCollectionPluginV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/removeExternalPluginAdapterV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/removePluginV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/revokeCollectionPluginAuthorityV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/revokePluginAuthorityV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/transferV1.js +0 -58
- package/lib/cjs/solana/generated/mpl-core/instructions/updateCollectionExternalPluginAdapterV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/updateCollectionInfoV1.js +0 -54
- package/lib/cjs/solana/generated/mpl-core/instructions/updateCollectionPluginV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/updateCollectionV1.js +0 -61
- package/lib/cjs/solana/generated/mpl-core/instructions/updateExternalPluginAdapterV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/updatePluginV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/updateV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/updateV2.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/writeCollectionExternalPluginAdapterDataV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/instructions/writeExternalPluginAdapterDataV1.js +0 -62
- package/lib/cjs/solana/generated/mpl-core/program-address.js +0 -4
- package/lib/cjs/solana/generated/mpl-core/types/addAssetsToGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/addBlocker.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/addCollectionsToGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/addGroupsToGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/agentIdentity.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/agentIdentityInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/agentIdentityUpdateInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/appData.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/appDataInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/appDataUpdateInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/attribute.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/attributes.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/authority.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/autograph.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/autographSignature.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/bubblegumV2.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/burnDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/closeGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/compressionProof.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/creator.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/dataSection.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/dataSectionInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/dataSectionUpdateInfo.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/dataState.js +0 -29
- package/lib/cjs/solana/generated/mpl-core/types/edition.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/externalCheckResult.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/externalPluginAdapter.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/externalPluginAdapterInitInfo.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/externalPluginAdapterKey.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/externalPluginAdapterSchema.js +0 -30
- package/lib/cjs/solana/generated/mpl-core/types/externalPluginAdapterType.js +0 -34
- package/lib/cjs/solana/generated/mpl-core/types/externalPluginAdapterUpdateInfo.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/externalRegistryRecord.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/externalValidationResult.js +0 -30
- package/lib/cjs/solana/generated/mpl-core/types/extraAccount.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/freezeDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/freezeExecute.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/groups.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/hashablePluginSchema.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/hashedAssetSchema.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/hookableLifecycleEvent.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/immutableMetadata.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/index.js +0 -105
- package/lib/cjs/solana/generated/mpl-core/types/key.js +0 -34
- package/lib/cjs/solana/generated/mpl-core/types/lifecycleHook.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/lifecycleHookInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/lifecycleHookUpdateInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/linkedAppData.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/linkedAppDataInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/linkedAppDataUpdateInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/linkedDataKey.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/linkedLifecycleHook.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/linkedLifecycleHookInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/linkedLifecycleHookUpdateInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/masterEdition.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/oracle.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/oracleInitInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/oracleUpdateInfo.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/oracleValidation.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/permanentBurnDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/permanentFreezeDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/permanentFreezeExecute.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/permanentTransferDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/plugin.js +0 -32
- package/lib/cjs/solana/generated/mpl-core/types/pluginAuthorityPair.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/pluginType.js +0 -46
- package/lib/cjs/solana/generated/mpl-core/types/registryRecord.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/relationshipKind.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/removeAssetsFromGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/removeCollectionsFromGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/removeGroupsFromGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/royalties.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/ruleSet.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/seed.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/transferDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/updateAuthority.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/updateDelegate.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/updateGroupV1Args.js +0 -22
- package/lib/cjs/solana/generated/mpl-core/types/updateType.js +0 -30
- package/lib/cjs/solana/generated/mpl-core/types/validationResult.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/validationResultsOffset.js +0 -31
- package/lib/cjs/solana/generated/mpl-core/types/verifiedCreators.js +0 -23
- package/lib/cjs/solana/generated/mpl-core/types/verifiedCreatorsSignature.js +0 -22
- package/lib/cjs/solana/index.js +0 -180
- package/lib/cjs/solana/instruction.js +0 -30
- package/lib/cjs/solana/io-readable.js +0 -1649
- package/lib/cjs/solana/io-writeable.js +0 -2174
- package/lib/cjs/solana/json-rpc.js +0 -78
- package/lib/cjs/solana/metadata.js +0 -72
- package/lib/cjs/solana/mpl-core.js +0 -148
- package/lib/cjs/solana/pda.js +0 -355
- package/lib/cjs/solana/send.js +0 -164
- package/lib/cjs/solana/spawn-ant.js +0 -215
- package/lib/cjs/solana/types.js +0 -2
- package/lib/cjs/types/ant-registry.js +0 -2
- package/lib/cjs/types/ant.js +0 -180
- package/lib/cjs/types/common.js +0 -2
- package/lib/cjs/types/faucet.js +0 -2
- package/lib/cjs/types/index.js +0 -37
- package/lib/cjs/types/io.js +0 -58
- package/lib/cjs/types/token.js +0 -116
- package/lib/cjs/utils/ant.js +0 -109
- package/lib/cjs/utils/ao.js +0 -433
- package/lib/cjs/utils/arweave.js +0 -285
- package/lib/cjs/utils/base64.js +0 -62
- package/lib/cjs/utils/hash.js +0 -56
- package/lib/cjs/utils/index.js +0 -38
- package/lib/cjs/utils/json.js +0 -26
- package/lib/cjs/utils/processes.js +0 -173
- package/lib/cjs/utils/random.js +0 -30
- package/lib/cjs/utils/schema.js +0 -15
- package/lib/cjs/utils/url.js +0 -37
- package/lib/cjs/version.js +0 -20
- package/lib/cjs/web/index.js +0 -41
- package/lib/esm/solana/generated/ant/accounts/aclConfig.js +0 -46
- package/lib/esm/solana/generated/ant/accounts/aclPage.js +0 -44
- package/lib/esm/solana/generated/ant/accounts/antConfig.js +0 -43
- package/lib/esm/solana/generated/ant/accounts/antControllers.js +0 -43
- package/lib/esm/solana/generated/ant/accounts/antMigrationConfig.js +0 -46
- package/lib/esm/solana/generated/ant/accounts/antRecord.js +0 -43
- package/lib/esm/solana/generated/ant/accounts/antRecordMetadata.js +0 -43
- package/lib/esm/solana/generated/ant/accounts/index.js +0 -14
- package/lib/esm/solana/generated/ant/errors/arioAnt.js +0 -130
- package/lib/esm/solana/generated/ant/errors/index.js +0 -8
- package/lib/esm/solana/generated/ant/index.js +0 -10
- package/lib/esm/solana/generated/ant/instructions/addAclPage.js +0 -46
- package/lib/esm/solana/generated/ant/instructions/addController.js +0 -73
- package/lib/esm/solana/generated/ant/instructions/clearAttributes.js +0 -49
- package/lib/esm/solana/generated/ant/instructions/closeAclConfig.js +0 -42
- package/lib/esm/solana/generated/ant/instructions/closeAclPage.js +0 -42
- package/lib/esm/solana/generated/ant/instructions/closeOrphanedRecordMetadata.js +0 -44
- package/lib/esm/solana/generated/ant/instructions/finalizeMigration.js +0 -56
- package/lib/esm/solana/generated/ant/instructions/importAccount.js +0 -67
- package/lib/esm/solana/generated/ant/instructions/index.js +0 -37
- package/lib/esm/solana/generated/ant/instructions/initialize.js +0 -70
- package/lib/esm/solana/generated/ant/instructions/initializeMigration.js +0 -70
- package/lib/esm/solana/generated/ant/instructions/migrateAnt.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/reconcile.js +0 -59
- package/lib/esm/solana/generated/ant/instructions/recordAclController.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/recordAclOwner.js +0 -46
- package/lib/esm/solana/generated/ant/instructions/registerAclConfig.js +0 -67
- package/lib/esm/solana/generated/ant/instructions/removeAclController.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/removeAclOwner.js +0 -46
- package/lib/esm/solana/generated/ant/instructions/removeController.js +0 -66
- package/lib/esm/solana/generated/ant/instructions/removeRecord.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/removeRecordMetadata.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/setDescription.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/setKeywords.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/setLogo.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/setName.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/setRecord.js +0 -70
- package/lib/esm/solana/generated/ant/instructions/setRecordMetadata.js +0 -70
- package/lib/esm/solana/generated/ant/instructions/setTicker.js +0 -63
- package/lib/esm/solana/generated/ant/instructions/syncAttributes.js +0 -51
- package/lib/esm/solana/generated/ant/instructions/transfer.js +0 -78
- package/lib/esm/solana/generated/ant/instructions/transferRecord.js +0 -63
- package/lib/esm/solana/generated/ant/pdas/aclConfig.js +0 -12
- package/lib/esm/solana/generated/ant/pdas/antConfig.js +0 -12
- package/lib/esm/solana/generated/ant/pdas/antControllers.js +0 -12
- package/lib/esm/solana/generated/ant/pdas/controllerAclConfig.js +0 -12
- package/lib/esm/solana/generated/ant/pdas/index.js +0 -14
- package/lib/esm/solana/generated/ant/pdas/migrationConfig.js +0 -12
- package/lib/esm/solana/generated/ant/pdas/newOwnerAclConfig.js +0 -12
- package/lib/esm/solana/generated/ant/pdas/oldOwnerAclConfig.js +0 -12
- package/lib/esm/solana/generated/ant/program-address.js +0 -1
- package/lib/esm/solana/generated/ant/types/aclEntry.js +0 -17
- package/lib/esm/solana/generated/ant/types/index.js +0 -8
- package/lib/esm/solana/generated/ant-escrow/accounts/escrowAnt.js +0 -46
- package/lib/esm/solana/generated/ant-escrow/accounts/escrowToken.js +0 -46
- package/lib/esm/solana/generated/ant-escrow/accounts/index.js +0 -9
- package/lib/esm/solana/generated/ant-escrow/errors/arioAntEscrow.js +0 -64
- package/lib/esm/solana/generated/ant-escrow/errors/index.js +0 -8
- package/lib/esm/solana/generated/ant-escrow/index.js +0 -10
- package/lib/esm/solana/generated/ant-escrow/instructions/cancelDeposit.js +0 -49
- package/lib/esm/solana/generated/ant-escrow/instructions/cancelTokenDeposit.js +0 -49
- package/lib/esm/solana/generated/ant-escrow/instructions/cancelVaultDeposit.js +0 -49
- package/lib/esm/solana/generated/ant-escrow/instructions/claimAntArweave.js +0 -51
- package/lib/esm/solana/generated/ant-escrow/instructions/claimAntEthereum.js +0 -51
- package/lib/esm/solana/generated/ant-escrow/instructions/claimTokensArweave.js +0 -51
- package/lib/esm/solana/generated/ant-escrow/instructions/claimTokensEthereum.js +0 -51
- package/lib/esm/solana/generated/ant-escrow/instructions/claimVaultArweave.js +0 -54
- package/lib/esm/solana/generated/ant-escrow/instructions/claimVaultEthereum.js +0 -54
- package/lib/esm/solana/generated/ant-escrow/instructions/depositAnt.js +0 -73
- package/lib/esm/solana/generated/ant-escrow/instructions/depositTokens.js +0 -73
- package/lib/esm/solana/generated/ant-escrow/instructions/depositVault.js +0 -73
- package/lib/esm/solana/generated/ant-escrow/instructions/index.js +0 -22
- package/lib/esm/solana/generated/ant-escrow/instructions/updateRecipient.js +0 -44
- package/lib/esm/solana/generated/ant-escrow/instructions/updateTokenRecipient.js +0 -44
- package/lib/esm/solana/generated/ant-escrow/instructions/updateVaultRecipient.js +0 -44
- package/lib/esm/solana/generated/ant-escrow/pdas/depositTokensEscrow.js +0 -12
- package/lib/esm/solana/generated/ant-escrow/pdas/depositVaultEscrow.js +0 -12
- package/lib/esm/solana/generated/ant-escrow/pdas/escrow.js +0 -12
- package/lib/esm/solana/generated/ant-escrow/pdas/index.js +0 -10
- package/lib/esm/solana/generated/ant-escrow/program-address.js +0 -1
- package/lib/esm/solana/generated/arns/accounts/arnsConfig.js +0 -46
- package/lib/esm/solana/generated/arns/accounts/arnsRecord.js +0 -44
- package/lib/esm/solana/generated/arns/accounts/demandFactor.js +0 -46
- package/lib/esm/solana/generated/arns/accounts/index.js +0 -13
- package/lib/esm/solana/generated/arns/accounts/nameRegistry.js +0 -47
- package/lib/esm/solana/generated/arns/accounts/reservedName.js +0 -43
- package/lib/esm/solana/generated/arns/accounts/returnedName.js +0 -43
- package/lib/esm/solana/generated/arns/errors/arioArns.js +0 -116
- package/lib/esm/solana/generated/arns/errors/index.js +0 -8
- package/lib/esm/solana/generated/arns/index.js +0 -10
- package/lib/esm/solana/generated/arns/instructions/buyName.js +0 -80
- package/lib/esm/solana/generated/arns/instructions/buyNameFromDelegation.js +0 -86
- package/lib/esm/solana/generated/arns/instructions/buyNameFromFundingPlan.js +0 -90
- package/lib/esm/solana/generated/arns/instructions/buyNameFromOperatorStake.js +0 -86
- package/lib/esm/solana/generated/arns/instructions/buyNameFromWithdrawal.js +0 -86
- package/lib/esm/solana/generated/arns/instructions/buyReturnedName.js +0 -80
- package/lib/esm/solana/generated/arns/instructions/buyReturnedNameFromDelegation.js +0 -86
- package/lib/esm/solana/generated/arns/instructions/buyReturnedNameFromFundingPlan.js +0 -90
- package/lib/esm/solana/generated/arns/instructions/buyReturnedNameFromOperatorStake.js +0 -86
- package/lib/esm/solana/generated/arns/instructions/buyReturnedNameFromWithdrawal.js +0 -86
- package/lib/esm/solana/generated/arns/instructions/claimReservedName.js +0 -56
- package/lib/esm/solana/generated/arns/instructions/createNameRegistry.js +0 -66
- package/lib/esm/solana/generated/arns/instructions/extendLease.js +0 -70
- package/lib/esm/solana/generated/arns/instructions/extendLeaseFromDelegation.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/extendLeaseFromFundingPlan.js +0 -87
- package/lib/esm/solana/generated/arns/instructions/extendLeaseFromOperatorStake.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/extendLeaseFromWithdrawal.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/finalizeMigration.js +0 -56
- package/lib/esm/solana/generated/arns/instructions/getTokenCost.js +0 -61
- package/lib/esm/solana/generated/arns/instructions/importAccount.js +0 -67
- package/lib/esm/solana/generated/arns/instructions/importRegistryEntry.js +0 -60
- package/lib/esm/solana/generated/arns/instructions/increaseUndernameLimit.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/increaseUndernameLimitFromDelegation.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/increaseUndernameLimitFromFundingPlan.js +0 -87
- package/lib/esm/solana/generated/arns/instructions/increaseUndernameLimitFromOperatorStake.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/increaseUndernameLimitFromWithdrawal.js +0 -76
- package/lib/esm/solana/generated/arns/instructions/index.js +0 -48
- package/lib/esm/solana/generated/arns/instructions/initialize.js +0 -73
- package/lib/esm/solana/generated/arns/instructions/pruneExpiredNames.js +0 -70
- package/lib/esm/solana/generated/arns/instructions/pruneExpiredReservation.js +0 -42
- package/lib/esm/solana/generated/arns/instructions/pruneNameToReturned.js +0 -66
- package/lib/esm/solana/generated/arns/instructions/pruneReturnedNames.js +0 -67
- package/lib/esm/solana/generated/arns/instructions/reassignName.js +0 -67
- package/lib/esm/solana/generated/arns/instructions/releaseName.js +0 -66
- package/lib/esm/solana/generated/arns/instructions/reserveName.js +0 -67
- package/lib/esm/solana/generated/arns/instructions/unreserveName.js +0 -56
- package/lib/esm/solana/generated/arns/instructions/updateDemandFactor.js +0 -56
- package/lib/esm/solana/generated/arns/instructions/upgradeName.js +0 -72
- package/lib/esm/solana/generated/arns/instructions/upgradeNameFromDelegation.js +0 -72
- package/lib/esm/solana/generated/arns/instructions/upgradeNameFromFundingPlan.js +0 -87
- package/lib/esm/solana/generated/arns/instructions/upgradeNameFromOperatorStake.js +0 -72
- package/lib/esm/solana/generated/arns/instructions/upgradeNameFromWithdrawal.js +0 -72
- package/lib/esm/solana/generated/arns/pdas/config.js +0 -12
- package/lib/esm/solana/generated/arns/pdas/demandFactor.js +0 -12
- package/lib/esm/solana/generated/arns/pdas/index.js +0 -10
- package/lib/esm/solana/generated/arns/pdas/nameRegistry.js +0 -12
- package/lib/esm/solana/generated/arns/program-address.js +0 -1
- package/lib/esm/solana/generated/arns/types/buyNameParams.js +0 -18
- package/lib/esm/solana/generated/arns/types/buyReturnedNameParams.js +0 -18
- package/lib/esm/solana/generated/arns/types/costIntent.js +0 -26
- package/lib/esm/solana/generated/arns/types/fundingSourceKind.js +0 -33
- package/lib/esm/solana/generated/arns/types/fundingSourceSpec.js +0 -18
- package/lib/esm/solana/generated/arns/types/index.js +0 -14
- package/lib/esm/solana/generated/arns/types/nameEntry.js +0 -17
- package/lib/esm/solana/generated/arns/types/purchaseType.js +0 -23
- package/lib/esm/solana/generated/core/accounts/arioConfig.js +0 -46
- package/lib/esm/solana/generated/core/accounts/balance.js +0 -46
- package/lib/esm/solana/generated/core/accounts/index.js +0 -14
- package/lib/esm/solana/generated/core/accounts/primaryName.js +0 -43
- package/lib/esm/solana/generated/core/accounts/primaryNameRequest.js +0 -43
- package/lib/esm/solana/generated/core/accounts/primaryNameReverse.js +0 -43
- package/lib/esm/solana/generated/core/accounts/vault.js +0 -43
- package/lib/esm/solana/generated/core/accounts/vaultCounter.js +0 -46
- package/lib/esm/solana/generated/core/errors/arioCore.js +0 -110
- package/lib/esm/solana/generated/core/errors/index.js +0 -8
- package/lib/esm/solana/generated/core/index.js +0 -10
- package/lib/esm/solana/generated/core/instructions/adminRepairConfig.js +0 -60
- package/lib/esm/solana/generated/core/instructions/approvePrimaryName.js +0 -70
- package/lib/esm/solana/generated/core/instructions/closeExpiredRequest.js +0 -42
- package/lib/esm/solana/generated/core/instructions/createVault.js +0 -76
- package/lib/esm/solana/generated/core/instructions/extendVault.js +0 -60
- package/lib/esm/solana/generated/core/instructions/finalizeMigration.js +0 -56
- package/lib/esm/solana/generated/core/instructions/finalizeSupply.js +0 -60
- package/lib/esm/solana/generated/core/instructions/importAccount.js +0 -67
- package/lib/esm/solana/generated/core/instructions/importBalance.js +0 -85
- package/lib/esm/solana/generated/core/instructions/increaseVault.js +0 -67
- package/lib/esm/solana/generated/core/instructions/index.js +0 -29
- package/lib/esm/solana/generated/core/instructions/initialize.js +0 -70
- package/lib/esm/solana/generated/core/instructions/releaseVault.js +0 -63
- package/lib/esm/solana/generated/core/instructions/removePrimaryName.js +0 -63
- package/lib/esm/solana/generated/core/instructions/removePrimaryNameForBaseName.js +0 -63
- package/lib/esm/solana/generated/core/instructions/requestAndSetPrimaryName.js +0 -79
- package/lib/esm/solana/generated/core/instructions/requestAndSetPrimaryNameFromFundingPlan.js +0 -90
- package/lib/esm/solana/generated/core/instructions/requestPrimaryName.js +0 -76
- package/lib/esm/solana/generated/core/instructions/requestPrimaryNameFromFundingPlan.js +0 -87
- package/lib/esm/solana/generated/core/instructions/revokeVault.js +0 -63
- package/lib/esm/solana/generated/core/instructions/transfer.js +0 -48
- package/lib/esm/solana/generated/core/instructions/updateConfig.js +0 -60
- package/lib/esm/solana/generated/core/instructions/vaultedTransfer.js +0 -76
- package/lib/esm/solana/generated/core/pdas/balance.js +0 -12
- package/lib/esm/solana/generated/core/pdas/config.js +0 -12
- package/lib/esm/solana/generated/core/pdas/index.js +0 -15
- package/lib/esm/solana/generated/core/pdas/primaryName.js +0 -12
- package/lib/esm/solana/generated/core/pdas/primaryNameReverse.js +0 -12
- package/lib/esm/solana/generated/core/pdas/recipientVaultCounter.js +0 -12
- package/lib/esm/solana/generated/core/pdas/request.js +0 -12
- package/lib/esm/solana/generated/core/pdas/requestAndSetPrimaryNamePrimaryName.js +0 -12
- package/lib/esm/solana/generated/core/pdas/vaultCounter.js +0 -12
- package/lib/esm/solana/generated/core/program-address.js +0 -1
- package/lib/esm/solana/generated/core/types/fundingSourceKind.js +0 -33
- package/lib/esm/solana/generated/core/types/fundingSourceSpec.js +0 -18
- package/lib/esm/solana/generated/core/types/index.js +0 -9
- package/lib/esm/solana/generated/gar/accounts/allowlistEntry.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/delegation.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/epoch.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/epochSettings.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/gateway.js +0 -44
- package/lib/esm/solana/generated/gar/accounts/gatewayRegistry.js +0 -47
- package/lib/esm/solana/generated/gar/accounts/gatewaySettings.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/index.js +0 -19
- package/lib/esm/solana/generated/gar/accounts/observation.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/observerLookup.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/redelegationRecord.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/withdrawal.js +0 -46
- package/lib/esm/solana/generated/gar/accounts/withdrawalCounter.js +0 -46
- package/lib/esm/solana/generated/gar/errors/arioGar.js +0 -194
- package/lib/esm/solana/generated/gar/errors/index.js +0 -8
- package/lib/esm/solana/generated/gar/index.js +0 -10
- package/lib/esm/solana/generated/gar/instructions/adminRepairSettings.js +0 -60
- package/lib/esm/solana/generated/gar/instructions/allowDelegate.js +0 -66
- package/lib/esm/solana/generated/gar/instructions/cancelWithdrawal.js +0 -60
- package/lib/esm/solana/generated/gar/instructions/claimDelegateFromLeavingGateway.js +0 -66
- package/lib/esm/solana/generated/gar/instructions/claimWithdrawal.js +0 -63
- package/lib/esm/solana/generated/gar/instructions/closeDrainedWithdrawal.js +0 -42
- package/lib/esm/solana/generated/gar/instructions/closeEmptyDelegation.js +0 -42
- package/lib/esm/solana/generated/gar/instructions/closeEpoch.js +0 -63
- package/lib/esm/solana/generated/gar/instructions/closeObservation.js +0 -60
- package/lib/esm/solana/generated/gar/instructions/compoundDelegationRewards.js +0 -42
- package/lib/esm/solana/generated/gar/instructions/createEpoch.js +0 -69
- package/lib/esm/solana/generated/gar/instructions/createGatewayRegistry.js +0 -66
- package/lib/esm/solana/generated/gar/instructions/decreaseDelegateStake.js +0 -70
- package/lib/esm/solana/generated/gar/instructions/decreaseOperatorStake.js +0 -73
- package/lib/esm/solana/generated/gar/instructions/deductDelegationForPayment.js +0 -67
- package/lib/esm/solana/generated/gar/instructions/deductOperatorStakeForPayment.js +0 -70
- package/lib/esm/solana/generated/gar/instructions/deductWithdrawalForPayment.js +0 -67
- package/lib/esm/solana/generated/gar/instructions/delegateStake.js +0 -73
- package/lib/esm/solana/generated/gar/instructions/disallowDelegate.js +0 -59
- package/lib/esm/solana/generated/gar/instructions/distributeEpoch.js +0 -76
- package/lib/esm/solana/generated/gar/instructions/finalizeGone.js +0 -59
- package/lib/esm/solana/generated/gar/instructions/finalizeMigration.js +0 -56
- package/lib/esm/solana/generated/gar/instructions/importAccount.js +0 -67
- package/lib/esm/solana/generated/gar/instructions/importRegistryEntry.js +0 -60
- package/lib/esm/solana/generated/gar/instructions/increaseOperatorStake.js +0 -70
- package/lib/esm/solana/generated/gar/instructions/index.js +0 -50
- package/lib/esm/solana/generated/gar/instructions/initialize.js +0 -70
- package/lib/esm/solana/generated/gar/instructions/initializeEpochs.js +0 -70
- package/lib/esm/solana/generated/gar/instructions/instantWithdrawal.js +0 -63
- package/lib/esm/solana/generated/gar/instructions/joinNetwork.js +0 -80
- package/lib/esm/solana/generated/gar/instructions/leaveNetwork.js +0 -79
- package/lib/esm/solana/generated/gar/instructions/migrateSettingsSetArnsProgramId.js +0 -67
- package/lib/esm/solana/generated/gar/instructions/migrateSettingsSupplyCounters.js +0 -60
- package/lib/esm/solana/generated/gar/instructions/payFromFundingPlan.js +0 -81
- package/lib/esm/solana/generated/gar/instructions/prescribeEpoch.js +0 -69
- package/lib/esm/solana/generated/gar/instructions/pruneGateway.js +0 -79
- package/lib/esm/solana/generated/gar/instructions/redelegateStake.js +0 -76
- package/lib/esm/solana/generated/gar/instructions/releaseTreasuryAuthority.js +0 -67
- package/lib/esm/solana/generated/gar/instructions/saveObservations.js +0 -70
- package/lib/esm/solana/generated/gar/instructions/setAllowlistEnabled.js +0 -63
- package/lib/esm/solana/generated/gar/instructions/setEpochsEnabled.js +0 -60
- package/lib/esm/solana/generated/gar/instructions/tallyWeights.js +0 -69
- package/lib/esm/solana/generated/gar/instructions/updateGatewaySettings.js +0 -64
- package/lib/esm/solana/generated/gar/instructions/updateObserverAddress.js +0 -70
- package/lib/esm/solana/generated/gar/pdas/allowlistEntry.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/decreaseOperatorStakeWithdrawalCounter.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/epoch.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/epochSettings.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/gateway.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/index.js +0 -19
- package/lib/esm/solana/generated/gar/pdas/newObserverLookup.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/observation.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/payFromFundingPlanWithdrawalCounter.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/redelegationRecord.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/registry.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/settings.js +0 -12
- package/lib/esm/solana/generated/gar/pdas/withdrawalCounter.js +0 -12
- package/lib/esm/solana/generated/gar/program-address.js +0 -1
- package/lib/esm/solana/generated/gar/types/fundingSourceKind.js +0 -33
- package/lib/esm/solana/generated/gar/types/fundingSourceSpec.js +0 -18
- package/lib/esm/solana/generated/gar/types/gatewaySettings2.js +0 -17
- package/lib/esm/solana/generated/gar/types/gatewaySlot.js +0 -17
- package/lib/esm/solana/generated/gar/types/gatewayStats.js +0 -17
- package/lib/esm/solana/generated/gar/types/gatewayStatus.js +0 -24
- package/lib/esm/solana/generated/gar/types/gatewayWeights.js +0 -17
- package/lib/esm/solana/generated/gar/types/index.js +0 -16
- package/lib/esm/solana/generated/gar/types/protocol.js +0 -23
- package/lib/esm/solana/generated/gar/types/registryIndex.js +0 -17
- package/lib/types/solana/generated/ant/accounts/aclConfig.d.ts +0 -56
- package/lib/types/solana/generated/ant/accounts/aclPage.d.ts +0 -44
- package/lib/types/solana/generated/ant/accounts/antConfig.d.ts +0 -63
- package/lib/types/solana/generated/ant/accounts/antControllers.d.ts +0 -51
- package/lib/types/solana/generated/ant/accounts/antMigrationConfig.d.ts +0 -44
- package/lib/types/solana/generated/ant/accounts/antRecord.d.ts +0 -75
- package/lib/types/solana/generated/ant/accounts/antRecordMetadata.d.ts +0 -59
- package/lib/types/solana/generated/ant/accounts/index.d.ts +0 -14
- package/lib/types/solana/generated/ant/errors/arioAnt.d.ts +0 -127
- package/lib/types/solana/generated/ant/errors/index.d.ts +0 -8
- package/lib/types/solana/generated/ant/index.d.ts +0 -10
- package/lib/types/solana/generated/ant/instructions/addAclPage.d.ts +0 -39
- package/lib/types/solana/generated/ant/instructions/addController.d.ts +0 -95
- package/lib/types/solana/generated/ant/instructions/clearAttributes.d.ts +0 -67
- package/lib/types/solana/generated/ant/instructions/closeAclConfig.d.ts +0 -43
- package/lib/types/solana/generated/ant/instructions/closeAclPage.d.ts +0 -39
- package/lib/types/solana/generated/ant/instructions/closeOrphanedRecordMetadata.d.ts +0 -55
- package/lib/types/solana/generated/ant/instructions/finalizeMigration.d.ts +0 -42
- package/lib/types/solana/generated/ant/instructions/importAccount.d.ts +0 -60
- package/lib/types/solana/generated/ant/instructions/index.d.ts +0 -37
- package/lib/types/solana/generated/ant/instructions/initialize.d.ts +0 -103
- package/lib/types/solana/generated/ant/instructions/initializeMigration.d.ts +0 -78
- package/lib/types/solana/generated/ant/instructions/migrateAnt.d.ts +0 -51
- package/lib/types/solana/generated/ant/instructions/reconcile.d.ts +0 -51
- package/lib/types/solana/generated/ant/instructions/recordAclController.d.ts +0 -66
- package/lib/types/solana/generated/ant/instructions/recordAclOwner.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/registerAclConfig.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/removeAclController.d.ts +0 -66
- package/lib/types/solana/generated/ant/instructions/removeAclOwner.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/removeController.d.ts +0 -59
- package/lib/types/solana/generated/ant/instructions/removeRecord.d.ts +0 -81
- package/lib/types/solana/generated/ant/instructions/removeRecordMetadata.d.ts +0 -59
- package/lib/types/solana/generated/ant/instructions/setDescription.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/setKeywords.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/setLogo.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/setName.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/setRecord.d.ts +0 -91
- package/lib/types/solana/generated/ant/instructions/setRecordMetadata.d.ts +0 -94
- package/lib/types/solana/generated/ant/instructions/setTicker.d.ts +0 -53
- package/lib/types/solana/generated/ant/instructions/syncAttributes.d.ts +0 -77
- package/lib/types/solana/generated/ant/instructions/transfer.d.ts +0 -162
- package/lib/types/solana/generated/ant/instructions/transferRecord.d.ts +0 -56
- package/lib/types/solana/generated/ant/pdas/aclConfig.d.ts +0 -14
- package/lib/types/solana/generated/ant/pdas/antConfig.d.ts +0 -14
- package/lib/types/solana/generated/ant/pdas/antControllers.d.ts +0 -14
- package/lib/types/solana/generated/ant/pdas/controllerAclConfig.d.ts +0 -14
- package/lib/types/solana/generated/ant/pdas/index.d.ts +0 -14
- package/lib/types/solana/generated/ant/pdas/migrationConfig.d.ts +0 -11
- package/lib/types/solana/generated/ant/pdas/newOwnerAclConfig.d.ts +0 -14
- package/lib/types/solana/generated/ant/pdas/oldOwnerAclConfig.d.ts +0 -14
- package/lib/types/solana/generated/ant/program-address.d.ts +0 -7
- package/lib/types/solana/generated/ant/types/aclEntry.d.ts +0 -27
- package/lib/types/solana/generated/ant/types/index.d.ts +0 -8
- package/lib/types/solana/generated/ant-escrow/accounts/escrowAnt.d.ts +0 -116
- package/lib/types/solana/generated/ant-escrow/accounts/escrowToken.d.ts +0 -100
- package/lib/types/solana/generated/ant-escrow/accounts/index.d.ts +0 -9
- package/lib/types/solana/generated/ant-escrow/errors/arioAntEscrow.d.ts +0 -61
- package/lib/types/solana/generated/ant-escrow/errors/index.d.ts +0 -8
- package/lib/types/solana/generated/ant-escrow/index.d.ts +0 -10
- package/lib/types/solana/generated/ant-escrow/instructions/cancelDeposit.d.ts +0 -69
- package/lib/types/solana/generated/ant-escrow/instructions/cancelTokenDeposit.d.ts +0 -59
- package/lib/types/solana/generated/ant-escrow/instructions/cancelVaultDeposit.d.ts +0 -59
- package/lib/types/solana/generated/ant-escrow/instructions/claimAntArweave.d.ts +0 -105
- package/lib/types/solana/generated/ant-escrow/instructions/claimAntEthereum.d.ts +0 -54
- package/lib/types/solana/generated/ant-escrow/instructions/claimTokensArweave.d.ts +0 -69
- package/lib/types/solana/generated/ant-escrow/instructions/claimTokensEthereum.d.ts +0 -60
- package/lib/types/solana/generated/ant-escrow/instructions/claimVaultArweave.d.ts +0 -65
- package/lib/types/solana/generated/ant-escrow/instructions/claimVaultEthereum.d.ts +0 -92
- package/lib/types/solana/generated/ant-escrow/instructions/depositAnt.d.ts +0 -117
- package/lib/types/solana/generated/ant-escrow/instructions/depositTokens.d.ts +0 -101
- package/lib/types/solana/generated/ant-escrow/instructions/depositVault.d.ts +0 -97
- package/lib/types/solana/generated/ant-escrow/instructions/index.d.ts +0 -22
- package/lib/types/solana/generated/ant-escrow/instructions/updateRecipient.d.ts +0 -56
- package/lib/types/solana/generated/ant-escrow/instructions/updateTokenRecipient.d.ts +0 -52
- package/lib/types/solana/generated/ant-escrow/instructions/updateVaultRecipient.d.ts +0 -52
- package/lib/types/solana/generated/ant-escrow/pdas/depositTokensEscrow.d.ts +0 -15
- package/lib/types/solana/generated/ant-escrow/pdas/depositVaultEscrow.d.ts +0 -15
- package/lib/types/solana/generated/ant-escrow/pdas/escrow.d.ts +0 -14
- package/lib/types/solana/generated/ant-escrow/pdas/index.d.ts +0 -10
- package/lib/types/solana/generated/ant-escrow/program-address.d.ts +0 -7
- package/lib/types/solana/generated/arns/accounts/arnsConfig.d.ts +0 -76
- package/lib/types/solana/generated/arns/accounts/arnsRecord.d.ts +0 -92
- package/lib/types/solana/generated/arns/accounts/demandFactor.d.ts +0 -72
- package/lib/types/solana/generated/arns/accounts/index.d.ts +0 -13
- package/lib/types/solana/generated/arns/accounts/nameRegistry.d.ts +0 -65
- package/lib/types/solana/generated/arns/accounts/reservedName.d.ts +0 -51
- package/lib/types/solana/generated/arns/accounts/returnedName.d.ts +0 -47
- package/lib/types/solana/generated/arns/errors/arioArns.d.ts +0 -113
- package/lib/types/solana/generated/arns/errors/index.d.ts +0 -8
- package/lib/types/solana/generated/arns/index.d.ts +0 -10
- package/lib/types/solana/generated/arns/instructions/buyName.d.ts +0 -81
- package/lib/types/solana/generated/arns/instructions/buyNameFromDelegation.d.ts +0 -87
- package/lib/types/solana/generated/arns/instructions/buyNameFromFundingPlan.d.ts +0 -99
- package/lib/types/solana/generated/arns/instructions/buyNameFromOperatorStake.d.ts +0 -84
- package/lib/types/solana/generated/arns/instructions/buyNameFromWithdrawal.d.ts +0 -84
- package/lib/types/solana/generated/arns/instructions/buyReturnedName.d.ts +0 -75
- package/lib/types/solana/generated/arns/instructions/buyReturnedNameFromDelegation.d.ts +0 -96
- package/lib/types/solana/generated/arns/instructions/buyReturnedNameFromFundingPlan.d.ts +0 -102
- package/lib/types/solana/generated/arns/instructions/buyReturnedNameFromOperatorStake.d.ts +0 -93
- package/lib/types/solana/generated/arns/instructions/buyReturnedNameFromWithdrawal.d.ts +0 -87
- package/lib/types/solana/generated/arns/instructions/claimReservedName.d.ts +0 -45
- package/lib/types/solana/generated/arns/instructions/createNameRegistry.d.ts +0 -48
- package/lib/types/solana/generated/arns/instructions/extendLease.d.ts +0 -62
- package/lib/types/solana/generated/arns/instructions/extendLeaseFromDelegation.d.ts +0 -74
- package/lib/types/solana/generated/arns/instructions/extendLeaseFromFundingPlan.d.ts +0 -90
- package/lib/types/solana/generated/arns/instructions/extendLeaseFromOperatorStake.d.ts +0 -71
- package/lib/types/solana/generated/arns/instructions/extendLeaseFromWithdrawal.d.ts +0 -71
- package/lib/types/solana/generated/arns/instructions/finalizeMigration.d.ts +0 -42
- package/lib/types/solana/generated/arns/instructions/getTokenCost.d.ts +0 -66
- package/lib/types/solana/generated/arns/instructions/importAccount.d.ts +0 -60
- package/lib/types/solana/generated/arns/instructions/importRegistryEntry.d.ts +0 -54
- package/lib/types/solana/generated/arns/instructions/increaseUndernameLimit.d.ts +0 -65
- package/lib/types/solana/generated/arns/instructions/increaseUndernameLimitFromDelegation.d.ts +0 -74
- package/lib/types/solana/generated/arns/instructions/increaseUndernameLimitFromFundingPlan.d.ts +0 -90
- package/lib/types/solana/generated/arns/instructions/increaseUndernameLimitFromOperatorStake.d.ts +0 -71
- package/lib/types/solana/generated/arns/instructions/increaseUndernameLimitFromWithdrawal.d.ts +0 -71
- package/lib/types/solana/generated/arns/instructions/index.d.ts +0 -48
- package/lib/types/solana/generated/arns/instructions/initialize.d.ts +0 -90
- package/lib/types/solana/generated/arns/instructions/pruneExpiredNames.d.ts +0 -56
- package/lib/types/solana/generated/arns/instructions/pruneExpiredReservation.d.ts +0 -37
- package/lib/types/solana/generated/arns/instructions/pruneNameToReturned.d.ts +0 -54
- package/lib/types/solana/generated/arns/instructions/pruneReturnedNames.d.ts +0 -50
- package/lib/types/solana/generated/arns/instructions/reassignName.d.ts +0 -53
- package/lib/types/solana/generated/arns/instructions/releaseName.d.ts +0 -54
- package/lib/types/solana/generated/arns/instructions/reserveName.d.ts +0 -61
- package/lib/types/solana/generated/arns/instructions/unreserveName.d.ts +0 -45
- package/lib/types/solana/generated/arns/instructions/updateDemandFactor.d.ts +0 -42
- package/lib/types/solana/generated/arns/instructions/upgradeName.d.ts +0 -60
- package/lib/types/solana/generated/arns/instructions/upgradeNameFromDelegation.d.ts +0 -69
- package/lib/types/solana/generated/arns/instructions/upgradeNameFromFundingPlan.d.ts +0 -86
- package/lib/types/solana/generated/arns/instructions/upgradeNameFromOperatorStake.d.ts +0 -66
- package/lib/types/solana/generated/arns/instructions/upgradeNameFromWithdrawal.d.ts +0 -66
- package/lib/types/solana/generated/arns/pdas/config.d.ts +0 -11
- package/lib/types/solana/generated/arns/pdas/demandFactor.d.ts +0 -11
- package/lib/types/solana/generated/arns/pdas/index.d.ts +0 -10
- package/lib/types/solana/generated/arns/pdas/nameRegistry.d.ts +0 -11
- package/lib/types/solana/generated/arns/program-address.d.ts +0 -7
- package/lib/types/solana/generated/arns/types/buyNameParams.d.ts +0 -32
- package/lib/types/solana/generated/arns/types/buyReturnedNameParams.d.ts +0 -26
- package/lib/types/solana/generated/arns/types/costIntent.d.ts +0 -19
- package/lib/types/solana/generated/arns/types/fundingSourceKind.d.ts +0 -26
- package/lib/types/solana/generated/arns/types/fundingSourceSpec.d.ts +0 -21
- package/lib/types/solana/generated/arns/types/index.d.ts +0 -14
- package/lib/types/solana/generated/arns/types/nameEntry.d.ts +0 -21
- package/lib/types/solana/generated/arns/types/purchaseType.d.ts +0 -16
- package/lib/types/solana/generated/core/accounts/arioConfig.d.ts +0 -84
- package/lib/types/solana/generated/core/accounts/balance.d.ts +0 -40
- package/lib/types/solana/generated/core/accounts/index.d.ts +0 -14
- package/lib/types/solana/generated/core/accounts/primaryName.d.ts +0 -43
- package/lib/types/solana/generated/core/accounts/primaryNameRequest.d.ts +0 -47
- package/lib/types/solana/generated/core/accounts/primaryNameReverse.d.ts +0 -39
- package/lib/types/solana/generated/core/accounts/vault.d.ts +0 -59
- package/lib/types/solana/generated/core/accounts/vaultCounter.d.ts +0 -40
- package/lib/types/solana/generated/core/errors/arioCore.d.ts +0 -107
- package/lib/types/solana/generated/core/errors/index.d.ts +0 -8
- package/lib/types/solana/generated/core/index.d.ts +0 -10
- package/lib/types/solana/generated/core/instructions/adminRepairConfig.d.ts +0 -51
- package/lib/types/solana/generated/core/instructions/approvePrimaryName.d.ts +0 -93
- package/lib/types/solana/generated/core/instructions/closeExpiredRequest.d.ts +0 -39
- package/lib/types/solana/generated/core/instructions/createVault.d.ts +0 -69
- package/lib/types/solana/generated/core/instructions/extendVault.d.ts +0 -50
- package/lib/types/solana/generated/core/instructions/finalizeMigration.d.ts +0 -42
- package/lib/types/solana/generated/core/instructions/finalizeSupply.d.ts +0 -59
- package/lib/types/solana/generated/core/instructions/importAccount.d.ts +0 -60
- package/lib/types/solana/generated/core/instructions/importBalance.d.ts +0 -153
- package/lib/types/solana/generated/core/instructions/increaseVault.d.ts +0 -59
- package/lib/types/solana/generated/core/instructions/index.d.ts +0 -29
- package/lib/types/solana/generated/core/instructions/initialize.d.ts +0 -99
- package/lib/types/solana/generated/core/instructions/releaseVault.d.ts +0 -54
- package/lib/types/solana/generated/core/instructions/removePrimaryName.d.ts +0 -53
- package/lib/types/solana/generated/core/instructions/removePrimaryNameForBaseName.d.ts +0 -75
- package/lib/types/solana/generated/core/instructions/requestAndSetPrimaryName.d.ts +0 -85
- package/lib/types/solana/generated/core/instructions/requestAndSetPrimaryNameFromFundingPlan.d.ts +0 -98
- package/lib/types/solana/generated/core/instructions/requestPrimaryName.d.ts +0 -68
- package/lib/types/solana/generated/core/instructions/requestPrimaryNameFromFundingPlan.d.ts +0 -90
- package/lib/types/solana/generated/core/instructions/revokeVault.d.ts +0 -54
- package/lib/types/solana/generated/core/instructions/transfer.d.ts +0 -43
- package/lib/types/solana/generated/core/instructions/updateConfig.d.ts +0 -59
- package/lib/types/solana/generated/core/instructions/vaultedTransfer.d.ts +0 -76
- package/lib/types/solana/generated/core/pdas/balance.d.ts +0 -14
- package/lib/types/solana/generated/core/pdas/config.d.ts +0 -11
- package/lib/types/solana/generated/core/pdas/index.d.ts +0 -15
- package/lib/types/solana/generated/core/pdas/primaryName.d.ts +0 -14
- package/lib/types/solana/generated/core/pdas/primaryNameReverse.d.ts +0 -14
- package/lib/types/solana/generated/core/pdas/recipientVaultCounter.d.ts +0 -14
- package/lib/types/solana/generated/core/pdas/request.d.ts +0 -14
- package/lib/types/solana/generated/core/pdas/requestAndSetPrimaryNamePrimaryName.d.ts +0 -14
- package/lib/types/solana/generated/core/pdas/vaultCounter.d.ts +0 -14
- package/lib/types/solana/generated/core/program-address.d.ts +0 -7
- package/lib/types/solana/generated/core/types/fundingSourceKind.d.ts +0 -26
- package/lib/types/solana/generated/core/types/fundingSourceSpec.d.ts +0 -21
- package/lib/types/solana/generated/core/types/index.d.ts +0 -9
- package/lib/types/solana/generated/gar/accounts/allowlistEntry.d.ts +0 -36
- package/lib/types/solana/generated/gar/accounts/delegation.d.ts +0 -42
- package/lib/types/solana/generated/gar/accounts/epoch.d.ts +0 -118
- package/lib/types/solana/generated/gar/accounts/epochSettings.d.ts +0 -120
- package/lib/types/solana/generated/gar/accounts/gateway.d.ts +0 -106
- package/lib/types/solana/generated/gar/accounts/gatewayRegistry.d.ts +0 -59
- package/lib/types/solana/generated/gar/accounts/gatewaySettings.d.ts +0 -94
- package/lib/types/solana/generated/gar/accounts/index.d.ts +0 -19
- package/lib/types/solana/generated/gar/accounts/observation.d.ts +0 -54
- package/lib/types/solana/generated/gar/accounts/observerLookup.d.ts +0 -32
- package/lib/types/solana/generated/gar/accounts/redelegationRecord.d.ts +0 -44
- package/lib/types/solana/generated/gar/accounts/withdrawal.d.ts +0 -82
- package/lib/types/solana/generated/gar/accounts/withdrawalCounter.d.ts +0 -34
- package/lib/types/solana/generated/gar/errors/arioGar.d.ts +0 -188
- package/lib/types/solana/generated/gar/errors/index.d.ts +0 -8
- package/lib/types/solana/generated/gar/index.d.ts +0 -10
- package/lib/types/solana/generated/gar/instructions/adminRepairSettings.d.ts +0 -55
- package/lib/types/solana/generated/gar/instructions/allowDelegate.d.ts +0 -51
- package/lib/types/solana/generated/gar/instructions/cancelWithdrawal.d.ts +0 -63
- package/lib/types/solana/generated/gar/instructions/claimDelegateFromLeavingGateway.d.ts +0 -93
- package/lib/types/solana/generated/gar/instructions/claimWithdrawal.d.ts +0 -54
- package/lib/types/solana/generated/gar/instructions/closeDrainedWithdrawal.d.ts +0 -53
- package/lib/types/solana/generated/gar/instructions/closeEmptyDelegation.d.ts +0 -51
- package/lib/types/solana/generated/gar/instructions/closeEpoch.d.ts +0 -50
- package/lib/types/solana/generated/gar/instructions/closeObservation.d.ts +0 -50
- package/lib/types/solana/generated/gar/instructions/compoundDelegationRewards.d.ts +0 -37
- package/lib/types/solana/generated/gar/instructions/createEpoch.d.ts +0 -63
- package/lib/types/solana/generated/gar/instructions/createGatewayRegistry.d.ts +0 -48
- package/lib/types/solana/generated/gar/instructions/decreaseDelegateStake.d.ts +0 -62
- package/lib/types/solana/generated/gar/instructions/decreaseOperatorStake.d.ts +0 -59
- package/lib/types/solana/generated/gar/instructions/deductDelegationForPayment.d.ts +0 -65
- package/lib/types/solana/generated/gar/instructions/deductOperatorStakeForPayment.d.ts +0 -62
- package/lib/types/solana/generated/gar/instructions/deductWithdrawalForPayment.d.ts +0 -62
- package/lib/types/solana/generated/gar/instructions/delegateStake.d.ts +0 -65
- package/lib/types/solana/generated/gar/instructions/disallowDelegate.d.ts +0 -48
- package/lib/types/solana/generated/gar/instructions/distributeEpoch.d.ts +0 -74
- package/lib/types/solana/generated/gar/instructions/finalizeGone.d.ts +0 -72
- package/lib/types/solana/generated/gar/instructions/finalizeMigration.d.ts +0 -42
- package/lib/types/solana/generated/gar/instructions/importAccount.d.ts +0 -60
- package/lib/types/solana/generated/gar/instructions/importRegistryEntry.d.ts +0 -58
- package/lib/types/solana/generated/gar/instructions/increaseOperatorStake.d.ts +0 -59
- package/lib/types/solana/generated/gar/instructions/index.d.ts +0 -50
- package/lib/types/solana/generated/gar/instructions/initialize.d.ts +0 -102
- package/lib/types/solana/generated/gar/instructions/initializeEpochs.d.ts +0 -91
- package/lib/types/solana/generated/gar/instructions/instantWithdrawal.d.ts +0 -57
- package/lib/types/solana/generated/gar/instructions/joinNetwork.d.ts +0 -123
- package/lib/types/solana/generated/gar/instructions/leaveNetwork.d.ts +0 -135
- package/lib/types/solana/generated/gar/instructions/migrateSettingsSetArnsProgramId.d.ts +0 -71
- package/lib/types/solana/generated/gar/instructions/migrateSettingsSupplyCounters.d.ts +0 -55
- package/lib/types/solana/generated/gar/instructions/payFromFundingPlan.d.ts +0 -116
- package/lib/types/solana/generated/gar/instructions/prescribeEpoch.d.ts +0 -68
- package/lib/types/solana/generated/gar/instructions/pruneGateway.d.ts +0 -120
- package/lib/types/solana/generated/gar/instructions/redelegateStake.d.ts +0 -116
- package/lib/types/solana/generated/gar/instructions/releaseTreasuryAuthority.d.ts +0 -74
- package/lib/types/solana/generated/gar/instructions/saveObservations.d.ts +0 -65
- package/lib/types/solana/generated/gar/instructions/setAllowlistEnabled.d.ts +0 -50
- package/lib/types/solana/generated/gar/instructions/setEpochsEnabled.d.ts +0 -47
- package/lib/types/solana/generated/gar/instructions/tallyWeights.d.ts +0 -56
- package/lib/types/solana/generated/gar/instructions/updateGatewaySettings.d.ts +0 -83
- package/lib/types/solana/generated/gar/instructions/updateObserverAddress.d.ts +0 -56
- package/lib/types/solana/generated/gar/pdas/allowlistEntry.d.ts +0 -15
- package/lib/types/solana/generated/gar/pdas/decreaseOperatorStakeWithdrawalCounter.d.ts +0 -14
- package/lib/types/solana/generated/gar/pdas/epoch.d.ts +0 -14
- package/lib/types/solana/generated/gar/pdas/epochSettings.d.ts +0 -11
- package/lib/types/solana/generated/gar/pdas/gateway.d.ts +0 -14
- package/lib/types/solana/generated/gar/pdas/index.d.ts +0 -19
- package/lib/types/solana/generated/gar/pdas/newObserverLookup.d.ts +0 -14
- package/lib/types/solana/generated/gar/pdas/observation.d.ts +0 -15
- package/lib/types/solana/generated/gar/pdas/payFromFundingPlanWithdrawalCounter.d.ts +0 -14
- package/lib/types/solana/generated/gar/pdas/redelegationRecord.d.ts +0 -14
- package/lib/types/solana/generated/gar/pdas/registry.d.ts +0 -11
- package/lib/types/solana/generated/gar/pdas/settings.d.ts +0 -11
- package/lib/types/solana/generated/gar/pdas/withdrawalCounter.d.ts +0 -14
- package/lib/types/solana/generated/gar/program-address.d.ts +0 -7
- package/lib/types/solana/generated/gar/types/fundingSourceKind.d.ts +0 -26
- package/lib/types/solana/generated/gar/types/fundingSourceSpec.d.ts +0 -21
- package/lib/types/solana/generated/gar/types/gatewaySettings2.d.ts +0 -32
- package/lib/types/solana/generated/gar/types/gatewaySlot.d.ts +0 -37
- package/lib/types/solana/generated/gar/types/gatewayStats.d.ts +0 -22
- package/lib/types/solana/generated/gar/types/gatewayStatus.d.ts +0 -17
- package/lib/types/solana/generated/gar/types/gatewayWeights.d.ts +0 -48
- package/lib/types/solana/generated/gar/types/index.d.ts +0 -16
- package/lib/types/solana/generated/gar/types/protocol.d.ts +0 -16
- package/lib/types/solana/generated/gar/types/registryIndex.d.ts +0 -25
package/README.md
CHANGED
|
@@ -11,14 +11,6 @@ This is the home of the ar.io SDK. This SDK provides functionality for interacti
|
|
|
11
11
|
- [Table of Contents](#table-of-contents)
|
|
12
12
|
- [Installation](#installation)
|
|
13
13
|
- [Quick Start](#quick-start)
|
|
14
|
-
- [Usage](#usage)
|
|
15
|
-
- [ARIO Contract](#ario-contract)
|
|
16
|
-
- [ANT Contracts](#ant-contracts)
|
|
17
|
-
- [Token Conversion](#token-conversion)
|
|
18
|
-
- [Logging](#logging)
|
|
19
|
-
- [Pagination](#pagination)
|
|
20
|
-
- [Resources](#resources)
|
|
21
|
-
- [Developers](#developers)
|
|
22
14
|
|
|
23
15
|
<!-- tocstop -->
|
|
24
16
|
|
|
@@ -114,7 +106,7 @@ const gateways = await ario.getGateways();
|
|
|
114
106
|
|
|
115
107
|
## Usage
|
|
116
108
|
|
|
117
|
-
The SDK is
|
|
109
|
+
The SDK is published as an ES module (`"type": "module"`) and is compatible with modern bundlers such as Webpack, Rollup, ESbuild, and Vite. CommonJS consumers should migrate to ESM (Node 18+ supports ESM natively, and modern bundlers handle ESM packages out of the box). Utilize the appropriately named exports provided by this SDK's [package.json] based on your project's configuration. Refer to the [examples] directory to see how to use the SDK in various environments.
|
|
118
110
|
|
|
119
111
|
### Web
|
|
120
112
|
|
|
@@ -148,8 +140,6 @@ const gateways = await ario.getGateways();
|
|
|
148
140
|
|
|
149
141
|
### Node
|
|
150
142
|
|
|
151
|
-
#### ESM (NodeNext)
|
|
152
|
-
|
|
153
143
|
```javascript
|
|
154
144
|
import { ARIO } from "@ar.io/sdk/node";
|
|
155
145
|
|
|
@@ -159,17 +149,6 @@ const ario = ARIO.mainnet();
|
|
|
159
149
|
const gateways = await ario.getGateways();
|
|
160
150
|
```
|
|
161
151
|
|
|
162
|
-
#### CJS
|
|
163
|
-
|
|
164
|
-
```javascript
|
|
165
|
-
import { ARIO } from "@ar.io/sdk";
|
|
166
|
-
|
|
167
|
-
// set up client
|
|
168
|
-
const ario = ARIO.mainnet();
|
|
169
|
-
// fetch gateways
|
|
170
|
-
const gateways = await ario.getGateways();
|
|
171
|
-
```
|
|
172
|
-
|
|
173
152
|
### Typescript
|
|
174
153
|
|
|
175
154
|
The SDK provides TypeScript types. When you import the SDK in a TypeScript project types are exported from `./lib/types/[node/web]/index.d.ts` and should be automatically recognized by package managers, offering benefits such as type-checking and autocompletion.
|
|
@@ -3355,7 +3334,6 @@ For more information on how to use AO and AO Connect within this library, please
|
|
|
3355
3334
|
- `yarn test:e2e` - runs e2e tests
|
|
3356
3335
|
- `yarn test:unit` - runs unit tests
|
|
3357
3336
|
- `yarn example:web` - opens up the example web page
|
|
3358
|
-
- `yarn example:cjs` - runs example CJS node script
|
|
3359
3337
|
- `yarn example:esm` - runs example ESM node script
|
|
3360
3338
|
- `yarn example:vite` - runs example Vite web page
|
|
3361
3339
|
|
|
@@ -12,11 +12,11 @@ import bs58 from 'bs58';
|
|
|
12
12
|
// AntRecordMetadata discriminator — regenerate via `yarn codegen` after IDL rebase
|
|
13
13
|
// to expose ANT_RECORD_METADATA_DISCRIMINATOR. Until then, compute inline.
|
|
14
14
|
import { createHash as __createHash } from 'crypto';
|
|
15
|
+
import { ANT_RECORD_DISCRIMINATOR } from '@ar.io/solana-contracts/ant';
|
|
15
16
|
import { Logger } from '../common/logger.js';
|
|
16
17
|
import { SolanaANTRegistryReadable } from './ant-registry-readable.js';
|
|
17
18
|
import { ANT_CONFIG_VERSION, ARIO_ANT_PROGRAM_ID } from './constants.js';
|
|
18
19
|
import { deserializeAntConfig, deserializeAntControllers, deserializeAntRecord, deserializeAntRecordMetadata, } from './deserialize.js';
|
|
19
|
-
import { ANT_RECORD_DISCRIMINATOR } from './generated/ant/accounts/antRecord.js';
|
|
20
20
|
const ANT_RECORD_METADATA_DISCRIMINATOR = new Uint8Array(__createHash('sha256')
|
|
21
21
|
.update('account:AntRecordMetadata')
|
|
22
22
|
.digest()
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
* registry's signer) acts as the rent payer for everything bundled here.
|
|
39
39
|
*/
|
|
40
40
|
import { address, } from '@solana/kit';
|
|
41
|
+
import { getAddAclPageInstruction, getCloseAclConfigInstruction, getCloseAclPageInstruction, getRecordAclControllerInstructionAsync, getRecordAclOwnerInstruction, getRegisterAclConfigInstruction, getRemoveAclControllerInstructionAsync, getRemoveAclOwnerInstruction, } from '@ar.io/solana-contracts/ant';
|
|
41
42
|
import { SolanaANTRegistryReadable, } from './ant-registry-readable.js';
|
|
42
43
|
import { ACL_ROLE_CONTROLLER, ACL_ROLE_OWNER, MAX_ACL_PAGE_ENTRIES, } from './constants.js';
|
|
43
44
|
import { deserializeAclConfig, deserializeAclPage } from './deserialize.js';
|
|
44
|
-
import { getAddAclPageInstruction, getCloseAclConfigInstruction, getCloseAclPageInstruction, getRecordAclControllerInstructionAsync, getRecordAclOwnerInstruction, getRegisterAclConfigInstruction, getRemoveAclControllerInstructionAsync, getRemoveAclOwnerInstruction, } from './generated/ant/instructions/index.js';
|
|
45
45
|
import { getAccountInfoLegacy, getMultipleAccountsInfoLegacy, } from './json-rpc.js';
|
|
46
46
|
import { getAclConfigPDA, getAclPagePDA } from './pda.js';
|
|
47
47
|
/** Map the cross-backend role string → on-chain `u8` byte. */
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
* if a marketplace transfer bypasses this SDK entirely.
|
|
29
29
|
*/
|
|
30
30
|
import { address, } from '@solana/kit';
|
|
31
|
+
import { getAddControllerInstructionAsync, getMigrateAntInstructionAsync, getReconcileInstructionAsync, getRemoveControllerInstructionAsync, getRemoveRecordInstructionAsync, getSetDescriptionInstructionAsync, getSetKeywordsInstructionAsync, getSetLogoInstructionAsync, getSetNameInstructionAsync, getSetRecordInstructionAsync, getSetRecordMetadataInstructionAsync, getSetTickerInstructionAsync, getTransferInstructionAsync, getTransferRecordInstructionAsync, } from '@ar.io/solana-contracts/ant';
|
|
31
32
|
import { SolanaANTReadable } from './ant-readable.js';
|
|
32
33
|
import { SolanaANTRegistryWriteable } from './ant-registry-writeable.js';
|
|
33
34
|
import { deserializeAntControllers } from './deserialize.js';
|
|
34
|
-
import { getAddControllerInstructionAsync, getMigrateAntInstructionAsync, getReconcileInstructionAsync, getRemoveControllerInstructionAsync, getRemoveRecordInstructionAsync, getSetDescriptionInstructionAsync, getSetKeywordsInstructionAsync, getSetLogoInstructionAsync, getSetNameInstructionAsync, getSetRecordInstructionAsync, getSetRecordMetadataInstructionAsync, getSetTickerInstructionAsync, getTransferInstructionAsync, getTransferRecordInstructionAsync, } from './generated/ant/instructions/index.js';
|
|
35
35
|
import { getAccountInfoLegacy } from './json-rpc.js';
|
|
36
36
|
import { getAntControllersPDA, getAntRecordMetadataPDA, getAntRecordPDA, } from './pda.js';
|
|
37
37
|
import { sendAndConfirm } from './send.js';
|
|
@@ -28,8 +28,9 @@
|
|
|
28
28
|
* - Enum: 1-byte variant index
|
|
29
29
|
*/
|
|
30
30
|
import { getAddressDecoder, getAddressEncoder, } from '@solana/kit';
|
|
31
|
+
import { getBalanceDecoder } from '@ar.io/solana-contracts/core';
|
|
32
|
+
import { getEpochDecoder } from '@ar.io/solana-contracts/gar';
|
|
31
33
|
import { RATE_SCALE } from './constants.js';
|
|
32
|
-
import { getBalanceDecoder } from './generated/core/accounts/balance.js';
|
|
33
34
|
const addressDecoder = getAddressDecoder();
|
|
34
35
|
const addressEncoder = getAddressEncoder();
|
|
35
36
|
// =========================================
|
|
@@ -826,6 +827,49 @@ export function deserializeEpochSettingsFull(data) {
|
|
|
826
827
|
* Fields are at fixed offsets after the 8-byte discriminator.
|
|
827
828
|
*/
|
|
828
829
|
export function deserializeEpoch(data) {
|
|
830
|
+
// Codama-decoded path. Replaces the hand-rolled offset arithmetic
|
|
831
|
+
// below — that broke under cluster cfg changes (e.g. the
|
|
832
|
+
// `--features devnet-shrunk` build cuts the Epoch struct from
|
|
833
|
+
// ~9400 bytes down to ~3472 bytes, but the hand-rolled deser had
|
|
834
|
+
// hardcoded `base + 9388` reads that overshot the buffer). The
|
|
835
|
+
// codama decoder is regenerated from the on-chain IDL on every
|
|
836
|
+
// contract change, so layout drift is impossible by construction.
|
|
837
|
+
// The "old" hand-rolled body is kept below this early return so
|
|
838
|
+
// tests + any downstream consumers that need a specific subset
|
|
839
|
+
// of fields still see the shape they expect.
|
|
840
|
+
try {
|
|
841
|
+
const codamaEpoch = getEpochDecoder().decode(new Uint8Array(data));
|
|
842
|
+
return {
|
|
843
|
+
epochIndex: Number(codamaEpoch.epochIndex),
|
|
844
|
+
startTimestamp: Number(codamaEpoch.startTimestamp),
|
|
845
|
+
endTimestamp: Number(codamaEpoch.endTimestamp),
|
|
846
|
+
totalEligibleRewards: Number(codamaEpoch.totalEligibleRewards),
|
|
847
|
+
perGatewayReward: Number(codamaEpoch.perGatewayReward),
|
|
848
|
+
perObserverReward: Number(codamaEpoch.perObserverReward),
|
|
849
|
+
rewardRate: Number(codamaEpoch.rewardRate),
|
|
850
|
+
activeGatewayCount: codamaEpoch.activeGatewayCount,
|
|
851
|
+
distributionIndex: codamaEpoch.distributionIndex,
|
|
852
|
+
tallyIndex: codamaEpoch.tallyIndex,
|
|
853
|
+
observerCount: codamaEpoch.observerCount,
|
|
854
|
+
nameCount: codamaEpoch.nameCount,
|
|
855
|
+
observationsSubmitted: codamaEpoch.observationsSubmitted,
|
|
856
|
+
rewardsDistributed: codamaEpoch.rewardsDistributed,
|
|
857
|
+
weightsTallied: codamaEpoch.weightsTallied,
|
|
858
|
+
prescriptionsDone: codamaEpoch.prescriptionsDone,
|
|
859
|
+
failureCounts: Uint16Array.from(codamaEpoch.failureCounts),
|
|
860
|
+
prescribedObservers: codamaEpoch.prescribedObservers,
|
|
861
|
+
prescribedObserverGateways: codamaEpoch.prescribedObserverGateways,
|
|
862
|
+
prescribedNameHashes: codamaEpoch.prescribedNames.map((b) => Buffer.from(b)),
|
|
863
|
+
hasObserved: new Uint8Array(codamaEpoch.hasObserved),
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
catch (codamaErr) {
|
|
867
|
+
// Fall through to the legacy hand-rolled path so tests/fixtures
|
|
868
|
+
// that synthesize a custom Epoch buffer (e.g.
|
|
869
|
+
// save-observations.test.ts) keep working. Real on-chain data
|
|
870
|
+
// always succeeds via the codama path above.
|
|
871
|
+
void codamaErr;
|
|
872
|
+
}
|
|
829
873
|
// All offsets relative to start of struct (after 8-byte discriminator)
|
|
830
874
|
const base = 8;
|
|
831
875
|
const epochIndex = Number(data.readBigUInt64LE(base + 0));
|
package/lib/esm/solana/escrow.js
CHANGED
|
@@ -15,12 +15,11 @@
|
|
|
15
15
|
* in `./generated/ant-escrow/instructions/` — they own the discriminator,
|
|
16
16
|
* Borsh codec, and account-meta wiring derived from the on-chain IDL.
|
|
17
17
|
*/
|
|
18
|
+
import { fetchMaybeEscrowAnt, fetchMaybeEscrowToken, getCancelDepositInstruction, getCancelTokenDepositInstruction, getCancelVaultDepositInstruction, getClaimAntArweaveAttestedInstruction, getClaimAntEthereumInstruction, getClaimTokensArweaveAttestedInstruction, getClaimTokensEthereumInstruction, getClaimVaultArweaveAttestedInstruction, getClaimVaultEthereumInstruction, getDepositAntInstruction, getDepositTokensInstruction, getDepositVaultInstruction, getUpdateRecipientInstruction, getUpdateTokenRecipientInstruction, getUpdateVaultRecipientInstruction, } from '@ar.io/solana-contracts/ant-escrow';
|
|
19
|
+
import { fetchMaybeVaultCounter, getVaultedTransferInstructionAsync, } from '@ar.io/solana-contracts/core';
|
|
18
20
|
import { Logger } from '../common/logger.js';
|
|
19
21
|
import { getAssociatedTokenAddressKit } from './ata.js';
|
|
20
22
|
import { ARIO_ANT_ESCROW_PROGRAM_ID, ARIO_CORE_PROGRAM_ID, ESCROW_ARWEAVE_PUBKEY_LEN, ESCROW_ASSET_TYPE_VAULT, ESCROW_ETHEREUM_PUBKEY_LEN, ESCROW_PROTOCOL_ARWEAVE, ESCROW_PROTOCOL_ETHEREUM, } from './constants.js';
|
|
21
|
-
import { fetchMaybeEscrowAnt, fetchMaybeEscrowToken, getCancelDepositInstruction, getCancelTokenDepositInstruction, getCancelVaultDepositInstruction, getClaimAntArweaveInstruction, getClaimAntEthereumInstruction, getClaimTokensArweaveInstruction, getClaimTokensEthereumInstruction, getClaimVaultArweaveInstruction, getClaimVaultEthereumInstruction, getDepositAntInstruction, getDepositTokensInstruction, getDepositVaultInstruction, getUpdateRecipientInstruction, getUpdateTokenRecipientInstruction, getUpdateVaultRecipientInstruction, } from './generated/ant-escrow/index.js';
|
|
22
|
-
import { fetchMaybeVaultCounter } from './generated/core/accounts/vaultCounter.js';
|
|
23
|
-
import { getVaultedTransferInstructionAsync } from './generated/core/instructions/vaultedTransfer.js';
|
|
24
23
|
import { getEscrowAntPDA, getEscrowTokenPDA, getEscrowVaultPDA, getVaultCounterPDA, getVaultPDA, } from './pda.js';
|
|
25
24
|
import { sendAndConfirm } from './send.js';
|
|
26
25
|
/** Map the Codama-generated `EscrowAnt` raw decoded type to our public
|
|
@@ -172,24 +171,37 @@ export class ANTEscrow {
|
|
|
172
171
|
// provide comfortable headroom.
|
|
173
172
|
return this.send([ix], 400_000);
|
|
174
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Build the ANT-claim-via-Arweave-attested instruction.
|
|
176
|
+
*
|
|
177
|
+
* **API note**: this method previously took user-side RSA-PSS params
|
|
178
|
+
* (`signature`, `saltLen`, `messageNonce`). The on-chain ix was
|
|
179
|
+
* renamed to `claim_ant_arweave_attested` (canonical contracts
|
|
180
|
+
* `ar-io-solana-contracts` PR-19+): verification is now via
|
|
181
|
+
* instruction-introspection of a preceding Ed25519 sigverify ix
|
|
182
|
+
* issued by the off-chain attestor (see
|
|
183
|
+
* `migration/attestor/`). Those data args are no longer fed to the
|
|
184
|
+
* builder. Callers MUST prepend the attestor's sigverify ix to the
|
|
185
|
+
* transaction or it will fail on-chain. A higher-level helper that
|
|
186
|
+
* fetches the attestor's signature and assembles the full tx is
|
|
187
|
+
* tracked as a follow-up.
|
|
188
|
+
*
|
|
189
|
+
* @deprecated Args `signature`, `saltLen`, `messageNonce` are
|
|
190
|
+
* ignored. Use the new attested flow.
|
|
191
|
+
*/
|
|
175
192
|
async claimArweaveIx(args) {
|
|
176
|
-
if (args.signature.length !== 512) {
|
|
177
|
-
throw new Error('arweave signature must be 512 bytes');
|
|
178
|
-
}
|
|
179
193
|
if (args.messageNonce.length !== 32) {
|
|
180
194
|
throw new Error('messageNonce must be 32 bytes');
|
|
181
195
|
}
|
|
182
196
|
const signer = this.requireSigner('claimArweave');
|
|
183
197
|
const [escrow] = await getEscrowAntPDA(args.antMint, this.programId);
|
|
184
|
-
return
|
|
198
|
+
return getClaimAntArweaveAttestedInstruction({
|
|
185
199
|
escrow,
|
|
186
200
|
antAsset: args.antMint,
|
|
187
201
|
claimant: args.claimant,
|
|
188
202
|
depositor: args.depositor,
|
|
189
203
|
payer: signer,
|
|
190
204
|
messageNonce: args.messageNonce,
|
|
191
|
-
signature: args.signature,
|
|
192
|
-
saltLen: args.saltLen,
|
|
193
205
|
}, { programAddress: this.programId });
|
|
194
206
|
}
|
|
195
207
|
/** Submit an Ethereum ECDSA secp256k1 + EIP-191 signature. */
|
|
@@ -466,16 +478,17 @@ export class TokenEscrow {
|
|
|
466
478
|
// RSA-PSS-4096 verification is CU-intensive; use 400K.
|
|
467
479
|
return this.send(createAtaIx ? [createAtaIx, ix] : [ix], 400_000);
|
|
468
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* @deprecated Args `signature`, `saltLen`, `messageNonce` are ignored.
|
|
483
|
+
* Use the new attested flow — see `claimArweaveIx` doc.
|
|
484
|
+
*/
|
|
469
485
|
async claimTokensArweaveIx(args) {
|
|
470
|
-
if (args.signature.length !== 512) {
|
|
471
|
-
throw new Error('arweave signature must be 512 bytes');
|
|
472
|
-
}
|
|
473
486
|
if (args.messageNonce.length !== 32) {
|
|
474
487
|
throw new Error('messageNonce must be 32 bytes');
|
|
475
488
|
}
|
|
476
489
|
const signer = this.requireSigner('claimTokensArweave');
|
|
477
490
|
const [escrow] = await getEscrowTokenPDA(args.depositor, args.assetId, this.programId);
|
|
478
|
-
return
|
|
491
|
+
return getClaimTokensArweaveAttestedInstruction({
|
|
479
492
|
escrow,
|
|
480
493
|
escrowTokenAccount: args.escrowTokenAccount,
|
|
481
494
|
claimantTokenAccount: args.claimantTokenAccount,
|
|
@@ -483,8 +496,6 @@ export class TokenEscrow {
|
|
|
483
496
|
depositor: args.depositor,
|
|
484
497
|
payer: signer,
|
|
485
498
|
messageNonce: args.messageNonce,
|
|
486
|
-
signature: args.signature,
|
|
487
|
-
saltLen: args.saltLen,
|
|
488
499
|
}, { programAddress: this.programId });
|
|
489
500
|
}
|
|
490
501
|
/**
|
|
@@ -545,7 +556,11 @@ export class TokenEscrow {
|
|
|
545
556
|
}
|
|
546
557
|
const signer = this.requireSigner('claimVaultArweave');
|
|
547
558
|
const [escrowPda] = await getEscrowVaultPDA(args.depositor, args.assetId, this.programId);
|
|
548
|
-
|
|
559
|
+
// `args.signature` and `args.saltLen` are no longer fed to the
|
|
560
|
+
// builder — the on-chain `claim_vault_arweave_attested` ix verifies
|
|
561
|
+
// the attestor's Ed25519 signature via instruction-introspection
|
|
562
|
+
// of a preceding sigverify ix. See doc on `claimArweaveIx`.
|
|
563
|
+
const claimIx = getClaimVaultArweaveAttestedInstruction({
|
|
549
564
|
escrow: escrowPda,
|
|
550
565
|
escrowTokenAccount: args.escrowTokenAccount,
|
|
551
566
|
claimantTokenAccount: args.claimantTokenAccount,
|
|
@@ -554,8 +569,6 @@ export class TokenEscrow {
|
|
|
554
569
|
depositor: args.depositor,
|
|
555
570
|
payer: signer,
|
|
556
571
|
messageNonce: escrow.nonce,
|
|
557
|
-
signature: args.signature,
|
|
558
|
-
saltLen: args.saltLen ?? 32,
|
|
559
572
|
}, { programAddress: this.programId });
|
|
560
573
|
const ixs = await this.maybeBundleVaultedTransfer(escrow, args, claimIx);
|
|
561
574
|
return this.send(ixs, 400_000);
|
package/lib/esm/solana/events.js
CHANGED
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
* pull-based model.
|
|
29
29
|
*/
|
|
30
30
|
import { getBase64Encoder, } from '@solana/kit';
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { ARIO_ARNS_PROGRAM_ADDRESS } from '
|
|
34
|
-
import { ARIO_CORE_PROGRAM_ADDRESS } from '
|
|
35
|
-
import { ARIO_GAR_PROGRAM_ADDRESS } from '
|
|
31
|
+
import { ARIO_ANT_PROGRAM_ADDRESS } from '@ar.io/solana-contracts/ant';
|
|
32
|
+
import { ARIO_ANT_ESCROW_PROGRAM_ADDRESS } from '@ar.io/solana-contracts/ant-escrow';
|
|
33
|
+
import { ARIO_ARNS_PROGRAM_ADDRESS } from '@ar.io/solana-contracts/arns';
|
|
34
|
+
import { ARIO_CORE_PROGRAM_ADDRESS } from '@ar.io/solana-contracts/core';
|
|
35
|
+
import { ARIO_GAR_PROGRAM_ADDRESS } from '@ar.io/solana-contracts/gar';
|
|
36
36
|
import * as escrowEvents from './generated/ant-escrow/events/index.js';
|
|
37
37
|
import * as antEvents from './generated/ant/events/index.js';
|
|
38
38
|
import * as arnsEvents from './generated/arns/events/index.js';
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* `TooManyFundingSources` / `TooManyDelegationSources`.
|
|
30
30
|
*/
|
|
31
31
|
import { AccountRole, fetchEncodedAccount, getAddressDecoder, } from '@solana/kit';
|
|
32
|
-
import { ARIO_GAR_PROGRAM_ADDRESS as ARIO_GAR_PROGRAM_ID } from '
|
|
32
|
+
import { ARIO_GAR_PROGRAM_ADDRESS as ARIO_GAR_PROGRAM_ID } from '@ar.io/solana-contracts/gar';
|
|
33
33
|
import { getDelegationPDA, getGatewayPDA, getWithdrawalCounterPDA, getWithdrawalPDA, } from './pda.js';
|
|
34
34
|
// ---------------------------------------------------------------------------
|
|
35
35
|
// Public types
|
|
@@ -7,26 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { address, fetchEncodedAccount, fetchEncodedAccounts, getAddressDecoder, } from '@solana/kit';
|
|
9
9
|
import bs58 from 'bs58';
|
|
10
|
+
import { ARNS_RECORD_DISCRIMINATOR, RESERVED_NAME_DISCRIMINATOR, RETURNED_NAME_DISCRIMINATOR, getArnsConfigDecoder, getArnsRecordDecoder, getReservedNameDecoder, getReturnedNameDecoder, } from '@ar.io/solana-contracts/arns';
|
|
11
|
+
import { PRIMARY_NAME_DISCRIMINATOR, PRIMARY_NAME_REQUEST_DISCRIMINATOR, VAULT_DISCRIMINATOR, getPrimaryNameRequestDecoder, getVaultDecoder, } from '@ar.io/solana-contracts/core';
|
|
12
|
+
import { ALLOWLIST_ENTRY_DISCRIMINATOR, DELEGATION_DISCRIMINATOR, GATEWAY_DISCRIMINATOR, GatewayStatus, OBSERVATION_DISCRIMINATOR, WITHDRAWAL_DISCRIMINATOR, getDelegationDecoder, getGatewayDecoder, getWithdrawalDecoder, } from '@ar.io/solana-contracts/gar';
|
|
10
13
|
import { Logger } from '../common/logger.js';
|
|
11
14
|
import { SolanaANTRegistryReadable } from './ant-registry-readable.js';
|
|
12
15
|
import { getAssociatedTokenAddressKit } from './ata.js';
|
|
13
16
|
import { ARIO_ANT_PROGRAM_ID, ARIO_ARNS_PROGRAM_ID, ARIO_CORE_PROGRAM_ID, ARIO_GAR_PROGRAM_ID, ARNS_RECORD_ANT_OFFSET, RATE_SCALE, } from './constants.js';
|
|
14
17
|
import { deserializeAllowlist, deserializeArioConfig, deserializeArnsRecord, deserializeDelegation, deserializeDemandFactor, deserializeEpoch, deserializeEpochSettings, deserializeEpochSettingsFull, deserializeGarSettings, deserializeGarSupplyCounters, deserializeGateway, deserializeObservation, deserializePrimaryName, deserializePrimaryNameRequest, deserializeRedelegationRecord, deserializeReservedName, deserializeReturnedName, deserializeVault, deserializeWithdrawal, } from './deserialize.js';
|
|
15
|
-
import { getArnsConfigDecoder } from './generated/arns/accounts/arnsConfig.js';
|
|
16
|
-
import { ARNS_RECORD_DISCRIMINATOR, getArnsRecordDecoder, } from './generated/arns/accounts/arnsRecord.js';
|
|
17
|
-
import { RESERVED_NAME_DISCRIMINATOR, getReservedNameDecoder, } from './generated/arns/accounts/reservedName.js';
|
|
18
|
-
import { RETURNED_NAME_DISCRIMINATOR, getReturnedNameDecoder, } from './generated/arns/accounts/returnedName.js';
|
|
19
|
-
import { PRIMARY_NAME_DISCRIMINATOR } from './generated/core/accounts/primaryName.js';
|
|
20
|
-
import { PRIMARY_NAME_REQUEST_DISCRIMINATOR, getPrimaryNameRequestDecoder, } from './generated/core/accounts/primaryNameRequest.js';
|
|
21
|
-
import { VAULT_DISCRIMINATOR, getVaultDecoder, } from './generated/core/accounts/vault.js';
|
|
22
|
-
import { ALLOWLIST_ENTRY_DISCRIMINATOR } from './generated/gar/accounts/allowlistEntry.js';
|
|
23
|
-
import { DELEGATION_DISCRIMINATOR, getDelegationDecoder, } from './generated/gar/accounts/delegation.js';
|
|
24
|
-
import { GATEWAY_DISCRIMINATOR, getGatewayDecoder, } from './generated/gar/accounts/gateway.js';
|
|
25
|
-
import { OBSERVATION_DISCRIMINATOR } from './generated/gar/accounts/observation.js';
|
|
26
|
-
import { WITHDRAWAL_DISCRIMINATOR, getWithdrawalDecoder, } from './generated/gar/accounts/withdrawal.js';
|
|
27
|
-
import { GatewayStatus } from './generated/gar/types/index.js';
|
|
28
18
|
import { TOKEN_PROGRAM_ADDRESS } from './instruction.js';
|
|
29
|
-
import { getArioConfigPDA, getArnsRecordPDA, getArnsRecordPDAFromHash, getArnsSettingsPDA, getDemandFactorPDA, getEpochPDA, getEpochSettingsPDA, getGarSettingsPDA, getGatewayPDA, getGatewayRegistryPDA, getPrimaryNamePDA, getPrimaryNameRequestPDA, getReservedNamePDA, getReturnedNamePDA, getVaultPDA, } from './pda.js';
|
|
19
|
+
import { getArioConfigPDA, getArnsRecordPDA, getArnsRecordPDAFromHash, getArnsSettingsPDA, getDemandFactorPDA, getEpochPDA, getEpochSettingsPDA, getGarSettingsPDA, getGatewayPDA, getGatewayRegistryPDA, getObserverLookupPDA, getPrimaryNamePDA, getPrimaryNameRequestPDA, getReservedNamePDA, getReturnedNamePDA, getVaultPDA, } from './pda.js';
|
|
30
20
|
const addressDecoder = getAddressDecoder();
|
|
31
21
|
/** All-zero address — equivalent of web3.js `PublicKey.default`. */
|
|
32
22
|
const DEFAULT_ADDRESS = address('11111111111111111111111111111111');
|
|
@@ -794,7 +784,16 @@ export class SolanaARIOReadable {
|
|
|
794
784
|
throw new Error('EpochSettings account not found');
|
|
795
785
|
const settings = deserializeEpochSettingsFull(Buffer.from(account.data));
|
|
796
786
|
if (!epoch) {
|
|
797
|
-
|
|
787
|
+
// On-chain `current_epoch_index` is "NEXT epoch to be created"
|
|
788
|
+
// (incremented inside `create_epoch` AFTER the PDA is initialized
|
|
789
|
+
// — see programs/ario-gar/src/instructions/epoch.rs:161). The
|
|
790
|
+
// currently-active epoch is therefore one back. Floor at 0 for
|
|
791
|
+
// the pre-bootstrap edge case where no epochs have been created
|
|
792
|
+
// yet. Without this adjustment, every call to getEpoch(undefined)
|
|
793
|
+
// sits in the cranker's close_epoch ↔ create_epoch gap and throws
|
|
794
|
+
// "Epoch N not found" — which broke ContractEpochSource on a
|
|
795
|
+
// live cluster (May 2026 devnet).
|
|
796
|
+
return Math.max(0, settings.currentEpochIndex - 1);
|
|
798
797
|
}
|
|
799
798
|
// { timestamp } — compute epoch index. The public API takes `timestamp`
|
|
800
799
|
// in JS milliseconds (matching the AO contract convention), but
|
|
@@ -1606,4 +1605,60 @@ export class SolanaARIOReadable {
|
|
|
1606
1605
|
undernameLimit: record.undernameLimit,
|
|
1607
1606
|
};
|
|
1608
1607
|
}
|
|
1608
|
+
// =========================================================================
|
|
1609
|
+
// Observer helpers (Solana-only; used by gateway-side report submission)
|
|
1610
|
+
// =========================================================================
|
|
1611
|
+
/**
|
|
1612
|
+
* Resolve the gateway operator pubkey backing a given observer pubkey.
|
|
1613
|
+
* The `ObserverLookup` PDA is written at `join_network` (and rotated by
|
|
1614
|
+
* `update_observer_address`); when present its `gateway` field is the
|
|
1615
|
+
* operator pubkey. Returns `undefined` when the observer isn't
|
|
1616
|
+
* registered on any gateway.
|
|
1617
|
+
*/
|
|
1618
|
+
async getObserverLookup(observer) {
|
|
1619
|
+
const [pda] = await getObserverLookupPDA(observer, this.garProgram);
|
|
1620
|
+
const account = await this.getAccount(pda);
|
|
1621
|
+
if (!account.exists)
|
|
1622
|
+
return undefined;
|
|
1623
|
+
const data = Buffer.from(account.data);
|
|
1624
|
+
// Layout: 8 disc + 32 gateway + 1 bump.
|
|
1625
|
+
const gateway = addressDecoder.decode(data.subarray(8, 40));
|
|
1626
|
+
const bump = data.readUInt8(40);
|
|
1627
|
+
return { gateway, bump };
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* Pre-flight gate for `save_observations` submission. Reads the Epoch
|
|
1631
|
+
* account once and reports whether the given observer pubkey is:
|
|
1632
|
+
* - `prescribed`: in `epoch.prescribed_observers[..observer_count]`
|
|
1633
|
+
* - `observerIdx`: position in the array (matches the `has_observed`
|
|
1634
|
+
* bit index when prescribed)
|
|
1635
|
+
* - `alreadyObserved`: whether the bit at `observerIdx` is set
|
|
1636
|
+
* - `windowOpen`: whether `now < epoch.end_timestamp`
|
|
1637
|
+
*
|
|
1638
|
+
* Use this from a sink/wrapper to skip cheap-to-skip cases before
|
|
1639
|
+
* paying for a transaction simulation that would just bounce.
|
|
1640
|
+
*/
|
|
1641
|
+
async getEpochObservationStatus(epochIndex, observer) {
|
|
1642
|
+
const epoch = await this.fetchEpoch(epochIndex);
|
|
1643
|
+
let observerIdx = -1;
|
|
1644
|
+
for (let i = 0; i < epoch.observerCount; i++) {
|
|
1645
|
+
if (epoch.prescribedObservers[i] === observer) {
|
|
1646
|
+
observerIdx = i;
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
const prescribed = observerIdx !== -1;
|
|
1651
|
+
const alreadyObserved = prescribed &&
|
|
1652
|
+
((epoch.hasObserved[Math.floor(observerIdx / 8)] >> (observerIdx % 8)) &
|
|
1653
|
+
1) ===
|
|
1654
|
+
1;
|
|
1655
|
+
const nowSec = Math.floor(Date.now() / 1000);
|
|
1656
|
+
return {
|
|
1657
|
+
prescribed,
|
|
1658
|
+
observerIdx,
|
|
1659
|
+
alreadyObserved,
|
|
1660
|
+
windowOpen: nowSec < epoch.endTimestamp,
|
|
1661
|
+
endTimestampSec: epoch.endTimestamp,
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1609
1664
|
}
|
|
@@ -19,12 +19,11 @@
|
|
|
19
19
|
* surface for them.
|
|
20
20
|
*/
|
|
21
21
|
import { AccountRole, address, fetchEncodedAccount, getAddressDecoder, } from '@solana/kit';
|
|
22
|
+
import { PurchaseType, getBuyNameFromDelegationInstructionAsync, getBuyNameFromFundingPlanInstructionAsync, getBuyNameFromOperatorStakeInstructionAsync, getBuyNameFromWithdrawalInstructionAsync, getBuyNameInstructionAsync, getBuyReturnedNameFromDelegationInstructionAsync, getBuyReturnedNameFromFundingPlanInstructionAsync, getBuyReturnedNameFromOperatorStakeInstructionAsync, getBuyReturnedNameFromWithdrawalInstructionAsync, getBuyReturnedNameInstructionAsync, getExtendLeaseFromDelegationInstructionAsync, getExtendLeaseFromFundingPlanInstructionAsync, getExtendLeaseFromOperatorStakeInstructionAsync, getExtendLeaseFromWithdrawalInstructionAsync, getExtendLeaseInstructionAsync, getIncreaseUndernameLimitFromDelegationInstructionAsync, getIncreaseUndernameLimitFromFundingPlanInstructionAsync, getIncreaseUndernameLimitFromOperatorStakeInstructionAsync, getIncreaseUndernameLimitFromWithdrawalInstructionAsync, getIncreaseUndernameLimitInstructionAsync, getPruneExpiredNamesInstructionAsync, getPruneExpiredReservationInstruction, getPruneNameToReturnedInstructionAsync, getPruneReturnedNamesInstructionAsync, getReassignNameInstructionAsync, getReleaseNameInstructionAsync, getUpgradeNameFromDelegationInstructionAsync, getUpgradeNameFromFundingPlanInstructionAsync, getUpgradeNameFromOperatorStakeInstructionAsync, getUpgradeNameFromWithdrawalInstructionAsync, getUpgradeNameInstructionAsync, } from '@ar.io/solana-contracts/arns';
|
|
23
|
+
import { FundingSourceKind as GeneratedFundingSourceKindEnum } from '@ar.io/solana-contracts/gar';
|
|
22
24
|
import { buildCreateAtaIdempotentIx, getAssociatedTokenAddressKit, } from './ata.js';
|
|
23
25
|
import { deserializeArnsRecord, deserializeEpochSettingsFull, } from './deserialize.js';
|
|
24
26
|
import { buildFundingPlan as buildFundingPlanCore, buildFundingPlanRemainingAccounts, computeResidueIndexes, predictResidueVaults, } from './funding-plan.js';
|
|
25
|
-
import { getBuyNameFromDelegationInstructionAsync, getBuyNameFromFundingPlanInstructionAsync, getBuyNameFromOperatorStakeInstructionAsync, getBuyNameFromWithdrawalInstructionAsync, getBuyNameInstructionAsync, getBuyReturnedNameFromDelegationInstructionAsync, getBuyReturnedNameFromFundingPlanInstructionAsync, getBuyReturnedNameFromOperatorStakeInstructionAsync, getBuyReturnedNameFromWithdrawalInstructionAsync, getBuyReturnedNameInstructionAsync, getExtendLeaseFromDelegationInstructionAsync, getExtendLeaseFromFundingPlanInstructionAsync, getExtendLeaseFromOperatorStakeInstructionAsync, getExtendLeaseFromWithdrawalInstructionAsync, getExtendLeaseInstructionAsync, getIncreaseUndernameLimitFromDelegationInstructionAsync, getIncreaseUndernameLimitFromFundingPlanInstructionAsync, getIncreaseUndernameLimitFromOperatorStakeInstructionAsync, getIncreaseUndernameLimitFromWithdrawalInstructionAsync, getIncreaseUndernameLimitInstructionAsync, getPruneExpiredNamesInstructionAsync, getPruneExpiredReservationInstruction, getPruneNameToReturnedInstructionAsync, getPruneReturnedNamesInstructionAsync, getReassignNameInstructionAsync, getReleaseNameInstructionAsync, getUpgradeNameFromDelegationInstructionAsync, getUpgradeNameFromFundingPlanInstructionAsync, getUpgradeNameFromOperatorStakeInstructionAsync, getUpgradeNameFromWithdrawalInstructionAsync, getUpgradeNameInstructionAsync, } from './generated/arns/instructions/index.js';
|
|
26
|
-
import { PurchaseType } from './generated/arns/types/index.js';
|
|
27
|
-
import { FundingSourceKind as GeneratedFundingSourceKindEnum } from './generated/gar/types/index.js';
|
|
28
27
|
/** Maps the SDK's user-facing FundingSourceKind string union to the
|
|
29
28
|
* Codama-generated enum used by the on-chain ix payload. */
|
|
30
29
|
function toGeneratedFundingSourceSpec(s) {
|
|
@@ -36,14 +35,12 @@ function toGeneratedFundingSourceSpec(s) {
|
|
|
36
35
|
};
|
|
37
36
|
return { kind: kindMap[s.kind], amount: s.amount };
|
|
38
37
|
}
|
|
38
|
+
import { getSyncAttributesInstruction } from '@ar.io/solana-contracts/ant';
|
|
39
|
+
import { getApprovePrimaryNameInstructionAsync, getCloseExpiredRequestInstruction, getCreateVaultInstructionAsync, getExtendVaultInstructionAsync, getIncreaseVaultInstructionAsync, getReleaseVaultInstructionAsync, getRequestAndSetPrimaryNameFromFundingPlanInstructionAsync, getRequestPrimaryNameFromFundingPlanInstructionAsync, getRequestPrimaryNameInstructionAsync, getRevokeVaultInstructionAsync, getVaultedTransferInstructionAsync, } from '@ar.io/solana-contracts/core';
|
|
40
|
+
import { getDelegationDecoder, getGatewayDecoder, } from '@ar.io/solana-contracts/gar';
|
|
41
|
+
import { Protocol, getAllowDelegateInstructionAsync, getCancelWithdrawalInstruction, getClaimDelegateFromLeavingGatewayInstructionAsync, getClaimWithdrawalInstructionAsync, getCloseDrainedWithdrawalInstruction, getCloseEmptyDelegationInstruction, getCloseEpochInstructionAsync, getCloseObservationInstructionAsync, getCreateEpochInstructionAsync, getDecreaseDelegateStakeInstructionAsync, getDecreaseOperatorStakeInstructionAsync, getDelegateStakeInstructionAsync, getDisallowDelegateInstructionAsync, getDistributeEpochInstructionAsync, getFinalizeGoneInstructionAsync, getIncreaseOperatorStakeInstructionAsync, getInstantWithdrawalInstructionAsync, getJoinNetworkInstructionAsync, getLeaveNetworkInstructionAsync, getPrescribeEpochInstructionAsync, getPruneGatewayInstructionAsync, getRedelegateStakeInstructionAsync, getSaveObservationsInstructionAsync, getSetAllowlistEnabledInstructionAsync, getTallyWeightsInstructionAsync, getUpdateGatewaySettingsInstructionAsync, } from '@ar.io/solana-contracts/gar';
|
|
39
42
|
import { getTransferCheckedInstruction } from '@solana-program/token';
|
|
40
43
|
import { TOKEN_DECIMALS } from './constants.js';
|
|
41
|
-
import { getSyncAttributesInstruction } from './generated/ant/instructions/syncAttributes.js';
|
|
42
|
-
import { getApprovePrimaryNameInstructionAsync, getCloseExpiredRequestInstruction, getCreateVaultInstructionAsync, getExtendVaultInstructionAsync, getIncreaseVaultInstructionAsync, getReleaseVaultInstructionAsync, getRequestAndSetPrimaryNameFromFundingPlanInstructionAsync, getRequestPrimaryNameFromFundingPlanInstructionAsync, getRequestPrimaryNameInstructionAsync, getRevokeVaultInstructionAsync, getVaultedTransferInstructionAsync, } from './generated/core/instructions/index.js';
|
|
43
|
-
import { getDelegationDecoder } from './generated/gar/accounts/delegation.js';
|
|
44
|
-
import { getGatewayDecoder } from './generated/gar/accounts/gateway.js';
|
|
45
|
-
import { getAllowDelegateInstructionAsync, getCancelWithdrawalInstruction, getClaimDelegateFromLeavingGatewayInstructionAsync, getClaimWithdrawalInstructionAsync, getCloseDrainedWithdrawalInstruction, getCloseEmptyDelegationInstruction, getCloseEpochInstructionAsync, getCloseObservationInstructionAsync, getCreateEpochInstructionAsync, getDecreaseDelegateStakeInstructionAsync, getDecreaseOperatorStakeInstructionAsync, getDelegateStakeInstructionAsync, getDisallowDelegateInstructionAsync, getDistributeEpochInstructionAsync, getFinalizeGoneInstructionAsync, getIncreaseOperatorStakeInstructionAsync, getInstantWithdrawalInstructionAsync, getJoinNetworkInstructionAsync, getLeaveNetworkInstructionAsync, getPrescribeEpochInstructionAsync, getPruneGatewayInstructionAsync, getRedelegateStakeInstructionAsync, getSaveObservationsInstructionAsync, getSetAllowlistEnabledInstructionAsync, getTallyWeightsInstructionAsync, getUpdateGatewaySettingsInstructionAsync, } from './generated/gar/instructions/index.js';
|
|
46
|
-
import { Protocol } from './generated/gar/types/index.js';
|
|
47
44
|
import { SolanaARIOReadable } from './io-readable.js';
|
|
48
45
|
import { getAntRecordPDA, getArioConfigPDA, getArnsRecordPDA, getArnsRegistryPDA, getArnsSettingsPDA, getDelegationPDA, getDemandFactorPDA, getEpochPDA, getEpochSettingsPDA, getGarSettingsPDA, getGatewayPDA, getGatewayRegistryPDA, getObservationPDA, getObserverLookupPDA, getPrimaryNamePDA, getPrimaryNameRequestPDA, getPrimaryNameReversePDA, getReservedNamePDA, getReturnedNamePDA, getVaultPDA, getWithdrawalCounterPDA, getWithdrawalPDA, hashName, } from './pda.js';
|
|
49
46
|
import { sendAndConfirm } from './send.js';
|
|
@@ -111,6 +108,79 @@ export function splitPrimaryName(name) {
|
|
|
111
108
|
* await ario.transfer({ target: 'RecipientPubkey...', qty: 100_000_000 });
|
|
112
109
|
* ```
|
|
113
110
|
*/
|
|
111
|
+
// =========================================================================
|
|
112
|
+
// save_observations encoding helpers
|
|
113
|
+
// =========================================================================
|
|
114
|
+
// Extracted as pure functions so the bitmap-pack + base64url-decode logic
|
|
115
|
+
// can be unit-tested without standing up the rpc/signer plumbing of the
|
|
116
|
+
// SolanaARIOWriteable class. The on-chain ABI:
|
|
117
|
+
// - gateway_results: [u8; 375] bit i = 1 (pass) / 0 (fail) for the
|
|
118
|
+
// gateway at registry index i.
|
|
119
|
+
// - gateway_count: u16 must equal epoch.active_gateway_count.
|
|
120
|
+
// - report_tx_id: [u8; 32] raw 32-byte Arweave hash (base64url
|
|
121
|
+
// decoded from its 43-char string form).
|
|
122
|
+
/** Build the gateway_results bitmap for save_observations.
|
|
123
|
+
* All bits start as 1 (pass) for the first `registryAddresses.length`
|
|
124
|
+
* positions; positions named in `failedGateways` get cleared to 0; all
|
|
125
|
+
* positions beyond `registryAddresses.length` are 0. */
|
|
126
|
+
export function buildObservationBitmap(registryAddresses, failedGateways) {
|
|
127
|
+
const buf = Buffer.alloc(375, 0xff);
|
|
128
|
+
const failedSet = new Set(failedGateways);
|
|
129
|
+
for (let i = 0; i < registryAddresses.length; i++) {
|
|
130
|
+
if (failedSet.has(registryAddresses[i])) {
|
|
131
|
+
buf[Math.floor(i / 8)] &= ~(1 << (i % 8));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
// Clear bits beyond the active gateway count so the bitmap is exactly
|
|
135
|
+
// the prescribed shape (1s only at indices < gatewayCount that passed).
|
|
136
|
+
for (let i = registryAddresses.length; i < 3000; i++) {
|
|
137
|
+
buf[Math.floor(i / 8)] &= ~(1 << (i % 8));
|
|
138
|
+
}
|
|
139
|
+
return buf;
|
|
140
|
+
}
|
|
141
|
+
/** Encode an Arweave TX ID into the on-chain `[u8; 32]` slot.
|
|
142
|
+
*
|
|
143
|
+
* An Arweave TX ID **is** a 32-byte SHA-256 hash; the 43-char base64url
|
|
144
|
+
* string is just its presentation encoding. We decode here so the
|
|
145
|
+
* on-chain bytes are the raw hash — lossless and trivially reversible
|
|
146
|
+
* via base64url-encode on the consumer side. Without this, on-chain
|
|
147
|
+
* bytes alone couldn't be used to look up the original report bundle
|
|
148
|
+
* on permaweb (the whole point of recording the txid for auditability).
|
|
149
|
+
*
|
|
150
|
+
* Empty / undefined input → 32 zero bytes ("no permaweb archive
|
|
151
|
+
* configured for this submission" — the report still lives off-chain
|
|
152
|
+
* in the observer's local sinks but isn't anchored on Arweave).
|
|
153
|
+
*
|
|
154
|
+
* Throws on malformed input: the base64url string must be exactly 43
|
|
155
|
+
* chars and decode to 32 bytes. Strict validation here is desirable —
|
|
156
|
+
* silently truncating or accepting bad input would erode the
|
|
157
|
+
* auditability that the field exists for.
|
|
158
|
+
*/
|
|
159
|
+
export function encodeReportTxId(reportTxId) {
|
|
160
|
+
const out = Buffer.alloc(32);
|
|
161
|
+
if (reportTxId === undefined || reportTxId === '') {
|
|
162
|
+
return out;
|
|
163
|
+
}
|
|
164
|
+
// base64url → base64. The 43-char Arweave form has no padding; add it
|
|
165
|
+
// back so Node's `Buffer.from(_, 'base64')` accepts the input.
|
|
166
|
+
const padded = reportTxId
|
|
167
|
+
.replace(/-/g, '+')
|
|
168
|
+
.replace(/_/g, '/')
|
|
169
|
+
.padEnd(Math.ceil(reportTxId.length / 4) * 4, '=');
|
|
170
|
+
// Reject non-base64url chars up front — `Buffer.from` silently
|
|
171
|
+
// tolerates them, which would mask typos.
|
|
172
|
+
if (!/^[A-Za-z0-9+/=]+$/.test(padded)) {
|
|
173
|
+
throw new Error(`reportTxId contains non-base64url characters: "${reportTxId}". ` +
|
|
174
|
+
`Expected a 43-char Arweave TX ID using A-Z, a-z, 0-9, -, _.`);
|
|
175
|
+
}
|
|
176
|
+
const decoded = Buffer.from(padded, 'base64');
|
|
177
|
+
if (decoded.length !== 32) {
|
|
178
|
+
throw new Error(`reportTxId must be a 43-char base64url Arweave TX ID decoding to 32 bytes; ` +
|
|
179
|
+
`got ${reportTxId.length} chars decoding to ${decoded.length} bytes.`);
|
|
180
|
+
}
|
|
181
|
+
decoded.copy(out);
|
|
182
|
+
return out;
|
|
183
|
+
}
|
|
114
184
|
export class SolanaARIOWriteable extends SolanaARIOReadable {
|
|
115
185
|
signer;
|
|
116
186
|
rpcSubscriptions;
|
|
@@ -566,22 +636,9 @@ export class SolanaARIOWriteable extends SolanaARIOReadable {
|
|
|
566
636
|
else {
|
|
567
637
|
const registryAddresses = await this.getRegistryGatewayAddresses();
|
|
568
638
|
gatewayCount = registryAddresses.length;
|
|
569
|
-
resultsBuf =
|
|
570
|
-
const failedSet = new Set(params.failedGateways);
|
|
571
|
-
for (let i = 0; i < gatewayCount; i++) {
|
|
572
|
-
if (failedSet.has(registryAddresses[i])) {
|
|
573
|
-
resultsBuf[Math.floor(i / 8)] &= ~(1 << (i % 8));
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
// Clear bits beyond the active gateway count.
|
|
577
|
-
for (let i = gatewayCount; i < 3000; i++) {
|
|
578
|
-
resultsBuf[Math.floor(i / 8)] &= ~(1 << (i % 8));
|
|
579
|
-
}
|
|
639
|
+
resultsBuf = buildObservationBitmap(registryAddresses, params.failedGateways);
|
|
580
640
|
}
|
|
581
|
-
|
|
582
|
-
// truncates the raw string bytes; mirror that for compatibility.
|
|
583
|
-
const reportTxId = Buffer.alloc(32);
|
|
584
|
-
Buffer.from(params.reportTxId).copy(reportTxId, 0, 0, Math.min(32, params.reportTxId.length));
|
|
641
|
+
const reportTxId = encodeReportTxId(params.reportTxId);
|
|
585
642
|
const ix = await getSaveObservationsInstructionAsync({
|
|
586
643
|
observer: this.signer,
|
|
587
644
|
epochIndex: BigInt(epochIndex),
|
|
@@ -1830,9 +1887,18 @@ export class SolanaARIOWriteable extends SolanaARIOReadable {
|
|
|
1830
1887
|
*/
|
|
1831
1888
|
async distributeEpoch(params, _options) {
|
|
1832
1889
|
const garConfig = await this.getGarConfig();
|
|
1890
|
+
// ario_gar::distribute_epoch CPIs into ario_core::release_treasury_to_recipient
|
|
1891
|
+
// (signed by the ArioConfig PDA — the canonical treasury authority). The
|
|
1892
|
+
// generated builder expects `arioConfig` + `arioCoreProgram` accounts at
|
|
1893
|
+
// positions 6+7 (post-PR-19 in ar-io-solana-contracts). Pin both to the
|
|
1894
|
+
// configured core program so devnet/testnet deployments don't fall back
|
|
1895
|
+
// to the bundled mainnet default.
|
|
1896
|
+
const [arioConfig] = await getArioConfigPDA(this.coreProgram);
|
|
1833
1897
|
const ix = await getDistributeEpochInstructionAsync(await this.withGarDefaults({
|
|
1834
1898
|
protocolTokenAccount: garConfig.protocolTokenAccount,
|
|
1835
1899
|
stakeTokenAccount: garConfig.stakeTokenAccount,
|
|
1900
|
+
arioConfig,
|
|
1901
|
+
arioCoreProgram: this.coreProgram,
|
|
1836
1902
|
payer: this.signer,
|
|
1837
1903
|
epochIndex: BigInt(params.epochIndex),
|
|
1838
1904
|
}), { programAddress: this.garProgram });
|