New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stellar-base

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stellar-base - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

116

lib/generated/stellar-xdr_generated.js

@@ -1,2 +0,2 @@

// Automatically generated on 2015-05-07T08:05:18-07:00
// Automatically generated on 2015-05-12T11:11:27-07:00
// DO NOT EDIT or your changes may be overwritten

@@ -246,2 +246,13 @@

//
// enum TrustLineFlags
// {
// AUTHORIZED_FLAG = 1 // issuer has authorized account to hold its credit
// };
//
// ===========================================================================
xdr["enum"]("TrustLineFlags", {
authorizedFlag: 1 });
// === xdr source ============================================================
//
// struct TrustLineEntry

@@ -254,8 +265,8 @@ // {

//
// int64 limit; // balance cannot be above this
// bool authorized; // issuer has authorized account to hold its credit
// int64 limit; // balance cannot be above this
// uint32 flags; // see TrustLineFlags
// };
//
// ===========================================================================
xdr.struct("TrustLineEntry", [["accountId", xdr.lookup("AccountId")], ["currency", xdr.lookup("Currency")], ["balance", xdr.lookup("Int64")], ["limit", xdr.lookup("Int64")], ["authorized", xdr.bool()]]);
xdr.struct("TrustLineEntry", [["accountId", xdr.lookup("AccountId")], ["currency", xdr.lookup("Currency")], ["balance", xdr.lookup("Int64")], ["limit", xdr.lookup("Int64")], ["flags", xdr.lookup("Uint32")]]);

@@ -725,5 +736,2 @@ // === xdr source ============================================================

//
// opaque memo<32>;
// opaque sourceMemo<32>; // used to return a payment
//
// // payment over path

@@ -737,3 +745,3 @@ // Currency path<5>; // what hops it must go through to get there

// ===========================================================================
xdr.struct("PaymentOp", [["destination", xdr.lookup("AccountId")], ["currency", xdr.lookup("Currency")], ["amount", xdr.lookup("Int64")], ["memo", xdr.varOpaque(32)], ["sourceMemo", xdr.varOpaque(32)], ["path", xdr.varArray(xdr.lookup("Currency"), 5)], ["sendMax", xdr.lookup("Int64")]]);
xdr.struct("PaymentOp", [["destination", xdr.lookup("AccountId")], ["currency", xdr.lookup("Currency")], ["amount", xdr.lookup("Int64")], ["path", xdr.varArray(xdr.lookup("Currency"), 5)], ["sendMax", xdr.lookup("Int64")]]);

@@ -767,3 +775,3 @@ // === xdr source ============================================================

//
// string32* homeDomain; // sets the home domain
// string32* homeDomain; // sets the home domain
//

@@ -795,4 +803,4 @@ // // Add, update or remove a signer for the account

// {
// // NATIVE is not allowed
// case ISO4217:
// // CURRENCY_TYPE_NATIVE is not allowed
// case CURRENCY_TYPE_ALPHANUM:
// opaque currencyCode[4];

@@ -808,3 +816,3 @@ //

switches: {
iso4217: "currencyCode" },
currencyTypeAlphanum: "currencyCode" },
arms: {

@@ -820,4 +828,4 @@ currencyCode: xdr.opaque(4) } });

// {
// // NATIVE is not allowed
// case ISO4217:
// // CURRENCY_TYPE_NATIVE is not allowed
// case CURRENCY_TYPE_ALPHANUM:
// opaque currencyCode[4];

@@ -913,5 +921,5 @@ //

// MEMO_TYPE_TEXT = 1,
// MEMO_TYPE_ID = 2,
// MEMO_TYPE_ID = 2,
// MEMO_TYPE_HASH = 3,
// MEMO_TYPE_RETURN =4
// MEMO_TYPE_RETURN = 4
// };

@@ -931,12 +939,12 @@ //

