@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,2312 @@
|
|
|
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
|
+
const createErrorFromCodeLookup = new Map();
|
|
8
|
+
const createErrorFromNameLookup = new Map();
|
|
9
|
+
/**
|
|
10
|
+
* AccountNotEmpty: 'Account is not empty'
|
|
11
|
+
*
|
|
12
|
+
* @category Errors
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export class AccountNotEmptyError extends Error {
|
|
16
|
+
code = 0x1770;
|
|
17
|
+
name = 'AccountNotEmpty';
|
|
18
|
+
constructor() {
|
|
19
|
+
super('Account is not empty');
|
|
20
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
21
|
+
Error.captureStackTrace(this, AccountNotEmptyError);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
createErrorFromCodeLookup.set(0x1770, () => new AccountNotEmptyError());
|
|
26
|
+
createErrorFromNameLookup.set('AccountNotEmpty', () => new AccountNotEmptyError());
|
|
27
|
+
/**
|
|
28
|
+
* DuplicateSigner: 'Found multiple signers with the same pubkey'
|
|
29
|
+
*
|
|
30
|
+
* @category Errors
|
|
31
|
+
* @category generated
|
|
32
|
+
*/
|
|
33
|
+
export class DuplicateSignerError extends Error {
|
|
34
|
+
code = 0x1771;
|
|
35
|
+
name = 'DuplicateSigner';
|
|
36
|
+
constructor() {
|
|
37
|
+
super('Found multiple signers with the same pubkey');
|
|
38
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
39
|
+
Error.captureStackTrace(this, DuplicateSignerError);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
createErrorFromCodeLookup.set(0x1771, () => new DuplicateSignerError());
|
|
44
|
+
createErrorFromNameLookup.set('DuplicateSigner', () => new DuplicateSignerError());
|
|
45
|
+
/**
|
|
46
|
+
* EmptySigners: 'Signers array is empty'
|
|
47
|
+
*
|
|
48
|
+
* @category Errors
|
|
49
|
+
* @category generated
|
|
50
|
+
*/
|
|
51
|
+
export class EmptySignersError extends Error {
|
|
52
|
+
code = 0x1772;
|
|
53
|
+
name = 'EmptySigners';
|
|
54
|
+
constructor() {
|
|
55
|
+
super('Signers array is empty');
|
|
56
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
57
|
+
Error.captureStackTrace(this, EmptySignersError);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
createErrorFromCodeLookup.set(0x1772, () => new EmptySignersError());
|
|
62
|
+
createErrorFromNameLookup.set('EmptySigners', () => new EmptySignersError());
|
|
63
|
+
/**
|
|
64
|
+
* TooManySigners: 'Too many signers, can be up to 65535'
|
|
65
|
+
*
|
|
66
|
+
* @category Errors
|
|
67
|
+
* @category generated
|
|
68
|
+
*/
|
|
69
|
+
export class TooManySignersError extends Error {
|
|
70
|
+
code = 0x1773;
|
|
71
|
+
name = 'TooManySigners';
|
|
72
|
+
constructor() {
|
|
73
|
+
super('Too many signers, can be up to 65535');
|
|
74
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
75
|
+
Error.captureStackTrace(this, TooManySignersError);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
createErrorFromCodeLookup.set(0x1773, () => new TooManySignersError());
|
|
80
|
+
createErrorFromNameLookup.set('TooManySigners', () => new TooManySignersError());
|
|
81
|
+
/**
|
|
82
|
+
* InvalidThreshold: 'Invalid threshold, must be between 1 and number of signers with vote permissions'
|
|
83
|
+
*
|
|
84
|
+
* @category Errors
|
|
85
|
+
* @category generated
|
|
86
|
+
*/
|
|
87
|
+
export class InvalidThresholdError extends Error {
|
|
88
|
+
code = 0x1774;
|
|
89
|
+
name = 'InvalidThreshold';
|
|
90
|
+
constructor() {
|
|
91
|
+
super('Invalid threshold, must be between 1 and number of signers with vote permissions');
|
|
92
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
93
|
+
Error.captureStackTrace(this, InvalidThresholdError);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
createErrorFromCodeLookup.set(0x1774, () => new InvalidThresholdError());
|
|
98
|
+
createErrorFromNameLookup.set('InvalidThreshold', () => new InvalidThresholdError());
|
|
99
|
+
/**
|
|
100
|
+
* Unauthorized: 'Attempted to perform an unauthorized action'
|
|
101
|
+
*
|
|
102
|
+
* @category Errors
|
|
103
|
+
* @category generated
|
|
104
|
+
*/
|
|
105
|
+
export class UnauthorizedError extends Error {
|
|
106
|
+
code = 0x1775;
|
|
107
|
+
name = 'Unauthorized';
|
|
108
|
+
constructor() {
|
|
109
|
+
super('Attempted to perform an unauthorized action');
|
|
110
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
111
|
+
Error.captureStackTrace(this, UnauthorizedError);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
createErrorFromCodeLookup.set(0x1775, () => new UnauthorizedError());
|
|
116
|
+
createErrorFromNameLookup.set('Unauthorized', () => new UnauthorizedError());
|
|
117
|
+
/**
|
|
118
|
+
* NotASigner: 'Provided pubkey is not a signer of the smart account'
|
|
119
|
+
*
|
|
120
|
+
* @category Errors
|
|
121
|
+
* @category generated
|
|
122
|
+
*/
|
|
123
|
+
export class NotASignerError extends Error {
|
|
124
|
+
code = 0x1776;
|
|
125
|
+
name = 'NotASigner';
|
|
126
|
+
constructor() {
|
|
127
|
+
super('Provided pubkey is not a signer of the smart account');
|
|
128
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
129
|
+
Error.captureStackTrace(this, NotASignerError);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
createErrorFromCodeLookup.set(0x1776, () => new NotASignerError());
|
|
134
|
+
createErrorFromNameLookup.set('NotASigner', () => new NotASignerError());
|
|
135
|
+
/**
|
|
136
|
+
* InvalidTransactionMessage: 'TransactionMessage is malformed.'
|
|
137
|
+
*
|
|
138
|
+
* @category Errors
|
|
139
|
+
* @category generated
|
|
140
|
+
*/
|
|
141
|
+
export class InvalidTransactionMessageError extends Error {
|
|
142
|
+
code = 0x1777;
|
|
143
|
+
name = 'InvalidTransactionMessage';
|
|
144
|
+
constructor() {
|
|
145
|
+
super('TransactionMessage is malformed.');
|
|
146
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
147
|
+
Error.captureStackTrace(this, InvalidTransactionMessageError);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
createErrorFromCodeLookup.set(0x1777, () => new InvalidTransactionMessageError());
|
|
152
|
+
createErrorFromNameLookup.set('InvalidTransactionMessage', () => new InvalidTransactionMessageError());
|
|
153
|
+
/**
|
|
154
|
+
* StaleProposal: 'Proposal is stale'
|
|
155
|
+
*
|
|
156
|
+
* @category Errors
|
|
157
|
+
* @category generated
|
|
158
|
+
*/
|
|
159
|
+
export class StaleProposalError extends Error {
|
|
160
|
+
code = 0x1778;
|
|
161
|
+
name = 'StaleProposal';
|
|
162
|
+
constructor() {
|
|
163
|
+
super('Proposal is stale');
|
|
164
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
165
|
+
Error.captureStackTrace(this, StaleProposalError);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
createErrorFromCodeLookup.set(0x1778, () => new StaleProposalError());
|
|
170
|
+
createErrorFromNameLookup.set('StaleProposal', () => new StaleProposalError());
|
|
171
|
+
/**
|
|
172
|
+
* InvalidProposalStatus: 'Invalid proposal status'
|
|
173
|
+
*
|
|
174
|
+
* @category Errors
|
|
175
|
+
* @category generated
|
|
176
|
+
*/
|
|
177
|
+
export class InvalidProposalStatusError extends Error {
|
|
178
|
+
code = 0x1779;
|
|
179
|
+
name = 'InvalidProposalStatus';
|
|
180
|
+
constructor() {
|
|
181
|
+
super('Invalid proposal status');
|
|
182
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
183
|
+
Error.captureStackTrace(this, InvalidProposalStatusError);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
createErrorFromCodeLookup.set(0x1779, () => new InvalidProposalStatusError());
|
|
188
|
+
createErrorFromNameLookup.set('InvalidProposalStatus', () => new InvalidProposalStatusError());
|
|
189
|
+
/**
|
|
190
|
+
* InvalidTransactionIndex: 'Invalid transaction index'
|
|
191
|
+
*
|
|
192
|
+
* @category Errors
|
|
193
|
+
* @category generated
|
|
194
|
+
*/
|
|
195
|
+
export class InvalidTransactionIndexError extends Error {
|
|
196
|
+
code = 0x177a;
|
|
197
|
+
name = 'InvalidTransactionIndex';
|
|
198
|
+
constructor() {
|
|
199
|
+
super('Invalid transaction index');
|
|
200
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
201
|
+
Error.captureStackTrace(this, InvalidTransactionIndexError);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
createErrorFromCodeLookup.set(0x177a, () => new InvalidTransactionIndexError());
|
|
206
|
+
createErrorFromNameLookup.set('InvalidTransactionIndex', () => new InvalidTransactionIndexError());
|
|
207
|
+
/**
|
|
208
|
+
* AlreadyApproved: 'Signer already approved the transaction'
|
|
209
|
+
*
|
|
210
|
+
* @category Errors
|
|
211
|
+
* @category generated
|
|
212
|
+
*/
|
|
213
|
+
export class AlreadyApprovedError extends Error {
|
|
214
|
+
code = 0x177b;
|
|
215
|
+
name = 'AlreadyApproved';
|
|
216
|
+
constructor() {
|
|
217
|
+
super('Signer already approved the transaction');
|
|
218
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
219
|
+
Error.captureStackTrace(this, AlreadyApprovedError);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
createErrorFromCodeLookup.set(0x177b, () => new AlreadyApprovedError());
|
|
224
|
+
createErrorFromNameLookup.set('AlreadyApproved', () => new AlreadyApprovedError());
|
|
225
|
+
/**
|
|
226
|
+
* AlreadyRejected: 'Signer already rejected the transaction'
|
|
227
|
+
*
|
|
228
|
+
* @category Errors
|
|
229
|
+
* @category generated
|
|
230
|
+
*/
|
|
231
|
+
export class AlreadyRejectedError extends Error {
|
|
232
|
+
code = 0x177c;
|
|
233
|
+
name = 'AlreadyRejected';
|
|
234
|
+
constructor() {
|
|
235
|
+
super('Signer already rejected the transaction');
|
|
236
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
237
|
+
Error.captureStackTrace(this, AlreadyRejectedError);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
createErrorFromCodeLookup.set(0x177c, () => new AlreadyRejectedError());
|
|
242
|
+
createErrorFromNameLookup.set('AlreadyRejected', () => new AlreadyRejectedError());
|
|
243
|
+
/**
|
|
244
|
+
* AlreadyCancelled: 'Signer already cancelled the transaction'
|
|
245
|
+
*
|
|
246
|
+
* @category Errors
|
|
247
|
+
* @category generated
|
|
248
|
+
*/
|
|
249
|
+
export class AlreadyCancelledError extends Error {
|
|
250
|
+
code = 0x177d;
|
|
251
|
+
name = 'AlreadyCancelled';
|
|
252
|
+
constructor() {
|
|
253
|
+
super('Signer already cancelled the transaction');
|
|
254
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
255
|
+
Error.captureStackTrace(this, AlreadyCancelledError);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
createErrorFromCodeLookup.set(0x177d, () => new AlreadyCancelledError());
|
|
260
|
+
createErrorFromNameLookup.set('AlreadyCancelled', () => new AlreadyCancelledError());
|
|
261
|
+
/**
|
|
262
|
+
* InvalidNumberOfAccounts: 'Wrong number of accounts provided'
|
|
263
|
+
*
|
|
264
|
+
* @category Errors
|
|
265
|
+
* @category generated
|
|
266
|
+
*/
|
|
267
|
+
export class InvalidNumberOfAccountsError extends Error {
|
|
268
|
+
code = 0x177e;
|
|
269
|
+
name = 'InvalidNumberOfAccounts';
|
|
270
|
+
constructor() {
|
|
271
|
+
super('Wrong number of accounts provided');
|
|
272
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
273
|
+
Error.captureStackTrace(this, InvalidNumberOfAccountsError);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
createErrorFromCodeLookup.set(0x177e, () => new InvalidNumberOfAccountsError());
|
|
278
|
+
createErrorFromNameLookup.set('InvalidNumberOfAccounts', () => new InvalidNumberOfAccountsError());
|
|
279
|
+
/**
|
|
280
|
+
* InvalidAccount: 'Invalid account provided'
|
|
281
|
+
*
|
|
282
|
+
* @category Errors
|
|
283
|
+
* @category generated
|
|
284
|
+
*/
|
|
285
|
+
export class InvalidAccountError extends Error {
|
|
286
|
+
code = 0x177f;
|
|
287
|
+
name = 'InvalidAccount';
|
|
288
|
+
constructor() {
|
|
289
|
+
super('Invalid account provided');
|
|
290
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
291
|
+
Error.captureStackTrace(this, InvalidAccountError);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
createErrorFromCodeLookup.set(0x177f, () => new InvalidAccountError());
|
|
296
|
+
createErrorFromNameLookup.set('InvalidAccount', () => new InvalidAccountError());
|
|
297
|
+
/**
|
|
298
|
+
* RemoveLastSigner: 'Cannot remove last signer'
|
|
299
|
+
*
|
|
300
|
+
* @category Errors
|
|
301
|
+
* @category generated
|
|
302
|
+
*/
|
|
303
|
+
export class RemoveLastSignerError extends Error {
|
|
304
|
+
code = 0x1780;
|
|
305
|
+
name = 'RemoveLastSigner';
|
|
306
|
+
constructor() {
|
|
307
|
+
super('Cannot remove last signer');
|
|
308
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
309
|
+
Error.captureStackTrace(this, RemoveLastSignerError);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
createErrorFromCodeLookup.set(0x1780, () => new RemoveLastSignerError());
|
|
314
|
+
createErrorFromNameLookup.set('RemoveLastSigner', () => new RemoveLastSignerError());
|
|
315
|
+
/**
|
|
316
|
+
* NoVoters: 'Signers don't include any voters'
|
|
317
|
+
*
|
|
318
|
+
* @category Errors
|
|
319
|
+
* @category generated
|
|
320
|
+
*/
|
|
321
|
+
export class NoVotersError extends Error {
|
|
322
|
+
code = 0x1781;
|
|
323
|
+
name = 'NoVoters';
|
|
324
|
+
constructor() {
|
|
325
|
+
super("Signers don't include any voters");
|
|
326
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
327
|
+
Error.captureStackTrace(this, NoVotersError);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
createErrorFromCodeLookup.set(0x1781, () => new NoVotersError());
|
|
332
|
+
createErrorFromNameLookup.set('NoVoters', () => new NoVotersError());
|
|
333
|
+
/**
|
|
334
|
+
* NoProposers: 'Signers don't include any proposers'
|
|
335
|
+
*
|
|
336
|
+
* @category Errors
|
|
337
|
+
* @category generated
|
|
338
|
+
*/
|
|
339
|
+
export class NoProposersError extends Error {
|
|
340
|
+
code = 0x1782;
|
|
341
|
+
name = 'NoProposers';
|
|
342
|
+
constructor() {
|
|
343
|
+
super("Signers don't include any proposers");
|
|
344
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
345
|
+
Error.captureStackTrace(this, NoProposersError);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
createErrorFromCodeLookup.set(0x1782, () => new NoProposersError());
|
|
350
|
+
createErrorFromNameLookup.set('NoProposers', () => new NoProposersError());
|
|
351
|
+
/**
|
|
352
|
+
* NoExecutors: 'Signers don't include any executors'
|
|
353
|
+
*
|
|
354
|
+
* @category Errors
|
|
355
|
+
* @category generated
|
|
356
|
+
*/
|
|
357
|
+
export class NoExecutorsError extends Error {
|
|
358
|
+
code = 0x1783;
|
|
359
|
+
name = 'NoExecutors';
|
|
360
|
+
constructor() {
|
|
361
|
+
super("Signers don't include any executors");
|
|
362
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
363
|
+
Error.captureStackTrace(this, NoExecutorsError);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
createErrorFromCodeLookup.set(0x1783, () => new NoExecutorsError());
|
|
368
|
+
createErrorFromNameLookup.set('NoExecutors', () => new NoExecutorsError());
|
|
369
|
+
/**
|
|
370
|
+
* InvalidStaleTransactionIndex: '`stale_transaction_index` must be <= `transaction_index`'
|
|
371
|
+
*
|
|
372
|
+
* @category Errors
|
|
373
|
+
* @category generated
|
|
374
|
+
*/
|
|
375
|
+
export class InvalidStaleTransactionIndexError extends Error {
|
|
376
|
+
code = 0x1784;
|
|
377
|
+
name = 'InvalidStaleTransactionIndex';
|
|
378
|
+
constructor() {
|
|
379
|
+
super('`stale_transaction_index` must be <= `transaction_index`');
|
|
380
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
381
|
+
Error.captureStackTrace(this, InvalidStaleTransactionIndexError);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
createErrorFromCodeLookup.set(0x1784, () => new InvalidStaleTransactionIndexError());
|
|
386
|
+
createErrorFromNameLookup.set('InvalidStaleTransactionIndex', () => new InvalidStaleTransactionIndexError());
|
|
387
|
+
/**
|
|
388
|
+
* NotSupportedForControlled: 'Instruction not supported for controlled smart account'
|
|
389
|
+
*
|
|
390
|
+
* @category Errors
|
|
391
|
+
* @category generated
|
|
392
|
+
*/
|
|
393
|
+
export class NotSupportedForControlledError extends Error {
|
|
394
|
+
code = 0x1785;
|
|
395
|
+
name = 'NotSupportedForControlled';
|
|
396
|
+
constructor() {
|
|
397
|
+
super('Instruction not supported for controlled smart account');
|
|
398
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
399
|
+
Error.captureStackTrace(this, NotSupportedForControlledError);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
createErrorFromCodeLookup.set(0x1785, () => new NotSupportedForControlledError());
|
|
404
|
+
createErrorFromNameLookup.set('NotSupportedForControlled', () => new NotSupportedForControlledError());
|
|
405
|
+
/**
|
|
406
|
+
* TimeLockNotReleased: 'Proposal time lock has not been released'
|
|
407
|
+
*
|
|
408
|
+
* @category Errors
|
|
409
|
+
* @category generated
|
|
410
|
+
*/
|
|
411
|
+
export class TimeLockNotReleasedError extends Error {
|
|
412
|
+
code = 0x1786;
|
|
413
|
+
name = 'TimeLockNotReleased';
|
|
414
|
+
constructor() {
|
|
415
|
+
super('Proposal time lock has not been released');
|
|
416
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
417
|
+
Error.captureStackTrace(this, TimeLockNotReleasedError);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
createErrorFromCodeLookup.set(0x1786, () => new TimeLockNotReleasedError());
|
|
422
|
+
createErrorFromNameLookup.set('TimeLockNotReleased', () => new TimeLockNotReleasedError());
|
|
423
|
+
/**
|
|
424
|
+
* NoActions: 'Config transaction must have at least one action'
|
|
425
|
+
*
|
|
426
|
+
* @category Errors
|
|
427
|
+
* @category generated
|
|
428
|
+
*/
|
|
429
|
+
export class NoActionsError extends Error {
|
|
430
|
+
code = 0x1787;
|
|
431
|
+
name = 'NoActions';
|
|
432
|
+
constructor() {
|
|
433
|
+
super('Config transaction must have at least one action');
|
|
434
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
435
|
+
Error.captureStackTrace(this, NoActionsError);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
createErrorFromCodeLookup.set(0x1787, () => new NoActionsError());
|
|
440
|
+
createErrorFromNameLookup.set('NoActions', () => new NoActionsError());
|
|
441
|
+
/**
|
|
442
|
+
* MissingAccount: 'Missing account'
|
|
443
|
+
*
|
|
444
|
+
* @category Errors
|
|
445
|
+
* @category generated
|
|
446
|
+
*/
|
|
447
|
+
export class MissingAccountError extends Error {
|
|
448
|
+
code = 0x1788;
|
|
449
|
+
name = 'MissingAccount';
|
|
450
|
+
constructor() {
|
|
451
|
+
super('Missing account');
|
|
452
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
453
|
+
Error.captureStackTrace(this, MissingAccountError);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
createErrorFromCodeLookup.set(0x1788, () => new MissingAccountError());
|
|
458
|
+
createErrorFromNameLookup.set('MissingAccount', () => new MissingAccountError());
|
|
459
|
+
/**
|
|
460
|
+
* InvalidMint: 'Invalid mint'
|
|
461
|
+
*
|
|
462
|
+
* @category Errors
|
|
463
|
+
* @category generated
|
|
464
|
+
*/
|
|
465
|
+
export class InvalidMintError extends Error {
|
|
466
|
+
code = 0x1789;
|
|
467
|
+
name = 'InvalidMint';
|
|
468
|
+
constructor() {
|
|
469
|
+
super('Invalid mint');
|
|
470
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
471
|
+
Error.captureStackTrace(this, InvalidMintError);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
createErrorFromCodeLookup.set(0x1789, () => new InvalidMintError());
|
|
476
|
+
createErrorFromNameLookup.set('InvalidMint', () => new InvalidMintError());
|
|
477
|
+
/**
|
|
478
|
+
* InvalidDestination: 'Invalid destination'
|
|
479
|
+
*
|
|
480
|
+
* @category Errors
|
|
481
|
+
* @category generated
|
|
482
|
+
*/
|
|
483
|
+
export class InvalidDestinationError extends Error {
|
|
484
|
+
code = 0x178a;
|
|
485
|
+
name = 'InvalidDestination';
|
|
486
|
+
constructor() {
|
|
487
|
+
super('Invalid destination');
|
|
488
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
489
|
+
Error.captureStackTrace(this, InvalidDestinationError);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
createErrorFromCodeLookup.set(0x178a, () => new InvalidDestinationError());
|
|
494
|
+
createErrorFromNameLookup.set('InvalidDestination', () => new InvalidDestinationError());
|
|
495
|
+
/**
|
|
496
|
+
* SpendingLimitExceeded: 'Spending limit exceeded'
|
|
497
|
+
*
|
|
498
|
+
* @category Errors
|
|
499
|
+
* @category generated
|
|
500
|
+
*/
|
|
501
|
+
export class SpendingLimitExceededError extends Error {
|
|
502
|
+
code = 0x178b;
|
|
503
|
+
name = 'SpendingLimitExceeded';
|
|
504
|
+
constructor() {
|
|
505
|
+
super('Spending limit exceeded');
|
|
506
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
507
|
+
Error.captureStackTrace(this, SpendingLimitExceededError);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
createErrorFromCodeLookup.set(0x178b, () => new SpendingLimitExceededError());
|
|
512
|
+
createErrorFromNameLookup.set('SpendingLimitExceeded', () => new SpendingLimitExceededError());
|
|
513
|
+
/**
|
|
514
|
+
* DecimalsMismatch: 'Decimals don't match the mint'
|
|
515
|
+
*
|
|
516
|
+
* @category Errors
|
|
517
|
+
* @category generated
|
|
518
|
+
*/
|
|
519
|
+
export class DecimalsMismatchError extends Error {
|
|
520
|
+
code = 0x178c;
|
|
521
|
+
name = 'DecimalsMismatch';
|
|
522
|
+
constructor() {
|
|
523
|
+
super("Decimals don't match the mint");
|
|
524
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
525
|
+
Error.captureStackTrace(this, DecimalsMismatchError);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
createErrorFromCodeLookup.set(0x178c, () => new DecimalsMismatchError());
|
|
530
|
+
createErrorFromNameLookup.set('DecimalsMismatch', () => new DecimalsMismatchError());
|
|
531
|
+
/**
|
|
532
|
+
* UnknownPermission: 'Signer has unknown permission'
|
|
533
|
+
*
|
|
534
|
+
* @category Errors
|
|
535
|
+
* @category generated
|
|
536
|
+
*/
|
|
537
|
+
export class UnknownPermissionError extends Error {
|
|
538
|
+
code = 0x178d;
|
|
539
|
+
name = 'UnknownPermission';
|
|
540
|
+
constructor() {
|
|
541
|
+
super('Signer has unknown permission');
|
|
542
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
543
|
+
Error.captureStackTrace(this, UnknownPermissionError);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
createErrorFromCodeLookup.set(0x178d, () => new UnknownPermissionError());
|
|
548
|
+
createErrorFromNameLookup.set('UnknownPermission', () => new UnknownPermissionError());
|
|
549
|
+
/**
|
|
550
|
+
* ProtectedAccount: 'Account is protected, it cannot be passed into a CPI as writable'
|
|
551
|
+
*
|
|
552
|
+
* @category Errors
|
|
553
|
+
* @category generated
|
|
554
|
+
*/
|
|
555
|
+
export class ProtectedAccountError extends Error {
|
|
556
|
+
code = 0x178e;
|
|
557
|
+
name = 'ProtectedAccount';
|
|
558
|
+
constructor() {
|
|
559
|
+
super('Account is protected, it cannot be passed into a CPI as writable');
|
|
560
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
561
|
+
Error.captureStackTrace(this, ProtectedAccountError);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
createErrorFromCodeLookup.set(0x178e, () => new ProtectedAccountError());
|
|
566
|
+
createErrorFromNameLookup.set('ProtectedAccount', () => new ProtectedAccountError());
|
|
567
|
+
/**
|
|
568
|
+
* TimeLockExceedsMaxAllowed: 'Time lock exceeds the maximum allowed (90 days)'
|
|
569
|
+
*
|
|
570
|
+
* @category Errors
|
|
571
|
+
* @category generated
|
|
572
|
+
*/
|
|
573
|
+
export class TimeLockExceedsMaxAllowedError extends Error {
|
|
574
|
+
code = 0x178f;
|
|
575
|
+
name = 'TimeLockExceedsMaxAllowed';
|
|
576
|
+
constructor() {
|
|
577
|
+
super('Time lock exceeds the maximum allowed (90 days)');
|
|
578
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
579
|
+
Error.captureStackTrace(this, TimeLockExceedsMaxAllowedError);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
createErrorFromCodeLookup.set(0x178f, () => new TimeLockExceedsMaxAllowedError());
|
|
584
|
+
createErrorFromNameLookup.set('TimeLockExceedsMaxAllowed', () => new TimeLockExceedsMaxAllowedError());
|
|
585
|
+
/**
|
|
586
|
+
* IllegalAccountOwner: 'Account is not owned by Smart Account program'
|
|
587
|
+
*
|
|
588
|
+
* @category Errors
|
|
589
|
+
* @category generated
|
|
590
|
+
*/
|
|
591
|
+
export class IllegalAccountOwnerError extends Error {
|
|
592
|
+
code = 0x1790;
|
|
593
|
+
name = 'IllegalAccountOwner';
|
|
594
|
+
constructor() {
|
|
595
|
+
super('Account is not owned by Smart Account program');
|
|
596
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
597
|
+
Error.captureStackTrace(this, IllegalAccountOwnerError);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
createErrorFromCodeLookup.set(0x1790, () => new IllegalAccountOwnerError());
|
|
602
|
+
createErrorFromNameLookup.set('IllegalAccountOwner', () => new IllegalAccountOwnerError());
|
|
603
|
+
/**
|
|
604
|
+
* RentReclamationDisabled: 'Rent reclamation is disabled for this smart account'
|
|
605
|
+
*
|
|
606
|
+
* @category Errors
|
|
607
|
+
* @category generated
|
|
608
|
+
*/
|
|
609
|
+
export class RentReclamationDisabledError extends Error {
|
|
610
|
+
code = 0x1791;
|
|
611
|
+
name = 'RentReclamationDisabled';
|
|
612
|
+
constructor() {
|
|
613
|
+
super('Rent reclamation is disabled for this smart account');
|
|
614
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
615
|
+
Error.captureStackTrace(this, RentReclamationDisabledError);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
createErrorFromCodeLookup.set(0x1791, () => new RentReclamationDisabledError());
|
|
620
|
+
createErrorFromNameLookup.set('RentReclamationDisabled', () => new RentReclamationDisabledError());
|
|
621
|
+
/**
|
|
622
|
+
* InvalidRentCollector: 'Invalid rent collector address'
|
|
623
|
+
*
|
|
624
|
+
* @category Errors
|
|
625
|
+
* @category generated
|
|
626
|
+
*/
|
|
627
|
+
export class InvalidRentCollectorError extends Error {
|
|
628
|
+
code = 0x1792;
|
|
629
|
+
name = 'InvalidRentCollector';
|
|
630
|
+
constructor() {
|
|
631
|
+
super('Invalid rent collector address');
|
|
632
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
633
|
+
Error.captureStackTrace(this, InvalidRentCollectorError);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
createErrorFromCodeLookup.set(0x1792, () => new InvalidRentCollectorError());
|
|
638
|
+
createErrorFromNameLookup.set('InvalidRentCollector', () => new InvalidRentCollectorError());
|
|
639
|
+
/**
|
|
640
|
+
* ProposalForAnotherSmartAccount: 'Proposal is for another smart account'
|
|
641
|
+
*
|
|
642
|
+
* @category Errors
|
|
643
|
+
* @category generated
|
|
644
|
+
*/
|
|
645
|
+
export class ProposalForAnotherSmartAccountError extends Error {
|
|
646
|
+
code = 0x1793;
|
|
647
|
+
name = 'ProposalForAnotherSmartAccount';
|
|
648
|
+
constructor() {
|
|
649
|
+
super('Proposal is for another smart account');
|
|
650
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
651
|
+
Error.captureStackTrace(this, ProposalForAnotherSmartAccountError);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
createErrorFromCodeLookup.set(0x1793, () => new ProposalForAnotherSmartAccountError());
|
|
656
|
+
createErrorFromNameLookup.set('ProposalForAnotherSmartAccount', () => new ProposalForAnotherSmartAccountError());
|
|
657
|
+
/**
|
|
658
|
+
* TransactionForAnotherSmartAccount: 'Transaction is for another smart account'
|
|
659
|
+
*
|
|
660
|
+
* @category Errors
|
|
661
|
+
* @category generated
|
|
662
|
+
*/
|
|
663
|
+
export class TransactionForAnotherSmartAccountError extends Error {
|
|
664
|
+
code = 0x1794;
|
|
665
|
+
name = 'TransactionForAnotherSmartAccount';
|
|
666
|
+
constructor() {
|
|
667
|
+
super('Transaction is for another smart account');
|
|
668
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
669
|
+
Error.captureStackTrace(this, TransactionForAnotherSmartAccountError);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
createErrorFromCodeLookup.set(0x1794, () => new TransactionForAnotherSmartAccountError());
|
|
674
|
+
createErrorFromNameLookup.set('TransactionForAnotherSmartAccount', () => new TransactionForAnotherSmartAccountError());
|
|
675
|
+
/**
|
|
676
|
+
* TransactionNotMatchingProposal: 'Transaction doesn't match proposal'
|
|
677
|
+
*
|
|
678
|
+
* @category Errors
|
|
679
|
+
* @category generated
|
|
680
|
+
*/
|
|
681
|
+
export class TransactionNotMatchingProposalError extends Error {
|
|
682
|
+
code = 0x1795;
|
|
683
|
+
name = 'TransactionNotMatchingProposal';
|
|
684
|
+
constructor() {
|
|
685
|
+
super("Transaction doesn't match proposal");
|
|
686
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
687
|
+
Error.captureStackTrace(this, TransactionNotMatchingProposalError);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
createErrorFromCodeLookup.set(0x1795, () => new TransactionNotMatchingProposalError());
|
|
692
|
+
createErrorFromNameLookup.set('TransactionNotMatchingProposal', () => new TransactionNotMatchingProposalError());
|
|
693
|
+
/**
|
|
694
|
+
* TransactionNotLastInBatch: 'Transaction is not last in batch'
|
|
695
|
+
*
|
|
696
|
+
* @category Errors
|
|
697
|
+
* @category generated
|
|
698
|
+
*/
|
|
699
|
+
export class TransactionNotLastInBatchError extends Error {
|
|
700
|
+
code = 0x1796;
|
|
701
|
+
name = 'TransactionNotLastInBatch';
|
|
702
|
+
constructor() {
|
|
703
|
+
super('Transaction is not last in batch');
|
|
704
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
705
|
+
Error.captureStackTrace(this, TransactionNotLastInBatchError);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
createErrorFromCodeLookup.set(0x1796, () => new TransactionNotLastInBatchError());
|
|
710
|
+
createErrorFromNameLookup.set('TransactionNotLastInBatch', () => new TransactionNotLastInBatchError());
|
|
711
|
+
/**
|
|
712
|
+
* BatchNotEmpty: 'Batch is not empty'
|
|
713
|
+
*
|
|
714
|
+
* @category Errors
|
|
715
|
+
* @category generated
|
|
716
|
+
*/
|
|
717
|
+
export class BatchNotEmptyError extends Error {
|
|
718
|
+
code = 0x1797;
|
|
719
|
+
name = 'BatchNotEmpty';
|
|
720
|
+
constructor() {
|
|
721
|
+
super('Batch is not empty');
|
|
722
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
723
|
+
Error.captureStackTrace(this, BatchNotEmptyError);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
createErrorFromCodeLookup.set(0x1797, () => new BatchNotEmptyError());
|
|
728
|
+
createErrorFromNameLookup.set('BatchNotEmpty', () => new BatchNotEmptyError());
|
|
729
|
+
/**
|
|
730
|
+
* SpendingLimitInvalidAmount: 'Invalid SpendingLimit amount'
|
|
731
|
+
*
|
|
732
|
+
* @category Errors
|
|
733
|
+
* @category generated
|
|
734
|
+
*/
|
|
735
|
+
export class SpendingLimitInvalidAmountError extends Error {
|
|
736
|
+
code = 0x1798;
|
|
737
|
+
name = 'SpendingLimitInvalidAmount';
|
|
738
|
+
constructor() {
|
|
739
|
+
super('Invalid SpendingLimit amount');
|
|
740
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
741
|
+
Error.captureStackTrace(this, SpendingLimitInvalidAmountError);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
createErrorFromCodeLookup.set(0x1798, () => new SpendingLimitInvalidAmountError());
|
|
746
|
+
createErrorFromNameLookup.set('SpendingLimitInvalidAmount', () => new SpendingLimitInvalidAmountError());
|
|
747
|
+
/**
|
|
748
|
+
* InvalidInstructionArgs: 'Invalid Instruction Arguments'
|
|
749
|
+
*
|
|
750
|
+
* @category Errors
|
|
751
|
+
* @category generated
|
|
752
|
+
*/
|
|
753
|
+
export class InvalidInstructionArgsError extends Error {
|
|
754
|
+
code = 0x1799;
|
|
755
|
+
name = 'InvalidInstructionArgs';
|
|
756
|
+
constructor() {
|
|
757
|
+
super('Invalid Instruction Arguments');
|
|
758
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
759
|
+
Error.captureStackTrace(this, InvalidInstructionArgsError);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
createErrorFromCodeLookup.set(0x1799, () => new InvalidInstructionArgsError());
|
|
764
|
+
createErrorFromNameLookup.set('InvalidInstructionArgs', () => new InvalidInstructionArgsError());
|
|
765
|
+
/**
|
|
766
|
+
* FinalBufferHashMismatch: 'Final message buffer hash doesnt match the expected hash'
|
|
767
|
+
*
|
|
768
|
+
* @category Errors
|
|
769
|
+
* @category generated
|
|
770
|
+
*/
|
|
771
|
+
export class FinalBufferHashMismatchError extends Error {
|
|
772
|
+
code = 0x179a;
|
|
773
|
+
name = 'FinalBufferHashMismatch';
|
|
774
|
+
constructor() {
|
|
775
|
+
super('Final message buffer hash doesnt match the expected hash');
|
|
776
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
777
|
+
Error.captureStackTrace(this, FinalBufferHashMismatchError);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
createErrorFromCodeLookup.set(0x179a, () => new FinalBufferHashMismatchError());
|
|
782
|
+
createErrorFromNameLookup.set('FinalBufferHashMismatch', () => new FinalBufferHashMismatchError());
|
|
783
|
+
/**
|
|
784
|
+
* FinalBufferSizeExceeded: 'Final buffer size cannot exceed 4000 bytes'
|
|
785
|
+
*
|
|
786
|
+
* @category Errors
|
|
787
|
+
* @category generated
|
|
788
|
+
*/
|
|
789
|
+
export class FinalBufferSizeExceededError extends Error {
|
|
790
|
+
code = 0x179b;
|
|
791
|
+
name = 'FinalBufferSizeExceeded';
|
|
792
|
+
constructor() {
|
|
793
|
+
super('Final buffer size cannot exceed 4000 bytes');
|
|
794
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
795
|
+
Error.captureStackTrace(this, FinalBufferSizeExceededError);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
createErrorFromCodeLookup.set(0x179b, () => new FinalBufferSizeExceededError());
|
|
800
|
+
createErrorFromNameLookup.set('FinalBufferSizeExceeded', () => new FinalBufferSizeExceededError());
|
|
801
|
+
/**
|
|
802
|
+
* FinalBufferSizeMismatch: 'Final buffer size mismatch'
|
|
803
|
+
*
|
|
804
|
+
* @category Errors
|
|
805
|
+
* @category generated
|
|
806
|
+
*/
|
|
807
|
+
export class FinalBufferSizeMismatchError extends Error {
|
|
808
|
+
code = 0x179c;
|
|
809
|
+
name = 'FinalBufferSizeMismatch';
|
|
810
|
+
constructor() {
|
|
811
|
+
super('Final buffer size mismatch');
|
|
812
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
813
|
+
Error.captureStackTrace(this, FinalBufferSizeMismatchError);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
createErrorFromCodeLookup.set(0x179c, () => new FinalBufferSizeMismatchError());
|
|
818
|
+
createErrorFromNameLookup.set('FinalBufferSizeMismatch', () => new FinalBufferSizeMismatchError());
|
|
819
|
+
/**
|
|
820
|
+
* SmartAccountCreateDeprecated: 'smart_account_create has been deprecated. Use smart_account_create_v2 instead.'
|
|
821
|
+
*
|
|
822
|
+
* @category Errors
|
|
823
|
+
* @category generated
|
|
824
|
+
*/
|
|
825
|
+
export class SmartAccountCreateDeprecatedError extends Error {
|
|
826
|
+
code = 0x179d;
|
|
827
|
+
name = 'SmartAccountCreateDeprecated';
|
|
828
|
+
constructor() {
|
|
829
|
+
super('smart_account_create has been deprecated. Use smart_account_create_v2 instead.');
|
|
830
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
831
|
+
Error.captureStackTrace(this, SmartAccountCreateDeprecatedError);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
createErrorFromCodeLookup.set(0x179d, () => new SmartAccountCreateDeprecatedError());
|
|
836
|
+
createErrorFromNameLookup.set('SmartAccountCreateDeprecated', () => new SmartAccountCreateDeprecatedError());
|
|
837
|
+
/**
|
|
838
|
+
* ThresholdNotReached: 'Signers do not reach consensus threshold'
|
|
839
|
+
*
|
|
840
|
+
* @category Errors
|
|
841
|
+
* @category generated
|
|
842
|
+
*/
|
|
843
|
+
export class ThresholdNotReachedError extends Error {
|
|
844
|
+
code = 0x179e;
|
|
845
|
+
name = 'ThresholdNotReached';
|
|
846
|
+
constructor() {
|
|
847
|
+
super('Signers do not reach consensus threshold');
|
|
848
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
849
|
+
Error.captureStackTrace(this, ThresholdNotReachedError);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
createErrorFromCodeLookup.set(0x179e, () => new ThresholdNotReachedError());
|
|
854
|
+
createErrorFromNameLookup.set('ThresholdNotReached', () => new ThresholdNotReachedError());
|
|
855
|
+
/**
|
|
856
|
+
* InvalidSignerCount: 'Invalid number of signer accounts. Must be greater or equal to the threshold'
|
|
857
|
+
*
|
|
858
|
+
* @category Errors
|
|
859
|
+
* @category generated
|
|
860
|
+
*/
|
|
861
|
+
export class InvalidSignerCountError extends Error {
|
|
862
|
+
code = 0x179f;
|
|
863
|
+
name = 'InvalidSignerCount';
|
|
864
|
+
constructor() {
|
|
865
|
+
super('Invalid number of signer accounts. Must be greater or equal to the threshold');
|
|
866
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
867
|
+
Error.captureStackTrace(this, InvalidSignerCountError);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
createErrorFromCodeLookup.set(0x179f, () => new InvalidSignerCountError());
|
|
872
|
+
createErrorFromNameLookup.set('InvalidSignerCount', () => new InvalidSignerCountError());
|
|
873
|
+
/**
|
|
874
|
+
* MissingSignature: 'Missing signature'
|
|
875
|
+
*
|
|
876
|
+
* @category Errors
|
|
877
|
+
* @category generated
|
|
878
|
+
*/
|
|
879
|
+
export class MissingSignatureError extends Error {
|
|
880
|
+
code = 0x17a0;
|
|
881
|
+
name = 'MissingSignature';
|
|
882
|
+
constructor() {
|
|
883
|
+
super('Missing signature');
|
|
884
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
885
|
+
Error.captureStackTrace(this, MissingSignatureError);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
createErrorFromCodeLookup.set(0x17a0, () => new MissingSignatureError());
|
|
890
|
+
createErrorFromNameLookup.set('MissingSignature', () => new MissingSignatureError());
|
|
891
|
+
/**
|
|
892
|
+
* InsufficientAggregatePermissions: 'Insufficient aggregate permissions across signing members'
|
|
893
|
+
*
|
|
894
|
+
* @category Errors
|
|
895
|
+
* @category generated
|
|
896
|
+
*/
|
|
897
|
+
export class InsufficientAggregatePermissionsError extends Error {
|
|
898
|
+
code = 0x17a1;
|
|
899
|
+
name = 'InsufficientAggregatePermissions';
|
|
900
|
+
constructor() {
|
|
901
|
+
super('Insufficient aggregate permissions across signing members');
|
|
902
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
903
|
+
Error.captureStackTrace(this, InsufficientAggregatePermissionsError);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
createErrorFromCodeLookup.set(0x17a1, () => new InsufficientAggregatePermissionsError());
|
|
908
|
+
createErrorFromNameLookup.set('InsufficientAggregatePermissions', () => new InsufficientAggregatePermissionsError());
|
|
909
|
+
/**
|
|
910
|
+
* InsufficientVotePermissions: 'Insufficient vote permissions across signing members'
|
|
911
|
+
*
|
|
912
|
+
* @category Errors
|
|
913
|
+
* @category generated
|
|
914
|
+
*/
|
|
915
|
+
export class InsufficientVotePermissionsError extends Error {
|
|
916
|
+
code = 0x17a2;
|
|
917
|
+
name = 'InsufficientVotePermissions';
|
|
918
|
+
constructor() {
|
|
919
|
+
super('Insufficient vote permissions across signing members');
|
|
920
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
921
|
+
Error.captureStackTrace(this, InsufficientVotePermissionsError);
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
createErrorFromCodeLookup.set(0x17a2, () => new InsufficientVotePermissionsError());
|
|
926
|
+
createErrorFromNameLookup.set('InsufficientVotePermissions', () => new InsufficientVotePermissionsError());
|
|
927
|
+
/**
|
|
928
|
+
* TimeLockNotZero: 'Smart account must not be time locked'
|
|
929
|
+
*
|
|
930
|
+
* @category Errors
|
|
931
|
+
* @category generated
|
|
932
|
+
*/
|
|
933
|
+
export class TimeLockNotZeroError extends Error {
|
|
934
|
+
code = 0x17a3;
|
|
935
|
+
name = 'TimeLockNotZero';
|
|
936
|
+
constructor() {
|
|
937
|
+
super('Smart account must not be time locked');
|
|
938
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
939
|
+
Error.captureStackTrace(this, TimeLockNotZeroError);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
createErrorFromCodeLookup.set(0x17a3, () => new TimeLockNotZeroError());
|
|
944
|
+
createErrorFromNameLookup.set('TimeLockNotZero', () => new TimeLockNotZeroError());
|
|
945
|
+
/**
|
|
946
|
+
* NotImplemented: 'Feature not implemented'
|
|
947
|
+
*
|
|
948
|
+
* @category Errors
|
|
949
|
+
* @category generated
|
|
950
|
+
*/
|
|
951
|
+
export class NotImplementedError extends Error {
|
|
952
|
+
code = 0x17a4;
|
|
953
|
+
name = 'NotImplemented';
|
|
954
|
+
constructor() {
|
|
955
|
+
super('Feature not implemented');
|
|
956
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
957
|
+
Error.captureStackTrace(this, NotImplementedError);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
createErrorFromCodeLookup.set(0x17a4, () => new NotImplementedError());
|
|
962
|
+
createErrorFromNameLookup.set('NotImplemented', () => new NotImplementedError());
|
|
963
|
+
/**
|
|
964
|
+
* SpendingLimitInvalidCadenceConfiguration: 'Invalid cadence configuration'
|
|
965
|
+
*
|
|
966
|
+
* @category Errors
|
|
967
|
+
* @category generated
|
|
968
|
+
*/
|
|
969
|
+
export class SpendingLimitInvalidCadenceConfigurationError extends Error {
|
|
970
|
+
code = 0x17a5;
|
|
971
|
+
name = 'SpendingLimitInvalidCadenceConfiguration';
|
|
972
|
+
constructor() {
|
|
973
|
+
super('Invalid cadence configuration');
|
|
974
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
975
|
+
Error.captureStackTrace(this, SpendingLimitInvalidCadenceConfigurationError);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
createErrorFromCodeLookup.set(0x17a5, () => new SpendingLimitInvalidCadenceConfigurationError());
|
|
980
|
+
createErrorFromNameLookup.set('SpendingLimitInvalidCadenceConfiguration', () => new SpendingLimitInvalidCadenceConfigurationError());
|
|
981
|
+
/**
|
|
982
|
+
* InvalidDataConstraint: 'Invalid data constraint'
|
|
983
|
+
*
|
|
984
|
+
* @category Errors
|
|
985
|
+
* @category generated
|
|
986
|
+
*/
|
|
987
|
+
export class InvalidDataConstraintError extends Error {
|
|
988
|
+
code = 0x17a6;
|
|
989
|
+
name = 'InvalidDataConstraint';
|
|
990
|
+
constructor() {
|
|
991
|
+
super('Invalid data constraint');
|
|
992
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
993
|
+
Error.captureStackTrace(this, InvalidDataConstraintError);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
createErrorFromCodeLookup.set(0x17a6, () => new InvalidDataConstraintError());
|
|
998
|
+
createErrorFromNameLookup.set('InvalidDataConstraint', () => new InvalidDataConstraintError());
|
|
999
|
+
/**
|
|
1000
|
+
* InvalidPayload: 'Invalid payload'
|
|
1001
|
+
*
|
|
1002
|
+
* @category Errors
|
|
1003
|
+
* @category generated
|
|
1004
|
+
*/
|
|
1005
|
+
export class InvalidPayloadError extends Error {
|
|
1006
|
+
code = 0x17a7;
|
|
1007
|
+
name = 'InvalidPayload';
|
|
1008
|
+
constructor() {
|
|
1009
|
+
super('Invalid payload');
|
|
1010
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1011
|
+
Error.captureStackTrace(this, InvalidPayloadError);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
createErrorFromCodeLookup.set(0x17a7, () => new InvalidPayloadError());
|
|
1016
|
+
createErrorFromNameLookup.set('InvalidPayload', () => new InvalidPayloadError());
|
|
1017
|
+
/**
|
|
1018
|
+
* ProtectedInstruction: 'Protected instruction'
|
|
1019
|
+
*
|
|
1020
|
+
* @category Errors
|
|
1021
|
+
* @category generated
|
|
1022
|
+
*/
|
|
1023
|
+
export class ProtectedInstructionError extends Error {
|
|
1024
|
+
code = 0x17a8;
|
|
1025
|
+
name = 'ProtectedInstruction';
|
|
1026
|
+
constructor() {
|
|
1027
|
+
super('Protected instruction');
|
|
1028
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1029
|
+
Error.captureStackTrace(this, ProtectedInstructionError);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
createErrorFromCodeLookup.set(0x17a8, () => new ProtectedInstructionError());
|
|
1034
|
+
createErrorFromNameLookup.set('ProtectedInstruction', () => new ProtectedInstructionError());
|
|
1035
|
+
/**
|
|
1036
|
+
* PlaceholderError: 'Placeholder error'
|
|
1037
|
+
*
|
|
1038
|
+
* @category Errors
|
|
1039
|
+
* @category generated
|
|
1040
|
+
*/
|
|
1041
|
+
export class PlaceholderErrorError extends Error {
|
|
1042
|
+
code = 0x17a9;
|
|
1043
|
+
name = 'PlaceholderError';
|
|
1044
|
+
constructor() {
|
|
1045
|
+
super('Placeholder error');
|
|
1046
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1047
|
+
Error.captureStackTrace(this, PlaceholderErrorError);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
createErrorFromCodeLookup.set(0x17a9, () => new PlaceholderErrorError());
|
|
1052
|
+
createErrorFromNameLookup.set('PlaceholderError', () => new PlaceholderErrorError());
|
|
1053
|
+
/**
|
|
1054
|
+
* InvalidPolicyPayload: 'Invalid policy payload'
|
|
1055
|
+
*
|
|
1056
|
+
* @category Errors
|
|
1057
|
+
* @category generated
|
|
1058
|
+
*/
|
|
1059
|
+
export class InvalidPolicyPayloadError extends Error {
|
|
1060
|
+
code = 0x17aa;
|
|
1061
|
+
name = 'InvalidPolicyPayload';
|
|
1062
|
+
constructor() {
|
|
1063
|
+
super('Invalid policy payload');
|
|
1064
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1065
|
+
Error.captureStackTrace(this, InvalidPolicyPayloadError);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
createErrorFromCodeLookup.set(0x17aa, () => new InvalidPolicyPayloadError());
|
|
1070
|
+
createErrorFromNameLookup.set('InvalidPolicyPayload', () => new InvalidPolicyPayloadError());
|
|
1071
|
+
/**
|
|
1072
|
+
* InvalidEmptyPolicy: 'Invalid empty policy'
|
|
1073
|
+
*
|
|
1074
|
+
* @category Errors
|
|
1075
|
+
* @category generated
|
|
1076
|
+
*/
|
|
1077
|
+
export class InvalidEmptyPolicyError extends Error {
|
|
1078
|
+
code = 0x17ab;
|
|
1079
|
+
name = 'InvalidEmptyPolicy';
|
|
1080
|
+
constructor() {
|
|
1081
|
+
super('Invalid empty policy');
|
|
1082
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1083
|
+
Error.captureStackTrace(this, InvalidEmptyPolicyError);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
createErrorFromCodeLookup.set(0x17ab, () => new InvalidEmptyPolicyError());
|
|
1088
|
+
createErrorFromNameLookup.set('InvalidEmptyPolicy', () => new InvalidEmptyPolicyError());
|
|
1089
|
+
/**
|
|
1090
|
+
* TransactionForAnotherPolicy: 'Transaction is for another policy'
|
|
1091
|
+
*
|
|
1092
|
+
* @category Errors
|
|
1093
|
+
* @category generated
|
|
1094
|
+
*/
|
|
1095
|
+
export class TransactionForAnotherPolicyError extends Error {
|
|
1096
|
+
code = 0x17ac;
|
|
1097
|
+
name = 'TransactionForAnotherPolicy';
|
|
1098
|
+
constructor() {
|
|
1099
|
+
super('Transaction is for another policy');
|
|
1100
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1101
|
+
Error.captureStackTrace(this, TransactionForAnotherPolicyError);
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
createErrorFromCodeLookup.set(0x17ac, () => new TransactionForAnotherPolicyError());
|
|
1106
|
+
createErrorFromNameLookup.set('TransactionForAnotherPolicy', () => new TransactionForAnotherPolicyError());
|
|
1107
|
+
/**
|
|
1108
|
+
* ProgramInteractionAsyncPayloadNotAllowedWithSyncTransaction: 'Program interaction sync payload not allowed with async transaction'
|
|
1109
|
+
*
|
|
1110
|
+
* @category Errors
|
|
1111
|
+
* @category generated
|
|
1112
|
+
*/
|
|
1113
|
+
export class ProgramInteractionAsyncPayloadNotAllowedWithSyncTransactionError extends Error {
|
|
1114
|
+
code = 0x17ad;
|
|
1115
|
+
name = 'ProgramInteractionAsyncPayloadNotAllowedWithSyncTransaction';
|
|
1116
|
+
constructor() {
|
|
1117
|
+
super('Program interaction sync payload not allowed with async transaction');
|
|
1118
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1119
|
+
Error.captureStackTrace(this, ProgramInteractionAsyncPayloadNotAllowedWithSyncTransactionError);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
createErrorFromCodeLookup.set(0x17ad, () => new ProgramInteractionAsyncPayloadNotAllowedWithSyncTransactionError());
|
|
1124
|
+
createErrorFromNameLookup.set('ProgramInteractionAsyncPayloadNotAllowedWithSyncTransaction', () => new ProgramInteractionAsyncPayloadNotAllowedWithSyncTransactionError());
|
|
1125
|
+
/**
|
|
1126
|
+
* ProgramInteractionSyncPayloadNotAllowedWithAsyncTransaction: 'Program interaction sync payload not allowed with sync transaction'
|
|
1127
|
+
*
|
|
1128
|
+
* @category Errors
|
|
1129
|
+
* @category generated
|
|
1130
|
+
*/
|
|
1131
|
+
export class ProgramInteractionSyncPayloadNotAllowedWithAsyncTransactionError extends Error {
|
|
1132
|
+
code = 0x17ae;
|
|
1133
|
+
name = 'ProgramInteractionSyncPayloadNotAllowedWithAsyncTransaction';
|
|
1134
|
+
constructor() {
|
|
1135
|
+
super('Program interaction sync payload not allowed with sync transaction');
|
|
1136
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1137
|
+
Error.captureStackTrace(this, ProgramInteractionSyncPayloadNotAllowedWithAsyncTransactionError);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
createErrorFromCodeLookup.set(0x17ae, () => new ProgramInteractionSyncPayloadNotAllowedWithAsyncTransactionError());
|
|
1142
|
+
createErrorFromNameLookup.set('ProgramInteractionSyncPayloadNotAllowedWithAsyncTransaction', () => new ProgramInteractionSyncPayloadNotAllowedWithAsyncTransactionError());
|
|
1143
|
+
/**
|
|
1144
|
+
* ProgramInteractionDataTooShort: 'Program interaction data constraint failed: instruction data too short'
|
|
1145
|
+
*
|
|
1146
|
+
* @category Errors
|
|
1147
|
+
* @category generated
|
|
1148
|
+
*/
|
|
1149
|
+
export class ProgramInteractionDataTooShortError extends Error {
|
|
1150
|
+
code = 0x17af;
|
|
1151
|
+
name = 'ProgramInteractionDataTooShort';
|
|
1152
|
+
constructor() {
|
|
1153
|
+
super('Program interaction data constraint failed: instruction data too short');
|
|
1154
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1155
|
+
Error.captureStackTrace(this, ProgramInteractionDataTooShortError);
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
createErrorFromCodeLookup.set(0x17af, () => new ProgramInteractionDataTooShortError());
|
|
1160
|
+
createErrorFromNameLookup.set('ProgramInteractionDataTooShort', () => new ProgramInteractionDataTooShortError());
|
|
1161
|
+
/**
|
|
1162
|
+
* ProgramInteractionInvalidNumericValue: 'Program interaction data constraint failed: invalid numeric value'
|
|
1163
|
+
*
|
|
1164
|
+
* @category Errors
|
|
1165
|
+
* @category generated
|
|
1166
|
+
*/
|
|
1167
|
+
export class ProgramInteractionInvalidNumericValueError extends Error {
|
|
1168
|
+
code = 0x17b0;
|
|
1169
|
+
name = 'ProgramInteractionInvalidNumericValue';
|
|
1170
|
+
constructor() {
|
|
1171
|
+
super('Program interaction data constraint failed: invalid numeric value');
|
|
1172
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1173
|
+
Error.captureStackTrace(this, ProgramInteractionInvalidNumericValueError);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
createErrorFromCodeLookup.set(0x17b0, () => new ProgramInteractionInvalidNumericValueError());
|
|
1178
|
+
createErrorFromNameLookup.set('ProgramInteractionInvalidNumericValue', () => new ProgramInteractionInvalidNumericValueError());
|
|
1179
|
+
/**
|
|
1180
|
+
* ProgramInteractionInvalidByteSequence: 'Program interaction data constraint failed: invalid byte sequence'
|
|
1181
|
+
*
|
|
1182
|
+
* @category Errors
|
|
1183
|
+
* @category generated
|
|
1184
|
+
*/
|
|
1185
|
+
export class ProgramInteractionInvalidByteSequenceError extends Error {
|
|
1186
|
+
code = 0x17b1;
|
|
1187
|
+
name = 'ProgramInteractionInvalidByteSequence';
|
|
1188
|
+
constructor() {
|
|
1189
|
+
super('Program interaction data constraint failed: invalid byte sequence');
|
|
1190
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1191
|
+
Error.captureStackTrace(this, ProgramInteractionInvalidByteSequenceError);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
createErrorFromCodeLookup.set(0x17b1, () => new ProgramInteractionInvalidByteSequenceError());
|
|
1196
|
+
createErrorFromNameLookup.set('ProgramInteractionInvalidByteSequence', () => new ProgramInteractionInvalidByteSequenceError());
|
|
1197
|
+
/**
|
|
1198
|
+
* ProgramInteractionUnsupportedSliceOperator: 'Program interaction data constraint failed: unsupported operator for byte slice'
|
|
1199
|
+
*
|
|
1200
|
+
* @category Errors
|
|
1201
|
+
* @category generated
|
|
1202
|
+
*/
|
|
1203
|
+
export class ProgramInteractionUnsupportedSliceOperatorError extends Error {
|
|
1204
|
+
code = 0x17b2;
|
|
1205
|
+
name = 'ProgramInteractionUnsupportedSliceOperator';
|
|
1206
|
+
constructor() {
|
|
1207
|
+
super('Program interaction data constraint failed: unsupported operator for byte slice');
|
|
1208
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1209
|
+
Error.captureStackTrace(this, ProgramInteractionUnsupportedSliceOperatorError);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
createErrorFromCodeLookup.set(0x17b2, () => new ProgramInteractionUnsupportedSliceOperatorError());
|
|
1214
|
+
createErrorFromNameLookup.set('ProgramInteractionUnsupportedSliceOperator', () => new ProgramInteractionUnsupportedSliceOperatorError());
|
|
1215
|
+
/**
|
|
1216
|
+
* ProgramInteractionDataParsingError: 'Program interaction constraint failed: instruction data parsing error'
|
|
1217
|
+
*
|
|
1218
|
+
* @category Errors
|
|
1219
|
+
* @category generated
|
|
1220
|
+
*/
|
|
1221
|
+
export class ProgramInteractionDataParsingErrorError extends Error {
|
|
1222
|
+
code = 0x17b3;
|
|
1223
|
+
name = 'ProgramInteractionDataParsingError';
|
|
1224
|
+
constructor() {
|
|
1225
|
+
super('Program interaction constraint failed: instruction data parsing error');
|
|
1226
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1227
|
+
Error.captureStackTrace(this, ProgramInteractionDataParsingErrorError);
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
createErrorFromCodeLookup.set(0x17b3, () => new ProgramInteractionDataParsingErrorError());
|
|
1232
|
+
createErrorFromNameLookup.set('ProgramInteractionDataParsingError', () => new ProgramInteractionDataParsingErrorError());
|
|
1233
|
+
/**
|
|
1234
|
+
* ProgramInteractionProgramIdMismatch: 'Program interaction constraint failed: program ID mismatch'
|
|
1235
|
+
*
|
|
1236
|
+
* @category Errors
|
|
1237
|
+
* @category generated
|
|
1238
|
+
*/
|
|
1239
|
+
export class ProgramInteractionProgramIdMismatchError extends Error {
|
|
1240
|
+
code = 0x17b4;
|
|
1241
|
+
name = 'ProgramInteractionProgramIdMismatch';
|
|
1242
|
+
constructor() {
|
|
1243
|
+
super('Program interaction constraint failed: program ID mismatch');
|
|
1244
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1245
|
+
Error.captureStackTrace(this, ProgramInteractionProgramIdMismatchError);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
createErrorFromCodeLookup.set(0x17b4, () => new ProgramInteractionProgramIdMismatchError());
|
|
1250
|
+
createErrorFromNameLookup.set('ProgramInteractionProgramIdMismatch', () => new ProgramInteractionProgramIdMismatchError());
|
|
1251
|
+
/**
|
|
1252
|
+
* ProgramInteractionAccountConstraintViolated: 'Program interaction constraint violation: account constraint'
|
|
1253
|
+
*
|
|
1254
|
+
* @category Errors
|
|
1255
|
+
* @category generated
|
|
1256
|
+
*/
|
|
1257
|
+
export class ProgramInteractionAccountConstraintViolatedError extends Error {
|
|
1258
|
+
code = 0x17b5;
|
|
1259
|
+
name = 'ProgramInteractionAccountConstraintViolated';
|
|
1260
|
+
constructor() {
|
|
1261
|
+
super('Program interaction constraint violation: account constraint');
|
|
1262
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1263
|
+
Error.captureStackTrace(this, ProgramInteractionAccountConstraintViolatedError);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
createErrorFromCodeLookup.set(0x17b5, () => new ProgramInteractionAccountConstraintViolatedError());
|
|
1268
|
+
createErrorFromNameLookup.set('ProgramInteractionAccountConstraintViolated', () => new ProgramInteractionAccountConstraintViolatedError());
|
|
1269
|
+
/**
|
|
1270
|
+
* ProgramInteractionConstraintIndexOutOfBounds: 'Program interaction constraint violation: instruction constraint index out of bounds'
|
|
1271
|
+
*
|
|
1272
|
+
* @category Errors
|
|
1273
|
+
* @category generated
|
|
1274
|
+
*/
|
|
1275
|
+
export class ProgramInteractionConstraintIndexOutOfBoundsError extends Error {
|
|
1276
|
+
code = 0x17b6;
|
|
1277
|
+
name = 'ProgramInteractionConstraintIndexOutOfBounds';
|
|
1278
|
+
constructor() {
|
|
1279
|
+
super('Program interaction constraint violation: instruction constraint index out of bounds');
|
|
1280
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1281
|
+
Error.captureStackTrace(this, ProgramInteractionConstraintIndexOutOfBoundsError);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
createErrorFromCodeLookup.set(0x17b6, () => new ProgramInteractionConstraintIndexOutOfBoundsError());
|
|
1286
|
+
createErrorFromNameLookup.set('ProgramInteractionConstraintIndexOutOfBounds', () => new ProgramInteractionConstraintIndexOutOfBoundsError());
|
|
1287
|
+
/**
|
|
1288
|
+
* ProgramInteractionInstructionCountMismatch: 'Program interaction constraint violation: instruction count mismatch'
|
|
1289
|
+
*
|
|
1290
|
+
* @category Errors
|
|
1291
|
+
* @category generated
|
|
1292
|
+
*/
|
|
1293
|
+
export class ProgramInteractionInstructionCountMismatchError extends Error {
|
|
1294
|
+
code = 0x17b7;
|
|
1295
|
+
name = 'ProgramInteractionInstructionCountMismatch';
|
|
1296
|
+
constructor() {
|
|
1297
|
+
super('Program interaction constraint violation: instruction count mismatch');
|
|
1298
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1299
|
+
Error.captureStackTrace(this, ProgramInteractionInstructionCountMismatchError);
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
createErrorFromCodeLookup.set(0x17b7, () => new ProgramInteractionInstructionCountMismatchError());
|
|
1304
|
+
createErrorFromNameLookup.set('ProgramInteractionInstructionCountMismatch', () => new ProgramInteractionInstructionCountMismatchError());
|
|
1305
|
+
/**
|
|
1306
|
+
* ProgramInteractionInsufficientLamportAllowance: 'Program interaction constraint violation: insufficient remaining lamport allowance'
|
|
1307
|
+
*
|
|
1308
|
+
* @category Errors
|
|
1309
|
+
* @category generated
|
|
1310
|
+
*/
|
|
1311
|
+
export class ProgramInteractionInsufficientLamportAllowanceError extends Error {
|
|
1312
|
+
code = 0x17b8;
|
|
1313
|
+
name = 'ProgramInteractionInsufficientLamportAllowance';
|
|
1314
|
+
constructor() {
|
|
1315
|
+
super('Program interaction constraint violation: insufficient remaining lamport allowance');
|
|
1316
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1317
|
+
Error.captureStackTrace(this, ProgramInteractionInsufficientLamportAllowanceError);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
createErrorFromCodeLookup.set(0x17b8, () => new ProgramInteractionInsufficientLamportAllowanceError());
|
|
1322
|
+
createErrorFromNameLookup.set('ProgramInteractionInsufficientLamportAllowance', () => new ProgramInteractionInsufficientLamportAllowanceError());
|
|
1323
|
+
/**
|
|
1324
|
+
* ProgramInteractionInsufficientTokenAllowance: 'Program interaction constraint violation: insufficient remaining token allowance'
|
|
1325
|
+
*
|
|
1326
|
+
* @category Errors
|
|
1327
|
+
* @category generated
|
|
1328
|
+
*/
|
|
1329
|
+
export class ProgramInteractionInsufficientTokenAllowanceError extends Error {
|
|
1330
|
+
code = 0x17b9;
|
|
1331
|
+
name = 'ProgramInteractionInsufficientTokenAllowance';
|
|
1332
|
+
constructor() {
|
|
1333
|
+
super('Program interaction constraint violation: insufficient remaining token allowance');
|
|
1334
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1335
|
+
Error.captureStackTrace(this, ProgramInteractionInsufficientTokenAllowanceError);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
createErrorFromCodeLookup.set(0x17b9, () => new ProgramInteractionInsufficientTokenAllowanceError());
|
|
1340
|
+
createErrorFromNameLookup.set('ProgramInteractionInsufficientTokenAllowance', () => new ProgramInteractionInsufficientTokenAllowanceError());
|
|
1341
|
+
/**
|
|
1342
|
+
* ProgramInteractionModifiedIllegalBalance: 'Program interaction constraint violation: modified illegal balance'
|
|
1343
|
+
*
|
|
1344
|
+
* @category Errors
|
|
1345
|
+
* @category generated
|
|
1346
|
+
*/
|
|
1347
|
+
export class ProgramInteractionModifiedIllegalBalanceError extends Error {
|
|
1348
|
+
code = 0x17ba;
|
|
1349
|
+
name = 'ProgramInteractionModifiedIllegalBalance';
|
|
1350
|
+
constructor() {
|
|
1351
|
+
super('Program interaction constraint violation: modified illegal balance');
|
|
1352
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1353
|
+
Error.captureStackTrace(this, ProgramInteractionModifiedIllegalBalanceError);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
createErrorFromCodeLookup.set(0x17ba, () => new ProgramInteractionModifiedIllegalBalanceError());
|
|
1358
|
+
createErrorFromNameLookup.set('ProgramInteractionModifiedIllegalBalance', () => new ProgramInteractionModifiedIllegalBalanceError());
|
|
1359
|
+
/**
|
|
1360
|
+
* ProgramInteractionIllegalTokenAccountModification: 'Program interaction constraint violation: illegal token account modification'
|
|
1361
|
+
*
|
|
1362
|
+
* @category Errors
|
|
1363
|
+
* @category generated
|
|
1364
|
+
*/
|
|
1365
|
+
export class ProgramInteractionIllegalTokenAccountModificationError extends Error {
|
|
1366
|
+
code = 0x17bb;
|
|
1367
|
+
name = 'ProgramInteractionIllegalTokenAccountModification';
|
|
1368
|
+
constructor() {
|
|
1369
|
+
super('Program interaction constraint violation: illegal token account modification');
|
|
1370
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1371
|
+
Error.captureStackTrace(this, ProgramInteractionIllegalTokenAccountModificationError);
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
createErrorFromCodeLookup.set(0x17bb, () => new ProgramInteractionIllegalTokenAccountModificationError());
|
|
1376
|
+
createErrorFromNameLookup.set('ProgramInteractionIllegalTokenAccountModification', () => new ProgramInteractionIllegalTokenAccountModificationError());
|
|
1377
|
+
/**
|
|
1378
|
+
* ProgramInteractionDuplicateSpendingLimit: 'Program interaction invariant violation: duplicate spending limit for the same mint'
|
|
1379
|
+
*
|
|
1380
|
+
* @category Errors
|
|
1381
|
+
* @category generated
|
|
1382
|
+
*/
|
|
1383
|
+
export class ProgramInteractionDuplicateSpendingLimitError extends Error {
|
|
1384
|
+
code = 0x17bc;
|
|
1385
|
+
name = 'ProgramInteractionDuplicateSpendingLimit';
|
|
1386
|
+
constructor() {
|
|
1387
|
+
super('Program interaction invariant violation: duplicate spending limit for the same mint');
|
|
1388
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1389
|
+
Error.captureStackTrace(this, ProgramInteractionDuplicateSpendingLimitError);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
createErrorFromCodeLookup.set(0x17bc, () => new ProgramInteractionDuplicateSpendingLimitError());
|
|
1394
|
+
createErrorFromNameLookup.set('ProgramInteractionDuplicateSpendingLimit', () => new ProgramInteractionDuplicateSpendingLimitError());
|
|
1395
|
+
/**
|
|
1396
|
+
* ProgramInteractionTooManyInstructionConstraints: 'Program interaction constraint violation: too many instruction constraints. Max is 20'
|
|
1397
|
+
*
|
|
1398
|
+
* @category Errors
|
|
1399
|
+
* @category generated
|
|
1400
|
+
*/
|
|
1401
|
+
export class ProgramInteractionTooManyInstructionConstraintsError extends Error {
|
|
1402
|
+
code = 0x17bd;
|
|
1403
|
+
name = 'ProgramInteractionTooManyInstructionConstraints';
|
|
1404
|
+
constructor() {
|
|
1405
|
+
super('Program interaction constraint violation: too many instruction constraints. Max is 20');
|
|
1406
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1407
|
+
Error.captureStackTrace(this, ProgramInteractionTooManyInstructionConstraintsError);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
createErrorFromCodeLookup.set(0x17bd, () => new ProgramInteractionTooManyInstructionConstraintsError());
|
|
1412
|
+
createErrorFromNameLookup.set('ProgramInteractionTooManyInstructionConstraints', () => new ProgramInteractionTooManyInstructionConstraintsError());
|
|
1413
|
+
/**
|
|
1414
|
+
* ProgramInteractionTooManySpendingLimits: 'Program interaction constraint violation: too many spending limits. Max is 10'
|
|
1415
|
+
*
|
|
1416
|
+
* @category Errors
|
|
1417
|
+
* @category generated
|
|
1418
|
+
*/
|
|
1419
|
+
export class ProgramInteractionTooManySpendingLimitsError extends Error {
|
|
1420
|
+
code = 0x17be;
|
|
1421
|
+
name = 'ProgramInteractionTooManySpendingLimits';
|
|
1422
|
+
constructor() {
|
|
1423
|
+
super('Program interaction constraint violation: too many spending limits. Max is 10');
|
|
1424
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1425
|
+
Error.captureStackTrace(this, ProgramInteractionTooManySpendingLimitsError);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
createErrorFromCodeLookup.set(0x17be, () => new ProgramInteractionTooManySpendingLimitsError());
|
|
1430
|
+
createErrorFromNameLookup.set('ProgramInteractionTooManySpendingLimits', () => new ProgramInteractionTooManySpendingLimitsError());
|
|
1431
|
+
/**
|
|
1432
|
+
* ProgramInteractionTemplateHookError: 'Program interaction hook violation: template hook error'
|
|
1433
|
+
*
|
|
1434
|
+
* @category Errors
|
|
1435
|
+
* @category generated
|
|
1436
|
+
*/
|
|
1437
|
+
export class ProgramInteractionTemplateHookErrorError extends Error {
|
|
1438
|
+
code = 0x17bf;
|
|
1439
|
+
name = 'ProgramInteractionTemplateHookError';
|
|
1440
|
+
constructor() {
|
|
1441
|
+
super('Program interaction hook violation: template hook error');
|
|
1442
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1443
|
+
Error.captureStackTrace(this, ProgramInteractionTemplateHookErrorError);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
createErrorFromCodeLookup.set(0x17bf, () => new ProgramInteractionTemplateHookErrorError());
|
|
1448
|
+
createErrorFromNameLookup.set('ProgramInteractionTemplateHookError', () => new ProgramInteractionTemplateHookErrorError());
|
|
1449
|
+
/**
|
|
1450
|
+
* ProgramInteractionHookAuthorityCannotBePartOfHookAccounts: 'Program interaction hook violation: hook authority cannot be part of hook accounts'
|
|
1451
|
+
*
|
|
1452
|
+
* @category Errors
|
|
1453
|
+
* @category generated
|
|
1454
|
+
*/
|
|
1455
|
+
export class ProgramInteractionHookAuthorityCannotBePartOfHookAccountsError extends Error {
|
|
1456
|
+
code = 0x17c0;
|
|
1457
|
+
name = 'ProgramInteractionHookAuthorityCannotBePartOfHookAccounts';
|
|
1458
|
+
constructor() {
|
|
1459
|
+
super('Program interaction hook violation: hook authority cannot be part of hook accounts');
|
|
1460
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1461
|
+
Error.captureStackTrace(this, ProgramInteractionHookAuthorityCannotBePartOfHookAccountsError);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
createErrorFromCodeLookup.set(0x17c0, () => new ProgramInteractionHookAuthorityCannotBePartOfHookAccountsError());
|
|
1466
|
+
createErrorFromNameLookup.set('ProgramInteractionHookAuthorityCannotBePartOfHookAccounts', () => new ProgramInteractionHookAuthorityCannotBePartOfHookAccountsError());
|
|
1467
|
+
/**
|
|
1468
|
+
* SpendingLimitNotActive: 'Spending limit is not active'
|
|
1469
|
+
*
|
|
1470
|
+
* @category Errors
|
|
1471
|
+
* @category generated
|
|
1472
|
+
*/
|
|
1473
|
+
export class SpendingLimitNotActiveError extends Error {
|
|
1474
|
+
code = 0x17c1;
|
|
1475
|
+
name = 'SpendingLimitNotActive';
|
|
1476
|
+
constructor() {
|
|
1477
|
+
super('Spending limit is not active');
|
|
1478
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1479
|
+
Error.captureStackTrace(this, SpendingLimitNotActiveError);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
createErrorFromCodeLookup.set(0x17c1, () => new SpendingLimitNotActiveError());
|
|
1484
|
+
createErrorFromNameLookup.set('SpendingLimitNotActive', () => new SpendingLimitNotActiveError());
|
|
1485
|
+
/**
|
|
1486
|
+
* SpendingLimitExpired: 'Spending limit is expired'
|
|
1487
|
+
*
|
|
1488
|
+
* @category Errors
|
|
1489
|
+
* @category generated
|
|
1490
|
+
*/
|
|
1491
|
+
export class SpendingLimitExpiredError extends Error {
|
|
1492
|
+
code = 0x17c2;
|
|
1493
|
+
name = 'SpendingLimitExpired';
|
|
1494
|
+
constructor() {
|
|
1495
|
+
super('Spending limit is expired');
|
|
1496
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1497
|
+
Error.captureStackTrace(this, SpendingLimitExpiredError);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
createErrorFromCodeLookup.set(0x17c2, () => new SpendingLimitExpiredError());
|
|
1502
|
+
createErrorFromNameLookup.set('SpendingLimitExpired', () => new SpendingLimitExpiredError());
|
|
1503
|
+
/**
|
|
1504
|
+
* SpendingLimitPolicyInvariantAccumulateUnused: 'Spending limit policy invariant violation: usage state cannot be Some() if accumulate_unused is true'
|
|
1505
|
+
*
|
|
1506
|
+
* @category Errors
|
|
1507
|
+
* @category generated
|
|
1508
|
+
*/
|
|
1509
|
+
export class SpendingLimitPolicyInvariantAccumulateUnusedError extends Error {
|
|
1510
|
+
code = 0x17c3;
|
|
1511
|
+
name = 'SpendingLimitPolicyInvariantAccumulateUnused';
|
|
1512
|
+
constructor() {
|
|
1513
|
+
super('Spending limit policy invariant violation: usage state cannot be Some() if accumulate_unused is true');
|
|
1514
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1515
|
+
Error.captureStackTrace(this, SpendingLimitPolicyInvariantAccumulateUnusedError);
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
createErrorFromCodeLookup.set(0x17c3, () => new SpendingLimitPolicyInvariantAccumulateUnusedError());
|
|
1520
|
+
createErrorFromNameLookup.set('SpendingLimitPolicyInvariantAccumulateUnused', () => new SpendingLimitPolicyInvariantAccumulateUnusedError());
|
|
1521
|
+
/**
|
|
1522
|
+
* SpendingLimitViolatesExactQuantityConstraint: 'Amount violates exact quantity constraint'
|
|
1523
|
+
*
|
|
1524
|
+
* @category Errors
|
|
1525
|
+
* @category generated
|
|
1526
|
+
*/
|
|
1527
|
+
export class SpendingLimitViolatesExactQuantityConstraintError extends Error {
|
|
1528
|
+
code = 0x17c4;
|
|
1529
|
+
name = 'SpendingLimitViolatesExactQuantityConstraint';
|
|
1530
|
+
constructor() {
|
|
1531
|
+
super('Amount violates exact quantity constraint');
|
|
1532
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1533
|
+
Error.captureStackTrace(this, SpendingLimitViolatesExactQuantityConstraintError);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
createErrorFromCodeLookup.set(0x17c4, () => new SpendingLimitViolatesExactQuantityConstraintError());
|
|
1538
|
+
createErrorFromNameLookup.set('SpendingLimitViolatesExactQuantityConstraint', () => new SpendingLimitViolatesExactQuantityConstraintError());
|
|
1539
|
+
/**
|
|
1540
|
+
* SpendingLimitViolatesMaxPerUseConstraint: 'Amount violates max per use constraint'
|
|
1541
|
+
*
|
|
1542
|
+
* @category Errors
|
|
1543
|
+
* @category generated
|
|
1544
|
+
*/
|
|
1545
|
+
export class SpendingLimitViolatesMaxPerUseConstraintError extends Error {
|
|
1546
|
+
code = 0x17c5;
|
|
1547
|
+
name = 'SpendingLimitViolatesMaxPerUseConstraint';
|
|
1548
|
+
constructor() {
|
|
1549
|
+
super('Amount violates max per use constraint');
|
|
1550
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1551
|
+
Error.captureStackTrace(this, SpendingLimitViolatesMaxPerUseConstraintError);
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
createErrorFromCodeLookup.set(0x17c5, () => new SpendingLimitViolatesMaxPerUseConstraintError());
|
|
1556
|
+
createErrorFromNameLookup.set('SpendingLimitViolatesMaxPerUseConstraint', () => new SpendingLimitViolatesMaxPerUseConstraintError());
|
|
1557
|
+
/**
|
|
1558
|
+
* SpendingLimitInsufficientRemainingAmount: 'Spending limit is insufficient'
|
|
1559
|
+
*
|
|
1560
|
+
* @category Errors
|
|
1561
|
+
* @category generated
|
|
1562
|
+
*/
|
|
1563
|
+
export class SpendingLimitInsufficientRemainingAmountError extends Error {
|
|
1564
|
+
code = 0x17c6;
|
|
1565
|
+
name = 'SpendingLimitInsufficientRemainingAmount';
|
|
1566
|
+
constructor() {
|
|
1567
|
+
super('Spending limit is insufficient');
|
|
1568
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1569
|
+
Error.captureStackTrace(this, SpendingLimitInsufficientRemainingAmountError);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
createErrorFromCodeLookup.set(0x17c6, () => new SpendingLimitInsufficientRemainingAmountError());
|
|
1574
|
+
createErrorFromNameLookup.set('SpendingLimitInsufficientRemainingAmount', () => new SpendingLimitInsufficientRemainingAmountError());
|
|
1575
|
+
/**
|
|
1576
|
+
* SpendingLimitInvariantMaxPerPeriodZero: 'Spending limit invariant violation: max per period must be non-zero'
|
|
1577
|
+
*
|
|
1578
|
+
* @category Errors
|
|
1579
|
+
* @category generated
|
|
1580
|
+
*/
|
|
1581
|
+
export class SpendingLimitInvariantMaxPerPeriodZeroError extends Error {
|
|
1582
|
+
code = 0x17c7;
|
|
1583
|
+
name = 'SpendingLimitInvariantMaxPerPeriodZero';
|
|
1584
|
+
constructor() {
|
|
1585
|
+
super('Spending limit invariant violation: max per period must be non-zero');
|
|
1586
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1587
|
+
Error.captureStackTrace(this, SpendingLimitInvariantMaxPerPeriodZeroError);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
createErrorFromCodeLookup.set(0x17c7, () => new SpendingLimitInvariantMaxPerPeriodZeroError());
|
|
1592
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantMaxPerPeriodZero', () => new SpendingLimitInvariantMaxPerPeriodZeroError());
|
|
1593
|
+
/**
|
|
1594
|
+
* SpendingLimitInvariantStartTimePositive: 'Spending limit invariant violation: start time must be positive'
|
|
1595
|
+
*
|
|
1596
|
+
* @category Errors
|
|
1597
|
+
* @category generated
|
|
1598
|
+
*/
|
|
1599
|
+
export class SpendingLimitInvariantStartTimePositiveError extends Error {
|
|
1600
|
+
code = 0x17c8;
|
|
1601
|
+
name = 'SpendingLimitInvariantStartTimePositive';
|
|
1602
|
+
constructor() {
|
|
1603
|
+
super('Spending limit invariant violation: start time must be positive');
|
|
1604
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1605
|
+
Error.captureStackTrace(this, SpendingLimitInvariantStartTimePositiveError);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
createErrorFromCodeLookup.set(0x17c8, () => new SpendingLimitInvariantStartTimePositiveError());
|
|
1610
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantStartTimePositive', () => new SpendingLimitInvariantStartTimePositiveError());
|
|
1611
|
+
/**
|
|
1612
|
+
* SpendingLimitInvariantExpirationSmallerThanStart: 'Spending limit invariant violation: expiration must be greater than start'
|
|
1613
|
+
*
|
|
1614
|
+
* @category Errors
|
|
1615
|
+
* @category generated
|
|
1616
|
+
*/
|
|
1617
|
+
export class SpendingLimitInvariantExpirationSmallerThanStartError extends Error {
|
|
1618
|
+
code = 0x17c9;
|
|
1619
|
+
name = 'SpendingLimitInvariantExpirationSmallerThanStart';
|
|
1620
|
+
constructor() {
|
|
1621
|
+
super('Spending limit invariant violation: expiration must be greater than start');
|
|
1622
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1623
|
+
Error.captureStackTrace(this, SpendingLimitInvariantExpirationSmallerThanStartError);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
createErrorFromCodeLookup.set(0x17c9, () => new SpendingLimitInvariantExpirationSmallerThanStartError());
|
|
1628
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantExpirationSmallerThanStart', () => new SpendingLimitInvariantExpirationSmallerThanStartError());
|
|
1629
|
+
/**
|
|
1630
|
+
* SpendingLimitInvariantOverflowEnabledMustHaveExpiration: 'Spending limit invariant violation: overflow enabled must have expiration'
|
|
1631
|
+
*
|
|
1632
|
+
* @category Errors
|
|
1633
|
+
* @category generated
|
|
1634
|
+
*/
|
|
1635
|
+
export class SpendingLimitInvariantOverflowEnabledMustHaveExpirationError extends Error {
|
|
1636
|
+
code = 0x17ca;
|
|
1637
|
+
name = 'SpendingLimitInvariantOverflowEnabledMustHaveExpiration';
|
|
1638
|
+
constructor() {
|
|
1639
|
+
super('Spending limit invariant violation: overflow enabled must have expiration');
|
|
1640
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1641
|
+
Error.captureStackTrace(this, SpendingLimitInvariantOverflowEnabledMustHaveExpirationError);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
createErrorFromCodeLookup.set(0x17ca, () => new SpendingLimitInvariantOverflowEnabledMustHaveExpirationError());
|
|
1646
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantOverflowEnabledMustHaveExpiration', () => new SpendingLimitInvariantOverflowEnabledMustHaveExpirationError());
|
|
1647
|
+
/**
|
|
1648
|
+
* SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabled: 'Spending limit invariant violation: one time period cannot have overflow enabled'
|
|
1649
|
+
*
|
|
1650
|
+
* @category Errors
|
|
1651
|
+
* @category generated
|
|
1652
|
+
*/
|
|
1653
|
+
export class SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabledError extends Error {
|
|
1654
|
+
code = 0x17cb;
|
|
1655
|
+
name = 'SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabled';
|
|
1656
|
+
constructor() {
|
|
1657
|
+
super('Spending limit invariant violation: one time period cannot have overflow enabled');
|
|
1658
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1659
|
+
Error.captureStackTrace(this, SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabledError);
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
createErrorFromCodeLookup.set(0x17cb, () => new SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabledError());
|
|
1664
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabled', () => new SpendingLimitInvariantOneTimePeriodCannotHaveOverflowEnabledError());
|
|
1665
|
+
/**
|
|
1666
|
+
* SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmount: 'Spending limit invariant violation: remaining amount must be less than max amount'
|
|
1667
|
+
*
|
|
1668
|
+
* @category Errors
|
|
1669
|
+
* @category generated
|
|
1670
|
+
*/
|
|
1671
|
+
export class SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmountError extends Error {
|
|
1672
|
+
code = 0x17cc;
|
|
1673
|
+
name = 'SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmount';
|
|
1674
|
+
constructor() {
|
|
1675
|
+
super('Spending limit invariant violation: remaining amount must be less than max amount');
|
|
1676
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1677
|
+
Error.captureStackTrace(this, SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmountError);
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
createErrorFromCodeLookup.set(0x17cc, () => new SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmountError());
|
|
1682
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmount', () => new SpendingLimitInvariantOverflowRemainingAmountGreaterThanMaxAmountError());
|
|
1683
|
+
/**
|
|
1684
|
+
* SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriod: 'Spending limit invariant violation: remaining amount must be less than or equal to max per period'
|
|
1685
|
+
*
|
|
1686
|
+
* @category Errors
|
|
1687
|
+
* @category generated
|
|
1688
|
+
*/
|
|
1689
|
+
export class SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriodError extends Error {
|
|
1690
|
+
code = 0x17cd;
|
|
1691
|
+
name = 'SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriod';
|
|
1692
|
+
constructor() {
|
|
1693
|
+
super('Spending limit invariant violation: remaining amount must be less than or equal to max per period');
|
|
1694
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1695
|
+
Error.captureStackTrace(this, SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriodError);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
createErrorFromCodeLookup.set(0x17cd, () => new SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriodError());
|
|
1700
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriod', () => new SpendingLimitInvariantRemainingAmountGreaterThanMaxPerPeriodError());
|
|
1701
|
+
/**
|
|
1702
|
+
* SpendingLimitInvariantExactQuantityMaxPerUseZero: 'Spending limit invariant violation: exact quantity must have max per use non-zero'
|
|
1703
|
+
*
|
|
1704
|
+
* @category Errors
|
|
1705
|
+
* @category generated
|
|
1706
|
+
*/
|
|
1707
|
+
export class SpendingLimitInvariantExactQuantityMaxPerUseZeroError extends Error {
|
|
1708
|
+
code = 0x17ce;
|
|
1709
|
+
name = 'SpendingLimitInvariantExactQuantityMaxPerUseZero';
|
|
1710
|
+
constructor() {
|
|
1711
|
+
super('Spending limit invariant violation: exact quantity must have max per use non-zero');
|
|
1712
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1713
|
+
Error.captureStackTrace(this, SpendingLimitInvariantExactQuantityMaxPerUseZeroError);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
createErrorFromCodeLookup.set(0x17ce, () => new SpendingLimitInvariantExactQuantityMaxPerUseZeroError());
|
|
1718
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantExactQuantityMaxPerUseZero', () => new SpendingLimitInvariantExactQuantityMaxPerUseZeroError());
|
|
1719
|
+
/**
|
|
1720
|
+
* SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriod: 'Spending limit invariant violation: max per use must be less than or equal to max per period'
|
|
1721
|
+
*
|
|
1722
|
+
* @category Errors
|
|
1723
|
+
* @category generated
|
|
1724
|
+
*/
|
|
1725
|
+
export class SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriodError extends Error {
|
|
1726
|
+
code = 0x17cf;
|
|
1727
|
+
name = 'SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriod';
|
|
1728
|
+
constructor() {
|
|
1729
|
+
super('Spending limit invariant violation: max per use must be less than or equal to max per period');
|
|
1730
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1731
|
+
Error.captureStackTrace(this, SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriodError);
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
createErrorFromCodeLookup.set(0x17cf, () => new SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriodError());
|
|
1736
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriod', () => new SpendingLimitInvariantMaxPerUseGreaterThanMaxPerPeriodError());
|
|
1737
|
+
/**
|
|
1738
|
+
* SpendingLimitInvariantCustomPeriodNegative: 'Spending limit invariant violation: custom period must be positive'
|
|
1739
|
+
*
|
|
1740
|
+
* @category Errors
|
|
1741
|
+
* @category generated
|
|
1742
|
+
*/
|
|
1743
|
+
export class SpendingLimitInvariantCustomPeriodNegativeError extends Error {
|
|
1744
|
+
code = 0x17d0;
|
|
1745
|
+
name = 'SpendingLimitInvariantCustomPeriodNegative';
|
|
1746
|
+
constructor() {
|
|
1747
|
+
super('Spending limit invariant violation: custom period must be positive');
|
|
1748
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1749
|
+
Error.captureStackTrace(this, SpendingLimitInvariantCustomPeriodNegativeError);
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
createErrorFromCodeLookup.set(0x17d0, () => new SpendingLimitInvariantCustomPeriodNegativeError());
|
|
1754
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantCustomPeriodNegative', () => new SpendingLimitInvariantCustomPeriodNegativeError());
|
|
1755
|
+
/**
|
|
1756
|
+
* SpendingLimitPolicyInvariantDuplicateDestinations: 'Spending limit policy invariant violation: cannot have duplicate destinations for the same mint'
|
|
1757
|
+
*
|
|
1758
|
+
* @category Errors
|
|
1759
|
+
* @category generated
|
|
1760
|
+
*/
|
|
1761
|
+
export class SpendingLimitPolicyInvariantDuplicateDestinationsError extends Error {
|
|
1762
|
+
code = 0x17d1;
|
|
1763
|
+
name = 'SpendingLimitPolicyInvariantDuplicateDestinations';
|
|
1764
|
+
constructor() {
|
|
1765
|
+
super('Spending limit policy invariant violation: cannot have duplicate destinations for the same mint');
|
|
1766
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1767
|
+
Error.captureStackTrace(this, SpendingLimitPolicyInvariantDuplicateDestinationsError);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
createErrorFromCodeLookup.set(0x17d1, () => new SpendingLimitPolicyInvariantDuplicateDestinationsError());
|
|
1772
|
+
createErrorFromNameLookup.set('SpendingLimitPolicyInvariantDuplicateDestinations', () => new SpendingLimitPolicyInvariantDuplicateDestinationsError());
|
|
1773
|
+
/**
|
|
1774
|
+
* SpendingLimitInvariantLastResetOutOfBounds: 'Spending limit invariant violation: last reset must be between start and expiration'
|
|
1775
|
+
*
|
|
1776
|
+
* @category Errors
|
|
1777
|
+
* @category generated
|
|
1778
|
+
*/
|
|
1779
|
+
export class SpendingLimitInvariantLastResetOutOfBoundsError extends Error {
|
|
1780
|
+
code = 0x17d2;
|
|
1781
|
+
name = 'SpendingLimitInvariantLastResetOutOfBounds';
|
|
1782
|
+
constructor() {
|
|
1783
|
+
super('Spending limit invariant violation: last reset must be between start and expiration');
|
|
1784
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1785
|
+
Error.captureStackTrace(this, SpendingLimitInvariantLastResetOutOfBoundsError);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
createErrorFromCodeLookup.set(0x17d2, () => new SpendingLimitInvariantLastResetOutOfBoundsError());
|
|
1790
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantLastResetOutOfBounds', () => new SpendingLimitInvariantLastResetOutOfBoundsError());
|
|
1791
|
+
/**
|
|
1792
|
+
* SpendingLimitInvariantLastResetSmallerThanStart: 'Spending limit invariant violation: last reset must be greater than start'
|
|
1793
|
+
*
|
|
1794
|
+
* @category Errors
|
|
1795
|
+
* @category generated
|
|
1796
|
+
*/
|
|
1797
|
+
export class SpendingLimitInvariantLastResetSmallerThanStartError extends Error {
|
|
1798
|
+
code = 0x17d3;
|
|
1799
|
+
name = 'SpendingLimitInvariantLastResetSmallerThanStart';
|
|
1800
|
+
constructor() {
|
|
1801
|
+
super('Spending limit invariant violation: last reset must be greater than start');
|
|
1802
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1803
|
+
Error.captureStackTrace(this, SpendingLimitInvariantLastResetSmallerThanStartError);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
createErrorFromCodeLookup.set(0x17d3, () => new SpendingLimitInvariantLastResetSmallerThanStartError());
|
|
1808
|
+
createErrorFromNameLookup.set('SpendingLimitInvariantLastResetSmallerThanStart', () => new SpendingLimitInvariantLastResetSmallerThanStartError());
|
|
1809
|
+
/**
|
|
1810
|
+
* InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowed: 'Internal fund transfer policy invariant violation: source account index is not allowed'
|
|
1811
|
+
*
|
|
1812
|
+
* @category Errors
|
|
1813
|
+
* @category generated
|
|
1814
|
+
*/
|
|
1815
|
+
export class InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowedError extends Error {
|
|
1816
|
+
code = 0x17d4;
|
|
1817
|
+
name = 'InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowed';
|
|
1818
|
+
constructor() {
|
|
1819
|
+
super('Internal fund transfer policy invariant violation: source account index is not allowed');
|
|
1820
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1821
|
+
Error.captureStackTrace(this, InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowedError);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
createErrorFromCodeLookup.set(0x17d4, () => new InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowedError());
|
|
1826
|
+
createErrorFromNameLookup.set('InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowed', () => new InternalFundTransferPolicyInvariantSourceAccountIndexNotAllowedError());
|
|
1827
|
+
/**
|
|
1828
|
+
* InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowed: 'Internal fund transfer policy invariant violation: destination account index is not allowed'
|
|
1829
|
+
*
|
|
1830
|
+
* @category Errors
|
|
1831
|
+
* @category generated
|
|
1832
|
+
*/
|
|
1833
|
+
export class InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowedError extends Error {
|
|
1834
|
+
code = 0x17d5;
|
|
1835
|
+
name = 'InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowed';
|
|
1836
|
+
constructor() {
|
|
1837
|
+
super('Internal fund transfer policy invariant violation: destination account index is not allowed');
|
|
1838
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1839
|
+
Error.captureStackTrace(this, InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowedError);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
createErrorFromCodeLookup.set(0x17d5, () => new InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowedError());
|
|
1844
|
+
createErrorFromNameLookup.set('InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowed', () => new InternalFundTransferPolicyInvariantDestinationAccountIndexNotAllowedError());
|
|
1845
|
+
/**
|
|
1846
|
+
* InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSame: 'Internal fund transfer policy invariant violation: source and destination cannot be the same'
|
|
1847
|
+
*
|
|
1848
|
+
* @category Errors
|
|
1849
|
+
* @category generated
|
|
1850
|
+
*/
|
|
1851
|
+
export class InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSameError extends Error {
|
|
1852
|
+
code = 0x17d6;
|
|
1853
|
+
name = 'InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSame';
|
|
1854
|
+
constructor() {
|
|
1855
|
+
super('Internal fund transfer policy invariant violation: source and destination cannot be the same');
|
|
1856
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1857
|
+
Error.captureStackTrace(this, InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSameError);
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
createErrorFromCodeLookup.set(0x17d6, () => new InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSameError());
|
|
1862
|
+
createErrorFromNameLookup.set('InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSame', () => new InternalFundTransferPolicyInvariantSourceAndDestinationCannotBeTheSameError());
|
|
1863
|
+
/**
|
|
1864
|
+
* InternalFundTransferPolicyInvariantMintNotAllowed: 'Internal fund transfer policy invariant violation: mint is not allowed'
|
|
1865
|
+
*
|
|
1866
|
+
* @category Errors
|
|
1867
|
+
* @category generated
|
|
1868
|
+
*/
|
|
1869
|
+
export class InternalFundTransferPolicyInvariantMintNotAllowedError extends Error {
|
|
1870
|
+
code = 0x17d7;
|
|
1871
|
+
name = 'InternalFundTransferPolicyInvariantMintNotAllowed';
|
|
1872
|
+
constructor() {
|
|
1873
|
+
super('Internal fund transfer policy invariant violation: mint is not allowed');
|
|
1874
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1875
|
+
Error.captureStackTrace(this, InternalFundTransferPolicyInvariantMintNotAllowedError);
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
createErrorFromCodeLookup.set(0x17d7, () => new InternalFundTransferPolicyInvariantMintNotAllowedError());
|
|
1880
|
+
createErrorFromNameLookup.set('InternalFundTransferPolicyInvariantMintNotAllowed', () => new InternalFundTransferPolicyInvariantMintNotAllowedError());
|
|
1881
|
+
/**
|
|
1882
|
+
* InternalFundTransferPolicyInvariantAmountZero: 'Internal fund transfer policy invariant violation: amount must be greater than 0'
|
|
1883
|
+
*
|
|
1884
|
+
* @category Errors
|
|
1885
|
+
* @category generated
|
|
1886
|
+
*/
|
|
1887
|
+
export class InternalFundTransferPolicyInvariantAmountZeroError extends Error {
|
|
1888
|
+
code = 0x17d8;
|
|
1889
|
+
name = 'InternalFundTransferPolicyInvariantAmountZero';
|
|
1890
|
+
constructor() {
|
|
1891
|
+
super('Internal fund transfer policy invariant violation: amount must be greater than 0');
|
|
1892
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1893
|
+
Error.captureStackTrace(this, InternalFundTransferPolicyInvariantAmountZeroError);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
createErrorFromCodeLookup.set(0x17d8, () => new InternalFundTransferPolicyInvariantAmountZeroError());
|
|
1898
|
+
createErrorFromNameLookup.set('InternalFundTransferPolicyInvariantAmountZero', () => new InternalFundTransferPolicyInvariantAmountZeroError());
|
|
1899
|
+
/**
|
|
1900
|
+
* InternalFundTransferPolicyInvariantDuplicateMints: 'Internal fund transfer policy invariant violation: cannot have duplicate mints'
|
|
1901
|
+
*
|
|
1902
|
+
* @category Errors
|
|
1903
|
+
* @category generated
|
|
1904
|
+
*/
|
|
1905
|
+
export class InternalFundTransferPolicyInvariantDuplicateMintsError extends Error {
|
|
1906
|
+
code = 0x17d9;
|
|
1907
|
+
name = 'InternalFundTransferPolicyInvariantDuplicateMints';
|
|
1908
|
+
constructor() {
|
|
1909
|
+
super('Internal fund transfer policy invariant violation: cannot have duplicate mints');
|
|
1910
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1911
|
+
Error.captureStackTrace(this, InternalFundTransferPolicyInvariantDuplicateMintsError);
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
createErrorFromCodeLookup.set(0x17d9, () => new InternalFundTransferPolicyInvariantDuplicateMintsError());
|
|
1916
|
+
createErrorFromNameLookup.set('InternalFundTransferPolicyInvariantDuplicateMints', () => new InternalFundTransferPolicyInvariantDuplicateMintsError());
|
|
1917
|
+
/**
|
|
1918
|
+
* ConsensusAccountNotSettings: 'Consensus account is not a settings'
|
|
1919
|
+
*
|
|
1920
|
+
* @category Errors
|
|
1921
|
+
* @category generated
|
|
1922
|
+
*/
|
|
1923
|
+
export class ConsensusAccountNotSettingsError extends Error {
|
|
1924
|
+
code = 0x17da;
|
|
1925
|
+
name = 'ConsensusAccountNotSettings';
|
|
1926
|
+
constructor() {
|
|
1927
|
+
super('Consensus account is not a settings');
|
|
1928
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1929
|
+
Error.captureStackTrace(this, ConsensusAccountNotSettingsError);
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
createErrorFromCodeLookup.set(0x17da, () => new ConsensusAccountNotSettingsError());
|
|
1934
|
+
createErrorFromNameLookup.set('ConsensusAccountNotSettings', () => new ConsensusAccountNotSettingsError());
|
|
1935
|
+
/**
|
|
1936
|
+
* ConsensusAccountNotPolicy: 'Consensus account is not a policy'
|
|
1937
|
+
*
|
|
1938
|
+
* @category Errors
|
|
1939
|
+
* @category generated
|
|
1940
|
+
*/
|
|
1941
|
+
export class ConsensusAccountNotPolicyError extends Error {
|
|
1942
|
+
code = 0x17db;
|
|
1943
|
+
name = 'ConsensusAccountNotPolicy';
|
|
1944
|
+
constructor() {
|
|
1945
|
+
super('Consensus account is not a policy');
|
|
1946
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1947
|
+
Error.captureStackTrace(this, ConsensusAccountNotPolicyError);
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
createErrorFromCodeLookup.set(0x17db, () => new ConsensusAccountNotPolicyError());
|
|
1952
|
+
createErrorFromNameLookup.set('ConsensusAccountNotPolicy', () => new ConsensusAccountNotPolicyError());
|
|
1953
|
+
/**
|
|
1954
|
+
* SettingsChangePolicyActionsMustBeNonZero: 'Settings change policy invariant violation: actions must be non-zero'
|
|
1955
|
+
*
|
|
1956
|
+
* @category Errors
|
|
1957
|
+
* @category generated
|
|
1958
|
+
*/
|
|
1959
|
+
export class SettingsChangePolicyActionsMustBeNonZeroError extends Error {
|
|
1960
|
+
code = 0x17dc;
|
|
1961
|
+
name = 'SettingsChangePolicyActionsMustBeNonZero';
|
|
1962
|
+
constructor() {
|
|
1963
|
+
super('Settings change policy invariant violation: actions must be non-zero');
|
|
1964
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1965
|
+
Error.captureStackTrace(this, SettingsChangePolicyActionsMustBeNonZeroError);
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
createErrorFromCodeLookup.set(0x17dc, () => new SettingsChangePolicyActionsMustBeNonZeroError());
|
|
1970
|
+
createErrorFromNameLookup.set('SettingsChangePolicyActionsMustBeNonZero', () => new SettingsChangePolicyActionsMustBeNonZeroError());
|
|
1971
|
+
/**
|
|
1972
|
+
* SettingsChangeInvalidSettingsKey: 'Settings change policy violation: submitted settings account must match policy settings key'
|
|
1973
|
+
*
|
|
1974
|
+
* @category Errors
|
|
1975
|
+
* @category generated
|
|
1976
|
+
*/
|
|
1977
|
+
export class SettingsChangeInvalidSettingsKeyError extends Error {
|
|
1978
|
+
code = 0x17dd;
|
|
1979
|
+
name = 'SettingsChangeInvalidSettingsKey';
|
|
1980
|
+
constructor() {
|
|
1981
|
+
super('Settings change policy violation: submitted settings account must match policy settings key');
|
|
1982
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1983
|
+
Error.captureStackTrace(this, SettingsChangeInvalidSettingsKeyError);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
createErrorFromCodeLookup.set(0x17dd, () => new SettingsChangeInvalidSettingsKeyError());
|
|
1988
|
+
createErrorFromNameLookup.set('SettingsChangeInvalidSettingsKey', () => new SettingsChangeInvalidSettingsKeyError());
|
|
1989
|
+
/**
|
|
1990
|
+
* SettingsChangeInvalidSettingsAccount: 'Settings change policy violation: submitted settings account must be writable'
|
|
1991
|
+
*
|
|
1992
|
+
* @category Errors
|
|
1993
|
+
* @category generated
|
|
1994
|
+
*/
|
|
1995
|
+
export class SettingsChangeInvalidSettingsAccountError extends Error {
|
|
1996
|
+
code = 0x17de;
|
|
1997
|
+
name = 'SettingsChangeInvalidSettingsAccount';
|
|
1998
|
+
constructor() {
|
|
1999
|
+
super('Settings change policy violation: submitted settings account must be writable');
|
|
2000
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2001
|
+
Error.captureStackTrace(this, SettingsChangeInvalidSettingsAccountError);
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
createErrorFromCodeLookup.set(0x17de, () => new SettingsChangeInvalidSettingsAccountError());
|
|
2006
|
+
createErrorFromNameLookup.set('SettingsChangeInvalidSettingsAccount', () => new SettingsChangeInvalidSettingsAccountError());
|
|
2007
|
+
/**
|
|
2008
|
+
* SettingsChangeInvalidRentPayer: 'Settings change policy violation: rent payer must be writable and signer'
|
|
2009
|
+
*
|
|
2010
|
+
* @category Errors
|
|
2011
|
+
* @category generated
|
|
2012
|
+
*/
|
|
2013
|
+
export class SettingsChangeInvalidRentPayerError extends Error {
|
|
2014
|
+
code = 0x17df;
|
|
2015
|
+
name = 'SettingsChangeInvalidRentPayer';
|
|
2016
|
+
constructor() {
|
|
2017
|
+
super('Settings change policy violation: rent payer must be writable and signer');
|
|
2018
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2019
|
+
Error.captureStackTrace(this, SettingsChangeInvalidRentPayerError);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
createErrorFromCodeLookup.set(0x17df, () => new SettingsChangeInvalidRentPayerError());
|
|
2024
|
+
createErrorFromNameLookup.set('SettingsChangeInvalidRentPayer', () => new SettingsChangeInvalidRentPayerError());
|
|
2025
|
+
/**
|
|
2026
|
+
* SettingsChangeInvalidSystemProgram: 'Settings change policy violation: system program must be the system program'
|
|
2027
|
+
*
|
|
2028
|
+
* @category Errors
|
|
2029
|
+
* @category generated
|
|
2030
|
+
*/
|
|
2031
|
+
export class SettingsChangeInvalidSystemProgramError extends Error {
|
|
2032
|
+
code = 0x17e0;
|
|
2033
|
+
name = 'SettingsChangeInvalidSystemProgram';
|
|
2034
|
+
constructor() {
|
|
2035
|
+
super('Settings change policy violation: system program must be the system program');
|
|
2036
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2037
|
+
Error.captureStackTrace(this, SettingsChangeInvalidSystemProgramError);
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
createErrorFromCodeLookup.set(0x17e0, () => new SettingsChangeInvalidSystemProgramError());
|
|
2042
|
+
createErrorFromNameLookup.set('SettingsChangeInvalidSystemProgram', () => new SettingsChangeInvalidSystemProgramError());
|
|
2043
|
+
/**
|
|
2044
|
+
* SettingsChangeAddSignerViolation: 'Settings change policy violation: signer does not match allowed signer'
|
|
2045
|
+
*
|
|
2046
|
+
* @category Errors
|
|
2047
|
+
* @category generated
|
|
2048
|
+
*/
|
|
2049
|
+
export class SettingsChangeAddSignerViolationError extends Error {
|
|
2050
|
+
code = 0x17e1;
|
|
2051
|
+
name = 'SettingsChangeAddSignerViolation';
|
|
2052
|
+
constructor() {
|
|
2053
|
+
super('Settings change policy violation: signer does not match allowed signer');
|
|
2054
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2055
|
+
Error.captureStackTrace(this, SettingsChangeAddSignerViolationError);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
createErrorFromCodeLookup.set(0x17e1, () => new SettingsChangeAddSignerViolationError());
|
|
2060
|
+
createErrorFromNameLookup.set('SettingsChangeAddSignerViolation', () => new SettingsChangeAddSignerViolationError());
|
|
2061
|
+
/**
|
|
2062
|
+
* SettingsChangeAddSignerPermissionsViolation: 'Settings change policy violation: signer permissions does not match allowed signer permissions'
|
|
2063
|
+
*
|
|
2064
|
+
* @category Errors
|
|
2065
|
+
* @category generated
|
|
2066
|
+
*/
|
|
2067
|
+
export class SettingsChangeAddSignerPermissionsViolationError extends Error {
|
|
2068
|
+
code = 0x17e2;
|
|
2069
|
+
name = 'SettingsChangeAddSignerPermissionsViolation';
|
|
2070
|
+
constructor() {
|
|
2071
|
+
super('Settings change policy violation: signer permissions does not match allowed signer permissions');
|
|
2072
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2073
|
+
Error.captureStackTrace(this, SettingsChangeAddSignerPermissionsViolationError);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
createErrorFromCodeLookup.set(0x17e2, () => new SettingsChangeAddSignerPermissionsViolationError());
|
|
2078
|
+
createErrorFromNameLookup.set('SettingsChangeAddSignerPermissionsViolation', () => new SettingsChangeAddSignerPermissionsViolationError());
|
|
2079
|
+
/**
|
|
2080
|
+
* SettingsChangeRemoveSignerViolation: 'Settings change policy violation: signer removal does not mach allowed signer removal'
|
|
2081
|
+
*
|
|
2082
|
+
* @category Errors
|
|
2083
|
+
* @category generated
|
|
2084
|
+
*/
|
|
2085
|
+
export class SettingsChangeRemoveSignerViolationError extends Error {
|
|
2086
|
+
code = 0x17e3;
|
|
2087
|
+
name = 'SettingsChangeRemoveSignerViolation';
|
|
2088
|
+
constructor() {
|
|
2089
|
+
super('Settings change policy violation: signer removal does not mach allowed signer removal');
|
|
2090
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2091
|
+
Error.captureStackTrace(this, SettingsChangeRemoveSignerViolationError);
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
createErrorFromCodeLookup.set(0x17e3, () => new SettingsChangeRemoveSignerViolationError());
|
|
2096
|
+
createErrorFromNameLookup.set('SettingsChangeRemoveSignerViolation', () => new SettingsChangeRemoveSignerViolationError());
|
|
2097
|
+
/**
|
|
2098
|
+
* SettingsChangeChangeTimelockViolation: 'Settings change policy violation: time lock does not match allowed time lock'
|
|
2099
|
+
*
|
|
2100
|
+
* @category Errors
|
|
2101
|
+
* @category generated
|
|
2102
|
+
*/
|
|
2103
|
+
export class SettingsChangeChangeTimelockViolationError extends Error {
|
|
2104
|
+
code = 0x17e4;
|
|
2105
|
+
name = 'SettingsChangeChangeTimelockViolation';
|
|
2106
|
+
constructor() {
|
|
2107
|
+
super('Settings change policy violation: time lock does not match allowed time lock');
|
|
2108
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2109
|
+
Error.captureStackTrace(this, SettingsChangeChangeTimelockViolationError);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
createErrorFromCodeLookup.set(0x17e4, () => new SettingsChangeChangeTimelockViolationError());
|
|
2114
|
+
createErrorFromNameLookup.set('SettingsChangeChangeTimelockViolation', () => new SettingsChangeChangeTimelockViolationError());
|
|
2115
|
+
/**
|
|
2116
|
+
* SettingsChangeActionMismatch: 'Settings change policy violation: action does not match allowed action'
|
|
2117
|
+
*
|
|
2118
|
+
* @category Errors
|
|
2119
|
+
* @category generated
|
|
2120
|
+
*/
|
|
2121
|
+
export class SettingsChangeActionMismatchError extends Error {
|
|
2122
|
+
code = 0x17e5;
|
|
2123
|
+
name = 'SettingsChangeActionMismatch';
|
|
2124
|
+
constructor() {
|
|
2125
|
+
super('Settings change policy violation: action does not match allowed action');
|
|
2126
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2127
|
+
Error.captureStackTrace(this, SettingsChangeActionMismatchError);
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
createErrorFromCodeLookup.set(0x17e5, () => new SettingsChangeActionMismatchError());
|
|
2132
|
+
createErrorFromNameLookup.set('SettingsChangeActionMismatch', () => new SettingsChangeActionMismatchError());
|
|
2133
|
+
/**
|
|
2134
|
+
* SettingsChangePolicyInvariantDuplicateActions: 'Settings change policy invariant violation: cannot have duplicate actions'
|
|
2135
|
+
*
|
|
2136
|
+
* @category Errors
|
|
2137
|
+
* @category generated
|
|
2138
|
+
*/
|
|
2139
|
+
export class SettingsChangePolicyInvariantDuplicateActionsError extends Error {
|
|
2140
|
+
code = 0x17e6;
|
|
2141
|
+
name = 'SettingsChangePolicyInvariantDuplicateActions';
|
|
2142
|
+
constructor() {
|
|
2143
|
+
super('Settings change policy invariant violation: cannot have duplicate actions');
|
|
2144
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2145
|
+
Error.captureStackTrace(this, SettingsChangePolicyInvariantDuplicateActionsError);
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
createErrorFromCodeLookup.set(0x17e6, () => new SettingsChangePolicyInvariantDuplicateActionsError());
|
|
2150
|
+
createErrorFromNameLookup.set('SettingsChangePolicyInvariantDuplicateActions', () => new SettingsChangePolicyInvariantDuplicateActionsError());
|
|
2151
|
+
/**
|
|
2152
|
+
* SettingsChangePolicyInvariantActionIndicesActionsLengthMismatch: 'Settings change policy invariant violation: action indices must match actions length'
|
|
2153
|
+
*
|
|
2154
|
+
* @category Errors
|
|
2155
|
+
* @category generated
|
|
2156
|
+
*/
|
|
2157
|
+
export class SettingsChangePolicyInvariantActionIndicesActionsLengthMismatchError extends Error {
|
|
2158
|
+
code = 0x17e7;
|
|
2159
|
+
name = 'SettingsChangePolicyInvariantActionIndicesActionsLengthMismatch';
|
|
2160
|
+
constructor() {
|
|
2161
|
+
super('Settings change policy invariant violation: action indices must match actions length');
|
|
2162
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2163
|
+
Error.captureStackTrace(this, SettingsChangePolicyInvariantActionIndicesActionsLengthMismatchError);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
createErrorFromCodeLookup.set(0x17e7, () => new SettingsChangePolicyInvariantActionIndicesActionsLengthMismatchError());
|
|
2168
|
+
createErrorFromNameLookup.set('SettingsChangePolicyInvariantActionIndicesActionsLengthMismatch', () => new SettingsChangePolicyInvariantActionIndicesActionsLengthMismatchError());
|
|
2169
|
+
/**
|
|
2170
|
+
* SettingsChangePolicyInvariantActionIndexOutOfBounds: 'Settings change policy invariant violation: action index out of bounds'
|
|
2171
|
+
*
|
|
2172
|
+
* @category Errors
|
|
2173
|
+
* @category generated
|
|
2174
|
+
*/
|
|
2175
|
+
export class SettingsChangePolicyInvariantActionIndexOutOfBoundsError extends Error {
|
|
2176
|
+
code = 0x17e8;
|
|
2177
|
+
name = 'SettingsChangePolicyInvariantActionIndexOutOfBounds';
|
|
2178
|
+
constructor() {
|
|
2179
|
+
super('Settings change policy invariant violation: action index out of bounds');
|
|
2180
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2181
|
+
Error.captureStackTrace(this, SettingsChangePolicyInvariantActionIndexOutOfBoundsError);
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
createErrorFromCodeLookup.set(0x17e8, () => new SettingsChangePolicyInvariantActionIndexOutOfBoundsError());
|
|
2186
|
+
createErrorFromNameLookup.set('SettingsChangePolicyInvariantActionIndexOutOfBounds', () => new SettingsChangePolicyInvariantActionIndexOutOfBoundsError());
|
|
2187
|
+
/**
|
|
2188
|
+
* PolicyNotActiveYet: 'Policy is not active yet'
|
|
2189
|
+
*
|
|
2190
|
+
* @category Errors
|
|
2191
|
+
* @category generated
|
|
2192
|
+
*/
|
|
2193
|
+
export class PolicyNotActiveYetError extends Error {
|
|
2194
|
+
code = 0x17e9;
|
|
2195
|
+
name = 'PolicyNotActiveYet';
|
|
2196
|
+
constructor() {
|
|
2197
|
+
super('Policy is not active yet');
|
|
2198
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2199
|
+
Error.captureStackTrace(this, PolicyNotActiveYetError);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
createErrorFromCodeLookup.set(0x17e9, () => new PolicyNotActiveYetError());
|
|
2204
|
+
createErrorFromNameLookup.set('PolicyNotActiveYet', () => new PolicyNotActiveYetError());
|
|
2205
|
+
/**
|
|
2206
|
+
* PolicyInvariantInvalidExpiration: 'Policy invariant violation: invalid policy expiration'
|
|
2207
|
+
*
|
|
2208
|
+
* @category Errors
|
|
2209
|
+
* @category generated
|
|
2210
|
+
*/
|
|
2211
|
+
export class PolicyInvariantInvalidExpirationError extends Error {
|
|
2212
|
+
code = 0x17ea;
|
|
2213
|
+
name = 'PolicyInvariantInvalidExpiration';
|
|
2214
|
+
constructor() {
|
|
2215
|
+
super('Policy invariant violation: invalid policy expiration');
|
|
2216
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2217
|
+
Error.captureStackTrace(this, PolicyInvariantInvalidExpirationError);
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
createErrorFromCodeLookup.set(0x17ea, () => new PolicyInvariantInvalidExpirationError());
|
|
2222
|
+
createErrorFromNameLookup.set('PolicyInvariantInvalidExpiration', () => new PolicyInvariantInvalidExpirationError());
|
|
2223
|
+
/**
|
|
2224
|
+
* PolicyExpirationViolationPolicySettingsKeyMismatch: 'Policy expiration violation: submitted settings key does not match policy settings key'
|
|
2225
|
+
*
|
|
2226
|
+
* @category Errors
|
|
2227
|
+
* @category generated
|
|
2228
|
+
*/
|
|
2229
|
+
export class PolicyExpirationViolationPolicySettingsKeyMismatchError extends Error {
|
|
2230
|
+
code = 0x17eb;
|
|
2231
|
+
name = 'PolicyExpirationViolationPolicySettingsKeyMismatch';
|
|
2232
|
+
constructor() {
|
|
2233
|
+
super('Policy expiration violation: submitted settings key does not match policy settings key');
|
|
2234
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2235
|
+
Error.captureStackTrace(this, PolicyExpirationViolationPolicySettingsKeyMismatchError);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
createErrorFromCodeLookup.set(0x17eb, () => new PolicyExpirationViolationPolicySettingsKeyMismatchError());
|
|
2240
|
+
createErrorFromNameLookup.set('PolicyExpirationViolationPolicySettingsKeyMismatch', () => new PolicyExpirationViolationPolicySettingsKeyMismatchError());
|
|
2241
|
+
/**
|
|
2242
|
+
* PolicyExpirationViolationSettingsAccountNotPresent: 'Policy expiration violation: state expiration requires the settings to be submitted'
|
|
2243
|
+
*
|
|
2244
|
+
* @category Errors
|
|
2245
|
+
* @category generated
|
|
2246
|
+
*/
|
|
2247
|
+
export class PolicyExpirationViolationSettingsAccountNotPresentError extends Error {
|
|
2248
|
+
code = 0x17ec;
|
|
2249
|
+
name = 'PolicyExpirationViolationSettingsAccountNotPresent';
|
|
2250
|
+
constructor() {
|
|
2251
|
+
super('Policy expiration violation: state expiration requires the settings to be submitted');
|
|
2252
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2253
|
+
Error.captureStackTrace(this, PolicyExpirationViolationSettingsAccountNotPresentError);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
createErrorFromCodeLookup.set(0x17ec, () => new PolicyExpirationViolationSettingsAccountNotPresentError());
|
|
2258
|
+
createErrorFromNameLookup.set('PolicyExpirationViolationSettingsAccountNotPresent', () => new PolicyExpirationViolationSettingsAccountNotPresentError());
|
|
2259
|
+
/**
|
|
2260
|
+
* PolicyExpirationViolationHashExpired: 'Policy expiration violation: state hash has expired'
|
|
2261
|
+
*
|
|
2262
|
+
* @category Errors
|
|
2263
|
+
* @category generated
|
|
2264
|
+
*/
|
|
2265
|
+
export class PolicyExpirationViolationHashExpiredError extends Error {
|
|
2266
|
+
code = 0x17ed;
|
|
2267
|
+
name = 'PolicyExpirationViolationHashExpired';
|
|
2268
|
+
constructor() {
|
|
2269
|
+
super('Policy expiration violation: state hash has expired');
|
|
2270
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2271
|
+
Error.captureStackTrace(this, PolicyExpirationViolationHashExpiredError);
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
createErrorFromCodeLookup.set(0x17ed, () => new PolicyExpirationViolationHashExpiredError());
|
|
2276
|
+
createErrorFromNameLookup.set('PolicyExpirationViolationHashExpired', () => new PolicyExpirationViolationHashExpiredError());
|
|
2277
|
+
/**
|
|
2278
|
+
* PolicyExpirationViolationTimestampExpired: 'Policy expiration violation: timestamp has expired'
|
|
2279
|
+
*
|
|
2280
|
+
* @category Errors
|
|
2281
|
+
* @category generated
|
|
2282
|
+
*/
|
|
2283
|
+
export class PolicyExpirationViolationTimestampExpiredError extends Error {
|
|
2284
|
+
code = 0x17ee;
|
|
2285
|
+
name = 'PolicyExpirationViolationTimestampExpired';
|
|
2286
|
+
constructor() {
|
|
2287
|
+
super('Policy expiration violation: timestamp has expired');
|
|
2288
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2289
|
+
Error.captureStackTrace(this, PolicyExpirationViolationTimestampExpiredError);
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
createErrorFromCodeLookup.set(0x17ee, () => new PolicyExpirationViolationTimestampExpiredError());
|
|
2294
|
+
createErrorFromNameLookup.set('PolicyExpirationViolationTimestampExpired', () => new PolicyExpirationViolationTimestampExpiredError());
|
|
2295
|
+
/**
|
|
2296
|
+
* Attempts to resolve a custom program error from the provided error code.
|
|
2297
|
+
* @category Errors
|
|
2298
|
+
* @category generated
|
|
2299
|
+
*/
|
|
2300
|
+
export function errorFromCode(code) {
|
|
2301
|
+
const createError = createErrorFromCodeLookup.get(code);
|
|
2302
|
+
return createError != null ? createError() : null;
|
|
2303
|
+
}
|
|
2304
|
+
/**
|
|
2305
|
+
* Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'.
|
|
2306
|
+
* @category Errors
|
|
2307
|
+
* @category generated
|
|
2308
|
+
*/
|
|
2309
|
+
export function errorFromName(name) {
|
|
2310
|
+
const createError = createErrorFromNameLookup.get(name);
|
|
2311
|
+
return createError != null ? createError() : null;
|
|
2312
|
+
}
|