@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,18 @@
|
|
|
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 { PeriodV2 } from './PeriodV2';
|
|
9
|
+
export type LimitedTimeConstraints = {
|
|
10
|
+
start: beet.bignum;
|
|
11
|
+
expiration: beet.COption<beet.bignum>;
|
|
12
|
+
period: PeriodV2;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @category userTypes
|
|
16
|
+
* @category generated
|
|
17
|
+
*/
|
|
18
|
+
export declare const limitedTimeConstraintsBeet: beet.FixableBeetArgsStruct<LimitedTimeConstraints>;
|
|
@@ -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 { periodV2Beet } from './PeriodV2';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const limitedTimeConstraintsBeet = new beet.FixableBeetArgsStruct([
|
|
14
|
+
['start', beet.i64],
|
|
15
|
+
['expiration', beet.coption(beet.i64)],
|
|
16
|
+
['period', periodV2Beet],
|
|
17
|
+
], 'LimitedTimeConstraints');
|
|
@@ -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 LogEventArgs = {
|
|
9
|
+
accountSeeds: Uint8Array[];
|
|
10
|
+
bump: number;
|
|
11
|
+
event: Uint8Array;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export declare const logEventArgsBeet: beet.FixableBeetArgsStruct<LogEventArgs>;
|
|
@@ -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 logEventArgsBeet = new beet.FixableBeetArgsStruct([
|
|
13
|
+
['accountSeeds', beet.array(beet.bytes)],
|
|
14
|
+
['bump', beet.u8],
|
|
15
|
+
['event', beet.bytes],
|
|
16
|
+
], 'LogEventArgs');
|
|
@@ -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 LogEventArgsV2 = {
|
|
9
|
+
event: Uint8Array;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @category userTypes
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export declare const logEventArgsV2Beet: beet.FixableBeetArgsStruct<LogEventArgsV2>;
|
|
@@ -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 logEventArgsV2Beet = new beet.FixableBeetArgsStruct([['event', beet.bytes]], 'LogEventArgsV2');
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { TransactionPayloadDetails } from './TransactionPayloadDetails';
|
|
9
|
+
import { PolicyActionPayloadDetails } from './PolicyActionPayloadDetails';
|
|
10
|
+
/**
|
|
11
|
+
* This type is used to derive the {@link Payload} type as well as the de/serializer.
|
|
12
|
+
* However don't refer to it in your code but use the {@link Payload} type instead.
|
|
13
|
+
*
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category enums
|
|
16
|
+
* @category generated
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
export type PayloadRecord = {
|
|
20
|
+
TransactionPayload: {
|
|
21
|
+
fields: [TransactionPayloadDetails];
|
|
22
|
+
};
|
|
23
|
+
PolicyPayload: {
|
|
24
|
+
fields: [PolicyActionPayloadDetails];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Union type respresenting the Payload data enum defined in Rust.
|
|
29
|
+
*
|
|
30
|
+
* NOTE: that it includes a `__kind` property which allows to narrow types in
|
|
31
|
+
* switch/if statements.
|
|
32
|
+
* Additionally `isPayload*` type guards are exposed below to narrow to a specific variant.
|
|
33
|
+
*
|
|
34
|
+
* @category userTypes
|
|
35
|
+
* @category enums
|
|
36
|
+
* @category generated
|
|
37
|
+
*/
|
|
38
|
+
export type Payload = beet.DataEnumKeyAsKind<PayloadRecord>;
|
|
39
|
+
export declare const isPayloadTransactionPayload: (x: Payload) => x is Payload & {
|
|
40
|
+
__kind: "TransactionPayload";
|
|
41
|
+
};
|
|
42
|
+
export declare const isPayloadPolicyPayload: (x: Payload) => x is Payload & {
|
|
43
|
+
__kind: "PolicyPayload";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @category userTypes
|
|
47
|
+
* @category generated
|
|
48
|
+
*/
|
|
49
|
+
export declare const payloadBeet: beet.FixableBeet<Payload, Payload>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { transactionPayloadDetailsBeet, } from './TransactionPayloadDetails';
|
|
9
|
+
import { policyActionPayloadDetailsBeet, } from './PolicyActionPayloadDetails';
|
|
10
|
+
export const isPayloadTransactionPayload = (x) => x.__kind === 'TransactionPayload';
|
|
11
|
+
export const isPayloadPolicyPayload = (x) => x.__kind === 'PolicyPayload';
|
|
12
|
+
/**
|
|
13
|
+
* @category userTypes
|
|
14
|
+
* @category generated
|
|
15
|
+
*/
|
|
16
|
+
export const payloadBeet = beet.dataEnum([
|
|
17
|
+
[
|
|
18
|
+
'TransactionPayload',
|
|
19
|
+
new beet.FixableBeetArgsStruct([['fields', beet.tuple([transactionPayloadDetailsBeet])]], 'PayloadRecord["TransactionPayload"]'),
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
'PolicyPayload',
|
|
23
|
+
new beet.FixableBeetArgsStruct([['fields', beet.tuple([policyActionPayloadDetailsBeet])]], 'PayloadRecord["PolicyPayload"]'),
|
|
24
|
+
],
|
|
25
|
+
]);
|
|
@@ -0,0 +1,22 @@
|
|
|
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 enums
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export declare enum Period {
|
|
13
|
+
OneTime = 0,
|
|
14
|
+
Day = 1,
|
|
15
|
+
Week = 2,
|
|
16
|
+
Month = 3
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @category userTypes
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export declare const periodBeet: beet.FixedSizeBeet<Period, Period>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 enums
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export var Period;
|
|
13
|
+
(function (Period) {
|
|
14
|
+
Period[Period["OneTime"] = 0] = "OneTime";
|
|
15
|
+
Period[Period["Day"] = 1] = "Day";
|
|
16
|
+
Period[Period["Week"] = 2] = "Week";
|
|
17
|
+
Period[Period["Month"] = 3] = "Month";
|
|
18
|
+
})(Period || (Period = {}));
|
|
19
|
+
/**
|
|
20
|
+
* @category userTypes
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export const periodBeet = beet.fixedScalarEnum(Period);
|
|
@@ -0,0 +1,57 @@
|
|
|
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 PeriodV2} type as well as the de/serializer.
|
|
10
|
+
* However don't refer to it in your code but use the {@link PeriodV2} type instead.
|
|
11
|
+
*
|
|
12
|
+
* @category userTypes
|
|
13
|
+
* @category enums
|
|
14
|
+
* @category generated
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
export type PeriodV2Record = {
|
|
18
|
+
OneTime: void;
|
|
19
|
+
Daily: void;
|
|
20
|
+
Weekly: void;
|
|
21
|
+
Monthly: void;
|
|
22
|
+
Custom: {
|
|
23
|
+
fields: [beet.bignum];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Union type respresenting the PeriodV2 data enum defined in Rust.
|
|
28
|
+
*
|
|
29
|
+
* NOTE: that it includes a `__kind` property which allows to narrow types in
|
|
30
|
+
* switch/if statements.
|
|
31
|
+
* Additionally `isPeriodV2*` type guards are exposed below to narrow to a specific variant.
|
|
32
|
+
*
|
|
33
|
+
* @category userTypes
|
|
34
|
+
* @category enums
|
|
35
|
+
* @category generated
|
|
36
|
+
*/
|
|
37
|
+
export type PeriodV2 = beet.DataEnumKeyAsKind<PeriodV2Record>;
|
|
38
|
+
export declare const isPeriodV2OneTime: (x: PeriodV2) => x is PeriodV2 & {
|
|
39
|
+
__kind: "OneTime";
|
|
40
|
+
};
|
|
41
|
+
export declare const isPeriodV2Daily: (x: PeriodV2) => x is PeriodV2 & {
|
|
42
|
+
__kind: "Daily";
|
|
43
|
+
};
|
|
44
|
+
export declare const isPeriodV2Weekly: (x: PeriodV2) => x is PeriodV2 & {
|
|
45
|
+
__kind: "Weekly";
|
|
46
|
+
};
|
|
47
|
+
export declare const isPeriodV2Monthly: (x: PeriodV2) => x is PeriodV2 & {
|
|
48
|
+
__kind: "Monthly";
|
|
49
|
+
};
|
|
50
|
+
export declare const isPeriodV2Custom: (x: PeriodV2) => x is PeriodV2 & {
|
|
51
|
+
__kind: "Custom";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @category userTypes
|
|
55
|
+
* @category generated
|
|
56
|
+
*/
|
|
57
|
+
export declare const periodV2Beet: beet.FixableBeet<PeriodV2, PeriodV2>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 isPeriodV2OneTime = (x) => x.__kind === 'OneTime';
|
|
9
|
+
export const isPeriodV2Daily = (x) => x.__kind === 'Daily';
|
|
10
|
+
export const isPeriodV2Weekly = (x) => x.__kind === 'Weekly';
|
|
11
|
+
export const isPeriodV2Monthly = (x) => x.__kind === 'Monthly';
|
|
12
|
+
export const isPeriodV2Custom = (x) => x.__kind === 'Custom';
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export const periodV2Beet = beet.dataEnum([
|
|
18
|
+
['OneTime', beet.unit],
|
|
19
|
+
['Daily', beet.unit],
|
|
20
|
+
['Weekly', beet.unit],
|
|
21
|
+
['Monthly', beet.unit],
|
|
22
|
+
[
|
|
23
|
+
'Custom',
|
|
24
|
+
new beet.BeetArgsStruct([['fields', beet.fixedSizeTuple([beet.i64])]], 'PeriodV2Record["Custom"]'),
|
|
25
|
+
],
|
|
26
|
+
]);
|
|
@@ -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 Permissions = {
|
|
9
|
+
mask: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @category userTypes
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export declare const permissionsBeet: beet.BeetArgsStruct<Permissions>;
|
|
@@ -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 permissionsBeet = new beet.BeetArgsStruct([['mask', beet.u8]], 'Permissions');
|
|
@@ -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 { PolicyPayload } from './PolicyPayload';
|
|
9
|
+
export type PolicyActionPayloadDetails = {
|
|
10
|
+
payload: PolicyPayload;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @category userTypes
|
|
14
|
+
* @category generated
|
|
15
|
+
*/
|
|
16
|
+
export declare const policyActionPayloadDetailsBeet: beet.FixableBeetArgsStruct<PolicyActionPayloadDetails>;
|
|
@@ -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 { policyPayloadBeet } from './PolicyPayload';
|
|
9
|
+
/**
|
|
10
|
+
* @category userTypes
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const policyActionPayloadDetailsBeet = new beet.FixableBeetArgsStruct([['payload', policyPayloadBeet]], 'PolicyActionPayloadDetails');
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { InternalFundTransferPolicyCreationPayload } from './InternalFundTransferPolicyCreationPayload';
|
|
9
|
+
import { SpendingLimitPolicyCreationPayload } from './SpendingLimitPolicyCreationPayload';
|
|
10
|
+
import { SettingsChangePolicyCreationPayload } from './SettingsChangePolicyCreationPayload';
|
|
11
|
+
import { ProgramInteractionPolicyCreationPayload } from './ProgramInteractionPolicyCreationPayload';
|
|
12
|
+
/**
|
|
13
|
+
* This type is used to derive the {@link PolicyCreationPayload} type as well as the de/serializer.
|
|
14
|
+
* However don't refer to it in your code but use the {@link PolicyCreationPayload} type instead.
|
|
15
|
+
*
|
|
16
|
+
* @category userTypes
|
|
17
|
+
* @category enums
|
|
18
|
+
* @category generated
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
export type PolicyCreationPayloadRecord = {
|
|
22
|
+
InternalFundTransfer: {
|
|
23
|
+
fields: [InternalFundTransferPolicyCreationPayload];
|
|
24
|
+
};
|
|
25
|
+
SpendingLimit: {
|
|
26
|
+
fields: [SpendingLimitPolicyCreationPayload];
|
|
27
|
+
};
|
|
28
|
+
SettingsChange: {
|
|
29
|
+
fields: [SettingsChangePolicyCreationPayload];
|
|
30
|
+
};
|
|
31
|
+
ProgramInteraction: {
|
|
32
|
+
fields: [ProgramInteractionPolicyCreationPayload];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Union type respresenting the PolicyCreationPayload data enum defined in Rust.
|
|
37
|
+
*
|
|
38
|
+
* NOTE: that it includes a `__kind` property which allows to narrow types in
|
|
39
|
+
* switch/if statements.
|
|
40
|
+
* Additionally `isPolicyCreationPayload*` type guards are exposed below to narrow to a specific variant.
|
|
41
|
+
*
|
|
42
|
+
* @category userTypes
|
|
43
|
+
* @category enums
|
|
44
|
+
* @category generated
|
|
45
|
+
*/
|
|
46
|
+
export type PolicyCreationPayload = beet.DataEnumKeyAsKind<PolicyCreationPayloadRecord>;
|
|
47
|
+
export declare const isPolicyCreationPayloadInternalFundTransfer: (x: PolicyCreationPayload) => x is PolicyCreationPayload & {
|
|
48
|
+
__kind: "InternalFundTransfer";
|
|
49
|
+
};
|
|
50
|
+
export declare const isPolicyCreationPayloadSpendingLimit: (x: PolicyCreationPayload) => x is PolicyCreationPayload & {
|
|
51
|
+
__kind: "SpendingLimit";
|
|
52
|
+
};
|
|
53
|
+
export declare const isPolicyCreationPayloadSettingsChange: (x: PolicyCreationPayload) => x is PolicyCreationPayload & {
|
|
54
|
+
__kind: "SettingsChange";
|
|
55
|
+
};
|
|
56
|
+
export declare const isPolicyCreationPayloadProgramInteraction: (x: PolicyCreationPayload) => x is PolicyCreationPayload & {
|
|
57
|
+
__kind: "ProgramInteraction";
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @category userTypes
|
|
61
|
+
* @category generated
|
|
62
|
+
*/
|
|
63
|
+
export declare const policyCreationPayloadBeet: beet.FixableBeet<PolicyCreationPayload, PolicyCreationPayload>;
|
|
@@ -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 { internalFundTransferPolicyCreationPayloadBeet, } from './InternalFundTransferPolicyCreationPayload';
|
|
9
|
+
import { spendingLimitPolicyCreationPayloadBeet, } from './SpendingLimitPolicyCreationPayload';
|
|
10
|
+
import { settingsChangePolicyCreationPayloadBeet, } from './SettingsChangePolicyCreationPayload';
|
|
11
|
+
import { programInteractionPolicyCreationPayloadBeet, } from './ProgramInteractionPolicyCreationPayload';
|
|
12
|
+
export const isPolicyCreationPayloadInternalFundTransfer = (x) => x.__kind === 'InternalFundTransfer';
|
|
13
|
+
export const isPolicyCreationPayloadSpendingLimit = (x) => x.__kind === 'SpendingLimit';
|
|
14
|
+
export const isPolicyCreationPayloadSettingsChange = (x) => x.__kind === 'SettingsChange';
|
|
15
|
+
export const isPolicyCreationPayloadProgramInteraction = (x) => x.__kind === 'ProgramInteraction';
|
|
16
|
+
/**
|
|
17
|
+
* @category userTypes
|
|
18
|
+
* @category generated
|
|
19
|
+
*/
|
|
20
|
+
export const policyCreationPayloadBeet = beet.dataEnum([
|
|
21
|
+
[
|
|
22
|
+
'InternalFundTransfer',
|
|
23
|
+
new beet.FixableBeetArgsStruct([
|
|
24
|
+
[
|
|
25
|
+
'fields',
|
|
26
|
+
beet.tuple([internalFundTransferPolicyCreationPayloadBeet]),
|
|
27
|
+
],
|
|
28
|
+
], 'PolicyCreationPayloadRecord["InternalFundTransfer"]'),
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
'SpendingLimit',
|
|
32
|
+
new beet.FixableBeetArgsStruct([['fields', beet.tuple([spendingLimitPolicyCreationPayloadBeet])]], 'PolicyCreationPayloadRecord["SpendingLimit"]'),
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
'SettingsChange',
|
|
36
|
+
new beet.FixableBeetArgsStruct([['fields', beet.tuple([settingsChangePolicyCreationPayloadBeet])]], 'PolicyCreationPayloadRecord["SettingsChange"]'),
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
'ProgramInteraction',
|
|
40
|
+
new beet.FixableBeetArgsStruct([['fields', beet.tuple([programInteractionPolicyCreationPayloadBeet])]], 'PolicyCreationPayloadRecord["ProgramInteraction"]'),
|
|
41
|
+
],
|
|
42
|
+
]);
|
|
@@ -0,0 +1,22 @@
|
|
|
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 enums
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export declare enum PolicyEventType {
|
|
13
|
+
Create = 0,
|
|
14
|
+
Update = 1,
|
|
15
|
+
UpdateDuringExecution = 2,
|
|
16
|
+
Remove = 3
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @category userTypes
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export declare const policyEventTypeBeet: beet.FixedSizeBeet<PolicyEventType, PolicyEventType>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 enums
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export var PolicyEventType;
|
|
13
|
+
(function (PolicyEventType) {
|
|
14
|
+
PolicyEventType[PolicyEventType["Create"] = 0] = "Create";
|
|
15
|
+
PolicyEventType[PolicyEventType["Update"] = 1] = "Update";
|
|
16
|
+
PolicyEventType[PolicyEventType["UpdateDuringExecution"] = 2] = "UpdateDuringExecution";
|
|
17
|
+
PolicyEventType[PolicyEventType["Remove"] = 3] = "Remove";
|
|
18
|
+
})(PolicyEventType || (PolicyEventType = {}));
|
|
19
|
+
/**
|
|
20
|
+
* @category userTypes
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export const policyEventTypeBeet = beet.fixedScalarEnum(PolicyEventType);
|
|
@@ -0,0 +1,20 @@
|
|
|
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 enums
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export declare enum PolicyExecutionContext {
|
|
13
|
+
Synchronous = 0,
|
|
14
|
+
Asynchronous = 1
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @category userTypes
|
|
18
|
+
* @category generated
|
|
19
|
+
*/
|
|
20
|
+
export declare const policyExecutionContextBeet: beet.FixedSizeBeet<PolicyExecutionContext, PolicyExecutionContext>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 enums
|
|
10
|
+
* @category generated
|
|
11
|
+
*/
|
|
12
|
+
export var PolicyExecutionContext;
|
|
13
|
+
(function (PolicyExecutionContext) {
|
|
14
|
+
PolicyExecutionContext[PolicyExecutionContext["Synchronous"] = 0] = "Synchronous";
|
|
15
|
+
PolicyExecutionContext[PolicyExecutionContext["Asynchronous"] = 1] = "Asynchronous";
|
|
16
|
+
})(PolicyExecutionContext || (PolicyExecutionContext = {}));
|
|
17
|
+
/**
|
|
18
|
+
* @category userTypes
|
|
19
|
+
* @category generated
|
|
20
|
+
*/
|
|
21
|
+
export const policyExecutionContextBeet = beet.fixedScalarEnum(PolicyExecutionContext);
|
|
@@ -0,0 +1,47 @@
|
|
|
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 PolicyExpiration} type as well as the de/serializer.
|
|
10
|
+
* However don't refer to it in your code but use the {@link PolicyExpiration} type instead.
|
|
11
|
+
*
|
|
12
|
+
* @category userTypes
|
|
13
|
+
* @category enums
|
|
14
|
+
* @category generated
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
export type PolicyExpirationRecord = {
|
|
18
|
+
Timestamp: {
|
|
19
|
+
fields: [beet.bignum];
|
|
20
|
+
};
|
|
21
|
+
SettingsState: {
|
|
22
|
+
fields: [number[]];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Union type respresenting the PolicyExpiration data enum defined in Rust.
|
|
27
|
+
*
|
|
28
|
+
* NOTE: that it includes a `__kind` property which allows to narrow types in
|
|
29
|
+
* switch/if statements.
|
|
30
|
+
* Additionally `isPolicyExpiration*` type guards are exposed below to narrow to a specific variant.
|
|
31
|
+
*
|
|
32
|
+
* @category userTypes
|
|
33
|
+
* @category enums
|
|
34
|
+
* @category generated
|
|
35
|
+
*/
|
|
36
|
+
export type PolicyExpiration = beet.DataEnumKeyAsKind<PolicyExpirationRecord>;
|
|
37
|
+
export declare const isPolicyExpirationTimestamp: (x: PolicyExpiration) => x is PolicyExpiration & {
|
|
38
|
+
__kind: "Timestamp";
|
|
39
|
+
};
|
|
40
|
+
export declare const isPolicyExpirationSettingsState: (x: PolicyExpiration) => x is PolicyExpiration & {
|
|
41
|
+
__kind: "SettingsState";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @category userTypes
|
|
45
|
+
* @category generated
|
|
46
|
+
*/
|
|
47
|
+
export declare const policyExpirationBeet: beet.FixableBeet<PolicyExpiration, PolicyExpiration>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 isPolicyExpirationTimestamp = (x) => x.__kind === 'Timestamp';
|
|
9
|
+
export const isPolicyExpirationSettingsState = (x) => x.__kind === 'SettingsState';
|
|
10
|
+
/**
|
|
11
|
+
* @category userTypes
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export const policyExpirationBeet = beet.dataEnum([
|
|
15
|
+
[
|
|
16
|
+
'Timestamp',
|
|
17
|
+
new beet.BeetArgsStruct([['fields', beet.fixedSizeTuple([beet.i64])]], 'PolicyExpirationRecord["Timestamp"]'),
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
'SettingsState',
|
|
21
|
+
new beet.BeetArgsStruct([
|
|
22
|
+
[
|
|
23
|
+
'fields',
|
|
24
|
+
beet.fixedSizeTuple([beet.uniformFixedSizeArray(beet.u8, 32)]),
|
|
25
|
+
],
|
|
26
|
+
], 'PolicyExpirationRecord["SettingsState"]'),
|
|
27
|
+
],
|
|
28
|
+
]);
|