Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Multi-chain capabilities in KodaDot #4257

Open
yangwao opened this issue Nov 5, 2022 · 3 comments
Open

Enable Multi-chain capabilities in KodaDot #4257

yangwao opened this issue Nov 5, 2022 · 3 comments
Labels
$$ ~51-150usd A-multi-chain interoperability issues across more parachains A-search related to search components chief p2 core functionality, or is affecting 60% of app

Comments

@yangwao
Copy link
Member

yangwao commented Nov 5, 2022

Finally, we have an endpoint we can start to integrate multi-chain components.

At some point would be nice to have some component which would wrap and abstract the current endpoint in case we find Supabase is not sufficient for our case.

Endpoint

Follow up what can be done with new endpoint
If anyone wants to play with that here is the URL

https://xtnvtbdyvpbbnonbbcif.supabase.co/graphql/v1

You need to add apiKey header into your request. You can find the key in the discord group.

Sample Query

query findCollections {
	collectionsCollection(first: 10) {
		edges {
			node {
				name
			}
		}
	}
}

Tasks

Once all the above done

Ref

@yangwao yangwao added A-search related to search components A-multi-chain interoperability issues across more parachains labels Nov 5, 2022
@yangwao yangwao added the p2 core functionality, or is affecting 60% of app label Nov 5, 2022
@yangwao yangwao pinned this issue Nov 23, 2022
@yangwao yangwao added the $$$ ~151-300usd label Dec 4, 2022
@vikiival
Copy link
Member

First draft of schema

Collection

-- create table collection_entities with following columns
-- id (uuid, primary key, auto increment)
-- animation_url (text)
-- block_number (bigint)
-- chain (enum, default 'rmrk')
-- collection_id (text)
-- count (integer, default 0)
-- created_at (timestamp, default now())
-- floor_price (bigint, default 0)
-- hash (text)
-- image (text)
-- issuer (text, foreign key to creators table)
-- max (integer)
-- metadata (text)
-- name (text)
-- supply (integer, default 0)
-- updated_at (timestamp, default now())
-- version (integer, default 0)

NFT:

-- create table nft_entities with following columns
-- block_number (bigint)
-- chain (enum, default 'rmrk')
-- collection_id (text, foreign key to collection_entities table)
-- issuer (text, foreign key to creators table)
-- id (uuid, primary key, auto increment)
-- metadata (text)
-- name (text)
-- image (text)
-- animation_url (text)
-- created_at (timestamp, default now())
-- updated_at (timestamp, default now())
-- hash (text)
-- serial_number (integer)
-- version (integer, default 0)

@yangwao yangwao mentioned this issue Jan 4, 2023
17 tasks
@yangwao yangwao changed the title Multi chain search hack Enabling Multi chain capabilities in KodaDot Jan 5, 2023
@yangwao yangwao added $$ ~51-150usd chief and removed $$$ ~151-300usd labels Jan 5, 2023
@yangwao yangwao changed the title Enabling Multi chain capabilities in KodaDot Enable Multi-chain capabilities in KodaDot Feb 16, 2023
@daiagi
Copy link
Contributor

daiagi commented Feb 28, 2023

@vikiival where would be a good place to start tackling these issues?

@vikiival
Copy link
Member

vikiival commented Mar 15, 2023

@vikiival where would be a good place to start tackling these issues?

Hello,
I wrote few months ago how can we use the search

#4457 (comment)

here is the anon key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$$ ~51-150usd A-multi-chain interoperability issues across more parachains A-search related to search components chief p2 core functionality, or is affecting 60% of app
Projects
None yet
Development

No branches or pull requests

3 participants