|
| 1 | +export const newStakingRequest = { |
| 2 | + id: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 3 | + requestingUserId: '5cb525d7e1b1328103076788fd6a07f9', |
| 4 | + type: 'STAKE', |
| 5 | + enterpriseId: '61c0ff41174c4e0007ae78b2a0bea1ec', |
| 6 | + walletId: '674f61528414869237480e6997ea7954', |
| 7 | + walletType: 'hot', |
| 8 | + withdrawalAddress: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 9 | + coin: 'topeth:wct', |
| 10 | + status: 'NEW', |
| 11 | + statusModifiedDate: '2025-03-25T13:43:07.808717Z', |
| 12 | + createdDate: '2025-03-25T13:43:07.808708Z', |
| 13 | + delegations: [], |
| 14 | + transactions: [], |
| 15 | + totalStaked: '0', |
| 16 | + amount: '1000000000000000000', |
| 17 | + durationSeconds: '1209600', |
| 18 | +}; |
| 19 | + |
| 20 | +export const stakingReadyToSign = { |
| 21 | + id: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 22 | + requestingUserId: '5cb525d7e1b1328103076788fd6a07f9', |
| 23 | + type: 'STAKE', |
| 24 | + enterpriseId: '61c0ff41174c4e0007ae78b2a0bea1ec', |
| 25 | + walletId: '674f61528414869237480e6997ea7954', |
| 26 | + walletType: 'hot', |
| 27 | + withdrawalAddress: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 28 | + coin: 'topeth:wct', |
| 29 | + status: 'READY', |
| 30 | + statusModifiedDate: '2025-03-25T13:43:08.883527Z', |
| 31 | + createdDate: '2025-03-25T13:43:07.808708Z', |
| 32 | + delegations: [ |
| 33 | + { |
| 34 | + id: '27d726f9-3061-4f73-b40c-703962449b24', |
| 35 | + delegationAddress: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 36 | + provider: 'Unknown', |
| 37 | + withdrawalAddress: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 38 | + delegated: '0', |
| 39 | + coin: 'topeth:wct', |
| 40 | + walletId: '674f61528414869237480e6997ea7954', |
| 41 | + properties: { |
| 42 | + type: 'WCT', |
| 43 | + }, |
| 44 | + status: 'PENDING', |
| 45 | + rewards: '0', |
| 46 | + lockedRewards: '0', |
| 47 | + pendingUnstake: '0', |
| 48 | + pendingStake: '1000000000000000000', |
| 49 | + reserved: '0', |
| 50 | + pendingReserved: '0', |
| 51 | + apy: '0', |
| 52 | + unstakeable: false, |
| 53 | + pendingClaimRewards: '0', |
| 54 | + permissionAttributes: { |
| 55 | + staking: { |
| 56 | + enabled: false, |
| 57 | + disabledReason: 'Delegation is not active.', |
| 58 | + allowClientToUseOwnValidator: false, |
| 59 | + }, |
| 60 | + unstaking: { |
| 61 | + enabled: false, |
| 62 | + disabledReason: 'Delegation is not active.', |
| 63 | + }, |
| 64 | + }, |
| 65 | + }, |
| 66 | + ], |
| 67 | + transactions: [ |
| 68 | + { |
| 69 | + id: '52676686-0d86-4ae6-8216-3465cb228615', |
| 70 | + stakingRequestId: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 71 | + delegationId: '27d726f9-3061-4f73-b40c-703962449b24', |
| 72 | + createdDate: '2025-03-25T13:43:07.942063Z', |
| 73 | + transactionType: 'authorize', |
| 74 | + status: 'READY', |
| 75 | + statusModifiedDate: '2025-03-25T13:43:07.942063Z', |
| 76 | + amount: '1000000000000000000', |
| 77 | + }, |
| 78 | + { |
| 79 | + id: 'ac56e1fc-3077-487f-a4f4-78061aa74300', |
| 80 | + stakingRequestId: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 81 | + delegationId: '27d726f9-3061-4f73-b40c-703962449b24', |
| 82 | + createdDate: '2025-03-25T13:43:07.942138Z', |
| 83 | + transactionType: 'delegate', |
| 84 | + status: 'WAITING', |
| 85 | + statusModifiedDate: '2025-03-25T13:43:07.942138Z', |
| 86 | + amount: '1000000000000000000', |
| 87 | + }, |
| 88 | + ], |
| 89 | + totalStaked: '0', |
| 90 | + amount: '1000000000000000000', |
| 91 | + durationSeconds: '1209600', |
| 92 | + fiatValue: 20.63776884676185, |
| 93 | +}; |
| 94 | + |
| 95 | +export const updatedStakingRequest = { |
| 96 | + id: '52676686-0d86-4ae6-8216-3465cb228615', |
| 97 | + stakingRequestId: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 98 | + delegationId: '27d726f9-3061-4f73-b40c-703962449b24', |
| 99 | + createdDate: '2025-03-25T13:43:07.942063Z', |
| 100 | + transactionType: 'authorize', |
| 101 | + status: 'READY', |
| 102 | + statusModifiedDate: '2025-03-25T13:43:07.942063Z', |
| 103 | + amount: '1000000000000000000', |
| 104 | + buildParams: { |
| 105 | + recipients: [ |
| 106 | + { |
| 107 | + amount: '0', |
| 108 | + address: '0x75bb6dcA2cD6F9a0189c478bBb8F7EE2fEF07C78', |
| 109 | + data: '0x095ea7b3000000000000000000000000140d63efb5b24314f6f62dbadb383dba2e49d7ee0000000000000000000000000000000000000000000000000de0b6b3a7640000', |
| 110 | + }, |
| 111 | + ], |
| 112 | + stakingParams: { |
| 113 | + requestId: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 114 | + amount: '1000000000000000000', |
| 115 | + coin: 'topeth:wct', |
| 116 | + validator: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 117 | + actionType: 'wct_authorize', |
| 118 | + }, |
| 119 | + }, |
| 120 | +}; |
| 121 | + |
| 122 | +export const unsignedStakingTransaction = { |
| 123 | + txHex: |
| 124 | + '0x02f9019083aa37dc718206a882089e83030d40941d1a245741bd7d603747a23d30f4c91682a2992680b901643912521500000000000000000000000075bb6dca2cd6f9a0189c478bbb8f7ee2fef07c78000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000067ebedc3000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000140d63efb5b24314f6f62dbadb383dba2e49d7ee0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0808080', |
| 125 | + txInfo: { |
| 126 | + nonce: 113, |
| 127 | + gasLimit: '200000', |
| 128 | + value: '0', |
| 129 | + data: '0x3912521500000000000000000000000075bb6dca2cd6f9a0189c478bbb8f7ee2fef07c78000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000067ebedc3000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000140d63efb5b24314f6f62dbadb383dba2e49d7ee0000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', |
| 130 | + id: '0xdddb88e48548a0c326c19b876886c694c3d88e64f7eafa11bbd274257728ce12', |
| 131 | + to: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 132 | + chainId: '0xaa37dc', |
| 133 | + _type: 'EIP1559', |
| 134 | + maxFeePerGas: '2206', |
| 135 | + maxPriorityFeePerGas: '1704', |
| 136 | + }, |
| 137 | + feeInfo: { |
| 138 | + date: '2025-03-25T13:44:35.058Z', |
| 139 | + gasPrice: '1000251', |
| 140 | + baseFee: '251', |
| 141 | + gasUsedRatio: '0.00073025', |
| 142 | + safeLowMinerTip: '1136', |
| 143 | + normalMinerTip: '1136', |
| 144 | + standardMinerTip: '1136', |
| 145 | + fastestMinerTip: '1136', |
| 146 | + ludicrousMinerTip: '1010002', |
| 147 | + }, |
| 148 | + eip1559: { |
| 149 | + maxPriorityFeePerGas: '1704', |
| 150 | + maxFeePerGas: '2206', |
| 151 | + }, |
| 152 | + recipients: [ |
| 153 | + { |
| 154 | + amount: '0', |
| 155 | + address: '0x75bb6dcA2cD6F9a0189c478bBb8F7EE2fEF07C78', |
| 156 | + data: '0x095ea7b3000000000000000000000000140d63efb5b24314f6f62dbadb383dba2e49d7ee0000000000000000000000000000000000000000000000000de0b6b3a7640000', |
| 157 | + }, |
| 158 | + ], |
| 159 | + nextContractSequenceId: 6, |
| 160 | + gasLimit: 200000, |
| 161 | + isBatch: false, |
| 162 | + stakingParams: { |
| 163 | + requestId: '75de4133-6bea-4507-841a-b19f7672e1f7', |
| 164 | + amount: '1000000000000000000', |
| 165 | + coin: 'topeth:wct', |
| 166 | + validator: '0x1d1a245741bd7d603747a23d30f4c91682a29926', |
| 167 | + actionType: 'wct_authorize', |
| 168 | + }, |
| 169 | + coin: 'topeth', |
| 170 | +}; |
0 commit comments