// {
// case MEMO_TYPE_NONE:
// void;
// case MEMO_TYPE_TEXT:
// string text<28>;
// case MEMO_TYPE_ID:
// uint64 id;
// case MEMO_TYPE_HASH:
// Hash hash; // the hash of what to pull from the content server
// case MEMO_TYPE_RETURN:
// Hash retHash; // the hash of the tx you are rejecting
// case MEMO_TYPE_NONE:
// void;
// case MEMO_TYPE_TEXT:
// string text<28>;
// case MEMO_TYPE_ID:
// uint64 id;
// case MEMO_TYPE_HASH:
// Hash hash; // the hash of what to pull from the content server
// case MEMO_TYPE_RETURN:
// Hash retHash; // the hash of the tx you are rejecting
// };

@@ -967,5 +975,4 @@ //

//
// // maximum fee this transaction can collect
// // the transaction is aborted if the fee is higher
// int32 maxFee;
// // the fee the sourceAccount will pay
// int32 fee;
//

@@ -979,3 +986,3 @@ // // sequence number to consume in the account

//
// Memo memo;
// Memo memo;
//

@@ -986,3 +993,3 @@ // Operation operations<100>;

// ===========================================================================
xdr.struct("Transaction", [["sourceAccount", xdr.lookup("AccountId")], ["maxFee", xdr.lookup("Int32")], ["seqNum", xdr.lookup("SequenceNumber")], ["minLedger", xdr.lookup("Uint32")], ["maxLedger", xdr.lookup("Uint32")], ["memo", xdr.lookup("Memo")], ["operations", xdr.varArray(xdr.lookup("Operation"), 100)]]);
xdr.struct("Transaction", [["sourceAccount", xdr.lookup("AccountId")], ["fee", xdr.lookup("Int32")], ["seqNum", xdr.lookup("SequenceNumber")], ["minLedger", xdr.lookup("Uint32")], ["maxLedger", xdr.lookup("Uint32")], ["memo", xdr.lookup("Memo")], ["operations", xdr.varArray(xdr.lookup("Operation"), 100)]]);

@@ -1221,4 +1228,4 @@ // === xdr source ============================================================

// SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags
// SET_OPTIONS_INVALID_INFLATION = -4,// inflation account does not exist
// SET_OPTIONS_CANT_CHANGE = -5 // can no longer change this option
// SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist
// SET_OPTIONS_CANT_CHANGE = -5 // can no longer change this option
// };

@@ -1301,5 +1308,6 @@ //

// // codes considered as "failure" for the operation
// ALLOW_TRUST_MALFORMED = -1, // currency is not ISO4217
// ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
// ALLOW_TRUST_TRUST_NOT_REQUIRED = -3, // source account does not require trust
// ALLOW_TRUST_MALFORMED = -1, // currency is not CURRENCY_TYPE_ALPHANUM
// ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
// ALLOW_TRUST_TRUST_NOT_REQUIRED =
// -3, // source account does not require trust
// ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust

@@ -1682,4 +1690,4 @@ // };

// {
// NATIVE = 0,
// ISO4217 = 1
// CURRENCY_TYPE_NATIVE = 0,
// CURRENCY_TYPE_ALPHANUM = 1
// };

@@ -1689,15 +1697,15 @@ //

xdr["enum"]("CurrencyType", {
native: 0,
iso4217: 1 });
currencyTypeNative: 0,
currencyTypeAlphanum: 1 });
// === xdr source ============================================================
//
// struct ISOCurrencyIssuer
// {
// opaque currencyCode[4];
// AccountID issuer;
// };
// struct
// {
// opaque currencyCode[4];
// AccountID issuer;
// }
//
// ===========================================================================
xdr.struct("IsoCurrencyIssuer", [["currencyCode", xdr.opaque(4)], ["issuer", xdr.lookup("AccountId")]]);
xdr.struct("CurrencyAlphaNum", [["currencyCode", xdr.opaque(4)], ["issuer", xdr.lookup("AccountId")]]);

