@cobo/cobo-waas2 1.2.0 → 1.2.1
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 +1 -1
- package/dist/ApiClient.js +1 -1
- package/dist/PreRequestScript.js +640 -0
- package/dist/model/CoboSafeDelegate.js +27 -2
- package/dist/model/ContractCallDestination.js +23 -2
- package/dist/model/ContractCallSource.js +41 -4
- package/dist/model/CreateSmartContractWalletParams.js +23 -2
- package/dist/model/CreateStakeActivityExtra.js +51 -6
- package/dist/model/CreateWalletParams.js +51 -6
- package/dist/model/CreatedWalletInfo.js +51 -6
- package/dist/model/EstimateFeeParams.js +37 -4
- package/dist/model/EstimatedFee.js +65 -8
- package/dist/model/FeeRate.js +65 -8
- package/dist/model/MessageSignDestination.js +37 -4
- package/dist/model/MessageSignSource.js +27 -2
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +20 -4
- package/dist/model/SmartContractWalletInfo.js +23 -2
- package/dist/model/StakingSource.js +41 -4
- package/dist/model/TransactionDestination.js +107 -14
- package/dist/model/TransactionFee.js +65 -8
- package/dist/model/TransactionRbfSource.js +27 -2
- package/dist/model/TransactionRequestFee.js +65 -8
- package/dist/model/TransactionResult.js +23 -2
- package/dist/model/TransactionSource.js +115 -14
- package/dist/model/TransferDestination.js +37 -4
- package/dist/model/TransferSource.js +73 -8
- package/dist/model/UpdateWalletParams.js +65 -8
- package/dist/model/WalletInfo.js +65 -8
- package/dist/model/WebhookEventData.js +37 -4
- package/package.json +1 -1
|
@@ -51,6 +51,23 @@ var CoboSafeDelegate = /*#__PURE__*/function () {
|
|
|
51
51
|
}
|
|
52
52
|
var match = 0;
|
|
53
53
|
var errorMessages = [];
|
|
54
|
+
var discriminatorValue = instance["delegate_type"];
|
|
55
|
+
if (discriminatorValue) {
|
|
56
|
+
switch (discriminatorValue) {
|
|
57
|
+
case "Org-Controlled":
|
|
58
|
+
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
59
|
+
match++;
|
|
60
|
+
break;
|
|
61
|
+
case "User-Controlled":
|
|
62
|
+
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
63
|
+
match++;
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
54
71
|
try {
|
|
55
72
|
if (instance instanceof _MPCDelegate["default"]) {
|
|
56
73
|
this.actualInstance = instance;
|
|
@@ -58,8 +75,16 @@ var CoboSafeDelegate = /*#__PURE__*/function () {
|
|
|
58
75
|
// plain JS object
|
|
59
76
|
// create MPCDelegate from JS object
|
|
60
77
|
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
61
|
-
} else
|
|
62
|
-
|
|
78
|
+
} else {
|
|
79
|
+
if (_MPCDelegate["default"].constructFromObject(instance)) {
|
|
80
|
+
if (!!_MPCDelegate["default"].constructFromObject(instance).toJSON) {
|
|
81
|
+
if (_MPCDelegate["default"].constructFromObject(instance).toJSON()) {
|
|
82
|
+
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
63
88
|
}
|
|
64
89
|
match++;
|
|
65
90
|
} catch (err) {
|
|
@@ -51,6 +51,19 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
51
51
|
}
|
|
52
52
|
var match = 0;
|
|
53
53
|
var errorMessages = [];
|
|
54
|
+
var discriminatorValue = instance["destination_type"];
|
|
55
|
+
if (discriminatorValue) {
|
|
56
|
+
switch (discriminatorValue) {
|
|
57
|
+
case "EVM":
|
|
58
|
+
this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
|
|
59
|
+
match++;
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
54
67
|
try {
|
|
55
68
|
if (instance instanceof _EvmContractCallDestination["default"]) {
|
|
56
69
|
this.actualInstance = instance;
|
|
@@ -58,8 +71,16 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
58
71
|
// plain JS object
|
|
59
72
|
// create EvmContractCallDestination from JS object
|
|
60
73
|
this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
|
|
61
|
-
} else
|
|
62
|
-
|
|
74
|
+
} else {
|
|
75
|
+
if (_EvmContractCallDestination["default"].constructFromObject(instance)) {
|
|
76
|
+
if (!!_EvmContractCallDestination["default"].constructFromObject(instance).toJSON) {
|
|
77
|
+
if (_EvmContractCallDestination["default"].constructFromObject(instance).toJSON()) {
|
|
78
|
+
this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
63
84
|
}
|
|
64
85
|
match++;
|
|
65
86
|
} catch (err) {
|
|
@@ -53,6 +53,27 @@ var ContractCallSource = /*#__PURE__*/function () {
|
|
|
53
53
|
}
|
|
54
54
|
var match = 0;
|
|
55
55
|
var errorMessages = [];
|
|
56
|
+
var discriminatorValue = instance["source_type"];
|
|
57
|
+
if (discriminatorValue) {
|
|
58
|
+
switch (discriminatorValue) {
|
|
59
|
+
case "Org-Controlled":
|
|
60
|
+
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
61
|
+
match++;
|
|
62
|
+
break;
|
|
63
|
+
case "Safe{Wallet}":
|
|
64
|
+
this.actualInstance = _SafeContractCallSource["default"].constructFromObject(instance);
|
|
65
|
+
match++;
|
|
66
|
+
break;
|
|
67
|
+
case "User-Controlled":
|
|
68
|
+
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
69
|
+
match++;
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
56
77
|
try {
|
|
57
78
|
if (instance instanceof _MpcContractCallSource["default"]) {
|
|
58
79
|
this.actualInstance = instance;
|
|
@@ -60,8 +81,16 @@ var ContractCallSource = /*#__PURE__*/function () {
|
|
|
60
81
|
// plain JS object
|
|
61
82
|
// create MpcContractCallSource from JS object
|
|
62
83
|
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
63
|
-
} else
|
|
64
|
-
|
|
84
|
+
} else {
|
|
85
|
+
if (_MpcContractCallSource["default"].constructFromObject(instance)) {
|
|
86
|
+
if (!!_MpcContractCallSource["default"].constructFromObject(instance).toJSON) {
|
|
87
|
+
if (_MpcContractCallSource["default"].constructFromObject(instance).toJSON()) {
|
|
88
|
+
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
89
|
+
}
|
|
90
|
+
} else {
|
|
91
|
+
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
65
94
|
}
|
|
66
95
|
match++;
|
|
67
96
|
} catch (err) {
|
|
@@ -75,8 +104,16 @@ var ContractCallSource = /*#__PURE__*/function () {
|
|
|
75
104
|
// plain JS object
|
|
76
105
|
// create SafeContractCallSource from JS object
|
|
77
106
|
this.actualInstance = _SafeContractCallSource["default"].constructFromObject(instance);
|
|
78
|
-
} else
|
|
79
|
-
|
|
107
|
+
} else {
|
|
108
|
+
if (_SafeContractCallSource["default"].constructFromObject(instance)) {
|
|
109
|
+
if (!!_SafeContractCallSource["default"].constructFromObject(instance).toJSON) {
|
|
110
|
+
if (_SafeContractCallSource["default"].constructFromObject(instance).toJSON()) {
|
|
111
|
+
this.actualInstance = _SafeContractCallSource["default"].constructFromObject(instance);
|
|
112
|
+
}
|
|
113
|
+
} else {
|
|
114
|
+
this.actualInstance = _SafeContractCallSource["default"].constructFromObject(instance);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
80
117
|
}
|
|
81
118
|
match++;
|
|
82
119
|
} catch (err) {
|
|
@@ -54,6 +54,19 @@ var CreateSmartContractWalletParams = /*#__PURE__*/function () {
|
|
|
54
54
|
}
|
|
55
55
|
var match = 0;
|
|
56
56
|
var errorMessages = [];
|
|
57
|
+
var discriminatorValue = instance["smart_contract_wallet_type"];
|
|
58
|
+
if (discriminatorValue) {
|
|
59
|
+
switch (discriminatorValue) {
|
|
60
|
+
case "Safe":
|
|
61
|
+
this.actualInstance = _CreateSafeWalletParams["default"].constructFromObject(instance);
|
|
62
|
+
match++;
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
57
70
|
try {
|
|
58
71
|
if (instance instanceof _CreateSafeWalletParams["default"]) {
|
|
59
72
|
this.actualInstance = instance;
|
|
@@ -61,8 +74,16 @@ var CreateSmartContractWalletParams = /*#__PURE__*/function () {
|
|
|
61
74
|
// plain JS object
|
|
62
75
|
// create CreateSafeWalletParams from JS object
|
|
63
76
|
this.actualInstance = _CreateSafeWalletParams["default"].constructFromObject(instance);
|
|
64
|
-
} else
|
|
65
|
-
|
|
77
|
+
} else {
|
|
78
|
+
if (_CreateSafeWalletParams["default"].constructFromObject(instance)) {
|
|
79
|
+
if (!!_CreateSafeWalletParams["default"].constructFromObject(instance).toJSON) {
|
|
80
|
+
if (_CreateSafeWalletParams["default"].constructFromObject(instance).toJSON()) {
|
|
81
|
+
this.actualInstance = _CreateSafeWalletParams["default"].constructFromObject(instance);
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
this.actualInstance = _CreateSafeWalletParams["default"].constructFromObject(instance);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
66
87
|
}
|
|
67
88
|
match++;
|
|
68
89
|
} catch (err) {
|
|
@@ -53,6 +53,27 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
53
53
|
}
|
|
54
54
|
var match = 0;
|
|
55
55
|
var errorMessages = [];
|
|
56
|
+
var discriminatorValue = instance["pool_type"];
|
|
57
|
+
if (discriminatorValue) {
|
|
58
|
+
switch (discriminatorValue) {
|
|
59
|
+
case "Babylon":
|
|
60
|
+
this.actualInstance = _BabylonStakeExtra["default"].constructFromObject(instance);
|
|
61
|
+
match++;
|
|
62
|
+
break;
|
|
63
|
+
case "EigenLayerLST":
|
|
64
|
+
this.actualInstance = _EigenLayerNativeStakeExtra["default"].constructFromObject(instance);
|
|
65
|
+
match++;
|
|
66
|
+
break;
|
|
67
|
+
case "EigenLayerNativeETH":
|
|
68
|
+
this.actualInstance = _EigenLayerLstStakeExtra["default"].constructFromObject(instance);
|
|
69
|
+
match++;
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
56
77
|
try {
|
|
57
78
|
if (instance instanceof _BabylonStakeExtra["default"]) {
|
|
58
79
|
this.actualInstance = instance;
|
|
@@ -60,8 +81,16 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
60
81
|
// plain JS object
|
|
61
82
|
// create BabylonStakeExtra from JS object
|
|
62
83
|
this.actualInstance = _BabylonStakeExtra["default"].constructFromObject(instance);
|
|
63
|
-
} else
|
|
64
|
-
|
|
84
|
+
} else {
|
|
85
|
+
if (_BabylonStakeExtra["default"].constructFromObject(instance)) {
|
|
86
|
+
if (!!_BabylonStakeExtra["default"].constructFromObject(instance).toJSON) {
|
|
87
|
+
if (_BabylonStakeExtra["default"].constructFromObject(instance).toJSON()) {
|
|
88
|
+
this.actualInstance = _BabylonStakeExtra["default"].constructFromObject(instance);
|
|
89
|
+
}
|
|
90
|
+
} else {
|
|
91
|
+
this.actualInstance = _BabylonStakeExtra["default"].constructFromObject(instance);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
65
94
|
}
|
|
66
95
|
match++;
|
|
67
96
|
} catch (err) {
|
|
@@ -75,8 +104,16 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
75
104
|
// plain JS object
|
|
76
105
|
// create EigenLayerLstStakeExtra from JS object
|
|
77
106
|
this.actualInstance = _EigenLayerLstStakeExtra["default"].constructFromObject(instance);
|
|
78
|
-
} else
|
|
79
|
-
|
|
107
|
+
} else {
|
|
108
|
+
if (_EigenLayerLstStakeExtra["default"].constructFromObject(instance)) {
|
|
109
|
+
if (!!_EigenLayerLstStakeExtra["default"].constructFromObject(instance).toJSON) {
|
|
110
|
+
if (_EigenLayerLstStakeExtra["default"].constructFromObject(instance).toJSON()) {
|
|
111
|
+
this.actualInstance = _EigenLayerLstStakeExtra["default"].constructFromObject(instance);
|
|
112
|
+
}
|
|
113
|
+
} else {
|
|
114
|
+
this.actualInstance = _EigenLayerLstStakeExtra["default"].constructFromObject(instance);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
80
117
|
}
|
|
81
118
|
match++;
|
|
82
119
|
} catch (err) {
|
|
@@ -90,8 +127,16 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
90
127
|
// plain JS object
|
|
91
128
|
// create EigenLayerNativeStakeExtra from JS object
|
|
92
129
|
this.actualInstance = _EigenLayerNativeStakeExtra["default"].constructFromObject(instance);
|
|
93
|
-
} else
|
|
94
|
-
|
|
130
|
+
} else {
|
|
131
|
+
if (_EigenLayerNativeStakeExtra["default"].constructFromObject(instance)) {
|
|
132
|
+
if (!!_EigenLayerNativeStakeExtra["default"].constructFromObject(instance).toJSON) {
|
|
133
|
+
if (_EigenLayerNativeStakeExtra["default"].constructFromObject(instance).toJSON()) {
|
|
134
|
+
this.actualInstance = _EigenLayerNativeStakeExtra["default"].constructFromObject(instance);
|
|
135
|
+
}
|
|
136
|
+
} else {
|
|
137
|
+
this.actualInstance = _EigenLayerNativeStakeExtra["default"].constructFromObject(instance);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
95
140
|
}
|
|
96
141
|
match++;
|
|
97
142
|
} catch (err) {
|
|
@@ -55,6 +55,27 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
var match = 0;
|
|
57
57
|
var errorMessages = [];
|
|
58
|
+
var discriminatorValue = instance["wallet_type"];
|
|
59
|
+
if (discriminatorValue) {
|
|
60
|
+
switch (discriminatorValue) {
|
|
61
|
+
case "Custodial":
|
|
62
|
+
this.actualInstance = _CreateCustodialWalletParams["default"].constructFromObject(instance);
|
|
63
|
+
match++;
|
|
64
|
+
break;
|
|
65
|
+
case "Exchange":
|
|
66
|
+
this.actualInstance = _CreateExchangeWalletParams["default"].constructFromObject(instance);
|
|
67
|
+
match++;
|
|
68
|
+
break;
|
|
69
|
+
case "MPC":
|
|
70
|
+
this.actualInstance = _CreateMpcWalletParams["default"].constructFromObject(instance);
|
|
71
|
+
match++;
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
58
79
|
try {
|
|
59
80
|
if (instance instanceof _CreateCustodialWalletParams["default"]) {
|
|
60
81
|
this.actualInstance = instance;
|
|
@@ -62,8 +83,16 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
62
83
|
// plain JS object
|
|
63
84
|
// create CreateCustodialWalletParams from JS object
|
|
64
85
|
this.actualInstance = _CreateCustodialWalletParams["default"].constructFromObject(instance);
|
|
65
|
-
} else
|
|
66
|
-
|
|
86
|
+
} else {
|
|
87
|
+
if (_CreateCustodialWalletParams["default"].constructFromObject(instance)) {
|
|
88
|
+
if (!!_CreateCustodialWalletParams["default"].constructFromObject(instance).toJSON) {
|
|
89
|
+
if (_CreateCustodialWalletParams["default"].constructFromObject(instance).toJSON()) {
|
|
90
|
+
this.actualInstance = _CreateCustodialWalletParams["default"].constructFromObject(instance);
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
this.actualInstance = _CreateCustodialWalletParams["default"].constructFromObject(instance);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
67
96
|
}
|
|
68
97
|
match++;
|
|
69
98
|
} catch (err) {
|
|
@@ -77,8 +106,16 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
77
106
|
// plain JS object
|
|
78
107
|
// create CreateMpcWalletParams from JS object
|
|
79
108
|
this.actualInstance = _CreateMpcWalletParams["default"].constructFromObject(instance);
|
|
80
|
-
} else
|
|
81
|
-
|
|
109
|
+
} else {
|
|
110
|
+
if (_CreateMpcWalletParams["default"].constructFromObject(instance)) {
|
|
111
|
+
if (!!_CreateMpcWalletParams["default"].constructFromObject(instance).toJSON) {
|
|
112
|
+
if (_CreateMpcWalletParams["default"].constructFromObject(instance).toJSON()) {
|
|
113
|
+
this.actualInstance = _CreateMpcWalletParams["default"].constructFromObject(instance);
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
this.actualInstance = _CreateMpcWalletParams["default"].constructFromObject(instance);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
82
119
|
}
|
|
83
120
|
match++;
|
|
84
121
|
} catch (err) {
|
|
@@ -92,8 +129,16 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
92
129
|
// plain JS object
|
|
93
130
|
// create CreateExchangeWalletParams from JS object
|
|
94
131
|
this.actualInstance = _CreateExchangeWalletParams["default"].constructFromObject(instance);
|
|
95
|
-
} else
|
|
96
|
-
|
|
132
|
+
} else {
|
|
133
|
+
if (_CreateExchangeWalletParams["default"].constructFromObject(instance)) {
|
|
134
|
+
if (!!_CreateExchangeWalletParams["default"].constructFromObject(instance).toJSON) {
|
|
135
|
+
if (_CreateExchangeWalletParams["default"].constructFromObject(instance).toJSON()) {
|
|
136
|
+
this.actualInstance = _CreateExchangeWalletParams["default"].constructFromObject(instance);
|
|
137
|
+
}
|
|
138
|
+
} else {
|
|
139
|
+
this.actualInstance = _CreateExchangeWalletParams["default"].constructFromObject(instance);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
97
142
|
}
|
|
98
143
|
match++;
|
|
99
144
|
} catch (err) {
|
|
@@ -55,6 +55,27 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
var match = 0;
|
|
57
57
|
var errorMessages = [];
|
|
58
|
+
var discriminatorValue = instance["wallet_type"];
|
|
59
|
+
if (discriminatorValue) {
|
|
60
|
+
switch (discriminatorValue) {
|
|
61
|
+
case "Custodial":
|
|
62
|
+
this.actualInstance = _CustodialWalletInfo["default"].constructFromObject(instance);
|
|
63
|
+
match++;
|
|
64
|
+
break;
|
|
65
|
+
case "Exchange":
|
|
66
|
+
this.actualInstance = _ExchangeWalletInfo["default"].constructFromObject(instance);
|
|
67
|
+
match++;
|
|
68
|
+
break;
|
|
69
|
+
case "MPC":
|
|
70
|
+
this.actualInstance = _MPCWalletInfo["default"].constructFromObject(instance);
|
|
71
|
+
match++;
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
58
79
|
try {
|
|
59
80
|
if (instance instanceof _CustodialWalletInfo["default"]) {
|
|
60
81
|
this.actualInstance = instance;
|
|
@@ -62,8 +83,16 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
62
83
|
// plain JS object
|
|
63
84
|
// create CustodialWalletInfo from JS object
|
|
64
85
|
this.actualInstance = _CustodialWalletInfo["default"].constructFromObject(instance);
|
|
65
|
-
} else
|
|
66
|
-
|
|
86
|
+
} else {
|
|
87
|
+
if (_CustodialWalletInfo["default"].constructFromObject(instance)) {
|
|
88
|
+
if (!!_CustodialWalletInfo["default"].constructFromObject(instance).toJSON) {
|
|
89
|
+
if (_CustodialWalletInfo["default"].constructFromObject(instance).toJSON()) {
|
|
90
|
+
this.actualInstance = _CustodialWalletInfo["default"].constructFromObject(instance);
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
this.actualInstance = _CustodialWalletInfo["default"].constructFromObject(instance);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
67
96
|
}
|
|
68
97
|
match++;
|
|
69
98
|
} catch (err) {
|
|
@@ -77,8 +106,16 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
77
106
|
// plain JS object
|
|
78
107
|
// create MPCWalletInfo from JS object
|
|
79
108
|
this.actualInstance = _MPCWalletInfo["default"].constructFromObject(instance);
|
|
80
|
-
} else
|
|
81
|
-
|
|
109
|
+
} else {
|
|
110
|
+
if (_MPCWalletInfo["default"].constructFromObject(instance)) {
|
|
111
|
+
if (!!_MPCWalletInfo["default"].constructFromObject(instance).toJSON) {
|
|
112
|
+
if (_MPCWalletInfo["default"].constructFromObject(instance).toJSON()) {
|
|
113
|
+
this.actualInstance = _MPCWalletInfo["default"].constructFromObject(instance);
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
this.actualInstance = _MPCWalletInfo["default"].constructFromObject(instance);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
82
119
|
}
|
|
83
120
|
match++;
|
|
84
121
|
} catch (err) {
|
|
@@ -92,8 +129,16 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
92
129
|
// plain JS object
|
|
93
130
|
// create ExchangeWalletInfo from JS object
|
|
94
131
|
this.actualInstance = _ExchangeWalletInfo["default"].constructFromObject(instance);
|
|
95
|
-
} else
|
|
96
|
-
|
|
132
|
+
} else {
|
|
133
|
+
if (_ExchangeWalletInfo["default"].constructFromObject(instance)) {
|
|
134
|
+
if (!!_ExchangeWalletInfo["default"].constructFromObject(instance).toJSON) {
|
|
135
|
+
if (_ExchangeWalletInfo["default"].constructFromObject(instance).toJSON()) {
|
|
136
|
+
this.actualInstance = _ExchangeWalletInfo["default"].constructFromObject(instance);
|
|
137
|
+
}
|
|
138
|
+
} else {
|
|
139
|
+
this.actualInstance = _ExchangeWalletInfo["default"].constructFromObject(instance);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
97
142
|
}
|
|
98
143
|
match++;
|
|
99
144
|
} catch (err) {
|
|
@@ -55,6 +55,23 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
var match = 0;
|
|
57
57
|
var errorMessages = [];
|
|
58
|
+
var discriminatorValue = instance["request_type"];
|
|
59
|
+
if (discriminatorValue) {
|
|
60
|
+
switch (discriminatorValue) {
|
|
61
|
+
case "Call":
|
|
62
|
+
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
63
|
+
match++;
|
|
64
|
+
break;
|
|
65
|
+
case "Transfer":
|
|
66
|
+
this.actualInstance = _EstimateTransferFeeParams["default"].constructFromObject(instance);
|
|
67
|
+
match++;
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
58
75
|
try {
|
|
59
76
|
if (instance instanceof _EstimateTransferFeeParams["default"]) {
|
|
60
77
|
this.actualInstance = instance;
|
|
@@ -62,8 +79,16 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
62
79
|
// plain JS object
|
|
63
80
|
// create EstimateTransferFeeParams from JS object
|
|
64
81
|
this.actualInstance = _EstimateTransferFeeParams["default"].constructFromObject(instance);
|
|
65
|
-
} else
|
|
66
|
-
|
|
82
|
+
} else {
|
|
83
|
+
if (_EstimateTransferFeeParams["default"].constructFromObject(instance)) {
|
|
84
|
+
if (!!_EstimateTransferFeeParams["default"].constructFromObject(instance).toJSON) {
|
|
85
|
+
if (_EstimateTransferFeeParams["default"].constructFromObject(instance).toJSON()) {
|
|
86
|
+
this.actualInstance = _EstimateTransferFeeParams["default"].constructFromObject(instance);
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
this.actualInstance = _EstimateTransferFeeParams["default"].constructFromObject(instance);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
67
92
|
}
|
|
68
93
|
match++;
|
|
69
94
|
} catch (err) {
|
|
@@ -77,8 +102,16 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
77
102
|
// plain JS object
|
|
78
103
|
// create EstimateContractCallFeeParams from JS object
|
|
79
104
|
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
80
|
-
} else
|
|
81
|
-
|
|
105
|
+
} else {
|
|
106
|
+
if (_EstimateContractCallFeeParams["default"].constructFromObject(instance)) {
|
|
107
|
+
if (!!_EstimateContractCallFeeParams["default"].constructFromObject(instance).toJSON) {
|
|
108
|
+
if (_EstimateContractCallFeeParams["default"].constructFromObject(instance).toJSON()) {
|
|
109
|
+
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
82
115
|
}
|
|
83
116
|
match++;
|
|
84
117
|
} catch (err) {
|
|
@@ -55,6 +55,31 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
var match = 0;
|
|
57
57
|
var errorMessages = [];
|
|
58
|
+
var discriminatorValue = instance["fee_type"];
|
|
59
|
+
if (discriminatorValue) {
|
|
60
|
+
switch (discriminatorValue) {
|
|
61
|
+
case "EVM_EIP_1559":
|
|
62
|
+
this.actualInstance = _EstimatedEvmEip1559Fee["default"].constructFromObject(instance);
|
|
63
|
+
match++;
|
|
64
|
+
break;
|
|
65
|
+
case "EVM_Legacy":
|
|
66
|
+
this.actualInstance = _EstimatedEvmLegacyFee["default"].constructFromObject(instance);
|
|
67
|
+
match++;
|
|
68
|
+
break;
|
|
69
|
+
case "Fixed":
|
|
70
|
+
this.actualInstance = _EstimatedFixedFee["default"].constructFromObject(instance);
|
|
71
|
+
match++;
|
|
72
|
+
break;
|
|
73
|
+
case "UTXO":
|
|
74
|
+
this.actualInstance = _EstimatedUtxoFee["default"].constructFromObject(instance);
|
|
75
|
+
match++;
|
|
76
|
+
break;
|
|
77
|
+
default:
|
|
78
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
58
83
|
try {
|
|
59
84
|
if (instance instanceof _EstimatedFixedFee["default"]) {
|
|
60
85
|
this.actualInstance = instance;
|
|
@@ -62,8 +87,16 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
62
87
|
// plain JS object
|
|
63
88
|
// create EstimatedFixedFee from JS object
|
|
64
89
|
this.actualInstance = _EstimatedFixedFee["default"].constructFromObject(instance);
|
|
65
|
-
} else
|
|
66
|
-
|
|
90
|
+
} else {
|
|
91
|
+
if (_EstimatedFixedFee["default"].constructFromObject(instance)) {
|
|
92
|
+
if (!!_EstimatedFixedFee["default"].constructFromObject(instance).toJSON) {
|
|
93
|
+
if (_EstimatedFixedFee["default"].constructFromObject(instance).toJSON()) {
|
|
94
|
+
this.actualInstance = _EstimatedFixedFee["default"].constructFromObject(instance);
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
this.actualInstance = _EstimatedFixedFee["default"].constructFromObject(instance);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
67
100
|
}
|
|
68
101
|
match++;
|
|
69
102
|
} catch (err) {
|
|
@@ -77,8 +110,16 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
77
110
|
// plain JS object
|
|
78
111
|
// create EstimatedEvmEip1559Fee from JS object
|
|
79
112
|
this.actualInstance = _EstimatedEvmEip1559Fee["default"].constructFromObject(instance);
|
|
80
|
-
} else
|
|
81
|
-
|
|
113
|
+
} else {
|
|
114
|
+
if (_EstimatedEvmEip1559Fee["default"].constructFromObject(instance)) {
|
|
115
|
+
if (!!_EstimatedEvmEip1559Fee["default"].constructFromObject(instance).toJSON) {
|
|
116
|
+
if (_EstimatedEvmEip1559Fee["default"].constructFromObject(instance).toJSON()) {
|
|
117
|
+
this.actualInstance = _EstimatedEvmEip1559Fee["default"].constructFromObject(instance);
|
|
118
|
+
}
|
|
119
|
+
} else {
|
|
120
|
+
this.actualInstance = _EstimatedEvmEip1559Fee["default"].constructFromObject(instance);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
82
123
|
}
|
|
83
124
|
match++;
|
|
84
125
|
} catch (err) {
|
|
@@ -92,8 +133,16 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
92
133
|
// plain JS object
|
|
93
134
|
// create EstimatedEvmLegacyFee from JS object
|
|
94
135
|
this.actualInstance = _EstimatedEvmLegacyFee["default"].constructFromObject(instance);
|
|
95
|
-
} else
|
|
96
|
-
|
|
136
|
+
} else {
|
|
137
|
+
if (_EstimatedEvmLegacyFee["default"].constructFromObject(instance)) {
|
|
138
|
+
if (!!_EstimatedEvmLegacyFee["default"].constructFromObject(instance).toJSON) {
|
|
139
|
+
if (_EstimatedEvmLegacyFee["default"].constructFromObject(instance).toJSON()) {
|
|
140
|
+
this.actualInstance = _EstimatedEvmLegacyFee["default"].constructFromObject(instance);
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
this.actualInstance = _EstimatedEvmLegacyFee["default"].constructFromObject(instance);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
97
146
|
}
|
|
98
147
|
match++;
|
|
99
148
|
} catch (err) {
|
|
@@ -107,8 +156,16 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
107
156
|
// plain JS object
|
|
108
157
|
// create EstimatedUtxoFee from JS object
|
|
109
158
|
this.actualInstance = _EstimatedUtxoFee["default"].constructFromObject(instance);
|
|
110
|
-
} else
|
|
111
|
-
|
|
159
|
+
} else {
|
|
160
|
+
if (_EstimatedUtxoFee["default"].constructFromObject(instance)) {
|
|
161
|
+
if (!!_EstimatedUtxoFee["default"].constructFromObject(instance).toJSON) {
|
|
162
|
+
if (_EstimatedUtxoFee["default"].constructFromObject(instance).toJSON()) {
|
|
163
|
+
this.actualInstance = _EstimatedUtxoFee["default"].constructFromObject(instance);
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
this.actualInstance = _EstimatedUtxoFee["default"].constructFromObject(instance);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
112
169
|
}
|
|
113
170
|
match++;
|
|
114
171
|
} catch (err) {
|