Skip to content

Commit

Permalink
Merge pull request #182 from BitCannaGlobal/upgrade-v50
Browse files Browse the repository at this point in the history
Upgrade v50
  • Loading branch information
RaulBernal authored Oct 30, 2024
2 parents f132bce + a4b3d88 commit 04a09b1
Show file tree
Hide file tree
Showing 15 changed files with 3,694 additions and 4,028 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PORT=4200
PORT=3000
HOST='0.0.0.0'
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand Down
75 changes: 74 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,77 @@ Distributed under the Apache License 2.0. See [LICENSE](https://github.com/BitCa

* **atmon3r** - *Full dev of BitCanna* - [Github](https://github.com/atmoner)


# Instructions with Docker-composer
Docker-composer allows you to run the three different configurations for each chain (bitcanna-1, devnet-1 & devnet-6) using the same Docker Image. Alternatively you can run a simple Docker Image to raise a MainNET Wallet.

## Bitcanna-1 MainNET

### Docker-compose
```sh
docker-compose --profile bitcanna-1 up -d
```

### Run Docker Hub image
Alternatively you can run a simple Docker Image to raise a MainNET Wallet.

```sh
docker run -d -p 4200:4200 --name wallet-mainnet bernalraul/weedwallet:mainnet
```

#### Logs check:
- `docker container logs wallet-mainnet`

#### Stop and remove data
- `docker-compose --profile bitcanna-1 down`

#### Create the systemd file:
As the container has always the same name, we can start & stop & restart it
```bash
cat <<'EOF' >>wallet-mainnet.service
[Unit]
Description=wallet-mainnet container
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a wallet-mainnet
ExecStop=/usr/bin/docker stop -t 2 wallet-mainnet
[Install]
WantedBy=default.target
EOF
```

## BitCanna Devnet-1 (same for Devnet-6 replacing by that name)
It is the same Image but the App is rebuilt with DEVNET-1 config. Only with Docker-composer

### Docker-compose
```sh
docker-compose --profile devnet-1 up -d
```

#### Logs check:
- `docker container logs wallet-devnet`

#### Stop and remove data
- `docker-compose --profile devnet-1 down`

#### Create the systemd file:
As the container has always the same name, we can start & stop & restart it
```bash
cat <<'EOF' >>wallet-devnet-1.service
[Unit]
Description=wallet-devnet-1 container
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a wallet-devnet-1
ExecStop=/usr/bin/docker stop -t 2 wallet-devnet-1
[Install]
WantedBy=default.target
EOF
```
95 changes: 95 additions & 0 deletions cosmos.config.bitcanna-1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
export default [
{
chainId: 'bitcanna-dev-6',
name: 'Bitcanna-testnet',
slot: "Bitcanna-testnet",
desc: '',
apiURL: 'https://lcd-devnet-6.bitcanna.io',
rpcURL: 'https://rpc-devnet-6.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev6/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
{
chainId: 'bitcanna-dev-1',
name: 'BitCanna testnet',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd-testnet.bitcanna.io',
rpcURL: 'https://rpc-testnet.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev1/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
{
chainId: 'bitcanna-1',
name: 'BitCanna',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd.bitcanna.io',
rpcURL: 'https://rpc.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer.bitcanna.io/transactions/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
]
95 changes: 95 additions & 0 deletions cosmos.config.devnet-1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
export default [
{
chainId: 'bitcanna-dev-6',
name: 'Bitcanna-testnet',
slot: "Bitcanna-testnet",
desc: '',
apiURL: 'https://lcd-devnet-6.bitcanna.io',
rpcURL: 'https://rpc-devnet-6.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev6/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
{
chainId: 'bitcanna-1',
name: 'BitCanna',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd.bitcanna.io',
rpcURL: 'https://rpc.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer.bitcanna.io/transactions/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
{
chainId: 'bitcanna-dev-1',
name: 'BitCanna testnet',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd-testnet.bitcanna.io',
rpcURL: 'https://rpc-testnet.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev1/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
]
95 changes: 95 additions & 0 deletions cosmos.config.devnet-6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
export default [
{
chainId: 'bitcanna-dev-1',
name: 'BitCanna testnet',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd-testnet.bitcanna.io',
rpcURL: 'https://rpc-testnet.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev1/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
{
chainId: 'bitcanna-1',
name: 'BitCanna',
desc: 'Harnessing the power of blockchain to create equal opportunities for cannabis-related industries ',
slot: "bitcanna",
apiURL: 'https://lcd.bitcanna.io',
rpcURL: 'https://rpc.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer.bitcanna.io/transactions/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
{
chainId: 'bitcanna-dev-6',
name: 'Bitcanna-testnet',
slot: "Bitcanna-testnet",
desc: '',
apiURL: 'https://lcd-devnet-6.bitcanna.io',
rpcURL: 'https://rpc-devnet-6.bitcanna.io',
coinLookup: {
viewDenom: 'BCNA',
chainDenom: 'ubcna',
addressPrefix: 'bcna',
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev6/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
maxTxSenderHome: 5,
maxTxRecipientHome: 5,
maxTxSender: 50,
maxTxRecipient: 50,
color: '#33ffc9',
colorChart: ["#b3ffeb", "#33ffc9", "#00b383", "#004d38"],
modules: {
feeGrant: true,
authz: true,
wasm: false,
group: true,
}
},
]
2 changes: 1 addition & 1 deletion cosmos.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default [
icon: `https://raw.githubusercontent.com/cosmos/chain-registry/master/bitcanna/images/bcna.svg`,
banner: "https://pbs.twimg.com/profile_banners/602625556/1649007099/1500x500",
},
explorerUrl: 'https://explorer.bitcanna.io/tx/',
explorerUrl: 'https://explorer-devnet-6.bitcanna.io/bitcanna-dev1/tx/',
coingeckoId: 'bitcanna',
feeMultiplier: 1.9,
gasPrice: 0.0025,
Expand Down
Loading

0 comments on commit 04a09b1

Please sign in to comment.