@bitgo/public-types 5.35.0 → 5.37.0

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.
Files changed (135) hide show
  1. package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
  2. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
  3. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
  4. package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
  5. package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
  6. package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
  7. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +1 -0
  8. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +1 -0
  9. package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +1 -0
  10. package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +1 -0
  11. package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
  12. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
  13. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
  14. package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
  15. package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +1 -0
  16. package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +1 -0
  17. package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +1 -0
  18. package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
  19. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
  20. package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +1 -0
  21. package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +1 -0
  22. package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
  23. package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
  24. package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
  25. package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
  26. package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +2 -1
  27. package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.js +1 -1
  28. package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.js.map +1 -1
  29. package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +58 -0
  30. package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js +44 -0
  31. package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js.map +1 -0
  32. package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +2 -1
  33. package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.js +1 -1
  34. package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.js.map +1 -1
  35. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
  36. package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +1 -0
  37. package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +1 -0
  38. package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +1 -0
  39. package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
  40. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
  41. package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
  42. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
  43. package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
  44. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
  45. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
  46. package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
  47. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
  48. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
  49. package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
  50. package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
  51. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
  52. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
  53. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
  54. package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +2 -0
  55. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
  56. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
  57. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
  58. package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +1 -0
  59. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
  60. package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +1 -0
  61. package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +1 -0
  62. package/dist/src/schema/transactionRequest/intents/index.d.ts +13 -9
  63. package/dist/src/schema/transactionRequest/intents/index.js +13 -9
  64. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  65. package/dist/src/schema/transactionRequest/intents/intent.d.ts +150 -1
  66. package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
  67. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  68. package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
  69. package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
  70. package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
  71. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +2 -0
  72. package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
  73. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
  74. package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
  75. package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
  76. package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
  77. package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
  78. package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +1 -0
  79. package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +1 -0
  80. package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +1 -0
  81. package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +1 -0
  82. package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +1 -0
  83. package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +1 -0
  84. package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
  85. package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
  86. package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
  87. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +1 -0
  88. package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
  89. package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +1 -0
  90. package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
  91. package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
  92. package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +1 -0
  93. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +1 -0
  94. package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +2 -0
  95. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +2 -0
  96. package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +1 -0
  97. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
  98. package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
  99. package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
  100. package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +1 -0
  101. package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +1 -0
  102. package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
  103. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
  104. package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
  105. package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +2 -0
  106. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
  107. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
  108. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
  109. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +2 -0
  110. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
  111. package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +1 -0
  112. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
  113. package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +1 -0
  114. package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
  115. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
  116. package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
  117. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
  118. package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
  119. package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +1 -0
  120. package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +1 -0
  121. package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +2 -0
  122. package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +1 -0
  123. package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
  124. package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +1 -0
  125. package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +1 -0
  126. package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +1 -0
  127. package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
  128. package/dist/src/schema/transactionRequest/transactionRequest.d.ts +300 -2
  129. package/package.json +1 -1
  130. package/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.ts +2 -2
  131. package/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts +38 -0
  132. package/src/schema/transactionRequest/intents/cantonTransferRejectIntent.ts +2 -2
  133. package/src/schema/transactionRequest/intents/index.ts +13 -9
  134. package/src/schema/transactionRequest/intents/intent.ts +2 -0
  135. package/src/schema/transactionRequest/intents/intentType.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.35.0",
3
+ "version": "5.37.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -10,13 +10,13 @@ import { intentTypes } from "./intentType";
10
10
  * by sending out an acceptance/rejection transaction on-chain
11
11
  *
12
12
  * @param {String} intentType - The type of intent (always set to transferAccept)
13
- * @param {string} contractId - The contract id that needs to be accepted by the receiver
13
+ * @param {string} txRequestId - The acknowledgement txRequestId
14
14
  */
15
15
  export const CantonTransferAcceptIntent = t.intersection([
16
16
  BaseIntent,
17
17
  t.type({
18
18
  intentType: intentTypes.transferAccept,
19
- contractId: t.string,
19
+ txRequestId: t.string,
20
20
  }),
21
21
  ]);
22
22
 
