Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion Stellar-ledger-entries.x
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ enum EnvelopeType
ENVELOPE_TYPE_OP_ID = 6,
ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7,
ENVELOPE_TYPE_CONTRACT_ID = 8,
ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9
ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9,
ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS = 10
};

enum BucketListType
Expand Down
26 changes: 25 additions & 1 deletion Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,23 @@ struct SorobanAddressCredentials
SCVal signature;
};

struct SorobanDelegateSignature {
SCAddress address;
SCVal signature;
SorobanDelegateSignature nestedDelegates<>;
};

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

enum SorobanCredentialsType
{
SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0,
SOROBAN_CREDENTIALS_ADDRESS = 1
SOROBAN_CREDENTIALS_ADDRESS = 1,
SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES = 2
};

union SorobanCredentials switch (SorobanCredentialsType type)
Expand All @@ -581,6 +594,8 @@ case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT:
void;
case SOROBAN_CREDENTIALS_ADDRESS:
SorobanAddressCredentials address;
case SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES:
SorobanAddressCredentialsWithDelegates addressWithDelegates;
};

/* Unit of authorization data for Soroban.
Expand Down Expand Up @@ -731,6 +746,15 @@ case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION:
uint32 signatureExpirationLedger;
SorobanAuthorizedInvocation invocation;
} sorobanAuthorization;
case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS:
struct
{
Hash networkID;
int64 nonce;
uint32 signatureExpirationLedger;
SCAddress address;
SorobanAuthorizedInvocation invocation;
} sorobanAuthorizationWithAddress;
};

enum MemoType
Expand Down