Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
915b5a2
tenscan_test working
badgersrus Dec 17, 2025
d03fdeb
get rid of crud
badgersrus Dec 17, 2025
4c8245e
lint
badgersrus Dec 17, 2025
5fe6f27
lint
badgersrus Dec 18, 2025
40797b5
route contract count to host, not to enclave
badgersrus Dec 18, 2025
aae71f8
lint
badgersrus Dec 18, 2025
47396cf
wtf
badgersrus Dec 18, 2025
9bb3522
add wait for postgres CI
badgersrus Dec 18, 2025
a338cef
Merge branch 'main' into will/verify-contracts
badgersrus Jan 2, 2026
e2c0807
merge latest
badgersrus Jan 7, 2026
6e13a64
Merge branch 'will/verify-contracts' of https://github.com/ten-protoc…
badgersrus Jan 7, 2026
fc52aa9
lint
badgersrus Jan 7, 2026
b20e33e
add more buffer for ci test
badgersrus Jan 7, 2026
06623bf
skip contract listing on CI
badgersrus Jan 7, 2026
f045d57
remove wrong branch crud
badgersrus Jan 7, 2026
7f1c60a
add historical contract count update
badgersrus Jan 7, 2026
aad8791
lint
badgersrus Jan 7, 2026
8ada0c3
fix n+1 query and remove ID from grpc request
badgersrus Jan 15, 2026
5830eba
missing file commit
badgersrus Jan 15, 2026
57f1502
lint
badgersrus Jan 15, 2026
192fad9
add config value for sync frequenc
badgersrus Jan 16, 2026
ff8df54
set values on sim tests
badgersrus Jan 16, 2026
6f77e12
missing param
badgersrus Jan 16, 2026
d789a08
set config values and fix limit exceeding
badgersrus Jan 16, 2026
a8468ec
feckin generated dir
badgersrus Jan 16, 2026
b024d6a
fix tenscan test
badgersrus Jan 16, 2026
56be611
fix full network sim
badgersrus Jan 18, 2026
f9266cf
add default for contract sync interval to sim tests
badgersrus Jan 19, 2026
b5f1ff1
ffs
badgersrus Jan 19, 2026
71377c1
review comments
badgersrus Jan 21, 2026
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
14 changes: 14 additions & 0 deletions go/common/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ type EnclaveClientRPC interface {
// GetTotalContractCount returns the total number of contracts that have been deployed
GetTotalContractCount(context.Context) (*big.Int, SystemError)

// GetContracts returns contracts created after the specified contract ID
GetContracts(ctx context.Context, fromContractID uint64, limit uint) ([]EnclaveContractData, SystemError)

// EnclavePublicConfig returns network data that is known to the enclave but can be shared publicly
EnclavePublicConfig(context.Context) (*EnclavePublicConfig, SystemError)

Expand Down Expand Up @@ -171,3 +174,14 @@ type EnclavePublicConfig struct {
SystemContractsUpgrader gethcommon.Address
PublicSystemContracts map[string]gethcommon.Address
}

type EnclaveContractData struct {
ID uint64
Address gethcommon.Address
Creator gethcommon.Address
AutoVisibility bool
Transparent *bool
BatchSeq uint64
BatchHeight uint64
BatchTimestamp uint64
}
16 changes: 16 additions & 0 deletions go/common/query_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ type RollupListingResponse struct {
Total uint64
}

type ContractListingResponse struct {
Contracts []PublicContract
Total uint64
}

type PublicContract struct {
ID uint64 `json:"id"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this ID needed if we decided to remove it?

Address common.Address `json:"address"`
Creator common.Address `json:"creator"`
IsTransparent bool `json:"isTransparent"`
HasCustomConfig bool `json:"hasCustomConfig"`
BatchSeq uint64 `json:"deployedBatchSeq"`
Height uint64 `json:"deployedHeight"`
Time uint64 `json:"deployedTime"`
}

type PublicTransaction struct {
TransactionHash TxHash
BatchHeight *big.Int
Expand Down
Loading
Loading