@evergonlabs/tmi-protocol-api 0.4.0 → 0.5.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/app.d.ts +476 -157
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +4 -0
- package/dist/client.d.ts +529 -157
- package/dist/client.d.ts.map +1 -1
- package/dist/common/abis/erc20Whitelisted.d.ts +27 -12
- package/dist/common/abis/erc20Whitelisted.d.ts.map +1 -1
- package/dist/common/abis/erc20Whitelisted.js +192 -1
- package/dist/common/blockchain.d.ts +20 -26
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/blockchain.js +22 -19
- package/dist/common/config.d.ts +43 -1
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +47 -25
- package/dist/common/context.d.ts +11 -0
- package/dist/common/context.d.ts.map +1 -0
- package/dist/common/context.js +0 -0
- package/dist/common/indexer/client.d.ts +3 -2
- package/dist/common/indexer/client.d.ts.map +1 -1
- package/dist/common/indexer/schemas.d.ts +1 -1
- package/dist/common/indexer/schemas.d.ts.map +1 -1
- package/dist/common/middleware/indexer.d.ts +3 -0
- package/dist/common/middleware/indexer.d.ts.map +1 -0
- package/dist/common/middleware/indexer.js +7 -0
- package/dist/common/models/asset.d.ts +4 -4
- package/dist/common/models/chainId.d.ts +3 -0
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/chainId.js +6 -14
- package/dist/common/models/numOrStr.d.ts +7 -0
- package/dist/common/models/numOrStr.d.ts.map +1 -0
- package/dist/common/models/numOrStr.js +11 -0
- package/dist/common/models/platform.d.ts +1 -1
- package/dist/common/models/platform.d.ts.map +1 -1
- package/dist/common/models/platform.js +1 -1
- package/dist/common/models/routes.d.ts +2 -2
- package/dist/common/models/transaction.d.ts +8 -8
- package/dist/common/models/transaction.d.ts.map +1 -1
- package/dist/common/models/transaction.js +1 -1
- package/dist/fractions/activity/searchActivity.route.d.ts +17 -17
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.js +1 -2
- package/dist/fractions/activity/utils.d.ts +8 -8
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts +3 -3
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts +9 -9
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts +3 -3
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +19 -19
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +20 -20
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +25 -12
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -1
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +3 -2
- package/dist/fractions/deployMarket/v0/index.d.ts +3 -0
- package/dist/fractions/deployMarket/v0/index.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/index.js +2 -0
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts +3 -3
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +3 -3
- package/dist/fractions/index.d.ts +141 -77
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +5 -3
- package/dist/fractions/markets/common/platform.d.ts +11 -11
- package/dist/fractions/markets/getMarket/index.d.ts +19 -19
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +17 -17
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/v0/getMarket.js +1 -2
- package/dist/fractions/markets/index.d.ts +22 -22
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/index.d.ts +5 -5
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +13 -13
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +1 -2
- package/dist/fractions/purchase/v0/purchase.route.d.ts +3 -3
- package/dist/fractions/purchase/v0/statistics.route.d.ts +15 -15
- package/dist/fractions/purchase/v0/statistics.route.d.ts.map +1 -1
- package/dist/fractions/purchase/v0/statistics.route.js +3 -3
- package/dist/fractions/sales/common/fractionsSale.d.ts +40 -40
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +13 -13
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +3 -3
- package/dist/fractions/sales/getVaultAddress.d.ts +4 -4
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +3 -3
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +6 -6
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +3 -3
- package/dist/fractions/sales/recoverFractions.d.ts +3 -3
- package/dist/fractions/sales/rejectFractions.d.ts +3 -3
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +32 -32
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts.map +1 -1
- package/dist/fractions/sales/searchSales/v0/searchSales.js +1 -2
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +7 -7
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +1 -2
- package/dist/fractions/sales/setFeeCapLimit.d.ts +3 -3
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +3 -3
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +17 -17
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +6 -5
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +9 -9
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts +3 -3
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts +3 -3
- package/dist/general/balanceClient.d.ts +6 -6
- package/dist/general/common.d.ts +6 -6
- package/dist/general/estimateGas.d.ts +8 -8
- package/dist/general/getBalance.d.ts +4 -4
- package/dist/general/getBalancesBatch.d.ts +4 -4
- package/dist/general/index.d.ts +5 -5
- package/dist/general/searchBalances.d.ts +4 -4
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +3 -3
- package/dist/issuance/approve.d.ts +3 -3
- package/dist/issuance/burn.d.ts +3 -3
- package/dist/issuance/common.d.ts +2 -0
- package/dist/issuance/common.d.ts.map +1 -0
- package/dist/issuance/common.js +1 -0
- package/dist/issuance/deploy.d.ts +7 -0
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +44 -3
- package/dist/issuance/getInitData.d.ts +75 -0
- package/dist/issuance/getInitData.d.ts.map +1 -0
- package/dist/issuance/getInitData.js +53 -0
- package/dist/issuance/grantRole.d.ts +9 -9
- package/dist/issuance/index.d.ts +71 -15
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +7 -2
- package/dist/issuance/mint.d.ts +3 -3
- package/dist/issuance/recover.d.ts +82 -0
- package/dist/issuance/recover.d.ts.map +1 -0
- package/dist/issuance/recover.js +38 -0
- package/dist/issuance/renounceRole.d.ts +9 -9
- package/dist/issuance/transfer.d.ts +9 -9
- package/dist/issuance/upgrade.d.ts +3 -3
- package/dist/staking/index.d.ts +10 -10
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/index.d.ts +3 -3
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +8 -8
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +3 -3
- package/dist/staking/platforms/index.d.ts +3 -3
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts +2 -2
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +4 -4
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +3 -3
- package/dist/staking/pools/common/pool.d.ts +4 -4
- package/dist/staking/pools/getPool/index.d.ts +3 -3
- package/dist/staking/pools/getPool/index.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.d.ts +7 -7
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.js +3 -3
- package/dist/staking/pools/index.d.ts +3 -3
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/index.d.ts +2 -2
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +3 -3
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +3 -3
- package/dist/staking/roles/common/roleAssignment.d.ts +2 -2
- package/dist/staking/roles/common/roleEvent.d.ts +4 -4
- package/dist/staking/roles/grantRole/index.d.ts +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +3 -3
- package/dist/staking/roles/index.d.ts +5 -5
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/index.d.ts +3 -3
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +7 -7
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +3 -3
- package/dist/staking/roles/searchRoles/index.d.ts +3 -3
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +7 -7
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +3 -3
- package/dist/staking/stakes/common/stake.d.ts +2 -2
- package/dist/staking/stakes/common/stakeEvent.d.ts +4 -4
- package/dist/staking/stakes/getStake/index.d.ts +3 -3
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +7 -7
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.js +3 -3
- package/dist/staking/stakes/index.d.ts +5 -5
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +3 -3
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +7 -7
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +3 -3
- package/dist/staking/stakes/searchStakes/index.d.ts +3 -3
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +7 -7
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +3 -3
- package/dist/staking-templates/index.d.ts +42 -42
- package/dist/staking-templates/templates/common/getReward.d.ts +7 -7
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +7 -7
- package/dist/staking-templates/templates/common/rewardDistribution.js +2 -2
- package/dist/staking-templates/templates/common/unstake.d.ts +7 -7
- package/dist/staking-templates/templates/reputation/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +3 -3
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +7 -7
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +7 -7
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +7 -7
- package/dist/staking-templates/templates/reputationLock/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +3 -3
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +7 -7
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +13 -13
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +7 -7
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +7 -7
- package/dist/staking-templates/templates/rwa/index.d.ts +16 -16
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +3 -3
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +7 -7
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.js +41 -0
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +16 -16
- package/dist/staking-templates/templates/rwa/v0/index.js +2 -2
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +7 -7
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +7 -7
- package/dist/v0/fractions/index.d.ts +68 -0
- package/dist/v0/fractions/index.d.ts.map +1 -0
- package/dist/v0/fractions/index.js +9 -0
- package/dist/v0/fractions/networkStatistics.route.d.ts +176 -0
- package/dist/v0/fractions/networkStatistics.route.d.ts.map +1 -0
- package/dist/v0/fractions/networkStatistics.route.js +354 -0
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts +65 -0
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts.map +1 -0
- package/dist/v1/fractions/lending/buyback/buyback.routes.js +27 -0
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts +19 -0
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts.map +1 -0
- package/dist/v1/fractions/lending/buyback/buyback.schema.js +12 -0
- package/dist/v1/fractions/lending/createLendingSale.d.ts +585 -0
- package/dist/v1/fractions/lending/createLendingSale.d.ts.map +1 -0
- package/dist/v1/fractions/lending/createLendingSale.js +81 -0
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts +117 -0
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -0
- package/dist/v1/fractions/lending/deployMarket/lending.routes.js +35 -0
- package/dist/v1/fractions/lending/index.d.ts +209 -0
- package/dist/v1/fractions/lending/index.d.ts.map +1 -0
- package/dist/v1/fractions/lending/index.js +22 -0
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts +82 -0
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -0
- package/dist/v1/fractions/lending/purchase/directPurchase.route.js +34 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +61 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +1 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +27 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +16 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +1 -0
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +10 -0
- package/dist/v1/fractions/schemas.d.ts +108 -0
- package/dist/v1/fractions/schemas.d.ts.map +1 -0
- package/dist/v1/fractions/schemas.js +35 -0
- package/package.json +10 -7
|
@@ -8,19 +8,19 @@ export declare const GrantRoleSchema: z.ZodObject<{
|
|
|
8
8
|
tokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
address: `0x${string}`;
|
|
11
|
-
role: Erc20GatedRole;
|
|
12
11
|
tokenAddress: `0x${string}`;
|
|
12
|
+
role: Erc20GatedRole;
|
|
13
13
|
}, {
|
|
14
14
|
address: `0x${string}`;
|
|
15
|
-
role: Erc20GatedRole;
|
|
16
15
|
tokenAddress: `0x${string}`;
|
|
16
|
+
role: Erc20GatedRole;
|
|
17
17
|
}>;
|
|
18
18
|
export declare function createGrantRole<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
19
19
|
data: `0x${string}`;
|
|
20
20
|
to: `0x${string}`;
|
|
21
21
|
details: {
|
|
22
|
-
functionName: string;
|
|
23
22
|
address: `0x${string}`;
|
|
23
|
+
functionName: string;
|
|
24
24
|
abi: any[];
|
|
25
25
|
args: any[];
|
|
26
26
|
};
|
|
@@ -28,23 +28,23 @@ export declare function createGrantRole<E extends Env>(factory: Factory<E>): [im
|
|
|
28
28
|
in: {
|
|
29
29
|
json: {
|
|
30
30
|
address: `0x${string}`;
|
|
31
|
-
role: Erc20GatedRole;
|
|
32
31
|
tokenAddress: `0x${string}`;
|
|
32
|
+
role: Erc20GatedRole;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
out: {
|
|
36
36
|
json: {
|
|
37
37
|
address: `0x${string}`;
|
|
38
|
-
role: Erc20GatedRole;
|
|
39
38
|
tokenAddress: `0x${string}`;
|
|
39
|
+
role: Erc20GatedRole;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
43
43
|
data: `0x${string}`;
|
|
44
44
|
to: `0x${string}`;
|
|
45
45
|
details: {
|
|
46
|
-
functionName: string;
|
|
47
46
|
address: `0x${string}`;
|
|
47
|
+
functionName: string;
|
|
48
48
|
abi: any[];
|
|
49
49
|
args: any[];
|
|
50
50
|
};
|
|
@@ -52,23 +52,23 @@ export declare function createGrantRole<E extends Env>(factory: Factory<E>): [im
|
|
|
52
52
|
in: {
|
|
53
53
|
json: {
|
|
54
54
|
address: `0x${string}`;
|
|
55
|
-
role: Erc20GatedRole;
|
|
56
55
|
tokenAddress: `0x${string}`;
|
|
56
|
+
role: Erc20GatedRole;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
out: {
|
|
60
60
|
json: {
|
|
61
61
|
address: `0x${string}`;
|
|
62
|
-
role: Erc20GatedRole;
|
|
63
62
|
tokenAddress: `0x${string}`;
|
|
63
|
+
role: Erc20GatedRole;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
67
67
|
data: `0x${string}`;
|
|
68
68
|
to: `0x${string}`;
|
|
69
69
|
details: {
|
|
70
|
-
functionName: string;
|
|
71
70
|
address: `0x${string}`;
|
|
71
|
+
functionName: string;
|
|
72
72
|
abi: any[];
|
|
73
73
|
args: any[];
|
|
74
74
|
};
|
package/dist/issuance/index.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export declare const issuanceApis: {
|
|
|
28
28
|
data: `0x${string}`;
|
|
29
29
|
to: `0x${string}`;
|
|
30
30
|
details: {
|
|
31
|
-
functionName: string;
|
|
32
31
|
address: `0x${string}`;
|
|
32
|
+
functionName: string;
|
|
33
33
|
abi: any[];
|
|
34
34
|
args: any[];
|
|
35
35
|
};
|
|
@@ -52,8 +52,8 @@ export declare const issuanceApis: {
|
|
|
52
52
|
data: `0x${string}`;
|
|
53
53
|
to: `0x${string}`;
|
|
54
54
|
details: {
|
|
55
|
-
functionName: string;
|
|
56
55
|
address: `0x${string}`;
|
|
56
|
+
functionName: string;
|
|
57
57
|
abi: any[];
|
|
58
58
|
args: any[];
|
|
59
59
|
};
|
|
@@ -76,8 +76,8 @@ export declare const issuanceApis: {
|
|
|
76
76
|
data: `0x${string}`;
|
|
77
77
|
to: `0x${string}`;
|
|
78
78
|
details: {
|
|
79
|
-
functionName: string;
|
|
80
79
|
address: `0x${string}`;
|
|
80
|
+
functionName: string;
|
|
81
81
|
abi: any[];
|
|
82
82
|
args: any[];
|
|
83
83
|
};
|
|
@@ -91,17 +91,17 @@ export declare const issuanceApis: {
|
|
|
91
91
|
$post: {
|
|
92
92
|
input: {
|
|
93
93
|
json: {
|
|
94
|
-
to: `0x${string}`;
|
|
95
94
|
tokenAddress: `0x${string}`;
|
|
96
95
|
amount: bigint;
|
|
96
|
+
to: `0x${string}`;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
output: {
|
|
100
100
|
data: `0x${string}`;
|
|
101
101
|
to: `0x${string}`;
|
|
102
102
|
details: {
|
|
103
|
-
functionName: string;
|
|
104
103
|
address: `0x${string}`;
|
|
104
|
+
functionName: string;
|
|
105
105
|
abi: any[];
|
|
106
106
|
args: any[];
|
|
107
107
|
};
|
|
@@ -138,16 +138,16 @@ export declare const issuanceApis: {
|
|
|
138
138
|
input: {
|
|
139
139
|
json: {
|
|
140
140
|
address: `0x${string}`;
|
|
141
|
-
role: import("../common/roles/erc20-gated-roles.js").Erc20GatedRole;
|
|
142
141
|
tokenAddress: `0x${string}`;
|
|
142
|
+
role: import("../common/roles/erc20-gated-roles.js").Erc20GatedRole;
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
145
|
output: {
|
|
146
146
|
data: `0x${string}`;
|
|
147
147
|
to: `0x${string}`;
|
|
148
148
|
details: {
|
|
149
|
-
functionName: string;
|
|
150
149
|
address: `0x${string}`;
|
|
150
|
+
functionName: string;
|
|
151
151
|
abi: any[];
|
|
152
152
|
args: any[];
|
|
153
153
|
};
|
|
@@ -162,16 +162,16 @@ export declare const issuanceApis: {
|
|
|
162
162
|
input: {
|
|
163
163
|
json: {
|
|
164
164
|
address: `0x${string}`;
|
|
165
|
-
role: import("../common/roles/erc20-gated-roles.js").Erc20GatedRole;
|
|
166
165
|
tokenAddress: `0x${string}`;
|
|
166
|
+
role: import("../common/roles/erc20-gated-roles.js").Erc20GatedRole;
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
169
|
output: {
|
|
170
170
|
data: `0x${string}`;
|
|
171
171
|
to: `0x${string}`;
|
|
172
172
|
details: {
|
|
173
|
-
functionName: string;
|
|
174
173
|
address: `0x${string}`;
|
|
174
|
+
functionName: string;
|
|
175
175
|
abi: any[];
|
|
176
176
|
args: any[];
|
|
177
177
|
};
|
|
@@ -181,18 +181,55 @@ export declare const issuanceApis: {
|
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
183
|
} & {
|
|
184
|
-
"/
|
|
184
|
+
"/erc20/getInitData": {
|
|
185
185
|
$post: {
|
|
186
186
|
input: {
|
|
187
187
|
json: {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
cap: string;
|
|
189
|
+
defaultAdmin: `0x${string}`;
|
|
190
|
+
minter: `0x${string}`;
|
|
191
|
+
tokenName: string;
|
|
192
|
+
tokenSymbol: string;
|
|
191
193
|
};
|
|
192
194
|
};
|
|
195
|
+
output: {
|
|
196
|
+
data: `0x${string}`;
|
|
197
|
+
};
|
|
198
|
+
outputFormat: "json";
|
|
199
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
} & {
|
|
203
|
+
"/erc20/recover": {
|
|
204
|
+
$post: {
|
|
205
|
+
input: {
|
|
206
|
+
json: {
|
|
207
|
+
from: `0x${string}`;
|
|
208
|
+
tokenAddress: `0x${string}`;
|
|
209
|
+
amount: bigint;
|
|
210
|
+
to: `0x${string}`;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
output: {
|
|
214
|
+
data: `0x${string}`;
|
|
215
|
+
to: `0x${string}`;
|
|
216
|
+
details: {
|
|
217
|
+
address: `0x${string}`;
|
|
218
|
+
functionName: string;
|
|
219
|
+
abi: any[];
|
|
220
|
+
args: any[];
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
outputFormat: "json";
|
|
224
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
} & {
|
|
228
|
+
"/erc721/deploy": {
|
|
229
|
+
$post: {
|
|
230
|
+
input: {};
|
|
193
231
|
output: {
|
|
194
232
|
abi: any[];
|
|
195
|
-
args: any[];
|
|
196
233
|
bytecode: `0x${string}`;
|
|
197
234
|
};
|
|
198
235
|
outputFormat: "json";
|
|
@@ -211,6 +248,25 @@ export declare const issuanceApis: {
|
|
|
211
248
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
212
249
|
};
|
|
213
250
|
};
|
|
251
|
+
} & {
|
|
252
|
+
"/proxy/deployTransparentProxy": {
|
|
253
|
+
$post: {
|
|
254
|
+
input: {
|
|
255
|
+
json: {
|
|
256
|
+
initData: `0x${string}`;
|
|
257
|
+
implementation: `0x${string}`;
|
|
258
|
+
proxyAdminOwner: `0x${string}`;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
output: {
|
|
262
|
+
abi: any[];
|
|
263
|
+
args: any[];
|
|
264
|
+
bytecode: `0x${string}`;
|
|
265
|
+
};
|
|
266
|
+
outputFormat: "json";
|
|
267
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
214
270
|
} & {
|
|
215
271
|
"/proxy/upgradeTransparentProxy": {
|
|
216
272
|
$post: {
|
|
@@ -226,8 +282,8 @@ export declare const issuanceApis: {
|
|
|
226
282
|
data: `0x${string}`;
|
|
227
283
|
to: `0x${string}`;
|
|
228
284
|
details: {
|
|
229
|
-
functionName: string;
|
|
230
285
|
address: `0x${string}`;
|
|
286
|
+
functionName: string;
|
|
231
287
|
abi: any[];
|
|
232
288
|
args: any[];
|
|
233
289
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issuance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issuance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAmBvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB/C,CAAC"}
|
package/dist/issuance/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { createApiConfig } from "../common/app.js";
|
|
2
2
|
import { approveErc20Token } from "./approve.js";
|
|
3
3
|
import { burnErc20Token } from "./burn.js";
|
|
4
|
-
import { createErc1967Proxy, createErc20Token, createTransparentUpgradeableProxy, createProxyAdmin } from "./deploy.js";
|
|
4
|
+
import { createErc1967Proxy, createErc20Token, createTransparentUpgradeableProxy, createProxyAdmin, createErc721Token, } from "./deploy.js";
|
|
5
5
|
import { mintErc20Token } from "./mint.js";
|
|
6
6
|
import { transferErc20Token } from "./transfer.js";
|
|
7
7
|
import { createGrantRole } from "./grantRole.js";
|
|
8
8
|
import { createRenounceRole } from "./renounceRole.js";
|
|
9
9
|
import { upgradeTransparentProxy } from "./upgrade.js";
|
|
10
|
+
import { createGetErc20InitData } from "./getInitData.js";
|
|
11
|
+
import { recoverErc20 } from "./recover.js";
|
|
10
12
|
export const issuanceApis = {
|
|
11
13
|
name: "Issuance APIs",
|
|
12
14
|
createApp: (factory) => factory.createApp().route("/issuance", factory
|
|
@@ -19,8 +21,11 @@ export const issuanceApis = {
|
|
|
19
21
|
.post("/erc20/proxy", ...createErc1967Proxy(factory))
|
|
20
22
|
.post("/erc20/grantRole", ...createGrantRole(factory))
|
|
21
23
|
.post("/erc20/renounceRole", ...createRenounceRole(factory))
|
|
22
|
-
.post("/
|
|
24
|
+
.post("/erc20/getInitData", ...createGetErc20InitData(factory))
|
|
25
|
+
.post("/erc20/recover", ...recoverErc20(factory))
|
|
26
|
+
.post("/erc721/deploy", ...createErc721Token(factory))
|
|
23
27
|
.get("/proxy/deployProxyAdmin", ...createProxyAdmin(factory))
|
|
28
|
+
.post("/proxy/deployTransparentProxy", ...createTransparentUpgradeableProxy(factory))
|
|
24
29
|
.post("/proxy/upgradeTransparentProxy", ...upgradeTransparentProxy(factory))),
|
|
25
30
|
config: createApiConfig({
|
|
26
31
|
title: "Issuance API",
|
package/dist/issuance/mint.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export declare function mintErc20Token<E extends Env>(factory: Factory<E>): [imp
|
|
|
18
18
|
data: `0x${string}`;
|
|
19
19
|
to: `0x${string}`;
|
|
20
20
|
details: {
|
|
21
|
-
functionName: string;
|
|
22
21
|
address: `0x${string}`;
|
|
22
|
+
functionName: string;
|
|
23
23
|
abi: any[];
|
|
24
24
|
args: any[];
|
|
25
25
|
};
|
|
@@ -42,8 +42,8 @@ export declare function mintErc20Token<E extends Env>(factory: Factory<E>): [imp
|
|
|
42
42
|
data: `0x${string}`;
|
|
43
43
|
to: `0x${string}`;
|
|
44
44
|
details: {
|
|
45
|
-
functionName: string;
|
|
46
45
|
address: `0x${string}`;
|
|
46
|
+
functionName: string;
|
|
47
47
|
abi: any[];
|
|
48
48
|
args: any[];
|
|
49
49
|
};
|
|
@@ -66,8 +66,8 @@ export declare function mintErc20Token<E extends Env>(factory: Factory<E>): [imp
|
|
|
66
66
|
data: `0x${string}`;
|
|
67
67
|
to: `0x${string}`;
|
|
68
68
|
details: {
|
|
69
|
-
functionName: string;
|
|
70
69
|
address: `0x${string}`;
|
|
70
|
+
functionName: string;
|
|
71
71
|
abi: any[];
|
|
72
72
|
args: any[];
|
|
73
73
|
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Env } from "hono";
|
|
3
|
+
import { Factory } from "hono/factory";
|
|
4
|
+
export declare const RecoverErc20RequestSchema: z.ZodObject<{
|
|
5
|
+
tokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
from: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
7
|
+
to: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
+
amount: z.ZodBigInt;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
from: `0x${string}`;
|
|
11
|
+
tokenAddress: `0x${string}`;
|
|
12
|
+
amount: bigint;
|
|
13
|
+
to: `0x${string}`;
|
|
14
|
+
}, {
|
|
15
|
+
from: `0x${string}`;
|
|
16
|
+
tokenAddress: `0x${string}`;
|
|
17
|
+
amount: bigint;
|
|
18
|
+
to: `0x${string}`;
|
|
19
|
+
}>;
|
|
20
|
+
export declare function recoverErc20<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
21
|
+
data: `0x${string}`;
|
|
22
|
+
to: `0x${string}`;
|
|
23
|
+
details: {
|
|
24
|
+
address: `0x${string}`;
|
|
25
|
+
functionName: string;
|
|
26
|
+
abi: any[];
|
|
27
|
+
args: any[];
|
|
28
|
+
};
|
|
29
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
30
|
+
in: {
|
|
31
|
+
json: {
|
|
32
|
+
from: `0x${string}`;
|
|
33
|
+
tokenAddress: `0x${string}`;
|
|
34
|
+
amount: bigint;
|
|
35
|
+
to: `0x${string}`;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
out: {
|
|
39
|
+
json: {
|
|
40
|
+
from: `0x${string}`;
|
|
41
|
+
tokenAddress: `0x${string}`;
|
|
42
|
+
amount: bigint;
|
|
43
|
+
to: `0x${string}`;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
47
|
+
data: `0x${string}`;
|
|
48
|
+
to: `0x${string}`;
|
|
49
|
+
details: {
|
|
50
|
+
address: `0x${string}`;
|
|
51
|
+
functionName: string;
|
|
52
|
+
abi: any[];
|
|
53
|
+
args: any[];
|
|
54
|
+
};
|
|
55
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
56
|
+
in: {
|
|
57
|
+
json: {
|
|
58
|
+
from: `0x${string}`;
|
|
59
|
+
tokenAddress: `0x${string}`;
|
|
60
|
+
amount: bigint;
|
|
61
|
+
to: `0x${string}`;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
out: {
|
|
65
|
+
json: {
|
|
66
|
+
from: `0x${string}`;
|
|
67
|
+
tokenAddress: `0x${string}`;
|
|
68
|
+
amount: bigint;
|
|
69
|
+
to: `0x${string}`;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
73
|
+
data: `0x${string}`;
|
|
74
|
+
to: `0x${string}`;
|
|
75
|
+
details: {
|
|
76
|
+
address: `0x${string}`;
|
|
77
|
+
functionName: string;
|
|
78
|
+
abi: any[];
|
|
79
|
+
args: any[];
|
|
80
|
+
};
|
|
81
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
82
|
+
//# sourceMappingURL=recover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../src/issuance/recover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAkBH,wBAAgB,YAAY,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAa9D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { describeRoute } from "hono-openapi";
|
|
3
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../common/index.js";
|
|
5
|
+
import { erc20GatedAbi } from "../common/abis/erc20Whitelisted.js";
|
|
6
|
+
import { toHex } from "viem";
|
|
7
|
+
export const RecoverErc20RequestSchema = z.object({
|
|
8
|
+
tokenAddress: AddressSchema,
|
|
9
|
+
from: AddressSchema,
|
|
10
|
+
to: AddressSchema,
|
|
11
|
+
amount: z.coerce.bigint().nonnegative(),
|
|
12
|
+
});
|
|
13
|
+
const recoverRoute = describeRoute({
|
|
14
|
+
summary: "Recover Gated ERC20",
|
|
15
|
+
description: "Returns transaction data for recovering a gated ERC20 token from one address to another",
|
|
16
|
+
tags: ["Issuance"],
|
|
17
|
+
responses: {
|
|
18
|
+
200: {
|
|
19
|
+
description: "Returns transaction data for recovering a gated ERC20",
|
|
20
|
+
content: {
|
|
21
|
+
"application/json": {
|
|
22
|
+
schema: resolver(TransactionSchema),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
export function recoverErc20(factory) {
|
|
29
|
+
return factory.createHandlers(recoverRoute, validator("json", RecoverErc20RequestSchema), async (c) => {
|
|
30
|
+
const { tokenAddress, from, to, amount } = c.req.valid("json");
|
|
31
|
+
return c.json(toTransaction({
|
|
32
|
+
address: tokenAddress,
|
|
33
|
+
abi: erc20GatedAbi,
|
|
34
|
+
functionName: "recover",
|
|
35
|
+
args: [from, to, toHex(amount)],
|
|
36
|
+
}));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -8,19 +8,19 @@ export declare const RenounceRoleSchema: z.ZodObject<{
|
|
|
8
8
|
tokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
address: `0x${string}`;
|
|
11
|
-
role: Erc20GatedRole;
|
|
12
11
|
tokenAddress: `0x${string}`;
|
|
12
|
+
role: Erc20GatedRole;
|
|
13
13
|
}, {
|
|
14
14
|
address: `0x${string}`;
|
|
15
|
-
role: Erc20GatedRole;
|
|
16
15
|
tokenAddress: `0x${string}`;
|
|
16
|
+
role: Erc20GatedRole;
|
|
17
17
|
}>;
|
|
18
18
|
export declare function createRenounceRole<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
19
19
|
data: `0x${string}`;
|
|
20
20
|
to: `0x${string}`;
|
|
21
21
|
details: {
|
|
22
|
-
functionName: string;
|
|
23
22
|
address: `0x${string}`;
|
|
23
|
+
functionName: string;
|
|
24
24
|
abi: any[];
|
|
25
25
|
args: any[];
|
|
26
26
|
};
|
|
@@ -28,23 +28,23 @@ export declare function createRenounceRole<E extends Env>(factory: Factory<E>):
|
|
|
28
28
|
in: {
|
|
29
29
|
json: {
|
|
30
30
|
address: `0x${string}`;
|
|
31
|
-
role: Erc20GatedRole;
|
|
32
31
|
tokenAddress: `0x${string}`;
|
|
32
|
+
role: Erc20GatedRole;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
out: {
|
|
36
36
|
json: {
|
|
37
37
|
address: `0x${string}`;
|
|
38
|
-
role: Erc20GatedRole;
|
|
39
38
|
tokenAddress: `0x${string}`;
|
|
39
|
+
role: Erc20GatedRole;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
43
43
|
data: `0x${string}`;
|
|
44
44
|
to: `0x${string}`;
|
|
45
45
|
details: {
|
|
46
|
-
functionName: string;
|
|
47
46
|
address: `0x${string}`;
|
|
47
|
+
functionName: string;
|
|
48
48
|
abi: any[];
|
|
49
49
|
args: any[];
|
|
50
50
|
};
|
|
@@ -52,23 +52,23 @@ export declare function createRenounceRole<E extends Env>(factory: Factory<E>):
|
|
|
52
52
|
in: {
|
|
53
53
|
json: {
|
|
54
54
|
address: `0x${string}`;
|
|
55
|
-
role: Erc20GatedRole;
|
|
56
55
|
tokenAddress: `0x${string}`;
|
|
56
|
+
role: Erc20GatedRole;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
out: {
|
|
60
60
|
json: {
|
|
61
61
|
address: `0x${string}`;
|
|
62
|
-
role: Erc20GatedRole;
|
|
63
62
|
tokenAddress: `0x${string}`;
|
|
63
|
+
role: Erc20GatedRole;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
67
67
|
data: `0x${string}`;
|
|
68
68
|
to: `0x${string}`;
|
|
69
69
|
details: {
|
|
70
|
-
functionName: string;
|
|
71
70
|
address: `0x${string}`;
|
|
71
|
+
functionName: string;
|
|
72
72
|
abi: any[];
|
|
73
73
|
args: any[];
|
|
74
74
|
};
|
|
@@ -6,68 +6,68 @@ export declare const TransferErc20RequestSchema: z.ZodObject<{
|
|
|
6
6
|
to: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
7
7
|
amount: z.ZodBigInt;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
to: `0x${string}`;
|
|
10
9
|
tokenAddress: `0x${string}`;
|
|
11
10
|
amount: bigint;
|
|
12
|
-
}, {
|
|
13
11
|
to: `0x${string}`;
|
|
12
|
+
}, {
|
|
14
13
|
tokenAddress: `0x${string}`;
|
|
15
14
|
amount: bigint;
|
|
15
|
+
to: `0x${string}`;
|
|
16
16
|
}>;
|
|
17
17
|
export declare function transferErc20Token<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
18
18
|
data: `0x${string}`;
|
|
19
19
|
to: `0x${string}`;
|
|
20
20
|
details: {
|
|
21
|
-
functionName: string;
|
|
22
21
|
address: `0x${string}`;
|
|
22
|
+
functionName: string;
|
|
23
23
|
abi: any[];
|
|
24
24
|
args: any[];
|
|
25
25
|
};
|
|
26
26
|
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
27
27
|
in: {
|
|
28
28
|
json: {
|
|
29
|
-
to: `0x${string}`;
|
|
30
29
|
tokenAddress: `0x${string}`;
|
|
31
30
|
amount: bigint;
|
|
31
|
+
to: `0x${string}`;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
out: {
|
|
35
35
|
json: {
|
|
36
|
-
to: `0x${string}`;
|
|
37
36
|
tokenAddress: `0x${string}`;
|
|
38
37
|
amount: bigint;
|
|
38
|
+
to: `0x${string}`;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
42
42
|
data: `0x${string}`;
|
|
43
43
|
to: `0x${string}`;
|
|
44
44
|
details: {
|
|
45
|
-
functionName: string;
|
|
46
45
|
address: `0x${string}`;
|
|
46
|
+
functionName: string;
|
|
47
47
|
abi: any[];
|
|
48
48
|
args: any[];
|
|
49
49
|
};
|
|
50
50
|
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
51
51
|
in: {
|
|
52
52
|
json: {
|
|
53
|
-
to: `0x${string}`;
|
|
54
53
|
tokenAddress: `0x${string}`;
|
|
55
54
|
amount: bigint;
|
|
55
|
+
to: `0x${string}`;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
out: {
|
|
59
59
|
json: {
|
|
60
|
-
to: `0x${string}`;
|
|
61
60
|
tokenAddress: `0x${string}`;
|
|
62
61
|
amount: bigint;
|
|
62
|
+
to: `0x${string}`;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
66
66
|
data: `0x${string}`;
|
|
67
67
|
to: `0x${string}`;
|
|
68
68
|
details: {
|
|
69
|
-
functionName: string;
|
|
70
69
|
address: `0x${string}`;
|
|
70
|
+
functionName: string;
|
|
71
71
|
abi: any[];
|
|
72
72
|
args: any[];
|
|
73
73
|
};
|
|
@@ -21,8 +21,8 @@ export declare function upgradeTransparentProxy<E extends Env>(factory: Factory<
|
|
|
21
21
|
data: `0x${string}`;
|
|
22
22
|
to: `0x${string}`;
|
|
23
23
|
details: {
|
|
24
|
-
functionName: string;
|
|
25
24
|
address: `0x${string}`;
|
|
25
|
+
functionName: string;
|
|
26
26
|
abi: any[];
|
|
27
27
|
args: any[];
|
|
28
28
|
};
|
|
@@ -47,8 +47,8 @@ export declare function upgradeTransparentProxy<E extends Env>(factory: Factory<
|
|
|
47
47
|
data: `0x${string}`;
|
|
48
48
|
to: `0x${string}`;
|
|
49
49
|
details: {
|
|
50
|
-
functionName: string;
|
|
51
50
|
address: `0x${string}`;
|
|
51
|
+
functionName: string;
|
|
52
52
|
abi: any[];
|
|
53
53
|
args: any[];
|
|
54
54
|
};
|
|
@@ -73,8 +73,8 @@ export declare function upgradeTransparentProxy<E extends Env>(factory: Factory<
|
|
|
73
73
|
data: `0x${string}`;
|
|
74
74
|
to: `0x${string}`;
|
|
75
75
|
details: {
|
|
76
|
-
functionName: string;
|
|
77
76
|
address: `0x${string}`;
|
|
77
|
+
functionName: string;
|
|
78
78
|
abi: any[];
|
|
79
79
|
args: any[];
|
|
80
80
|
};
|