77 * To update run 'ampli pull scraper'
88 *
99 * Required dependencies: @amplitude/analytics-node@^0.5.0
10- * Tracking Plan Version: 30
10+ * Tracking Plan Version: 32
1111 * Build: 1.0.0
1212 * Runtime: node.js:typescript-ampli-v2
1313 *
@@ -37,10 +37,10 @@ export const ApiKey: Record<Environment, string> = {
3737 */
3838export const DefaultConfiguration : NodeOptions = {
3939 plan : {
40- version : "30 " ,
40+ version : "32 " ,
4141 branch : "main" ,
4242 source : "scraper" ,
43- versionId : "0b21d764-e05a-48ac-9da6-95b3efc901dd " ,
43+ versionId : "e6298d8b-58e2-45e6-a09d-0f244c0489ab " ,
4444 } ,
4545 ...{
4646 ingestionMetadata : {
@@ -117,7 +117,7 @@ export interface IdentifyProperties {
117117 walletType ?: string ;
118118}
119119
120- export interface TransferTransactionConfirmedProperties {
120+ export interface FillTransactionCompletedProperties {
121121 /**
122122 * Capital fee percent, in decimals
123123 */
@@ -130,8 +130,11 @@ export interface TransferTransactionConfirmedProperties {
130130 * Capital fee in USD
131131 */
132132 capitalFeeTotalUsd : string ;
133+ depositCompleteTimestamp : string ;
133134 fillAmount : string ;
134135 fillAmountUsd : string ;
136+ fillCompleteTimestamp : string ;
137+ fillTime : string ;
135138 /**
136139 * From amount in the bridge token, in decimals
137140 */
@@ -141,7 +144,7 @@ export interface TransferTransactionConfirmedProperties {
141144 */
142145 fromAmountUsd : string ;
143146 /**
144- * From chain id
147+ * Id of the fromChain
145148 */
146149 fromChainId : string ;
147150 /**
@@ -225,10 +228,6 @@ export interface TransferTransactionConfirmedProperties {
225228 * Result of user signing or rejecting wallet connection
226229 */
227230 succeeded : boolean ;
228- /**
229- * Duration in milliseconds between TransferSigned event to the TransferTransactionCompleted event
230- */
231- timeFromTransferSignedToTransferCompleteInMilliseconds : string ;
232231 /**
233232 * To amount of bridge token, in decimals
234233 */
@@ -268,14 +267,9 @@ export interface TransferTransactionConfirmedProperties {
268267 */
269268 toTokenAddress : string ;
270269 /**
271- * Resulting transaction hash of transaction, null if "result" if TransferTransactionCompleted = failed
270+ * Resulting transaction hash of transaction, null if "result" if SwapSigned event = failed
272271 */
273272 transactionHash : string ;
274- /**
275- * Timestamp transfer completed
276- */
277- transferCompleteTimestamp : string ;
278- transferQuoteBlockNumber : string ;
279273}
280274
281275export class Identify implements BaseEvent {
@@ -286,10 +280,10 @@ export class Identify implements BaseEvent {
286280 }
287281}
288282
289- export class TransferTransactionConfirmed implements BaseEvent {
290- event_type = "TransferTransactionConfirmed " ;
283+ export class FillTransactionCompleted implements BaseEvent {
284+ event_type = "FillTransactionCompleted " ;
291285
292- constructor ( public event_properties : TransferTransactionConfirmedProperties ) {
286+ constructor ( public event_properties : FillTransactionCompletedProperties ) {
293287 this . event_properties = event_properties ;
294288 }
295289}
@@ -411,24 +405,22 @@ export class Ampli {
411405 }
412406
413407 /**
414- * TransferTransactionConfirmed
415- *
416- * [View in Tracking Plan](https://data.amplitude.com/risklabs/Risk%20Labs/events/main/latest/TransferTransactionConfirmed)
408+ * FillTransactionCompleted
417409 *
418- * On-chain transfer completed
410+ * [View in Tracking Plan](https://data.amplitude.com/risklabs/Risk%20Labs/events/main/latest/FillTransactionCompleted)
419411 *
420- * Owner: James Morris
412+ * Owner: Dong-Ha Kim
421413 *
422414 * @param userId The user's ID.
423415 * @param properties The event's properties (e.g. capitalFeePct)
424416 * @param options Amplitude event options.
425417 */
426- transferTransactionConfirmed (
418+ fillTransactionCompleted (
427419 userId : string | undefined ,
428- properties : TransferTransactionConfirmedProperties ,
420+ properties : FillTransactionCompletedProperties ,
429421 options ?: EventOptions ,
430422 ) {
431- return this . track ( userId , new TransferTransactionConfirmed ( properties ) , options ) ;
423+ return this . track ( userId , new FillTransactionCompleted ( properties ) , options ) ;
432424 }
433425}
434426
0 commit comments