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