Skip to content

Commit ea09f50

Browse files
committed
update analytics for auth entry
1 parent 5751d59 commit ea09f50

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

src/app/(sidebar)/transaction/build/components/SorobanOperation.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,10 @@ export const SorobanOperation = ({
183183
) {
184184
trackEvent(
185185
TrackingEvent.SOROBAN_BUILD_FUNCTION_SELECT,
186-
{
187-
operationType:
188-
sorobanOperation.operation_type,
189-
},
190186
);
191187
} else if (value?.args !== prevParsed?.args) {
192188
trackEvent(
193189
TrackingEvent.SOROBAN_BUILD_ARG_CHANGE,
194-
{
195-
operationType:
196-
sorobanOperation.operation_type,
197-
},
198190
);
199191
}
200192

src/components/SorobanAuthSigning/AuthEntryItem.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const AuthEntryItem = ({
9595
}
9696

9797
trackEvent(TrackingEvent.SOROBAN_AUTH_SIGN_ENTRY_SUCCESS, {
98-
entryIndex: index,
98+
entryIndex: index + 1,
9999
});
100100
return {
101101
successMessage: `Signed entry #${index + 1}`,
@@ -109,7 +109,13 @@ export const AuthEntryItem = ({
109109
return { successMessage: "", errorMessage: msg };
110110
}
111111
},
112-
[authEntriesXdr, index, validUntilLedgerSeq, networkPassphrase, onAuthSigned],
112+
[
113+
authEntriesXdr,
114+
index,
115+
validUntilLedgerSeq,
116+
networkPassphrase,
117+
onAuthSigned,
118+
],
113119
);
114120

115121
return (

src/constants/networkLimits.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ export const MAINNET_LIMITS: NetworkLimits = {
8383
"persistent_rent_rate_denominator": "1215",
8484
"temp_rent_rate_denominator": "2430",
8585
"live_soroban_state_size_window": [
86-
"753690861",
87-
"754411333",
88-
"755424537",
89-
"755953837",
90-
"756288193",
91-
"756564929",
92-
"757729289",
9386
"758476245",
9487
"758850785",
9588
"759083305",
@@ -112,7 +105,14 @@ export const MAINNET_LIMITS: NetworkLimits = {
112105
"769828505",
113106
"770054765",
114107
"770632037",
115-
"770905097"
108+
"770905097",
109+
"772472602",
110+
"773649522",
111+
"773676500",
112+
"774420492",
113+
"774648696",
114+
"775591536",
115+
"776743332"
116116
],
117117
"state_target_size_bytes": "3000000000",
118118
"rent_fee_1kb_state_size_low": "-17000",
@@ -151,14 +151,6 @@ export const TESTNET_LIMITS: NetworkLimits = {
151151
"persistent_rent_rate_denominator": "1215",
152152
"temp_rent_rate_denominator": "2430",
153153
"live_soroban_state_size_window": [
154-
"1042272597",
155-
"1042861980",
156-
"1042879664",
157-
"1042902200",
158-
"1042912356",
159-
"1043129831",
160-
"1045225435",
161-
"1045677959",
162154
"1046345469",
163155
"1046312481",
164156
"1046429708",
@@ -180,7 +172,15 @@ export const TESTNET_LIMITS: NetworkLimits = {
180172
"1047749719",
181173
"1047766347",
182174
"1047798771",
183-
"1047755971"
175+
"1047755971",
176+
"1047862250",
177+
"1047788690",
178+
"1045216039",
179+
"1045223487",
180+
"1045411949",
181+
"1045479030",
182+
"1045495534",
183+
"1045426290"
184184
],
185185
"state_target_size_bytes": "3000000000",
186186
"rent_fee_1kb_state_size_low": "-17000",

src/metrics/tracking.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ export enum TrackingEvent {
166166
SOROBAN_AUTH_ASSEMBLY_SUCCESS = "soroban auth: assembly: success",
167167
SOROBAN_AUTH_ASSEMBLY_ERROR = "soroban auth: assembly: error",
168168
// Transactions - Soroban build
169-
SOROBAN_BUILD_FUNCTION_SELECT = "soroban build: function select",
170-
SOROBAN_BUILD_ARG_CHANGE = "soroban build: arg change",
169+
SOROBAN_BUILD_FUNCTION_SELECT = "soroban build: invoke contract - function select",
170+
SOROBAN_BUILD_ARG_CHANGE = "soroban build: invoke contract - arg change",
171171
// Transactions - validate
172172
TRANSACTION_VALIDATE_AUTH_ENFORCE_SUCCESS = "transaction: validate: auth enforce: success",
173173
TRANSACTION_VALIDATE_AUTH_ENFORCE_FAILURE = "transaction: validate: auth enforce: failure",

0 commit comments

Comments
 (0)