aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/static_service.go
blob: 1b45939a6ed2fd2e69a8fcf664213f45ea379b1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package evm

import (
	"context"
	"encoding/json"

	"github.com/ava-labs/coreth/core"
)

// StaticService defines the static API services exposed by the evm
type StaticService struct{}

// BuildGenesis returns the UTXOs such that at least one address in [args.Addresses] is
// referenced in the UTXO.
func (*StaticService) BuildGenesis(_ context.Context, args *core.Genesis) ([]byte, error) {
	bytes, err := json.Marshal(args)
	return bytes, err
}