Skip to content

Commit 52ded91

Browse files
committed
v15.2.0: pass down deadline to getTransaction (solana pay)
1 parent 8dd0d7e commit 52ded91

11 files changed

Lines changed: 17 additions & 17 deletions

File tree

dist/esm/index.evm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57226,7 +57226,7 @@ const payment = async({ paymentRoute, deadline })=> {
5722657226

5722757227
const getTransaction$3 = async({ paymentRoute })=> {
5722857228

57229-
const deadline = getDeadline();
57229+
const deadline = paymentRoute.deadline || getDeadline();
5723057230

5723157231
let instructions = (
5723257232
await Promise.all([
@@ -58626,7 +58626,7 @@ let addRouteAmounts = (route)=> {
5862658626
};
5862758627

5862858628
const getTransaction = (paymentRoute)=>{
58629-
if(paymentRoute.blockchain === 'solana') {
58629+
if(paymentRoute.blockchain === 'solana') { // solanapay
5863058630
return getTransaction$3({ paymentRoute })
5863158631
}
5863258632
};

dist/esm/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,7 +3015,7 @@ const payment = async({ paymentRoute, deadline })=> {
30153015

30163016
const getTransaction$3 = async({ paymentRoute })=> {
30173017

3018-
const deadline = getDeadline();
3018+
const deadline = paymentRoute.deadline || getDeadline();
30193019

30203020
let instructions = (
30213021
await Promise.all([
@@ -3893,7 +3893,7 @@ let addRouteAmounts = (route)=> {
38933893
};
38943894

38953895
const getTransaction = (paymentRoute)=>{
3896-
if(paymentRoute.blockchain === 'solana') {
3896+
if(paymentRoute.blockchain === 'solana') { // solanapay
38973897
return getTransaction$3({ paymentRoute })
38983898
}
38993899
};

dist/esm/index.svm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4341,7 +4341,7 @@ const payment = async({ paymentRoute, deadline })=> {
43414341

43424342
const getTransaction$2 = async({ paymentRoute })=> {
43434343

4344-
const deadline = getDeadline();
4344+
const deadline = paymentRoute.deadline || getDeadline();
43454345

43464346
let instructions = (
43474347
await Promise.all([
@@ -4844,7 +4844,7 @@ let addRouteAmounts = (route)=> {
48444844
};
48454845

48464846
const getTransaction = (paymentRoute)=>{
4847-
if(paymentRoute.blockchain === 'solana') {
4847+
if(paymentRoute.blockchain === 'solana') { // solanapay
48484848
return getTransaction$2({ paymentRoute })
48494849
}
48504850
};

dist/umd/index.evm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57233,7 +57233,7 @@
5723357233

5723457234
const getTransaction$3 = async({ paymentRoute })=> {
5723557235

57236-
const deadline = getDeadline();
57236+
const deadline = paymentRoute.deadline || getDeadline();
5723757237

5723857238
let instructions = (
5723957239
await Promise.all([
@@ -58633,7 +58633,7 @@
5863358633
};
5863458634

5863558635
const getTransaction = (paymentRoute)=>{
58636-
if(paymentRoute.blockchain === 'solana') {
58636+
if(paymentRoute.blockchain === 'solana') { // solanapay
5863758637
return getTransaction$3({ paymentRoute })
5863858638
}
5863958639
};

dist/umd/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3021,7 +3021,7 @@
30213021

30223022
const getTransaction$3 = async({ paymentRoute })=> {
30233023

3024-
const deadline = getDeadline();
3024+
const deadline = paymentRoute.deadline || getDeadline();
30253025

30263026
let instructions = (
30273027
await Promise.all([
@@ -3899,7 +3899,7 @@
38993899
};
39003900

39013901
const getTransaction = (paymentRoute)=>{
3902-
if(paymentRoute.blockchain === 'solana') {
3902+
if(paymentRoute.blockchain === 'solana') { // solanapay
39033903
return getTransaction$3({ paymentRoute })
39043904
}
39053905
};

dist/umd/index.svm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4347,7 +4347,7 @@
43474347

43484348
const getTransaction$2 = async({ paymentRoute })=> {
43494349

4350-
const deadline = getDeadline();
4350+
const deadline = paymentRoute.deadline || getDeadline();
43514351

43524352
let instructions = (
43534353
await Promise.all([
@@ -4850,7 +4850,7 @@
48504850
};
48514851

48524852
const getTransaction = (paymentRoute)=>{
4853-
if(paymentRoute.blockchain === 'solana') {
4853+
if(paymentRoute.blockchain === 'solana') { // solanapay
48544854
return getTransaction$2({ paymentRoute })
48554855
}
48564856
};

package.evm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-payments-evm",
33
"moduleName": "Web3Payments",
4-
"version": "15.1.5",
4+
"version": "15.2.0",
55
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
66
"main": "dist/umd/index.evm.js",
77
"module": "dist/esm/index.evm.js",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-payments",
33
"moduleName": "Web3Payments",
4-
"version": "15.1.5",
4+
"version": "15.2.0",
55
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
66
"main": "dist/umd/index.js",
77
"module": "dist/esm/index.js",

package.svm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-payments-svm",
33
"moduleName": "Web3Payments",
4-
"version": "15.1.5",
4+
"version": "15.2.0",
55
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
66
"main": "dist/umd/index.svm.js",
77
"module": "dist/esm/index.svm.js",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import route from './route'
33
import routers from './routers'
44

55
const getTransaction = (paymentRoute)=>{
6-
if(paymentRoute.blockchain === 'solana') {
6+
if(paymentRoute.blockchain === 'solana') { // solanapay
77
return getSVMTransaction({ paymentRoute })
88
}
99
}

0 commit comments

Comments
 (0)