From bbf2c5bd1dd335ea03909499f85cfe8b1dafbe7d Mon Sep 17 00:00:00 2001 From: Krish-vemula Date: Thu, 28 May 2026 08:31:40 -0700 Subject: [PATCH] feat(stellar): add ContractWriter configuration types --- pkg/types/stellar/contract_writer.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkg/types/stellar/contract_writer.go diff --git a/pkg/types/stellar/contract_writer.go b/pkg/types/stellar/contract_writer.go new file mode 100644 index 0000000000..1987048afd --- /dev/null +++ b/pkg/types/stellar/contract_writer.go @@ -0,0 +1,16 @@ +package stellar + +type ContractWriterConfig struct { + Contracts map[string]*ContractWriterContract `json:"contracts"` +} + +type ContractWriterContract struct { + // The contract name (optional). When not provided, the key in the map under which this contract + // is stored is used. + Name string `json:"name,omitempty"` + Functions map[string]*ContractWriterFunction `json:"functions"` +} + +type ContractWriterFunction struct { + FromAddress string `json:"fromAddress"` +}