Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@etherean/etherean-grpc

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etherean/etherean-grpc - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

16

dist/referral_miniapp.client.d.ts

@@ -50,10 +50,6 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

/**
* @generated from protobuf rpc: StartFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.Farming);
* @generated from protobuf rpc: StartOrRestartFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.Farming);
*/
startFarming(input: ClientId, options?: RpcOptions): UnaryCall<ClientId, Farming>;
startOrRestartFarming(input: ClientId, options?: RpcOptions): UnaryCall<ClientId, Farming>;
/**
* @generated from protobuf rpc: ClaimFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.BalanceResponse);
*/
claimFarming(input: ClientId, options?: RpcOptions): UnaryCall<ClientId, BalanceResponse>;
/**
* @generated from protobuf rpc: Me(etherean.referral_miniapp.MeRequest) returns (etherean.referral_miniapp.MeResponse);

@@ -107,10 +103,6 @@ */

/**
* @generated from protobuf rpc: StartFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.Farming);
* @generated from protobuf rpc: StartOrRestartFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.Farming);
*/
startFarming(input: ClientId, options?: RpcOptions): UnaryCall<ClientId, Farming>;
startOrRestartFarming(input: ClientId, options?: RpcOptions): UnaryCall<ClientId, Farming>;
/**
* @generated from protobuf rpc: ClaimFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.BalanceResponse);
*/
claimFarming(input: ClientId, options?: RpcOptions): UnaryCall<ClientId, BalanceResponse>;
/**
* @generated from protobuf rpc: Me(etherean.referral_miniapp.MeRequest) returns (etherean.referral_miniapp.MeResponse);

@@ -117,0 +109,0 @@ */

@@ -59,5 +59,5 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

/**
* @generated from protobuf rpc: StartFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.Farming);
* @generated from protobuf rpc: StartOrRestartFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.Farming);
*/
startFarming(input, options) {
startOrRestartFarming(input, options) {
const method = this.methods[6], opt = this._transport.mergeOptions(options);

@@ -67,13 +67,6 @@ return stackIntercept("unary", this._transport, method, opt, input);

/**
* @generated from protobuf rpc: ClaimFarming(etherean.type.ClientId) returns (etherean.referral_miniapp.BalanceResponse);
*/
claimFarming(input, options) {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Me(etherean.referral_miniapp.MeRequest) returns (etherean.referral_miniapp.MeResponse);
*/
me(input, options) {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept("unary", this._transport, method, opt, input);

@@ -85,3 +78,3 @@ }

setSeenOnboarding(input, options) {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept("unary", this._transport, method, opt, input);

@@ -95,5 +88,5 @@ }

dailyLogin(input, options) {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept("unary", this._transport, method, opt, input);
}
}

@@ -276,2 +276,4 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

/**
* start time of new farming
*
* @generated from protobuf field: google.protobuf.Timestamp start_time = 1;

@@ -281,6 +283,4 @@ */

/**
* @generated from protobuf field: google.protobuf.Timestamp end_time = 2;
*/
endTime?: Timestamp;
/**
* points per second
*
* @generated from protobuf field: google.type.Decimal earnings_rate = 3;

@@ -290,7 +290,11 @@ */

/**
* @generated from protobuf field: google.type.Decimal balance = 4;
* max reward for stated farming
*
* @generated from protobuf field: google.type.Decimal max_reward = 5;
*/
balance?: Decimal;
maxReward?: Decimal;
/**
* @generated from protobuf field: google.type.Decimal reward = 5;
* reward gotten for last farming
*
* @generated from protobuf field: google.type.Decimal reward = 6;
*/

@@ -297,0 +301,0 @@ reward?: Decimal;

@@ -195,6 +195,5 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

{ no: 1, name: "start_time", kind: "message", T: () => Timestamp },
{ no: 2, name: "end_time", kind: "message", T: () => Timestamp },
{ no: 3, name: "earnings_rate", kind: "message", T: () => Decimal },
{ no: 4, name: "balance", kind: "message", T: () => Decimal },
{ no: 5, name: "reward", kind: "message", T: () => Decimal }
{ no: 5, name: "max_reward", kind: "message", T: () => Decimal },
{ no: 6, name: "reward", kind: "message", T: () => Decimal }
]);

@@ -217,4 +216,3 @@ }

{ name: "TaskClaim", options: {}, I: TaskPostRequest, O: Task },
{ name: "StartFarming", options: {}, I: ClientId, O: Farming },
{ name: "ClaimFarming", options: {}, I: ClientId, O: BalanceResponse },
{ name: "StartOrRestartFarming", options: {}, I: ClientId, O: Farming },
{ name: "Me", options: {}, I: MeRequest, O: MeResponse },

@@ -221,0 +219,0 @@ { name: "SetSeenOnboarding", options: {}, I: ClientId, O: Empty },

@@ -6,2 +6,4 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import type { StreakRewardsResponse } from "./referral_points.js";
import type { TasksRewardsResponse } from "./referral_points.js";
import type { Decimal } from "./decimal.js";

@@ -30,2 +32,10 @@ import type { Empty } from "./empty.js";

getTgClaimReward(input: Empty, options?: RpcOptions): UnaryCall<Empty, Decimal>;
/**
* @generated from protobuf rpc: GetTasksRewards(google.protobuf.Empty) returns (etherean.referral_points.TasksRewardsResponse);
*/
getTasksRewards(input: Empty, options?: RpcOptions): UnaryCall<Empty, TasksRewardsResponse>;
/**
* @generated from protobuf rpc: GetStreakRewards(google.protobuf.Empty) returns (etherean.referral_points.StreakRewardsResponse);
*/
getStreakRewards(input: Empty, options?: RpcOptions): UnaryCall<Empty, StreakRewardsResponse>;
}

