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

Deploy contracts look up cli. #69

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

Andrei-Dolgolev
Copy link
Contributor

@Andrei-Dolgolev Andrei-Dolgolev commented Sep 18, 2024

go run *.go databases index find-contracts --chain b3

Will fill from last block to first all contracts.

           Column            |           Type           | Collation | Nullable |                   Default
-----------------------------+--------------------------+-----------+----------+----------------------------------------------
 address                     | bytea                    |           | not null |
 deployed_bytecode           | text                     |           | not null |
 deployed_bytecode_hash      | character varying(32)    |           | not null |
 bytecode_storage_id         | uuid                     |           |          |
 abi                         | jsonb                    |           |          |
 deployed_at_block_number    | bigint                   |           | not null |
 deployed_at_block_hash      | character varying(256)   |           | not null |
 deployed_at_block_timestamp | bigint                   |           | not null |
 transaction_hash            | character varying(256)   |           | not null |
 transaction_index           | bigint                   |           | not null |
 name                        | character varying(256)   |           |          |
 statistics                  | jsonb                    |           |          |
 supported_standards         | jsonb                    |           |          |
 created_at                  | timestamp with time zone |           | not null | timezone('utc'::text, statement_timestamp())
 updated_at                  | timestamp with time zone |           | not null | timezone('utc'::text, statement_timestamp())
 deployed_by                 | bytea                    |           | not null |

And bytestorage table.

   Column    |           Type           | Collation | Nullable |                   Default
-------------+--------------------------+-----------+----------+----------------------------------------------
 id          | uuid                     |           | not null |
 hash        | character varying(32)    |           | not null |
 bytecode    | text                     |           | not null |
 title       | character varying(256)   |           |          |
 description | text                     |           |          |
 abi         | jsonb                    |           |          |
 code        | text                     |           |          |
 data        | jsonb                    |           |          |
 created_at  | timestamp with time zone |           | not null | timezone('utc'::text, statement_timestamp())
 updated_at  | timestamp with time zone |           | not null | timezone('utc'::text, statement_timestamp())

@Andrei-Dolgolev
Copy link
Contributor Author

Merge main.
Add deploy scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant