Skip to content

Commit 64d2132

Browse files
author
Jeff Yanta
committed
Additional cleanup of all services
1 parent 49d3070 commit 64d2132

File tree

12 files changed

+202
-507
lines changed

12 files changed

+202
-507
lines changed

generated/go/common/v1/model.pb.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/currency/v1/currency_service.pb.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/currency/v1/currency_service_grpc.pb.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/messaging/v1/messaging_service.pb.go

Lines changed: 160 additions & 281 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/messaging/v1/messaging_service.pb.validate.go

Lines changed: 0 additions & 116 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/protobuf-es/common/v1/model_pb.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf";
1010
* AccountType associates a type to an account, which infers how an account is used
1111
* within the Code ecosystem.
1212
*
13+
* todo: Deprecate legacy accounts (temporary, buckets, legacy primary, relationship)
14+
*
1315
* @generated from enum code.common.v1.AccountType
1416
*/
1517
export enum AccountType {

generated/protobuf-es/currency/v1/currency_service_connect.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export const Currency = {
1313
typeName: "code.currency.v1.Currency",
1414
methods: {
1515
/**
16-
* GetAllRates returns the exchange rates for Kin against all available currencies
16+
* GetAllRates returns the exchange rates for the core mint token against all
17+
* available currencies
1718
*
1819
* @generated from rpc code.currency.v1.Currency.GetAllRates
1920
*/

generated/protobuf-es/currency/v1/currency_service_pb.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export class GetAllRatesResponse extends Message<GetAllRatesResponse> {
6464
asOf?: Timestamp;
6565

6666
/**
67-
* The price of 1 Kin in different currencies, keyed on 3- or 4- letter lowercase currency code.
67+
* The price of 1 core mint token in different currencies, keyed on 3- or 4-
68+
* letter lowercase currency code.
6869
*
6970
* @generated from field: map<string, double> rates = 3;
7071
*/

generated/protobuf-es/messaging/v1/messaging_service_pb.ts

Lines changed: 11 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
77
import { Message as Message$1, proto3, Timestamp } from "@bufbuild/protobuf";
88
import { ClientPong, Domain, IntentId, ServerPing, Signature, SolanaAccountId } from "../../common/v1/model_pb";
9-
import { AdditionalFeePayment, AirdropType, ExchangeData, ExchangeDataWithoutRate, Metadata } from "../../transaction/v2/transaction_service_pb";
9+
import { AdditionalFeePayment, ExchangeData, ExchangeDataWithoutRate, Metadata } from "../../transaction/v2/transaction_service_pb";
1010

1111
/**
1212
* @generated from message code.messaging.v1.OpenMessageStreamRequest
@@ -578,7 +578,8 @@ export class MessageId extends Message$1<MessageId> {
578578
*/
579579
export class RequestToGrabBill extends Message$1<RequestToGrabBill> {
580580
/**
581-
* Requestor is the Kin token account on Solana to which a payment should be sent.
581+
* Requestor is the virtual core mint token account on the VM to which a
582+
* payment should be sent.
582583
*
583584
* @generated from field: code.common.v1.SolanaAccountId requestor_account = 1;
584585
*/
@@ -622,7 +623,8 @@ export class RequestToGrabBill extends Message$1<RequestToGrabBill> {
622623
*/
623624
export class RequestToReceiveBill extends Message$1<RequestToReceiveBill> {
624625
/**
625-
* Requestor is the Kin token account on Solana to which a payment should be sent.
626+
* Requestor is the virtual core mint token account on the VM to which a
627+
* payment should be sent.
626628
*
627629
* @generated from field: code.common.v1.SolanaAccountId requestor_account = 1;
628630
*/
@@ -635,22 +637,22 @@ export class RequestToReceiveBill extends Message$1<RequestToReceiveBill> {
635637
*/
636638
exchangeData: {
637639
/**
638-
* An exact amount of Kin. Payment is guaranteed to transfer the specified
640+
* An exact amount of core mint tokens. Payment is guaranteed to transfer the specified
639641
* quarks in the requested currency and exchange rate.
640642
*
641-
* Only supports Kin. Use exchange_data.partial for fiat amounts.
643+
* Only supports the core mint account. Use exchange_data.partial for fiat amounts.
642644
*
643645
* @generated from field: code.transaction.v2.ExchangeData exact = 2;
644646
*/
645647
value: ExchangeData;
646648
case: "exact";
647649
} | {
648650
/**
649-
* Fiat amount request. The amount of Kin is determined at time of payment
650-
* with a recent exchange rate provided by the paying client and validatd
651-
* by server.
651+
* Fiat amount request. The amount of core mint tokens are determined at
652+
* time of payment with a recent exchange rate provided by the paying client
653+
* and validated by server.
652654
*
653-
* Only supports fiat amounts. Use exchange_data.exact for Kin.
655+
* Only supports fiat amounts. Use exchange_data.exact for the core mint account.
654656
*
655657
* @generated from field: code.transaction.v2.ExchangeDataWithoutRate partial = 3;
656658
*/
@@ -909,65 +911,6 @@ export class WebhookCalled extends Message$1<WebhookCalled> {
909911
}
910912
}
911913

912-
/**
913-
* Client has received an aidrop from server
914-
*
915-
* This message type is only initiated by server.
916-
*
917-
* @generated from message code.messaging.v1.AirdropReceived
918-
*/
919-
export class AirdropReceived extends Message$1<AirdropReceived> {
920-
/**
921-
* The type of airdrop received
922-
*
923-
* @generated from field: code.transaction.v2.AirdropType airdrop_type = 1;
924-
*/
925-
airdropType = AirdropType.UNKNOWN;
926-
927-
/**
928-
* Exchange data relating to the amount of Kin and fiat value of the airdrop
929-
*
930-
* @generated from field: code.transaction.v2.ExchangeData exchange_data = 2;
931-
*/
932-
exchangeData?: ExchangeData;
933-
934-
/**
935-
* Time the airdrop was received
936-
*
937-
* @generated from field: google.protobuf.Timestamp timestamp = 3;
938-
*/
939-
timestamp?: Timestamp;
940-
941-
constructor(data?: PartialMessage<AirdropReceived>) {
942-
super();
943-
proto3.util.initPartial(data, this);
944-
}
945-
946-
static readonly runtime: typeof proto3 = proto3;
947-
static readonly typeName = "code.messaging.v1.AirdropReceived";
948-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
949-
{ no: 1, name: "airdrop_type", kind: "enum", T: proto3.getEnumType(AirdropType) },
950-
{ no: 2, name: "exchange_data", kind: "message", T: ExchangeData },
951-
{ no: 3, name: "timestamp", kind: "message", T: Timestamp },
952-
]);
953-
954-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AirdropReceived {
955-
return new AirdropReceived().fromBinary(bytes, options);
956-
}
957-
958-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AirdropReceived {
959-
return new AirdropReceived().fromJson(jsonValue, options);
960-
}
961-
962-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AirdropReceived {
963-
return new AirdropReceived().fromJsonString(jsonString, options);
964-
}
965-
966-
static equals(a: AirdropReceived | PlainMessage<AirdropReceived> | undefined, b: AirdropReceived | PlainMessage<AirdropReceived> | undefined): boolean {
967-
return proto3.util.equals(AirdropReceived, a, b);
968-
}
969-
}
970-
971914
/**
972915
* @generated from message code.messaging.v1.Message
973916
*/
@@ -1034,12 +977,6 @@ export class Message extends Message$1<Message> {
1034977
*/
1035978
value: WebhookCalled;
1036979
case: "webhookCalled";
1037-
} | {
1038-
/**
1039-
* @generated from field: code.messaging.v1.AirdropReceived airdrop_received = 4;
1040-
*/
1041-
value: AirdropReceived;
1042-
case: "airdropReceived";
1043980
} | { case: undefined; value?: undefined } = { case: undefined };
1044981

1045982
constructor(data?: PartialMessage<Message>) {
@@ -1058,7 +995,6 @@ export class Message extends Message$1<Message> {
1058995
{ no: 7, name: "client_rejected_payment", kind: "message", T: ClientRejectedPayment, oneof: "kind" },
1059996
{ no: 8, name: "intent_submitted", kind: "message", T: IntentSubmitted, oneof: "kind" },
1060997
{ no: 9, name: "webhook_called", kind: "message", T: WebhookCalled, oneof: "kind" },
1061-
{ no: 4, name: "airdrop_received", kind: "message", T: AirdropReceived, oneof: "kind" },
1062998
]);
1063999

10641000
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Message {

proto/common/v1/model.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import "validate/validate.proto";
1212

1313
// AccountType associates a type to an account, which infers how an account is used
1414
// within the Code ecosystem.
15+
//
16+
// todo: Deprecate legacy accounts (temporary, buckets, legacy primary, relationship)
1517
enum AccountType {
1618
UNKNOWN = 0;
1719
PRIMARY = 1;

0 commit comments

Comments
 (0)