Skip to content

Commit 1cd845f

Browse files
committed
Merge branch 'develop' of https://github.com/expand-network/sdk-nodejs into feature_ENC-2673_Limit-Order-Signing
2 parents b058f6c + 1dc2417 commit 1cd845f

File tree

20 files changed

+4908
-2507
lines changed

20 files changed

+4908
-2507
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,19 @@ async function swap() {
216216
}
217217
swap();
218218
```
219+
## Expand now supports Versioned transactions on Solana
220+
### Versioned transaction
221+
Versioned Transactions are the new transaction format that allows for additional functionality in the Solana runtime, including Address Lookup Tables.
222+
223+
The Solana runtime supports two transaction versions:
224+
225+
* **legacy** - older transaction format with no additional benefit
226+
* **0** - added support for Address Lookup Tables
227+
228+
*(0 is known as versioned transaction)
229+
230+
Now using expand users can leverage Versioned Transactions to pack richer instruction sets into a single transaction and use lookup tables.
231+
219232
## Examples
220233
### Get balance
221234
Sample code: get balances from different chains: Ethereum, BSC and Solana.

configuration/config.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@
9090
"chainName": "Evm",
9191
"chainSymbol": "TFTM"
9292
},
93+
"324": {
94+
"localName": "zkSync",
95+
"chainName": "Evm",
96+
"chainSymbol": "ZKS"
97+
},
98+
"300": {
99+
"localName": "zkSync",
100+
"chainName": "Evm",
101+
"chainSymbol": "TZKS"
102+
},
93103
"900": {
94104
"localName": "Solana",
95105
"chainName": "Solana",
@@ -172,7 +182,7 @@
172182
"rpc": "https://fullnode.testnet.aptoslabs.com",
173183
"publicRpc": "https://fullnode.testnet.aptoslabs.com"
174184
},
175-
"300": {
185+
"400": {
176186
"localName": "StarkNet",
177187
"chainName": "StarkNet",
178188
"chainSymbol": "STRK",
@@ -182,7 +192,7 @@
182192
"domain": "infura.io",
183193
"sslMateId": "4054117900"
184194
},
185-
"301": {
195+
"401": {
186196
"localName": "StarkNetTestnet",
187197
"chainName": "StarkNet",
188198
"chainSymbol": "TSTRK",
@@ -261,6 +271,18 @@
261271
"chainSymbol": "TXLM",
262272
"networkPassphrase": "Test SDF Network ; September 2015",
263273
"rpc": "https://horizon-testnet.stellar.org"
274+
},
275+
"1600": {
276+
"localName": "XRPLedger",
277+
"chainName": "XRPL",
278+
"chainSymbol": "XRPL",
279+
"network": "mainnet"
280+
},
281+
"1601": {
282+
"localName": "XRPLedgerTestnet",
283+
"chainName": "XRPL",
284+
"chainSymbol": "TXRPL",
285+
"network": "testnet"
264286
}
265287
},
266288
"fireblocks": {

configuration/schema.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,24 @@ exports.jsonSchema = {
228228
},
229229
},
230230

231+
// Field Mapping for xrplSignTransaction() function
232+
{
233+
if: {
234+
properties: {
235+
function: { type: "string", pattern: "xrplSignTransaction()" },
236+
}
237+
},
238+
then: {
239+
properties: {
240+
chainId: { type: "string" },
241+
chainSymbol: { type: "string" },
242+
data: { type: "string" },
243+
rpc: { type: "string" },
244+
},
245+
required: ["data"]
246+
},
247+
},
248+
231249
// Field Mapping for userOnboardingDYDX() function
232250
{
233251
if: {

0 commit comments

Comments
 (0)