@@ -0,0 +1,38 @@
1
+ import * as t from "io-ts";
2
+ import { BaseIntent } from "./baseIntent";
3
+ import { intentTypes } from "./intentType";
4
+
5
+ /**
6
+ * @title Canton Transfer Acknowledge Intent
7
+ *
8
+ * Intent for auto creating a dummy txn for the user to either accept or reject
9
+ * 2-step transfer in `Canton` chain means that the receiver has to explicitly accept/reject the deposit
10
+ * by sending out an acceptance/rejection transaction on-chain so when there is a deposit, we automatically create a
11
+ * txRequest with the details needed for user to take action
12
+ *
13
+ * @param {String} intentType - The type of intent (always set to transferAcknowledge)
14
+ * @param {String} contractId - The contract id that needs to be acted on by the receiver
15
+ * @param {String} senderPartyId - The address (partyId) of the sender
16
+ * @param {String} updateId - The transaction id of the deposit
17
+ * @param {Number} amount - The deposit amount
18
+ * @param {Number} expiry - The expiry epoch
19
+ * @param {String} [memoId] - The optional memoId
20
+ */
21
+ export const CantonTransferAcknowledgeIntent = t.intersection([
22
+ BaseIntent,
23
+ t.type({
24
+ intentType: intentTypes.transferAcknowledge,
25
+ contractId: t.string,
26
+ senderPartyId: t.string,
27
+ updateId: t.string,
28
+ amount: t.number,
29
+ expiry: t.number,
30
+ }),
31
+ t.partial({
32
+ memoId: t.string,
33
+ }),
34
+ ]);
35
+
36
+ export type CantonTransferAcknowledgeIntent = t.TypeOf<
37
+ typeof CantonTransferAcknowledgeIntent
38
+ >;
@@ -10,13 +10,13 @@ import { intentTypes } from "./intentType";
10
10
  * by sending out an acceptance/rejection transaction on-chain
11
11
  *
12
12
  * @param {String} intentType - The type of intent (always set to transferReject)
13
- * @param {string} contractId - The contract id that needs to be rejected by the receiver
13
+ * @param {string} txRequestId - The acknowledgement txRequestId
14
14
  */
15
15
  export const CantonTransferRejectIntent = t.intersection([
16
16
  BaseIntent,
17
17
  t.type({
18
18
  intentType: intentTypes.transferReject,
19
- contractId: t.string,
19
+ txRequestId: t.string,
20
20
  }),
21
21
  ]);
22
22
 
@@ -12,6 +12,7 @@ export * from "./adaUnstakeIntent";
12
12
  export * from "./adaVoteDelegationIntent";
13
13
  export * from "./address";
14
14
  export * from "./amount";
15
+ export * from "./aptBuildOptions";
15
16
  export * from "./aptCustomTxIntent";
16
17
  export * from "./atomPaymentIntent";
17
18
  export * from "./atomStakeIntent";
@@ -19,6 +20,7 @@ export * from "./atomUnstakeIntent";
19
20
  export * from "./atomWithdrawIntent";
20
21
  export * from "./babyCreateBtcDelegationIntent";
21
22
  export * from "./babyWithdrawRewardIntent";
23
+ export * from "./baseGoStakeIntent";
22
24
  export * from "./baseIntent";
23
25
  export * from "./baseStakeIntent";
24
26
  export * from "./baseStakeIntentWithCalldata";
@@ -28,6 +30,7 @@ export * from "./bscStakeClaimRewardsIntent";
28
30
  export * from "./bscUndelegateIntent";
29
31
  export * from "./bscWithdrawUndelegateIntent";
30
32
  export * from "./cantonTransferAcceptIntent";
33
+ export * from "./cantonTransferAcknowledgeIntent";
31
34
  export * from "./cantonTransferRejectIntent";
32
35
  export * from "./consolidateTokenIntent";
33
36
  export * from "./coredaoClaimIntent";
@@ -66,6 +69,7 @@ export * from "./feeOptionFeeType";
66
69
  export * from "./feeOptionFormula";
67
70
  export * from "./feeOptionUnit";
68
71
  export * from "./fillNonceIntent";
72
+ export * from "./goUnstakeIntent";
69
73
  export * from "./hopParams";
70
74
  export * from "./icpPaymentIntent";
71
75
  export * from "./icpSignatures";
@@ -77,13 +81,13 @@ export * from "./mmiSignTransactionIntent";
77
81
  export * from "./nearStakeIntent";
78
82
  export * from "./nearUnstakeIntent";
79
83
  export * from "./nearWithdrawIntent";
84
+ export * from "./paymentIntent";
80
85
  export * from "./polyxBaseIntent";
81
86
  export * from "./polyxCreateAccountIntent";
82
87
  export * from "./polyxPreApproveAssetIntent";
83
88
  export * from "./polyxStakeIntent";
