@loyal-labs/loyal-smart-accounts-core 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +1 -0
- package/dist/loyal.d.ts +1 -0
- package/dist/loyal.js +1 -0
- package/dist/src/accounts.d.ts +1 -0
- package/dist/src/accounts.js +1 -0
- package/dist/src/codecs.d.ts +6 -0
- package/dist/src/codecs.js +6 -0
- package/dist/src/core/codecs/index.d.ts +6 -0
- package/dist/src/core/codecs/index.js +6 -0
- package/dist/src/core/codecs/primitives.d.ts +7 -0
- package/dist/src/core/codecs/primitives.js +28 -0
- package/dist/src/core/errors/index.d.ts +29 -0
- package/dist/src/core/errors/index.js +124 -0
- package/dist/src/core/generated/index.d.ts +1 -0
- package/dist/src/core/generated/index.js +1 -0
- package/dist/src/core/pda/index.d.ts +44 -0
- package/dist/src/core/pda/index.js +80 -0
- package/dist/src/core/spec/features.d.ts +1 -0
- package/dist/src/core/spec/features.js +1 -0
- package/dist/src/core/spec/idl.d.ts +1 -0
- package/dist/src/core/spec/idl.js +1 -0
- package/dist/src/core/spec/index.d.ts +4 -0
- package/dist/src/core/spec/index.js +4 -0
- package/dist/src/core/spec/pda-registry.d.ts +1 -0
- package/dist/src/core/spec/pda-registry.js +1 -0
- package/dist/src/core/transport/index.d.ts +54 -0
- package/dist/src/core/transport/index.js +96 -0
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.js +1 -0
- package/dist/src/generated/accounts/Batch.d.ts +130 -0
- package/dist/src/generated/accounts/Batch.js +158 -0
- package/dist/src/generated/accounts/BatchTransaction.d.ts +105 -0
- package/dist/src/generated/accounts/BatchTransaction.js +130 -0
- package/dist/src/generated/accounts/LegacyTransaction.d.ts +122 -0
- package/dist/src/generated/accounts/LegacyTransaction.js +163 -0
- package/dist/src/generated/accounts/Policy.d.ts +139 -0
- package/dist/src/generated/accounts/Policy.js +208 -0
- package/dist/src/generated/accounts/ProgramConfig.d.ts +116 -0
- package/dist/src/generated/accounts/ProgramConfig.js +153 -0
- package/dist/src/generated/accounts/Proposal.d.ts +119 -0
- package/dist/src/generated/accounts/Proposal.js +157 -0
- package/dist/src/generated/accounts/Settings.d.ts +140 -0
- package/dist/src/generated/accounts/Settings.js +210 -0
- package/dist/src/generated/accounts/SettingsTransaction.d.ts +113 -0
- package/dist/src/generated/accounts/SettingsTransaction.js +151 -0
- package/dist/src/generated/accounts/SpendingLimit.d.ts +137 -0
- package/dist/src/generated/accounts/SpendingLimit.js +206 -0
- package/dist/src/generated/accounts/Transaction.d.ts +110 -0
- package/dist/src/generated/accounts/Transaction.js +145 -0
- package/dist/src/generated/accounts/TransactionBuffer.d.ts +113 -0
- package/dist/src/generated/accounts/TransactionBuffer.js +143 -0
- package/dist/src/generated/accounts/index.d.ts +35 -0
- package/dist/src/generated/accounts/index.js +35 -0
- package/dist/src/generated/errors/index.d.ts +1420 -0
- package/dist/src/generated/errors/index.js +2312 -0
- package/dist/src/generated/index.d.ts +19 -0
- package/dist/src/generated/index.js +19 -0
- package/dist/src/generated/instructions/activateProposal.d.ts +42 -0
- package/dist/src/generated/instructions/activateProposal.js +58 -0
- package/dist/src/generated/instructions/addSignerAsAuthority.d.ts +59 -0
- package/dist/src/generated/instructions/addSignerAsAuthority.js +78 -0
- package/dist/src/generated/instructions/addSpendingLimitAsAuthority.d.ts +58 -0
- package/dist/src/generated/instructions/addSpendingLimitAsAuthority.js +80 -0
- package/dist/src/generated/instructions/addTransactionToBatch.d.ts +60 -0
- package/dist/src/generated/instructions/addTransactionToBatch.js +85 -0
- package/dist/src/generated/instructions/approveProposal.d.ts +59 -0
- package/dist/src/generated/instructions/approveProposal.js +78 -0
- package/dist/src/generated/instructions/cancelProposal.d.ts +59 -0
- package/dist/src/generated/instructions/cancelProposal.js +78 -0
- package/dist/src/generated/instructions/changeThresholdAsAuthority.d.ts +59 -0
- package/dist/src/generated/instructions/changeThresholdAsAuthority.js +78 -0
- package/dist/src/generated/instructions/closeBatch.d.ts +49 -0
- package/dist/src/generated/instructions/closeBatch.js +78 -0
- package/dist/src/generated/instructions/closeBatchTransaction.d.ts +47 -0
- package/dist/src/generated/instructions/closeBatchTransaction.js +73 -0
- package/dist/src/generated/instructions/closeEmptyPolicyTransaction.d.ts +51 -0
- package/dist/src/generated/instructions/closeEmptyPolicyTransaction.js +83 -0
- package/dist/src/generated/instructions/closeSettingsTransaction.d.ts +49 -0
- package/dist/src/generated/instructions/closeSettingsTransaction.js +78 -0
- package/dist/src/generated/instructions/closeTransaction.d.ts +49 -0
- package/dist/src/generated/instructions/closeTransaction.js +78 -0
- package/dist/src/generated/instructions/closeTransactionBuffer.d.ts +42 -0
- package/dist/src/generated/instructions/closeTransactionBuffer.js +58 -0
- package/dist/src/generated/instructions/createBatch.d.ts +56 -0
- package/dist/src/generated/instructions/createBatch.js +75 -0
- package/dist/src/generated/instructions/createProposal.d.ts +58 -0
- package/dist/src/generated/instructions/createProposal.js +80 -0
- package/dist/src/generated/instructions/createSettingsTransaction.d.ts +58 -0
- package/dist/src/generated/instructions/createSettingsTransaction.js +80 -0
- package/dist/src/generated/instructions/createSmartAccount.d.ts +56 -0
- package/dist/src/generated/instructions/createSmartAccount.js +75 -0
- package/dist/src/generated/instructions/createTransaction.d.ts +58 -0
- package/dist/src/generated/instructions/createTransaction.js +80 -0
- package/dist/src/generated/instructions/createTransactionBuffer.d.ts +56 -0
- package/dist/src/generated/instructions/createTransactionBuffer.js +75 -0
- package/dist/src/generated/instructions/createTransactionFromBuffer.d.ts +63 -0
- package/dist/src/generated/instructions/createTransactionFromBuffer.js +90 -0
- package/dist/src/generated/instructions/executeBatchTransaction.d.ts +46 -0
- package/dist/src/generated/instructions/executeBatchTransaction.js +68 -0
- package/dist/src/generated/instructions/executeSettingsTransaction.d.ts +52 -0
- package/dist/src/generated/instructions/executeSettingsTransaction.js +81 -0
- package/dist/src/generated/instructions/executeSettingsTransactionSync.d.ts +57 -0
- package/dist/src/generated/instructions/executeSettingsTransactionSync.js +73 -0
- package/dist/src/generated/instructions/executeTransaction.d.ts +46 -0
- package/dist/src/generated/instructions/executeTransaction.js +68 -0
- package/dist/src/generated/instructions/executeTransactionSync.d.ts +51 -0
- package/dist/src/generated/instructions/executeTransactionSync.js +60 -0
- package/dist/src/generated/instructions/executeTransactionSyncV2.d.ts +51 -0
- package/dist/src/generated/instructions/executeTransactionSyncV2.js +60 -0
- package/dist/src/generated/instructions/extendTransactionBuffer.d.ts +53 -0
- package/dist/src/generated/instructions/extendTransactionBuffer.js +65 -0
- package/dist/src/generated/instructions/index.d.ts +39 -0
- package/dist/src/generated/instructions/index.js +39 -0
- package/dist/src/generated/instructions/initializeProgramConfig.d.ts +52 -0
- package/dist/src/generated/instructions/initializeProgramConfig.js +65 -0
- package/dist/src/generated/instructions/logEvent.d.ts +49 -0
- package/dist/src/generated/instructions/logEvent.js +55 -0
- package/dist/src/generated/instructions/rejectProposal.d.ts +59 -0
- package/dist/src/generated/instructions/rejectProposal.js +78 -0
- package/dist/src/generated/instructions/removeSignerAsAuthority.d.ts +59 -0
- package/dist/src/generated/instructions/removeSignerAsAuthority.js +78 -0
- package/dist/src/generated/instructions/removeSpendingLimitAsAuthority.d.ts +57 -0
- package/dist/src/generated/instructions/removeSpendingLimitAsAuthority.js +75 -0
- package/dist/src/generated/instructions/setArchivalAuthorityAsAuthority.d.ts +59 -0
- package/dist/src/generated/instructions/setArchivalAuthorityAsAuthority.js +78 -0
- package/dist/src/generated/instructions/setNewSettingsAuthorityAsAuthority.d.ts +59 -0
- package/dist/src/generated/instructions/setNewSettingsAuthorityAsAuthority.js +78 -0
- package/dist/src/generated/instructions/setProgramConfigAuthority.d.ts +51 -0
- package/dist/src/generated/instructions/setProgramConfigAuthority.js +60 -0
- package/dist/src/generated/instructions/setProgramConfigSmartAccountCreationFee.d.ts +51 -0
- package/dist/src/generated/instructions/setProgramConfigSmartAccountCreationFee.js +60 -0
- package/dist/src/generated/instructions/setProgramConfigTreasury.d.ts +51 -0
- package/dist/src/generated/instructions/setProgramConfigTreasury.js +60 -0
- package/dist/src/generated/instructions/setTimeLockAsAuthority.d.ts +59 -0
- package/dist/src/generated/instructions/setTimeLockAsAuthority.js +78 -0
- package/dist/src/generated/instructions/useSpendingLimit.d.ts +70 -0
- package/dist/src/generated/instructions/useSpendingLimit.js +108 -0
- package/dist/src/generated/types/AccountConstraint.d.ts +19 -0
- package/dist/src/generated/types/AccountConstraint.js +18 -0
- package/dist/src/generated/types/AccountConstraintType.d.ts +49 -0
- package/dist/src/generated/types/AccountConstraintType.js +25 -0
- package/dist/src/generated/types/AddSignerArgs.d.ts +17 -0
- package/dist/src/generated/types/AddSignerArgs.js +16 -0
- package/dist/src/generated/types/AddSpendingLimitArgs.d.ts +25 -0
- package/dist/src/generated/types/AddSpendingLimitArgs.js +24 -0
- package/dist/src/generated/types/AddTransactionToBatchArgs.d.ts +16 -0
- package/dist/src/generated/types/AddTransactionToBatchArgs.js +15 -0
- package/dist/src/generated/types/AllowedSettingsChange.d.ts +60 -0
- package/dist/src/generated/types/AllowedSettingsChange.js +35 -0
- package/dist/src/generated/types/ChangeThresholdArgs.d.ts +16 -0
- package/dist/src/generated/types/ChangeThresholdArgs.js +15 -0
- package/dist/src/generated/types/ConsensusAccountType.d.ts +20 -0
- package/dist/src/generated/types/ConsensusAccountType.js +21 -0
- package/dist/src/generated/types/CreateBatchArgs.d.ts +16 -0
- package/dist/src/generated/types/CreateBatchArgs.js +15 -0
- package/dist/src/generated/types/CreateProposalArgs.d.ts +16 -0
- package/dist/src/generated/types/CreateProposalArgs.js +15 -0
- package/dist/src/generated/types/CreateSettingsTransactionArgs.d.ts +17 -0
- package/dist/src/generated/types/CreateSettingsTransactionArgs.js +16 -0
- package/dist/src/generated/types/CreateSmartAccountArgs.d.ts +22 -0
- package/dist/src/generated/types/CreateSmartAccountArgs.js +21 -0
- package/dist/src/generated/types/CreateTransactionArgs.d.ts +49 -0
- package/dist/src/generated/types/CreateTransactionArgs.js +25 -0
- package/dist/src/generated/types/CreateTransactionBufferArgs.d.ts +19 -0
- package/dist/src/generated/types/CreateTransactionBufferArgs.js +18 -0
- package/dist/src/generated/types/DataConstraint.d.ts +19 -0
- package/dist/src/generated/types/DataConstraint.js +18 -0
- package/dist/src/generated/types/DataOperator.d.ts +24 -0
- package/dist/src/generated/types/DataOperator.js +25 -0
- package/dist/src/generated/types/DataValue.d.ts +71 -0
- package/dist/src/generated/types/DataValue.js +43 -0
- package/dist/src/generated/types/ExtendTransactionBufferArgs.d.ts +15 -0
- package/dist/src/generated/types/ExtendTransactionBufferArgs.js +12 -0
- package/dist/src/generated/types/Hook.d.ts +21 -0
- package/dist/src/generated/types/Hook.js +20 -0
- package/dist/src/generated/types/InitProgramConfigArgs.d.ts +18 -0
- package/dist/src/generated/types/InitProgramConfigArgs.js +17 -0
- package/dist/src/generated/types/InstructionConstraint.d.ts +20 -0
- package/dist/src/generated/types/InstructionConstraint.js +19 -0
- package/dist/src/generated/types/InternalFundTransferPayload.d.ts +20 -0
- package/dist/src/generated/types/InternalFundTransferPayload.js +19 -0
- package/dist/src/generated/types/InternalFundTransferPolicy.d.ts +18 -0
- package/dist/src/generated/types/InternalFundTransferPolicy.js +17 -0
- package/dist/src/generated/types/InternalFundTransferPolicyCreationPayload.d.ts +18 -0
- package/dist/src/generated/types/InternalFundTransferPolicyCreationPayload.js +17 -0
- package/dist/src/generated/types/LegacySyncTransactionArgs.d.ts +17 -0
- package/dist/src/generated/types/LegacySyncTransactionArgs.js +16 -0
- package/dist/src/generated/types/LimitedQuantityConstraints.d.ts +15 -0
- package/dist/src/generated/types/LimitedQuantityConstraints.js +12 -0
- package/dist/src/generated/types/LimitedSettingsAction.d.ts +61 -0
- package/dist/src/generated/types/LimitedSettingsAction.js +35 -0
- package/dist/src/generated/types/LimitedSpendingLimit.d.ts +20 -0
- package/dist/src/generated/types/LimitedSpendingLimit.js +19 -0
- package/dist/src/generated/types/LimitedTimeConstraints.d.ts +18 -0
- package/dist/src/generated/types/LimitedTimeConstraints.js +17 -0
- package/dist/src/generated/types/LogEventArgs.d.ts +17 -0
- package/dist/src/generated/types/LogEventArgs.js +16 -0
- package/dist/src/generated/types/LogEventArgsV2.d.ts +15 -0
- package/dist/src/generated/types/LogEventArgsV2.js +12 -0
- package/dist/src/generated/types/Payload.d.ts +49 -0
- package/dist/src/generated/types/Payload.js +25 -0
- package/dist/src/generated/types/Period.d.ts +22 -0
- package/dist/src/generated/types/Period.js +23 -0
- package/dist/src/generated/types/PeriodV2.d.ts +57 -0
- package/dist/src/generated/types/PeriodV2.js +26 -0
- package/dist/src/generated/types/Permissions.d.ts +15 -0
- package/dist/src/generated/types/Permissions.js +12 -0
- package/dist/src/generated/types/PolicyActionPayloadDetails.d.ts +16 -0
- package/dist/src/generated/types/PolicyActionPayloadDetails.js +13 -0
- package/dist/src/generated/types/PolicyCreationPayload.d.ts +63 -0
- package/dist/src/generated/types/PolicyCreationPayload.js +42 -0
- package/dist/src/generated/types/PolicyEventType.d.ts +22 -0
- package/dist/src/generated/types/PolicyEventType.js +23 -0
- package/dist/src/generated/types/PolicyExecutionContext.d.ts +20 -0
- package/dist/src/generated/types/PolicyExecutionContext.js +21 -0
- package/dist/src/generated/types/PolicyExpiration.d.ts +47 -0
- package/dist/src/generated/types/PolicyExpiration.js +28 -0
- package/dist/src/generated/types/PolicyExpirationArgs.d.ts +45 -0
- package/dist/src/generated/types/PolicyExpirationArgs.js +20 -0
- package/dist/src/generated/types/PolicyPayload.d.ts +63 -0
- package/dist/src/generated/types/PolicyPayload.js +37 -0
- package/dist/src/generated/types/PolicyState.d.ts +63 -0
- package/dist/src/generated/types/PolicyState.js +37 -0
- package/dist/src/generated/types/ProgramConfigSetAuthorityArgs.d.ts +16 -0
- package/dist/src/generated/types/ProgramConfigSetAuthorityArgs.js +13 -0
- package/dist/src/generated/types/ProgramConfigSetSmartAccountCreationFeeArgs.d.ts +15 -0
- package/dist/src/generated/types/ProgramConfigSetSmartAccountCreationFeeArgs.js +12 -0
- package/dist/src/generated/types/ProgramConfigSetTreasuryArgs.d.ts +16 -0
- package/dist/src/generated/types/ProgramConfigSetTreasuryArgs.js +13 -0
- package/dist/src/generated/types/ProgramInteractionPayload.d.ts +17 -0
- package/dist/src/generated/types/ProgramInteractionPayload.js +16 -0
- package/dist/src/generated/types/ProgramInteractionPolicy.d.ts +22 -0
- package/dist/src/generated/types/ProgramInteractionPolicy.js +21 -0
- package/dist/src/generated/types/ProgramInteractionPolicyCreationPayload.d.ts +22 -0
- package/dist/src/generated/types/ProgramInteractionPolicyCreationPayload.js +21 -0
- package/dist/src/generated/types/ProgramInteractionTransactionPayload.d.ts +49 -0
- package/dist/src/generated/types/ProgramInteractionTransactionPayload.js +25 -0
- package/dist/src/generated/types/ProposalEventType.d.ts +24 -0
- package/dist/src/generated/types/ProposalEventType.js +25 -0
- package/dist/src/generated/types/ProposalStatus.d.ts +75 -0
- package/dist/src/generated/types/ProposalStatus.js +45 -0
- package/dist/src/generated/types/QuantityConstraints.d.ts +17 -0
- package/dist/src/generated/types/QuantityConstraints.js +16 -0
- package/dist/src/generated/types/RemoveSignerArgs.d.ts +17 -0
- package/dist/src/generated/types/RemoveSignerArgs.js +16 -0
- package/dist/src/generated/types/RemoveSpendingLimitArgs.d.ts +15 -0
- package/dist/src/generated/types/RemoveSpendingLimitArgs.js +12 -0
- package/dist/src/generated/types/SetArchivalAuthorityArgs.d.ts +17 -0
- package/dist/src/generated/types/SetArchivalAuthorityArgs.js +16 -0
- package/dist/src/generated/types/SetNewSettingsAuthorityArgs.d.ts +17 -0
- package/dist/src/generated/types/SetNewSettingsAuthorityArgs.js +16 -0
- package/dist/src/generated/types/SetTimeLockArgs.d.ts +16 -0
- package/dist/src/generated/types/SetTimeLockArgs.js +15 -0
- package/dist/src/generated/types/SettingsAction.d.ts +118 -0
- package/dist/src/generated/types/SettingsAction.js +92 -0
- package/dist/src/generated/types/SettingsChangePayload.d.ts +17 -0
- package/dist/src/generated/types/SettingsChangePayload.js +16 -0
- package/dist/src/generated/types/SettingsChangePolicy.d.ts +16 -0
- package/dist/src/generated/types/SettingsChangePolicy.js +13 -0
- package/dist/src/generated/types/SettingsChangePolicyCreationPayload.d.ts +16 -0
- package/dist/src/generated/types/SettingsChangePolicyCreationPayload.js +13 -0
- package/dist/src/generated/types/SmartAccountCompiledInstruction.d.ts +17 -0
- package/dist/src/generated/types/SmartAccountCompiledInstruction.js +16 -0
- package/dist/src/generated/types/SmartAccountMessageAddressTableLookup.d.ts +18 -0
- package/dist/src/generated/types/SmartAccountMessageAddressTableLookup.js +17 -0
- package/dist/src/generated/types/SmartAccountSigner.d.ts +18 -0
- package/dist/src/generated/types/SmartAccountSigner.js +17 -0
- package/dist/src/generated/types/SmartAccountTransactionMessage.d.ts +23 -0
- package/dist/src/generated/types/SmartAccountTransactionMessage.js +25 -0
- package/dist/src/generated/types/SpendingLimitPayload.d.ts +18 -0
- package/dist/src/generated/types/SpendingLimitPayload.js +17 -0
- package/dist/src/generated/types/SpendingLimitPolicy.d.ts +19 -0
- package/dist/src/generated/types/SpendingLimitPolicy.js +18 -0
- package/dist/src/generated/types/SpendingLimitPolicyCreationPayload.d.ts +24 -0
- package/dist/src/generated/types/SpendingLimitPolicyCreationPayload.js +23 -0
- package/dist/src/generated/types/SpendingLimitV2.d.ts +22 -0
- package/dist/src/generated/types/SpendingLimitV2.js +21 -0
- package/dist/src/generated/types/SyncPayload.d.ts +48 -0
- package/dist/src/generated/types/SyncPayload.js +24 -0
- package/dist/src/generated/types/SyncSettingsTransactionArgs.d.ts +18 -0
- package/dist/src/generated/types/SyncSettingsTransactionArgs.js +17 -0
- package/dist/src/generated/types/SyncTransactionArgs.d.ts +18 -0
- package/dist/src/generated/types/SyncTransactionArgs.js +17 -0
- package/dist/src/generated/types/SyncTransactionPayloadDetails.d.ts +16 -0
- package/dist/src/generated/types/SyncTransactionPayloadDetails.js +15 -0
- package/dist/src/generated/types/SynchronousTransactionEventPayload.d.ts +50 -0
- package/dist/src/generated/types/SynchronousTransactionEventPayload.js +28 -0
- package/dist/src/generated/types/TimeConstraints.d.ts +19 -0
- package/dist/src/generated/types/TimeConstraints.js +18 -0
- package/dist/src/generated/types/TransactionEventType.d.ts +21 -0
- package/dist/src/generated/types/TransactionEventType.js +22 -0
- package/dist/src/generated/types/TransactionPayload.d.ts +18 -0
- package/dist/src/generated/types/TransactionPayload.js +17 -0
- package/dist/src/generated/types/TransactionPayloadDetails.d.ts +18 -0
- package/dist/src/generated/types/TransactionPayloadDetails.js +17 -0
- package/dist/src/generated/types/UsageState.d.ts +16 -0
- package/dist/src/generated/types/UsageState.js +15 -0
- package/dist/src/generated/types/UseSpendingLimitArgs.d.ts +17 -0
- package/dist/src/generated/types/UseSpendingLimitArgs.js +16 -0
- package/dist/src/generated/types/Vote.d.ts +21 -0
- package/dist/src/generated/types/Vote.js +22 -0
- package/dist/src/generated/types/VoteOnProposalArgs.d.ts +15 -0
- package/dist/src/generated/types/VoteOnProposalArgs.js +12 -0
- package/dist/src/generated/types/index.d.ts +83 -0
- package/dist/src/generated/types/index.js +83 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.js +15 -0
- package/dist/src/internal/generated.d.ts +1 -0
- package/dist/src/internal/generated.js +1 -0
- package/dist/src/internal/index.d.ts +2 -0
- package/dist/src/internal/index.js +2 -0
- package/dist/src/internal/instructions/activateProposal.d.ts +7 -0
- package/dist/src/internal/instructions/activateProposal.js +14 -0
- package/dist/src/internal/instructions/addSignerAsAuthority.d.ts +10 -0
- package/dist/src/internal/instructions/addSignerAsAuthority.js +11 -0
- package/dist/src/internal/instructions/addSpendingLimitAsAuthority.d.ts +18 -0
- package/dist/src/internal/instructions/addSpendingLimitAsAuthority.js +27 -0
- package/dist/src/internal/instructions/addTransactionToBatch.d.ts +18 -0
- package/dist/src/internal/instructions/addTransactionToBatch.js +44 -0
- package/dist/src/internal/instructions/approveProposal.d.ts +8 -0
- package/dist/src/internal/instructions/approveProposal.js +10 -0
- package/dist/src/internal/instructions/cancelProposal.d.ts +8 -0
- package/dist/src/internal/instructions/cancelProposal.js +11 -0
- package/dist/src/internal/instructions/changeThresholdAsAuthority.d.ts +9 -0
- package/dist/src/internal/instructions/changeThresholdAsAuthority.js +14 -0
- package/dist/src/internal/instructions/closeBatch.d.ts +15 -0
- package/dist/src/internal/instructions/closeBatch.js +29 -0
- package/dist/src/internal/instructions/closeBatchTransaction.d.ts +15 -0
- package/dist/src/internal/instructions/closeBatchTransaction.js +34 -0
- package/dist/src/internal/instructions/closeEmptyPolicyTransaction.d.ts +8 -0
- package/dist/src/internal/instructions/closeEmptyPolicyTransaction.js +26 -0
- package/dist/src/internal/instructions/closeSettingsTransaction.d.ts +8 -0
- package/dist/src/internal/instructions/closeSettingsTransaction.js +22 -0
- package/dist/src/internal/instructions/closeTransaction.d.ts +8 -0
- package/dist/src/internal/instructions/closeTransaction.js +22 -0
- package/dist/src/internal/instructions/closeTransactionBuffer.d.ts +8 -0
- package/dist/src/internal/instructions/closeTransactionBuffer.js +15 -0
- package/dist/src/internal/instructions/createBatch.d.ts +12 -0
- package/dist/src/internal/instructions/createBatch.js +15 -0
- package/dist/src/internal/instructions/createPolicyTransaction.d.ts +11 -0
- package/dist/src/internal/instructions/createPolicyTransaction.js +21 -0
- package/dist/src/internal/instructions/createProposal.d.ts +11 -0
- package/dist/src/internal/instructions/createProposal.js +19 -0
- package/dist/src/internal/instructions/createSettingsTransaction.d.ts +14 -0
- package/dist/src/internal/instructions/createSettingsTransaction.js +17 -0
- package/dist/src/internal/instructions/createSmartAccount.d.ts +15 -0
- package/dist/src/internal/instructions/createSmartAccount.js +30 -0
- package/dist/src/internal/instructions/createTransaction.d.ts +16 -0
- package/dist/src/internal/instructions/createTransaction.js +39 -0
- package/dist/src/internal/instructions/createTransactionBuffer.d.ts +13 -0
- package/dist/src/internal/instructions/createTransactionBuffer.js +24 -0
- package/dist/src/internal/instructions/createTransactionFromBuffer.d.ts +13 -0
- package/dist/src/internal/instructions/createTransactionFromBuffer.js +39 -0
- package/dist/src/internal/instructions/executeBatchTransaction.d.ts +13 -0
- package/dist/src/internal/instructions/executeBatchTransaction.js +47 -0
- package/dist/src/internal/instructions/executePolicyPayloadSync.d.ts +15 -0
- package/dist/src/internal/instructions/executePolicyPayloadSync.js +18 -0
- package/dist/src/internal/instructions/executePolicyTransaction.d.ts +9 -0
- package/dist/src/internal/instructions/executePolicyTransaction.js +22 -0
- package/dist/src/internal/instructions/executeSettingsTransaction.d.ts +12 -0
- package/dist/src/internal/instructions/executeSettingsTransaction.js +37 -0
- package/dist/src/internal/instructions/executeSettingsTransactionSync.d.ts +11 -0
- package/dist/src/internal/instructions/executeSettingsTransactionSync.js +26 -0
- package/dist/src/internal/instructions/executeTransaction.d.ts +12 -0
- package/dist/src/internal/instructions/executeTransaction.js +49 -0
- package/dist/src/internal/instructions/executeTransactionSync.d.ts +14 -0
- package/dist/src/internal/instructions/executeTransactionSync.js +15 -0
- package/dist/src/internal/instructions/executeTransactionSyncV2.d.ts +14 -0
- package/dist/src/internal/instructions/executeTransactionSyncV2.js +18 -0
- package/dist/src/internal/instructions/extendTransactionBuffer.d.ts +9 -0
- package/dist/src/internal/instructions/extendTransactionBuffer.js +19 -0
- package/dist/src/internal/instructions/index.d.ts +42 -0
- package/dist/src/internal/instructions/index.js +42 -0
- package/dist/src/internal/instructions/initializeProgramConfig.d.ts +9 -0
- package/dist/src/internal/instructions/initializeProgramConfig.js +16 -0
- package/dist/src/internal/instructions/logEvent.d.ts +6 -0
- package/dist/src/internal/instructions/logEvent.js +10 -0
- package/dist/src/internal/instructions/rejectProposal.d.ts +8 -0
- package/dist/src/internal/instructions/rejectProposal.js +15 -0
- package/dist/src/internal/instructions/removeSignerAsAuthority.d.ts +8 -0
- package/dist/src/internal/instructions/removeSignerAsAuthority.js +10 -0
- package/dist/src/internal/instructions/removeSpendingLimitAsAuthority.d.ts +9 -0
- package/dist/src/internal/instructions/removeSpendingLimitAsAuthority.js +14 -0
- package/dist/src/internal/instructions/setArchivalAuthorityAsAuthority.d.ts +8 -0
- package/dist/src/internal/instructions/setArchivalAuthorityAsAuthority.js +15 -0
- package/dist/src/internal/instructions/setNewSettingsAuthorityAsAuthority.d.ts +8 -0
- package/dist/src/internal/instructions/setNewSettingsAuthorityAsAuthority.js +13 -0
- package/dist/src/internal/instructions/setProgramConfigAuthority.d.ts +6 -0
- package/dist/src/internal/instructions/setProgramConfigAuthority.js +13 -0
- package/dist/src/internal/instructions/setProgramConfigSmartAccountCreationFee.d.ts +7 -0
- package/dist/src/internal/instructions/setProgramConfigSmartAccountCreationFee.js +14 -0
- package/dist/src/internal/instructions/setProgramConfigTreasury.d.ts +6 -0
- package/dist/src/internal/instructions/setProgramConfigTreasury.js +13 -0
- package/dist/src/internal/instructions/setTimeLockAsAuthority.d.ts +8 -0
- package/dist/src/internal/instructions/setTimeLockAsAuthority.js +13 -0
- package/dist/src/internal/instructions/useSpendingLimit.d.ts +15 -0
- package/dist/src/internal/instructions/useSpendingLimit.js +24 -0
- package/dist/src/internal/pda.d.ts +1 -0
- package/dist/src/internal/pda.js +1 -0
- package/dist/src/internal/utils.d.ts +1 -0
- package/dist/src/internal/utils.js +1 -0
- package/dist/src/loyal.d.ts +18 -0
- package/dist/src/loyal.js +56 -0
- package/dist/src/pda.d.ts +1 -0
- package/dist/src/pda.js +1 -0
- package/dist/src/spec/features.d.ts +15 -0
- package/dist/src/spec/features.js +69 -0
- package/dist/src/spec/idl.d.ts +3 -0
- package/dist/src/spec/idl.js +75 -0
- package/dist/src/spec/index.d.ts +4 -0
- package/dist/src/spec/index.js +4 -0
- package/dist/src/spec/operation-registry.d.ts +385 -0
- package/dist/src/spec/operation-registry.js +390 -0
- package/dist/src/spec/pda-registry.d.ts +32 -0
- package/dist/src/spec/pda-registry.js +71 -0
- package/dist/src/transport.d.ts +1 -0
- package/dist/src/transport.js +1 -0
- package/dist/src/types.d.ts +69 -0
- package/dist/src/types.js +129 -0
- package/dist/src/utils/compileToSynchronousMessage.d.ts +9 -0
- package/dist/src/utils/compileToSynchronousMessage.js +87 -0
- package/dist/src/utils/compileToSynchronousMessageV2.d.ts +19 -0
- package/dist/src/utils/compileToSynchronousMessageV2.js +154 -0
- package/dist/src/utils/compileToWrappedMessageV0.d.ts +7 -0
- package/dist/src/utils/compileToWrappedMessageV0.js +30 -0
- package/dist/src/utils/compiled-keys.d.ts +31 -0
- package/dist/src/utils/compiled-keys.js +144 -0
- package/dist/src/utils.d.ts +61 -0
- package/dist/src/utils.js +217 -0
- package/package.json +71 -0
- package/upstream/manifest.json +14 -0
- package/upstream/normalized/squads_smart_account_program.json +6020 -0
- package/upstream/raw/squads_smart_account_program.json +6020 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createSetProgramConfigAuthorityInstruction, PROGRAM_ID, } from "../generated";
|
|
2
|
+
import { getProgramConfigPda } from "../pda";
|
|
3
|
+
export function setProgramConfigAuthority({ authority, newAuthority, programId = PROGRAM_ID, }) {
|
|
4
|
+
const [programConfig] = getProgramConfigPda({ programId });
|
|
5
|
+
return createSetProgramConfigAuthorityInstruction({
|
|
6
|
+
programConfig,
|
|
7
|
+
authority,
|
|
8
|
+
}, {
|
|
9
|
+
args: {
|
|
10
|
+
newAuthority,
|
|
11
|
+
},
|
|
12
|
+
}, programId);
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import BN from "bn.js";
|
|
2
|
+
import { PublicKey } from "@solana/web3.js";
|
|
3
|
+
export declare function setProgramConfigSmartAccountCreationFee({ authority, smartAccountCreationFee, programId, }: {
|
|
4
|
+
authority: PublicKey;
|
|
5
|
+
smartAccountCreationFee: BN | bigint | number | string;
|
|
6
|
+
programId?: PublicKey;
|
|
7
|
+
}): import("@solana/web3.js").TransactionInstruction;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import BN from "bn.js";
|
|
2
|
+
import { createSetProgramConfigSmartAccountCreationFeeInstruction, PROGRAM_ID, } from "../generated";
|
|
3
|
+
import { getProgramConfigPda } from "../pda";
|
|
4
|
+
export function setProgramConfigSmartAccountCreationFee({ authority, smartAccountCreationFee, programId = PROGRAM_ID, }) {
|
|
5
|
+
const [programConfig] = getProgramConfigPda({ programId });
|
|
6
|
+
return createSetProgramConfigSmartAccountCreationFeeInstruction({
|
|
7
|
+
programConfig,
|
|
8
|
+
authority,
|
|
9
|
+
}, {
|
|
10
|
+
args: {
|
|
11
|
+
newSmartAccountCreationFee: new BN(smartAccountCreationFee.toString()),
|
|
12
|
+
},
|
|
13
|
+
}, programId);
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createSetProgramConfigTreasuryInstruction, PROGRAM_ID, } from "../generated";
|
|
2
|
+
import { getProgramConfigPda } from "../pda";
|
|
3
|
+
export function setProgramConfigTreasury({ authority, treasury, programId = PROGRAM_ID, }) {
|
|
4
|
+
const [programConfig] = getProgramConfigPda({ programId });
|
|
5
|
+
return createSetProgramConfigTreasuryInstruction({
|
|
6
|
+
programConfig,
|
|
7
|
+
authority,
|
|
8
|
+
}, {
|
|
9
|
+
args: {
|
|
10
|
+
newTreasury: treasury,
|
|
11
|
+
},
|
|
12
|
+
}, programId);
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PublicKey } from "@solana/web3.js";
|
|
2
|
+
export declare function setTimeLockAsAuthority({ settingsPda, settingsAuthority, timeLock, memo, programId, }: {
|
|
3
|
+
settingsPda: PublicKey;
|
|
4
|
+
settingsAuthority: PublicKey;
|
|
5
|
+
timeLock: number;
|
|
6
|
+
memo?: string;
|
|
7
|
+
programId?: PublicKey;
|
|
8
|
+
}): import("@solana/web3.js").TransactionInstruction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createSetTimeLockAsAuthorityInstruction, PROGRAM_ID } from "../generated";
|
|
2
|
+
export function setTimeLockAsAuthority({ settingsPda, settingsAuthority, timeLock, memo, programId = PROGRAM_ID, }) {
|
|
3
|
+
return createSetTimeLockAsAuthorityInstruction({
|
|
4
|
+
settings: settingsPda,
|
|
5
|
+
settingsAuthority,
|
|
6
|
+
program: programId,
|
|
7
|
+
}, {
|
|
8
|
+
args: {
|
|
9
|
+
timeLock,
|
|
10
|
+
memo: memo ?? null,
|
|
11
|
+
},
|
|
12
|
+
}, programId);
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
|
2
|
+
export declare function useSpendingLimit({ settingsPda, signer, spendingLimit, mint, accountIndex, amount, decimals, destination, tokenProgram, memo, programId, }: {
|
|
3
|
+
settingsPda: PublicKey;
|
|
4
|
+
signer: PublicKey;
|
|
5
|
+
spendingLimit: PublicKey;
|
|
6
|
+
/** Provide if `spendingLimit` is for an SPL token, omit if it's for SOL. */
|
|
7
|
+
mint?: PublicKey;
|
|
8
|
+
accountIndex: number;
|
|
9
|
+
amount: number;
|
|
10
|
+
decimals: number;
|
|
11
|
+
destination: PublicKey;
|
|
12
|
+
tokenProgram?: PublicKey;
|
|
13
|
+
memo?: string;
|
|
14
|
+
programId?: PublicKey;
|
|
15
|
+
}): TransactionInstruction;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SystemProgram, } from "@solana/web3.js";
|
|
2
|
+
import { getAssociatedTokenAddressSync, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID, } from "@solana/spl-token";
|
|
3
|
+
import { createUseSpendingLimitInstruction, PROGRAM_ID } from "../generated";
|
|
4
|
+
import { getSmartAccountPda } from "../pda";
|
|
5
|
+
export function useSpendingLimit({ settingsPda, signer, spendingLimit, mint, accountIndex, amount, decimals, destination, tokenProgram = TOKEN_PROGRAM_ID, memo, programId = PROGRAM_ID, }) {
|
|
6
|
+
const [smartAccountPda] = getSmartAccountPda({ settingsPda, accountIndex, programId });
|
|
7
|
+
const smartAccountTokenAccount = mint &&
|
|
8
|
+
getAssociatedTokenAddressSync(mint, smartAccountPda, true, tokenProgram, ASSOCIATED_TOKEN_PROGRAM_ID);
|
|
9
|
+
const destinationTokenAccount = mint &&
|
|
10
|
+
getAssociatedTokenAddressSync(mint, destination, true, tokenProgram, ASSOCIATED_TOKEN_PROGRAM_ID);
|
|
11
|
+
return createUseSpendingLimitInstruction({
|
|
12
|
+
settings: settingsPda,
|
|
13
|
+
signer,
|
|
14
|
+
spendingLimit,
|
|
15
|
+
smartAccount: smartAccountPda,
|
|
16
|
+
destination,
|
|
17
|
+
systemProgram: SystemProgram.programId,
|
|
18
|
+
mint,
|
|
19
|
+
smartAccountTokenAccount,
|
|
20
|
+
destinationTokenAccount,
|
|
21
|
+
tokenProgram: mint ? tokenProgram : undefined,
|
|
22
|
+
program: programId,
|
|
23
|
+
}, { args: { amount, decimals, memo: memo ?? null } }, programId);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../pda.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../pda.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../utils.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../utils.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Connection, type Commitment } from "@solana/web3.js";
|
|
2
|
+
import { type SolanaEnv } from "@loyal-labs/solana-rpc";
|
|
3
|
+
import type { LoyalSmartAccountsClientConfig } from "./transport.js";
|
|
4
|
+
type CreateConnection = (rpcEndpoint: string, websocketEndpoint: string, commitment: Commitment) => Connection;
|
|
5
|
+
export type LoyalSmartAccountsConnectionCache = Map<string, Connection>;
|
|
6
|
+
export type LoyalSmartAccountsConnectionConfig = {
|
|
7
|
+
env: SolanaEnv;
|
|
8
|
+
commitment?: Commitment;
|
|
9
|
+
connection?: Connection;
|
|
10
|
+
createConnection?: CreateConnection;
|
|
11
|
+
cache?: LoyalSmartAccountsConnectionCache;
|
|
12
|
+
};
|
|
13
|
+
export type ResolveLoyalSmartAccountsClientConfigFromEnvInput = Omit<LoyalSmartAccountsClientConfig, "connection" | "defaultCommitment"> & LoyalSmartAccountsConnectionConfig;
|
|
14
|
+
export declare function createLoyalSmartAccountsConnectionCache(): LoyalSmartAccountsConnectionCache;
|
|
15
|
+
export declare function resetLoyalSmartAccountsConnectionCache(cache: LoyalSmartAccountsConnectionCache): void;
|
|
16
|
+
export declare function getLoyalSmartAccountsConnection(config: LoyalSmartAccountsConnectionConfig): Connection;
|
|
17
|
+
export declare function resolveLoyalSmartAccountsClientConfigFromEnv(config: ResolveLoyalSmartAccountsClientConfigFromEnvInput): LoyalSmartAccountsClientConfig;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Connection } from "@solana/web3.js";
|
|
2
|
+
import { getSolanaEndpoints } from "@loyal-labs/solana-rpc";
|
|
3
|
+
const DEFAULT_COMMITMENT = "confirmed";
|
|
4
|
+
function getCacheKey(rpcEndpoint, websocketEndpoint, commitment) {
|
|
5
|
+
return `${rpcEndpoint}::${websocketEndpoint}::${commitment}`;
|
|
6
|
+
}
|
|
7
|
+
export function createLoyalSmartAccountsConnectionCache() {
|
|
8
|
+
return new Map();
|
|
9
|
+
}
|
|
10
|
+
export function resetLoyalSmartAccountsConnectionCache(cache) {
|
|
11
|
+
cache.clear();
|
|
12
|
+
}
|
|
13
|
+
export function getLoyalSmartAccountsConnection(config) {
|
|
14
|
+
if (config.connection) {
|
|
15
|
+
return config.connection;
|
|
16
|
+
}
|
|
17
|
+
const commitment = config.commitment ?? DEFAULT_COMMITMENT;
|
|
18
|
+
const { rpcEndpoint, websocketEndpoint } = getSolanaEndpoints(config.env);
|
|
19
|
+
if (!config.cache) {
|
|
20
|
+
return config.createConnection
|
|
21
|
+
? config.createConnection(rpcEndpoint, websocketEndpoint, commitment)
|
|
22
|
+
: new Connection(rpcEndpoint, {
|
|
23
|
+
commitment,
|
|
24
|
+
wsEndpoint: websocketEndpoint,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const cacheKey = getCacheKey(rpcEndpoint, websocketEndpoint, commitment);
|
|
28
|
+
const cached = config.cache.get(cacheKey);
|
|
29
|
+
if (cached) {
|
|
30
|
+
return cached;
|
|
31
|
+
}
|
|
32
|
+
const connection = config.createConnection
|
|
33
|
+
? config.createConnection(rpcEndpoint, websocketEndpoint, commitment)
|
|
34
|
+
: new Connection(rpcEndpoint, {
|
|
35
|
+
commitment,
|
|
36
|
+
wsEndpoint: websocketEndpoint,
|
|
37
|
+
});
|
|
38
|
+
config.cache.set(cacheKey, connection);
|
|
39
|
+
return connection;
|
|
40
|
+
}
|
|
41
|
+
export function resolveLoyalSmartAccountsClientConfigFromEnv(config) {
|
|
42
|
+
const commitment = config.commitment ?? DEFAULT_COMMITMENT;
|
|
43
|
+
return {
|
|
44
|
+
connection: getLoyalSmartAccountsConnection({
|
|
45
|
+
env: config.env,
|
|
46
|
+
commitment,
|
|
47
|
+
connection: config.connection,
|
|
48
|
+
createConnection: config.createConnection,
|
|
49
|
+
cache: config.cache,
|
|
50
|
+
}),
|
|
51
|
+
programId: config.programId,
|
|
52
|
+
defaultCommitment: commitment,
|
|
53
|
+
sendPrepared: config.sendPrepared,
|
|
54
|
+
confirm: config.confirm,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./core/pda/index.js";
|
package/dist/src/pda.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./core/pda/index.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const FEATURE_INSTRUCTION_COVERAGE: {
|
|
2
|
+
readonly programConfig: readonly ["initializeProgramConfig", "setProgramConfigAuthority", "setProgramConfigSmartAccountCreationFee", "setProgramConfigTreasury"];
|
|
3
|
+
readonly smartAccounts: readonly ["createSmartAccount", "addSignerAsAuthority", "removeSignerAsAuthority", "setTimeLockAsAuthority", "changeThresholdAsAuthority", "setNewSettingsAuthorityAsAuthority", "setArchivalAuthorityAsAuthority", "createSettingsTransaction", "closeSettingsTransaction"];
|
|
4
|
+
readonly proposals: readonly ["createProposal", "activateProposal", "approveProposal", "rejectProposal", "cancelProposal"];
|
|
5
|
+
readonly transactions: readonly ["createTransaction", "createTransactionBuffer", "closeTransactionBuffer", "extendTransactionBuffer", "createTransactionFromBuffer", "closeTransaction", "logEvent"];
|
|
6
|
+
readonly batches: readonly ["createBatch", "addTransactionToBatch", "closeBatchTransaction", "closeBatch"];
|
|
7
|
+
readonly policies: readonly ["closeEmptyPolicyTransaction"];
|
|
8
|
+
readonly spendingLimits: readonly ["addSpendingLimitAsAuthority", "removeSpendingLimitAsAuthority", "useSpendingLimit"];
|
|
9
|
+
readonly execution: readonly ["executeSettingsTransaction", "executeTransaction", "executeBatchTransaction", "executeTransactionSync", "executeTransactionSyncV2", "executeSettingsTransactionSync"];
|
|
10
|
+
};
|
|
11
|
+
export declare const EXTRA_FEATURE_ACTIONS: {
|
|
12
|
+
readonly policies: readonly ["createPolicyTransaction"];
|
|
13
|
+
readonly execution: readonly ["executePolicyTransaction", "executePolicyPayloadSync"];
|
|
14
|
+
};
|
|
15
|
+
export declare const PUBLIC_FEATURE_EXPORTS: readonly ["programConfig", "smartAccounts", "proposals", "transactions", "batches", "policies", "spendingLimits", "execution"];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export const FEATURE_INSTRUCTION_COVERAGE = {
|
|
2
|
+
programConfig: [
|
|
3
|
+
"initializeProgramConfig",
|
|
4
|
+
"setProgramConfigAuthority",
|
|
5
|
+
"setProgramConfigSmartAccountCreationFee",
|
|
6
|
+
"setProgramConfigTreasury",
|
|
7
|
+
],
|
|
8
|
+
smartAccounts: [
|
|
9
|
+
"createSmartAccount",
|
|
10
|
+
"addSignerAsAuthority",
|
|
11
|
+
"removeSignerAsAuthority",
|
|
12
|
+
"setTimeLockAsAuthority",
|
|
13
|
+
"changeThresholdAsAuthority",
|
|
14
|
+
"setNewSettingsAuthorityAsAuthority",
|
|
15
|
+
"setArchivalAuthorityAsAuthority",
|
|
16
|
+
"createSettingsTransaction",
|
|
17
|
+
"closeSettingsTransaction",
|
|
18
|
+
],
|
|
19
|
+
proposals: [
|
|
20
|
+
"createProposal",
|
|
21
|
+
"activateProposal",
|
|
22
|
+
"approveProposal",
|
|
23
|
+
"rejectProposal",
|
|
24
|
+
"cancelProposal",
|
|
25
|
+
],
|
|
26
|
+
transactions: [
|
|
27
|
+
"createTransaction",
|
|
28
|
+
"createTransactionBuffer",
|
|
29
|
+
"closeTransactionBuffer",
|
|
30
|
+
"extendTransactionBuffer",
|
|
31
|
+
"createTransactionFromBuffer",
|
|
32
|
+
"closeTransaction",
|
|
33
|
+
"logEvent",
|
|
34
|
+
],
|
|
35
|
+
batches: [
|
|
36
|
+
"createBatch",
|
|
37
|
+
"addTransactionToBatch",
|
|
38
|
+
"closeBatchTransaction",
|
|
39
|
+
"closeBatch",
|
|
40
|
+
],
|
|
41
|
+
policies: ["closeEmptyPolicyTransaction"],
|
|
42
|
+
spendingLimits: [
|
|
43
|
+
"addSpendingLimitAsAuthority",
|
|
44
|
+
"removeSpendingLimitAsAuthority",
|
|
45
|
+
"useSpendingLimit",
|
|
46
|
+
],
|
|
47
|
+
execution: [
|
|
48
|
+
"executeSettingsTransaction",
|
|
49
|
+
"executeTransaction",
|
|
50
|
+
"executeBatchTransaction",
|
|
51
|
+
"executeTransactionSync",
|
|
52
|
+
"executeTransactionSyncV2",
|
|
53
|
+
"executeSettingsTransactionSync",
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
export const EXTRA_FEATURE_ACTIONS = {
|
|
57
|
+
policies: ["createPolicyTransaction"],
|
|
58
|
+
execution: ["executePolicyTransaction", "executePolicyPayloadSync"],
|
|
59
|
+
};
|
|
60
|
+
export const PUBLIC_FEATURE_EXPORTS = [
|
|
61
|
+
"programConfig",
|
|
62
|
+
"smartAccounts",
|
|
63
|
+
"proposals",
|
|
64
|
+
"transactions",
|
|
65
|
+
"batches",
|
|
66
|
+
"policies",
|
|
67
|
+
"spendingLimits",
|
|
68
|
+
"execution",
|
|
69
|
+
];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const REQUIRED_INSTRUCTIONS: readonly ["initializeProgramConfig", "setProgramConfigAuthority", "setProgramConfigSmartAccountCreationFee", "setProgramConfigTreasury", "createSmartAccount", "addSignerAsAuthority", "removeSignerAsAuthority", "setTimeLockAsAuthority", "changeThresholdAsAuthority", "setNewSettingsAuthorityAsAuthority", "setArchivalAuthorityAsAuthority", "addSpendingLimitAsAuthority", "removeSpendingLimitAsAuthority", "createSettingsTransaction", "executeSettingsTransaction", "createTransaction", "createTransactionBuffer", "closeTransactionBuffer", "extendTransactionBuffer", "createTransactionFromBuffer", "executeTransaction", "createBatch", "addTransactionToBatch", "executeBatchTransaction", "createProposal", "activateProposal", "approveProposal", "rejectProposal", "cancelProposal", "useSpendingLimit", "closeSettingsTransaction", "closeTransaction", "closeEmptyPolicyTransaction", "closeBatchTransaction", "closeBatch", "executeTransactionSync", "executeTransactionSyncV2", "executeSettingsTransactionSync", "logEvent"];
|
|
2
|
+
export declare const REQUIRED_ACCOUNTS: readonly ["Batch", "BatchTransaction", "LegacyTransaction", "Policy", "ProgramConfig", "Proposal", "Settings", "SettingsTransaction", "SpendingLimit", "Transaction", "TransactionBuffer"];
|
|
3
|
+
export declare const IGNORED_IDL_TYPES: readonly ["Permission", "TransactionMessage", "CompiledInstruction", "MessageAddressTableLookup", "CreateSmartAccountEvent", "SynchronousTransactionEvent", "SynchronousSettingsTransactionEvent", "AddSpendingLimitEvent", "RemoveSpendingLimitEvent", "UseSpendingLimitEvent", "TransactionEvent", "ProposalEvent", "SettingsChangePolicyEvent", "SmartAccountEvent", "ConsensusAccount", "SynchronousTransactionEventV2", "AuthoritySettingsEvent", "AuthorityChangeEvent", "TransactionContent"];
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export const REQUIRED_INSTRUCTIONS = [
|
|
2
|
+
"initializeProgramConfig",
|
|
3
|
+
"setProgramConfigAuthority",
|
|
4
|
+
"setProgramConfigSmartAccountCreationFee",
|
|
5
|
+
"setProgramConfigTreasury",
|
|
6
|
+
"createSmartAccount",
|
|
7
|
+
"addSignerAsAuthority",
|
|
8
|
+
"removeSignerAsAuthority",
|
|
9
|
+
"setTimeLockAsAuthority",
|
|
10
|
+
"changeThresholdAsAuthority",
|
|
11
|
+
"setNewSettingsAuthorityAsAuthority",
|
|
12
|
+
"setArchivalAuthorityAsAuthority",
|
|
13
|
+
"addSpendingLimitAsAuthority",
|
|
14
|
+
"removeSpendingLimitAsAuthority",
|
|
15
|
+
"createSettingsTransaction",
|
|
16
|
+
"executeSettingsTransaction",
|
|
17
|
+
"createTransaction",
|
|
18
|
+
"createTransactionBuffer",
|
|
19
|
+
"closeTransactionBuffer",
|
|
20
|
+
"extendTransactionBuffer",
|
|
21
|
+
"createTransactionFromBuffer",
|
|
22
|
+
"executeTransaction",
|
|
23
|
+
"createBatch",
|
|
24
|
+
"addTransactionToBatch",
|
|
25
|
+
"executeBatchTransaction",
|
|
26
|
+
"createProposal",
|
|
27
|
+
"activateProposal",
|
|
28
|
+
"approveProposal",
|
|
29
|
+
"rejectProposal",
|
|
30
|
+
"cancelProposal",
|
|
31
|
+
"useSpendingLimit",
|
|
32
|
+
"closeSettingsTransaction",
|
|
33
|
+
"closeTransaction",
|
|
34
|
+
"closeEmptyPolicyTransaction",
|
|
35
|
+
"closeBatchTransaction",
|
|
36
|
+
"closeBatch",
|
|
37
|
+
"executeTransactionSync",
|
|
38
|
+
"executeTransactionSyncV2",
|
|
39
|
+
"executeSettingsTransactionSync",
|
|
40
|
+
"logEvent",
|
|
41
|
+
];
|
|
42
|
+
export const REQUIRED_ACCOUNTS = [
|
|
43
|
+
"Batch",
|
|
44
|
+
"BatchTransaction",
|
|
45
|
+
"LegacyTransaction",
|
|
46
|
+
"Policy",
|
|
47
|
+
"ProgramConfig",
|
|
48
|
+
"Proposal",
|
|
49
|
+
"Settings",
|
|
50
|
+
"SettingsTransaction",
|
|
51
|
+
"SpendingLimit",
|
|
52
|
+
"Transaction",
|
|
53
|
+
"TransactionBuffer",
|
|
54
|
+
];
|
|
55
|
+
export const IGNORED_IDL_TYPES = [
|
|
56
|
+
"Permission",
|
|
57
|
+
"TransactionMessage",
|
|
58
|
+
"CompiledInstruction",
|
|
59
|
+
"MessageAddressTableLookup",
|
|
60
|
+
"CreateSmartAccountEvent",
|
|
61
|
+
"SynchronousTransactionEvent",
|
|
62
|
+
"SynchronousSettingsTransactionEvent",
|
|
63
|
+
"AddSpendingLimitEvent",
|
|
64
|
+
"RemoveSpendingLimitEvent",
|
|
65
|
+
"UseSpendingLimitEvent",
|
|
66
|
+
"TransactionEvent",
|
|
67
|
+
"ProposalEvent",
|
|
68
|
+
"SettingsChangePolicyEvent",
|
|
69
|
+
"SmartAccountEvent",
|
|
70
|
+
"ConsensusAccount",
|
|
71
|
+
"SynchronousTransactionEventV2",
|
|
72
|
+
"AuthoritySettingsEvent",
|
|
73
|
+
"AuthorityChangeEvent",
|
|
74
|
+
"TransactionContent",
|
|
75
|
+
];
|