Giter Site home page Giter Site logo

omniflix / omniflixhub Goto Github PK

View Code? Open in Web Editor NEW
60.0 9.0 28.0 34.81 MB

OmniFlix Hub is the root chain of the OmniFlix Network. Sovereign chains and DAOs build on top of or connect to the OmniFlix Hub to manage their web2 & web3 media operations to mint, manage, distribute & monetize NFTs enabled with community interactions.

Home Page: https://OmniFlix.network

License: MIT License

Makefile 0.55% Go 98.62% Shell 0.49% Smarty 0.10% Python 0.24%
decentralization media nfts non-fungible-tokens social-tokens dao blockchain

omniflixhub's Introduction

OmniFlix Hub

OmniFlix Hub is the root chain of the OmniFlix Network. Sovereign chains and DAOs build on top of or connect to the OmniFlix Hub to manage their web2 & web3 media operations to mint, manage, distribute & monetize NFTs enabled with community interactions

OmniFlix Hub blockchain is built using Cosmos-SDK and CometBFT

Hardware Requirements

  • 6+ core CPUs (recommended: AMD x86_64)
  • 32GB RAM
  • 1TB SSD Storage

Go Requirement

  • go 1.21.3 +
sudo rm -rf /usr/local/go
wget -q -O - https://git.io/vQhTU | bash -s -- --remove
wget -q -O - https://git.io/vQhTU | bash -s -- --version 1.21.3

Installation

Linux

git clone https://github.com/Omniflix/omniflixhub.git
cd omniflixhub
git checkout v4.0.0
go mod tidy
make install

Setup

# Initialize node
MONIKER=omniflix-node
CHAIN_ID=omniflixhub-1
omniflixhubd init $MONIKER --chain-id $CHAIN_ID

# Download Genesis
curl https://raw.githubusercontent.com/OmniFlix/mainnet/main/omniflixhub-1/genesis.json > ~/.omniflixhub/config/genesis.json

# verify sha256 sum 
# 3c01dd89ae10f3dc247648831ef9e8168afd020946a13055d92a7fe2f50050a0

Update Config (omniflixhub-1/config)

  • update minimum-gas-price as 0.001uflix in app.toml
  • updates persistent peers and seeds in config.toml

Snapshots

OmniFlix Modules

Documentation

Upgrades

  • upgrade_1 at block 4175400
  • v0.10.0 at block 6262420
  • v0.11.0 at block 7339200
  • v0.12.x at block 8054200
  • v2 at block 10428200
  • v2.1 at block 10678600
  • v3 at block 10872800
  • v3.3.0 at block 11140000
  • v4 at block 11914000

Testnets

Mainnet

omniflixhub's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omniflixhub's Issues

unable to create channel for cosmwasm contract

while creating ibc channel using wasm port getting below error

 gRPC call `send_tx_simulate` failed with status: status: Unknown, message: "failed to execute message; message index: 0: route not found to module: wasm: route not found

solution
we should add wasm to ibc router

ibcRouter.AddRoute(wasmtypes.ModuleName, wasm.NewIBCHandler(appKeepers.WasmKeeper, appKeepers.IBCKeeper.ChannelKeeper, appKeepers.IBCKeeper.ChannelKeeper))

SECURITY ERROR

I try to build the binary and have

verifying github.com/bianjieai/[email protected]: checksum mismatch
	downloaded: h1:ItdjA6AUyt3SjiN1HxD0DH3OkyMZBqKSKSQYFDF3Ue8=
	go.sum:     h1:399lErsTpI+faTerw5Q4OuVlXAmAQSuibVvxHR3C6OY=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

Reporting a security issue

I'm working with the development teams who are building the Interchain Stack, and I am aware of a security vulnerability in your code. I would like to report it so that we can coordinate patching to protect your chain.

Please reach out to me at [email protected] so that we can coordinate privately. Thanks!

Query on Onft Denom with gRPC can't get result back.