@@ -53,2 +63,10 @@ /**

getTgClaimReward(input: Empty, options?: RpcOptions): UnaryCall<Empty, Decimal>;
/**
* @generated from protobuf rpc: GetTasksRewards(google.protobuf.Empty) returns (etherean.referral_points.TasksRewardsResponse);
*/
getTasksRewards(input: Empty, options?: RpcOptions): UnaryCall<Empty, TasksRewardsResponse>;
/**
* @generated from protobuf rpc: GetStreakRewards(google.protobuf.Empty) returns (etherean.referral_points.StreakRewardsResponse);
*/
getStreakRewards(input: Empty, options?: RpcOptions): UnaryCall<Empty, StreakRewardsResponse>;
}

@@ -37,2 +37,16 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

}
/**
* @generated from protobuf rpc: GetTasksRewards(google.protobuf.Empty) returns (etherean.referral_points.TasksRewardsResponse);
*/
getTasksRewards(input, options) {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetStreakRewards(google.protobuf.Empty) returns (etherean.referral_points.StreakRewardsResponse);
*/
getStreakRewards(input, options) {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept("unary", this._transport, method, opt, input);
}
}

@@ -5,6 +5,32 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

import { MessageType } from "@protobuf-ts/runtime";
import { Decimal } from "./decimal.js";
import { Address } from "./user_wallet.js";
import { ClientId } from "./client_id.js";
import { Decimal } from "./decimal.js";
/**
* @generated from protobuf message etherean.referral_points.TasksRewardsResponse
*/
export interface TasksRewardsResponse {
/**
* The key is the task type, the value is the reward amount.
*
* @generated from protobuf field: map<string, google.type.Decimal> rewards = 1;
*/
rewards: {
[key: string]: Decimal;
};
}
/**
* @generated from protobuf message etherean.referral_points.StreakRewardsResponse
*/
export interface StreakRewardsResponse {
/**
* The key is the day.
*
* @generated from protobuf field: map<int32, google.type.Decimal> rewards = 1;
*/
rewards: {
[key: number]: Decimal;
};
}
/**
* @generated from protobuf message etherean.referral_points.PointsAndReferralsRequest

@@ -21,2 +47,8 @@ */

userWallet?: Address;
/**
* Calculate only main only main referrals count true by default
*
* @generated from protobuf field: optional bool only_main = 3;
*/
onlyMain?: boolean;
}

@@ -95,2 +127,16 @@ /**

}
declare class TasksRewardsResponse$Type extends MessageType<TasksRewardsResponse> {
constructor();
}
/**
* @generated MessageType for protobuf message etherean.referral_points.TasksRewardsResponse
*/
export declare const TasksRewardsResponse: TasksRewardsResponse$Type;
declare class StreakRewardsResponse$Type extends MessageType<StreakRewardsResponse> {
constructor();
}
/**
* @generated MessageType for protobuf message etherean.referral_points.StreakRewardsResponse
*/
export declare const StreakRewardsResponse: StreakRewardsResponse$Type;
declare class PointsAndReferralsRequest$Type extends MessageType<PointsAndReferralsRequest> {

@@ -97,0 +143,0 @@ constructor();

@@ -10,6 +10,30 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

import { MessageType } from "@protobuf-ts/runtime";
import { Decimal } from "./decimal.js";
import { Address } from "./user_wallet.js";
import { ClientId } from "./client_id.js";
import { Decimal } from "./decimal.js";
// @generated message type with reflection information, may provide speed optimized methods
class TasksRewardsResponse$Type extends MessageType {
constructor() {
super("etherean.referral_points.TasksRewardsResponse", [
{ no: 1, name: "rewards", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Decimal } }
]);
}
}
/**
* @generated MessageType for protobuf message etherean.referral_points.TasksRewardsResponse
*/
export const TasksRewardsResponse = new TasksRewardsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StreakRewardsResponse$Type extends MessageType {
constructor() {
super("etherean.referral_points.StreakRewardsResponse", [
{ no: 1, name: "rewards", kind: "map", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => Decimal } }
]);
}
}
/**
* @generated MessageType for protobuf message etherean.referral_points.StreakRewardsResponse
*/
export const StreakRewardsResponse = new StreakRewardsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PointsAndReferralsRequest$Type extends MessageType {

@@ -19,3 +43,4 @@ constructor() {

{ no: 1, name: "client_id", kind: "message", T: () => ClientId },
{ no: 2, name: "user_wallet", kind: "message", T: () => Address }
{ no: 2, name: "user_wallet", kind: "message", T: () => Address },
{ no: 3, name: "only_main", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
]);

@@ -91,3 +116,5 @@ }

{ name: "GetPoints", options: {}, I: PointsAndReferralsRequest, O: TotalPoints },
{ name: "GetTgClaimReward", options: {}, I: Empty, O: Decimal }
{ name: "GetTgClaimReward", options: {}, I: Empty, O: Decimal },
{ name: "GetTasksRewards", options: {}, I: Empty, O: TasksRewardsResponse },
{ name: "GetStreakRewards", options: {}, I: Empty, O: StreakRewardsResponse }
]);
{
"name": "@etherean/etherean-grpc",
"type": "module",
"version": "1.0.4",
"version": "1.1.0",
"description": "",

@@ -6,0 +6,0 @@ "keywords": [],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc