@cobo/cobo-waas2 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -8
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +105 -0
- package/dist/api/DevelopersWebhooksApi.js +43 -0
- package/dist/api/OAuthApi.js +6 -6
- package/dist/api/TransactionsApi.js +12 -12
- package/dist/api/WalletsApi.js +2 -2
- package/dist/api/WalletsExchangeWalletApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
- package/dist/index.js +101 -31
- package/dist/model/AddressBook.js +25 -10
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/ApiLogDetails.js +238 -0
- package/dist/model/ApiLogSummary.js +161 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +2 -2
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/ExchangeId.js +10 -0
- package/dist/model/ExtendedTokenInfo.js +17 -4
- package/dist/model/ListAddressBooks200Response.js +123 -0
- package/dist/model/MPCDelegate.js +4 -4
- package/dist/model/{RefreshToken200Response.js → RefreshToken201Response.js} +21 -21
- package/dist/model/SafeWalletDelegates.js +210 -0
- package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
- package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
- package/dist/model/TokenAssetModelType.js +61 -0
- package/dist/model/TokenBalanceBalance.js +6 -6
- package/dist/model/TokenInfo.js +11 -2
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +50 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionEvmCalldataInfo.js +177 -0
- package/dist/model/TransactionEvmContractDestination.js +16 -0
- package/dist/model/TransactionEvmContractMethod.js +136 -0
- package/dist/model/TransactionRawMessageSignDestination.js +120 -0
- package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
- package/dist/model/TransactionTokeApproval.js +17 -4
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
- package/dist/model/{WalletBalanceSnapshot.js → TriggerTestWebhookEventRequest.js} +31 -36
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AddressBook.md +8 -7
- package/docs/AddressBooksApi.md +71 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/ApiLogDetails.md +18 -0
- package/docs/ApiLogSummary.md +13 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/CoboSafeDelegate.md +2 -2
- package/docs/DevelopersWebhooksApi.md +53 -0
- package/docs/ErrorResponse.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/ExchangeId.md +4 -0
- package/docs/ExtendedTokenInfo.md +3 -2
- package/docs/ListAddressBooks200Response.md +10 -0
- package/docs/MPCDelegate.md +2 -2
- package/docs/OAuthApi.md +3 -3
- package/docs/{RefreshToken200Response.md → RefreshToken201Response.md} +1 -1
- package/docs/SafeWalletDelegates.md +14 -0
- package/docs/SafeWalletDelegatesContractCall.md +12 -0
- package/docs/SafeWalletDelegatesTransfer.md +12 -0
- package/docs/TokenAssetModelType.md +12 -0
- package/docs/TokenBalanceBalance.md +4 -4
- package/docs/TokenInfo.md +3 -2
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +4 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionEvmCalldataInfo.md +16 -0
- package/docs/TransactionEvmContractDestination.md +1 -0
- package/docs/TransactionEvmContractMethod.md +13 -0
- package/docs/TransactionRawMessageSignDestination.md +10 -0
- package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
- package/docs/TransactionSource.md +1 -1
- package/docs/TransactionTokeApproval.md +3 -2
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +7 -7
- package/docs/TransferDestination.md +2 -2
- package/docs/TriggerTestWebhookEvent201Response.md +9 -0
- package/docs/TriggerTestWebhookEventRequest.md +10 -0
- package/docs/WalletsApi.md +1 -1
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +4 -4
- package/docs/WalletsSmartContractWalletsApi.md +63 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/dist/model/BookkeepingRecord.js +0 -243
- package/docs/BookkeepingRecord.md +0 -19
- package/docs/BookkeepingSummary.md +0 -12
- package/docs/WalletBalanceSnapshot.md +0 -10
- package/docs/WalletBalanceSnapshotRecord.md +0 -13
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AddressBook = _interopRequireDefault(require("./AddressBook"));
|
|
9
|
+
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The ListAddressBooks200Response model module.
|
|
31
|
+
* @module model/ListAddressBooks200Response
|
|
32
|
+
*/
|
|
33
|
+
var ListAddressBooks200Response = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>ListAddressBooks200Response</code>.
|
|
36
|
+
* @alias module:model/ListAddressBooks200Response
|
|
37
|
+
*/
|
|
38
|
+
function ListAddressBooks200Response() {
|
|
39
|
+
_classCallCheck(this, ListAddressBooks200Response);
|
|
40
|
+
ListAddressBooks200Response.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(ListAddressBooks200Response, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj) {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>ListAddressBooks200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/ListAddressBooks200Response} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ListAddressBooks200Response} The populated <code>ListAddressBooks200Response</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "constructFromObject",
|
|
61
|
+
value: function constructFromObject(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new ListAddressBooks200Response();
|
|
64
|
+
if (data.hasOwnProperty('data')) {
|
|
65
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_AddressBook["default"]]);
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('pagination')) {
|
|
68
|
+
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Validates the JSON data with respect to <code>ListAddressBooks200Response</code>.
|
|
76
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListAddressBooks200Response</code>.
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "validateJSON",
|
|
81
|
+
value: function validateJSON(data) {
|
|
82
|
+
if (data['data']) {
|
|
83
|
+
// data not null
|
|
84
|
+
// ensure the json data is an array
|
|
85
|
+
if (!Array.isArray(data['data'])) {
|
|
86
|
+
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
|
|
87
|
+
}
|
|
88
|
+
// validate the optional field `data` (array)
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(data['data']),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var item = _step.value;
|
|
94
|
+
_AddressBook["default"].validateJSON(item);
|
|
95
|
+
}
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
;
|
|
102
|
+
}
|
|
103
|
+
// validate the optional field `pagination`
|
|
104
|
+
if (data['pagination']) {
|
|
105
|
+
// data not null
|
|
106
|
+
if (!!_Pagination["default"].validateJSON) {
|
|
107
|
+
_Pagination["default"].validateJSON(data['pagination']);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
}();
|
|
114
|
+
/**
|
|
115
|
+
* @member {Array.<module:model/AddressBook>} data
|
|
116
|
+
*/
|
|
117
|
+
ListAddressBooks200Response.prototype['data'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @member {module:model/Pagination} pagination
|
|
121
|
+
*/
|
|
122
|
+
ListAddressBooks200Response.prototype['pagination'] = undefined;
|
|
123
|
+
var _default = exports["default"] = ListAddressBooks200Response;
|
|
@@ -35,8 +35,8 @@ var MPCDelegate = /*#__PURE__*/function () {
|
|
|
35
35
|
* The information about the MPC Wallet as the Delegate.
|
|
36
36
|
* @alias module:model/MPCDelegate
|
|
37
37
|
* @param delegate_type {module:model/CoboSafeDelegateType}
|
|
38
|
-
* @param wallet_id {String} The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}).
|
|
39
|
-
* @param address {String} The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}).
|
|
38
|
+
* @param wallet_id {String} The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
|
|
39
|
+
* @param address {String} The wallet address of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
|
|
40
40
|
*/
|
|
41
41
|
function MPCDelegate(delegate_type, wallet_id, address) {
|
|
42
42
|
_classCallCheck(this, MPCDelegate);
|
|
@@ -124,13 +124,13 @@ MPCDelegate.RequiredProperties = ["delegate_type", "wallet_id", "address"];
|
|
|
124
124
|
MPCDelegate.prototype['delegate_type'] = undefined;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}).
|
|
127
|
+
* The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
|
|
128
128
|
* @member {String} wallet_id
|
|
129
129
|
*/
|
|
130
130
|
MPCDelegate.prototype['wallet_id'] = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}).
|
|
133
|
+
* The wallet address of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
|
|
134
134
|
* @member {String} address
|
|
135
135
|
*/
|
|
136
136
|
MPCDelegate.prototype['address'] = undefined;
|
|
@@ -22,17 +22,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
/**
|
|
25
|
-
* The
|
|
26
|
-
* @module model/
|
|
25
|
+
* The RefreshToken201Response model module.
|
|
26
|
+
* @module model/RefreshToken201Response
|
|
27
27
|
*/
|
|
28
|
-
var
|
|
28
|
+
var RefreshToken201Response = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
|
-
* Constructs a new <code>
|
|
31
|
-
* @alias module:model/
|
|
30
|
+
* Constructs a new <code>RefreshToken201Response</code>.
|
|
31
|
+
* @alias module:model/RefreshToken201Response
|
|
32
32
|
*/
|
|
33
|
-
function
|
|
34
|
-
_classCallCheck(this,
|
|
35
|
-
|
|
33
|
+
function RefreshToken201Response() {
|
|
34
|
+
_classCallCheck(this, RefreshToken201Response);
|
|
35
|
+
RefreshToken201Response.initialize(this);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -40,22 +40,22 @@ var RefreshToken200Response = /*#__PURE__*/function () {
|
|
|
40
40
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
41
|
* Only for internal use.
|
|
42
42
|
*/
|
|
43
|
-
return _createClass(
|
|
43
|
+
return _createClass(RefreshToken201Response, null, [{
|
|
44
44
|
key: "initialize",
|
|
45
45
|
value: function initialize(obj) {}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Constructs a <code>
|
|
48
|
+
* Constructs a <code>RefreshToken201Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
49
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
50
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
-
* @param {module:model/
|
|
52
|
-
* @return {module:model/
|
|
51
|
+
* @param {module:model/RefreshToken201Response} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/RefreshToken201Response} The populated <code>RefreshToken201Response</code> instance.
|
|
53
53
|
*/
|
|
54
54
|
}, {
|
|
55
55
|
key: "constructFromObject",
|
|
56
56
|
value: function constructFromObject(data, obj) {
|
|
57
57
|
if (data) {
|
|
58
|
-
obj = obj || new
|
|
58
|
+
obj = obj || new RefreshToken201Response();
|
|
59
59
|
if (data.hasOwnProperty('access_token')) {
|
|
60
60
|
obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String');
|
|
61
61
|
}
|
|
@@ -76,9 +76,9 @@ var RefreshToken200Response = /*#__PURE__*/function () {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>
|
|
79
|
+
* Validates the JSON data with respect to <code>RefreshToken201Response</code>.
|
|
80
80
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RefreshToken201Response</code>.
|
|
82
82
|
*/
|
|
83
83
|
}, {
|
|
84
84
|
key: "validateJSON",
|
|
@@ -107,29 +107,29 @@ var RefreshToken200Response = /*#__PURE__*/function () {
|
|
|
107
107
|
* The new Org Access Token.
|
|
108
108
|
* @member {String} access_token
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
RefreshToken201Response.prototype['access_token'] = undefined;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* The type of the tokens, which is Bearer.
|
|
114
114
|
* @member {String} token_type
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
RefreshToken201Response.prototype['token_type'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* The scope of the Org Access Token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app.
|
|
120
120
|
* @member {String} scope
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
RefreshToken201Response.prototype['scope'] = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The time in seconds in which the new Org Access Token expires.
|
|
126
126
|
* @member {Number} expires_in
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
RefreshToken201Response.prototype['expires_in'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* The Refresh Token, used to obtain another Org Access Token when the new Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change.
|
|
132
132
|
* @member {String} refresh_token
|
|
133
133
|
*/
|
|
134
|
-
|
|
135
|
-
var _default = exports["default"] =
|
|
134
|
+
RefreshToken201Response.prototype['refresh_token'] = undefined;
|
|
135
|
+
var _default = exports["default"] = RefreshToken201Response;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _EstimateFeeRequestType = _interopRequireDefault(require("./EstimateFeeRequestType"));
|
|
9
|
+
var _SafeWalletDelegatesContractCall = _interopRequireDefault(require("./SafeWalletDelegatesContractCall"));
|
|
10
|
+
var _SafeWalletDelegatesTransfer = _interopRequireDefault(require("./SafeWalletDelegatesTransfer"));
|
|
11
|
+
var _SafeWalletDelegates;
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The SafeWalletDelegates model module.
|
|
31
|
+
* @module model/SafeWalletDelegates
|
|
32
|
+
*/
|
|
33
|
+
var SafeWalletDelegates = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>SafeWalletDelegates</code>.
|
|
36
|
+
* @alias module:model/SafeWalletDelegates
|
|
37
|
+
* @param {(module:model/SafeWalletDelegatesContractCall|module:model/SafeWalletDelegatesTransfer)} instance The actual instance to initialize SafeWalletDelegates.
|
|
38
|
+
*/
|
|
39
|
+
function SafeWalletDelegates() {
|
|
40
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
41
|
+
_classCallCheck(this, SafeWalletDelegates);
|
|
42
|
+
/**
|
|
43
|
+
* Returns the JSON representation of the actual instance.
|
|
44
|
+
* @return {string}
|
|
45
|
+
*/
|
|
46
|
+
_defineProperty(this, "toJSON", function () {
|
|
47
|
+
return this.getActualInstance();
|
|
48
|
+
});
|
|
49
|
+
if (instance === null) {
|
|
50
|
+
this.actualInstance = null;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
var match = 0;
|
|
54
|
+
var errorMessages = [];
|
|
55
|
+
var discriminatorValue = instance["request_type"];
|
|
56
|
+
if (discriminatorValue) {
|
|
57
|
+
switch (discriminatorValue) {
|
|
58
|
+
case "ContractCall":
|
|
59
|
+
this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
|
|
60
|
+
match++;
|
|
61
|
+
break;
|
|
62
|
+
case "Transfer":
|
|
63
|
+
this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
|
|
64
|
+
match++;
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
if (instance instanceof _SafeWalletDelegatesContractCall["default"]) {
|
|
74
|
+
this.actualInstance = instance;
|
|
75
|
+
} else if (!!_SafeWalletDelegatesContractCall["default"].validateJSON && _SafeWalletDelegatesContractCall["default"].validateJSON(instance)) {
|
|
76
|
+
// plain JS object
|
|
77
|
+
// create SafeWalletDelegatesContractCall from JS object
|
|
78
|
+
this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
|
|
79
|
+
} else {
|
|
80
|
+
if (_SafeWalletDelegatesContractCall["default"].constructFromObject(instance)) {
|
|
81
|
+
if (!!_SafeWalletDelegatesContractCall["default"].constructFromObject(instance).toJSON) {
|
|
82
|
+
if (_SafeWalletDelegatesContractCall["default"].constructFromObject(instance).toJSON()) {
|
|
83
|
+
this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
match++;
|
|
91
|
+
} catch (err) {
|
|
92
|
+
// json data failed to deserialize into SafeWalletDelegatesContractCall
|
|
93
|
+
errorMessages.push("Failed to construct SafeWalletDelegatesContractCall: " + err);
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
if (instance instanceof _SafeWalletDelegatesTransfer["default"]) {
|
|
97
|
+
this.actualInstance = instance;
|
|
98
|
+
} else if (!!_SafeWalletDelegatesTransfer["default"].validateJSON && _SafeWalletDelegatesTransfer["default"].validateJSON(instance)) {
|
|
99
|
+
// plain JS object
|
|
100
|
+
// create SafeWalletDelegatesTransfer from JS object
|
|
101
|
+
this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
|
|
102
|
+
} else {
|
|
103
|
+
if (_SafeWalletDelegatesTransfer["default"].constructFromObject(instance)) {
|
|
104
|
+
if (!!_SafeWalletDelegatesTransfer["default"].constructFromObject(instance).toJSON) {
|
|
105
|
+
if (_SafeWalletDelegatesTransfer["default"].constructFromObject(instance).toJSON()) {
|
|
106
|
+
this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
match++;
|
|
114
|
+
} catch (err) {
|
|
115
|
+
// json data failed to deserialize into SafeWalletDelegatesTransfer
|
|
116
|
+
errorMessages.push("Failed to construct SafeWalletDelegatesTransfer: " + err);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// if (match > 1) {
|
|
120
|
+
// throw new Error("Multiple matches found constructing `SafeWalletDelegates` with oneOf schemas SafeWalletDelegatesContractCall, SafeWalletDelegatesTransfer. Input: " + JSON.stringify(instance));
|
|
121
|
+
// } else
|
|
122
|
+
if (match === 0) {
|
|
123
|
+
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
124
|
+
// throw new Error("No match found constructing `SafeWalletDelegates` with oneOf schemas SafeWalletDelegatesContractCall, SafeWalletDelegatesTransfer. Details: " +
|
|
125
|
+
// errorMessages.join(", "));
|
|
126
|
+
return;
|
|
127
|
+
} else {// only 1 match
|
|
128
|
+
// the input is valid
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Constructs a <code>SafeWalletDelegates</code> from a plain JavaScript object, optionally creating a new instance.
|
|
134
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
135
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
136
|
+
* @param {module:model/SafeWalletDelegates} obj Optional instance to populate.
|
|
137
|
+
* @return {module:model/SafeWalletDelegates} The populated <code>SafeWalletDelegates</code> instance.
|
|
138
|
+
*/
|
|
139
|
+
return _createClass(SafeWalletDelegates, [{
|
|
140
|
+
key: "getActualInstance",
|
|
141
|
+
value:
|
|
142
|
+
/**
|
|
143
|
+
* Gets the actual instance, which can be <code>SafeWalletDelegatesContractCall</code>, <code>SafeWalletDelegatesTransfer</code>.
|
|
144
|
+
* @return {(module:model/SafeWalletDelegatesContractCall|module:model/SafeWalletDelegatesTransfer)} The actual instance.
|
|
145
|
+
*/
|
|
146
|
+
function getActualInstance() {
|
|
147
|
+
return this.actualInstance;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Sets the actual instance, which can be <code>SafeWalletDelegatesContractCall</code>, <code>SafeWalletDelegatesTransfer</code>.
|
|
152
|
+
* @param {(module:model/SafeWalletDelegatesContractCall|module:model/SafeWalletDelegatesTransfer)} obj The actual instance.
|
|
153
|
+
*/
|
|
154
|
+
}, {
|
|
155
|
+
key: "setActualInstance",
|
|
156
|
+
value: function setActualInstance(obj) {
|
|
157
|
+
this.actualInstance = SafeWalletDelegates.constructFromObject(obj).getActualInstance();
|
|
158
|
+
}
|
|
159
|
+
}], [{
|
|
160
|
+
key: "constructFromObject",
|
|
161
|
+
value: function constructFromObject(data, obj) {
|
|
162
|
+
return new SafeWalletDelegates(data);
|
|
163
|
+
}
|
|
164
|
+
}]);
|
|
165
|
+
}();
|
|
166
|
+
/**
|
|
167
|
+
* @member {module:model/EstimateFeeRequestType} request_type
|
|
168
|
+
*/
|
|
169
|
+
_SafeWalletDelegates = SafeWalletDelegates;
|
|
170
|
+
/**
|
|
171
|
+
* Create an instance of SafeWalletDelegates from a JSON string.
|
|
172
|
+
* @param {string} json_string JSON string.
|
|
173
|
+
* @return {module:model/SafeWalletDelegates} An instance of SafeWalletDelegates.
|
|
174
|
+
*/
|
|
175
|
+
_defineProperty(SafeWalletDelegates, "fromJSON", function (json_string) {
|
|
176
|
+
return _SafeWalletDelegates.constructFromObject(JSON.parse(json_string));
|
|
177
|
+
});
|
|
178
|
+
SafeWalletDelegates.prototype['request_type'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The address of the recipient.
|
|
182
|
+
* @member {String} address
|
|
183
|
+
*/
|
|
184
|
+
SafeWalletDelegates.prototype['address'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
188
|
+
* @member {String} value
|
|
189
|
+
*/
|
|
190
|
+
SafeWalletDelegates.prototype['value'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The data that is used to invoke a specific function or method within the specified contract at the destination address.
|
|
194
|
+
* @member {String} calldata
|
|
195
|
+
*/
|
|
196
|
+
SafeWalletDelegates.prototype['calldata'] = undefined;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The token ID.
|
|
200
|
+
* @member {String} token_id
|
|
201
|
+
*/
|
|
202
|
+
SafeWalletDelegates.prototype['token_id'] = undefined;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
206
|
+
* @member {String} amount
|
|
207
|
+
*/
|
|
208
|
+
SafeWalletDelegates.prototype['amount'] = undefined;
|
|
209
|
+
SafeWalletDelegates.OneOf = ["SafeWalletDelegatesContractCall", "SafeWalletDelegatesTransfer"];
|
|
210
|
+
var _default = exports["default"] = SafeWalletDelegates;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _EstimateFeeRequestType = _interopRequireDefault(require("./EstimateFeeRequestType"));
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -25,21 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
26
|
*
|
|
26
27
|
*/
|
|
27
28
|
/**
|
|
28
|
-
* The
|
|
29
|
-
* @module model/
|
|
29
|
+
* The SafeWalletDelegatesContractCall model module.
|
|
30
|
+
* @module model/SafeWalletDelegatesContractCall
|
|
30
31
|
*/
|
|
31
|
-
var
|
|
32
|
+
var SafeWalletDelegatesContractCall = /*#__PURE__*/function () {
|
|
32
33
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
*
|
|
35
|
-
* @
|
|
36
|
-
* @param total_transaction_count {Number} Total transaction count.
|
|
37
|
-
* @param total_inflow_value {String} The USD value of the inflow.
|
|
38
|
-
* @param total_outflow_value {String} The USD value of the outflow.
|
|
34
|
+
* Constructs a new <code>SafeWalletDelegatesContractCall</code>.
|
|
35
|
+
* @alias module:model/SafeWalletDelegatesContractCall
|
|
36
|
+
* @param request_type {module:model/EstimateFeeRequestType}
|
|
39
37
|
*/
|
|
40
|
-
function
|
|
41
|
-
_classCallCheck(this,
|
|
42
|
-
|
|
38
|
+
function SafeWalletDelegatesContractCall(request_type) {
|
|
39
|
+
_classCallCheck(this, SafeWalletDelegatesContractCall);
|
|
40
|
+
SafeWalletDelegatesContractCall.initialize(this, request_type);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
/**
|
|
@@ -47,52 +45,50 @@ var BookkeepingSummary = /*#__PURE__*/function () {
|
|
|
47
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
46
|
* Only for internal use.
|
|
49
47
|
*/
|
|
50
|
-
return _createClass(
|
|
48
|
+
return _createClass(SafeWalletDelegatesContractCall, null, [{
|
|
51
49
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj,
|
|
53
|
-
obj['
|
|
54
|
-
obj['total_inflow_value'] = total_inflow_value;
|
|
55
|
-
obj['total_outflow_value'] = total_outflow_value;
|
|
50
|
+
value: function initialize(obj, request_type) {
|
|
51
|
+
obj['request_type'] = request_type;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
/**
|
|
59
|
-
* Constructs a <code>
|
|
55
|
+
* Constructs a <code>SafeWalletDelegatesContractCall</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
56
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
57
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
-
* @param {module:model/
|
|
63
|
-
* @return {module:model/
|
|
58
|
+
* @param {module:model/SafeWalletDelegatesContractCall} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/SafeWalletDelegatesContractCall} The populated <code>SafeWalletDelegatesContractCall</code> instance.
|
|
64
60
|
*/
|
|
65
61
|
}, {
|
|
66
62
|
key: "constructFromObject",
|
|
67
63
|
value: function constructFromObject(data, obj) {
|
|
68
64
|
if (data) {
|
|
69
|
-
obj = obj || new
|
|
70
|
-
if (data.hasOwnProperty('
|
|
71
|
-
obj['
|
|
65
|
+
obj = obj || new SafeWalletDelegatesContractCall();
|
|
66
|
+
if (data.hasOwnProperty('request_type')) {
|
|
67
|
+
obj['request_type'] = _EstimateFeeRequestType["default"].constructFromObject(data['request_type']);
|
|
72
68
|
}
|
|
73
|
-
if (data.hasOwnProperty('
|
|
74
|
-
obj['
|
|
69
|
+
if (data.hasOwnProperty('address')) {
|
|
70
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
75
71
|
}
|
|
76
|
-
if (data.hasOwnProperty('
|
|
77
|
-
obj['
|
|
72
|
+
if (data.hasOwnProperty('value')) {
|
|
73
|
+
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
|
|
78
74
|
}
|
|
79
|
-
if (data.hasOwnProperty('
|
|
80
|
-
obj['
|
|
75
|
+
if (data.hasOwnProperty('calldata')) {
|
|
76
|
+
obj['calldata'] = _ApiClient["default"].convertToType(data['calldata'], 'String');
|
|
81
77
|
}
|
|
82
78
|
}
|
|
83
79
|
return obj;
|
|
84
80
|
}
|
|
85
81
|
|
|
86
82
|
/**
|
|
87
|
-
* Validates the JSON data with respect to <code>
|
|
83
|
+
* Validates the JSON data with respect to <code>SafeWalletDelegatesContractCall</code>.
|
|
88
84
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SafeWalletDelegatesContractCall</code>.
|
|
90
86
|
*/
|
|
91
87
|
}, {
|
|
92
88
|
key: "validateJSON",
|
|
93
89
|
value: function validateJSON(data) {
|
|
94
90
|
// check to make sure all required properties are present in the JSON string
|
|
95
|
-
var _iterator = _createForOfIteratorHelper(
|
|
91
|
+
var _iterator = _createForOfIteratorHelper(SafeWalletDelegatesContractCall.RequiredProperties),
|
|
96
92
|
_step;
|
|
97
93
|
try {
|
|
98
94
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -107,44 +103,43 @@ var BookkeepingSummary = /*#__PURE__*/function () {
|
|
|
107
103
|
} finally {
|
|
108
104
|
_iterator.f();
|
|
109
105
|
}
|
|
110
|
-
if (data['
|
|
111
|
-
throw new Error("Expected the field `
|
|
106
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
107
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
112
108
|
}
|
|
113
109
|
// ensure the json data is a string
|
|
114
|
-
if (data['
|
|
115
|
-
throw new Error("Expected the field `
|
|
110
|
+
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
|
|
116
112
|
}
|
|
117
113
|
// ensure the json data is a string
|
|
118
|
-
if (data['
|
|
119
|
-
throw new Error("Expected the field `
|
|
114
|
+
if (data['calldata'] && !(typeof data['calldata'] === 'string' || data['calldata'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `calldata` to be a primitive type in the JSON string but got " + data['calldata']);
|
|
120
116
|
}
|
|
121
117
|
return true;
|
|
122
118
|
}
|
|
123
119
|
}]);
|
|
124
120
|
}();
|
|
125
|
-
|
|
121
|
+
SafeWalletDelegatesContractCall.RequiredProperties = ["request_type"];
|
|
126
122
|
|
|
127
123
|
/**
|
|
128
|
-
*
|
|
129
|
-
* @member {Number} total_transaction_count
|
|
124
|
+
* @member {module:model/EstimateFeeRequestType} request_type
|
|
130
125
|
*/
|
|
131
|
-
|
|
126
|
+
SafeWalletDelegatesContractCall.prototype['request_type'] = undefined;
|
|
132
127
|
|
|
133
128
|
/**
|
|
134
|
-
* The
|
|
135
|
-
* @member {String}
|
|
129
|
+
* The destination address.
|
|
130
|
+
* @member {String} address
|
|
136
131
|
*/
|
|
137
|
-
|
|
132
|
+
SafeWalletDelegatesContractCall.prototype['address'] = undefined;
|
|
138
133
|
|
|
139
134
|
/**
|
|
140
|
-
* The
|
|
141
|
-
* @member {String}
|
|
135
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
136
|
+
* @member {String} value
|
|
142
137
|
*/
|
|
143
|
-
|
|
138
|
+
SafeWalletDelegatesContractCall.prototype['value'] = undefined;
|
|
144
139
|
|
|
145
140
|
/**
|
|
146
|
-
* The
|
|
147
|
-
* @member {String}
|
|
141
|
+
* The data that is used to invoke a specific function or method within the specified contract at the destination address.
|
|
142
|
+
* @member {String} calldata
|
|
148
143
|
*/
|
|
149
|
-
|
|
150
|
-
var _default = exports["default"] =
|
|
144
|
+
SafeWalletDelegatesContractCall.prototype['calldata'] = undefined;
|
|
145
|
+
var _default = exports["default"] = SafeWalletDelegatesContractCall;
|