@taquito/rpc 13.0.0 → 14.0.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/dist/lib/opkind.js +3 -0
- package/dist/lib/opkind.js.map +1 -1
- package/dist/lib/rpc-client-interface.js.map +1 -1
- package/dist/lib/rpc-client-modules/rpc-cache.js +13 -0
- package/dist/lib/rpc-client-modules/rpc-cache.js.map +1 -1
- package/dist/lib/taquito-rpc.js +18 -0
- package/dist/lib/taquito-rpc.js.map +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +37 -3
- package/dist/taquito-rpc.es6.js.map +1 -1
- package/dist/taquito-rpc.umd.js +37 -3
- package/dist/taquito-rpc.umd.js.map +1 -1
- package/dist/types/opkind.d.ts +4 -1
- package/dist/types/rpc-client-interface.d.ts +2 -1
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +9 -1
- package/dist/types/taquito-rpc.d.ts +9 -1
- package/dist/types/types.d.ts +106 -11
- package/package.json +14 -14
package/dist/taquito-rpc.umd.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
13
13
|
|
|
14
14
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -856,6 +856,19 @@
|
|
|
856
856
|
return this.rpcClient.runCode(code, { block });
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
+
/**
|
|
860
|
+
* @param viewScriptParams Parameters of the script view to run
|
|
861
|
+
* @param options contains generic configuration for rpc calls
|
|
862
|
+
*
|
|
863
|
+
* @description Simulate a call to a michelson view
|
|
864
|
+
*
|
|
865
|
+
*/
|
|
866
|
+
runScriptView(_a, { block } = defaultRPCOptions) {
|
|
867
|
+
var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
|
|
868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
869
|
+
return this.rpcClient.runScriptView(Object.assign({ unparsing_mode }, rest), { block });
|
|
870
|
+
});
|
|
871
|
+
}
|
|
859
872
|
/**
|
|
860
873
|
* @param viewParams Parameters of the view to run
|
|
861
874
|
* @param options contains generic configuration for rpc calls
|
|
@@ -1118,12 +1131,15 @@
|
|
|
1118
1131
|
OpKind["TX_ROLLUP_REJECTION"] = "tx_rollup_rejection";
|
|
1119
1132
|
OpKind["TX_ROLLUP_DISPATCH_TICKETS"] = "tx_rollup_dispatch_tickets";
|
|
1120
1133
|
OpKind["TRANSFER_TICKET"] = "transfer_ticket";
|
|
1134
|
+
OpKind["INCREASE_PAID_STORAGE"] = "increase_paid_storage";
|
|
1135
|
+
OpKind["VDF_REVELATION"] = "vdf_revelation";
|
|
1136
|
+
OpKind["EVENT"] = "event";
|
|
1121
1137
|
})(exports.OpKind || (exports.OpKind = {}));
|
|
1122
1138
|
|
|
1123
1139
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1124
1140
|
const VERSION = {
|
|
1125
|
-
"commitHash": "
|
|
1126
|
-
"version": "
|
|
1141
|
+
"commitHash": "b1a433145402043facaec3519daceb21a305deef",
|
|
1142
|
+
"version": "14.0.0"
|
|
1127
1143
|
};
|
|
1128
1144
|
|
|
1129
1145
|
/***
|
|
@@ -1450,6 +1466,8 @@
|
|
|
1450
1466
|
'double_baking_punishment',
|
|
1451
1467
|
'delay_increment_per_round',
|
|
1452
1468
|
'tx_rollup_commitment_bond',
|
|
1469
|
+
'vdf_difficulty',
|
|
1470
|
+
'sc_rollup_stake_amount',
|
|
1453
1471
|
]);
|
|
1454
1472
|
return Object.assign(Object.assign({}, response), castedResponse);
|
|
1455
1473
|
});
|
|
@@ -1762,6 +1780,22 @@
|
|
|
1762
1780
|
return response;
|
|
1763
1781
|
});
|
|
1764
1782
|
}
|
|
1783
|
+
/**
|
|
1784
|
+
* @param viewScriptParams Parameters of the script view to run
|
|
1785
|
+
* @param options contains generic configuration for rpc calls
|
|
1786
|
+
*
|
|
1787
|
+
* @description Simulate a call to a michelson view
|
|
1788
|
+
*
|
|
1789
|
+
*/
|
|
1790
|
+
runScriptView(_a, { block } = defaultRPCOptions) {
|
|
1791
|
+
var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
|
|
1792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1793
|
+
return this.httpBackend.createRequest({
|
|
1794
|
+
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/run_script_view`),
|
|
1795
|
+
method: 'POST',
|
|
1796
|
+
}, Object.assign({ unparsing_mode }, rest));
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1765
1799
|
/**
|
|
1766
1800
|
* @param viewParams Parameters of the view to run
|
|
1767
1801
|
* @param options contains generic configuration for rpc calls
|