Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Flipcash2ClientProtocol/ContractInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public enum Flipcash2ContractInfo {
public static let version = "0.18.0-dev"
public static let protoCommit = "9d44350b8d4d8eda9d63cff405238bd0e2920409"
public static let protoCommit = "9f67566fd0297a27ad2de7a98474634adf4d3a24"

public static var isLocal: Bool { protoCommit == localSentinel }

Expand Down
18 changes: 15 additions & 3 deletions Sources/Flipcash2ClientProtocol/chat_v1_chat_service.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,21 @@ public struct Flipcash_Chat_V1_StartChatRequest: Sendable {
/// Clears the value of `profilePicture`. Subsequent reads from it will return its default value.
public mutating func clearProfilePicture() {self._profilePicture = nil}

/// Rules governing participation in the chat. Optional; if not set, the
/// chat has no participation requirements. Caller must satisfy the rules
/// in order for the chat to be started.
/// Rules governing participation in the chat. Caller must satisfy the
/// rules, speaker rules included, in order for the chat to be started
/// (RULES_NOT_SATISFIED otherwise).
///
/// The server currently accepts only the following, and refuses
/// anything else as INVALID_RULES:
/// - Listener rules: exactly one MinimumBalanceRequirement, which is
/// required, and optionally one StaffRequirement.
/// - Speaker rules: optionally one MinimumBalanceRequirement. If set,
/// it must be in the same currency and the same mints as the
/// listener MinimumBalanceRequirement, and its amount must be larger
/// by at least the currency's minimum transfer value.
/// Every MinimumBalanceRequirement must be at least the currency's
/// minimum transfer value (one unit at its last decimal place, e.g.
/// 0.01 USD or 1 JPY), in a currency the server can value.
public var rules: Flipcash_Chat_V1_Rules {
get {return _rules ?? Flipcash_Chat_V1_Rules()}
set {_rules = newValue}
Expand Down
4 changes: 2 additions & 2 deletions flipcash2.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pinned upstream contract. Regenerate with scripts/sync-protos.sh <sha>.
upstream: code-payments/flipcash2-protobuf-api
commit: 9d44350b8d4d8eda9d63cff405238bd0e2920409
subject: Add support for featured groups (#138)
commit: 9f67566fd0297a27ad2de7a98474634adf4d3a24
subject: Update StartChat comments to enable minimum speaker balanace requirements for public groups (#139)
18 changes: 15 additions & 3 deletions proto/chat/v1/chat_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,21 @@ message StartChatRequest {
// Optional. If set, it must be owned by the caller and READY.
blob.v1.BlobId profile_picture = 2;

// Rules governing participation in the chat. Optional; if not set, the
// chat has no participation requirements. Caller must satisfy the rules
// in order for the chat to be started.
// Rules governing participation in the chat. Caller must satisfy the
// rules, speaker rules included, in order for the chat to be started
// (RULES_NOT_SATISFIED otherwise).
//
// The server currently accepts only the following, and refuses
// anything else as INVALID_RULES:
// - Listener rules: exactly one MinimumBalanceRequirement, which is
// required, and optionally one StaffRequirement.
// - Speaker rules: optionally one MinimumBalanceRequirement. If set,
// it must be in the same currency and the same mints as the
// listener MinimumBalanceRequirement, and its amount must be larger
// by at least the currency's minimum transfer value.
// Every MinimumBalanceRequirement must be at least the currency's
// minimum transfer value (one unit at its last decimal place, e.g.
// 0.01 USD or 1 JPY), in a currency the server can value.
Rules rules = 3;

// Description for the chat. Optional; empty sets none. Moderated like
Expand Down
Loading