feat: expand non-evm relay and route planning support
This commit is contained in:
22
services/tron-relay/src/TronRelayService.ts
Normal file
22
services/tron-relay/src/TronRelayService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import {
|
||||
NON_EVM_RELAY_LIFECYCLE,
|
||||
type NonEvmNetworkPolicy,
|
||||
type NonEvmRelayObservation
|
||||
} from '../../non-evm-relay/lifecycle';
|
||||
|
||||
export const TRON_RELAY_POLICY: NonEvmNetworkPolicy = {
|
||||
identifier: 'Tron',
|
||||
relayMode: 'custom_relay_scaffold',
|
||||
destinationProgramModel: 'trc20_or_bridge_wrapped_cw',
|
||||
signerFundingPolicy: 'trx_operator_signer',
|
||||
finalityPolicy: 'block_finality>=20',
|
||||
publicExposureStatus: 'operator_ready'
|
||||
};
|
||||
|
||||
export class TronRelayService {
|
||||
readonly lifecycle = NON_EVM_RELAY_LIFECYCLE;
|
||||
|
||||
recordObservation(observation: NonEvmRelayObservation): NonEvmRelayObservation {
|
||||
return observation;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user