-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from NillionNetwork/chore/update-wasm-and-proto
chore: update protobuf files and wasm client
- Loading branch information
Showing
27 changed files
with
514 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@nillion/client-vms", | ||
"license": "MIT", | ||
"author": "[email protected]", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"repository": "https://github.com/NillionNetwork/client-ts", | ||
"type": "module", | ||
"exports": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.