@@ -1708,7 +1716,11 @@ // === xdr source ============================================================

// {
// case NATIVE:
// case CURRENCY_TYPE_NATIVE:
// void;
//
// case ISO4217:
// ISOCurrencyIssuer isoCI;
// case CURRENCY_TYPE_ALPHANUM:
// struct
// {
// opaque currencyCode[4];
// AccountID issuer;
// } alphaNum;
//

@@ -1723,6 +1735,6 @@ // // add other currency types here in the future

switches: {
native: xdr["void"](),
iso4217: "isoCi" },
currencyTypeNative: xdr["void"](),
currencyTypeAlphanum: "alphaNum" },
arms: {
isoCi: xdr.lookup("IsoCurrencyIssuer") } });
alphaNum: xdr.lookup("CurrencyAlphaNum") } });

@@ -1729,0 +1741,0 @@ // === xdr source ============================================================

{
"name": "stellar-base",
"version": "0.0.7",
"version": "0.0.8",
"description": "Low level stellar support library",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,2 +0,2 @@

// Automatically generated on 2015-05-07T08:05:18-07:00
// Automatically generated on 2015-05-12T11:11:27-07:00
// DO NOT EDIT or your changes may be overwritten

@@ -280,2 +280,14 @@

//
// enum TrustLineFlags
// {
// AUTHORIZED_FLAG = 1 // issuer has authorized account to hold its credit
// };
//
// ===========================================================================
xdr.enum("TrustLineFlags", {
authorizedFlag: 1,
});
// === xdr source ============================================================
//
// struct TrustLineEntry

@@ -288,4 +300,4 @@ // {

//
// int64 limit; // balance cannot be above this
// bool authorized; // issuer has authorized account to hold its credit
// int64 limit; // balance cannot be above this
// uint32 flags; // see TrustLineFlags
// };

@@ -299,3 +311,3 @@ //

["limit", xdr.lookup("Int64")],
["authorized", xdr.bool()],
["flags", xdr.lookup("Uint32")],
]);

@@ -854,5 +866,2 @@

//
// opaque memo<32>;
// opaque sourceMemo<32>; // used to return a payment
//
// // payment over path

@@ -870,4 +879,2 @@ // Currency path<5>; // what hops it must go through to get there

["amount", xdr.lookup("Int64")],
["memo", xdr.varOpaque(32)],
["sourceMemo", xdr.varOpaque(32)],
["path", xdr.varArray(xdr.lookup("Currency"), 5)],

@@ -910,3 +917,3 @@ ["sendMax", xdr.lookup("Int64")],

//
// string32* homeDomain; // sets the home domain
// string32* homeDomain; // sets the home domain
//

@@ -948,4 +955,4 @@ // // Add, update or remove a signer for the account

// {
// // NATIVE is not allowed
// case ISO4217:
// // CURRENCY_TYPE_NATIVE is not allowed
// case CURRENCY_TYPE_ALPHANUM:
// opaque currencyCode[4];

@@ -961,3 +968,3 @@ //

switches: {
iso4217: "currencyCode",
currencyTypeAlphanum: "currencyCode",
},

