File tree 28 files changed +59
-3
lines changed
server/routes/contract/extensions
28 files changed +59
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export async function erc1155airdrop(fastify: FastifyInstance) {
81
81
"x-backend-wallet-address" : walletAddress ,
82
82
"x-account-address" : accountAddress ,
83
83
"x-idempotency-key" : idempotencyKey ,
84
+ "x-transaction-mode" : transactionMode ,
84
85
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
85
86
const chainId = await getChainIdFromChain ( chain ) ;
86
87
const contract = await getContract ( {
@@ -98,6 +99,7 @@ export async function erc1155airdrop(fastify: FastifyInstance) {
98
99
extension : "erc1155" ,
99
100
idempotencyKey,
100
101
txOverrides,
102
+ transactionMode,
101
103
} ) ;
102
104
reply . status ( StatusCodes . OK ) . send ( {
103
105
result : {
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export async function erc1155burnBatch(fastify: FastifyInstance) {
69
69
"x-backend-wallet-address" : walletAddress ,
70
70
"x-account-address" : accountAddress ,
71
71
"x-idempotency-key" : idempotencyKey ,
72
+ "x-transaction-mode" : transactionMode ,
72
73
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
73
74
74
75
const chainId = await getChainIdFromChain ( chain ) ;
@@ -87,6 +88,7 @@ export async function erc1155burnBatch(fastify: FastifyInstance) {
87
88
extension : "erc1155" ,
88
89
idempotencyKey,
89
90
txOverrides,
91
+ transactionMode,
90
92
} ) ;
91
93
92
94
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export async function erc1155burn(fastify: FastifyInstance) {
63
63
"x-backend-wallet-address" : walletAddress ,
64
64
"x-account-address" : accountAddress ,
65
65
"x-idempotency-key" : idempotencyKey ,
66
+ "x-transaction-mode" : transactionMode ,
66
67
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
67
68
68
69
const chainId = await getChainIdFromChain ( chain ) ;
@@ -81,6 +82,7 @@ export async function erc1155burn(fastify: FastifyInstance) {
81
82
extension : "erc1155" ,
82
83
idempotencyKey,
83
84
txOverrides,
85
+ transactionMode,
84
86
} ) ;
85
87
86
88
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export async function erc1155lazyMint(fastify: FastifyInstance) {
69
69
"x-backend-wallet-address" : walletAddress ,
70
70
"x-account-address" : accountAddress ,
71
71
"x-idempotency-key" : idempotencyKey ,
72
+ "x-transaction-mode" : transactionMode ,
72
73
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
73
74
74
75
const chainId = await getChainIdFromChain ( chain ) ;
@@ -87,6 +88,7 @@ export async function erc1155lazyMint(fastify: FastifyInstance) {
87
88
extension : "erc1155" ,
88
89
idempotencyKey,
89
90
txOverrides,
91
+ transactionMode,
90
92
} ) ;
91
93
92
94
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export async function erc1155mintAdditionalSupplyTo(fastify: FastifyInstance) {
70
70
"x-backend-wallet-address" : walletAddress ,
71
71
"x-account-address" : accountAddress ,
72
72
"x-idempotency-key" : idempotencyKey ,
73
+ "x-transaction-mode" : transactionMode ,
73
74
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
74
75
75
76
const chainId = await getChainIdFromChain ( chain ) ;
@@ -92,6 +93,7 @@ export async function erc1155mintAdditionalSupplyTo(fastify: FastifyInstance) {
92
93
extension : "erc1155" ,
93
94
idempotencyKey,
94
95
txOverrides,
96
+ transactionMode,
95
97
} ) ;
96
98
97
99
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export async function erc1155mintBatchTo(fastify: FastifyInstance) {
86
86
"x-backend-wallet-address" : walletAddress ,
87
87
"x-account-address" : accountAddress ,
88
88
"x-idempotency-key" : idempotencyKey ,
89
+ "x-transaction-mode" : transactionMode ,
89
90
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
90
91
91
92
const chainId = await getChainIdFromChain ( chain ) ;
@@ -107,6 +108,7 @@ export async function erc1155mintBatchTo(fastify: FastifyInstance) {
107
108
extension : "erc1155" ,
108
109
idempotencyKey,
109
110
txOverrides,
111
+ transactionMode,
110
112
} ) ;
111
113
112
114
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export async function erc1155SetApprovalForAll(fastify: FastifyInstance) {
66
66
"x-backend-wallet-address" : walletAddress ,
67
67
"x-account-address" : accountAddress ,
68
68
"x-idempotency-key" : idempotencyKey ,
69
+ "x-transaction-mode" : transactionMode ,
69
70
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
70
71
71
72
const chainId = await getChainIdFromChain ( chain ) ;
@@ -87,6 +88,7 @@ export async function erc1155SetApprovalForAll(fastify: FastifyInstance) {
87
88
extension : "erc1155" ,
88
89
idempotencyKey,
89
90
txOverrides,
91
+ transactionMode,
90
92
} ) ;
91
93
92
94
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export async function erc1155SetBatchClaimConditions(fastify: FastifyInstance) {
70
70
"x-backend-wallet-address" : walletAddress ,
71
71
"x-account-address" : accountAddress ,
72
72
"x-idempotency-key" : idempotencyKey ,
73
+ "x-transaction-mode" : transactionMode ,
73
74
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
74
75
75
76
const chainId = await getChainIdFromChain ( chain ) ;
@@ -118,6 +119,7 @@ export async function erc1155SetBatchClaimConditions(fastify: FastifyInstance) {
118
119
extension : "erc1155" ,
119
120
idempotencyKey,
120
121
txOverrides,
122
+ transactionMode,
121
123
} ) ;
122
124
123
125
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export async function erc1155SetClaimCondition(fastify: FastifyInstance) {
67
67
"x-backend-wallet-address" : walletAddress ,
68
68
"x-account-address" : accountAddress ,
69
69
"x-idempotency-key" : idempotencyKey ,
70
+ "x-transaction-mode" : transactionMode ,
70
71
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
71
72
72
73
const chainId = await getChainIdFromChain ( chain ) ;
@@ -105,6 +106,7 @@ export async function erc1155SetClaimCondition(fastify: FastifyInstance) {
105
106
extension : "erc1155" ,
106
107
idempotencyKey,
107
108
txOverrides,
109
+ transactionMode,
108
110
} ) ;
109
111
110
112
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export async function erc1155SignatureMint(fastify: FastifyInstance) {
62
62
"x-backend-wallet-address" : walletAddress ,
63
63
"x-account-address" : accountAddress ,
64
64
"x-idempotency-key" : idempotencyKey ,
65
+ "x-transaction-mode" : transactionMode ,
65
66
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
66
67
67
68
const chainId = await getChainIdFromChain ( chain ) ;
@@ -91,6 +92,7 @@ export async function erc1155SignatureMint(fastify: FastifyInstance) {
91
92
extension : "erc1155" ,
92
93
idempotencyKey,
93
94
txOverrides,
95
+ transactionMode,
94
96
} ) ;
95
97
96
98
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export async function erc1155UpdateClaimConditions(fastify: FastifyInstance) {
65
65
"x-backend-wallet-address" : walletAddress ,
66
66
"x-account-address" : accountAddress ,
67
67
"x-idempotency-key" : idempotencyKey ,
68
+ "x-transaction-mode" : transactionMode ,
68
69
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
69
70
70
71
const chainId = await getChainIdFromChain ( chain ) ;
@@ -105,6 +106,7 @@ export async function erc1155UpdateClaimConditions(fastify: FastifyInstance) {
105
106
extension : "erc1155" ,
106
107
idempotencyKey,
107
108
txOverrides,
109
+ transactionMode,
108
110
} ) ;
109
111
110
112
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export async function erc1155UpdateTokenMetadata(fastify: FastifyInstance) {
56
56
"x-backend-wallet-address" : walletAddress ,
57
57
"x-account-address" : accountAddress ,
58
58
"x-idempotency-key" : idempotencyKey ,
59
+ "x-transaction-mode" : transactionMode ,
59
60
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
60
61
61
62
const chainId = await getChainIdFromChain ( chain ) ;
@@ -77,6 +78,7 @@ export async function erc1155UpdateTokenMetadata(fastify: FastifyInstance) {
77
78
extension : "erc1155" ,
78
79
idempotencyKey,
79
80
txOverrides,
81
+ transactionMode,
80
82
} ) ;
81
83
82
84
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export async function erc20burnFrom(fastify: FastifyInstance) {
67
67
"x-backend-wallet-address" : walletAddress ,
68
68
"x-account-address" : accountAddress ,
69
69
"x-idempotency-key" : idempotencyKey ,
70
+ "x-transaction-mode" : transactionMode ,
70
71
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
71
72
72
73
const chainId = await getChainIdFromChain ( chain ) ;
@@ -85,6 +86,7 @@ export async function erc20burnFrom(fastify: FastifyInstance) {
85
86
extension : "erc20" ,
86
87
idempotencyKey,
87
88
txOverrides,
89
+ transactionMode,
88
90
} ) ;
89
91
90
92
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export async function erc20burn(fastify: FastifyInstance) {
60
60
"x-backend-wallet-address" : walletAddress ,
61
61
"x-account-address" : accountAddress ,
62
62
"x-idempotency-key" : idempotencyKey ,
63
+ "x-transaction-mode" : transactionMode ,
63
64
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
64
65
65
66
const chainId = await getChainIdFromChain ( chain ) ;
@@ -78,6 +79,7 @@ export async function erc20burn(fastify: FastifyInstance) {
78
79
extension : "erc20" ,
79
80
idempotencyKey,
80
81
txOverrides,
82
+ transactionMode,
81
83
} ) ;
82
84
83
85
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export async function erc20mintBatchTo(fastify: FastifyInstance) {
77
77
"x-backend-wallet-address" : walletAddress ,
78
78
"x-account-address" : accountAddress ,
79
79
"x-idempotency-key" : idempotencyKey ,
80
+ "x-transaction-mode" : transactionMode ,
80
81
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
81
82
82
83
const chainId = await getChainIdFromChain ( chain ) ;
@@ -95,6 +96,7 @@ export async function erc20mintBatchTo(fastify: FastifyInstance) {
95
96
extension : "erc20" ,
96
97
idempotencyKey,
97
98
txOverrides,
99
+ transactionMode,
98
100
} ) ;
99
101
100
102
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export async function erc20SetAlowance(fastify: FastifyInstance) {
66
66
"x-backend-wallet-address" : walletAddress ,
67
67
"x-account-address" : accountAddress ,
68
68
"x-idempotency-key" : idempotencyKey ,
69
+ "x-transaction-mode" : transactionMode ,
69
70
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
70
71
71
72
const chainId = await getChainIdFromChain ( chain ) ;
@@ -87,6 +88,7 @@ export async function erc20SetAlowance(fastify: FastifyInstance) {
87
88
extension : "erc20" ,
88
89
idempotencyKey,
89
90
txOverrides,
91
+ transactionMode,
90
92
} ) ;
91
93
92
94
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export async function erc20SetClaimConditions(fastify: FastifyInstance) {
60
60
"x-backend-wallet-address" : walletAddress ,
61
61
"x-account-address" : accountAddress ,
62
62
"x-idempotency-key" : idempotencyKey ,
63
+ "x-transaction-mode" : transactionMode ,
63
64
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
64
65
65
66
const chainId = await getChainIdFromChain ( chain ) ;
@@ -96,6 +97,7 @@ export async function erc20SetClaimConditions(fastify: FastifyInstance) {
96
97
extension : "erc20" ,
97
98
idempotencyKey,
98
99
txOverrides,
100
+ transactionMode,
99
101
} ) ;
100
102
101
103
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export async function erc20SignatureMint(fastify: FastifyInstance) {
62
62
"x-backend-wallet-address" : walletAddress ,
63
63
"x-account-address" : accountAddress ,
64
64
"x-idempotency-key" : idempotencyKey ,
65
+ "x-transaction-mode" : transactionMode ,
65
66
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
66
67
67
68
const chainId = await getChainIdFromChain ( chain ) ;
@@ -90,6 +91,7 @@ export async function erc20SignatureMint(fastify: FastifyInstance) {
90
91
extension : "erc20" ,
91
92
idempotencyKey,
92
93
txOverrides,
94
+ transactionMode,
93
95
} ) ;
94
96
95
97
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export async function erc20UpdateClaimConditions(fastify: FastifyInstance) {
62
62
"x-backend-wallet-address" : walletAddress ,
63
63
"x-account-address" : accountAddress ,
64
64
"x-idempotency-key" : idempotencyKey ,
65
+ "x-transaction-mode" : transactionMode ,
65
66
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
66
67
67
68
const chainId = await getChainIdFromChain ( chain ) ;
@@ -101,6 +102,7 @@ export async function erc20UpdateClaimConditions(fastify: FastifyInstance) {
101
102
extension : "erc20" ,
102
103
idempotencyKey,
103
104
txOverrides,
105
+ transactionMode,
104
106
} ) ;
105
107
106
108
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export async function erc721burn(fastify: FastifyInstance) {
59
59
"x-backend-wallet-address" : walletAddress ,
60
60
"x-account-address" : accountAddress ,
61
61
"x-idempotency-key" : idempotencyKey ,
62
+ "x-transaction-mode" : transactionMode ,
62
63
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
63
64
64
65
const chainId = await getChainIdFromChain ( chain ) ;
@@ -77,6 +78,7 @@ export async function erc721burn(fastify: FastifyInstance) {
77
78
extension : "erc721" ,
78
79
idempotencyKey,
79
80
txOverrides,
81
+ transactionMode,
80
82
} ) ;
81
83
82
84
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export async function erc721lazyMint(fastify: FastifyInstance) {
69
69
"x-backend-wallet-address" : walletAddress ,
70
70
"x-account-address" : accountAddress ,
71
71
"x-idempotency-key" : idempotencyKey ,
72
+ "x-transaction-mode" : transactionMode ,
72
73
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
73
74
74
75
const chainId = await getChainIdFromChain ( chain ) ;
@@ -87,6 +88,7 @@ export async function erc721lazyMint(fastify: FastifyInstance) {
87
88
extension : "erc721" ,
88
89
idempotencyKey,
89
90
txOverrides,
91
+ transactionMode,
90
92
} ) ;
91
93
92
94
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export async function erc721mintBatchTo(fastify: FastifyInstance) {
76
76
"x-backend-wallet-address" : walletAddress ,
77
77
"x-account-address" : accountAddress ,
78
78
"x-idempotency-key" : idempotencyKey ,
79
+ "x-transaction-mode" : transactionMode ,
79
80
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
80
81
81
82
const chainId = await getChainIdFromChain ( chain ) ;
@@ -93,6 +94,7 @@ export async function erc721mintBatchTo(fastify: FastifyInstance) {
93
94
extension : "erc721" ,
94
95
idempotencyKey,
95
96
txOverrides,
97
+ transactionMode,
96
98
} ) ;
97
99
98
100
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export async function erc721SetApprovalForAll(fastify: FastifyInstance) {
64
64
"x-backend-wallet-address" : walletAddress ,
65
65
"x-account-address" : accountAddress ,
66
66
"x-idempotency-key" : idempotencyKey ,
67
+ "x-transaction-mode" : transactionMode ,
67
68
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
68
69
69
70
const chainId = await getChainIdFromChain ( chain ) ;
@@ -85,6 +86,7 @@ export async function erc721SetApprovalForAll(fastify: FastifyInstance) {
85
86
extension : "erc721" ,
86
87
idempotencyKey,
87
88
txOverrides,
89
+ transactionMode,
88
90
} ) ;
89
91
90
92
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export async function erc721SetApprovalForToken(fastify: FastifyInstance) {
64
64
"x-backend-wallet-address" : walletAddress ,
65
65
"x-account-address" : accountAddress ,
66
66
"x-idempotency-key" : idempotencyKey ,
67
+ "x-transaction-mode" : transactionMode ,
67
68
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
68
69
69
70
const chainId = await getChainIdFromChain ( chain ) ;
@@ -85,6 +86,7 @@ export async function erc721SetApprovalForToken(fastify: FastifyInstance) {
85
86
extension : "erc721" ,
86
87
idempotencyKey,
87
88
txOverrides,
89
+ transactionMode,
88
90
} ) ;
89
91
90
92
reply . status ( StatusCodes . OK ) . send ( {
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export async function erc721SetClaimConditions(fastify: FastifyInstance) {
60
60
"x-backend-wallet-address" : walletAddress ,
61
61
"x-account-address" : accountAddress ,
62
62
"x-idempotency-key" : idempotencyKey ,
63
+ "x-transaction-mode" : transactionMode ,
63
64
} = request . headers as Static < typeof walletWithAAHeaderSchema > ;
64
65
65
66
const chainId = await getChainIdFromChain ( chain ) ;
@@ -96,6 +97,7 @@ export async function erc721SetClaimConditions(fastify: FastifyInstance) {
96
97
extension : "erc721" ,
97
98
idempotencyKey,
98
99
txOverrides,
100
+ transactionMode,
99
101
} ) ;
100
102
101
103
reply . status ( StatusCodes . OK ) . send ( {
You can’t perform that action at this time.
0 commit comments