@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,19 @@
|
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
|
2
|
+
export * from './accounts';
|
|
3
|
+
export * from './errors';
|
|
4
|
+
export * from './instructions';
|
|
5
|
+
export * from './types';
|
|
6
|
+
/**
|
|
7
|
+
* Program address
|
|
8
|
+
*
|
|
9
|
+
* @category constants
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export declare const PROGRAM_ADDRESS = "SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG";
|
|
13
|
+
/**
|
|
14
|
+
* Program public key
|
|
15
|
+
*
|
|
16
|
+
* @category constants
|
|
17
|
+
* @category generated
|
|
18
|
+
*/
|
|
19
|
+
export declare const PROGRAM_ID: PublicKey;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
|
2
|
+
export * from './accounts';
|
|
3
|
+
export * from './errors';
|
|
4
|
+
export * from './instructions';
|
|
5
|
+
export * from './types';
|
|
6
|
+
/**
|
|
7
|
+
* Program address
|
|
8
|
+
*
|
|
9
|
+
* @category constants
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export const PROGRAM_ADDRESS = 'SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG';
|
|
13
|
+
/**
|
|
14
|
+
* Program public key
|
|
15
|
+
*
|
|
16
|
+
* @category constants
|
|
17
|
+
* @category generated
|
|
18
|
+
*/
|
|
19
|
+
export const PROGRAM_ID = new PublicKey(PROGRAM_ADDRESS);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category ActivateProposal
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export declare const activateProposalStruct: beet.BeetArgsStruct<{
|
|
15
|
+
instructionDiscriminator: number[];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Accounts required by the _activateProposal_ instruction
|
|
19
|
+
*
|
|
20
|
+
* @property [] settings
|
|
21
|
+
* @property [_writable_, **signer**] signer
|
|
22
|
+
* @property [_writable_] proposal
|
|
23
|
+
* @category Instructions
|
|
24
|
+
* @category ActivateProposal
|
|
25
|
+
* @category generated
|
|
26
|
+
*/
|
|
27
|
+
export type ActivateProposalInstructionAccounts = {
|
|
28
|
+
settings: web3.PublicKey;
|
|
29
|
+
signer: web3.PublicKey;
|
|
30
|
+
proposal: web3.PublicKey;
|
|
31
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
32
|
+
};
|
|
33
|
+
export declare const activateProposalInstructionDiscriminator: number[];
|
|
34
|
+
/**
|
|
35
|
+
* Creates a _ActivateProposal_ instruction.
|
|
36
|
+
*
|
|
37
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
38
|
+
* @category Instructions
|
|
39
|
+
* @category ActivateProposal
|
|
40
|
+
* @category generated
|
|
41
|
+
*/
|
|
42
|
+
export declare function createActivateProposalInstruction(accounts: ActivateProposalInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category ActivateProposal
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export const activateProposalStruct = new beet.BeetArgsStruct([['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)]], 'ActivateProposalInstructionArgs');
|
|
15
|
+
export const activateProposalInstructionDiscriminator = [
|
|
16
|
+
90, 186, 203, 234, 70, 185, 191, 21,
|
|
17
|
+
];
|
|
18
|
+
/**
|
|
19
|
+
* Creates a _ActivateProposal_ instruction.
|
|
20
|
+
*
|
|
21
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
22
|
+
* @category Instructions
|
|
23
|
+
* @category ActivateProposal
|
|
24
|
+
* @category generated
|
|
25
|
+
*/
|
|
26
|
+
export function createActivateProposalInstruction(accounts, programId = new web3.PublicKey('SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG')) {
|
|
27
|
+
const [data] = activateProposalStruct.serialize({
|
|
28
|
+
instructionDiscriminator: activateProposalInstructionDiscriminator,
|
|
29
|
+
});
|
|
30
|
+
const keys = [
|
|
31
|
+
{
|
|
32
|
+
pubkey: accounts.settings,
|
|
33
|
+
isWritable: false,
|
|
34
|
+
isSigner: false,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
pubkey: accounts.signer,
|
|
38
|
+
isWritable: true,
|
|
39
|
+
isSigner: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
pubkey: accounts.proposal,
|
|
43
|
+
isWritable: true,
|
|
44
|
+
isSigner: false,
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
48
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
49
|
+
keys.push(acc);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const ix = new web3.TransactionInstruction({
|
|
53
|
+
programId,
|
|
54
|
+
keys,
|
|
55
|
+
data,
|
|
56
|
+
});
|
|
57
|
+
return ix;
|
|
58
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { AddSignerArgs } from '../types/AddSignerArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category AddSignerAsAuthority
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export type AddSignerAsAuthorityInstructionArgs = {
|
|
16
|
+
args: AddSignerArgs;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category AddSignerAsAuthority
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const addSignerAsAuthorityStruct: beet.FixableBeetArgsStruct<AddSignerAsAuthorityInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _addSignerAsAuthority_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [_writable_] settings
|
|
30
|
+
* @property [**signer**] settingsAuthority
|
|
31
|
+
* @property [_writable_, **signer**] rentPayer (optional)
|
|
32
|
+
* @property [] program
|
|
33
|
+
* @category Instructions
|
|
34
|
+
* @category AddSignerAsAuthority
|
|
35
|
+
* @category generated
|
|
36
|
+
*/
|
|
37
|
+
export type AddSignerAsAuthorityInstructionAccounts = {
|
|
38
|
+
settings: web3.PublicKey;
|
|
39
|
+
settingsAuthority: web3.PublicKey;
|
|
40
|
+
rentPayer?: web3.PublicKey;
|
|
41
|
+
systemProgram?: web3.PublicKey;
|
|
42
|
+
program: web3.PublicKey;
|
|
43
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
44
|
+
};
|
|
45
|
+
export declare const addSignerAsAuthorityInstructionDiscriminator: number[];
|
|
46
|
+
/**
|
|
47
|
+
* Creates a _AddSignerAsAuthority_ instruction.
|
|
48
|
+
*
|
|
49
|
+
* Optional accounts that are not provided default to the program ID since
|
|
50
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
51
|
+
*
|
|
52
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
53
|
+
* @param args to provide as instruction data to the program
|
|
54
|
+
*
|
|
55
|
+
* @category Instructions
|
|
56
|
+
* @category AddSignerAsAuthority
|
|
57
|
+
* @category generated
|
|
58
|
+
*/
|
|
59
|
+
export declare function createAddSignerAsAuthorityInstruction(accounts: AddSignerAsAuthorityInstructionAccounts, args: AddSignerAsAuthorityInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { addSignerArgsBeet } from '../types/AddSignerArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category AddSignerAsAuthority
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export const addSignerAsAuthorityStruct = new beet.FixableBeetArgsStruct([
|
|
16
|
+
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
17
|
+
['args', addSignerArgsBeet],
|
|
18
|
+
], 'AddSignerAsAuthorityInstructionArgs');
|
|
19
|
+
export const addSignerAsAuthorityInstructionDiscriminator = [
|
|
20
|
+
80, 198, 228, 154, 7, 234, 99, 56,
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* Creates a _AddSignerAsAuthority_ instruction.
|
|
24
|
+
*
|
|
25
|
+
* Optional accounts that are not provided default to the program ID since
|
|
26
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
27
|
+
*
|
|
28
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
29
|
+
* @param args to provide as instruction data to the program
|
|
30
|
+
*
|
|
31
|
+
* @category Instructions
|
|
32
|
+
* @category AddSignerAsAuthority
|
|
33
|
+
* @category generated
|
|
34
|
+
*/
|
|
35
|
+
export function createAddSignerAsAuthorityInstruction(accounts, args, programId = new web3.PublicKey('SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG')) {
|
|
36
|
+
const [data] = addSignerAsAuthorityStruct.serialize({
|
|
37
|
+
instructionDiscriminator: addSignerAsAuthorityInstructionDiscriminator,
|
|
38
|
+
...args,
|
|
39
|
+
});
|
|
40
|
+
const keys = [
|
|
41
|
+
{
|
|
42
|
+
pubkey: accounts.settings,
|
|
43
|
+
isWritable: true,
|
|
44
|
+
isSigner: false,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
pubkey: accounts.settingsAuthority,
|
|
48
|
+
isWritable: false,
|
|
49
|
+
isSigner: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
pubkey: accounts.rentPayer ?? programId,
|
|
53
|
+
isWritable: accounts.rentPayer != null,
|
|
54
|
+
isSigner: accounts.rentPayer != null,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
pubkey: accounts.systemProgram ?? programId,
|
|
58
|
+
isWritable: false,
|
|
59
|
+
isSigner: false,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
pubkey: accounts.program,
|
|
63
|
+
isWritable: false,
|
|
64
|
+
isSigner: false,
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
68
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
69
|
+
keys.push(acc);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const ix = new web3.TransactionInstruction({
|
|
73
|
+
programId,
|
|
74
|
+
keys,
|
|
75
|
+
data,
|
|
76
|
+
});
|
|
77
|
+
return ix;
|
|
78
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { AddSpendingLimitArgs } from '../types/AddSpendingLimitArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category AddSpendingLimitAsAuthority
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export type AddSpendingLimitAsAuthorityInstructionArgs = {
|
|
16
|
+
args: AddSpendingLimitArgs;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category AddSpendingLimitAsAuthority
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const addSpendingLimitAsAuthorityStruct: beet.FixableBeetArgsStruct<AddSpendingLimitAsAuthorityInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _addSpendingLimitAsAuthority_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [] settings
|
|
30
|
+
* @property [**signer**] settingsAuthority
|
|
31
|
+
* @property [_writable_] spendingLimit
|
|
32
|
+
* @property [_writable_, **signer**] rentPayer
|
|
33
|
+
* @property [] program
|
|
34
|
+
* @category Instructions
|
|
35
|
+
* @category AddSpendingLimitAsAuthority
|
|
36
|
+
* @category generated
|
|
37
|
+
*/
|
|
38
|
+
export type AddSpendingLimitAsAuthorityInstructionAccounts = {
|
|
39
|
+
settings: web3.PublicKey;
|
|
40
|
+
settingsAuthority: web3.PublicKey;
|
|
41
|
+
spendingLimit: web3.PublicKey;
|
|
42
|
+
rentPayer: web3.PublicKey;
|
|
43
|
+
systemProgram?: web3.PublicKey;
|
|
44
|
+
program: web3.PublicKey;
|
|
45
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
+
};
|
|
47
|
+
export declare const addSpendingLimitAsAuthorityInstructionDiscriminator: number[];
|
|
48
|
+
/**
|
|
49
|
+
* Creates a _AddSpendingLimitAsAuthority_ instruction.
|
|
50
|
+
*
|
|
51
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
52
|
+
* @param args to provide as instruction data to the program
|
|
53
|
+
*
|
|
54
|
+
* @category Instructions
|
|
55
|
+
* @category AddSpendingLimitAsAuthority
|
|
56
|
+
* @category generated
|
|
57
|
+
*/
|
|
58
|
+
export declare function createAddSpendingLimitAsAuthorityInstruction(accounts: AddSpendingLimitAsAuthorityInstructionAccounts, args: AddSpendingLimitAsAuthorityInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { addSpendingLimitArgsBeet, } from '../types/AddSpendingLimitArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category AddSpendingLimitAsAuthority
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export const addSpendingLimitAsAuthorityStruct = new beet.FixableBeetArgsStruct([
|
|
16
|
+
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
17
|
+
['args', addSpendingLimitArgsBeet],
|
|
18
|
+
], 'AddSpendingLimitAsAuthorityInstructionArgs');
|
|
19
|
+
export const addSpendingLimitAsAuthorityInstructionDiscriminator = [
|
|
20
|
+
169, 189, 84, 54, 30, 244, 223, 212,
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* Creates a _AddSpendingLimitAsAuthority_ instruction.
|
|
24
|
+
*
|
|
25
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
26
|
+
* @param args to provide as instruction data to the program
|
|
27
|
+
*
|
|
28
|
+
* @category Instructions
|
|
29
|
+
* @category AddSpendingLimitAsAuthority
|
|
30
|
+
* @category generated
|
|
31
|
+
*/
|
|
32
|
+
export function createAddSpendingLimitAsAuthorityInstruction(accounts, args, programId = new web3.PublicKey('SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG')) {
|
|
33
|
+
const [data] = addSpendingLimitAsAuthorityStruct.serialize({
|
|
34
|
+
instructionDiscriminator: addSpendingLimitAsAuthorityInstructionDiscriminator,
|
|
35
|
+
...args,
|
|
36
|
+
});
|
|
37
|
+
const keys = [
|
|
38
|
+
{
|
|
39
|
+
pubkey: accounts.settings,
|
|
40
|
+
isWritable: false,
|
|
41
|
+
isSigner: false,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
pubkey: accounts.settingsAuthority,
|
|
45
|
+
isWritable: false,
|
|
46
|
+
isSigner: true,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
pubkey: accounts.spendingLimit,
|
|
50
|
+
isWritable: true,
|
|
51
|
+
isSigner: false,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
pubkey: accounts.rentPayer,
|
|
55
|
+
isWritable: true,
|
|
56
|
+
isSigner: true,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
pubkey: accounts.systemProgram ?? web3.SystemProgram.programId,
|
|
60
|
+
isWritable: false,
|
|
61
|
+
isSigner: false,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
pubkey: accounts.program,
|
|
65
|
+
isWritable: false,
|
|
66
|
+
isSigner: false,
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
70
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
71
|
+
keys.push(acc);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const ix = new web3.TransactionInstruction({
|
|
75
|
+
programId,
|
|
76
|
+
keys,
|
|
77
|
+
data,
|
|
78
|
+
});
|
|
79
|
+
return ix;
|
|
80
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { AddTransactionToBatchArgs } from '../types/AddTransactionToBatchArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category AddTransactionToBatch
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export type AddTransactionToBatchInstructionArgs = {
|
|
16
|
+
args: AddTransactionToBatchArgs;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category AddTransactionToBatch
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const addTransactionToBatchStruct: beet.FixableBeetArgsStruct<AddTransactionToBatchInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _addTransactionToBatch_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [] settings
|
|
30
|
+
* @property [] proposal
|
|
31
|
+
* @property [_writable_] batch
|
|
32
|
+
* @property [_writable_] transaction
|
|
33
|
+
* @property [**signer**] signer
|
|
34
|
+
* @property [_writable_, **signer**] rentPayer
|
|
35
|
+
* @category Instructions
|
|
36
|
+
* @category AddTransactionToBatch
|
|
37
|
+
* @category generated
|
|
38
|
+
*/
|
|
39
|
+
export type AddTransactionToBatchInstructionAccounts = {
|
|
40
|
+
settings: web3.PublicKey;
|
|
41
|
+
proposal: web3.PublicKey;
|
|
42
|
+
batch: web3.PublicKey;
|
|
43
|
+
transaction: web3.PublicKey;
|
|
44
|
+
signer: web3.PublicKey;
|
|
45
|
+
rentPayer: web3.PublicKey;
|
|
46
|
+
systemProgram?: web3.PublicKey;
|
|
47
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
48
|
+
};
|
|
49
|
+
export declare const addTransactionToBatchInstructionDiscriminator: number[];
|
|
50
|
+
/**
|
|
51
|
+
* Creates a _AddTransactionToBatch_ instruction.
|
|
52
|
+
*
|
|
53
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
54
|
+
* @param args to provide as instruction data to the program
|
|
55
|
+
*
|
|
56
|
+
* @category Instructions
|
|
57
|
+
* @category AddTransactionToBatch
|
|
58
|
+
* @category generated
|
|
59
|
+
*/
|
|
60
|
+
export declare function createAddTransactionToBatchInstruction(accounts: AddTransactionToBatchInstructionAccounts, args: AddTransactionToBatchInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { addTransactionToBatchArgsBeet, } from '../types/AddTransactionToBatchArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category AddTransactionToBatch
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export const addTransactionToBatchStruct = new beet.FixableBeetArgsStruct([
|
|
16
|
+
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
17
|
+
['args', addTransactionToBatchArgsBeet],
|
|
18
|
+
], 'AddTransactionToBatchInstructionArgs');
|
|
19
|
+
export const addTransactionToBatchInstructionDiscriminator = [
|
|
20
|
+
147, 75, 197, 227, 20, 149, 150, 113,
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* Creates a _AddTransactionToBatch_ instruction.
|
|
24
|
+
*
|
|
25
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
26
|
+
* @param args to provide as instruction data to the program
|
|
27
|
+
*
|
|
28
|
+
* @category Instructions
|
|
29
|
+
* @category AddTransactionToBatch
|
|
30
|
+
* @category generated
|
|
31
|
+
*/
|
|
32
|
+
export function createAddTransactionToBatchInstruction(accounts, args, programId = new web3.PublicKey('SMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG')) {
|
|
33
|
+
const [data] = addTransactionToBatchStruct.serialize({
|
|
34
|
+
instructionDiscriminator: addTransactionToBatchInstructionDiscriminator,
|
|
35
|
+
...args,
|
|
36
|
+
});
|
|
37
|
+
const keys = [
|
|
38
|
+
{
|
|
39
|
+
pubkey: accounts.settings,
|
|
40
|
+
isWritable: false,
|
|
41
|
+
isSigner: false,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
pubkey: accounts.proposal,
|
|
45
|
+
isWritable: false,
|
|
46
|
+
isSigner: false,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
pubkey: accounts.batch,
|
|
50
|
+
isWritable: true,
|
|
51
|
+
isSigner: false,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
pubkey: accounts.transaction,
|
|
55
|
+
isWritable: true,
|
|
56
|
+
isSigner: false,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
pubkey: accounts.signer,
|
|
60
|
+
isWritable: false,
|
|
61
|
+
isSigner: true,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
pubkey: accounts.rentPayer,
|
|
65
|
+
isWritable: true,
|
|
66
|
+
isSigner: true,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
pubkey: accounts.systemProgram ?? web3.SystemProgram.programId,
|
|
70
|
+
isWritable: false,
|
|
71
|
+
isSigner: false,
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
75
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
76
|
+
keys.push(acc);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const ix = new web3.TransactionInstruction({
|
|
80
|
+
programId,
|
|
81
|
+
keys,
|
|
82
|
+
data,
|
|
83
|
+
});
|
|
84
|
+
return ix;
|
|
85
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { VoteOnProposalArgs } from '../types/VoteOnProposalArgs';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category ApproveProposal
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export type ApproveProposalInstructionArgs = {
|
|
16
|
+
args: VoteOnProposalArgs;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category ApproveProposal
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const approveProposalStruct: beet.FixableBeetArgsStruct<ApproveProposalInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _approveProposal_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [] consensusAccount
|
|
30
|
+
* @property [_writable_, **signer**] signer
|
|
31
|
+
* @property [_writable_] proposal
|
|
32
|
+
* @property [] program
|
|
33
|
+
* @category Instructions
|
|
34
|
+
* @category ApproveProposal
|
|
35
|
+
* @category generated
|
|
36
|
+
*/
|
|
37
|
+
export type ApproveProposalInstructionAccounts = {
|
|
38
|
+
consensusAccount: web3.PublicKey;
|
|
39
|
+
signer: web3.PublicKey;
|
|
40
|
+
proposal: web3.PublicKey;
|
|
41
|
+
systemProgram?: web3.PublicKey;
|
|
42
|
+
program: web3.PublicKey;
|
|
43
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
44
|
+
};
|
|
45
|
+
export declare const approveProposalInstructionDiscriminator: number[];
|
|
46
|
+
/**
|
|
47
|
+
* Creates a _ApproveProposal_ instruction.
|
|
48
|
+
*
|
|
49
|
+
* Optional accounts that are not provided default to the program ID since
|
|
50
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
51
|
+
*
|
|
52
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
53
|
+
* @param args to provide as instruction data to the program
|
|
54
|
+
*
|
|
55
|
+
* @category Instructions
|
|
56
|
+
* @category ApproveProposal
|
|
57
|
+
* @category generated
|
|
58
|
+
*/
|
|
59
|
+
export declare function createApproveProposalInstruction(accounts: ApproveProposalInstructionAccounts, args: ApproveProposalInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|