@buildonspark/issuer-sdk 0.0.21 → 0.0.23
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/chunk-GB7N6I5O.js +48 -0
- package/dist/index.cjs +518 -0
- package/dist/index.d.cts +110 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +497 -0
- package/dist/types.cjs +77 -0
- package/dist/types.d.cts +99 -0
- package/dist/{issuer-sdk/src/types.d.ts → types.d.ts} +14 -12
- package/dist/types.js +12 -0
- package/package.json +31 -32
- package/src/examples/example.ts +2 -2
- package/src/index.ts +1 -0
- package/src/interface/wallet-interface.ts +15 -17
- package/src/{issuer-sdk.ts → issuer-spark-wallet.ts} +10 -26
- package/src/tests/integration/spark.test.ts +12 -15
- package/src/types.ts +1 -2
- package/src/utils/constants.ts +2 -2
- package/dist/issuer-sdk/src/interface/wallet-interface.d.ts +0 -68
- package/dist/issuer-sdk/src/interface/wallet-interface.js +0 -2
- package/dist/issuer-sdk/src/interface/wallet-interface.js.map +0 -1
- package/dist/issuer-sdk/src/issuer-sdk.d.ts +0 -45
- package/dist/issuer-sdk/src/issuer-sdk.js +0 -162
- package/dist/issuer-sdk/src/issuer-sdk.js.map +0 -1
- package/dist/issuer-sdk/src/proto/common.d.ts +0 -58
- package/dist/issuer-sdk/src/proto/common.js +0 -350
- package/dist/issuer-sdk/src/proto/common.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.d.ts +0 -1228
- package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.js +0 -5070
- package/dist/issuer-sdk/src/proto/google/protobuf/descriptor.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/duration.d.ts +0 -99
- package/dist/issuer-sdk/src/proto/google/protobuf/duration.js +0 -90
- package/dist/issuer-sdk/src/proto/google/protobuf/duration.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/empty.d.ts +0 -33
- package/dist/issuer-sdk/src/proto/google/protobuf/empty.js +0 -46
- package/dist/issuer-sdk/src/proto/google/protobuf/empty.js.map +0 -1
- package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.d.ts +0 -128
- package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.js +0 -90
- package/dist/issuer-sdk/src/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/issuer-sdk/src/proto/mock.d.ts +0 -48
- package/dist/issuer-sdk/src/proto/mock.js +0 -103
- package/dist/issuer-sdk/src/proto/mock.js.map +0 -1
- package/dist/issuer-sdk/src/proto/spark.d.ts +0 -1101
- package/dist/issuer-sdk/src/proto/spark.js +0 -9565
- package/dist/issuer-sdk/src/proto/spark.js.map +0 -1
- package/dist/issuer-sdk/src/proto/spark_authn.d.ts +0 -111
- package/dist/issuer-sdk/src/proto/spark_authn.js +0 -517
- package/dist/issuer-sdk/src/proto/spark_authn.js.map +0 -1
- package/dist/issuer-sdk/src/proto/validate/validate.d.ts +0 -1087
- package/dist/issuer-sdk/src/proto/validate/validate.js +0 -4437
- package/dist/issuer-sdk/src/proto/validate/validate.js.map +0 -1
- package/dist/issuer-sdk/src/services/freeze.d.ts +0 -11
- package/dist/issuer-sdk/src/services/freeze.js +0 -44
- package/dist/issuer-sdk/src/services/freeze.js.map +0 -1
- package/dist/issuer-sdk/src/services/token-transactions.d.ts +0 -8
- package/dist/issuer-sdk/src/services/token-transactions.js +0 -27
- package/dist/issuer-sdk/src/services/token-transactions.js.map +0 -1
- package/dist/issuer-sdk/src/tests/integration/spark.test.d.ts +0 -1
- package/dist/issuer-sdk/src/tests/integration/spark.test.js +0 -368
- package/dist/issuer-sdk/src/tests/integration/spark.test.js.map +0 -1
- package/dist/issuer-sdk/src/types.js +0 -33
- package/dist/issuer-sdk/src/types.js.map +0 -1
- package/dist/issuer-sdk/src/utils/constants.d.ts +0 -16
- package/dist/issuer-sdk/src/utils/constants.js +0 -18
- package/dist/issuer-sdk/src/utils/constants.js.map +0 -1
- package/dist/issuer-sdk/src/utils/enum-mappers.d.ts +0 -6
- package/dist/issuer-sdk/src/utils/enum-mappers.js +0 -66
- package/dist/issuer-sdk/src/utils/enum-mappers.js.map +0 -1
- package/dist/issuer-sdk/src/utils/token-hashing.d.ts +0 -2
- package/dist/issuer-sdk/src/utils/token-hashing.js +0 -45
- package/dist/issuer-sdk/src/utils/token-hashing.js.map +0 -1
- package/dist/issuer-sdk/src/utils/type-mappers.d.ts +0 -4
- package/dist/issuer-sdk/src/utils/type-mappers.js +0 -106
- package/dist/issuer-sdk/src/utils/type-mappers.js.map +0 -1
- package/dist/spark-sdk/src/graphql/client.d.ts +0 -25
- package/dist/spark-sdk/src/graphql/client.js +0 -189
- package/dist/spark-sdk/src/graphql/client.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.js +0 -19
- package/dist/spark-sdk/src/graphql/mutations/CompleteCoopExit.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.js +0 -17
- package/dist/spark-sdk/src/graphql/mutations/CompleteLeavesSwap.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.js +0 -20
- package/dist/spark-sdk/src/graphql/mutations/RequestCoopExit.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.js +0 -26
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningReceive.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.js +0 -18
- package/dist/spark-sdk/src/graphql/mutations/RequestLightningSend.js.map +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.js +0 -24
- package/dist/spark-sdk/src/graphql/mutations/RequestSwapLeaves.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.d.ts +0 -17
- package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.js +0 -20
- package/dist/spark-sdk/src/graphql/objects/BitcoinNetwork.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/CompleteCoopExitOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.js +0 -16
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Connection.d.ts +0 -16
- package/dist/spark-sdk/src/graphql/objects/Connection.js +0 -56
- package/dist/spark-sdk/src/graphql/objects/Connection.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.d.ts +0 -35
- package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.js +0 -68
- package/dist/spark-sdk/src/graphql/objects/CoopExitRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.d.ts +0 -24
- package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.js +0 -30
- package/dist/spark-sdk/src/graphql/objects/CurrencyAmount.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.d.ts +0 -29
- package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.js +0 -32
- package/dist/spark-sdk/src/graphql/objects/CurrencyUnit.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Entity.d.ts +0 -16
- package/dist/spark-sdk/src/graphql/objects/Entity.js +0 -169
- package/dist/spark-sdk/src/graphql/objects/Entity.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/GetChallengeInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/GetChallengeOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Invoice.d.ts +0 -15
- package/dist/spark-sdk/src/graphql/objects/Invoice.js +0 -45
- package/dist/spark-sdk/src/graphql/objects/Invoice.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Leaf.d.ts +0 -11
- package/dist/spark-sdk/src/graphql/objects/Leaf.js +0 -29
- package/dist/spark-sdk/src/graphql/objects/Leaf.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.d.ts +0 -42
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.js +0 -123
- package/dist/spark-sdk/src/graphql/objects/LeavesSwapRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.js +0 -15
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.d.ts +0 -34
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.js +0 -97
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.d.ts +0 -18
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.js +0 -21
- package/dist/spark-sdk/src/graphql/objects/LightningReceiveRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/LightningSendFeeEstimateOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.d.ts +0 -35
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.js +0 -82
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.d.ts +0 -15
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.js +0 -18
- package/dist/spark-sdk/src/graphql/objects/LightningSendRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/NotifyReceiverTransferInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/PageInfo.d.ts +0 -11
- package/dist/spark-sdk/src/graphql/objects/PageInfo.js +0 -26
- package/dist/spark-sdk/src/graphql/objects/PageInfo.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Provider.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/Provider.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/Provider.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestCoopExitOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.d.ts +0 -11
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.js +0 -22
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestLeavesSwapOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.d.ts +0 -16
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.js +0 -21
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestLightningReceiveOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.js +0 -19
- package/dist/spark-sdk/src/graphql/objects/RequestLightningSendOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.d.ts +0 -14
- package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/SparkCoopExitRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.d.ts +0 -14
- package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/SparkLeavesSwapRequestStatus.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.d.ts +0 -19
- package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.js +0 -45
- package/dist/spark-sdk/src/graphql/objects/SparkTransferToLeavesConnection.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.d.ts +0 -21
- package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.js +0 -45
- package/dist/spark-sdk/src/graphql/objects/SparkWalletUser.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/StartSeedReleaseInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/SwapLeaf.d.ts +0 -9
- package/dist/spark-sdk/src/graphql/objects/SwapLeaf.js +0 -23
- package/dist/spark-sdk/src/graphql/objects/SwapLeaf.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/Transfer.d.ts +0 -24
- package/dist/spark-sdk/src/graphql/objects/Transfer.js +0 -82
- package/dist/spark-sdk/src/graphql/objects/Transfer.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/UserLeafInput.d.ts +0 -8
- package/dist/spark-sdk/src/graphql/objects/UserLeafInput.js +0 -16
- package/dist/spark-sdk/src/graphql/objects/UserLeafInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/UserRequest.d.ts +0 -22
- package/dist/spark-sdk/src/graphql/objects/UserRequest.js +0 -310
- package/dist/spark-sdk/src/graphql/objects/UserRequest.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.d.ts +0 -10
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.js +0 -20
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/VerifyChallengeOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.d.ts +0 -6
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.js +0 -12
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyInput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.d.ts +0 -7
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.js +0 -17
- package/dist/spark-sdk/src/graphql/objects/WalletUserIdentityPublicKeyOutput.js.map +0 -1
- package/dist/spark-sdk/src/graphql/objects/index.d.ts +0 -53
- package/dist/spark-sdk/src/graphql/objects/index.js +0 -14
- package/dist/spark-sdk/src/graphql/objects/index.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.js +0 -18
- package/dist/spark-sdk/src/graphql/queries/CoopExitFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.js +0 -16
- package/dist/spark-sdk/src/graphql/queries/LeavesSwapFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.js +0 -18
- package/dist/spark-sdk/src/graphql/queries/LightningReceiveFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.d.ts +0 -1
- package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.js +0 -16
- package/dist/spark-sdk/src/graphql/queries/LightningSendFeeEstimate.js.map +0 -1
- package/dist/spark-sdk/src/proto/common.d.ts +0 -58
- package/dist/spark-sdk/src/proto/common.js +0 -350
- package/dist/spark-sdk/src/proto/common.js.map +0 -1
- package/dist/spark-sdk/src/proto/google/protobuf/empty.d.ts +0 -33
- package/dist/spark-sdk/src/proto/google/protobuf/empty.js +0 -46
- package/dist/spark-sdk/src/proto/google/protobuf/empty.js.map +0 -1
- package/dist/spark-sdk/src/proto/google/protobuf/timestamp.d.ts +0 -128
- package/dist/spark-sdk/src/proto/google/protobuf/timestamp.js +0 -90
- package/dist/spark-sdk/src/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/spark-sdk/src/proto/mock.d.ts +0 -48
- package/dist/spark-sdk/src/proto/mock.js +0 -103
- package/dist/spark-sdk/src/proto/mock.js.map +0 -1
- package/dist/spark-sdk/src/proto/spark.d.ts +0 -1209
- package/dist/spark-sdk/src/proto/spark.js +0 -10516
- package/dist/spark-sdk/src/proto/spark.js.map +0 -1
- package/dist/spark-sdk/src/proto/spark_authn.d.ts +0 -111
- package/dist/spark-sdk/src/proto/spark_authn.js +0 -517
- package/dist/spark-sdk/src/proto/spark_authn.js.map +0 -1
- package/dist/spark-sdk/src/services/config.d.ts +0 -17
- package/dist/spark-sdk/src/services/config.js +0 -54
- package/dist/spark-sdk/src/services/config.js.map +0 -1
- package/dist/spark-sdk/src/services/connection.d.ts +0 -22
- package/dist/spark-sdk/src/services/connection.js +0 -180
- package/dist/spark-sdk/src/services/connection.js.map +0 -1
- package/dist/spark-sdk/src/services/coop-exit.d.ts +0 -20
- package/dist/spark-sdk/src/services/coop-exit.js +0 -101
- package/dist/spark-sdk/src/services/coop-exit.js.map +0 -1
- package/dist/spark-sdk/src/services/deposit.d.ts +0 -21
- package/dist/spark-sdk/src/services/deposit.js +0 -214
- package/dist/spark-sdk/src/services/deposit.js.map +0 -1
- package/dist/spark-sdk/src/services/lightning.d.ts +0 -31
- package/dist/spark-sdk/src/services/lightning.js +0 -210
- package/dist/spark-sdk/src/services/lightning.js.map +0 -1
- package/dist/spark-sdk/src/services/lrc20.d.ts +0 -5
- package/dist/spark-sdk/src/services/lrc20.js +0 -27
- package/dist/spark-sdk/src/services/lrc20.js.map +0 -1
- package/dist/spark-sdk/src/services/token-transactions.d.ts +0 -16
- package/dist/spark-sdk/src/services/token-transactions.js +0 -299
- package/dist/spark-sdk/src/services/token-transactions.js.map +0 -1
- package/dist/spark-sdk/src/services/transfer.d.ts +0 -66
- package/dist/spark-sdk/src/services/transfer.js +0 -791
- package/dist/spark-sdk/src/services/transfer.js.map +0 -1
- package/dist/spark-sdk/src/services/tree-creation.d.ts +0 -29
- package/dist/spark-sdk/src/services/tree-creation.js +0 -399
- package/dist/spark-sdk/src/services/tree-creation.js.map +0 -1
- package/dist/spark-sdk/src/services/wallet-config.d.ts +0 -23
- package/dist/spark-sdk/src/services/wallet-config.js +0 -107
- package/dist/spark-sdk/src/services/wallet-config.js.map +0 -1
- package/dist/spark-sdk/src/signer/signer.d.ts +0 -106
- package/dist/spark-sdk/src/signer/signer.js +0 -275
- package/dist/spark-sdk/src/signer/signer.js.map +0 -1
- package/dist/spark-sdk/src/spark-sdk.d.ts +0 -377
- package/dist/spark-sdk/src/spark-sdk.js +0 -1205
- package/dist/spark-sdk/src/spark-sdk.js.map +0 -1
- package/dist/spark-sdk/src/tests/utils/test-faucet.d.ts +0 -24
- package/dist/spark-sdk/src/tests/utils/test-faucet.js +0 -182
- package/dist/spark-sdk/src/tests/utils/test-faucet.js.map +0 -1
- package/dist/spark-sdk/src/types/grpc.d.ts +0 -6
- package/dist/spark-sdk/src/types/grpc.js +0 -2
- package/dist/spark-sdk/src/types/grpc.js.map +0 -1
- package/dist/spark-sdk/src/types/index.d.ts +0 -3
- package/dist/spark-sdk/src/types/index.js +0 -4
- package/dist/spark-sdk/src/types/index.js.map +0 -1
- package/dist/spark-sdk/src/utils/adaptor-signature.d.ts +0 -7
- package/dist/spark-sdk/src/utils/adaptor-signature.js +0 -114
- package/dist/spark-sdk/src/utils/adaptor-signature.js.map +0 -1
- package/dist/spark-sdk/src/utils/bitcoin.d.ts +0 -12
- package/dist/spark-sdk/src/utils/bitcoin.js +0 -87
- package/dist/spark-sdk/src/utils/bitcoin.js.map +0 -1
- package/dist/spark-sdk/src/utils/crypto.d.ts +0 -1
- package/dist/spark-sdk/src/utils/crypto.js +0 -14
- package/dist/spark-sdk/src/utils/crypto.js.map +0 -1
- package/dist/spark-sdk/src/utils/index.d.ts +0 -12
- package/dist/spark-sdk/src/utils/index.js +0 -13
- package/dist/spark-sdk/src/utils/index.js.map +0 -1
- package/dist/spark-sdk/src/utils/keys.d.ts +0 -9
- package/dist/spark-sdk/src/utils/keys.js +0 -73
- package/dist/spark-sdk/src/utils/keys.js.map +0 -1
- package/dist/spark-sdk/src/utils/mempool.d.ts +0 -1
- package/dist/spark-sdk/src/utils/mempool.js +0 -29
- package/dist/spark-sdk/src/utils/mempool.js.map +0 -1
- package/dist/spark-sdk/src/utils/network.d.ts +0 -36
- package/dist/spark-sdk/src/utils/network.js +0 -65
- package/dist/spark-sdk/src/utils/network.js.map +0 -1
- package/dist/spark-sdk/src/utils/proof.d.ts +0 -1
- package/dist/spark-sdk/src/utils/proof.js +0 -12
- package/dist/spark-sdk/src/utils/proof.js.map +0 -1
- package/dist/spark-sdk/src/utils/response-validation.d.ts +0 -1
- package/dist/spark-sdk/src/utils/response-validation.js +0 -16
- package/dist/spark-sdk/src/utils/response-validation.js.map +0 -1
- package/dist/spark-sdk/src/utils/secret-sharing.d.ts +0 -26
- package/dist/spark-sdk/src/utils/secret-sharing.js +0 -174
- package/dist/spark-sdk/src/utils/secret-sharing.js.map +0 -1
- package/dist/spark-sdk/src/utils/signing.d.ts +0 -12
- package/dist/spark-sdk/src/utils/signing.js +0 -67
- package/dist/spark-sdk/src/utils/signing.js.map +0 -1
- package/dist/spark-sdk/src/utils/token-hashing.d.ts +0 -3
- package/dist/spark-sdk/src/utils/token-hashing.js +0 -116
- package/dist/spark-sdk/src/utils/token-hashing.js.map +0 -1
- package/dist/spark-sdk/src/utils/token-keyshares.d.ts +0 -5
- package/dist/spark-sdk/src/utils/token-keyshares.js +0 -17
- package/dist/spark-sdk/src/utils/token-keyshares.js.map +0 -1
- package/dist/spark-sdk/src/utils/token-transactions.d.ts +0 -5
- package/dist/spark-sdk/src/utils/token-transactions.js +0 -40
- package/dist/spark-sdk/src/utils/token-transactions.js.map +0 -1
- package/dist/spark-sdk/src/utils/transaction.d.ts +0 -9
- package/dist/spark-sdk/src/utils/transaction.js +0 -35
- package/dist/spark-sdk/src/utils/transaction.js.map +0 -1
- package/dist/spark-sdk/src/utils/wasm-wrapper.d.ts +0 -2
- package/dist/spark-sdk/src/utils/wasm-wrapper.js +0 -46
- package/dist/spark-sdk/src/utils/wasm-wrapper.js.map +0 -1
- package/dist/spark-sdk/src/utils/wasm.d.ts +0 -54
- package/dist/spark-sdk/src/utils/wasm.js +0 -26
- package/dist/spark-sdk/src/utils/wasm.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const CompleteCoopExitOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
requestId: obj["complete_coop_exit_output_request"].id,
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const CompleteCoopExitOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
complete_coop_exit_output_request: { id: obj.requestId },
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment CompleteCoopExitOutputFragment on CompleteCoopExitOutput {
|
|
14
|
-
__typename
|
|
15
|
-
complete_coop_exit_output_request: request {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}`;
|
|
19
|
-
//# sourceMappingURL=CompleteCoopExitOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteCoopExitOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteCoopExitOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAA0B,EAAE;IAC/E,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,mCAAmC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAEpC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,GAA2B,EAAO,EAAE;IACjF,OAAO;QACP,iCAAiC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAE/C,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface CompleteLeavesSwapInput {
|
|
2
|
-
adaptorSecretKey: string;
|
|
3
|
-
userOutboundTransferExternalId: string;
|
|
4
|
-
leavesSwapRequestId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const CompleteLeavesSwapInputFromJson: (obj: any) => CompleteLeavesSwapInput;
|
|
7
|
-
export declare const CompleteLeavesSwapInputToJson: (obj: CompleteLeavesSwapInput) => any;
|
|
8
|
-
export default CompleteLeavesSwapInput;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const CompleteLeavesSwapInputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
adaptorSecretKey: obj["complete_leaves_swap_input_adaptor_secret_key"],
|
|
5
|
-
userOutboundTransferExternalId: obj["complete_leaves_swap_input_user_outbound_transfer_external_id"],
|
|
6
|
-
leavesSwapRequestId: obj["complete_leaves_swap_input_leaves_swap_request_id"],
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export const CompleteLeavesSwapInputToJson = (obj) => {
|
|
10
|
-
return {
|
|
11
|
-
complete_leaves_swap_input_adaptor_secret_key: obj.adaptorSecretKey,
|
|
12
|
-
complete_leaves_swap_input_user_outbound_transfer_external_id: obj.userOutboundTransferExternalId,
|
|
13
|
-
complete_leaves_swap_input_leaves_swap_request_id: obj.leavesSwapRequestId,
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=CompleteLeavesSwapInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteLeavesSwapInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteLeavesSwapInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAoB1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAAQ,EAA2B,EAAE;IACjF,OAAO;QACH,gBAAgB,EAAE,GAAG,CAAC,+CAA+C,CAAC;QACtE,8BAA8B,EAAE,GAAG,CAAC,+DAA+D,CAAC;QACpG,mBAAmB,EAAE,GAAG,CAAC,mDAAmD,CAAC;KAEjD,CAAC;AAErC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,GAA4B,EAAO,EAAE;IACnF,OAAO;QACP,6CAA6C,EAAE,GAAG,CAAC,gBAAgB;QACnE,6DAA6D,EAAE,GAAG,CAAC,8BAA8B;QACjG,iDAAiD,EAAE,GAAG,CAAC,mBAAmB;KAEjE,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CompleteLeavesSwapOutput {
|
|
2
|
-
requestId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const CompleteLeavesSwapOutputFromJson: (obj: any) => CompleteLeavesSwapOutput;
|
|
5
|
-
export declare const CompleteLeavesSwapOutputToJson: (obj: CompleteLeavesSwapOutput) => any;
|
|
6
|
-
export declare const FRAGMENT = "\nfragment CompleteLeavesSwapOutputFragment on CompleteLeavesSwapOutput {\n __typename\n complete_leaves_swap_output_request: request {\n id\n }\n}";
|
|
7
|
-
export default CompleteLeavesSwapOutput;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const CompleteLeavesSwapOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
requestId: obj["complete_leaves_swap_output_request"].id,
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const CompleteLeavesSwapOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
complete_leaves_swap_output_request: { id: obj.requestId },
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment CompleteLeavesSwapOutputFragment on CompleteLeavesSwapOutput {
|
|
14
|
-
__typename
|
|
15
|
-
complete_leaves_swap_output_request: request {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
}`;
|
|
19
|
-
//# sourceMappingURL=CompleteLeavesSwapOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteLeavesSwapOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteLeavesSwapOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAQ,EAA4B,EAAE;IACnF,OAAO;QACH,SAAS,EAAE,GAAG,CAAC,qCAAqC,CAAC,CAAC,EAAE;KAE3B,CAAC;AAEtC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAA6B,EAAO,EAAE;IACrF,OAAO;QACP,mCAAmC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE;KAEjD,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;EAM1B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CompleteSeedReleaseInput {
|
|
2
|
-
phoneNumber: string;
|
|
3
|
-
code: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const CompleteSeedReleaseInputFromJson: (obj: any) => CompleteSeedReleaseInput;
|
|
6
|
-
export declare const CompleteSeedReleaseInputToJson: (obj: CompleteSeedReleaseInput) => any;
|
|
7
|
-
export default CompleteSeedReleaseInput;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const CompleteSeedReleaseInputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
phoneNumber: obj["complete_seed_release_input_phone_number"],
|
|
5
|
-
code: obj["complete_seed_release_input_code"],
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export const CompleteSeedReleaseInputToJson = (obj) => {
|
|
9
|
-
return {
|
|
10
|
-
complete_seed_release_input_phone_number: obj.phoneNumber,
|
|
11
|
-
complete_seed_release_input_code: obj.code,
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=CompleteSeedReleaseInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteSeedReleaseInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteSeedReleaseInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAQ,EAA4B,EAAE;IACnF,OAAO;QACH,WAAW,EAAE,GAAG,CAAC,0CAA0C,CAAC;QAC5D,IAAI,EAAE,GAAG,CAAC,kCAAkC,CAAC;KAEhB,CAAC;AAEtC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAA6B,EAAO,EAAE;IACrF,OAAO;QACP,wCAAwC,EAAE,GAAG,CAAC,WAAW;QACzD,gCAAgC,EAAE,GAAG,CAAC,IAAI;KAEjC,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CompleteSeedReleaseOutput {
|
|
2
|
-
seed: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const CompleteSeedReleaseOutputFromJson: (obj: any) => CompleteSeedReleaseOutput;
|
|
5
|
-
export declare const CompleteSeedReleaseOutputToJson: (obj: CompleteSeedReleaseOutput) => any;
|
|
6
|
-
export declare const FRAGMENT = "\nfragment CompleteSeedReleaseOutputFragment on CompleteSeedReleaseOutput {\n __typename\n complete_seed_release_output_seed: seed\n}";
|
|
7
|
-
export default CompleteSeedReleaseOutput;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const CompleteSeedReleaseOutputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
seed: obj["complete_seed_release_output_seed"],
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const CompleteSeedReleaseOutputToJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
complete_seed_release_output_seed: obj.seed,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FRAGMENT = `
|
|
13
|
-
fragment CompleteSeedReleaseOutputFragment on CompleteSeedReleaseOutput {
|
|
14
|
-
__typename
|
|
15
|
-
complete_seed_release_output_seed: seed
|
|
16
|
-
}`;
|
|
17
|
-
//# sourceMappingURL=CompleteSeedReleaseOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteSeedReleaseOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CompleteSeedReleaseOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAgB1E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,GAAQ,EAA6B,EAAE;IACrF,OAAO;QACH,IAAI,EAAE,GAAG,CAAC,mCAAmC,CAAC;KAEhB,CAAC;AAEvC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAA8B,EAAO,EAAE;IACvF,OAAO;QACP,iCAAiC,EAAE,GAAG,CAAC,IAAI;KAElC,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;EAI1B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import PageInfo from './PageInfo.js';
|
|
2
|
-
interface Connection {
|
|
3
|
-
/**
|
|
4
|
-
* The total count of objects in this connection, using the current filters. It is different from the
|
|
5
|
-
* number of objects returned in the current page (in the `entities` field).
|
|
6
|
-
**/
|
|
7
|
-
count: number;
|
|
8
|
-
/** An object that holds pagination information about the objects in this connection. **/
|
|
9
|
-
pageInfo: PageInfo;
|
|
10
|
-
/** The typename of the object **/
|
|
11
|
-
typename: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const ConnectionFromJson: (obj: any) => Connection;
|
|
14
|
-
export declare const ConnectionToJson: (obj: Connection) => any;
|
|
15
|
-
export declare const FRAGMENT = "\nfragment ConnectionFragment on Connection {\n __typename\n ... on SparkTransferToLeavesConnection {\n __typename\n spark_transfer_to_leaves_connection_count: count\n spark_transfer_to_leaves_connection_page_info: page_info {\n __typename\n page_info_has_next_page: has_next_page\n page_info_has_previous_page: has_previous_page\n page_info_start_cursor: start_cursor\n page_info_end_cursor: end_cursor\n }\n spark_transfer_to_leaves_connection_entities: entities {\n __typename\n leaf_amount: amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n leaf_spark_node_id: spark_node_id\n }\n }\n}";
|
|
16
|
-
export default Connection;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import { PageInfoToJson } from './PageInfo.js';
|
|
3
|
-
import { PageInfoFromJson } from './PageInfo.js';
|
|
4
|
-
import { LightsparkException } from '@lightsparkdev/core';
|
|
5
|
-
import { LeafFromJson } from './Leaf.js';
|
|
6
|
-
import { LeafToJson } from './Leaf.js';
|
|
7
|
-
export const ConnectionFromJson = (obj) => {
|
|
8
|
-
if (obj["__typename"] == "SparkTransferToLeavesConnection") {
|
|
9
|
-
return {
|
|
10
|
-
count: obj["spark_transfer_to_leaves_connection_count"],
|
|
11
|
-
pageInfo: PageInfoFromJson(obj["spark_transfer_to_leaves_connection_page_info"]),
|
|
12
|
-
entities: obj["spark_transfer_to_leaves_connection_entities"].map((e) => LeafFromJson(e)),
|
|
13
|
-
typename: "SparkTransferToLeavesConnection",
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
throw new LightsparkException("DeserializationError", `Couldn't find a concrete type for interface Connection corresponding to the typename=${obj["__typename"]}`);
|
|
17
|
-
};
|
|
18
|
-
export const ConnectionToJson = (obj) => {
|
|
19
|
-
if (obj.typename == "SparkTransferToLeavesConnection") {
|
|
20
|
-
const sparkTransferToLeavesConnection = obj;
|
|
21
|
-
return {
|
|
22
|
-
__typename: "SparkTransferToLeavesConnection", spark_transfer_to_leaves_connection_count: sparkTransferToLeavesConnection.count,
|
|
23
|
-
spark_transfer_to_leaves_connection_page_info: PageInfoToJson(sparkTransferToLeavesConnection.pageInfo),
|
|
24
|
-
spark_transfer_to_leaves_connection_entities: sparkTransferToLeavesConnection.entities.map((e) => LeafToJson(e)),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
throw new LightsparkException("DeserializationError", `Couldn't find a concrete type for interface Connection corresponding to the typename=${obj.typename}`);
|
|
28
|
-
};
|
|
29
|
-
export const FRAGMENT = `
|
|
30
|
-
fragment ConnectionFragment on Connection {
|
|
31
|
-
__typename
|
|
32
|
-
... on SparkTransferToLeavesConnection {
|
|
33
|
-
__typename
|
|
34
|
-
spark_transfer_to_leaves_connection_count: count
|
|
35
|
-
spark_transfer_to_leaves_connection_page_info: page_info {
|
|
36
|
-
__typename
|
|
37
|
-
page_info_has_next_page: has_next_page
|
|
38
|
-
page_info_has_previous_page: has_previous_page
|
|
39
|
-
page_info_start_cursor: start_cursor
|
|
40
|
-
page_info_end_cursor: end_cursor
|
|
41
|
-
}
|
|
42
|
-
spark_transfer_to_leaves_connection_entities: entities {
|
|
43
|
-
__typename
|
|
44
|
-
leaf_amount: amount {
|
|
45
|
-
__typename
|
|
46
|
-
currency_amount_original_value: original_value
|
|
47
|
-
currency_amount_original_unit: original_unit
|
|
48
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
49
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
50
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
51
|
-
}
|
|
52
|
-
leaf_spark_node_id: spark_node_id
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}`;
|
|
56
|
-
//# sourceMappingURL=Connection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/Connection.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAuBrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAQ,EAAc,EAAE;IACvD,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,iCAAiC,EAAE,CAAC;QACzD,OAAO;YACH,KAAK,EAAE,GAAG,CAAC,2CAA2C,CAAC;YACvD,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;YAChF,QAAQ,EAAE,GAAG,CAAC,8CAA8C,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACrG,QAAQ,EAAE,iCAAiC;SACC,CAAC;IAE7C,CAAC;IAAI,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,EAAE,wFAAwF,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAA;AACvK,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAe,EAAO,EAAE;IACrD,IAAI,GAAG,CAAC,QAAQ,IAAI,iCAAiC,EAAE,CAAC;QACrD,MAAM,+BAA+B,GAAG,GAAsC,CAAC;QACtF,OAAO;YACP,UAAU,EAAE,iCAAiC,EAAC,yCAAyC,EAAE,+BAA+B,CAAC,KAAK;YAC9H,6CAA6C,EAAE,cAAc,CAAC,+BAA+B,CAAC,QAAQ,CAAC;YACvG,4CAA4C,EAAE,+BAA+B,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SAEvG,CAAA;IAET,CAAC;IAAI,MAAM,IAAI,mBAAmB,CAAC,sBAAsB,EAAE,wFAAwF,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;AAClK,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CoopExitFeeEstimateInput {
|
|
2
|
-
leafExternalIds: string[];
|
|
3
|
-
withdrawalAddress: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const CoopExitFeeEstimateInputFromJson: (obj: any) => CoopExitFeeEstimateInput;
|
|
6
|
-
export declare const CoopExitFeeEstimateInputToJson: (obj: CoopExitFeeEstimateInput) => any;
|
|
7
|
-
export default CoopExitFeeEstimateInput;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
export const CoopExitFeeEstimateInputFromJson = (obj) => {
|
|
3
|
-
return {
|
|
4
|
-
leafExternalIds: obj["coop_exit_fee_estimate_input_leaf_external_ids"],
|
|
5
|
-
withdrawalAddress: obj["coop_exit_fee_estimate_input_withdrawal_address"],
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export const CoopExitFeeEstimateInputToJson = (obj) => {
|
|
9
|
-
return {
|
|
10
|
-
coop_exit_fee_estimate_input_leaf_external_ids: obj.leafExternalIds,
|
|
11
|
-
coop_exit_fee_estimate_input_withdrawal_address: obj.withdrawalAddress,
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=CoopExitFeeEstimateInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoopExitFeeEstimateInput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CoopExitFeeEstimateInput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAkB1E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,GAAQ,EAA4B,EAAE;IACnF,OAAO;QACH,eAAe,EAAE,GAAG,CAAC,gDAAgD,CAAC;QACtE,iBAAiB,EAAE,GAAG,CAAC,iDAAiD,CAAC;KAE5C,CAAC;AAEtC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,GAA6B,EAAO,EAAE;IACrF,OAAO;QACP,8CAA8C,EAAE,GAAG,CAAC,eAAe;QACnE,+CAA+C,EAAE,GAAG,CAAC,iBAAiB;KAE7D,CAAA;AAET,CAAC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import CurrencyAmount from './CurrencyAmount.js';
|
|
2
|
-
interface CoopExitFeeEstimateOutput {
|
|
3
|
-
feeEstimate: CurrencyAmount;
|
|
4
|
-
}
|
|
5
|
-
export declare const CoopExitFeeEstimateOutputFromJson: (obj: any) => CoopExitFeeEstimateOutput;
|
|
6
|
-
export declare const CoopExitFeeEstimateOutputToJson: (obj: CoopExitFeeEstimateOutput) => any;
|
|
7
|
-
export declare const FRAGMENT = "\nfragment CoopExitFeeEstimateOutputFragment on CoopExitFeeEstimateOutput {\n __typename\n coop_exit_fee_estimate_output_fee_estimate: fee_estimate {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n}";
|
|
8
|
-
export default CoopExitFeeEstimateOutput;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import { CurrencyAmountToJson } from './CurrencyAmount.js';
|
|
3
|
-
import { CurrencyAmountFromJson } from './CurrencyAmount.js';
|
|
4
|
-
export const CoopExitFeeEstimateOutputFromJson = (obj) => {
|
|
5
|
-
return {
|
|
6
|
-
feeEstimate: CurrencyAmountFromJson(obj["coop_exit_fee_estimate_output_fee_estimate"]),
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export const CoopExitFeeEstimateOutputToJson = (obj) => {
|
|
10
|
-
return {
|
|
11
|
-
coop_exit_fee_estimate_output_fee_estimate: CurrencyAmountToJson(obj.feeEstimate),
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export const FRAGMENT = `
|
|
15
|
-
fragment CoopExitFeeEstimateOutputFragment on CoopExitFeeEstimateOutput {
|
|
16
|
-
__typename
|
|
17
|
-
coop_exit_fee_estimate_output_fee_estimate: fee_estimate {
|
|
18
|
-
__typename
|
|
19
|
-
currency_amount_original_value: original_value
|
|
20
|
-
currency_amount_original_unit: original_unit
|
|
21
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
22
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
23
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
24
|
-
}
|
|
25
|
-
}`;
|
|
26
|
-
//# sourceMappingURL=CoopExitFeeEstimateOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoopExitFeeEstimateOutput.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CoopExitFeeEstimateOutput.ts"],"names":[],"mappings":"AACA,0EAA0E;AAI1E,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAa3D,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,GAAQ,EAA6B,EAAE;IACrF,OAAO;QACH,WAAW,EAAE,sBAAsB,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;KAExD,CAAC;AAEvC,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAA8B,EAAO,EAAE;IACvF,OAAO;QACP,0CAA0C,EAAE,oBAAoB,CAAC,GAAG,CAAC,WAAW,CAAC;KAExE,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;EAW1B,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import BitcoinNetwork from './BitcoinNetwork.js';
|
|
2
|
-
import CurrencyAmount from './CurrencyAmount.js';
|
|
3
|
-
import { Query } from '@lightsparkdev/core';
|
|
4
|
-
import SparkCoopExitRequestStatus from './SparkCoopExitRequestStatus.js';
|
|
5
|
-
interface CoopExitRequest {
|
|
6
|
-
/**
|
|
7
|
-
* The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
|
|
8
|
-
* string.
|
|
9
|
-
**/
|
|
10
|
-
id: string;
|
|
11
|
-
/** The date and time when the entity was first created. **/
|
|
12
|
-
createdAt: string;
|
|
13
|
-
/** The date and time when the entity was last updated. **/
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
/** The network the lightning send request is on. **/
|
|
16
|
-
network: BitcoinNetwork;
|
|
17
|
-
/**
|
|
18
|
-
* The fee includes what user pays for the coop exit and the L1 broadcast fee. The amount user will
|
|
19
|
-
* receive on L1 is total_amount - fee.
|
|
20
|
-
**/
|
|
21
|
-
fee: CurrencyAmount;
|
|
22
|
-
/** The status of the request. **/
|
|
23
|
-
status: SparkCoopExitRequestStatus;
|
|
24
|
-
/** The time when the coop exit request expires and the UTXOs are released. **/
|
|
25
|
-
expiresAt: string;
|
|
26
|
-
/** The raw connector transaction. **/
|
|
27
|
-
rawConnectorTransaction: string;
|
|
28
|
-
/** The typename of the object **/
|
|
29
|
-
typename: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const CoopExitRequestFromJson: (obj: any) => CoopExitRequest;
|
|
32
|
-
export declare const CoopExitRequestToJson: (obj: CoopExitRequest) => any;
|
|
33
|
-
export declare const FRAGMENT = "\nfragment CoopExitRequestFragment on CoopExitRequest {\n __typename\n coop_exit_request_id: id\n coop_exit_request_created_at: created_at\n coop_exit_request_updated_at: updated_at\n coop_exit_request_network: network\n coop_exit_request_fee: fee {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n coop_exit_request_status: status\n coop_exit_request_expires_at: expires_at\n coop_exit_request_raw_connector_transaction: raw_connector_transaction\n}";
|
|
34
|
-
export declare const getCoopExitRequestQuery: (id: string) => Query<CoopExitRequest>;
|
|
35
|
-
export default CoopExitRequest;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import BitcoinNetwork from './BitcoinNetwork.js';
|
|
3
|
-
import { CurrencyAmountToJson } from './CurrencyAmount.js';
|
|
4
|
-
import { CurrencyAmountFromJson } from './CurrencyAmount.js';
|
|
5
|
-
import { isObject } from '@lightsparkdev/core';
|
|
6
|
-
import SparkCoopExitRequestStatus from './SparkCoopExitRequestStatus.js';
|
|
7
|
-
export const CoopExitRequestFromJson = (obj) => {
|
|
8
|
-
return {
|
|
9
|
-
id: obj["coop_exit_request_id"],
|
|
10
|
-
createdAt: obj["coop_exit_request_created_at"],
|
|
11
|
-
updatedAt: obj["coop_exit_request_updated_at"],
|
|
12
|
-
network: BitcoinNetwork[obj["coop_exit_request_network"]] ?? BitcoinNetwork.FUTURE_VALUE,
|
|
13
|
-
fee: CurrencyAmountFromJson(obj["coop_exit_request_fee"]),
|
|
14
|
-
status: SparkCoopExitRequestStatus[obj["coop_exit_request_status"]] ?? SparkCoopExitRequestStatus.FUTURE_VALUE,
|
|
15
|
-
expiresAt: obj["coop_exit_request_expires_at"],
|
|
16
|
-
rawConnectorTransaction: obj["coop_exit_request_raw_connector_transaction"],
|
|
17
|
-
typename: "CoopExitRequest",
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export const CoopExitRequestToJson = (obj) => {
|
|
21
|
-
return {
|
|
22
|
-
__typename: "CoopExitRequest", coop_exit_request_id: obj.id,
|
|
23
|
-
coop_exit_request_created_at: obj.createdAt,
|
|
24
|
-
coop_exit_request_updated_at: obj.updatedAt,
|
|
25
|
-
coop_exit_request_network: obj.network,
|
|
26
|
-
coop_exit_request_fee: CurrencyAmountToJson(obj.fee),
|
|
27
|
-
coop_exit_request_status: obj.status,
|
|
28
|
-
coop_exit_request_expires_at: obj.expiresAt,
|
|
29
|
-
coop_exit_request_raw_connector_transaction: obj.rawConnectorTransaction,
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export const FRAGMENT = `
|
|
33
|
-
fragment CoopExitRequestFragment on CoopExitRequest {
|
|
34
|
-
__typename
|
|
35
|
-
coop_exit_request_id: id
|
|
36
|
-
coop_exit_request_created_at: created_at
|
|
37
|
-
coop_exit_request_updated_at: updated_at
|
|
38
|
-
coop_exit_request_network: network
|
|
39
|
-
coop_exit_request_fee: fee {
|
|
40
|
-
__typename
|
|
41
|
-
currency_amount_original_value: original_value
|
|
42
|
-
currency_amount_original_unit: original_unit
|
|
43
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
44
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
45
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
46
|
-
}
|
|
47
|
-
coop_exit_request_status: status
|
|
48
|
-
coop_exit_request_expires_at: expires_at
|
|
49
|
-
coop_exit_request_raw_connector_transaction: raw_connector_transaction
|
|
50
|
-
}`;
|
|
51
|
-
export const getCoopExitRequestQuery = (id) => {
|
|
52
|
-
return {
|
|
53
|
-
queryPayload: `
|
|
54
|
-
query GetCoopExitRequest($id: ID!) {
|
|
55
|
-
entity(id: $id) {
|
|
56
|
-
... on CoopExitRequest {
|
|
57
|
-
...CoopExitRequestFragment
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
${FRAGMENT}
|
|
63
|
-
`,
|
|
64
|
-
variables: { id },
|
|
65
|
-
constructObject: (data) => isObject(data) && "entity" in data && isObject(data.entity) ? CoopExitRequestFromJson(data.entity) : null,
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=CoopExitRequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoopExitRequest.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CoopExitRequest.ts"],"names":[],"mappings":"AACA,0EAA0E;AAI1E,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,sBAAsB,EAAC,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAS,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AA4CzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAQ,EAAmB,EAAE;IACjE,OAAO;QACH,EAAE,EAAE,GAAG,CAAC,sBAAsB,CAAC;QAC/B,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY;QACxF,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACzD,MAAM,EAAE,0BAA0B,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,IAAI,0BAA0B,CAAC,YAAY;QAC9G,SAAS,EAAE,GAAG,CAAC,8BAA8B,CAAC;QAC9C,uBAAuB,EAAE,GAAG,CAAC,6CAA6C,CAAC;QACnF,QAAQ,EAAE,iBAAiB;KACC,CAAC;AAE7B,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAoB,EAAO,EAAE;IACnE,OAAO;QACP,UAAU,EAAE,iBAAiB,EAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE;QAC1D,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,yBAAyB,EAAE,GAAG,CAAC,OAAO;QACtC,qBAAqB,EAAE,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC;QACpD,wBAAwB,EAAE,GAAG,CAAC,MAAM;QACpC,4BAA4B,EAAE,GAAG,CAAC,SAAS;QAC3C,2CAA2C,EAAE,GAAG,CAAC,uBAAuB;KAE/D,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;EAkB1B,CAAC;AAIC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAU,EAA0B,EAAE;IAC1E,OAAO;QACH,YAAY,EAAE;;;;;;;;;EASxB,QAAQ;CACT;QACW,SAAS,EAAE,EAAC,EAAE,EAAC;QACf,eAAe,EAAE,CAAC,IAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;KAChJ,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import CurrencyUnit from './CurrencyUnit.js';
|
|
2
|
-
/** This object represents the value and unit for an amount of currency. **/
|
|
3
|
-
interface CurrencyAmount {
|
|
4
|
-
/** The original numeric value for this CurrencyAmount. **/
|
|
5
|
-
originalValue: number;
|
|
6
|
-
/** The original unit of currency for this CurrencyAmount. **/
|
|
7
|
-
originalUnit: CurrencyUnit;
|
|
8
|
-
/** The unit of user's preferred currency. **/
|
|
9
|
-
preferredCurrencyUnit: CurrencyUnit;
|
|
10
|
-
/**
|
|
11
|
-
* The rounded numeric value for this CurrencyAmount in the very base level of user's preferred
|
|
12
|
-
* currency. For example, for USD, the value will be in cents.
|
|
13
|
-
**/
|
|
14
|
-
preferredCurrencyValueRounded: number;
|
|
15
|
-
/**
|
|
16
|
-
* The approximate float value for this CurrencyAmount in the very base level of user's preferred
|
|
17
|
-
* currency. For example, for USD, the value will be in cents.
|
|
18
|
-
**/
|
|
19
|
-
preferredCurrencyValueApprox: number;
|
|
20
|
-
}
|
|
21
|
-
export declare const CurrencyAmountFromJson: (obj: any) => CurrencyAmount;
|
|
22
|
-
export declare const CurrencyAmountToJson: (obj: CurrencyAmount) => any;
|
|
23
|
-
export declare const FRAGMENT = "\nfragment CurrencyAmountFragment on CurrencyAmount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n}";
|
|
24
|
-
export default CurrencyAmount;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
import CurrencyUnit from './CurrencyUnit.js';
|
|
3
|
-
export const CurrencyAmountFromJson = (obj) => {
|
|
4
|
-
return {
|
|
5
|
-
originalValue: obj["currency_amount_original_value"],
|
|
6
|
-
originalUnit: CurrencyUnit[obj["currency_amount_original_unit"]] ?? CurrencyUnit.FUTURE_VALUE,
|
|
7
|
-
preferredCurrencyUnit: CurrencyUnit[obj["currency_amount_preferred_currency_unit"]] ?? CurrencyUnit.FUTURE_VALUE,
|
|
8
|
-
preferredCurrencyValueRounded: obj["currency_amount_preferred_currency_value_rounded"],
|
|
9
|
-
preferredCurrencyValueApprox: obj["currency_amount_preferred_currency_value_approx"],
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const CurrencyAmountToJson = (obj) => {
|
|
13
|
-
return {
|
|
14
|
-
currency_amount_original_value: obj.originalValue,
|
|
15
|
-
currency_amount_original_unit: obj.originalUnit,
|
|
16
|
-
currency_amount_preferred_currency_unit: obj.preferredCurrencyUnit,
|
|
17
|
-
currency_amount_preferred_currency_value_rounded: obj.preferredCurrencyValueRounded,
|
|
18
|
-
currency_amount_preferred_currency_value_approx: obj.preferredCurrencyValueApprox,
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export const FRAGMENT = `
|
|
22
|
-
fragment CurrencyAmountFragment on CurrencyAmount {
|
|
23
|
-
__typename
|
|
24
|
-
currency_amount_original_value: original_value
|
|
25
|
-
currency_amount_original_unit: original_unit
|
|
26
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
27
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
28
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
29
|
-
}`;
|
|
30
|
-
//# sourceMappingURL=CurrencyAmount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyAmount.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CurrencyAmount.ts"],"names":[],"mappings":"AACA,0EAA0E;AAG1E,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAgC7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAQ,EAAkB,EAAE;IAC/D,OAAO;QACH,aAAa,EAAE,GAAG,CAAC,gCAAgC,CAAC;QACpD,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY;QAC7F,qBAAqB,EAAE,YAAY,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY;QAChH,6BAA6B,EAAE,GAAG,CAAC,kDAAkD,CAAC;QACtF,4BAA4B,EAAE,GAAG,CAAC,iDAAiD,CAAC;KAEjE,CAAC;AAE5B,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAmB,EAAO,EAAE;IACjE,OAAO;QACP,8BAA8B,EAAE,GAAG,CAAC,aAAa;QACjD,6BAA6B,EAAE,GAAG,CAAC,YAAY;QAC/C,uCAAuC,EAAE,GAAG,CAAC,qBAAqB;QAClE,gDAAgD,EAAE,GAAG,CAAC,6BAA6B;QACnF,+CAA+C,EAAE,GAAG,CAAC,4BAA4B;KAExE,CAAA;AAET,CAAC,CAAA;AAGG,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;EAQ1B,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** This enum identifies the unit of currency associated with a CurrencyAmount. **/
|
|
2
|
-
export declare enum CurrencyUnit {
|
|
3
|
-
/**
|
|
4
|
-
* This is an enum value that represents values that could be added in the future.
|
|
5
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
6
|
-
*/
|
|
7
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
8
|
-
/** Bitcoin is the cryptocurrency native to the Bitcoin network. It is used as the native medium for value transfer for the Lightning Network. **/
|
|
9
|
-
BITCOIN = "BITCOIN",
|
|
10
|
-
/** 0.00000001 (10e-8) Bitcoin or one hundred millionth of a Bitcoin. This is the unit most commonly used in Lightning transactions. **/
|
|
11
|
-
SATOSHI = "SATOSHI",
|
|
12
|
-
/** 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
13
|
-
MILLISATOSHI = "MILLISATOSHI",
|
|
14
|
-
/** United States Dollar. **/
|
|
15
|
-
USD = "USD",
|
|
16
|
-
/** Mexican Peso. **/
|
|
17
|
-
MXN = "MXN",
|
|
18
|
-
/** Philippine Peso. **/
|
|
19
|
-
PHP = "PHP",
|
|
20
|
-
/** Euro. **/
|
|
21
|
-
EUR = "EUR",
|
|
22
|
-
/** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
23
|
-
NANOBITCOIN = "NANOBITCOIN",
|
|
24
|
-
/** 0.000001 (10e-6) Bitcoin or a millionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
25
|
-
MICROBITCOIN = "MICROBITCOIN",
|
|
26
|
-
/** 0.001 (10e-3) Bitcoin or a thousandth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
27
|
-
MILLIBITCOIN = "MILLIBITCOIN"
|
|
28
|
-
}
|
|
29
|
-
export default CurrencyUnit;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
-
/** This enum identifies the unit of currency associated with a CurrencyAmount. **/
|
|
3
|
-
export var CurrencyUnit;
|
|
4
|
-
(function (CurrencyUnit) {
|
|
5
|
-
/**
|
|
6
|
-
* This is an enum value that represents values that could be added in the future.
|
|
7
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
8
|
-
*/
|
|
9
|
-
CurrencyUnit["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
10
|
-
/** Bitcoin is the cryptocurrency native to the Bitcoin network. It is used as the native medium for value transfer for the Lightning Network. **/
|
|
11
|
-
CurrencyUnit["BITCOIN"] = "BITCOIN";
|
|
12
|
-
/** 0.00000001 (10e-8) Bitcoin or one hundred millionth of a Bitcoin. This is the unit most commonly used in Lightning transactions. **/
|
|
13
|
-
CurrencyUnit["SATOSHI"] = "SATOSHI";
|
|
14
|
-
/** 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
15
|
-
CurrencyUnit["MILLISATOSHI"] = "MILLISATOSHI";
|
|
16
|
-
/** United States Dollar. **/
|
|
17
|
-
CurrencyUnit["USD"] = "USD";
|
|
18
|
-
/** Mexican Peso. **/
|
|
19
|
-
CurrencyUnit["MXN"] = "MXN";
|
|
20
|
-
/** Philippine Peso. **/
|
|
21
|
-
CurrencyUnit["PHP"] = "PHP";
|
|
22
|
-
/** Euro. **/
|
|
23
|
-
CurrencyUnit["EUR"] = "EUR";
|
|
24
|
-
/** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
25
|
-
CurrencyUnit["NANOBITCOIN"] = "NANOBITCOIN";
|
|
26
|
-
/** 0.000001 (10e-6) Bitcoin or a millionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
27
|
-
CurrencyUnit["MICROBITCOIN"] = "MICROBITCOIN";
|
|
28
|
-
/** 0.001 (10e-3) Bitcoin or a thousandth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/
|
|
29
|
-
CurrencyUnit["MILLIBITCOIN"] = "MILLIBITCOIN";
|
|
30
|
-
})(CurrencyUnit || (CurrencyUnit = {}));
|
|
31
|
-
export default CurrencyUnit;
|
|
32
|
-
//# sourceMappingURL=CurrencyUnit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyUnit.js","sourceRoot":"","sources":["../../../../../../spark-sdk/src/graphql/objects/CurrencyUnit.ts"],"names":[],"mappings":"AACA,0EAA0E;AAE1E,mFAAmF;AACnF,MAAM,CAAN,IAAY,YA2BX;AA3BD,WAAY,YAAY;IACxB;;;OAGG;IACF,6CAA6B,CAAA;IAC9B,kJAAkJ;IAClJ,mCAAmB,CAAA;IACnB,wIAAwI;IACxI,mCAAmB,CAAA;IACnB,oGAAoG;IACpG,6CAA6B,CAAA;IAC7B,6BAA6B;IAC7B,2BAAW,CAAA;IACX,qBAAqB;IACrB,2BAAW,CAAA;IACX,wBAAwB;IACxB,2BAAW,CAAA;IACX,aAAa;IACb,2BAAW,CAAA;IACX,2HAA2H;IAC3H,2CAA2B,CAAA;IAC3B,wHAAwH;IACxH,6CAA6B,CAAA;IAC7B,sHAAsH;IACtH,6CAA6B,CAAA;AAE7B,CAAC,EA3BW,YAAY,KAAZ,YAAY,QA2BvB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** This interface is used by all the entities in the Lightspark system. It defines a few core fields that are available everywhere. Any object that implements this interface can be queried using the `entity` query and its ID. **/
|
|
2
|
-
interface Entity {
|
|
3
|
-
/**
|
|
4
|
-
* The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
|
|
5
|
-
* string.
|
|
6
|
-
**/
|
|
7
|
-
id: string;
|
|
8
|
-
/** The date and time when the entity was first created. **/
|
|
9
|
-
createdAt: string;
|
|
10
|
-
/** The date and time when the entity was last updated. **/
|
|
11
|
-
updatedAt: string;
|
|
12
|
-
/** The typename of the object **/
|
|
13
|
-
typename: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const FRAGMENT = "\nfragment EntityFragment on Entity {\n __typename\n ... on CoopExitRequest {\n __typename\n coop_exit_request_id: id\n coop_exit_request_created_at: created_at\n coop_exit_request_updated_at: updated_at\n coop_exit_request_network: network\n coop_exit_request_fee: fee {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n coop_exit_request_status: status\n coop_exit_request_expires_at: expires_at\n coop_exit_request_raw_connector_transaction: raw_connector_transaction\n }\n ... on LeavesSwapRequest {\n __typename\n leaves_swap_request_id: id\n leaves_swap_request_created_at: created_at\n leaves_swap_request_updated_at: updated_at\n leaves_swap_request_network: network\n leaves_swap_request_status: status\n leaves_swap_request_total_amount: total_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n leaves_swap_request_target_amount: target_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n leaves_swap_request_fee: fee {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n leaves_swap_request_inbound_transfer: inbound_transfer {\n __typename\n transfer_total_amount: total_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n transfer_spark_id: spark_id\n }\n leaves_swap_request_outbound_transfer: outbound_transfer {\n __typename\n transfer_total_amount: total_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n transfer_spark_id: spark_id\n }\n leaves_swap_request_expires_at: expires_at\n leaves_swap_request_swap_leaves: swap_leaves {\n __typename\n swap_leaf_leaf_id: leaf_id\n swap_leaf_raw_unsigned_refund_transaction: raw_unsigned_refund_transaction\n swap_leaf_adaptor_signed_signature: adaptor_signed_signature\n }\n }\n ... on LightningReceiveRequest {\n __typename\n lightning_receive_request_id: id\n lightning_receive_request_created_at: created_at\n lightning_receive_request_updated_at: updated_at\n lightning_receive_request_network: network\n lightning_receive_request_invoice: invoice {\n __typename\n invoice_encoded_envoice: encoded_envoice\n invoice_bitcoin_network: bitcoin_network\n invoice_payment_hash: payment_hash\n invoice_amount: amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n invoice_created_at: created_at\n invoice_expires_at: expires_at\n invoice_memo: memo\n }\n lightning_receive_request_fee: fee {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n lightning_receive_request_status: status\n lightning_receive_request_transfer: transfer {\n __typename\n transfer_total_amount: total_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n transfer_spark_id: spark_id\n }\n }\n ... on LightningSendRequest {\n __typename\n lightning_send_request_id: id\n lightning_send_request_created_at: created_at\n lightning_send_request_updated_at: updated_at\n lightning_send_request_network: network\n lightning_send_request_encoded_invoice: encoded_invoice\n lightning_send_request_fee: fee {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n lightning_send_request_idempotency_key: idempotency_key\n lightning_send_request_status: status\n lightning_send_request_transfer: transfer {\n __typename\n transfer_total_amount: total_amount {\n __typename\n currency_amount_original_value: original_value\n currency_amount_original_unit: original_unit\n currency_amount_preferred_currency_unit: preferred_currency_unit\n currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded\n currency_amount_preferred_currency_value_approx: preferred_currency_value_approx\n }\n transfer_spark_id: spark_id\n }\n }\n ... on SparkWalletUser {\n __typename\n spark_wallet_user_id: id\n spark_wallet_user_created_at: created_at\n spark_wallet_user_updated_at: updated_at\n spark_wallet_user_identity_public_key: identity_public_key\n }\n}";
|
|
16
|
-
export default Entity;
|