Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Metrics events all #327

Merged
merged 5 commits into from
Apr 24, 2020
Merged

Metrics events all #327

merged 5 commits into from
Apr 24, 2020

Conversation

janedegtiareva
Copy link
Contributor

@janedegtiareva janedegtiareva commented Apr 24, 2020

console.log(`Staking ${options.amount} (${utils.format.parseNearAmount(options.amount)}) on ${options.accountId} with public key = ${options.stakingKey}.`);
const near = await connect(options);
const account = await near.account(options.accountId);
const result = await account.stake(options.stakingKey, utils.format.parseNearAmount(options.amount));
console.log(inspectResponse(result));
await eventtracking.track(eventtracking.EVENT_ID_STAKE_END, { node: options.nodeUrl, success: true });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. We don't have the amount on the success here, but that's not a hard requirement imo

@mikedotexe mikedotexe merged commit 022f9c2 into master Apr 24, 2020
@mikedotexe mikedotexe deleted the metrics-events-all branch April 24, 2020 23:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants