diff --git a/.gitignore b/.gitignore index fc64e299..3f102471 100644 --- a/.gitignore +++ b/.gitignore @@ -37,9 +37,15 @@ worker/ethereum/* worker/ethereum/sai-ethereum-indexer/* !worker/ethereum/sai-ethereum-indexer/config.json !worker/ethereum/sai-ethereum-indexer/contracts.json -!worker/ethereum/sai-ethereum-indexer/block.data !worker/ethereum/sai-ethereum-contract-interaction/ worker/ethereum/sai-ethereum-contract-interaction/* !worker/ethereum/sai-ethereum-contract-interaction/config.yml -!worker/ethereum/sai-ethereum-contract-interaction/contracts.json \ No newline at end of file +!worker/ethereum/sai-ethereum-contract-interaction/contracts.json + +# Ignore everything in sekai except configs +sekai/* +sekai/config/* + +# Ignore everyting in interx +interx/* diff --git a/compose.yml b/compose.yml index ac38f663..7998f134 100644 --- a/compose.yml +++ b/compose.yml @@ -88,6 +88,8 @@ services: syslog-address: "udp://10.1.0.2:514" syslog-facility: local0 tag: "storage" + ports: + - "8880:8880" expose: - "8880" volumes: @@ -109,6 +111,8 @@ services: syslog-address: "udp://10.1.0.2:514" syslog-facility: local0 tag: "cosmos-indexer" + ports: + - "8883:8883" expose: - "8883" volumes: @@ -130,6 +134,8 @@ services: syslog-address: "udp://10.1.0.2:514" syslog-facility: local0 tag: "cosmos-interaction" + ports: + - "8884:8884" expose: - "8884" volumes: @@ -152,6 +158,8 @@ services: syslog-address: "udp://10.1.0.2:514" syslog-facility: local0 tag: "ethereum-indexer" + ports: + - "8881:8881" expose: - "8881" volumes: @@ -175,6 +183,8 @@ services: syslog-address: "udp://10.1.0.2:514" syslog-facility: local0 tag: "ethereum-interaction" + ports: + - "8882:8882" expose: - "8882" volumes: diff --git a/config/logrotate.conf b/config/logrotate.conf index 92962c68..0e704e75 100644 --- a/config/logrotate.conf +++ b/config/logrotate.conf @@ -1,4 +1,4 @@ -/var/log/syslog-ng/logs/sekai.log /var/log/syslog-ng/logs/shidai.log /var/log/syslog-ng/logs/shidai_backup.log /var/log/syslog-ng/logs/interx.log /var/log/syslog-ng/logs/logrotate.log { +/var/log/syslog-ng/logs/*.log { size 1M rotate 5 compress @@ -11,3 +11,4 @@ syslog-ng-ctl reopen endscript } + diff --git a/create-dapp-proposal.txt b/create-dapp-proposal.txt deleted file mode 100644 index 30fca654..00000000 --- a/create-dapp-proposal.txt +++ /dev/null @@ -1,58 +0,0 @@ - -Usage: - sekaid tx layer2 create-dapp-proposal [flags] - -Flags: - -a, --account-number uint The account number of the signing account (offline mode only) - --aux Generate aux signer data instead of sending a tx - --binary-info string dapp binary info. (default "{}") - --bond string Initial bond deposit for dapp - -b, --broadcast-mode string Transaction broadcasting mode (sync|async) (default "sync") - --chain-id string The network chain ID - --controller-accounts string controller accounts on the dapp. - --controller-roles string controller roles on the dapp. - --dapp-description string Dapp description - --dapp-name string Dapp name - --dapp-status string dapp status. (default "{}") - --denom string Dapp denom - --docs string Dapp docs - --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) - --executors-max uint dapp executors max - --executors-min uint dapp executors min - --fee-granter string Fee granter grants fees for the transaction - --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer - --fees string Fees to pay along with transaction; eg: 10uatom - --from string Name or address of private key with which to sign - --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) - --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) - --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) - --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for create-dapp-proposal - --issurance-config string dapp issurance config. (default "{}") - --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") - --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used - --ledger Use a connected Ledger device - --logo string Dapp logo - --lp-pool-config string dapp lp config. (default "{}") - --node string : to tendermint rpc interface for this chain (default "tcp://localhost:26657") - --note string Note to add a description to the transaction (previously --memo) - --offline Offline mode (does not allow any online functionality) - -o, --output string Output format (text|json) (default "json") - -s, --sequence uint The sequence number of the signing account (offline mode only) - --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature - --social string Dapp social - --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height - --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator - --update-time-max uint dapp update time max - --verifiers-min uint dapp verifiers min - --vote-enactment uint vote enactment of the dapp - --vote-period uint vote period of the dapp - --vote-quorum uint vote quorum of the dapp - --website string Dapp website - -y, --yes Skip tx broadcasting prompt confirmation - -Global Flags: - --home string directory for config and data (default "/.sekaid") - --log_format string The logging format (json|plain) (default "plain") - --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") - --trace print out full stack trace on errors diff --git a/manager/config.yml b/manager/config.yml index 30e6ede9..13c81d5d 100644 --- a/manager/config.yml +++ b/manager/config.yml @@ -8,9 +8,9 @@ common: storage: token: "" - url: "http://worker-sai-storage:8880" + url: "http://sekin-storage-1:8880" ethereum: - interaction: "http://worker-sai-ethereum-interaction:8882" + interaction: "http://sekin-ethereum-interaction-1:8882" nodes: chain1: "https://data-seed-prebsc-1-s1.bnbchain.org:8545" token: "" @@ -26,7 +26,7 @@ cosmos: async: true block: true gw_timeout: 30 - interaction: "http://worker-sai-cosmos-interaction:8884" + interaction: "http://sekin-cosmos-interaction-1:8884" token: "" retries: 1 retry_delay: 10 diff --git a/worker/sai-storage-mongo/config.yml b/worker/sai-storage-mongo/config.yml index da70a418..fecb1550 100644 --- a/worker/sai-storage-mongo/config.yml +++ b/worker/sai-storage-mongo/config.yml @@ -11,7 +11,7 @@ common: port: 8881 storage: atlas: false - host: "mongo-db" + host: "sekin-mongo-1" port: "27017" user: "" pass: ""