@@ -976,4 +983,4 @@ arms: {

// {
// // NATIVE is not allowed
// case ISO4217:
// // CURRENCY_TYPE_NATIVE is not allowed
// case CURRENCY_TYPE_ALPHANUM:
// opaque currencyCode[4];

@@ -1079,5 +1086,5 @@ //

// MEMO_TYPE_TEXT = 1,
// MEMO_TYPE_ID = 2,
// MEMO_TYPE_ID = 2,
// MEMO_TYPE_HASH = 3,
// MEMO_TYPE_RETURN =4
// MEMO_TYPE_RETURN = 4
// };

@@ -1098,12 +1105,12 @@ //

// {
// case MEMO_TYPE_NONE:
// void;
// case MEMO_TYPE_TEXT:
// string text<28>;
// case MEMO_TYPE_ID:
// uint64 id;
// case MEMO_TYPE_HASH:
// Hash hash; // the hash of what to pull from the content server
// case MEMO_TYPE_RETURN:
// Hash retHash; // the hash of the tx you are rejecting
// case MEMO_TYPE_NONE:
// void;
// case MEMO_TYPE_TEXT:
// string text<28>;
// case MEMO_TYPE_ID:
// uint64 id;
// case MEMO_TYPE_HASH:
// Hash hash; // the hash of what to pull from the content server
// case MEMO_TYPE_RETURN:
// Hash retHash; // the hash of the tx you are rejecting
// };

@@ -1137,5 +1144,4 @@ //

//
// // maximum fee this transaction can collect
// // the transaction is aborted if the fee is higher
// int32 maxFee;
// // the fee the sourceAccount will pay
// int32 fee;
//

@@ -1149,3 +1155,3 @@ // // sequence number to consume in the account

//
// Memo memo;
// Memo memo;
//

@@ -1158,3 +1164,3 @@ // Operation operations<100>;

["sourceAccount", xdr.lookup("AccountId")],
["maxFee", xdr.lookup("Int32")],
["fee", xdr.lookup("Int32")],
["seqNum", xdr.lookup("SequenceNumber")],

@@ -1429,4 +1435,4 @@ ["minLedger", xdr.lookup("Uint32")],

// SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags
// SET_OPTIONS_INVALID_INFLATION = -4,// inflation account does not exist
// SET_OPTIONS_CANT_CHANGE = -5 // can no longer change this option
// SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist
// SET_OPTIONS_CANT_CHANGE = -5 // can no longer change this option
// };

@@ -1517,5 +1523,6 @@ //

// // codes considered as "failure" for the operation
// ALLOW_TRUST_MALFORMED = -1, // currency is not ISO4217
// ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
// ALLOW_TRUST_TRUST_NOT_REQUIRED = -3, // source account does not require trust
// ALLOW_TRUST_MALFORMED = -1, // currency is not CURRENCY_TYPE_ALPHANUM
// ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
// ALLOW_TRUST_TRUST_NOT_REQUIRED =
// -3, // source account does not require trust
// ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust

@@ -1927,4 +1934,4 @@ // };

// {
// NATIVE = 0,
// ISO4217 = 1
// CURRENCY_TYPE_NATIVE = 0,
// CURRENCY_TYPE_ALPHANUM = 1
// };

@@ -1934,4 +1941,4 @@ //

xdr.enum("CurrencyType", {
native: 0,
iso4217: 1,
currencyTypeNative: 0,
currencyTypeAlphanum: 1,
});

@@ -1941,10 +1948,10 @@

//
// struct ISOCurrencyIssuer
// {
// opaque currencyCode[4];
// AccountID issuer;
// };
// struct
// {
// opaque currencyCode[4];
// AccountID issuer;
// }
//
// ===========================================================================
xdr.struct("IsoCurrencyIssuer", [
xdr.struct("CurrencyAlphaNum", [
["currencyCode", xdr.opaque(4)],

@@ -1958,7 +1965,11 @@ ["issuer", xdr.lookup("AccountId")],

// {
// case NATIVE:
// case CURRENCY_TYPE_NATIVE:
// void;
//
// case ISO4217:
// ISOCurrencyIssuer isoCI;
// case CURRENCY_TYPE_ALPHANUM:
// struct
// {
// opaque currencyCode[4];
// AccountID issuer;
// } alphaNum;
//

@@ -1973,7 +1984,7 @@ // // add other currency types here in the future

switches: {
native: xdr.void(),
iso4217: "isoCi",
currencyTypeNative: xdr.void(),
currencyTypeAlphanum: "alphaNum",
},
arms: {
isoCi: xdr.lookup("IsoCurrencyIssuer"),
alphaNum: xdr.lookup("CurrencyAlphaNum"),
},

@@ -1980,0 +1991,0 @@ });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc