@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,75 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* This type is used to derive the {@link ProposalStatus} type as well as the de/serializer.
|
|
10
|
+
* However don't refer to it in your code but use the {@link ProposalStatus} type instead.
|
|
11
|
+
*
|
|
12
|
+
* @category userTypes
|
|
13
|
+
* @category enums
|
|
14
|
+
* @category generated
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
export type ProposalStatusRecord = {
|
|
18
|
+
Draft: {
|
|
19
|
+
timestamp: beet.bignum;
|
|
20
|
+
};
|
|
21
|
+
Active: {
|
|
22
|
+
timestamp: beet.bignum;
|
|
23
|
+
};
|
|
24
|
+
Rejected: {
|
|
25
|
+
timestamp: beet.bignum;
|
|
26
|
+
};
|
|
27
|
+
Approved: {
|
|
28
|
+
timestamp: beet.bignum;
|
|
29
|
+
};
|
|
30
|
+
Executing: void;
|
|
31
|
+
Executed: {
|
|
32
|
+
timestamp: beet.bignum;
|
|
33
|
+
};
|
|
34
|
+
Cancelled: {
|
|
35
|
+
timestamp: beet.bignum;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Union type respresenting the ProposalStatus data enum defined in Rust.
|
|
40
|
+
*
|
|
41
|
+
* NOTE: that it includes a `__kind` property which allows to narrow types in
|
|
42
|
+
* switch/if statements.
|
|
43
|
+
* Additionally `isProposalStatus*` type guards are exposed below to narrow to a specific variant.
|
|
44
|
+
*
|
|
45
|
+
* @category userTypes
|
|
46
|
+
* @category enums
|
|
47
|
+
* @category generated
|
|
48
|
+
*/
|
|
49
|
+
export type ProposalStatus = beet.DataEnumKeyAsKind<ProposalStatusRecord>;
|
|
50
|
+
export declare const isProposalStatusDraft: (x: ProposalStatus) => x is ProposalStatus & {
|
|
51
|
+
__kind: "Draft";
|
|
52
|
+
};
|
|
53
|
+
export declare const isProposalStatusActive: (x: ProposalStatus) => x is ProposalStatus & {
|
|
54
|
+
__kind: "Active";
|
|
55
|
+
};
|
|
56
|
+
export declare const isProposalStatusRejected: (x: ProposalStatus) => x is ProposalStatus & {
|
|
57
|
+
__kind: "Rejected";
|
|
58
|
+
};
|
|
59
|
+
export declare const isProposalStatusApproved: (x: ProposalStatus) => x is ProposalStatus & {
|
|
60
|
+
__kind: "Approved";
|
|
61
|
+
};
|
|
62
|
+
export declare const isProposalStatusExecuting: (x: ProposalStatus) => x is ProposalStatus & {
|
|
63
|
+
__kind: "Executing";
|
|
64
|
+
};
|
|
65
|
+
export declare const isProposalStatusExecuted: (x: ProposalStatus) => x is ProposalStatus & {
|
|
66
|
+
__kind: "Executed";
|
|
67
|
+
};
|
|
68
|
+
export declare const isProposalStatusCancelled: (x: ProposalStatus) => x is ProposalStatus & {
|
|
69
|
+
__kind: "Cancelled";
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* @category userTypes
|
|
73
|
+
* @category generated
|
|
74
|
+
*/
|
|
75
|
+
export declare const proposalStatusBeet: beet.FixableBeet<ProposalStatus, ProposalStatus>;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
export const isProposalStatusDraft = (x) => x.__kind === 'Draft';
|
|
9
|
+
export const isProposalStatusActive = (x) => x.__kind === 'Active';
|
|
10
|
+
export const isProposalStatusRejected = (x) => x.__kind === 'Rejected';
|
|
11
|
+
export const isProposalStatusApproved = (x) => x.__kind === 'Approved';
|
|
12
|
+
export const isProposalStatusExecuting = (x) => x.__kind === 'Executing';
|
|
13
|
+
export const isProposalStatusExecuted = (x) => x.__kind === 'Executed';
|
|
14
|
+
export const isProposalStatusCancelled = (x) => x.__kind === 'Cancelled';
|
|
15
|
+
/**
|
|
16
|
+
* @category userTypes
|
|
17
|
+
* @category generated
|
|
18
|
+
*/
|
|
19
|
+
export const proposalStatusBeet = beet.dataEnum([
|
|
20
|
+
[
|
|
21
|
+
'Draft',
|
|
22
|
+
new beet.BeetArgsStruct([['timestamp', beet.i64]], 'ProposalStatusRecord["Draft"]'),
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
'Active',
|
|
26
|
+
new beet.BeetArgsStruct([['timestamp', beet.i64]], 'ProposalStatusRecord["Active"]'),
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
'Rejected',
|
|
30
|
+
new beet.BeetArgsStruct([['timestamp', beet.i64]], 'ProposalStatusRecord["Rejected"]'),
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
'Approved',
|
|
34
|
+
new beet.BeetArgsStruct([['timestamp', beet.i64]], 'ProposalStatusRecord["Approved"]'),
|
|
35
|
+
],
|
|
36
|
+
['Executing', beet.unit],
|
|
37
|
+
[
|
|
38
|
+
'Executed',
|
|
39
|
+
new beet.BeetArgsStruct([['timestamp', beet.i64]], 'ProposalStatusRecord["Executed"]'),
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
'Cancelled',
|
|
43
|
+
new beet.BeetArgsStruct([['timestamp', beet.i64]], 'ProposalStatusRecord["Cancelled"]'),
|
|
44
|
+
],
|
|
45
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export type QuantityConstraints = {
|
|
9
|
+
maxPerPeriod: beet.bignum;
|
|
10
|
+
maxPerUse: beet.bignum;
|
|
11
|
+
enforceExactQuantity: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const quantityConstraintsBeet: beet.BeetArgsStruct<QuantityConstraints>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* @category userTypes
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export const quantityConstraintsBeet = new beet.BeetArgsStruct([
|
|
13
|
+
['maxPerPeriod', beet.u64],
|
|
14
|
+
['maxPerUse', beet.u64],
|
|
15
|
+
['enforceExactQuantity', beet.bool],
|
|
16
|
+
], 'QuantityConstraints');
|
|
@@ -0,0 +1,17 @@
|
|
|
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 web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
export type RemoveSignerArgs = {
|
|
10
|
+
oldSigner: web3.PublicKey;
|
|
11
|
+
memo: beet.COption<string>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const removeSignerArgsBeet: beet.FixableBeetArgsStruct<RemoveSignerArgs>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 beetSolana from '@metaplex-foundation/beet-solana';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const removeSignerArgsBeet = new beet.FixableBeetArgsStruct([
|
|
14
|
+
['oldSigner', beetSolana.publicKey],
|
|
15
|
+
['memo', beet.coption(beet.utf8String)],
|
|
16
|
+
], 'RemoveSignerArgs');
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export type RemoveSpendingLimitArgs = {
|
|
9
|
+
memo: beet.COption<string>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @category userTypes
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export declare const removeSpendingLimitArgsBeet: beet.FixableBeetArgsStruct<RemoveSpendingLimitArgs>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* @category userTypes
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export const removeSpendingLimitArgsBeet = new beet.FixableBeetArgsStruct([['memo', beet.coption(beet.utf8String)]], 'RemoveSpendingLimitArgs');
|
|
@@ -0,0 +1,17 @@
|
|
|
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 web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
export type SetArchivalAuthorityArgs = {
|
|
10
|
+
newArchivalAuthority: beet.COption<web3.PublicKey>;
|
|
11
|
+
memo: beet.COption<string>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const setArchivalAuthorityArgsBeet: beet.FixableBeetArgsStruct<SetArchivalAuthorityArgs>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 beetSolana from '@metaplex-foundation/beet-solana';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const setArchivalAuthorityArgsBeet = new beet.FixableBeetArgsStruct([
|
|
14
|
+
['newArchivalAuthority', beet.coption(beetSolana.publicKey)],
|
|
15
|
+
['memo', beet.coption(beet.utf8String)],
|
|
16
|
+
], 'SetArchivalAuthorityArgs');
|
|
@@ -0,0 +1,17 @@
|
|
|
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 web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
export type SetNewSettingsAuthorityArgs = {
|
|
10
|
+
newSettingsAuthority: web3.PublicKey;
|
|
11
|
+
memo: beet.COption<string>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const setNewSettingsAuthorityArgsBeet: beet.FixableBeetArgsStruct<SetNewSettingsAuthorityArgs>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 beetSolana from '@metaplex-foundation/beet-solana';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const setNewSettingsAuthorityArgsBeet = new beet.FixableBeetArgsStruct([
|
|
14
|
+
['newSettingsAuthority', beetSolana.publicKey],
|
|
15
|
+
['memo', beet.coption(beet.utf8String)],
|
|
16
|
+
], 'SetNewSettingsAuthorityArgs');
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export type SetTimeLockArgs = {
|
|
9
|
+
timeLock: number;
|
|
10
|
+
memo: beet.COption<string>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @category userTypes
|
|
14
|
+
* @category generated
|
|
15
|
+
*/
|
|
16
|
+
export declare const setTimeLockArgsBeet: beet.FixableBeetArgsStruct<SetTimeLockArgs>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* @category userTypes
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export const setTimeLockArgsBeet = new beet.FixableBeetArgsStruct([
|
|
13
|
+
['timeLock', beet.u32],
|
|
14
|
+
['memo', beet.coption(beet.utf8String)],
|
|
15
|
+
], 'SetTimeLockArgs');
|
|
@@ -0,0 +1,118 @@
|
|
|
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 web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
import { SmartAccountSigner } from './SmartAccountSigner';
|
|
10
|
+
import { Period } from './Period';
|
|
11
|
+
import { PolicyCreationPayload } from './PolicyCreationPayload';
|
|
12
|
+
import { PolicyExpirationArgs } from './PolicyExpirationArgs';
|
|
13
|
+
/**
|
|
14
|
+
* This type is used to derive the {@link SettingsAction} type as well as the de/serializer.
|
|
15
|
+
* However don't refer to it in your code but use the {@link SettingsAction} type instead.
|
|
16
|
+
*
|
|
17
|
+
* @category userTypes
|
|
18
|
+
* @category enums
|
|
19
|
+
* @category generated
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
export type SettingsActionRecord = {
|
|
23
|
+
AddSigner: {
|
|
24
|
+
newSigner: SmartAccountSigner;
|
|
25
|
+
};
|
|
26
|
+
RemoveSigner: {
|
|
27
|
+
oldSigner: web3.PublicKey;
|
|
28
|
+
};
|
|
29
|
+
ChangeThreshold: {
|
|
30
|
+
newThreshold: number;
|
|
31
|
+
};
|
|
32
|
+
SetTimeLock: {
|
|
33
|
+
newTimeLock: number;
|
|
34
|
+
};
|
|
35
|
+
AddSpendingLimit: {
|
|
36
|
+
seed: web3.PublicKey;
|
|
37
|
+
accountIndex: number;
|
|
38
|
+
mint: web3.PublicKey;
|
|
39
|
+
amount: beet.bignum;
|
|
40
|
+
period: Period;
|
|
41
|
+
signers: web3.PublicKey[];
|
|
42
|
+
destinations: web3.PublicKey[];
|
|
43
|
+
expiration: beet.bignum;
|
|
44
|
+
};
|
|
45
|
+
RemoveSpendingLimit: {
|
|
46
|
+
spendingLimit: web3.PublicKey;
|
|
47
|
+
};
|
|
48
|
+
SetArchivalAuthority: {
|
|
49
|
+
newArchivalAuthority: beet.COption<web3.PublicKey>;
|
|
50
|
+
};
|
|
51
|
+
PolicyCreate: {
|
|
52
|
+
seed: beet.bignum;
|
|
53
|
+
policyCreationPayload: PolicyCreationPayload;
|
|
54
|
+
signers: SmartAccountSigner[];
|
|
55
|
+
threshold: number;
|
|
56
|
+
timeLock: number;
|
|
57
|
+
startTimestamp: beet.COption<beet.bignum>;
|
|
58
|
+
expirationArgs: beet.COption<PolicyExpirationArgs>;
|
|
59
|
+
};
|
|
60
|
+
PolicyUpdate: {
|
|
61
|
+
policy: web3.PublicKey;
|
|
62
|
+
signers: SmartAccountSigner[];
|
|
63
|
+
threshold: number;
|
|
64
|
+
timeLock: number;
|
|
65
|
+
policyUpdatePayload: PolicyCreationPayload;
|
|
66
|
+
expirationArgs: beet.COption<PolicyExpirationArgs>;
|
|
67
|
+
};
|
|
68
|
+
PolicyRemove: {
|
|
69
|
+
policy: web3.PublicKey;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Union type respresenting the SettingsAction data enum defined in Rust.
|
|
74
|
+
*
|
|
75
|
+
* NOTE: that it includes a `__kind` property which allows to narrow types in
|
|
76
|
+
* switch/if statements.
|
|
77
|
+
* Additionally `isSettingsAction*` type guards are exposed below to narrow to a specific variant.
|
|
78
|
+
*
|
|
79
|
+
* @category userTypes
|
|
80
|
+
* @category enums
|
|
81
|
+
* @category generated
|
|
82
|
+
*/
|
|
83
|
+
export type SettingsAction = beet.DataEnumKeyAsKind<SettingsActionRecord>;
|
|
84
|
+
export declare const isSettingsActionAddSigner: (x: SettingsAction) => x is SettingsAction & {
|
|
85
|
+
__kind: "AddSigner";
|
|
86
|
+
};
|
|
87
|
+
export declare const isSettingsActionRemoveSigner: (x: SettingsAction) => x is SettingsAction & {
|
|
88
|
+
__kind: "RemoveSigner";
|
|
89
|
+
};
|
|
90
|
+
export declare const isSettingsActionChangeThreshold: (x: SettingsAction) => x is SettingsAction & {
|
|
91
|
+
__kind: "ChangeThreshold";
|
|
92
|
+
};
|
|
93
|
+
export declare const isSettingsActionSetTimeLock: (x: SettingsAction) => x is SettingsAction & {
|
|
94
|
+
__kind: "SetTimeLock";
|
|
95
|
+
};
|
|
96
|
+
export declare const isSettingsActionAddSpendingLimit: (x: SettingsAction) => x is SettingsAction & {
|
|
97
|
+
__kind: "AddSpendingLimit";
|
|
98
|
+
};
|
|
99
|
+
export declare const isSettingsActionRemoveSpendingLimit: (x: SettingsAction) => x is SettingsAction & {
|
|
100
|
+
__kind: "RemoveSpendingLimit";
|
|
101
|
+
};
|
|
102
|
+
export declare const isSettingsActionSetArchivalAuthority: (x: SettingsAction) => x is SettingsAction & {
|
|
103
|
+
__kind: "SetArchivalAuthority";
|
|
104
|
+
};
|
|
105
|
+
export declare const isSettingsActionPolicyCreate: (x: SettingsAction) => x is SettingsAction & {
|
|
106
|
+
__kind: "PolicyCreate";
|
|
107
|
+
};
|
|
108
|
+
export declare const isSettingsActionPolicyUpdate: (x: SettingsAction) => x is SettingsAction & {
|
|
109
|
+
__kind: "PolicyUpdate";
|
|
110
|
+
};
|
|
111
|
+
export declare const isSettingsActionPolicyRemove: (x: SettingsAction) => x is SettingsAction & {
|
|
112
|
+
__kind: "PolicyRemove";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* @category userTypes
|
|
116
|
+
* @category generated
|
|
117
|
+
*/
|
|
118
|
+
export declare const settingsActionBeet: beet.FixableBeet<SettingsAction, SettingsAction>;
|
|
@@ -0,0 +1,92 @@
|
|
|
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 beetSolana from '@metaplex-foundation/beet-solana';
|
|
9
|
+
import { smartAccountSignerBeet, } from './SmartAccountSigner';
|
|
10
|
+
import { periodBeet } from './Period';
|
|
11
|
+
import { policyCreationPayloadBeet, } from './PolicyCreationPayload';
|
|
12
|
+
import { policyExpirationArgsBeet, } from './PolicyExpirationArgs';
|
|
13
|
+
export const isSettingsActionAddSigner = (x) => x.__kind === 'AddSigner';
|
|
14
|
+
export const isSettingsActionRemoveSigner = (x) => x.__kind === 'RemoveSigner';
|
|
15
|
+
export const isSettingsActionChangeThreshold = (x) => x.__kind === 'ChangeThreshold';
|
|
16
|
+
export const isSettingsActionSetTimeLock = (x) => x.__kind === 'SetTimeLock';
|
|
17
|
+
export const isSettingsActionAddSpendingLimit = (x) => x.__kind === 'AddSpendingLimit';
|
|
18
|
+
export const isSettingsActionRemoveSpendingLimit = (x) => x.__kind === 'RemoveSpendingLimit';
|
|
19
|
+
export const isSettingsActionSetArchivalAuthority = (x) => x.__kind === 'SetArchivalAuthority';
|
|
20
|
+
export const isSettingsActionPolicyCreate = (x) => x.__kind === 'PolicyCreate';
|
|
21
|
+
export const isSettingsActionPolicyUpdate = (x) => x.__kind === 'PolicyUpdate';
|
|
22
|
+
export const isSettingsActionPolicyRemove = (x) => x.__kind === 'PolicyRemove';
|
|
23
|
+
/**
|
|
24
|
+
* @category userTypes
|
|
25
|
+
* @category generated
|
|
26
|
+
*/
|
|
27
|
+
export const settingsActionBeet = beet.dataEnum([
|
|
28
|
+
[
|
|
29
|
+
'AddSigner',
|
|
30
|
+
new beet.BeetArgsStruct([['newSigner', smartAccountSignerBeet]], 'SettingsActionRecord["AddSigner"]'),
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
'RemoveSigner',
|
|
34
|
+
new beet.BeetArgsStruct([['oldSigner', beetSolana.publicKey]], 'SettingsActionRecord["RemoveSigner"]'),
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
'ChangeThreshold',
|
|
38
|
+
new beet.BeetArgsStruct([['newThreshold', beet.u16]], 'SettingsActionRecord["ChangeThreshold"]'),
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
'SetTimeLock',
|
|
42
|
+
new beet.BeetArgsStruct([['newTimeLock', beet.u32]], 'SettingsActionRecord["SetTimeLock"]'),
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
'AddSpendingLimit',
|
|
46
|
+
new beet.FixableBeetArgsStruct([
|
|
47
|
+
['seed', beetSolana.publicKey],
|
|
48
|
+
['accountIndex', beet.u8],
|
|
49
|
+
['mint', beetSolana.publicKey],
|
|
50
|
+
['amount', beet.u64],
|
|
51
|
+
['period', periodBeet],
|
|
52
|
+
['signers', beet.array(beetSolana.publicKey)],
|
|
53
|
+
['destinations', beet.array(beetSolana.publicKey)],
|
|
54
|
+
['expiration', beet.i64],
|
|
55
|
+
], 'SettingsActionRecord["AddSpendingLimit"]'),
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
'RemoveSpendingLimit',
|
|
59
|
+
new beet.BeetArgsStruct([['spendingLimit', beetSolana.publicKey]], 'SettingsActionRecord["RemoveSpendingLimit"]'),
|
|
60
|
+
],
|
|
61
|
+
[
|
|
62
|
+
'SetArchivalAuthority',
|
|
63
|
+
new beet.FixableBeetArgsStruct([['newArchivalAuthority', beet.coption(beetSolana.publicKey)]], 'SettingsActionRecord["SetArchivalAuthority"]'),
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
'PolicyCreate',
|
|
67
|
+
new beet.FixableBeetArgsStruct([
|
|
68
|
+
['seed', beet.u64],
|
|
69
|
+
['policyCreationPayload', policyCreationPayloadBeet],
|
|
70
|
+
['signers', beet.array(smartAccountSignerBeet)],
|
|
71
|
+
['threshold', beet.u16],
|
|
72
|
+
['timeLock', beet.u32],
|
|
73
|
+
['startTimestamp', beet.coption(beet.i64)],
|
|
74
|
+
['expirationArgs', beet.coption(policyExpirationArgsBeet)],
|
|
75
|
+
], 'SettingsActionRecord["PolicyCreate"]'),
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
'PolicyUpdate',
|
|
79
|
+
new beet.FixableBeetArgsStruct([
|
|
80
|
+
['policy', beetSolana.publicKey],
|
|
81
|
+
['signers', beet.array(smartAccountSignerBeet)],
|
|
82
|
+
['threshold', beet.u16],
|
|
83
|
+
['timeLock', beet.u32],
|
|
84
|
+
['policyUpdatePayload', policyCreationPayloadBeet],
|
|
85
|
+
['expirationArgs', beet.coption(policyExpirationArgsBeet)],
|
|
86
|
+
], 'SettingsActionRecord["PolicyUpdate"]'),
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
'PolicyRemove',
|
|
90
|
+
new beet.BeetArgsStruct([['policy', beetSolana.publicKey]], 'SettingsActionRecord["PolicyRemove"]'),
|
|
91
|
+
],
|
|
92
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { LimitedSettingsAction } from './LimitedSettingsAction';
|
|
9
|
+
export type SettingsChangePayload = {
|
|
10
|
+
actionIndex: Uint8Array;
|
|
11
|
+
actions: LimitedSettingsAction[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const settingsChangePayloadBeet: beet.FixableBeetArgsStruct<SettingsChangePayload>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { limitedSettingsActionBeet, } from './LimitedSettingsAction';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const settingsChangePayloadBeet = new beet.FixableBeetArgsStruct([
|
|
14
|
+
['actionIndex', beet.bytes],
|
|
15
|
+
['actions', beet.array(limitedSettingsActionBeet)],
|
|
16
|
+
], 'SettingsChangePayload');
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { AllowedSettingsChange } from './AllowedSettingsChange';
|
|
9
|
+
export type SettingsChangePolicy = {
|
|
10
|
+
actions: AllowedSettingsChange[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @category userTypes
|
|
14
|
+
* @category generated
|
|
15
|
+
*/
|
|
16
|
+
export declare const settingsChangePolicyBeet: beet.FixableBeetArgsStruct<SettingsChangePolicy>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { allowedSettingsChangeBeet, } from './AllowedSettingsChange';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const settingsChangePolicyBeet = new beet.FixableBeetArgsStruct([['actions', beet.array(allowedSettingsChangeBeet)]], 'SettingsChangePolicy');
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { AllowedSettingsChange } from './AllowedSettingsChange';
|
|
9
|
+
export type SettingsChangePolicyCreationPayload = {
|
|
10
|
+
actions: AllowedSettingsChange[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @category userTypes
|
|
14
|
+
* @category generated
|
|
15
|
+
*/
|
|
16
|
+
export declare const settingsChangePolicyCreationPayloadBeet: beet.FixableBeetArgsStruct<SettingsChangePolicyCreationPayload>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { allowedSettingsChangeBeet, } from './AllowedSettingsChange';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const settingsChangePolicyCreationPayloadBeet = new beet.FixableBeetArgsStruct([['actions', beet.array(allowedSettingsChangeBeet)]], 'SettingsChangePolicyCreationPayload');
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export type SmartAccountCompiledInstruction = {
|
|
9
|
+
programIdIndex: number;
|
|
10
|
+
accountIndexes: Uint8Array;
|
|
11
|
+
data: Uint8Array;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const smartAccountCompiledInstructionBeet: beet.FixableBeetArgsStruct<SmartAccountCompiledInstruction>;
|