diff --git a/client-vms/proto/nillion/membership/v1/service.proto b/client-vms/proto/nillion/membership/v1/service.proto index 0e64747e..e9ac4a86 100644 --- a/client-vms/proto/nillion/membership/v1/service.proto +++ b/client-vms/proto/nillion/membership/v1/service.proto @@ -4,10 +4,14 @@ package nillion.membership.v1; import "google/protobuf/empty.proto"; import "nillion/membership/v1/cluster.proto"; +import "nillion/membership/v1/version.proto"; // Exposes information about a node's membership. service Membership { // Get the definition of the cluster the node queried is part of. rpc Cluster(google.protobuf.Empty) returns (cluster.Cluster); + + // Get the node's version. + rpc NodeVersion(google.protobuf.Empty) returns (version.NodeVersion); } diff --git a/client-vms/proto/nillion/membership/v1/version.proto b/client-vms/proto/nillion/membership/v1/version.proto new file mode 100644 index 00000000..6a20a2b9 --- /dev/null +++ b/client-vms/proto/nillion/membership/v1/version.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +package nillion.membership.v1.version; + +// The node's version. +message NodeVersion { + // The node's version. + SemverVersion version = 1; + + // The built git commit hash. + string git_hash = 2; +} + +// A semver version. +message SemverVersion { + // The major version. + uint64 major = 1; + + // The minor version. + uint64 minor = 2; + + // The patch version. + uint64 patch = 3; + + // The optional pre-release version. + string pre_release = 4; +} + + + diff --git a/client-vms/proto/nillion/payments/v1/balance.proto b/client-vms/proto/nillion/payments/v1/balance.proto new file mode 100644 index 00000000..6ba9d8e7 --- /dev/null +++ b/client-vms/proto/nillion/payments/v1/balance.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; + +package nillion.payments.v1.balance; + +import "google/protobuf/timestamp.proto"; +import "nillion/auth/v1/user.proto"; + +// A response to a request to get the user account's balance. +message AccountBalanceResponse { + // The account balance, in unil. + uint64 balance = 1; + + // The timestamp at which this balance was last updated. + google.protobuf.Timestamp last_updated = 2; +} + +// A request to add funds to a user's account. +message AddFundsRequest { + // The serialized `AddFunds` payload. + bytes payload = 1; + + // The nilchain transaction hash that proves this payment was made. + string tx_hash = 2; +} + +// The payload sent as part of an add funds request. +message AddFundsPayload { + // The user the funds are being given to. + nillion.auth.v1.user.UserId recipient = 1; + + // A 32 byte nonce that is used to add entropy to the hash of this message and to prevent duplicate spending. + bytes nonce = 2; +} diff --git a/client-vms/proto/nillion/payments/v1/config.proto b/client-vms/proto/nillion/payments/v1/config.proto new file mode 100644 index 00000000..6773704a --- /dev/null +++ b/client-vms/proto/nillion/payments/v1/config.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package nillion.payments.v1.config; + +// A response to a payments configuration request. +message PaymentsConfigResponse { + // The minimum amount of unil that can be added in a `Payments.add_funds` request. + uint64 minimum_add_funds_payment = 1; +} + diff --git a/client-vms/proto/nillion/payments/v1/quote.proto b/client-vms/proto/nillion/payments/v1/quote.proto index 401f3e04..c3593f6d 100644 --- a/client-vms/proto/nillion/payments/v1/quote.proto +++ b/client-vms/proto/nillion/payments/v1/quote.proto @@ -5,6 +5,7 @@ package nillion.payments.v1.quote; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; import "nillion/preprocessing/v1/element.proto"; +import "nillion/preprocessing/v1/material.proto"; // A price quote request. message PriceQuoteRequest { @@ -60,41 +61,18 @@ message PriceQuote { // The preprocessing requirements for this operation. repeated PreprocessingRequirement preprocessing_requirements = 5; + + // The auxiliary material requirements for this operation. + repeated AuxiliaryMaterialRequirement auxiliary_material_requirements = 6; } // The fees associated with a quote. // // All fees are in "unil" units. message QuoteFees { - // The sum of all the fees. + reserved 2 to 6; + // The total fee for this quote. uint64 total = 1; - - // The base fee. - // - // This is a flat fee based on the operation being ran. - uint64 base = 2; - - // The congestion fee. - // - // This depends on how congested the network is. - uint64 congestion = 3; - - // The storage fee. - // - // This depends on how much data is being stored, in case the operation being quoted stores data. - uint64 storage = 4; - - // The preprocessing fee. - // - // This is only valid for compute operations and accounts for any preprocessing material needed - // to execute the program being invoked. - uint64 preprocessing = 5; - - // The compute fee. - // - // This fee is only valid for compute operations and depends on the complexity of the program - // being invoked. - uint64 compute = 6; } // A store program operation. @@ -125,9 +103,12 @@ message ProgramMetadata { // The preprocessing requirements. repeated PreprocessingRequirement preprocessing_requirements = 5; + + // The auxiliary material requirements. + repeated AuxiliaryMaterialRequirement auxiliary_material_requirements = 6; } -// A number of preprocessing elements required for a program. +// The number of preprocessing elements required for a program. message PreprocessingRequirement { // The preprocessing element. nillion.preprocessing.v1.element.PreprocessingElement element = 1; @@ -136,6 +117,17 @@ message PreprocessingRequirement { uint64 count = 2; } +// The auxiliary material required for a program. +message AuxiliaryMaterialRequirement { + // The preprocessing element. + nillion.preprocessing.v1.material.AuxiliaryMaterial material = 1; + + // The version needed. + // + // This field is used internally and should be ignored by the client. + uint32 version = 2; +} + // A retrieve values operation. message RetrieveValues { // The identifier to be retrieved. @@ -162,8 +154,7 @@ message UpdatePermissions { // A store values operation. message StoreValues { - // The number of particles being stored. - uint64 particles_count = 1; + reserved 1; // The number of secret shared secrets being stored. // diff --git a/client-vms/proto/nillion/payments/v1/receipt.proto b/client-vms/proto/nillion/payments/v1/receipt.proto index 5b59471d..53712f1a 100644 --- a/client-vms/proto/nillion/payments/v1/receipt.proto +++ b/client-vms/proto/nillion/payments/v1/receipt.proto @@ -6,6 +6,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/empty.proto"; import "nillion/payments/v1/quote.proto"; import "nillion/preprocessing/v1/element.proto"; +import "nillion/preprocessing/v1/material.proto"; // A request to get a payment receipt for a paid operation. message PaymentReceiptRequest { @@ -13,6 +14,8 @@ message PaymentReceiptRequest { quote.SignedQuote signed_quote = 1; // The nilchain transaction hash that proves this payment was made. + // + // Not setting this field indicates the payment should be subtracted from the user's account balance. string tx_hash = 2; } @@ -76,6 +79,9 @@ message InvokeComputeMetadata { // The selected preprocessing offsets for this operation. repeated SelectedPreprocessingOffsets offsets = 2; + + // The auxiliary material needed for this operation. + repeated SelectedAuxiliaryMaterial auxiliary_materials = 3; } // The selected offsets for a preprocessing element. @@ -95,3 +101,12 @@ message SelectedPreprocessingOffsets { uint64 batch_size = 4; } +// The selected auxiliary material. +message SelectedAuxiliaryMaterial { + // The material type. + nillion.preprocessing.v1.material.AuxiliaryMaterial material = 1; + + // the material version. + uint32 version = 2; +} + diff --git a/client-vms/proto/nillion/payments/v1/service.proto b/client-vms/proto/nillion/payments/v1/service.proto index ce3ce43d..fd2979e5 100644 --- a/client-vms/proto/nillion/payments/v1/service.proto +++ b/client-vms/proto/nillion/payments/v1/service.proto @@ -2,6 +2,9 @@ syntax = "proto3"; package nillion.payments.v1; +import "google/protobuf/empty.proto"; +import "nillion/payments/v1/balance.proto"; +import "nillion/payments/v1/config.proto"; import "nillion/payments/v1/quote.proto"; import "nillion/payments/v1/receipt.proto"; @@ -12,6 +15,15 @@ service Payments { // Get a payment receipt for a paid operation. rpc PaymentReceipt(receipt.PaymentReceiptRequest) returns (receipt.SignedReceipt); + + // Get the payments configuration for this network. + rpc PaymentsConfig(google.protobuf.Empty) returns (config.PaymentsConfigResponse); + + // Get the user account's balance. + rpc AccountBalance(google.protobuf.Empty) returns (balance.AccountBalanceResponse); + + // Add funds to a user account's balance. + rpc AddFunds(balance.AddFundsRequest) returns (google.protobuf.Empty); } diff --git a/client-vms/proto/nillion/preprocessing/v1/element.proto b/client-vms/proto/nillion/preprocessing/v1/element.proto index fa31228d..be352f6b 100644 --- a/client-vms/proto/nillion/preprocessing/v1/element.proto +++ b/client-vms/proto/nillion/preprocessing/v1/element.proto @@ -4,16 +4,14 @@ package nillion.preprocessing.v1.element; // A preprocessing element. enum PreprocessingElement { - ALPHA = 0; - LAMBDA = 1; + reserved 1, 6; + RANDOM_BOOLEAN = 0; COMPARE = 2; DIVISION_SECRET_DIVISOR = 3; EQUALITY_SECRET_OUTPUT = 4; EQUALITY_PUBLIC_OUTPUT = 5; - SHARE_TO_PARTICLE = 6; MODULO = 7; TRUNC = 8; TRUNC_PR = 9; RANDOM_INTEGER = 10; - RANDOM_BOOLEAN = 11; } diff --git a/client-vms/proto/nillion/preprocessing/v1/generate.proto b/client-vms/proto/nillion/preprocessing/v1/generate.proto index 427106a7..aa7a2e83 100644 --- a/client-vms/proto/nillion/preprocessing/v1/generate.proto +++ b/client-vms/proto/nillion/preprocessing/v1/generate.proto @@ -47,6 +47,9 @@ message GenerateAuxiliaryMaterialRequest { // The material we want to generate. material.AuxiliaryMaterial material = 2; + + // The version of the material to generate. + uint32 version = 3; } /// A response to a request to generate auxiliary material. diff --git a/client-vms/src/gen-proto/nillion/membership/v1/service_pb.ts b/client-vms/src/gen-proto/nillion/membership/v1/service_pb.ts index 3ebdfdd0..4344e673 100644 --- a/client-vms/src/gen-proto/nillion/membership/v1/service_pb.ts +++ b/client-vms/src/gen-proto/nillion/membership/v1/service_pb.ts @@ -8,12 +8,14 @@ import type { EmptySchema } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt"; import type { ClusterSchema } from "./cluster_pb"; import { file_nillion_membership_v1_cluster } from "./cluster_pb"; +import type { NodeVersionSchema } from "./version_pb"; +import { file_nillion_membership_v1_version } from "./version_pb"; /** * Describes the file nillion/membership/v1/service.proto. */ export const file_nillion_membership_v1_service: GenFile = /*@__PURE__*/ - fileDesc("CiNuaWxsaW9uL21lbWJlcnNoaXAvdjEvc2VydmljZS5wcm90bxIVbmlsbGlvbi5tZW1iZXJzaGlwLnYxMlcKCk1lbWJlcnNoaXASSQoHQ2x1c3RlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRomLm5pbGxpb24ubWVtYmVyc2hpcC52MS5jbHVzdGVyLkNsdXN0ZXJCnwEKGWNvbS5uaWxsaW9uLm1lbWJlcnNoaXAudjFCDFNlcnZpY2VQcm90b1ABogIDTk1YqgIVTmlsbGlvbi5NZW1iZXJzaGlwLlYxygIVTmlsbGlvblxNZW1iZXJzaGlwXFYx4gIhTmlsbGlvblxNZW1iZXJzaGlwXFYxXEdQQk1ldGFkYXRh6gIXTmlsbGlvbjo6TWVtYmVyc2hpcDo6VjFiBnByb3RvMw", [file_google_protobuf_empty, file_nillion_membership_v1_cluster]); + fileDesc("CiNuaWxsaW9uL21lbWJlcnNoaXAvdjEvc2VydmljZS5wcm90bxIVbmlsbGlvbi5tZW1iZXJzaGlwLnYxMqoBCgpNZW1iZXJzaGlwEkkKB0NsdXN0ZXISFi5nb29nbGUucHJvdG9idWYuRW1wdHkaJi5uaWxsaW9uLm1lbWJlcnNoaXAudjEuY2x1c3Rlci5DbHVzdGVyElEKC05vZGVWZXJzaW9uEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GioubmlsbGlvbi5tZW1iZXJzaGlwLnYxLnZlcnNpb24uTm9kZVZlcnNpb25CnwEKGWNvbS5uaWxsaW9uLm1lbWJlcnNoaXAudjFCDFNlcnZpY2VQcm90b1ABogIDTk1YqgIVTmlsbGlvbi5NZW1iZXJzaGlwLlYxygIVTmlsbGlvblxNZW1iZXJzaGlwXFYx4gIhTmlsbGlvblxNZW1iZXJzaGlwXFYxXEdQQk1ldGFkYXRh6gIXTmlsbGlvbjo6TWVtYmVyc2hpcDo6VjFiBnByb3RvMw", [file_google_protobuf_empty, file_nillion_membership_v1_cluster, file_nillion_membership_v1_version]); /** * Exposes information about a node's membership. @@ -31,6 +33,16 @@ export const Membership: GenService<{ input: typeof EmptySchema; output: typeof ClusterSchema; }, + /** + * Get the node's version. + * + * @generated from rpc nillion.membership.v1.Membership.NodeVersion + */ + nodeVersion: { + methodKind: "unary"; + input: typeof EmptySchema; + output: typeof NodeVersionSchema; + }, }> = /*@__PURE__*/ serviceDesc(file_nillion_membership_v1_service, 0); diff --git a/client-vms/src/gen-proto/nillion/membership/v1/version_pb.ts b/client-vms/src/gen-proto/nillion/membership/v1/version_pb.ts new file mode 100644 index 00000000..d47c59ac --- /dev/null +++ b/client-vms/src/gen-proto/nillion/membership/v1/version_pb.ts @@ -0,0 +1,84 @@ +// @generated by protoc-gen-es v2.2.2 with parameter "target=ts" +// @generated from file nillion/membership/v1/version.proto (package nillion.membership.v1.version, syntax proto3) +/* eslint-disable */ + +import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file nillion/membership/v1/version.proto. + */ +export const file_nillion_membership_v1_version: GenFile = /*@__PURE__*/ + fileDesc("CiNuaWxsaW9uL21lbWJlcnNoaXAvdjEvdmVyc2lvbi5wcm90bxIdbmlsbGlvbi5tZW1iZXJzaGlwLnYxLnZlcnNpb24iXgoLTm9kZVZlcnNpb24SPQoHdmVyc2lvbhgBIAEoCzIsLm5pbGxpb24ubWVtYmVyc2hpcC52MS52ZXJzaW9uLlNlbXZlclZlcnNpb24SEAoIZ2l0X2hhc2gYAiABKAkiUQoNU2VtdmVyVmVyc2lvbhINCgVtYWpvchgBIAEoBBINCgVtaW5vchgCIAEoBBINCgVwYXRjaBgDIAEoBBITCgtwcmVfcmVsZWFzZRgEIAEoCULJAQohY29tLm5pbGxpb24ubWVtYmVyc2hpcC52MS52ZXJzaW9uQgxWZXJzaW9uUHJvdG9QAaICBE5NVlaqAh1OaWxsaW9uLk1lbWJlcnNoaXAuVjEuVmVyc2lvbsoCHU5pbGxpb25cTWVtYmVyc2hpcFxWMVxWZXJzaW9u4gIpTmlsbGlvblxNZW1iZXJzaGlwXFYxXFZlcnNpb25cR1BCTWV0YWRhdGHqAiBOaWxsaW9uOjpNZW1iZXJzaGlwOjpWMTo6VmVyc2lvbmIGcHJvdG8z"); + +/** + * The node's version. + * + * @generated from message nillion.membership.v1.version.NodeVersion + */ +export type NodeVersion = Message<"nillion.membership.v1.version.NodeVersion"> & { + /** + * The node's version. + * + * @generated from field: nillion.membership.v1.version.SemverVersion version = 1; + */ + version?: SemverVersion; + + /** + * The built git commit hash. + * + * @generated from field: string git_hash = 2; + */ + gitHash: string; +}; + +/** + * Describes the message nillion.membership.v1.version.NodeVersion. + * Use `create(NodeVersionSchema)` to create a new message. + */ +export const NodeVersionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_membership_v1_version, 0); + +/** + * A semver version. + * + * @generated from message nillion.membership.v1.version.SemverVersion + */ +export type SemverVersion = Message<"nillion.membership.v1.version.SemverVersion"> & { + /** + * The major version. + * + * @generated from field: uint64 major = 1; + */ + major: bigint; + + /** + * The minor version. + * + * @generated from field: uint64 minor = 2; + */ + minor: bigint; + + /** + * The patch version. + * + * @generated from field: uint64 patch = 3; + */ + patch: bigint; + + /** + * The optional pre-release version. + * + * @generated from field: string pre_release = 4; + */ + preRelease: string; +}; + +/** + * Describes the message nillion.membership.v1.version.SemverVersion. + * Use `create(SemverVersionSchema)` to create a new message. + */ +export const SemverVersionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_membership_v1_version, 1); + diff --git a/client-vms/src/gen-proto/nillion/payments/v1/balance_pb.ts b/client-vms/src/gen-proto/nillion/payments/v1/balance_pb.ts new file mode 100644 index 00000000..f439808a --- /dev/null +++ b/client-vms/src/gen-proto/nillion/payments/v1/balance_pb.ts @@ -0,0 +1,102 @@ +// @generated by protoc-gen-es v2.2.2 with parameter "target=ts" +// @generated from file nillion/payments/v1/balance.proto (package nillion.payments.v1.balance, syntax proto3) +/* eslint-disable */ + +import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import type { UserId } from "../../auth/v1/user_pb"; +import { file_nillion_auth_v1_user } from "../../auth/v1/user_pb"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file nillion/payments/v1/balance.proto. + */ +export const file_nillion_payments_v1_balance: GenFile = /*@__PURE__*/ + fileDesc("CiFuaWxsaW9uL3BheW1lbnRzL3YxL2JhbGFuY2UucHJvdG8SG25pbGxpb24ucGF5bWVudHMudjEuYmFsYW5jZSJbChZBY2NvdW50QmFsYW5jZVJlc3BvbnNlEg8KB2JhbGFuY2UYASABKAQSMAoMbGFzdF91cGRhdGVkGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIzCg9BZGRGdW5kc1JlcXVlc3QSDwoHcGF5bG9hZBgBIAEoDBIPCgd0eF9oYXNoGAIgASgJIlEKD0FkZEZ1bmRzUGF5bG9hZBIvCglyZWNpcGllbnQYASABKAsyHC5uaWxsaW9uLmF1dGgudjEudXNlci5Vc2VySWQSDQoFbm9uY2UYAiABKAxCvwEKH2NvbS5uaWxsaW9uLnBheW1lbnRzLnYxLmJhbGFuY2VCDEJhbGFuY2VQcm90b1ABogIETlBWQqoCG05pbGxpb24uUGF5bWVudHMuVjEuQmFsYW5jZcoCG05pbGxpb25cUGF5bWVudHNcVjFcQmFsYW5jZeICJ05pbGxpb25cUGF5bWVudHNcVjFcQmFsYW5jZVxHUEJNZXRhZGF0YeoCHk5pbGxpb246OlBheW1lbnRzOjpWMTo6QmFsYW5jZWIGcHJvdG8z", [file_google_protobuf_timestamp, file_nillion_auth_v1_user]); + +/** + * A response to a request to get the user account's balance. + * + * @generated from message nillion.payments.v1.balance.AccountBalanceResponse + */ +export type AccountBalanceResponse = Message<"nillion.payments.v1.balance.AccountBalanceResponse"> & { + /** + * The account balance, in unil. + * + * @generated from field: uint64 balance = 1; + */ + balance: bigint; + + /** + * The timestamp at which this balance was last updated. + * + * @generated from field: google.protobuf.Timestamp last_updated = 2; + */ + lastUpdated?: Timestamp; +}; + +/** + * Describes the message nillion.payments.v1.balance.AccountBalanceResponse. + * Use `create(AccountBalanceResponseSchema)` to create a new message. + */ +export const AccountBalanceResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_payments_v1_balance, 0); + +/** + * A request to add funds to a user's account. + * + * @generated from message nillion.payments.v1.balance.AddFundsRequest + */ +export type AddFundsRequest = Message<"nillion.payments.v1.balance.AddFundsRequest"> & { + /** + * The serialized `AddFunds` payload. + * + * @generated from field: bytes payload = 1; + */ + payload: Uint8Array; + + /** + * The nilchain transaction hash that proves this payment was made. + * + * @generated from field: string tx_hash = 2; + */ + txHash: string; +}; + +/** + * Describes the message nillion.payments.v1.balance.AddFundsRequest. + * Use `create(AddFundsRequestSchema)` to create a new message. + */ +export const AddFundsRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_payments_v1_balance, 1); + +/** + * The payload sent as part of an add funds request. + * + * @generated from message nillion.payments.v1.balance.AddFundsPayload + */ +export type AddFundsPayload = Message<"nillion.payments.v1.balance.AddFundsPayload"> & { + /** + * The user the funds are being given to. + * + * @generated from field: nillion.auth.v1.user.UserId recipient = 1; + */ + recipient?: UserId; + + /** + * A 32 byte nonce that is used to add entropy to the hash of this message and to prevent duplicate spending. + * + * @generated from field: bytes nonce = 2; + */ + nonce: Uint8Array; +}; + +/** + * Describes the message nillion.payments.v1.balance.AddFundsPayload. + * Use `create(AddFundsPayloadSchema)` to create a new message. + */ +export const AddFundsPayloadSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_payments_v1_balance, 2); + diff --git a/client-vms/src/gen-proto/nillion/payments/v1/config_pb.ts b/client-vms/src/gen-proto/nillion/payments/v1/config_pb.ts new file mode 100644 index 00000000..d360a16b --- /dev/null +++ b/client-vms/src/gen-proto/nillion/payments/v1/config_pb.ts @@ -0,0 +1,35 @@ +// @generated by protoc-gen-es v2.2.2 with parameter "target=ts" +// @generated from file nillion/payments/v1/config.proto (package nillion.payments.v1.config, syntax proto3) +/* eslint-disable */ + +import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file nillion/payments/v1/config.proto. + */ +export const file_nillion_payments_v1_config: GenFile = /*@__PURE__*/ + fileDesc("CiBuaWxsaW9uL3BheW1lbnRzL3YxL2NvbmZpZy5wcm90bxIabmlsbGlvbi5wYXltZW50cy52MS5jb25maWciOwoWUGF5bWVudHNDb25maWdSZXNwb25zZRIhChltaW5pbXVtX2FkZF9mdW5kc19wYXltZW50GAEgASgEQrkBCh5jb20ubmlsbGlvbi5wYXltZW50cy52MS5jb25maWdCC0NvbmZpZ1Byb3RvUAGiAgROUFZDqgIaTmlsbGlvbi5QYXltZW50cy5WMS5Db25maWfKAhpOaWxsaW9uXFBheW1lbnRzXFYxXENvbmZpZ+ICJk5pbGxpb25cUGF5bWVudHNcVjFcQ29uZmlnXEdQQk1ldGFkYXRh6gIdTmlsbGlvbjo6UGF5bWVudHM6OlYxOjpDb25maWdiBnByb3RvMw"); + +/** + * A response to a payments configuration request. + * + * @generated from message nillion.payments.v1.config.PaymentsConfigResponse + */ +export type PaymentsConfigResponse = Message<"nillion.payments.v1.config.PaymentsConfigResponse"> & { + /** + * The minimum amount of unil that can be added in a `Payments.add_funds` request. + * + * @generated from field: uint64 minimum_add_funds_payment = 1; + */ + minimumAddFundsPayment: bigint; +}; + +/** + * Describes the message nillion.payments.v1.config.PaymentsConfigResponse. + * Use `create(PaymentsConfigResponseSchema)` to create a new message. + */ +export const PaymentsConfigResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_payments_v1_config, 0); + diff --git a/client-vms/src/gen-proto/nillion/payments/v1/quote_pb.ts b/client-vms/src/gen-proto/nillion/payments/v1/quote_pb.ts index 6e25ccbf..23f03c80 100644 --- a/client-vms/src/gen-proto/nillion/payments/v1/quote_pb.ts +++ b/client-vms/src/gen-proto/nillion/payments/v1/quote_pb.ts @@ -8,13 +8,15 @@ import type { Empty, Timestamp } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import type { PreprocessingElement } from "../../preprocessing/v1/element_pb"; import { file_nillion_preprocessing_v1_element } from "../../preprocessing/v1/element_pb"; +import type { AuxiliaryMaterial } from "../../preprocessing/v1/material_pb"; +import { file_nillion_preprocessing_v1_material } from "../../preprocessing/v1/material_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file nillion/payments/v1/quote.proto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jI2Lm5pbGxpb24ucHJlcHJvY2Vzc2luZy52MS5lbGVtZW50LlByZXByb2Nlc3NpbmdFbGVtZW50Eg0KBWNvdW50GAIgASgEIiMKDlJldHJpZXZlVmFsdWVzEhEKCXZhbHVlc19pZBgBIAEoDCIoChNSZXRyaWV2ZVBlcm1pc3Npb25zEhEKCXZhbHVlc19pZBgBIAEoDCIpChRPdmVyd3JpdGVQZXJtaXNzaW9ucxIRCgl2YWx1ZXNfaWQYASABKAwiJgoRVXBkYXRlUGVybWlzc2lvbnMSEQoJdmFsdWVzX2lkGAEgASgMItYBCgtTdG9yZVZhbHVlcxIXCg9wYXJ0aWNsZXNfY291bnQYASABKAQSGwoTc2VjcmV0X3NoYXJlZF9jb3VudBgCIAEoBBIbChNwdWJsaWNfdmFsdWVzX2NvdW50GAMgASgEEhAKCHR0bF9kYXlzGAQgASgNEhQKDHBheWxvYWRfc2l6ZRgFIAEoBBImCh5lY2RzYV9wcml2YXRlX2tleV9zaGFyZXNfY291bnQYBiABKAQSJAocZWNkc2Ffc2lnbmF0dXJlX3NoYXJlc19jb3VudBgHIAEoBCJACg1JbnZva2VDb21wdXRlEhIKCnByb2dyYW1faWQYASABKAkSGwoTdmFsdWVzX3BheWxvYWRfc2l6ZRgCIAEoBEKzAQodY29tLm5pbGxpb24ucGF5bWVudHMudjEucXVvdGVCClF1b3RlUHJvdG9QAaICBE5QVlGqAhlOaWxsaW9uLlBheW1lbnRzLlYxLlF1b3RlygIZTmlsbGlvblxQYXltZW50c1xWMVxRdW90ZeICJU5pbGxpb25cUGF5bWVudHNcVjFcUXVvdGVcR1BCTWV0YWRhdGHqAhxOaWxsaW9uOjpQYXltZW50czo6VjE6OlF1b3RlYgZwcm90bzM", [file_google_protobuf_empty, file_google_protobuf_timestamp, file_nillion_preprocessing_v1_element]); + fileDesc("Ch9uaWxsaW9uL3BheW1lbnRzL3YxL3F1b3RlLnByb3RvEhluaWxsaW9uLnBheW1lbnRzLnYxLnF1b3RlIskEChFQcmlj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o6VjE6OlF1b3RlYgZwcm90bzM", [file_google_protobuf_empty, file_google_protobuf_timestamp, file_nillion_preprocessing_v1_element, file_nillion_preprocessing_v1_material]); /** * A price quote request. @@ -167,6 +169,13 @@ export type PriceQuote = Message<"nillion.payments.v1.quote.PriceQuote"> & { * @generated from field: repeated nillion.payments.v1.quote.PreprocessingRequirement preprocessing_requirements = 5; */ preprocessingRequirements: PreprocessingRequirement[]; + + /** + * The auxiliary material requirements for this operation. + * + * @generated from field: repeated nillion.payments.v1.quote.AuxiliaryMaterialRequirement auxiliary_material_requirements = 6; + */ + auxiliaryMaterialRequirements: AuxiliaryMaterialRequirement[]; }; /** @@ -185,58 +194,11 @@ export const PriceQuoteSchema: GenMessage = /*@__PURE__*/ */ export type QuoteFees = Message<"nillion.payments.v1.quote.QuoteFees"> & { /** - * The sum of all the fees. + * The total fee for this quote. * * @generated from field: uint64 total = 1; */ total: bigint; - - /** - * The base fee. - * - * This is a flat fee based on the operation being ran. - * - * @generated from field: uint64 base = 2; - */ - base: bigint; - - /** - * The congestion fee. - * - * This depends on how congested the network is. - * - * @generated from field: uint64 congestion = 3; - */ - congestion: bigint; - - /** - * The storage fee. - * - * This depends on how much data is being stored, in case the operation being quoted stores data. - * - * @generated from field: uint64 storage = 4; - */ - storage: bigint; - - /** - * The preprocessing fee. - * - * This is only valid for compute operations and accounts for any preprocessing material needed - * to execute the program being invoked. - * - * @generated from field: uint64 preprocessing = 5; - */ - preprocessing: bigint; - - /** - * The compute fee. - * - * This fee is only valid for compute operations and depends on the complexity of the program - * being invoked. - * - * @generated from field: uint64 compute = 6; - */ - compute: bigint; }; /** @@ -321,6 +283,13 @@ export type ProgramMetadata = Message<"nillion.payments.v1.quote.ProgramMetadata * @generated from field: repeated nillion.payments.v1.quote.PreprocessingRequirement preprocessing_requirements = 5; */ preprocessingRequirements: PreprocessingRequirement[]; + + /** + * The auxiliary material requirements. + * + * @generated from field: repeated nillion.payments.v1.quote.AuxiliaryMaterialRequirement auxiliary_material_requirements = 6; + */ + auxiliaryMaterialRequirements: AuxiliaryMaterialRequirement[]; }; /** @@ -331,7 +300,7 @@ export const ProgramMetadataSchema: GenMessage = /*@__PURE__*/ messageDesc(file_nillion_payments_v1_quote, 5); /** - * A number of preprocessing elements required for a program. + * The number of preprocessing elements required for a program. * * @generated from message nillion.payments.v1.quote.PreprocessingRequirement */ @@ -358,6 +327,36 @@ export type PreprocessingRequirement = Message<"nillion.payments.v1.quote.Prepro export const PreprocessingRequirementSchema: GenMessage = /*@__PURE__*/ messageDesc(file_nillion_payments_v1_quote, 6); +/** + * The auxiliary material required for a program. + * + * @generated from message nillion.payments.v1.quote.AuxiliaryMaterialRequirement + */ +export type AuxiliaryMaterialRequirement = Message<"nillion.payments.v1.quote.AuxiliaryMaterialRequirement"> & { + /** + * The preprocessing element. + * + * @generated from field: nillion.preprocessing.v1.material.AuxiliaryMaterial material = 1; + */ + material: AuxiliaryMaterial; + + /** + * The version needed. + * + * This field is used internally and should be ignored by the client. + * + * @generated from field: uint32 version = 2; + */ + version: number; +}; + +/** + * Describes the message nillion.payments.v1.quote.AuxiliaryMaterialRequirement. + * Use `create(AuxiliaryMaterialRequirementSchema)` to create a new message. + */ +export const AuxiliaryMaterialRequirementSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_payments_v1_quote, 7); + /** * A retrieve values operation. * @@ -377,7 +376,7 @@ export type RetrieveValues = Message<"nillion.payments.v1.quote.RetrieveValues"> * Use `create(RetrieveValuesSchema)` to create a new message. */ export const RetrieveValuesSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_nillion_payments_v1_quote, 7); + messageDesc(file_nillion_payments_v1_quote, 8); /** * A retrieve permissions operation. @@ -398,7 +397,7 @@ export type RetrievePermissions = Message<"nillion.payments.v1.quote.RetrievePer * Use `create(RetrievePermissionsSchema)` to create a new message. */ export const RetrievePermissionsSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_nillion_payments_v1_quote, 8); + messageDesc(file_nillion_payments_v1_quote, 9); /** * An overwrite permissions operation. @@ -419,7 +418,7 @@ export type OverwritePermissions = Message<"nillion.payments.v1.quote.OverwriteP * Use `create(OverwritePermissionsSchema)` to create a new message. */ export const OverwritePermissionsSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_nillion_payments_v1_quote, 9); + messageDesc(file_nillion_payments_v1_quote, 10); /** * An update permissions operation. @@ -440,7 +439,7 @@ export type UpdatePermissions = Message<"nillion.payments.v1.quote.UpdatePermiss * Use `create(UpdatePermissionsSchema)` to create a new message. */ export const UpdatePermissionsSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_nillion_payments_v1_quote, 10); + messageDesc(file_nillion_payments_v1_quote, 11); /** * A store values operation. @@ -448,13 +447,6 @@ export const UpdatePermissionsSchema: GenMessage = /*@__PURE_ * @generated from message nillion.payments.v1.quote.StoreValues */ export type StoreValues = Message<"nillion.payments.v1.quote.StoreValues"> & { - /** - * The number of particles being stored. - * - * @generated from field: uint64 particles_count = 1; - */ - particlesCount: bigint; - /** * The number of secret shared secrets being stored. * @@ -506,7 +498,7 @@ export type StoreValues = Message<"nillion.payments.v1.quote.StoreValues"> & { * Use `create(StoreValuesSchema)` to create a new message. */ export const StoreValuesSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_nillion_payments_v1_quote, 11); + messageDesc(file_nillion_payments_v1_quote, 12); /** * An invoke compute operation. @@ -534,5 +526,5 @@ export type InvokeCompute = Message<"nillion.payments.v1.quote.InvokeCompute"> & * Use `create(InvokeComputeSchema)` to create a new message. */ export const InvokeComputeSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_nillion_payments_v1_quote, 12); + messageDesc(file_nillion_payments_v1_quote, 13); diff --git a/client-vms/src/gen-proto/nillion/payments/v1/receipt_pb.ts b/client-vms/src/gen-proto/nillion/payments/v1/receipt_pb.ts index 13444473..b399e236 100644 --- a/client-vms/src/gen-proto/nillion/payments/v1/receipt_pb.ts +++ b/client-vms/src/gen-proto/nillion/payments/v1/receipt_pb.ts @@ -10,13 +10,15 @@ import type { InvokeCompute, OverwritePermissions, RetrievePermissions, Retrieve import { file_nillion_payments_v1_quote } from "./quote_pb"; import type { PreprocessingElement } from "../../preprocessing/v1/element_pb"; import { file_nillion_preprocessing_v1_element } from "../../preprocessing/v1/element_pb"; +import type { AuxiliaryMaterial } from "../../preprocessing/v1/material_pb"; +import { file_nillion_preprocessing_v1_material } from "../../preprocessing/v1/material_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file nillion/payments/v1/receipt.proto. */ export const file_nillion_payments_v1_receipt: GenFile = /*@__PURE__*/ - fileDesc("CiFuaWxsaW9uL3BheW1lbnRzL3YxL3JlY2VpcHQucHJvdG8SG25pbGxpb24ucGF5bWVudHMudjEucmVjZWlwdCJmChVQYXltZW50UmVjZWlwdFJlcXVlc3QSPAoMc2lnbmVkX3F1b3RlGAEgASgLMiYubmlsbGlvbi5wYXltZW50cy52MS5xdW90ZS5TaWduZWRRdW90ZRIPCgd0eF9oYXNoGAIgASgJIjMKDVNpZ25lZFJlY2VpcHQSDwoHcmVjZWlwdBgBIAEoDBIRCglzaWduYXR1cmUYAiABKAwijwEKB1JlY2VpcHQSEgoKaWRlbnRpZmllchgBIAEoDBJACghtZXRhZGF0YRgCIAEoCzIuLm5pbGxpb24ucGF5bWVudHMudjEucmVjZWlwdC5PcGVyYXRpb25NZXRhZGF0YRIuCgpleHBpcmVzX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCLTBAoRT3BlcmF0aW9uTWV0YWRhdGESLQoLcG9vbF9zdGF0dXMYASABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIABJACg1zdG9yZV9wcm9ncmFtGAIgASgLMicubmlsbGlvbi5wYXltZW50cy52MS5xdW90ZS5TdG9yZVByb2dyYW1IABJECg9yZXRyaWV2ZV92YWx1ZXMYAyABKAsyKS5uaWxsaW9uLnBheW1lbnRzLnYxLnF1b3RlLlJldHJpZXZlVmFsdWVzSAASTgoUcmV0c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XFJlY2VpcHTiAidOaWxsaW9uXFBheW1lbnRzXFYxXFJlY2VpcHRcR1BCTWV0YWRhdGHqAh5OaWxsaW9uOjpQYXltZW50czo6VjE6OlJlY2VpcHRiBnByb3RvMw", [file_google_protobuf_timestamp, file_google_protobuf_empty, file_nillion_payments_v1_quote, file_nillion_preprocessing_v1_element]); + fileDesc("CiFuaWxsaW9uL3BheW1lbnRzL3YxL3JlY2VpcHQucHJvdG8SG25pbGxpb24ucGF5bWVudHMudjEucmVjZWlwdCJmChVQYXltZW50UmVjZWlwdFJlcXVlc3QSPAoMc2lnbmVkX3F1b3RlGAEgASgLMiYubmlsbGlvbi5wYXltZW50cy52MS5xdW90ZS5TaWduZWRRdW90ZRIPCgd0eF9oYXNoGAIgASgJIjMKDVNpZ25lZFJlY2VpcHQSDwoHcmVjZWlwdBgBIAEoDBIRCglzaWduYXR1cmUYAiABKAwijwEKB1JlY2VpcHQSEgoKaWRlbnRpZmllchgBIAEoDBJACghtZXRhZGF0YRgCIAEoCzIuLm5pbGxpb24ucGF5bWVudHMudjEucmVjZWlwdC5PcGVyYXRpb25NZXRhZGF0YRIuCgpleHBpcmVzX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCLTBAoRT3BlcmF0aW9uTWV0YWRhdGESLQoLcG9vbF9zdGF0dXMYASABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIABJACg1zdG9yZV9wcm9ncmFtGAIgASgLMicubmlsbGlvbi5wYXltZW50cy52MS5xdW90ZS5TdG9yZVByb2dyYW1IABJECg9yZXRyaWV2ZV92YWx1ZXMYAyABKAsyKS5uaWxsaW9uLnBheW1lbnRzLnYxLnF1b3RlLlJldHJpZXZlVmFsdWVzSAASTgoUcmV0cmlldmVfcGVybWlzc2lvbnMYBCABKAsyLi5uaWxsaW9uLnBheW1lbnRzLnYxLnF1b3RlLlJldHJpZXZlUGVybWlzc2lvbnNIABI+CgxzdG9yZV92YWx1ZXMYBSABKAsyJ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ABKA1CvwEKH2NvbS5uaWxsaW9uLnBheW1lbnRzLnYxLnJlY2VpcHRCDFJlY2VpcHRQcm90b1ABogIETlBWUqoCG05pbGxpb24uUGF5bWVudHMuVjEuUmVjZWlwdMoCG05pbGxpb25cUGF5bWVudHNcVjFcUmVjZWlwdOICJ05pbGxpb25cUGF5bWVudHNcVjFcUmVjZWlwdFxHUEJNZXRhZGF0YeoCHk5pbGxpb246OlBheW1lbnRzOjpWMTo6UmVjZWlwdGIGcHJvdG8z", [file_google_protobuf_timestamp, file_google_protobuf_empty, file_nillion_payments_v1_quote, file_nillion_preprocessing_v1_element, file_nillion_preprocessing_v1_material]); /** * A request to get a payment receipt for a paid operation. @@ -34,6 +36,8 @@ export type PaymentReceiptRequest = Message<"nillion.payments.v1.receipt.Payment /** * The nilchain transaction hash that proves this payment was made. * + * Not setting this field indicates the payment should be subtracted from the user's account balance. + * * @generated from field: string tx_hash = 2; */ txHash: string; @@ -214,6 +218,13 @@ export type InvokeComputeMetadata = Message<"nillion.payments.v1.receipt.InvokeC * @generated from field: repeated nillion.payments.v1.receipt.SelectedPreprocessingOffsets offsets = 2; */ offsets: SelectedPreprocessingOffsets[]; + + /** + * The auxiliary material needed for this operation. + * + * @generated from field: repeated nillion.payments.v1.receipt.SelectedAuxiliaryMaterial auxiliary_materials = 3; + */ + auxiliaryMaterials: SelectedAuxiliaryMaterial[]; }; /** @@ -267,3 +278,31 @@ export type SelectedPreprocessingOffsets = Message<"nillion.payments.v1.receipt. export const SelectedPreprocessingOffsetsSchema: GenMessage = /*@__PURE__*/ messageDesc(file_nillion_payments_v1_receipt, 5); +/** + * The selected auxiliary material. + * + * @generated from message nillion.payments.v1.receipt.SelectedAuxiliaryMaterial + */ +export type SelectedAuxiliaryMaterial = Message<"nillion.payments.v1.receipt.SelectedAuxiliaryMaterial"> & { + /** + * The material type. + * + * @generated from field: nillion.preprocessing.v1.material.AuxiliaryMaterial material = 1; + */ + material: AuxiliaryMaterial; + + /** + * the material version. + * + * @generated from field: uint32 version = 2; + */ + version: number; +}; + +/** + * Describes the message nillion.payments.v1.receipt.SelectedAuxiliaryMaterial. + * Use `create(SelectedAuxiliaryMaterialSchema)` to create a new message. + */ +export const SelectedAuxiliaryMaterialSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_nillion_payments_v1_receipt, 6); + diff --git a/client-vms/src/gen-proto/nillion/payments/v1/service_pb.ts b/client-vms/src/gen-proto/nillion/payments/v1/service_pb.ts index b48f5ccb..6c8e4e47 100644 --- a/client-vms/src/gen-proto/nillion/payments/v1/service_pb.ts +++ b/client-vms/src/gen-proto/nillion/payments/v1/service_pb.ts @@ -4,6 +4,12 @@ import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; +import type { EmptySchema } from "@bufbuild/protobuf/wkt"; +import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt"; +import type { AccountBalanceResponseSchema, AddFundsRequestSchema } from "./balance_pb"; +import { file_nillion_payments_v1_balance } from "./balance_pb"; +import type { PaymentsConfigResponseSchema } from "./config_pb"; +import { file_nillion_payments_v1_config } from "./config_pb"; import type { PriceQuoteRequestSchema, SignedQuoteSchema } from "./quote_pb"; import { file_nillion_payments_v1_quote } from "./quote_pb"; import type { PaymentReceiptRequestSchema, SignedReceiptSchema } from "./receipt_pb"; @@ -13,7 +19,7 @@ import { file_nillion_payments_v1_receipt } from "./receipt_pb"; * Describes the file nillion/payments/v1/service.proto. */ export const file_nillion_payments_v1_service: GenFile = /*@__PURE__*/ - fileDesc("CiFuaWxsaW9uL3BheW1lbnRzL3YxL3NlcnZpY2UucHJvdG8SE25pbGxpb24ucGF5bWVudHMudjEy4AEKCFBheW1lbnRzEmIKClByaWNlUXVvdGUSLC5uaWxsaW9uLnBheW1lbnRzLnYxLnF1b3RlLlByaWNlUXVvdGVSZXF1ZXN0GiYubmlsbGlvbi5wYXltZW50cy52MS5xdW90ZS5TaWduZWRRdW90ZRJwCg5QYXltZW50UmVjZWlwdBIyLm5pbGxpb24ucGF5bWVudHMudjEucmVjZWlwdC5QYXltZW50UmVjZWlwdFJlcXVlc3QaKi5uaWxsaW9uLnBheW1lbnRzLnYxLnJlY2VpcHQuU2lnbmVkUmVjZWlwdEKVAQoXY29tLm5pbGxpb24ucGF5bWVudHMudjFCDFNlcnZpY2VQcm90b1ABogIDTlBYqgITTmlsbGlvbi5QYXltZW50cy5WMcoCE05pbGxpb25cUGF5bWVudHNcVjHiAh9OaWxsaW9uXFBheW1lbnRzXFYxXEdQQk1ldGFkYXRh6gIVTmlsbGlvbjo6UGF5bWVudHM6OlYxYgZwcm90bzM", [file_nillion_payments_v1_quote, file_nillion_payments_v1_receipt]); + fileDesc("CiFuaWxsaW9uL3BheW1lbnRzL3YxL3NlcnZpY2UucHJvdG8SE25pbGxpb24ucGF5bWVudHMudjEy7wMKCFBheW1lbnRzEmIKClByaWNlUXVvdGUSLC5uaWxsaW9uLnBheW1lbnRzLnYxLnF1b3RlLlByaWNlUXVvdGVSZXF1ZXN0GiYubmlsbGlvbi5wYXltZW50cy52MS5xdW90ZS5TaWduZWRRdW90ZRJwCg5QYXltZW50UmVjZWlwdBIyLm5pbGxpb24ucGF5bWVudHMudjEucmVjZWlwdC5QYXltZW50UmVjZWlwdFJlcXVlc3QaKi5uaWxsaW9uLnBheW1lbnRzLnYxLnJlY2VpcHQuU2lnbmVkUmVjZWlwdBJcCg5QYXltZW50c0NvbmZpZxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoyLm5pbGxpb24ucGF5bWVudHMudjEuY29uZmlnLlBheW1lbnRzQ29uZmlnUmVzcG9uc2USXQoOQWNjb3VudEJhbGFuY2USFi5nb29nbGUucHJvdG9idWYuRW1wdHkaMy5uaWxsaW9uLnBheW1lbnRzLnYxLmJhbGFuY2UuQWNjb3VudEJhbGFuY2VSZXNwb25zZRJQCghBZGRGdW5kcxIsLm5pbGxpb24ucGF5bWVudHMudjEuYmFsYW5jZS5BZGRGdW5kc1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHlClQEKF2NvbS5uaWxsaW9uLnBheW1lbnRzLnYxQgxTZXJ2aWNlUHJvdG9QAaICA05QWKoCE05pbGxpb24uUGF5bWVudHMuVjHKAhNOaWxsaW9uXFBheW1lbnRzXFYx4gIfTmlsbGlvblxQYXltZW50c1xWMVxHUEJNZXRhZGF0YeoCFU5pbGxpb246OlBheW1lbnRzOjpWMWIGcHJvdG8z", [file_google_protobuf_empty, file_nillion_payments_v1_balance, file_nillion_payments_v1_config, file_nillion_payments_v1_quote, file_nillion_payments_v1_receipt]); /** * Payments API. @@ -41,6 +47,36 @@ export const Payments: GenService<{ input: typeof PaymentReceiptRequestSchema; output: typeof SignedReceiptSchema; }, + /** + * Get the payments configuration for this network. + * + * @generated from rpc nillion.payments.v1.Payments.PaymentsConfig + */ + paymentsConfig: { + methodKind: "unary"; + input: typeof EmptySchema; + output: typeof PaymentsConfigResponseSchema; + }, + /** + * Get the user account's balance. + * + * @generated from rpc nillion.payments.v1.Payments.AccountBalance + */ + accountBalance: { + methodKind: "unary"; + input: typeof EmptySchema; + output: typeof AccountBalanceResponseSchema; + }, + /** + * Add funds to a user account's balance. + * + * @generated from rpc nillion.payments.v1.Payments.AddFunds + */ + addFunds: { + methodKind: "unary"; + input: typeof AddFundsRequestSchema; + output: typeof EmptySchema; + }, }> = /*@__PURE__*/ serviceDesc(file_nillion_payments_v1_service, 0); diff --git a/client-vms/src/gen-proto/nillion/preprocessing/v1/element_pb.ts b/client-vms/src/gen-proto/nillion/preprocessing/v1/element_pb.ts index 0d8e0b8f..99cf9a64 100644 --- a/client-vms/src/gen-proto/nillion/preprocessing/v1/element_pb.ts +++ b/client-vms/src/gen-proto/nillion/preprocessing/v1/element_pb.ts @@ -9,7 +9,7 @@ import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv1"; * Describes the file nillion/preprocessing/v1/element.proto. */ export const file_nillion_preprocessing_v1_element: GenFile = /*@__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IJCgVUUlVOQxAIEgwKCFRSVU5DX1BSEAkSEgoOUkFORE9NX0lOVEVHRVIQCiIECAEQASIECAYQBkLYAQokY29tLm5pbGxpb24ucHJlcHJvY2Vzc2luZy52MS5lbGVtZW50QgxFbGVtZW50UHJvdG9QAaICBE5QVkWqAiBOaWxsaW9uLlByZXByb2Nlc3NpbmcuVjEuRWxlbWVudMoCIE5pbGxpb25cUHJlcHJvY2Vzc2luZ1xWMVxFbGVtZW504gIsTmlsbGlvblxQcmVwcm9jZXNzaW5nXFYxXEVsZW1lbnRcR1BCTWV0YWRhdGHqAiNOaWxsaW9uOjpQcmVwcm9jZXNzaW5nOjpWMTo6RWxlbWVudGIGcHJvdG8z"); /** * A preprocessing element. @@ -18,14 +18,9 @@ export const file_nillion_preprocessing_v1_element: GenFile = /*@__PURE__*/ */ export enum PreprocessingElement { /** - * @generated from enum value: ALPHA = 0; + * @generated from enum value: RANDOM_BOOLEAN = 0; */ - ALPHA = 0, - - /** - * @generated from enum value: LAMBDA = 1; - */ - LAMBDA = 1, + RANDOM_BOOLEAN = 0, /** * @generated from enum value: COMPARE = 2; @@ -47,11 +42,6 @@ export enum PreprocessingElement { */ EQUALITY_PUBLIC_OUTPUT = 5, - /** - * @generated from enum value: SHARE_TO_PARTICLE = 6; - */ - SHARE_TO_PARTICLE = 6, - /** * @generated from enum value: MODULO = 7; */ @@ -71,11 +61,6 @@ export enum PreprocessingElement { * @generated from enum value: RANDOM_INTEGER = 10; */ RANDOM_INTEGER = 10, - - /** - * @generated from enum value: RANDOM_BOOLEAN = 11; - */ - RANDOM_BOOLEAN = 11, } /** diff --git a/client-vms/src/gen-proto/nillion/preprocessing/v1/generate_pb.ts b/client-vms/src/gen-proto/nillion/preprocessing/v1/generate_pb.ts index 3fc62a6d..f8cdadde 100644 --- a/client-vms/src/gen-proto/nillion/preprocessing/v1/generate_pb.ts +++ b/client-vms/src/gen-proto/nillion/preprocessing/v1/generate_pb.ts @@ -14,7 +14,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file nillion/preprocessing/v1/generate.proto. */ export const file_nillion_preprocessing_v1_generate: GenFile = /*@__PURE__*/ - fileDesc("CiduaWxsaW9uL3ByZXByb2Nlc3NpbmcvdjEvZ2VuZXJhdGUucHJvdG8SIW5pbGxpb24ucHJlcHJvY2Vzc2luZy52MS5nZW5lcmF0ZSKkAQocR2VuZXJhdGVQcmVwcm9jZXNzaW5nUmVxdWVzdBIVCg1nZW5lcmF0aW9uX2lkGAEgASgMEhAKCGJhdGNoX2lkGAIgASgEEhIKCmJhdGNoX3NpemUYAyABKA0SRwoHZWxlbWVudBgEIAEoDjI2Lm5pbGxpb24ucHJlcHJvY2Vzc2luZy52MS5lbGVtZW50LlByZXByb2Nlc3NpbmdFbGVtZW50Im8KHUdlbmVyYXRlUHJlcHJvY2Vzc2luZ1Jlc3BvbnNlEk4KBnN0YXR1cxgBIAEoDjI+Lm5pbGxpb24ucHJlcHJvY2Vzc2luZy52MS5nZW5lcmF0ZS5QcmVwcm9jZXNzaW5nUHJvdG9jb2xTdGF0dXMigQEKIEdlbmVyYXRlQXV4aWxpYXJ5TWF0ZXJpYWxSZXF1ZXN0EhUKDWdlbmVyYXRpb25faWQYASABKAwSRgoIbWF0ZXJpYWwYAiABKA4yNC5uaWxsaW9uLnByZXByb2Nlc3NpbmcudjEubWF0ZXJpYWwuQXV4aWxpYXJ5TWF0ZXJpYWwicwohR2VuZXJhdGVBdXhpbGlhcnlNYXRlcmlhbFJlc3BvbnNlEk4KBnN0YXR1cxgBIAEoDjI+Lm5pbGxpb24ucHJlcHJvY2Vzc2luZy52MS5nZW5lcmF0ZS5QcmVwcm9jZXNzaW5nUHJvdG9jb2xTdGF0dXMqXAobUHJlcHJvY2Vzc2luZ1Byb3RvY29sU3RhdHVzEhEKDVdBSVRJTkdfUEVFUlMQABIUChBGSU5JU0hFRF9TVUNDRVNTEAESFAoQRklOSVNIRURfRkFJTFVSRRACQt4BCiVjb20ubmlsbGlvbi5wcmVwcm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cG9uc2USTgoGc3RhdHVzGAEgASgOMj4ubmlsbGlvbi5wcmVwcm9jZXNzaW5nLnYxLmdlbmVyYXRlLlByZXByb2Nlc3NpbmdQcm90b2NvbFN0YXR1cypcChtQcmVwcm9jZXNzaW5nUHJvdG9jb2xTdGF0dXMSEQoNV0FJVElOR19QRUVSUxAAEhQKEEZJTklTSEVEX1NVQ0NFU1MQARIUChBGSU5JU0hFRF9GQUlMVVJFEAJC3gEKJWNvbS5uaWxsaW9uLnByZXByb2Nlc3NpbmcudjEuZ2VuZXJhdGVCDUdlbmVyYXRlUHJvdG9QAaICBE5QVkeqAiFOaWxsaW9uLlByZXByb2Nlc3NpbmcuVjEuR2VuZXJhdGXKAiFOaWxsaW9uXFByZXByb2Nlc3NpbmdcVjFcR2VuZXJhdGXiAi1OaWxsaW9uXFByZXByb2Nlc3NpbmdcVjFcR2VuZXJhdGVcR1BCTWV0YWRhdGHqAiROaWxsaW9uOjpQcmVwcm9jZXNzaW5nOjpWMTo6R2VuZXJhdGViBnByb3RvMw", [file_nillion_preprocessing_v1_element, file_nillion_preprocessing_v1_material]); /** * A request to generate preprocessing material. @@ -100,6 +100,13 @@ export type GenerateAuxiliaryMaterialRequest = Message<"nillion.preprocessing.v1 * @generated from field: nillion.preprocessing.v1.material.AuxiliaryMaterial material = 2; */ material: AuxiliaryMaterial; + + /** + * The version of the material to generate. + * + * @generated from field: uint32 version = 3; + */ + version: number; }; /** diff --git a/client-wasm/package.json b/client-wasm/package.json index 001f6f25..ee133eac 100644 --- a/client-wasm/package.json +++ b/client-wasm/package.json @@ -1,6 +1,6 @@ { "name": "@nillion/client-wasm", - "version": "0.2.0", + "version": "0.2.1", "type": "module", "exports": { ".": {