84
89
  export * from "./polyxUnstakeIntent";
85
90
  export * from "./polyxWithdrawIntent";
86
- export * from "./paymentIntent";
87
91
  export * from "./recipientEntry";
88
92
  export * from "./signMessageIntent";
89
93
  export * from "./solAuthorizeIntent";
@@ -95,10 +99,10 @@ export * from "./solCreateAssociatedTokenAccountIntent";
95
99
  export * from "./solCustomTxIntent";
96
100
  export * from "./solDeactivateIntent";
97
101
  export * from "./solDelegateIntent";
98
- export * from "./solStakingType";
99
102
  export * from "./solGoUnstakeIntent";
100
103
  export * from "./solPaymentIntent";
101
104
  export * from "./solStakeIntent";
105
+ export * from "./solStakingType";
102
106
  export * from "./solUnstakeIntent";
103
107
  export * from "./solVersionedCustomTxIntent";
104
108
  export * from "./stakeClaimRewardsIntent";
@@ -110,10 +114,6 @@ export * from "./substrateConsolidateIntent";
110
114
  export * from "./substrateFeeOptionFormula";
111
115
  export * from "./substrateFeeOptions";
112
116
  export * from "./substratePaymentIntent";
113
- export * from "./taoStakingBaseIntent";
114
- export * from "./taoStakeIntent";
115
- export * from "./taoSwitchValidatorIntent";
116
- export * from "./taoUnstakeIntent";
117
117
  export * from "./suiBuildOptions";
118
118
  export * from "./suiConsolidateIntent";
119
119
  export * from "./suiCustomTxIntent";
@@ -123,6 +123,11 @@ export * from "./suiPaymentIntent";
123
123
  export * from "./suiStakingIntent";
124
124
  export * from "./suiUnstakingIntent";
125
125
  export * from "./supportedTokenRecipientEntryItem";
126
+ export * from "./taoStakeIntent";
127
+ export * from "./taoStakingBaseIntent";
128
+ export * from "./taoSwitchValidatorIntent";
129
+ export * from "./taoUnstakeIntent";
130
+ export * from "./tokenApprovalIntent";
126
131
  export * from "./tokenData";
127
132
  export * from "./tokenEnablement";
128
133
  export * from "./tokenRecipientEntry";
@@ -134,13 +139,12 @@ export * from "./tonUndelegateIntent";
134
139
  export * from "./transferTokenIntent";
135
140
  export * from "./unstakeIntent";
136
141
  export * from "./unsupportedTokenRecipientEntryItem";
137
- export * from "./vetStakingIntent";
138
142
  export * from "./vetStakeClaimRewardsIntent";
143
+ export * from "./vetStakingIntent";
144
+ export * from "./vetUnstakingIntent";
139
145
  export * from "./voteDelegationIntent";
140
146
  export * from "./walletRecoveryIntent";
141
147
  export * from "./walrusStakingIntent";
142
148
  export * from "./walrusUndelegateIntent";
143
149
  export * from "./walrusWithdrawIntent";
144
150
  export * from "./withdrawIntent";
145
- export * from "./tokenApprovalIntent";
146
- export * from "./vetUnstakingIntent";
@@ -94,6 +94,7 @@ import { VetStakingIntent } from "./vetStakingIntent";
94
94
  import { VetStakeClaimRewardsIntent } from "./vetStakeClaimRewardsIntent";
95
95
  import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
96
96
  import { CantonTransferRejectIntent } from "./cantonTransferRejectIntent";
97
+ import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
97
98
 
98
99
  export const TransactionIntent = t.union([
99
100
  AdaConsolidateIntent,
@@ -113,6 +114,7 @@ export const TransactionIntent = t.union([
113
114
  BscUnDelegateIntent,
114
115
  BscWithdrawUndelegateIntent,
115
116
  CantonTransferAcceptIntent,
117
+ CantonTransferAcknowledgeIntent,
116
118
  CantonTransferRejectIntent,
117
119
  CosmosPaymentIntent,
118
120
  CosmosStakeIntent,
@@ -45,6 +45,7 @@ export const intentTypes = {
45
45
  createBtcDelegation: t.literal("createBtcDelegation"),
46
46
  transferAccept: t.literal("transferAccept"),
47
47
  transferReject: t.literal("transferReject"),
48
+ transferAcknowledge: t.literal("transferAcknowledge"),
48
49
  };
49
50
 
50
51
  export const IntentType = t.keyof(intentTypes);