@chainlink/cre-sdk 1.8.0 → 1.10.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/generated/capabilities/blockchain/evm/v1alpha/client_pb.js +1 -1
- package/dist/generated/capabilities/blockchain/solana/v1alpha/client_pb.d.ts +268 -0
- package/dist/generated/capabilities/blockchain/solana/v1alpha/client_pb.js +90 -0
- package/dist/generated/chain-selectors/mainnet/evm/creditcoin-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/creditcoin-mainnet.js +12 -0
- package/dist/generated/chain-selectors/mainnet/evm/robinhood-mainnet.d.ts +3 -0
- package/dist/generated/chain-selectors/mainnet/evm/robinhood-mainnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/creditcoin-testnet.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/creditcoin-testnet.js +12 -0
- package/dist/generated/chain-selectors/testnet/evm/private-testnet-rhyolite.d.ts +3 -0
- package/dist/generated/chain-selectors/testnet/evm/private-testnet-rhyolite.js +12 -0
- package/dist/generated/networks.d.ts +2 -2
- package/dist/generated/networks.js +28 -0
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.d.ts +10 -12
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.js +0 -3
- package/dist/generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen.d.ts +42 -0
- package/dist/generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen.js +82 -0
- package/dist/generated-sdk/capabilities/internal/consensus/v1alpha/consensus_sdk_gen.d.ts +3 -2
- package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.d.ts +2 -1
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen.d.ts +3 -2
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen.d.ts +2 -1
- package/dist/generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen.d.ts +2 -1
- package/dist/pb.d.ts +1 -0
- package/dist/pb.js +1 -0
- package/dist/sdk/cre/index.d.ts +4 -0
- package/dist/sdk/cre/index.js +5 -0
- package/dist/sdk/impl/runtime-impl.d.ts +3 -0
- package/dist/sdk/impl/runtime-impl.js +9 -4
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/test/generated/capabilities/blockchain/solana/v1alpha/solana_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/blockchain/solana/v1alpha/solana_mock_gen.js +53 -0
- package/dist/sdk/test/generated/index.d.ts +1 -0
- package/dist/sdk/test/generated/index.js +1 -0
- package/dist/sdk/testutils/test-runtime.js +9 -1
- package/dist/sdk/types/global.d.ts +6 -0
- package/dist/sdk/utils/capabilities/blockchain/blockchain-helpers.js +3 -2
- package/dist/sdk/utils/capabilities/confidentialhttp/confidential-http-helpers.d.ts +43 -0
- package/dist/sdk/utils/capabilities/confidentialhttp/confidential-http-helpers.js +58 -0
- package/dist/sdk/utils/capabilities/http/http-helpers.d.ts +20 -6
- package/dist/sdk/utils/capabilities/http/http-helpers.js +23 -4
- package/dist/sdk/utils/safe-integer.d.ts +8 -0
- package/dist/sdk/utils/safe-integer.js +15 -0
- package/dist/sdk/utils/types/no-excess.d.ts +32 -0
- package/dist/sdk/utils/types/no-excess.js +1 -0
- package/dist/sdk/utils/values/value.js +3 -4
- package/dist/sdk/wasm/host-bindings.d.ts +39 -0
- package/dist/sdk/wasm/host-bindings.js +2 -1
- package/dist/sdk/wasm/runtime.js +3 -0
- package/package.json +5 -4
- package/scripts/src/generate-sdks.ts +6 -0
|
@@ -26,6 +26,7 @@ import mainnet_evm_coinex_smart_chain_mainnet from './chain-selectors/mainnet/ev
|
|
|
26
26
|
import mainnet_evm_conflux_mainnet from './chain-selectors/mainnet/evm/conflux-mainnet';
|
|
27
27
|
import mainnet_evm_core_mainnet from './chain-selectors/mainnet/evm/core-mainnet';
|
|
28
28
|
import mainnet_evm_corn_mainnet from './chain-selectors/mainnet/evm/corn-mainnet';
|
|
29
|
+
import mainnet_evm_creditcoin_mainnet from './chain-selectors/mainnet/evm/creditcoin-mainnet';
|
|
29
30
|
import mainnet_evm_cronos_mainnet from './chain-selectors/mainnet/evm/cronos-mainnet';
|
|
30
31
|
import mainnet_evm_cronos_zkevm_mainnet from './chain-selectors/mainnet/evm/cronos-zkevm-mainnet';
|
|
31
32
|
import mainnet_evm_edge_mainnet from './chain-selectors/mainnet/evm/edge-mainnet';
|
|
@@ -96,6 +97,7 @@ import mainnet_evm_polkadot_mainnet_darwinia from './chain-selectors/mainnet/evm
|
|
|
96
97
|
import mainnet_evm_polkadot_mainnet_moonbeam from './chain-selectors/mainnet/evm/polkadot-mainnet-moonbeam';
|
|
97
98
|
import mainnet_evm_polygon_mainnet from './chain-selectors/mainnet/evm/polygon-mainnet';
|
|
98
99
|
import mainnet_evm_polygon_mainnet_katana from './chain-selectors/mainnet/evm/polygon-mainnet-katana';
|
|
100
|
+
import mainnet_evm_robinhood_mainnet from './chain-selectors/mainnet/evm/robinhood-mainnet';
|
|
99
101
|
import mainnet_evm_ronin_mainnet from './chain-selectors/mainnet/evm/ronin-mainnet';
|
|
100
102
|
import mainnet_evm_rootstock_mainnet from './chain-selectors/mainnet/evm/rootstock-mainnet';
|
|
101
103
|
import mainnet_evm_sei_mainnet from './chain-selectors/mainnet/evm/sei-mainnet';
|
|
@@ -153,6 +155,7 @@ import testnet_evm_celo_testnet_alfajores from './chain-selectors/testnet/evm/ce
|
|
|
153
155
|
import testnet_evm_codex_testnet from './chain-selectors/testnet/evm/codex-testnet';
|
|
154
156
|
import testnet_evm_coinex_smart_chain_testnet from './chain-selectors/testnet/evm/coinex.smart.chain-testnet';
|
|
155
157
|
import testnet_evm_core_testnet from './chain-selectors/testnet/evm/core-testnet';
|
|
158
|
+
import testnet_evm_creditcoin_testnet from './chain-selectors/testnet/evm/creditcoin-testnet';
|
|
156
159
|
import testnet_evm_cronos_testnet from './chain-selectors/testnet/evm/cronos-testnet';
|
|
157
160
|
import testnet_evm_cronos_testnet_zkevm_1 from './chain-selectors/testnet/evm/cronos-testnet-zkevm-1';
|
|
158
161
|
import testnet_evm_cronos_zkevm_testnet_sepolia from './chain-selectors/testnet/evm/cronos-zkevm-testnet-sepolia';
|
|
@@ -248,6 +251,7 @@ import testnet_evm_private_testnet_granite from './chain-selectors/testnet/evm/p
|
|
|
248
251
|
import testnet_evm_private_testnet_mica from './chain-selectors/testnet/evm/private-testnet-mica';
|
|
249
252
|
import testnet_evm_private_testnet_obsidian from './chain-selectors/testnet/evm/private-testnet-obsidian';
|
|
250
253
|
import testnet_evm_private_testnet_opala from './chain-selectors/testnet/evm/private-testnet-opala';
|
|
254
|
+
import testnet_evm_private_testnet_rhyolite from './chain-selectors/testnet/evm/private-testnet-rhyolite';
|
|
251
255
|
import testnet_evm_robinhood_testnet from './chain-selectors/testnet/evm/robinhood-testnet';
|
|
252
256
|
import testnet_evm_ronin_testnet_saigon from './chain-selectors/testnet/evm/ronin-testnet-saigon';
|
|
253
257
|
import testnet_evm_sei_testnet_atlantic from './chain-selectors/testnet/evm/sei-testnet-atlantic';
|
|
@@ -408,6 +412,7 @@ export const allNetworks = [
|
|
|
408
412
|
testnet_evm_ethereum_testnet_sepolia_lisk_1,
|
|
409
413
|
mainnet_evm_tempo_mainnet,
|
|
410
414
|
mainnet_evm_megaeth_mainnet,
|
|
415
|
+
mainnet_evm_robinhood_mainnet,
|
|
411
416
|
testnet_evm_ethereum_testnet_sepolia_worldchain_1,
|
|
412
417
|
mainnet_evm_ethereum_mainnet_mantle_1,
|
|
413
418
|
testnet_evm_ethereum_testnet_goerli_mantle_1,
|
|
@@ -494,6 +499,8 @@ export const allNetworks = [
|
|
|
494
499
|
mainnet_evm_plume_mainnet,
|
|
495
500
|
testnet_evm_plume_testnet_sepolia,
|
|
496
501
|
testnet_evm_adi_testnet,
|
|
502
|
+
mainnet_evm_creditcoin_mainnet,
|
|
503
|
+
testnet_evm_creditcoin_testnet,
|
|
497
504
|
testnet_evm_etherlink_testnet,
|
|
498
505
|
testnet_evm_polygon_testnet_tatara,
|
|
499
506
|
mainnet_evm_ethereum_mainnet_taiko_1,
|
|
@@ -545,6 +552,7 @@ export const allNetworks = [
|
|
|
545
552
|
testnet_evm_ethereum_testnet_sepolia_blast_1,
|
|
546
553
|
mainnet_evm_tron_mainnet_evm,
|
|
547
554
|
testnet_evm_zora_testnet,
|
|
555
|
+
testnet_evm_private_testnet_rhyolite,
|
|
548
556
|
testnet_evm_tron_testnet_shasta_evm,
|
|
549
557
|
testnet_evm_tron_devnet_evm,
|
|
550
558
|
testnet_evm_tron_testnet_nile_evm,
|
|
@@ -633,6 +641,7 @@ export const mainnet = {
|
|
|
633
641
|
mainnet_evm_bitcoin_merlin_mainnet,
|
|
634
642
|
mainnet_evm_tempo_mainnet,
|
|
635
643
|
mainnet_evm_megaeth_mainnet,
|
|
644
|
+
mainnet_evm_robinhood_mainnet,
|
|
636
645
|
mainnet_evm_ethereum_mainnet_mantle_1,
|
|
637
646
|
mainnet_evm_superseed_mainnet,
|
|
638
647
|
mainnet_evm_nibiru_mainnet,
|
|
@@ -667,6 +676,7 @@ export const mainnet = {
|
|
|
667
676
|
mainnet_evm_codex_mainnet,
|
|
668
677
|
mainnet_evm_ethereum_mainnet_blast_1,
|
|
669
678
|
mainnet_evm_plume_mainnet,
|
|
679
|
+
mainnet_evm_creditcoin_mainnet,
|
|
670
680
|
mainnet_evm_ethereum_mainnet_taiko_1,
|
|
671
681
|
mainnet_evm_bitcoin_mainnet_bitlayer_1,
|
|
672
682
|
mainnet_evm_avalanche_subnet_dexalot_mainnet,
|
|
@@ -800,6 +810,7 @@ export const testnet = {
|
|
|
800
810
|
testnet_evm_plume_devnet,
|
|
801
811
|
testnet_evm_plume_testnet_sepolia,
|
|
802
812
|
testnet_evm_adi_testnet,
|
|
813
|
+
testnet_evm_creditcoin_testnet,
|
|
803
814
|
testnet_evm_etherlink_testnet,
|
|
804
815
|
testnet_evm_polygon_testnet_tatara,
|
|
805
816
|
testnet_evm_ethereum_testnet_holesky_taiko_1,
|
|
@@ -838,6 +849,7 @@ export const testnet = {
|
|
|
838
849
|
testnet_evm_plume_testnet,
|
|
839
850
|
testnet_evm_ethereum_testnet_sepolia_blast_1,
|
|
840
851
|
testnet_evm_zora_testnet,
|
|
852
|
+
testnet_evm_private_testnet_rhyolite,
|
|
841
853
|
testnet_evm_tron_testnet_shasta_evm,
|
|
842
854
|
testnet_evm_tron_devnet_evm,
|
|
843
855
|
testnet_evm_tron_testnet_nile_evm,
|
|
@@ -920,6 +932,7 @@ export const mainnetBySelector = new Map([
|
|
|
920
932
|
[241851231317828981n, mainnet_evm_bitcoin_merlin_mainnet],
|
|
921
933
|
[7281642695469137430n, mainnet_evm_tempo_mainnet],
|
|
922
934
|
[6093540873831549674n, mainnet_evm_megaeth_mainnet],
|
|
935
|
+
[6180753054346818345n, mainnet_evm_robinhood_mainnet],
|
|
923
936
|
[1556008542357238666n, mainnet_evm_ethereum_mainnet_mantle_1],
|
|
924
937
|
[470401360549526817n, mainnet_evm_superseed_mainnet],
|
|
925
938
|
[17349189558768828726n, mainnet_evm_nibiru_mainnet],
|
|
@@ -954,6 +967,7 @@ export const mainnetBySelector = new Map([
|
|
|
954
967
|
[9478124434908827753n, mainnet_evm_codex_mainnet],
|
|
955
968
|
[4411394078118774322n, mainnet_evm_ethereum_mainnet_blast_1],
|
|
956
969
|
[17912061998839310979n, mainnet_evm_plume_mainnet],
|
|
970
|
+
[18240105181246962294n, mainnet_evm_creditcoin_mainnet],
|
|
957
971
|
[16468599424800719238n, mainnet_evm_ethereum_mainnet_taiko_1],
|
|
958
972
|
[7937294810946806131n, mainnet_evm_bitcoin_mainnet_bitlayer_1],
|
|
959
973
|
[5463201557265485081n, mainnet_evm_avalanche_subnet_dexalot_mainnet],
|
|
@@ -1085,6 +1099,7 @@ export const testnetBySelector = new Map([
|
|
|
1085
1099
|
[3743020999916460931n, testnet_evm_plume_devnet],
|
|
1086
1100
|
[13874588925447303949n, testnet_evm_plume_testnet_sepolia],
|
|
1087
1101
|
[9418205736192840573n, testnet_evm_adi_testnet],
|
|
1102
|
+
[16960985330067274105n, testnet_evm_creditcoin_testnet],
|
|
1088
1103
|
[1910019406958449359n, testnet_evm_etherlink_testnet],
|
|
1089
1104
|
[9090863410735740267n, testnet_evm_polygon_testnet_tatara],
|
|
1090
1105
|
[7248756420937879088n, testnet_evm_ethereum_testnet_holesky_taiko_1],
|
|
@@ -1123,6 +1138,7 @@ export const testnetBySelector = new Map([
|
|
|
1123
1138
|
[14684575664602284776n, testnet_evm_plume_testnet],
|
|
1124
1139
|
[2027362563942762617n, testnet_evm_ethereum_testnet_sepolia_blast_1],
|
|
1125
1140
|
[16244020411108056671n, testnet_evm_zora_testnet],
|
|
1141
|
+
[604447335222770945n, testnet_evm_private_testnet_rhyolite],
|
|
1126
1142
|
[13231703482326770598n, testnet_evm_tron_testnet_shasta_evm],
|
|
1127
1143
|
[13231703482326770600n, testnet_evm_tron_devnet_evm],
|
|
1128
1144
|
[2052925811360307749n, testnet_evm_tron_testnet_nile_evm],
|
|
@@ -1206,6 +1222,7 @@ export const mainnetByName = new Map([
|
|
|
1206
1222
|
['bitcoin-merlin-mainnet', mainnet_evm_bitcoin_merlin_mainnet],
|
|
1207
1223
|
['tempo-mainnet', mainnet_evm_tempo_mainnet],
|
|
1208
1224
|
['megaeth-mainnet', mainnet_evm_megaeth_mainnet],
|
|
1225
|
+
['robinhood-mainnet', mainnet_evm_robinhood_mainnet],
|
|
1209
1226
|
['ethereum-mainnet-mantle-1', mainnet_evm_ethereum_mainnet_mantle_1],
|
|
1210
1227
|
['superseed-mainnet', mainnet_evm_superseed_mainnet],
|
|
1211
1228
|
['nibiru-mainnet', mainnet_evm_nibiru_mainnet],
|
|
@@ -1240,6 +1257,7 @@ export const mainnetByName = new Map([
|
|
|
1240
1257
|
['codex-mainnet', mainnet_evm_codex_mainnet],
|
|
1241
1258
|
['ethereum-mainnet-blast-1', mainnet_evm_ethereum_mainnet_blast_1],
|
|
1242
1259
|
['plume-mainnet', mainnet_evm_plume_mainnet],
|
|
1260
|
+
['creditcoin-mainnet', mainnet_evm_creditcoin_mainnet],
|
|
1243
1261
|
['ethereum-mainnet-taiko-1', mainnet_evm_ethereum_mainnet_taiko_1],
|
|
1244
1262
|
['bitcoin-mainnet-bitlayer-1', mainnet_evm_bitcoin_mainnet_bitlayer_1],
|
|
1245
1263
|
['avalanche-subnet-dexalot-mainnet', mainnet_evm_avalanche_subnet_dexalot_mainnet],
|
|
@@ -1380,6 +1398,7 @@ export const testnetByName = new Map([
|
|
|
1380
1398
|
['plume-devnet', testnet_evm_plume_devnet],
|
|
1381
1399
|
['plume-testnet-sepolia', testnet_evm_plume_testnet_sepolia],
|
|
1382
1400
|
['adi-testnet', testnet_evm_adi_testnet],
|
|
1401
|
+
['creditcoin-testnet', testnet_evm_creditcoin_testnet],
|
|
1383
1402
|
['etherlink-testnet', testnet_evm_etherlink_testnet],
|
|
1384
1403
|
['polygon-testnet-tatara', testnet_evm_polygon_testnet_tatara],
|
|
1385
1404
|
['ethereum-testnet-holesky-taiko-1', testnet_evm_ethereum_testnet_holesky_taiko_1],
|
|
@@ -1424,6 +1443,7 @@ export const testnetByName = new Map([
|
|
|
1424
1443
|
['plume-testnet', testnet_evm_plume_testnet],
|
|
1425
1444
|
['ethereum-testnet-sepolia-blast-1', testnet_evm_ethereum_testnet_sepolia_blast_1],
|
|
1426
1445
|
['zora-testnet', testnet_evm_zora_testnet],
|
|
1446
|
+
['private-testnet-rhyolite', testnet_evm_private_testnet_rhyolite],
|
|
1427
1447
|
['tron-testnet-shasta-evm', testnet_evm_tron_testnet_shasta_evm],
|
|
1428
1448
|
['tron-devnet-evm', testnet_evm_tron_devnet_evm],
|
|
1429
1449
|
['tron-testnet-nile-evm', testnet_evm_tron_testnet_nile_evm],
|
|
@@ -1508,6 +1528,7 @@ export const mainnetBySelectorByFamily = {
|
|
|
1508
1528
|
[241851231317828981n, mainnet_evm_bitcoin_merlin_mainnet],
|
|
1509
1529
|
[7281642695469137430n, mainnet_evm_tempo_mainnet],
|
|
1510
1530
|
[6093540873831549674n, mainnet_evm_megaeth_mainnet],
|
|
1531
|
+
[6180753054346818345n, mainnet_evm_robinhood_mainnet],
|
|
1511
1532
|
[1556008542357238666n, mainnet_evm_ethereum_mainnet_mantle_1],
|
|
1512
1533
|
[470401360549526817n, mainnet_evm_superseed_mainnet],
|
|
1513
1534
|
[17349189558768828726n, mainnet_evm_nibiru_mainnet],
|
|
@@ -1542,6 +1563,7 @@ export const mainnetBySelectorByFamily = {
|
|
|
1542
1563
|
[9478124434908827753n, mainnet_evm_codex_mainnet],
|
|
1543
1564
|
[4411394078118774322n, mainnet_evm_ethereum_mainnet_blast_1],
|
|
1544
1565
|
[17912061998839310979n, mainnet_evm_plume_mainnet],
|
|
1566
|
+
[18240105181246962294n, mainnet_evm_creditcoin_mainnet],
|
|
1545
1567
|
[16468599424800719238n, mainnet_evm_ethereum_mainnet_taiko_1],
|
|
1546
1568
|
[7937294810946806131n, mainnet_evm_bitcoin_mainnet_bitlayer_1],
|
|
1547
1569
|
[5463201557265485081n, mainnet_evm_avalanche_subnet_dexalot_mainnet],
|
|
@@ -1675,6 +1697,7 @@ export const testnetBySelectorByFamily = {
|
|
|
1675
1697
|
[3743020999916460931n, testnet_evm_plume_devnet],
|
|
1676
1698
|
[13874588925447303949n, testnet_evm_plume_testnet_sepolia],
|
|
1677
1699
|
[9418205736192840573n, testnet_evm_adi_testnet],
|
|
1700
|
+
[16960985330067274105n, testnet_evm_creditcoin_testnet],
|
|
1678
1701
|
[1910019406958449359n, testnet_evm_etherlink_testnet],
|
|
1679
1702
|
[9090863410735740267n, testnet_evm_polygon_testnet_tatara],
|
|
1680
1703
|
[7248756420937879088n, testnet_evm_ethereum_testnet_holesky_taiko_1],
|
|
@@ -1713,6 +1736,7 @@ export const testnetBySelectorByFamily = {
|
|
|
1713
1736
|
[14684575664602284776n, testnet_evm_plume_testnet],
|
|
1714
1737
|
[2027362563942762617n, testnet_evm_ethereum_testnet_sepolia_blast_1],
|
|
1715
1738
|
[16244020411108056671n, testnet_evm_zora_testnet],
|
|
1739
|
+
[604447335222770945n, testnet_evm_private_testnet_rhyolite],
|
|
1716
1740
|
[13231703482326770598n, testnet_evm_tron_testnet_shasta_evm],
|
|
1717
1741
|
[13231703482326770600n, testnet_evm_tron_devnet_evm],
|
|
1718
1742
|
[2052925811360307749n, testnet_evm_tron_testnet_nile_evm],
|
|
@@ -1808,6 +1832,7 @@ export const mainnetByNameByFamily = {
|
|
|
1808
1832
|
['bitcoin-merlin-mainnet', mainnet_evm_bitcoin_merlin_mainnet],
|
|
1809
1833
|
['tempo-mainnet', mainnet_evm_tempo_mainnet],
|
|
1810
1834
|
['megaeth-mainnet', mainnet_evm_megaeth_mainnet],
|
|
1835
|
+
['robinhood-mainnet', mainnet_evm_robinhood_mainnet],
|
|
1811
1836
|
['ethereum-mainnet-mantle-1', mainnet_evm_ethereum_mainnet_mantle_1],
|
|
1812
1837
|
['superseed-mainnet', mainnet_evm_superseed_mainnet],
|
|
1813
1838
|
['nibiru-mainnet', mainnet_evm_nibiru_mainnet],
|
|
@@ -1842,6 +1867,7 @@ export const mainnetByNameByFamily = {
|
|
|
1842
1867
|
['codex-mainnet', mainnet_evm_codex_mainnet],
|
|
1843
1868
|
['ethereum-mainnet-blast-1', mainnet_evm_ethereum_mainnet_blast_1],
|
|
1844
1869
|
['plume-mainnet', mainnet_evm_plume_mainnet],
|
|
1870
|
+
['creditcoin-mainnet', mainnet_evm_creditcoin_mainnet],
|
|
1845
1871
|
['ethereum-mainnet-taiko-1', mainnet_evm_ethereum_mainnet_taiko_1],
|
|
1846
1872
|
['bitcoin-mainnet-bitlayer-1', mainnet_evm_bitcoin_mainnet_bitlayer_1],
|
|
1847
1873
|
['avalanche-subnet-dexalot-mainnet', mainnet_evm_avalanche_subnet_dexalot_mainnet],
|
|
@@ -1987,6 +2013,7 @@ export const testnetByNameByFamily = {
|
|
|
1987
2013
|
['plume-devnet', testnet_evm_plume_devnet],
|
|
1988
2014
|
['plume-testnet-sepolia', testnet_evm_plume_testnet_sepolia],
|
|
1989
2015
|
['adi-testnet', testnet_evm_adi_testnet],
|
|
2016
|
+
['creditcoin-testnet', testnet_evm_creditcoin_testnet],
|
|
1990
2017
|
['etherlink-testnet', testnet_evm_etherlink_testnet],
|
|
1991
2018
|
['polygon-testnet-tatara', testnet_evm_polygon_testnet_tatara],
|
|
1992
2019
|
['ethereum-testnet-holesky-taiko-1', testnet_evm_ethereum_testnet_holesky_taiko_1],
|
|
@@ -2031,6 +2058,7 @@ export const testnetByNameByFamily = {
|
|
|
2031
2058
|
['plume-testnet', testnet_evm_plume_testnet],
|
|
2032
2059
|
['ethereum-testnet-sepolia-blast-1', testnet_evm_ethereum_testnet_sepolia_blast_1],
|
|
2033
2060
|
['zora-testnet', testnet_evm_zora_testnet],
|
|
2061
|
+
['private-testnet-rhyolite', testnet_evm_private_testnet_rhyolite],
|
|
2034
2062
|
['tron-testnet-shasta-evm', testnet_evm_tron_testnet_shasta_evm],
|
|
2035
2063
|
['tron-devnet-evm', testnet_evm_tron_devnet_evm],
|
|
2036
2064
|
['tron-testnet-nile-evm', testnet_evm_tron_testnet_nile_evm],
|
|
@@ -3,6 +3,7 @@ import { type BalanceAtReply, type BalanceAtRequest, type BalanceAtRequestJson,
|
|
|
3
3
|
import type { Runtime } from '../../../../../sdk';
|
|
4
4
|
import { Report } from '../../../../../sdk/report';
|
|
5
5
|
import type { Trigger } from '../../../../../sdk/utils/triggers/trigger-interface';
|
|
6
|
+
import type { CapabilityInput, NoExcess } from '../../../../../sdk/utils/types/no-excess';
|
|
6
7
|
export type WriteCreReportRequest = {
|
|
7
8
|
receiver: Uint8Array;
|
|
8
9
|
report?: Report;
|
|
@@ -32,8 +33,6 @@ export declare class ClientCapability {
|
|
|
32
33
|
static readonly CAPABILITY_VERSION = "1.0.0";
|
|
33
34
|
/** Available ChainSelector values */
|
|
34
35
|
static readonly SUPPORTED_CHAIN_SELECTORS: {
|
|
35
|
-
readonly 'adi-mainnet': 4059281736450291836n;
|
|
36
|
-
readonly 'adi-testnet': 9418205736192840573n;
|
|
37
36
|
readonly 'apechain-testnet-curtis': 9900119385908781505n;
|
|
38
37
|
readonly 'arc-testnet': 3034092155422581607n;
|
|
39
38
|
readonly 'avalanche-mainnet': 6433500567565415381n;
|
|
@@ -41,7 +40,6 @@ export declare class ClientCapability {
|
|
|
41
40
|
readonly 'binance_smart_chain-mainnet': 11344663589394136015n;
|
|
42
41
|
readonly 'binance_smart_chain-testnet': 13264668187771770619n;
|
|
43
42
|
readonly 'celo-mainnet': 1346049177634351622n;
|
|
44
|
-
readonly 'celo-sepolia': 3761762704474186180n;
|
|
45
43
|
readonly 'cronos-testnet': 2995292832068775165n;
|
|
46
44
|
readonly 'dtcc-testnet-andesite': 15513093881969820114n;
|
|
47
45
|
readonly 'ethereum-mainnet': 5009297550715157269n;
|
|
@@ -87,29 +85,29 @@ export declare class ClientCapability {
|
|
|
87
85
|
readonly 'xlayer-testnet': 10212741611335999305n;
|
|
88
86
|
};
|
|
89
87
|
constructor(ChainSelector: bigint);
|
|
90
|
-
callContract(runtime: Runtime<unknown>, input: CallContractRequest
|
|
88
|
+
callContract<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, CallContractRequest, CallContractRequestJson>): {
|
|
91
89
|
result: () => CallContractReply;
|
|
92
90
|
};
|
|
93
|
-
filterLogs(runtime: Runtime<unknown>, input: FilterLogsRequest
|
|
91
|
+
filterLogs<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, FilterLogsRequest, FilterLogsRequestJson>): {
|
|
94
92
|
result: () => FilterLogsReply;
|
|
95
93
|
};
|
|
96
|
-
balanceAt(runtime: Runtime<unknown>, input: BalanceAtRequest
|
|
94
|
+
balanceAt<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, BalanceAtRequest, BalanceAtRequestJson>): {
|
|
97
95
|
result: () => BalanceAtReply;
|
|
98
96
|
};
|
|
99
|
-
estimateGas(runtime: Runtime<unknown>, input: EstimateGasRequest
|
|
97
|
+
estimateGas<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, EstimateGasRequest, EstimateGasRequestJson>): {
|
|
100
98
|
result: () => EstimateGasReply;
|
|
101
99
|
};
|
|
102
|
-
getTransactionByHash(runtime: Runtime<unknown>, input: GetTransactionByHashRequest
|
|
100
|
+
getTransactionByHash<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, GetTransactionByHashRequest, GetTransactionByHashRequestJson>): {
|
|
103
101
|
result: () => GetTransactionByHashReply;
|
|
104
102
|
};
|
|
105
|
-
getTransactionReceipt(runtime: Runtime<unknown>, input: GetTransactionReceiptRequest
|
|
103
|
+
getTransactionReceipt<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, GetTransactionReceiptRequest, GetTransactionReceiptRequestJson>): {
|
|
106
104
|
result: () => GetTransactionReceiptReply;
|
|
107
105
|
};
|
|
108
|
-
headerByNumber(runtime: Runtime<unknown>, input: HeaderByNumberRequest
|
|
106
|
+
headerByNumber<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, HeaderByNumberRequest, HeaderByNumberRequestJson>): {
|
|
109
107
|
result: () => HeaderByNumberReply;
|
|
110
108
|
};
|
|
111
|
-
logTrigger(config: FilterLogTriggerRequestJson): ClientLogTrigger;
|
|
112
|
-
writeReport(runtime: Runtime<unknown>, input: WriteCreReportRequest
|
|
109
|
+
logTrigger<TConfig extends FilterLogTriggerRequestJson>(config: NoExcess<TConfig, FilterLogTriggerRequestJson>): ClientLogTrigger;
|
|
110
|
+
writeReport<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, WriteCreReportRequest, WriteCreReportRequestJson>): {
|
|
113
111
|
result: () => WriteReportReply;
|
|
114
112
|
};
|
|
115
113
|
}
|
|
@@ -42,8 +42,6 @@ export class ClientCapability {
|
|
|
42
42
|
static CAPABILITY_VERSION = '1.0.0';
|
|
43
43
|
/** Available ChainSelector values */
|
|
44
44
|
static SUPPORTED_CHAIN_SELECTORS = {
|
|
45
|
-
'adi-mainnet': 4059281736450291836n,
|
|
46
|
-
'adi-testnet': 9418205736192840573n,
|
|
47
45
|
'apechain-testnet-curtis': 9900119385908781505n,
|
|
48
46
|
'arc-testnet': 3034092155422581607n,
|
|
49
47
|
'avalanche-mainnet': 6433500567565415381n,
|
|
@@ -51,7 +49,6 @@ export class ClientCapability {
|
|
|
51
49
|
'binance_smart_chain-mainnet': 11344663589394136015n,
|
|
52
50
|
'binance_smart_chain-testnet': 13264668187771770619n,
|
|
53
51
|
'celo-mainnet': 1346049177634351622n,
|
|
54
|
-
'celo-sepolia': 3761762704474186180n,
|
|
55
52
|
'cronos-testnet': 2995292832068775165n,
|
|
56
53
|
'dtcc-testnet-andesite': 15513093881969820114n,
|
|
57
54
|
'ethereum-mainnet': 5009297550715157269n,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type AccountMeta, type AccountMetaJson, type ComputeConfig, type ComputeConfigJson, type WriteReportReply, type WriteReportRequest } from '../../../../../generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
2
|
+
import type { Runtime } from '../../../../../sdk';
|
|
3
|
+
import { Report } from '../../../../../sdk/report';
|
|
4
|
+
import type { CapabilityInput } from '../../../../../sdk/utils/types/no-excess';
|
|
5
|
+
export type WriteCreReportRequest = {
|
|
6
|
+
remainingAccounts: AccountMeta[];
|
|
7
|
+
receiver: Uint8Array;
|
|
8
|
+
computeConfig?: ComputeConfig;
|
|
9
|
+
report?: Report;
|
|
10
|
+
$report: true;
|
|
11
|
+
};
|
|
12
|
+
export type WriteCreReportRequestJson = {
|
|
13
|
+
remainingAccounts: AccountMetaJson[];
|
|
14
|
+
receiver: string;
|
|
15
|
+
computeConfig?: ComputeConfigJson;
|
|
16
|
+
report?: Report;
|
|
17
|
+
};
|
|
18
|
+
export declare function x_generatedCodeOnly_wrap_WriteCreReportRequest(input: WriteReportRequest): WriteCreReportRequest;
|
|
19
|
+
export declare function createWriteCreReportRequest(input: WriteCreReportRequestJson): WriteCreReportRequest;
|
|
20
|
+
export declare function x_generatedCodeOnly_unwrap_WriteCreReportRequest(input: WriteCreReportRequest): WriteReportRequest;
|
|
21
|
+
/**
|
|
22
|
+
* Client Capability
|
|
23
|
+
*
|
|
24
|
+
* Capability ID: solana@1.0.0
|
|
25
|
+
* Capability Name: solana
|
|
26
|
+
* Capability Version: 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
export declare class ClientCapability {
|
|
29
|
+
private readonly ChainSelector;
|
|
30
|
+
/** The capability ID for this service */
|
|
31
|
+
static readonly CAPABILITY_ID = "solana@1.0.0";
|
|
32
|
+
static readonly CAPABILITY_NAME = "solana";
|
|
33
|
+
static readonly CAPABILITY_VERSION = "1.0.0";
|
|
34
|
+
/** Available ChainSelector values */
|
|
35
|
+
static readonly SUPPORTED_CHAIN_SELECTORS: {
|
|
36
|
+
readonly 'solana-devnet': 16423721717087811551n;
|
|
37
|
+
};
|
|
38
|
+
constructor(ChainSelector: bigint);
|
|
39
|
+
writeReport<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, WriteCreReportRequest, WriteCreReportRequestJson>): {
|
|
40
|
+
result: () => WriteReportReply;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { create, fromJson } from '@bufbuild/protobuf';
|
|
2
|
+
import { AccountMetaSchema, ComputeConfigSchema, WriteReportReplySchema, WriteReportRequestSchema, } from '../../../../../generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
3
|
+
import { ReportResponseSchema, } from '../../../../../generated/sdk/v1alpha/sdk_pb';
|
|
4
|
+
import { Report } from '../../../../../sdk/report';
|
|
5
|
+
import { hexToBytes } from '../../../../../sdk/utils/hex-utils';
|
|
6
|
+
export function x_generatedCodeOnly_wrap_WriteCreReportRequest(input) {
|
|
7
|
+
return {
|
|
8
|
+
remainingAccounts: input.remainingAccounts,
|
|
9
|
+
receiver: input.receiver,
|
|
10
|
+
computeConfig: input.computeConfig,
|
|
11
|
+
report: input.report !== undefined ? new Report(input.report) : undefined,
|
|
12
|
+
$report: true,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function createWriteCreReportRequest(input) {
|
|
16
|
+
return {
|
|
17
|
+
remainingAccounts: (input.remainingAccounts ?? []).map((v) => fromJson(AccountMetaSchema, v)),
|
|
18
|
+
receiver: hexToBytes(input.receiver),
|
|
19
|
+
computeConfig: input.computeConfig !== undefined
|
|
20
|
+
? fromJson(ComputeConfigSchema, input.computeConfig)
|
|
21
|
+
: undefined,
|
|
22
|
+
report: input.report,
|
|
23
|
+
$report: true,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function x_generatedCodeOnly_unwrap_WriteCreReportRequest(input) {
|
|
27
|
+
return create(WriteReportRequestSchema, {
|
|
28
|
+
remainingAccounts: input.remainingAccounts,
|
|
29
|
+
receiver: input.receiver,
|
|
30
|
+
computeConfig: input.computeConfig,
|
|
31
|
+
report: input.report !== undefined ? input.report.x_generatedCodeOnly_unwrap() : undefined,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Client Capability
|
|
36
|
+
*
|
|
37
|
+
* Capability ID: solana@1.0.0
|
|
38
|
+
* Capability Name: solana
|
|
39
|
+
* Capability Version: 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
export class ClientCapability {
|
|
42
|
+
ChainSelector;
|
|
43
|
+
/** The capability ID for this service */
|
|
44
|
+
static CAPABILITY_ID = 'solana@1.0.0';
|
|
45
|
+
static CAPABILITY_NAME = 'solana';
|
|
46
|
+
static CAPABILITY_VERSION = '1.0.0';
|
|
47
|
+
/** Available ChainSelector values */
|
|
48
|
+
static SUPPORTED_CHAIN_SELECTORS = {
|
|
49
|
+
'solana-devnet': 16423721717087811551n,
|
|
50
|
+
};
|
|
51
|
+
constructor(ChainSelector) {
|
|
52
|
+
this.ChainSelector = ChainSelector;
|
|
53
|
+
}
|
|
54
|
+
writeReport(runtime, input) {
|
|
55
|
+
// Handle input conversion - unwrap if it's a wrapped type, convert from JSON if needed
|
|
56
|
+
let payload;
|
|
57
|
+
// Check if it's a wrapped type by looking for the $report property
|
|
58
|
+
if (input.$report) {
|
|
59
|
+
// It's a wrapped type, unwrap it
|
|
60
|
+
payload = x_generatedCodeOnly_unwrap_WriteCreReportRequest(input);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
// It's wrapped JSON, convert using create function
|
|
64
|
+
payload = x_generatedCodeOnly_unwrap_WriteCreReportRequest(createWriteCreReportRequest(input));
|
|
65
|
+
}
|
|
66
|
+
// Include all labels in capability ID for routing when specified
|
|
67
|
+
const capabilityId = `${ClientCapability.CAPABILITY_NAME}:ChainSelector:${this.ChainSelector}@${ClientCapability.CAPABILITY_VERSION}`;
|
|
68
|
+
const capabilityResponse = runtime.callCapability({
|
|
69
|
+
capabilityId,
|
|
70
|
+
method: 'WriteReport',
|
|
71
|
+
payload,
|
|
72
|
+
inputSchema: WriteReportRequestSchema,
|
|
73
|
+
outputSchema: WriteReportReplySchema,
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
result: () => {
|
|
77
|
+
const result = capabilityResponse.result();
|
|
78
|
+
return result;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -2,6 +2,7 @@ import { type ReportRequest, type ReportRequestJson, type SimpleConsensusInputs,
|
|
|
2
2
|
import { type Value } from '../../../../../generated/values/v1/values_pb';
|
|
3
3
|
import type { Runtime } from '../../../../../sdk';
|
|
4
4
|
import { Report } from '../../../../../sdk/report';
|
|
5
|
+
import type { CapabilityInput } from '../../../../../sdk/utils/types/no-excess';
|
|
5
6
|
/**
|
|
6
7
|
* Consensus Capability
|
|
7
8
|
*
|
|
@@ -14,10 +15,10 @@ export declare class ConsensusCapability {
|
|
|
14
15
|
static readonly CAPABILITY_ID = "consensus@1.0.0-alpha";
|
|
15
16
|
static readonly CAPABILITY_NAME = "consensus";
|
|
16
17
|
static readonly CAPABILITY_VERSION = "1.0.0-alpha";
|
|
17
|
-
simple(runtime: Runtime<unknown>, input: SimpleConsensusInputs
|
|
18
|
+
simple<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, SimpleConsensusInputs, SimpleConsensusInputsJson>): {
|
|
18
19
|
result: () => Value;
|
|
19
20
|
};
|
|
20
|
-
report(runtime: Runtime<unknown>, input: ReportRequest
|
|
21
|
+
report<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, ReportRequest, ReportRequestJson>): {
|
|
21
22
|
result: () => Report;
|
|
22
23
|
};
|
|
23
24
|
}
|
package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ConfidentialHTTPRequest, type ConfidentialHTTPRequestJson, type HTTPResponse } from '../../../../../generated/capabilities/networking/confidentialhttp/v1alpha/client_pb';
|
|
2
2
|
import type { Runtime } from '../../../../../sdk';
|
|
3
|
+
import type { CapabilityInput } from '../../../../../sdk/utils/types/no-excess';
|
|
3
4
|
/**
|
|
4
5
|
* Client Capability
|
|
5
6
|
*
|
|
@@ -12,7 +13,7 @@ export declare class ClientCapability {
|
|
|
12
13
|
static readonly CAPABILITY_ID = "confidential-http@1.0.0-alpha";
|
|
13
14
|
static readonly CAPABILITY_NAME = "confidential-http";
|
|
14
15
|
static readonly CAPABILITY_VERSION = "1.0.0-alpha";
|
|
15
|
-
sendRequest(runtime: Runtime<unknown>, input: ConfidentialHTTPRequest
|
|
16
|
+
sendRequest<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, ConfidentialHTTPRequest, ConfidentialHTTPRequestJson>): {
|
|
16
17
|
result: () => HTTPResponse;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type Request, type RequestJson, type Response } from '../../../../../generated/capabilities/networking/http/v1alpha/client_pb';
|
|
2
2
|
import type { NodeRuntime, Runtime } from '../../../../../sdk';
|
|
3
3
|
import type { ConsensusAggregation, PrimitiveTypes, UnwrapOptions } from '../../../../../sdk/utils';
|
|
4
|
+
import type { CapabilityInput } from '../../../../../sdk/utils/types/no-excess';
|
|
4
5
|
export declare class SendRequester {
|
|
5
6
|
private readonly runtime;
|
|
6
7
|
private readonly client;
|
|
7
8
|
constructor(runtime: NodeRuntime<unknown>, client: ClientCapability);
|
|
8
|
-
sendRequest(input: Request
|
|
9
|
+
sendRequest<TInput>(input: CapabilityInput<TInput, Request, RequestJson>): {
|
|
9
10
|
result: () => Response;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
@@ -21,7 +22,7 @@ export declare class ClientCapability {
|
|
|
21
22
|
static readonly CAPABILITY_ID = "http-actions@1.0.0-alpha";
|
|
22
23
|
static readonly CAPABILITY_NAME = "http-actions";
|
|
23
24
|
static readonly CAPABILITY_VERSION = "1.0.0-alpha";
|
|
24
|
-
sendRequest(runtime: NodeRuntime<unknown>, input: Request
|
|
25
|
+
sendRequest<TInput>(runtime: NodeRuntime<unknown>, input: CapabilityInput<TInput, Request, RequestJson>): {
|
|
25
26
|
result: () => Response;
|
|
26
27
|
};
|
|
27
28
|
sendRequest<TArgs extends unknown[], TOutput>(runtime: Runtime<unknown>, fn: (sendRequester: SendRequester, ...args: TArgs) => TOutput, consensusAggregation: ConsensusAggregation<TOutput, true>, unwrapOptions?: TOutput extends PrimitiveTypes ? never : UnwrapOptions<TOutput>): (...args: TArgs) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Any } from '@bufbuild/protobuf/wkt';
|
|
2
2
|
import { type Config, type ConfigJson, type Payload } from '../../../../../generated/capabilities/networking/http/v1alpha/trigger_pb';
|
|
3
3
|
import type { Trigger } from '../../../../../sdk/utils/triggers/trigger-interface';
|
|
4
|
+
import type { NoExcess } from '../../../../../sdk/utils/types/no-excess';
|
|
4
5
|
/**
|
|
5
6
|
* HTTP Capability
|
|
6
7
|
*
|
|
@@ -13,7 +14,7 @@ export declare class HTTPCapability {
|
|
|
13
14
|
static readonly CAPABILITY_ID = "http-trigger@1.0.0-alpha";
|
|
14
15
|
static readonly CAPABILITY_NAME = "http-trigger";
|
|
15
16
|
static readonly CAPABILITY_VERSION = "1.0.0-alpha";
|
|
16
|
-
trigger(config: ConfigJson): HTTPTrigger;
|
|
17
|
+
trigger<TConfig extends ConfigJson>(config: NoExcess<TConfig, ConfigJson>): HTTPTrigger;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Trigger implementation for Trigger
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Any } from '@bufbuild/protobuf/wkt';
|
|
2
2
|
import { type Config, type ConfigJson, type Payload } from '../../../../../generated/capabilities/scheduler/cron/v1/trigger_pb';
|
|
3
3
|
import type { Trigger } from '../../../../../sdk/utils/triggers/trigger-interface';
|
|
4
|
+
import type { NoExcess } from '../../../../../sdk/utils/types/no-excess';
|
|
4
5
|
/**
|
|
5
6
|
* Cron Capability
|
|
6
7
|
*
|
|
@@ -13,7 +14,7 @@ export declare class CronCapability {
|
|
|
13
14
|
static readonly CAPABILITY_ID = "cron-trigger@1.0.0";
|
|
14
15
|
static readonly CAPABILITY_NAME = "cron-trigger";
|
|
15
16
|
static readonly CAPABILITY_VERSION = "1.0.0";
|
|
16
|
-
trigger(config: ConfigJson): CronTrigger;
|
|
17
|
+
trigger<TConfig extends ConfigJson>(config: NoExcess<TConfig, ConfigJson>): CronTrigger;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Trigger implementation for Trigger
|
package/dist/pb.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as EVM_PB from './generated/capabilities/blockchain/evm/v1alpha/client_pb';
|
|
2
|
+
export * as SOLANA_PB from './generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
2
3
|
export * as CONFIDENTIAL_HTTP_CLIENT_PB from './generated/capabilities/networking/confidentialhttp/v1alpha/client_pb';
|
|
3
4
|
export * as HTTP_CLIENT_PB from './generated/capabilities/networking/http/v1alpha/client_pb';
|
|
4
5
|
export * as HTTP_TRIGGER_PB from './generated/capabilities/networking/http/v1alpha/trigger_pb';
|
package/dist/pb.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as EVM_PB from './generated/capabilities/blockchain/evm/v1alpha/client_pb';
|
|
2
|
+
export * as SOLANA_PB from './generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
2
3
|
export * as CONFIDENTIAL_HTTP_CLIENT_PB from './generated/capabilities/networking/confidentialhttp/v1alpha/client_pb';
|
|
3
4
|
export * as HTTP_CLIENT_PB from './generated/capabilities/networking/http/v1alpha/client_pb';
|
|
4
5
|
export * as HTTP_TRIGGER_PB from './generated/capabilities/networking/http/v1alpha/trigger_pb';
|
package/dist/sdk/cre/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Public API for the CRE SDK.
|
|
3
3
|
*/
|
|
4
4
|
import { ClientCapability as EVMClient } from '../../generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen';
|
|
5
|
+
import { ClientCapability as SolanaClient } from '../../generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen';
|
|
5
6
|
import { ClientCapability as ConfidentialHTTPClient } from '../../generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen';
|
|
6
7
|
import { ClientCapability as HTTPClient } from '../../generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen';
|
|
7
8
|
import { HTTPCapability } from '../../generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen';
|
|
@@ -10,9 +11,11 @@ import { CronCapability } from '../../generated-sdk/capabilities/scheduler/cron/
|
|
|
10
11
|
* Public exports for the CRE SDK.
|
|
11
12
|
*/
|
|
12
13
|
export { type Log as EVMLog, TxStatus, } from '../../generated/capabilities/blockchain/evm/v1alpha/client_pb';
|
|
14
|
+
export { ReceiverContractExecutionStatus as SolanaReceiverContractExecutionStatus, TxStatus as SolanaTxStatus, } from '../../generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
13
15
|
export type { Payload as HTTPPayload } from '../../generated/capabilities/networking/http/v1alpha/trigger_pb';
|
|
14
16
|
export type { Payload as CronPayload } from '../../generated/capabilities/scheduler/cron/v1/trigger_pb';
|
|
15
17
|
export { ClientCapability as EVMClient, type WriteCreReportRequest, type WriteCreReportRequestJson, } from '../../generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen';
|
|
18
|
+
export { ClientCapability as SolanaClient, type WriteCreReportRequest as SolanaWriteCreReportRequest, type WriteCreReportRequestJson as SolanaWriteCreReportRequestJson, } from '../../generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen';
|
|
16
19
|
export { ClientCapability as ConfidentialHTTPClient } from '../../generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen';
|
|
17
20
|
export { ClientCapability as HTTPClient, type SendRequester as HTTPSendRequester, } from '../../generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen';
|
|
18
21
|
export { HTTPCapability } from '../../generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen';
|
|
@@ -26,6 +29,7 @@ export declare const cre: {
|
|
|
26
29
|
ConfidentialHTTPClient: typeof ConfidentialHTTPClient;
|
|
27
30
|
HTTPClient: typeof HTTPClient;
|
|
28
31
|
EVMClient: typeof EVMClient;
|
|
32
|
+
SolanaClient: typeof SolanaClient;
|
|
29
33
|
};
|
|
30
34
|
handler: <TRawTriggerOutput extends import("@bufbuild/protobuf").Message<string>, TTriggerOutput, TConfig, TResult>(trigger: import("../utils/triggers/trigger-interface").Trigger<TRawTriggerOutput, TTriggerOutput>, fn: import("../workflow").HandlerFn<TConfig, TTriggerOutput, TResult>) => import("../workflow").HandlerEntry<TConfig, TRawTriggerOutput, TTriggerOutput, TResult>;
|
|
31
35
|
};
|
package/dist/sdk/cre/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Public API for the CRE SDK.
|
|
3
3
|
*/
|
|
4
4
|
import { ClientCapability as EVMClient } from '../../generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen';
|
|
5
|
+
import { ClientCapability as SolanaClient } from '../../generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen';
|
|
5
6
|
import { ClientCapability as ConfidentialHTTPClient } from '../../generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen';
|
|
6
7
|
import { ClientCapability as HTTPClient } from '../../generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen';
|
|
7
8
|
import { HTTPCapability } from '../../generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen';
|
|
@@ -12,8 +13,11 @@ import { handler } from '../workflow';
|
|
|
12
13
|
* Public exports for the CRE SDK.
|
|
13
14
|
*/
|
|
14
15
|
export { TxStatus, } from '../../generated/capabilities/blockchain/evm/v1alpha/client_pb';
|
|
16
|
+
export { ReceiverContractExecutionStatus as SolanaReceiverContractExecutionStatus, TxStatus as SolanaTxStatus, } from '../../generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
15
17
|
// EVM Capability
|
|
16
18
|
export { ClientCapability as EVMClient, } from '../../generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen';
|
|
19
|
+
// Solana Capability
|
|
20
|
+
export { ClientCapability as SolanaClient, } from '../../generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen';
|
|
17
21
|
// Confidential HTTP Capability
|
|
18
22
|
export { ClientCapability as ConfidentialHTTPClient } from '../../generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen';
|
|
19
23
|
// HTTP Capability
|
|
@@ -30,6 +34,7 @@ export const cre = {
|
|
|
30
34
|
ConfidentialHTTPClient,
|
|
31
35
|
HTTPClient,
|
|
32
36
|
EVMClient,
|
|
37
|
+
SolanaClient,
|
|
33
38
|
},
|
|
34
39
|
handler,
|
|
35
40
|
};
|
|
@@ -42,6 +42,7 @@ export declare class BaseRuntimeImpl<C> implements BaseRuntime<C> {
|
|
|
42
42
|
private awaitAndUnwrapCapabilityResponse;
|
|
43
43
|
getNextCallId(): number;
|
|
44
44
|
now(): Date;
|
|
45
|
+
sleep(ms: number): void;
|
|
45
46
|
log(message: string): void;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
@@ -110,6 +111,8 @@ export interface RuntimeHelpers {
|
|
|
110
111
|
switchModes(mode: Mode): void;
|
|
111
112
|
/** Returns current time in milliseconds since Unix epoch. */
|
|
112
113
|
now(): number;
|
|
114
|
+
/** Sleeps for the specified duration. */
|
|
115
|
+
sleep(ms: number): void;
|
|
113
116
|
/** Logs a message to the host environment. */
|
|
114
117
|
log(message: string): void;
|
|
115
118
|
}
|