Description

I'm writing evidence validation tools for GoN. In task A4&A6, I need to query IBC Denom on Omniflix, but with gRPC Client I can't get the result back.

Query with CLI

Works fine!

> omniflixhubd q onft denom ibc/B9C0497B80973FB67A3000836186317DA046574DEE98D938848C8620AEFE99DA

creator: omniflix1zcpsseay358eu0mw6gdhdpx26q87mp7mx3ksgw
data: '{"community":"Stargaze","discord_handle":"gerathdavid#9809","github_username":"sarsersirsur","irismod:creator":{"value":"6fd11c8958d06fb4f8d6a06c53fca0166f3b007c"},"irismod:description":{"value":"sarsersirsur"},"irismod:mint_restricted":{"value":true},"irismod:name":{"value":"sarsersirsur"},"irismod:schema":{"value":""},"irismod:symbol":{"value":"SSSS"},"irismod:update_restricted":{"value":true},"irismod:uri_hash":{"value":""},"team_name":"0x4S"}'
description: ""
id: ibc/B9C0497B80973FB67A3000836186317DA046574DEE98D938848C8620AEFE99DA
name: ""
preview_uri: ""
schema: ""
symbol: ""
uri: https://github.com/sarsersirsur
uri_hash: ""

Query with gRPC

With golang script, I always get the error rpc error: code = Unimplemented desc = unknown service OmniFlix.onft.v1beta1.Query. Is that because I use the gRPC client incorrectly?

package chain

import (
	"context"
	"encoding/json"
	"fmt"
	nfttypes "github.com/OmniFlix/onft/types"
	"github.com/taramakage/gon-verifier/internal/types"
	"google.golang.org/grpc"
)

type Omniflix struct {
	conn      *grpc.ClientConn
	nftClient nfttypes.QueryClient
}

func NewOmniflix() *Omniflix {
	conn, err := grpc.Dial(
		ChainGRPCIris,
		grpc.WithInsecure(),
		grpc.WithDefaultCallOptions(),
	)
	if err != nil {
		panic(err)
	}

	return &Omniflix{
		conn:      conn,
		nftClient: nfttypes.NewQueryClient(conn),
	}
}

// Basiclly this method dosen't work as expection.
func (o *Omniflix) GetClass(classID string) (*Class, error) {
	req := &nfttypes.QueryDenomRequest{
		DenomId: classID,
	}
        
        // Here i get the error: rpc error: code = Unimplemented desc = unknown service OmniFlix.onft.v1beta1.Query
	resi, err := withGrpcRetry(func() (interface{}, error) {
		return o.nftClient.Denom(context.Background(), req)
	})
	if err != nil {
		return nil, err
	}
	res, ok := resi.(*nfttypes.QueryDenomResponse)
	if !ok {
		return nil, err
	}

	return &Class{
		ID:      res.Denom.Id,
		Name:    res.Denom.Name,
		Schema:  res.Denom.Schema,
		Creator: res.Denom.Creator,
		Uri:     res.Denom.Uri,
		UriHash: res.Denom.UriHash,
		Data:    res.Denom.Data,
	}, nil
}

Version

  • onft module: github.com/OmniFlix/onft v0.4.0-gon-rc11
  • omniflix version: 0.9.0-gon-test2

itc campaign claim gas issue

in itc module as claims increases for the campaign gas for tx is also increasing a lot due to claims query on claim tx to check campaign reached max claims or not

	claims := k.GetClaims(ctx, campaign.GetId())
	if uint64(len(claims)) >= campaign.MaxAllowedClaims {
		return sdkerrors.Wrapf(types.ErrClaimNotAllowed,
			"max allowed claims reached for this campaign (campaign: %d, maxAllowedClaims: %d).",
			campaign.GetId(),
			campaign.GetMaxAllowedClaims(),
		)
	}

This can be resolved by using a claim counter for each campaign

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.