Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
4 changes: 4 additions & 0 deletions Stellar-ledger-entries.x
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,10 @@ enum EnvelopeType
ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7,
ENVELOPE_TYPE_CONTRACT_ID = 8,
ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9
#ifdef CAP_0071
,
ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10
#endif
};

enum BucketListType
Expand Down
33 changes: 33 additions & 0 deletions Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,28 @@ struct SorobanAddressCredentials
SCVal signature;
};

#ifdef CAP_0071
struct SorobanDelegateSignature {
SCAddress address;
SCVal signature;
SorobanDelegateSignature nestedDelegates<>;
}
Comment thread
sisuresh marked this conversation as resolved.
Outdated

struct SorobanAddressCredentialsWithDelegates
{
SorobanAddressCredentials addressCredentials;
SorobanDelegateSignature delegates<>;
};
#endif

enum SorobanCredentialsType
{
SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0,
SOROBAN_CREDENTIALS_ADDRESS = 1
#ifdef CAP_0071
,
SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES = 2
#endif
};

union SorobanCredentials switch (SorobanCredentialsType type)
Expand All @@ -581,6 +599,10 @@ case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT:
void;
case SOROBAN_CREDENTIALS_ADDRESS:
SorobanAddressCredentials address;
#ifdef CAP_0071
case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES:
SorobanAddressCredentialsWithDelegates addressWithDelegates;
#endif
};

/* Unit of authorization data for Soroban.
Expand Down Expand Up @@ -731,6 +753,17 @@ case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION:
uint32 signatureExpirationLedger;
SorobanAuthorizedInvocation invocation;
} sorobanAuthorization;
#ifdef CAP_0071
case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS:
struct
{
Hash networkID;
int64 nonce;
uint32 signatureExpirationLedger;
SCAddress address;
SorobanAuthorizedInvocation invocation;
} sorobanAuthorization;
Comment thread
sisuresh marked this conversation as resolved.
Outdated
#endif
};

enum MemoType
Expand Down
Loading