Skip to content

Commit

Permalink
Meta xdr (#82)
Browse files Browse the repository at this point in the history
* Add XDR types for contract meta

* generic

* Update Stellar-contract-meta.x

Co-authored-by: Leigh McCulloch <[email protected]>

* Update Stellar-contract-meta.x

* Update Stellar-contract-meta.x

---------

Co-authored-by: Leigh McCulloch <[email protected]>
  • Loading branch information
sisuresh and leighmcculloch authored Apr 19, 2023
1 parent d010243 commit c007743
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Stellar-contract-meta.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2022 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

// The contract meta XDR is highly experimental, incomplete, and still being
// iterated on. Breaking changes expected.

% #include "xdr/Stellar-types.h"
namespace stellar
{

struct SCMetaV0
{
string key<>;
string val<>;
};

enum SCMetaKind
{
SC_META_V0 = 0
};

union SCMetaEntry switch (SCMetaKind kind)
{
case SC_META_V0:
SCMetaV0 v0;
};

}

0 comments on commit c007743

Please sign in to comment.