Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Upgrade v50 #182

Merged
merged 23 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d77a0e5
Config for DEVNET-1 & Dockerimage
RaulBernal Jun 6, 2024
6f021c5
fix typo in filename
RaulBernal Jun 6, 2024
2f4b26f
change port from 3000 to 4200
RaulBernal Jun 6, 2024
7018005
Custom IP:PORT using env file
RaulBernal Jun 6, 2024
6530eba
Update files to set IP:PORT
RaulBernal Jun 6, 2024
4970b9d
Bump node version at LINT (GitHub actions)
RaulBernal Sep 25, 2024
a31b467
Replace deprecated param `events` by `query` at LCD `txs` query for …
RaulBernal Sep 25, 2024
a369bba
make a conditional use of param query/events depending SDK version
RaulBernal Sep 25, 2024
6e99a45
Bump CosmJS lib from v0.31.1 to v0.32.4
RaulBernal Sep 25, 2024
8cee3b1
For devnet-1 deployment
RaulBernal Sep 25, 2024
804458c
Merge pull request #178 from BitCannaGlobal/devnet-1-v50
RaulBernal Sep 25, 2024
cd159c1
Gov proposals in v0.50 miss the fields "content.title" & "content.des…
RaulBernal Sep 25, 2024
f72b470
Translate comments from Spanish to English
RaulBernal Sep 25, 2024
82eb4f1
Merge pull request #179 from BitCannaGlobal/devnet-1-v50
RaulBernal Sep 25, 2024
83bc4ee
API breaking fix: check if CosmosBFT version is v0.37 or v0.38
RaulBernal Oct 29, 2024
4f9d64b
MainNET config by default
RaulBernal Oct 29, 2024
29e593b
fix main page Txs
RaulBernal Oct 29, 2024
007ff8c
Docker-compose config files
RaulBernal Oct 29, 2024
abcd459
fix docker-compose to rebuild & preview
RaulBernal Oct 29, 2024
4b236a1
fix container name for to match with previous docs
RaulBernal Oct 30, 2024
900845c
doc & docker-compose adjustments
RaulBernal Oct 30, 2024
a039df0
Merge branch 'main' into upgrade-v50
RaulBernal Oct 30, 2024
a4b3d88
fix MD at README.md
RaulBernal Oct 30, 2024
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 .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
Loading