Skip to content

Commit

Permalink
Update example config files and docker compose (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
havan authored Jun 27, 2024
1 parent bd1cbcf commit 276ffca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
7 changes: 7 additions & 0 deletions camino-messenger-bot-distributor.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ booking_token_abi_file: abi/BookingTokenV0.abi
# Supplier name to be used for registering to the BookingToken smart contract.
# Should be a short name, it will be saved on-chain. Not used with distributor bot.
#supplier_name: SUPPLIER_NAME

# Default expiration time (in seconds) for BookingToken mints.
#
# The supplier bot creates booking tokens and sets an expiration timestamp on each token.
# Once this time has passed, the token is no longer available for purchase by the distributor.
# The default value is 600 seconds.
#buyable_until_default: 600
7 changes: 7 additions & 0 deletions camino-messenger-bot-supplier.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ booking_token_abi_file: abi/BookingTokenV0.abi
# Supplier name to be used for registering to the BookingToken smart contract.
# Should be a short name, it will be saved on-chain.
supplier_name: SUPPLIER_NAME

# Default expiration time (in seconds) for BookingToken mints.
#
# The supplier bot creates booking tokens and sets an expiration timestamp on each token.
# Once this time has passed, the token is no longer available for purchase by the distributor.
# The default value is 600 seconds.
buyable_until_default: 600
15 changes: 6 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "3"
services:
provider-bot:
supplier-bot:
image: c4tplatform/camino-messenger-bot
build:
context: .
Expand All @@ -9,13 +9,13 @@ services:
CMB_DEVELOPER_MODE: "true"
CMB_MATRIX_KEY: "PrivateKey-THE_REST_OF_THE_KEY"
CMB_MATRIX_HOST: "matrix.camino.network"
CMB_MATRIX_STORE: "mautrix-localhost.db"
CMB_MATRIX_STORE: "supplier-matrix.db"
CMB_RPC_SERVER_PORT: "9090"
CMB_RPC_UNENCRYPTED: "true"
CMB_PARTNER_PLUGIN_HOST: "localhost"
CMB_PARTNER_PLUGIN_PORT: "50051"
CMB_PARTNER_PLUGIN_UNENCRYPTED: "true"
CMB_RESPONSE_TIMEOUT: "6000"
CMB_RESPONSE_TIMEOUT: "10000"
CMB_SUPPORTED_REQUEST_TYPES: "ActivitySearchRequest,AccommodationSearchRequest,GetNetworkFeeRequest,GetPartnerConfigurationRequest,PingRequest,TransportSearchRequest,MintRequest,ValidationRequest"
CMB_RPC_URL: "https://columbus.camino.network/ext/bc/C/rpc"
CMB_BOOKING_TOKEN_ABI_FILE: abi/BookingTokenV0.abi
Expand All @@ -33,14 +33,11 @@ services:
CMB_DEVELOPER_MODE: "true"
CMB_MATRIX_KEY: "PrivateKey-THE_REST_OF_THE_KEY"
CMB_MATRIX_HOST: "matrix.camino.network"
CMB_MATRIX_STORE: "mautrix-localhost.db"
CMB_MATRIX_STORE: "distributor-matrix.db"
CMB_RPC_SERVER_PORT: "9090"
CMB_RPC_UNENCRYPTED: "true"
CMB_PARTNER_PLUGIN_HOST: "localhost"
CMB_PARTNER_PLUGIN_PORT: "50052"
CMB_PARTNER_PLUGIN_UNENCRYPTED: "true"
CMB_RESPONSE_TIMEOUT: "6000"
CMB_SUPPORTED_REQUEST_TYPES: "ActivitySearchRequest,AccommodationSearchRequest,GetNetworkFeeRequest,GetPartnerConfigurationRequest,PingRequest,TransportSearchRequest,MintRequest,ValidationRequest"
CMB_RESPONSE_TIMEOUT: "10000"
CMB_SUPPORTED_REQUEST_TYPES: "GetNetworkFeeRequest,GetPartnerConfigurationRequest,PingRequest"
CMB_RPC_URL: "https://columbus.camino.network/ext/bc/C/rpc"
CMB_BOOKING_TOKEN_ABI_FILE: "abi/BookingTokenV0.abi"
CMB_EVM_PRIVATE_KEY: "PrivateKey-THE_REST_OF_THE_KEY"
Expand Down

0 comments on commit 276ffca

Please sign in to comment.