forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add hasura schemas for wasm and nft tables
- Loading branch information
1 parent
a4f7702
commit c085ba0
Showing
7 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
table: | ||
name: nft | ||
schema: public | ||
object_relationships: | ||
- name: nft_class | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
class_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: nft_class | ||
schema: public | ||
select_permissions: | ||
- permission: | ||
allow_aggregations: true | ||
columns: | ||
- id | ||
- class_id | ||
- uri | ||
- uri_hash | ||
- data | ||
- owner | ||
- metadata | ||
- height | ||
filter: {} | ||
role: anonymous |
27 changes: 27 additions & 0 deletions
27
hasura/metadata/databases/callisto/tables/public_nft_class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
table: | ||
name: nft_class | ||
schema: public | ||
array_relationships: | ||
- name: nfts | ||
using: | ||
foreign_key_constraint_on: | ||
column: class_id | ||
table: | ||
name: nft | ||
schema: public | ||
select_permissions: | ||
- permission: | ||
allow_aggregations: true | ||
columns: | ||
- id | ||
- name | ||
- symbol | ||
- description | ||
- uri | ||
- uri_hash | ||
- data | ||
- owner | ||
- metadata | ||
- height | ||
filter: {} | ||
role: anonymous |
22 changes: 22 additions & 0 deletions
22
hasura/metadata/databases/callisto/tables/public_wasm_code.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
table: | ||
name: wasm_code | ||
schema: public | ||
array_relationships: | ||
- name: wasm_contracts | ||
using: | ||
foreign_key_constraint_on: | ||
column: code_id | ||
table: | ||
name: wasm_contract | ||
schema: public | ||
select_permissions: | ||
- permission: | ||
allow_aggregations: true | ||
columns: | ||
- sender | ||
- byte_code | ||
- instantiate_permission | ||
- code_id | ||
- height | ||
filter: {} | ||
role: anonymous |
34 changes: 34 additions & 0 deletions
34
hasura/metadata/databases/callisto/tables/public_wasm_contract.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
table: | ||
name: wasm_contract | ||
schema: public | ||
object_relationships: | ||
- name: wasm_code | ||
using: | ||
foreign_key_constraint_on: code_id | ||
array_relationships: | ||
- name: wasm_execute_contracts | ||
using: | ||
foreign_key_constraint_on: | ||
column: contract_address | ||
table: | ||
name: wasm_execute_contract | ||
schema: public | ||
select_permissions: | ||
- permission: | ||
allow_aggregations: true | ||
columns: | ||
- sender | ||
- creator | ||
- admin | ||
- code_id | ||
- label | ||
- raw_contract_message | ||
- funds | ||
- contract_address | ||
- data | ||
- instantiated_at | ||
- contract_info_extension | ||
- contract_states | ||
- height | ||
filter: {} | ||
role: anonymous |
20 changes: 20 additions & 0 deletions
20
hasura/metadata/databases/callisto/tables/public_wasm_execute_contract.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
table: | ||
name: wasm_execute_contract | ||
schema: public | ||
object_relationships: | ||
- name: wasm_contract | ||
using: | ||
foreign_key_constraint_on: contract_address | ||
select_permissions: | ||
- permission: | ||
allow_aggregations: true | ||
columns: | ||
- sender | ||
- contract_address | ||
- raw_contract_message | ||
- funds | ||
- data | ||
- executed_at | ||
- height | ||
filter: {} | ||
role: anonymous |
13 changes: 13 additions & 0 deletions
13
hasura/metadata/databases/callisto/tables/public_wasm_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
table: | ||
name: wasm_params | ||
schema: public | ||
select_permissions: | ||
- permission: | ||
allow_aggregations: true | ||
columns: | ||
- one_row_id | ||
- code_upload_access | ||
- instantiate_default_permission | ||
- height | ||
filter: {} | ||
role: anonymous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters