@plutonlabs/sdk 0.0.35-beta → 0.0.36-beta

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.
@@ -70,8 +70,25 @@
70
70
  "chainId": 5000,
71
71
  "lastParsedBlock": 0,
72
72
  "confirmationCount": 3,
73
- "providers": [],
74
- "isActive": false
73
+ "providers": [
74
+ {
75
+ "name": "public",
76
+ "coinType": 5000,
77
+ "chainId": 5000,
78
+ "protocolType": 1,
79
+ "url": "https://mantle-rpc.publicnode.com",
80
+ "apiKey": ""
81
+ },
82
+ {
83
+ "name": "public",
84
+ "coinType": 5000,
85
+ "chainId": 5000,
86
+ "protocolType": 2,
87
+ "url": "wss://mantle-rpc.publicnode.com",
88
+ "apiKey": ""
89
+ }
90
+ ],
91
+ "isActive": true
75
92
  },
76
93
  {
77
94
  "name": "TON",
@@ -540,7 +540,113 @@
540
540
  },
541
541
  "proxy": {
542
542
  "address": "0x8bC1Aff4D3de49bD9B710c31638d82E502CF4C68",
543
- "abi": [{ "type": "constructor", "inputs": [{ "name": "_rangoDiamondAddress", "type": "address", "internalType": "address" }, { "name": "_plutonContractAddress", "type": "address", "internalType": "address" }, { "name": "_baseTokenAddress", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "baseTokenAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plutonContract", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract PlutonContract" }], "stateMutability": "view" }, { "type": "function", "name": "rangoDiamondAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "swapAndpluton", "inputs": [{ "name": "plutonRequest", "type": "tuple", "internalType": "struct IPlutonMiddleware.PlutonRequest", "components": [{ "name": "id", "type": "bytes", "internalType": "bytes" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "initiationExpiry", "type": "uint256", "internalType": "uint256" }, { "name": "orderDataType", "type": "bytes32", "internalType": "bytes32" }, { "name": "orderData", "type": "bytes", "internalType": "bytes" }] }, { "name": "srcTokenAddress", "type": "address", "internalType": "address" }, { "name": "amountIn", "type": "uint256", "internalType": "uint256" }, { "name": "swapCallData", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "error", "name": "RangoSwapFailed", "inputs": [] }, { "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] }]
543
+ "abi": [
544
+ {
545
+ "type": "constructor",
546
+ "inputs": [
547
+ {
548
+ "name": "_rangoDiamondAddress",
549
+ "type": "address",
550
+ "internalType": "address"
551
+ },
552
+ {
553
+ "name": "_plutonContractAddress",
554
+ "type": "address",
555
+ "internalType": "address"
556
+ },
557
+ {
558
+ "name": "_baseTokenAddress",
559
+ "type": "address",
560
+ "internalType": "address"
561
+ }
562
+ ],
563
+ "stateMutability": "nonpayable"
564
+ },
565
+ {
566
+ "type": "function",
567
+ "name": "baseTokenAddress",
568
+ "inputs": [],
569
+ "outputs": [
570
+ { "name": "", "type": "address", "internalType": "address" }
571
+ ],
572
+ "stateMutability": "view"
573
+ },
574
+ {
575
+ "type": "function",
576
+ "name": "plutonContract",
577
+ "inputs": [],
578
+ "outputs": [
579
+ {
580
+ "name": "",
581
+ "type": "address",
582
+ "internalType": "contract PlutonContract"
583
+ }
584
+ ],
585
+ "stateMutability": "view"
586
+ },
587
+ {
588
+ "type": "function",
589
+ "name": "rangoDiamondAddress",
590
+ "inputs": [],
591
+ "outputs": [
592
+ { "name": "", "type": "address", "internalType": "address" }
593
+ ],
594
+ "stateMutability": "view"
595
+ },
596
+ {
597
+ "type": "function",
598
+ "name": "swapAndpluton",
599
+ "inputs": [
600
+ {
601
+ "name": "plutonRequest",
602
+ "type": "tuple",
603
+ "internalType": "struct IPlutonMiddleware.PlutonRequest",
604
+ "components": [
605
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
606
+ {
607
+ "name": "user",
608
+ "type": "address",
609
+ "internalType": "address"
610
+ },
611
+ {
612
+ "name": "initiationExpiry",
613
+ "type": "uint256",
614
+ "internalType": "uint256"
615
+ },
616
+ {
617
+ "name": "orderDataType",
618
+ "type": "bytes32",
619
+ "internalType": "bytes32"
620
+ },
621
+ {
622
+ "name": "orderData",
623
+ "type": "bytes",
624
+ "internalType": "bytes"
625
+ }
626
+ ]
627
+ },
628
+ {
629
+ "name": "srcTokenAddress",
630
+ "type": "address",
631
+ "internalType": "address"
632
+ },
633
+ {
634
+ "name": "amountIn",
635
+ "type": "uint256",
636
+ "internalType": "uint256"
637
+ },
638
+ { "name": "swapCallData", "type": "bytes", "internalType": "bytes" }
639
+ ],
640
+ "outputs": [],
641
+ "stateMutability": "payable"
642
+ },
643
+ { "type": "error", "name": "RangoSwapFailed", "inputs": [] },
644
+ {
645
+ "type": "error",
646
+ "name": "ReentrancyGuardReentrantCall",
647
+ "inputs": []
648
+ }
649
+ ]
544
650
  }
545
651
  },
546
652
  {
@@ -1084,7 +1190,125 @@
1084
1190
  },
1085
1191
  "proxy": {
1086
1192
  "address": "0x9498873819b83C144cC7cF824493Ab1dCa29ab3F",
1087
- "abi": [{ "type": "constructor", "inputs": [{ "name": "_rangoDiamondAddress", "type": "address", "internalType": "address" }, { "name": "_plutonContractAddress", "type": "address", "internalType": "address" }, { "name": "_baseTokenAddress", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "baseTokenAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plutonContract", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract PlutonContract" }], "stateMutability": "view" }, { "type": "function", "name": "rangoDiamondAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "swapAndpluton", "inputs": [{ "name": "plutonRequest", "type": "tuple", "internalType": "struct IPlutonMiddleware.PlutonRequest", "components": [{ "name": "id", "type": "bytes", "internalType": "bytes" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "initiationExpiry", "type": "uint256", "internalType": "uint256" }, { "name": "orderDataType", "type": "bytes32", "internalType": "bytes32" }, { "name": "orderData", "type": "bytes", "internalType": "bytes" }] }, { "name": "srcTokenAddress", "type": "address", "internalType": "address" }, { "name": "amountIn", "type": "uint256", "internalType": "uint256" }, { "name": "swapCallData", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "error", "name": "RangoSwapFailed", "inputs": [] }, { "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] }]
1193
+ "abi": [
1194
+ {
1195
+ "type": "constructor",
1196
+ "inputs": [
1197
+ {
1198
+ "name": "_rangoDiamondAddress",
1199
+ "type": "address",
1200
+ "internalType": "address"
1201
+ },
1202
+ {
1203
+ "name": "_plutonContractAddress",
1204
+ "type": "address",
1205
+ "internalType": "address"
1206
+ },
1207
+ {
1208
+ "name": "_baseTokenAddress",
1209
+ "type": "address",
1210
+ "internalType": "address"
1211
+ }
1212
+ ],
1213
+ "stateMutability": "nonpayable"
1214
+ },
1215
+ {
1216
+ "type": "function",
1217
+ "name": "baseTokenAddress",
1218
+ "inputs": [],
1219
+ "outputs": [
1220
+ { "name": "", "type": "address", "internalType": "address" }
1221
+ ],
1222
+ "stateMutability": "view"
1223
+ },
1224
+ {
1225
+ "type": "function",
1226
+ "name": "plutonContract",
1227
+ "inputs": [],
1228
+ "outputs": [
1229
+ {
1230
+ "name": "",
1231
+ "type": "address",
1232
+ "internalType": "contract PlutonContract"
1233
+ }
1234
+ ],
1235
+ "stateMutability": "view"
1236
+ },
1237
+ {
1238
+ "type": "function",
1239
+ "name": "rangoDiamondAddress",
1240
+ "inputs": [],
1241
+ "outputs": [
1242
+ { "name": "", "type": "address", "internalType": "address" }
1243
+ ],
1244
+ "stateMutability": "view"
1245
+ },
1246
+ {
1247
+ "type": "function",
1248
+ "name": "swapAndpluton",
1249
+ "inputs": [
1250
+ {
1251
+ "name": "plutonRequest",
1252
+ "type": "tuple",
1253
+ "internalType": "struct IPlutonMiddleware.PlutonRequest",
1254
+ "components": [
1255
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
1256
+ {
1257
+ "name": "user",
1258
+ "type": "address",
1259
+ "internalType": "address"
1260
+ },
1261
+ {
1262
+ "name": "initiationExpiry",
1263
+ "type": "uint256",
1264
+ "internalType": "uint256"
1265
+ },
1266
+ {
1267
+ "name": "orderDataType",
1268
+ "type": "bytes32",
1269
+ "internalType": "bytes32"
1270
+ },
1271
+ {
1272
+ "name": "orderData",
1273
+ "type": "bytes",
1274
+ "internalType": "bytes"
1275
+ }
1276
+ ]
1277
+ },
1278
+ {
1279
+ "name": "srcTokenAddress",
1280
+ "type": "address",
1281
+ "internalType": "address"
1282
+ },
1283
+ {
1284
+ "name": "amountIn",
1285
+ "type": "uint256",
1286
+ "internalType": "uint256"
1287
+ },
1288
+ { "name": "swapCallData", "type": "bytes", "internalType": "bytes" }
1289
+ ],
1290
+ "outputs": [],
1291
+ "stateMutability": "payable"
1292
+ },
1293
+ { "type": "error", "name": "RangoSwapFailed", "inputs": [] },
1294
+ {
1295
+ "type": "error",
1296
+ "name": "ReentrancyGuardReentrantCall",
1297
+ "inputs": []
1298
+ }
1299
+ ]
1300
+ }
1301
+ },
1302
+ {
1303
+ "coinType": 5000,
1304
+ "chainId": 5000,
1305
+ "pluton": {
1306
+ "address": "0x2C07aD3B59791F630E109C822af6f9f09392C661",
1307
+ "abi": []
1308
+ },
1309
+ "proxy": {
1310
+ "address": "0x9498873819b83C144cC7cF824493Ab1dCa29ab3F",
1311
+ "abi": []
1088
1312
  }
1089
1313
  }
1090
1314
  ]
@@ -109,6 +109,17 @@
109
109
  "isNative": true,
110
110
  "isBase": false
111
111
  },
112
+ {
113
+ "name": "Wrapped Mantle",
114
+ "symbol": "WMNT",
115
+ "address": "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
116
+ "decimals": 18,
117
+ "img": "https://zengo.com/wp-content/uploads/wETH_desktop.svg",
118
+ "coinType": 5000,
119
+ "chainId": 5000,
120
+ "isNative": false,
121
+ "isBase": false
122
+ },
112
123
  {
113
124
  "name": "Tether USD",
114
125
  "symbol": "USDT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plutonlabs/sdk",
3
- "version": "0.0.35-beta",
3
+ "version": "0.0.36-beta",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [