Skip to content

Commit

Permalink
refactor(oracle)!: drop stamps and use plain functions
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `extendOracleTtl` accepts oracle ttl in `oracleTtlType` and `oracleTtlValue` fields
Use `oracleTtlType` field instead of `type`, and `oracleTtlValue` field instead of `value`.
  • Loading branch information
davidyuk committed Jun 13, 2022
1 parent 662128f commit 04ce814
Show file tree
Hide file tree
Showing 11 changed files with 397 additions and 362 deletions.
7 changes: 4 additions & 3 deletions src/ae/aepp.js → src/ae/aepp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
* @example import { RpcAepp } from '@aeternity/aepp-sdk'
*/

import Ae from './'
import Ae from '.'
import ContractCompilerHttp from '../contract/compiler'
import AeppRpc from '../utils/aepp-wallet-communication/rpc/aepp-rpc'
import Oracle from './oracle'
import asyncInit from '../utils/async-init'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import stampit from '@stamp/it'

/**
* Aepp Stamp
Expand All @@ -40,4 +41,4 @@ import asyncInit from '../utils/async-init'
* @param {Object} [options={}] - Initializer object
* @return {Object} Aepp instance
*/
export default Ae.compose(asyncInit, Oracle, ContractCompilerHttp, AeppRpc)
export default Ae.compose(asyncInit, ContractCompilerHttp, AeppRpc)
2 changes: 2 additions & 0 deletions src/ae/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import * as chainMethods from '../chain'
import * as txMethods from '../tx'
import * as aensMethods from './aens'
import * as spendMethods from './spend'
import * as oracleMethods from './oracle'
import * as contractMethods from './contract'
import * as contractGaMethods from '../contract/ga'
import NodePool from '../node-pool'
Expand All @@ -52,6 +53,7 @@ export default stampit(NodePool, AccountResolver, {
...contractMethods,
...contractGaMethods,
...aensMethods,
...oracleMethods,
buildTx: _buildTx
},
([name, handler]) => [
Expand Down
305 changes: 0 additions & 305 deletions src/ae/oracle.js

This file was deleted.

Loading

0 comments on commit 04ce814

Please sign in to comment.